Changeset 611 for trunk/kernel/syscalls/shared_include/shared_stat.h
- Timestamp:
- Jan 9, 2019, 3:02:51 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/shared_include/shared_stat.h
r594 r611 30 30 *****************************************************************************************/ 31 31 32 typedefstruct stat32 struct stat 33 33 { 34 34 unsigned int st_dev; /*! ID of device containing file */ … … 42 42 unsigned int st_blksize; /*! blocksize for file system I/O */ 43 43 unsigned int st_blocks; /*! number of allocated blocks */ 44 } 45 stat_t; 44 }; 46 45 47 46 /****************************************************************************************** … … 52 51 * 53 52 * WARNING : these macros must be kept consistent with inode types in <vfs.h> file. 53 * and with types in <dirent.h> file. 54 54 *****************************************************************************************/ 55 55 … … 60 60 #define S_ISSOCK(x) ((((x)>>16) & 0xF) == 4) /*! it is a socket */ 61 61 #define S_ISCHR(x) ((((x)>>16) & 0xF) == 5) /*! it is a character device */ 62 #define S_ISLNK(x) ((((x)>>16) & 0xF) == 6) /*! it is a symbolic link */ 62 #define S_ISBLK(x) ((((x)>>16) & 0xF) == 6) /*! it is a block device */ 63 #define S_ISLNK(x) ((((x)>>16) & 0xF) == 7) /*! it is a symbolic link */ 63 64 64 65 #endif /* _STAT_H_ */
Note: See TracChangeset
for help on using the changeset viewer.