Back to index

glibc  2.9
kernel_stat.h
Go to the documentation of this file.
00001 #include <sgidefs.h>
00002 /* As tempting as it is to define XSTAT_IS_XSTAT64 for n64, the
00003    userland data structures are not identical, because of different
00004    padding.  */
00005 /* Definition of `struct stat' used in the kernel.  */
00006 #if _MIPS_SIM != _ABIO32
00007 struct kernel_stat
00008   {
00009     unsigned int st_dev;
00010     unsigned int __pad1[3];
00011     unsigned long long st_ino;
00012     unsigned int st_mode;
00013     unsigned int st_nlink;
00014     int st_uid;
00015     int st_gid;
00016     unsigned int st_rdev;
00017     unsigned int __pad2[3];
00018     long long st_size;
00019     unsigned int st_atime_sec;
00020     unsigned int st_atime_nsec;
00021     unsigned int st_mtime_sec;
00022     unsigned int st_mtime_nsec;
00023     unsigned int st_ctime_sec;
00024     unsigned int st_ctime_nsec;
00025     unsigned int st_blksize;
00026     unsigned int __pad3;
00027     unsigned long long st_blocks;
00028   };
00029 #else
00030 struct kernel_stat
00031   {
00032     unsigned long int st_dev;
00033     long int __pad1[3];                   /* Reserved for network id */
00034     unsigned long int st_ino;
00035     unsigned long int st_mode;
00036     unsigned long int st_nlink;
00037     long int st_uid;
00038     long int st_gid;
00039     unsigned long int st_rdev;
00040     long int __pad2[2];
00041     long int st_size;
00042     long int __pad3;
00043     unsigned int st_atime_sec;
00044     unsigned int st_atime_nsec;
00045     unsigned int st_mtime_sec;
00046     unsigned int st_mtime_nsec;
00047     unsigned int st_ctime_sec;
00048     unsigned int st_ctime_nsec;
00049     long int st_blksize;
00050     long int st_blocks;
00051     char st_fstype[16];                   /* Filesystem type name, unsupported */
00052     long st_pad4[8];
00053     /* Linux specific fields */
00054     unsigned int st_flags;
00055     unsigned int st_gen;
00056   };
00057 #endif