• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 _LINUX_QUOTA_
20 #define _LINUX_QUOTA_
21 #include <linux/errno.h>
22 #include <linux/types.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define __DQUOT_VERSION__ "dquot_6.5.1"
25 #define __DQUOT_NUM_VERSION__ 6*10000+5*100+1
26 typedef __kernel_uid32_t qid_t;
27 typedef __u64 qsize_t;
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define QUOTABLOCK_BITS 10
30 #define QUOTABLOCK_SIZE (1 << QUOTABLOCK_BITS)
31 #define qb2kb(x) ((x) << (QUOTABLOCK_BITS-10))
32 #define kb2qb(x) ((x) >> (QUOTABLOCK_BITS-10))
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define toqb(x) (((x) + QUOTABLOCK_SIZE - 1) >> QUOTABLOCK_BITS)
35 #define MAXQUOTAS 2
36 #define USRQUOTA 0
37 #define GRPQUOTA 1
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define INITQFNAMES {   "user",     "group",     "undefined",  };
40 #define SUBCMDMASK 0x00ff
41 #define SUBCMDSHIFT 8
42 #define QCMD(cmd, type) (((cmd) << SUBCMDSHIFT) | ((type) & SUBCMDMASK))
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define Q_SYNC 0x800001
45 #define Q_QUOTAON 0x800002
46 #define Q_QUOTAOFF 0x800003
47 #define Q_GETFMT 0x800004
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define Q_GETINFO 0x800005
50 #define Q_SETINFO 0x800006
51 #define Q_GETQUOTA 0x800007
52 #define Q_SETQUOTA 0x800008
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #define QIF_BLIMITS 1
55 #define QIF_SPACE 2
56 #define QIF_ILIMITS 4
57 #define QIF_INODES 8
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 #define QIF_BTIME 16
60 #define QIF_ITIME 32
61 #define QIF_LIMITS (QIF_BLIMITS | QIF_ILIMITS)
62 #define QIF_USAGE (QIF_SPACE | QIF_INODES)
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #define QIF_TIMES (QIF_BTIME | QIF_ITIME)
65 #define QIF_ALL (QIF_LIMITS | QIF_USAGE | QIF_TIMES)
66 struct if_dqblk {
67  __u64 dqb_bhardlimit;
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69  __u64 dqb_bsoftlimit;
70  __u64 dqb_curspace;
71  __u64 dqb_ihardlimit;
72  __u64 dqb_isoftlimit;
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74  __u64 dqb_curinodes;
75  __u64 dqb_btime;
76  __u64 dqb_itime;
77  __u32 dqb_valid;
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 };
80 #define IIF_BGRACE 1
81 #define IIF_IGRACE 2
82 #define IIF_FLAGS 4
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 #define IIF_ALL (IIF_BGRACE | IIF_IGRACE | IIF_FLAGS)
85 struct if_dqinfo {
86  __u64 dqi_bgrace;
87  __u64 dqi_igrace;
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89  __u32 dqi_flags;
90  __u32 dqi_valid;
91 };
92 #include <sys/cdefs.h>
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 #endif
95