From 9f53bc85a64da31a21ede71a112f2f6c0486417b Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 27 May 2007 18:08:18 +0000 Subject: Add stat() git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@257 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/include/stdio.h | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'nuttx/include/stdio.h') diff --git a/nuttx/include/stdio.h b/nuttx/include/stdio.h index bdad75eb6..592ded26a 100644 --- a/nuttx/include/stdio.h +++ b/nuttx/include/stdio.h @@ -80,29 +80,6 @@ * Public Type Definitions ************************************************************/ -struct stat -{ - dev_t st_dev; /* ID of device containing a */ - /* directory entry for this file */ - ino_t st_ino; /* Inode number */ - unsigned short st_mode; /* File type, attributes, and */ - /* access control summary */ - unsigned short st_nlink; /* Number of links */ - uid_t st_uid; /* User ID of file owner */ - gid_t st_gid; /* Group ID of file group */ - dev_t st_rdev; /* Device ID; this entry defined */ - /* only for char or blk spec files */ - off_t st_size; /* File size (bytes) */ - time_t st_atime; /* Time of last access */ - time_t st_mtime; /* Last modification time */ - time_t st_ctime; /* Last file status change time */ - /* Measured in secs since */ - /* 00:00:00 GMT, Jan 1, 1970 */ - long st_blksize; /* Non-standard, Wind-River field */ - unsigned long st_blocks; /* Non-standard, Wind-River field */ - long st_gen; /* file generation value: Non-standard, Wind-River field */ -}; - struct statfs { long f_bavail; /* free blocks available to non-superuser */ @@ -166,9 +143,7 @@ EXTERN int vsprintf(char *buf, const char *s, va_list ap); EXTERN int chdir(const char *path); EXTERN FILE *fdopen(int fd, const char *type); -EXTERN int fstat(int fd, FAR struct stat *buf); EXTERN char *getcwd(FAR char *buf, size_t size); -EXTERN int stat(const char *path, FAR struct stat *buf); EXTERN int statfs(const char *path, FAR struct statfs *buf); #undef EXTERN -- cgit v1.2.3