···11+#ifndef _ASM_POWERPC_STAT_H22+#define _ASM_POWERPC_STAT_H33+/*44+ * This program is free software; you can redistribute it and/or55+ * modify it under the terms of the GNU General Public License66+ * as published by the Free Software Foundation; either version77+ * 2 of the License, or (at your option) any later version.88+ */99+#include <linux/types.h>1010+1111+#define STAT_HAVE_NSEC 11212+1313+#ifndef __powerpc64__1414+struct __old_kernel_stat {1515+ unsigned short st_dev;1616+ unsigned short st_ino;1717+ unsigned short st_mode;1818+ unsigned short st_nlink;1919+ unsigned short st_uid;2020+ unsigned short st_gid;2121+ unsigned short st_rdev;2222+ unsigned long st_size;2323+ unsigned long st_atime;2424+ unsigned long st_mtime;2525+ unsigned long st_ctime;2626+};2727+#endif /* !__powerpc64__ */2828+2929+struct stat {3030+ unsigned long st_dev;3131+ ino_t st_ino;3232+#ifdef __powerpc64__3333+ nlink_t st_nlink;3434+ mode_t st_mode;3535+#else3636+ mode_t st_mode;3737+ nlink_t st_nlink;3838+#endif3939+ uid_t st_uid;4040+ gid_t st_gid;4141+ unsigned long st_rdev;4242+ off_t st_size;4343+ unsigned long st_blksize;4444+ unsigned long st_blocks;4545+ unsigned long st_atime;4646+ unsigned long st_atime_nsec;4747+ unsigned long st_mtime;4848+ unsigned long st_mtime_nsec;4949+ unsigned long st_ctime;5050+ unsigned long st_ctime_nsec;5151+ unsigned long __unused4;5252+ unsigned long __unused5;5353+#ifdef __powerpc64__5454+ unsigned long __unused6;5555+#endif5656+};5757+5858+/* This matches struct stat64 in glibc2.1. Only used for 32 bit. */5959+struct stat64 {6060+ unsigned long long st_dev; /* Device. */6161+ unsigned long long st_ino; /* File serial number. */6262+ unsigned int st_mode; /* File mode. */6363+ unsigned int st_nlink; /* Link count. */6464+ unsigned int st_uid; /* User ID of the file's owner. */6565+ unsigned int st_gid; /* Group ID of the file's group. */6666+ unsigned long long st_rdev; /* Device number, if device. */6767+ unsigned short __pad2;6868+ long long st_size; /* Size of file, in bytes. */6969+ int st_blksize; /* Optimal block size for I/O. */7070+ long long st_blocks; /* Number 512-byte blocks allocated. */7171+ int st_atime; /* Time of last access. */7272+ unsigned int st_atime_nsec;7373+ int st_mtime; /* Time of last modification. */7474+ unsigned int st_mtime_nsec;7575+ int st_ctime; /* Time of last status change. */7676+ unsigned int st_ctime_nsec;7777+ unsigned int __unused4;7878+ unsigned int __unused5;7979+};8080+8181+#endif /* _ASM_POWERPC_STAT_H */
-69
include/asm-ppc/stat.h
···11-#ifndef _PPC_STAT_H22-#define _PPC_STAT_H33-44-#ifdef __KERNEL__55-#include <linux/types.h>66-#endif /* __KERNEL__ */77-88-struct __old_kernel_stat {99- unsigned short st_dev;1010- unsigned short st_ino;1111- unsigned short st_mode;1212- unsigned short st_nlink;1313- unsigned short st_uid;1414- unsigned short st_gid;1515- unsigned short st_rdev;1616- unsigned long st_size;1717- unsigned long st_atime;1818- unsigned long st_mtime;1919- unsigned long st_ctime;2020-};2121-2222-#define STAT_HAVE_NSEC 12323-2424-struct stat {2525- unsigned st_dev;2626- ino_t st_ino;2727- mode_t st_mode;2828- nlink_t st_nlink;2929- uid_t st_uid;3030- gid_t st_gid;3131- unsigned st_rdev;3232- off_t st_size;3333- unsigned long st_blksize;3434- unsigned long st_blocks;3535- unsigned long st_atime;3636- unsigned long st_atime_nsec;3737- unsigned long st_mtime;3838- unsigned long st_mtime_nsec;3939- unsigned long st_ctime;4040- unsigned long st_ctime_nsec;4141- unsigned long __unused4;4242- unsigned long __unused5;4343-};4444-4545-/* This matches struct stat64 in glibc2.1.4646- */4747-struct stat64 {4848- unsigned long long st_dev; /* Device. */4949- unsigned long long st_ino; /* File serial number. */5050- unsigned int st_mode; /* File mode. */5151- unsigned int st_nlink; /* Link count. */5252- unsigned int st_uid; /* User ID of the file's owner. */5353- unsigned int st_gid; /* Group ID of the file's group. */5454- unsigned long long st_rdev; /* Device number, if device. */5555- unsigned short int __pad2;5656- long long st_size; /* Size of file, in bytes. */5757- long st_blksize; /* Optimal block size for I/O. */5858-5959- long long st_blocks; /* Number 512-byte blocks allocated. */6060- long st_atime; /* Time of last access. */6161- unsigned long st_atime_nsec;6262- long st_mtime; /* Time of last modification. */6363- unsigned long int st_mtime_nsec;6464- long st_ctime; /* Time of last status change. */6565- unsigned long int st_ctime_nsec;6666- unsigned long int __unused4;6767- unsigned long int __unused5;6868-};6969-#endif
-60
include/asm-ppc64/stat.h
···11-#ifndef _PPC64_STAT_H22-#define _PPC64_STAT_H33-44-/*55- * This program is free software; you can redistribute it and/or66- * modify it under the terms of the GNU General Public License77- * as published by the Free Software Foundation; either version88- * 2 of the License, or (at your option) any later version.99- */1010-1111-#include <linux/types.h>1212-1313-struct stat {1414- unsigned long st_dev;1515- ino_t st_ino;1616- nlink_t st_nlink;1717- mode_t st_mode;1818- uid_t st_uid;1919- gid_t st_gid;2020- unsigned long st_rdev;2121- off_t st_size;2222- unsigned long st_blksize;2323- unsigned long st_blocks;2424- unsigned long st_atime;2525- unsigned long st_atime_nsec;2626- unsigned long st_mtime;2727- unsigned long st_mtime_nsec;2828- unsigned long st_ctime;2929- unsigned long st_ctime_nsec;3030- unsigned long __unused4;3131- unsigned long __unused5;3232- unsigned long __unused6;3333-};3434-3535-#define STAT_HAVE_NSEC 13636-3737-/* This matches struct stat64 in glibc2.1. Only used for 32 bit. */3838-struct stat64 {3939- unsigned long st_dev; /* Device. */4040- unsigned long st_ino; /* File serial number. */4141- unsigned int st_mode; /* File mode. */4242- unsigned int st_nlink; /* Link count. */4343- unsigned int st_uid; /* User ID of the file's owner. */4444- unsigned int st_gid; /* Group ID of the file's group. */4545- unsigned long st_rdev; /* Device number, if device. */4646- unsigned short __pad2;4747- long st_size; /* Size of file, in bytes. */4848- int st_blksize; /* Optimal block size for I/O. */4949-5050- long st_blocks; /* Number 512-byte blocks allocated. */5151- int st_atime; /* Time of last access. */5252- int st_atime_nsec;5353- int st_mtime; /* Time of last modification. */5454- int st_mtime_nsec;5555- int st_ctime; /* Time of last status change. */5656- int st_ctime_nsec;5757- unsigned int __unused4;5858- unsigned int __unused5;5959-};6060-#endif