1655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/**************************************************************************** 2655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng **************************************************************************** 3655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** 4655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** This header was automatically generated from a Linux kernel header 5655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** of the same name, to make information necessary for userspace to 6655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** call into the kernel available to libc. It contains only constants, 7655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** structures, and macros generated from the original header, and thus, 8655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** contains no copyrightable information. 9655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** 10655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** To edit the content of this header, modify the corresponding 11655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** source file (e.g. under external/kernel-headers/original/) then 12655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** run bionic/libc/kernel/tools/update_all.py 13655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** 14655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** Any manual change here will be lost the next time this script will 15655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** be run. You've been warned! 16655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** 17655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng **************************************************************************** 18655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ****************************************************************************/ 19655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#ifndef _UAPI_LINUX_QUOTA_ 20655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define _UAPI_LINUX_QUOTA_ 21655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/errno.h> 22655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/types.h> 23655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define __DQUOT_VERSION__ "dquot_6.5.2" 25655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define MAXQUOTAS 2 26655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define USRQUOTA 0 27655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define GRPQUOTA 1 28655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define INITQFNAMES { "user", "group", "undefined", \ 30d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao}; 31655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define SUBCMDMASK 0x00ff 32655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define SUBCMDSHIFT 8 33d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define QCMD(cmd,type) (((cmd) << SUBCMDSHIFT) | ((type) & SUBCMDMASK)) 34655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 35655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define Q_SYNC 0x800001 36655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define Q_QUOTAON 0x800002 37655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define Q_QUOTAOFF 0x800003 38655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define Q_GETFMT 0x800004 39655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 40655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define Q_GETINFO 0x800005 41655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define Q_SETINFO 0x800006 42655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define Q_GETQUOTA 0x800007 43655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define Q_SETQUOTA 0x800008 44655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 45655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QFMT_VFS_OLD 1 46655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QFMT_VFS_V0 2 47655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QFMT_OCFS2 3 48655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QFMT_VFS_V1 4 49655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 50655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QIF_DQBLKSIZE_BITS 10 51655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QIF_DQBLKSIZE (1 << QIF_DQBLKSIZE_BITS) 52655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengenum { 53d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao QIF_BLIMITS_B = 0, 54655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 55d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao QIF_SPACE_B, 56d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao QIF_ILIMITS_B, 57d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao QIF_INODES_B, 58d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao QIF_BTIME_B, 59655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 60d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao QIF_ITIME_B, 61655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng}; 62655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QIF_BLIMITS (1 << QIF_BLIMITS_B) 63655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QIF_SPACE (1 << QIF_SPACE_B) 64655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 65655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QIF_ILIMITS (1 << QIF_ILIMITS_B) 66655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QIF_INODES (1 << QIF_INODES_B) 67655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QIF_BTIME (1 << QIF_BTIME_B) 68655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QIF_ITIME (1 << QIF_ITIME_B) 69655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 70655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QIF_LIMITS (QIF_BLIMITS | QIF_ILIMITS) 71655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QIF_USAGE (QIF_SPACE | QIF_INODES) 72655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QIF_TIMES (QIF_BTIME | QIF_ITIME) 73655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QIF_ALL (QIF_LIMITS | QIF_USAGE | QIF_TIMES) 74655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 75655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct if_dqblk { 76d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 dqb_bhardlimit; 77d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 dqb_bsoftlimit; 78d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 dqb_curspace; 79655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 80d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 dqb_ihardlimit; 81d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 dqb_isoftlimit; 82d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 dqb_curinodes; 83d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 dqb_btime; 84655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 85d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 dqb_itime; 86d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 dqb_valid; 87655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng}; 88655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IIF_BGRACE 1 89655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 90655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IIF_IGRACE 2 91655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IIF_FLAGS 4 92655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IIF_ALL (IIF_BGRACE | IIF_IGRACE | IIF_FLAGS) 93655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct if_dqinfo { 94655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 95d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 dqi_bgrace; 96d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 dqi_igrace; 97d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 dqi_flags; 98d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 dqi_valid; 99655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 100655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng}; 101655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_NOWARN 0 102655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_IHARDWARN 1 103655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_ISOFTLONGWARN 2 104655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 105655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_ISOFTWARN 3 106655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_BHARDWARN 4 107655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_BSOFTLONGWARN 5 108655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_BSOFTWARN 6 109655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 110655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_IHARDBELOW 7 111655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_ISOFTBELOW 8 112655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_BHARDBELOW 9 113655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_BSOFTBELOW 10 114655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 115655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengenum { 116d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao QUOTA_NL_C_UNSPEC, 117d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao QUOTA_NL_C_WARNING, 118d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __QUOTA_NL_C_MAX, 119655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 120655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng}; 121655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_C_MAX (__QUOTA_NL_C_MAX - 1) 122655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengenum { 123d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao QUOTA_NL_A_UNSPEC, 124655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 125d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao QUOTA_NL_A_QTYPE, 126d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao QUOTA_NL_A_EXCESS_ID, 127d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao QUOTA_NL_A_WARNING, 128d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao QUOTA_NL_A_DEV_MAJOR, 129655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 130d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao QUOTA_NL_A_DEV_MINOR, 131d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao QUOTA_NL_A_CAUSED_ID, 132d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __QUOTA_NL_A_MAX, 133655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng}; 134655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 135655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_A_MAX (__QUOTA_NL_A_MAX - 1) 136655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#endif 137