1 /****************************************************************************
2 ****************************************************************************
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.
10 ****************************************************************************
11 ****************************************************************************/
15 #include <linux/errno.h>
16 #include <linux/types.h>
18 #define __DQUOT_VERSION__ "dquot_6.5.1"
19 #define __DQUOT_NUM_VERSION__ 6*10000+5*100+1
21 typedef __kernel_uid32_t qid_t;
22 typedef __u64 qsize_t;
24 #define QUOTABLOCK_BITS 10
25 #define QUOTABLOCK_SIZE (1 << QUOTABLOCK_BITS)
27 #define qb2kb(x) ((x) << (QUOTABLOCK_BITS-10))
28 #define kb2qb(x) ((x) >> (QUOTABLOCK_BITS-10))
29 #define toqb(x) (((x) + QUOTABLOCK_SIZE - 1) >> QUOTABLOCK_BITS)
35 #define INITQFNAMES { "user", "group", "undefined", };
37 #define SUBCMDMASK 0x00ff
39 #define QCMD(cmd, type) (((cmd) << SUBCMDSHIFT) | ((type) & SUBCMDMASK))
41 #define Q_SYNC 0x800001
42 #define Q_QUOTAON 0x800002
43 #define Q_QUOTAOFF 0x800003
44 #define Q_GETFMT 0x800004
45 #define Q_GETINFO 0x800005
46 #define Q_SETINFO 0x800006
47 #define Q_GETQUOTA 0x800007
48 #define Q_SETQUOTA 0x800008
56 #define QIF_LIMITS (QIF_BLIMITS | QIF_ILIMITS)
57 #define QIF_USAGE (QIF_SPACE | QIF_INODES)
58 #define QIF_TIMES (QIF_BTIME | QIF_ITIME)
59 #define QIF_ALL (QIF_LIMITS | QIF_USAGE | QIF_TIMES)
76 #define IIF_ALL (IIF_BGRACE | IIF_IGRACE | IIF_FLAGS)
85 #include <sys/cdefs.h>