Home | History | Annotate | Download | only in asm-generic
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ***   To edit the content of this header, modify the corresponding
     11  ***   source file (e.g. under external/kernel-headers/original/) then
     12  ***   run bionic/libc/kernel/tools/update_all.py
     13  ***
     14  ***   Any manual change here will be lost the next time this script will
     15  ***   be run. You've been warned!
     16  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef __ASM_GENERIC_STAT_H
     20 #define __ASM_GENERIC_STAT_H
     21 #include <asm/bitsperlong.h>
     22 #define STAT_HAVE_NSEC 1
     23 struct stat {
     24   unsigned long st_dev;
     25   unsigned long st_ino;
     26   unsigned int st_mode;
     27   unsigned int st_nlink;
     28   unsigned int st_uid;
     29   unsigned int st_gid;
     30   unsigned long st_rdev;
     31   unsigned long __pad1;
     32   long st_size;
     33   int st_blksize;
     34   int __pad2;
     35   long st_blocks;
     36   long st_atime;
     37   unsigned long st_atime_nsec;
     38   long st_mtime;
     39   unsigned long st_mtime_nsec;
     40   long st_ctime;
     41   unsigned long st_ctime_nsec;
     42   unsigned int __unused4;
     43   unsigned int __unused5;
     44 };
     45 #if __BITS_PER_LONG != 64 || defined(__ARCH_WANT_STAT64)
     46 struct stat64 {
     47   unsigned long long st_dev;
     48   unsigned long long st_ino;
     49   unsigned int st_mode;
     50   unsigned int st_nlink;
     51   unsigned int st_uid;
     52   unsigned int st_gid;
     53   unsigned long long st_rdev;
     54   unsigned long long __pad1;
     55   long long st_size;
     56   int st_blksize;
     57   int __pad2;
     58   long long st_blocks;
     59   int st_atime;
     60   unsigned int st_atime_nsec;
     61   int st_mtime;
     62   unsigned int st_mtime_nsec;
     63   int st_ctime;
     64   unsigned int st_ctime_nsec;
     65   unsigned int __unused4;
     66   unsigned int __unused5;
     67 };
     68 #endif
     69 #endif
     70