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 _UAPI_GENERIC_STATFS_H
     20 #define _UAPI_GENERIC_STATFS_H
     21 #include <linux/types.h>
     22 #ifndef __statfs_word
     23 #if __BITS_PER_LONG == 64
     24 #define __statfs_word __kernel_long_t
     25 #else
     26 #define __statfs_word __u32
     27 #endif
     28 #endif
     29 struct statfs {
     30   __statfs_word f_type;
     31   __statfs_word f_bsize;
     32   __statfs_word f_blocks;
     33   __statfs_word f_bfree;
     34   __statfs_word f_bavail;
     35   __statfs_word f_files;
     36   __statfs_word f_ffree;
     37   __kernel_fsid_t f_fsid;
     38   __statfs_word f_namelen;
     39   __statfs_word f_frsize;
     40   __statfs_word f_flags;
     41   __statfs_word f_spare[4];
     42 };
     43 #ifndef ARCH_PACK_STATFS64
     44 #define ARCH_PACK_STATFS64
     45 #endif
     46 struct statfs64 {
     47   __statfs_word f_type;
     48   __statfs_word f_bsize;
     49   __u64 f_blocks;
     50   __u64 f_bfree;
     51   __u64 f_bavail;
     52   __u64 f_files;
     53   __u64 f_ffree;
     54   __kernel_fsid_t f_fsid;
     55   __statfs_word f_namelen;
     56   __statfs_word f_frsize;
     57   __statfs_word f_flags;
     58   __statfs_word f_spare[4];
     59 } ARCH_PACK_STATFS64;
     60 #ifndef ARCH_PACK_COMPAT_STATFS64
     61 #define ARCH_PACK_COMPAT_STATFS64
     62 #endif
     63 struct compat_statfs64 {
     64   __u32 f_type;
     65   __u32 f_bsize;
     66   __u64 f_blocks;
     67   __u64 f_bfree;
     68   __u64 f_bavail;
     69   __u64 f_files;
     70   __u64 f_ffree;
     71   __kernel_fsid_t f_fsid;
     72   __u32 f_namelen;
     73   __u32 f_frsize;
     74   __u32 f_flags;
     75   __u32 f_spare[4];
     76 } ARCH_PACK_COMPAT_STATFS64;
     77 #endif
     78