Back to index

glibc  2.9
kernel_stat.h
Go to the documentation of this file.
00001 /* Definition of `struct stat' used in the kernel.  */
00002 struct kernel_stat
00003   {
00004     unsigned int st_dev;
00005     unsigned int st_ino;
00006     unsigned int st_mode;
00007     unsigned int st_nlink;
00008     unsigned int st_uid;
00009     unsigned int st_gid;
00010     unsigned int st_rdev;
00011     long int st_size;
00012     unsigned long int st_atime;
00013     unsigned long int st_mtime;
00014     unsigned long int st_ctime;
00015     unsigned int st_blksize;
00016     int st_blocks;
00017     unsigned int st_flags;
00018     unsigned int st_gen;
00019   };
00020 
00021 /* Definition of `struct stat64' used in the kernel.  */
00022 struct kernel_stat64
00023   {
00024     unsigned long   st_dev;
00025     unsigned long   st_ino;
00026     unsigned long   st_rdev;
00027     long            st_size;
00028     unsigned long   st_blocks;
00029 
00030     unsigned int    st_mode;
00031     unsigned int    st_uid;
00032     unsigned int    st_gid;
00033     unsigned int    st_blksize;
00034     unsigned int    st_nlink;
00035     unsigned int    __pad0;
00036 
00037     unsigned long   st_atime;
00038     unsigned long   st_atimensec; 
00039     unsigned long   st_mtime;
00040     unsigned long   st_mtimensec;
00041     unsigned long   st_ctime;
00042     unsigned long   st_ctimensec;
00043     long            __unused[3];
00044   };
00045 
00046 /* Definition of `struct stat' used by glibc 2.0.  */
00047 struct glibc2_stat
00048   {
00049     __dev_t st_dev;
00050     __ino_t st_ino;
00051     __mode_t st_mode;
00052     __nlink_t st_nlink;
00053     __uid_t st_uid;
00054     __gid_t st_gid;
00055     __dev_t st_rdev;
00056     __off_t st_size;
00057     __time_t st_atime;
00058     __time_t st_mtime;
00059     __time_t st_ctime;
00060     unsigned int st_blksize;
00061     int st_blocks;
00062     unsigned int st_flags;
00063     unsigned int st_gen;
00064   };
00065 
00066 /* Definition of `struct stat' used by glibc 2.1.  */
00067 struct glibc21_stat
00068   {
00069     __dev_t st_dev;
00070     __ino64_t st_ino;
00071     __mode_t st_mode;
00072     __nlink_t st_nlink;
00073     __uid_t st_uid;
00074     __gid_t st_gid;
00075     __dev_t st_rdev;
00076     __off_t st_size;
00077     __time_t st_atime;
00078     __time_t st_mtime;
00079     __time_t st_ctime;
00080     __blkcnt64_t st_blocks;
00081     __blksize_t st_blksize;
00082     unsigned int st_flags;
00083     unsigned int st_gen;
00084     int __pad3;
00085     long __unused[4];
00086   };
00087 
00088 #define XSTAT_IS_XSTAT64 1