123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- #ifndef _SYS_STAT_H
- # error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
- #endif
- #define _STAT_VER_KERNEL 0
- #define _STAT_VER_GLIBC2 1
- #define _STAT_VER_GLIBC2_1 2
- #define _STAT_VER _STAT_VER_GLIBC2_1
- #define _MKNOD_VER_LINUX 0
- struct stat
- {
- __dev_t st_dev;
- #ifdef __USE_FILE_OFFSET64
- __ino64_t st_ino;
- #else
- __ino_t st_ino;
- int __pad1;
- #endif
- __mode_t st_mode;
- __nlink_t st_nlink;
- __uid_t st_uid;
- __gid_t st_gid;
- __dev_t st_rdev;
- __off_t st_size;
- __time_t st_atime;
- __time_t st_mtime;
- __time_t st_ctime;
- #ifdef __USE_FILE_OFFSET64
- __blkcnt64_t st_blocks;
- #else
- __blkcnt_t st_blocks;
- int __pad2;
- #endif
- __blksize_t st_blksize;
- unsigned int st_flags;
- unsigned int st_gen;
- int __pad3;
- long __unused[4];
- };
- #ifdef __USE_LARGEFILE64
- struct stat64
- {
- __dev_t st_dev;
- __ino64_t st_ino;
- __mode_t st_mode;
- __nlink_t st_nlink;
- __uid_t st_uid;
- __gid_t st_gid;
- __dev_t st_rdev;
- __off_t st_size;
- __time_t st_atime;
- __time_t st_mtime;
- __time_t st_ctime;
- __blkcnt64_t st_blocks;
- __blksize_t st_blksize;
- unsigned int st_flags;
- unsigned int st_gen;
- int __pad3;
- long __unused[4];
- };
- #endif
- #define _STATBUF_ST_BLKSIZE
- #define _STATBUF_ST_RDEV
- #define __S_IFMT 0170000
- #define __S_IFDIR 0040000
- #define __S_IFCHR 0020000
- #define __S_IFBLK 0060000
- #define __S_IFREG 0100000
- #define __S_IFIFO 0010000
- #define __S_IFLNK 0120000
- #define __S_IFSOCK 0140000
- #define __S_TYPEISMQ(buf) ((buf)->st_mode - (buf)->st_mode)
- #define __S_TYPEISSEM(buf) ((buf)->st_mode - (buf)->st_mode)
- #define __S_TYPEISSHM(buf) ((buf)->st_mode - (buf)->st_mode)
- #define __S_ISUID 04000
- #define __S_ISGID 02000
- #define __S_ISVTX 01000
- #define __S_IREAD 0400
- #define __S_IWRITE 0200
- #define __S_IEXEC 0100
|