Back to index

glibc  2.9
Classes | Defines | Functions
quota.h File Reference
#include <features.h>
#include <sys/types.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dqblk
struct  dqinfo

Defines

#define _LINUX_QUOTA_VERSION   2
#define dbtob(num)   ((num) << 10)
#define btodb(num)   ((num) >> 10)
#define fs_to_dq_blocks(num, blksize)   (((num) * (blksize)) / BLOCK_SIZE)
#define MAX_IQ_TIME   604800 /* (7*24*60*60) 1 week */
#define MAX_DQ_TIME   604800 /* (7*24*60*60) 1 week */
#define MAXQUOTAS   2
#define USRQUOTA   0 /* element used for user quotas */
#define GRPQUOTA   1 /* element used for group quotas */
#define INITQFNAMES
#define QUOTAFILENAME   "quota"
#define QUOTAGROUP   "staff"
#define NR_DQHASH   43 /* Just an arbitrary number any suggestions ? */
#define NR_DQUOTS   256 /* Number of quotas active at one time */
#define SUBCMDMASK   0x00ff
#define SUBCMDSHIFT   8
#define QCMD(cmd, type)   (((cmd) << SUBCMDSHIFT) | ((type) & SUBCMDMASK))
#define Q_SYNC   0x800001 /* sync disk copy of a filesystems quotas */
#define Q_QUOTAON   0x800002 /* turn quotas on */
#define Q_QUOTAOFF   0x800003 /* turn quotas off */
#define Q_GETFMT   0x800004 /* get quota format used on given filesystem */
#define Q_GETINFO   0x800005 /* get information about quota files */
#define Q_SETINFO   0x800006 /* set information about quota files */
#define Q_GETQUOTA   0x800007 /* get user quota structure */
#define Q_SETQUOTA   0x800008 /* set user quota structure */
#define QIF_BLIMITS   1
#define QIF_SPACE   2
#define QIF_ILIMITS   4
#define QIF_INODES   8
#define QIF_BTIME   16
#define QIF_ITIME   32
#define QIF_LIMITS   (QIF_BLIMITS | QIF_ILIMITS)
#define QIF_USAGE   (QIF_SPACE | QIF_INODES)
#define QIF_TIMES   (QIF_BTIME | QIF_ITIME)
#define QIF_ALL   (QIF_LIMITS | QIF_USAGE | QIF_TIMES)
#define dq_bhardlimit   dq_dqb.dqb_bhardlimit
#define dq_bsoftlimit   dq_dqb.dqb_bsoftlimit
#define dq_curspace   dq_dqb.dqb_curspace
#define dq_valid   dq_dqb.dqb_valid
#define dq_ihardlimit   dq_dqb.dqb_ihardlimit
#define dq_isoftlimit   dq_dqb.dqb_isoftlimit
#define dq_curinodes   dq_dqb.dqb_curinodes
#define dq_btime   dq_dqb.dqb_btime
#define dq_itime   dq_dqb.dqb_itime
#define dqoff(UID)   ((loff_t)((UID) * sizeof (struct dqblk)))
#define IIF_BGRACE   1
#define IIF_IGRACE   2
#define IIF_FLAGS   4
#define IIF_ALL   (IIF_BGRACE | IIF_IGRACE | IIF_FLAGS)

Functions

__BEGIN_DECLS int quotactl (int __cmd, const char *__special, int __id, caddr_t __addr) __THROW

Class Documentation

struct dqblk

Definition at line 155 of file quota.h.

Class Members
u_int64_t dqb_bhardlimit
u_int64_t dqb_bsoftlimit
u_int64_t dqb_btime
u_int64_t dqb_curinodes
u_int64_t dqb_curspace
u_int64_t dqb_ihardlimit
u_int64_t dqb_isoftlimit
u_int64_t dqb_itime
u_int32_t dqb_valid
struct dqinfo

Definition at line 209 of file quota.h.

Class Members
u_int64_t dqi_bgrace
u_int32_t dqi_flags
u_int64_t dqi_igrace
u_int32_t dqi_valid

Define Documentation

#define _LINUX_QUOTA_VERSION   2

Definition at line 46 of file quota.h.

#define btodb (   num)    ((num) >> 10)

Definition at line 54 of file quota.h.

#define dbtob (   num)    ((num) << 10)

Definition at line 53 of file quota.h.

#define dq_bhardlimit   dq_dqb.dqb_bhardlimit

Definition at line 172 of file quota.h.

#define dq_bsoftlimit   dq_dqb.dqb_bsoftlimit

Definition at line 173 of file quota.h.

#define dq_btime   dq_dqb.dqb_btime

Definition at line 183 of file quota.h.

#define dq_curinodes   dq_dqb.dqb_curinodes

Definition at line 182 of file quota.h.

#define dq_curspace   dq_dqb.dqb_curspace

Definition at line 177 of file quota.h.

#define dq_ihardlimit   dq_dqb.dqb_ihardlimit

Definition at line 180 of file quota.h.

#define dq_isoftlimit   dq_dqb.dqb_isoftlimit

Definition at line 181 of file quota.h.

#define dq_itime   dq_dqb.dqb_itime

Definition at line 184 of file quota.h.

#define dq_valid   dq_dqb.dqb_valid

Definition at line 178 of file quota.h.

#define dqoff (   UID)    ((loff_t)((UID) * sizeof (struct dqblk)))

Definition at line 186 of file quota.h.

#define fs_to_dq_blocks (   num,
  blksize 
)    (((num) * (blksize)) / BLOCK_SIZE)

Definition at line 60 of file quota.h.

#define GRPQUOTA   1 /* element used for group quotas */

Definition at line 76 of file quota.h.

#define IIF_ALL   (IIF_BGRACE | IIF_IGRACE | IIF_FLAGS)

Definition at line 207 of file quota.h.

#define IIF_BGRACE   1

Definition at line 204 of file quota.h.

#define IIF_FLAGS   4

Definition at line 206 of file quota.h.

#define IIF_IGRACE   2

Definition at line 205 of file quota.h.

#define INITQFNAMES
Value:
{ \
   "user",      /* USRQUOTA */ \
   "group",   /* GRPQUOTA */ \
   "undefined", \
};

Definition at line 81 of file quota.h.

#define MAX_DQ_TIME   604800 /* (7*24*60*60) 1 week */

Definition at line 72 of file quota.h.

#define MAX_IQ_TIME   604800 /* (7*24*60*60) 1 week */

Definition at line 71 of file quota.h.

#define MAXQUOTAS   2

Definition at line 74 of file quota.h.

#define NR_DQHASH   43 /* Just an arbitrary number any suggestions ? */

Definition at line 90 of file quota.h.

#define NR_DQUOTS   256 /* Number of quotas active at one time */

Definition at line 91 of file quota.h.

#define Q_GETFMT   0x800004 /* get quota format used on given filesystem */

Definition at line 117 of file quota.h.

#define Q_GETINFO   0x800005 /* get information about quota files */

Definition at line 118 of file quota.h.

#define Q_GETQUOTA   0x800007 /* get user quota structure */

Definition at line 120 of file quota.h.

#define Q_QUOTAOFF   0x800003 /* turn quotas off */

Definition at line 116 of file quota.h.

#define Q_QUOTAON   0x800002 /* turn quotas on */

Definition at line 115 of file quota.h.

#define Q_SETINFO   0x800006 /* set information about quota files */

Definition at line 119 of file quota.h.

#define Q_SETQUOTA   0x800008 /* set user quota structure */

Definition at line 121 of file quota.h.

#define Q_SYNC   0x800001 /* sync disk copy of a filesystems quotas */

Definition at line 114 of file quota.h.

#define QCMD (   cmd,
  type 
)    (((cmd) << SUBCMDSHIFT) | ((type) & SUBCMDMASK))

Definition at line 101 of file quota.h.

#define QIF_ALL   (QIF_LIMITS | QIF_USAGE | QIF_TIMES)

Definition at line 153 of file quota.h.

#define QIF_BLIMITS   1

Definition at line 144 of file quota.h.

#define QIF_BTIME   16

Definition at line 148 of file quota.h.

#define QIF_ILIMITS   4

Definition at line 146 of file quota.h.

#define QIF_INODES   8

Definition at line 147 of file quota.h.

#define QIF_ITIME   32

Definition at line 149 of file quota.h.

Definition at line 150 of file quota.h.

#define QIF_SPACE   2

Definition at line 145 of file quota.h.

#define QIF_TIMES   (QIF_BTIME | QIF_ITIME)

Definition at line 152 of file quota.h.

#define QIF_USAGE   (QIF_SPACE | QIF_INODES)

Definition at line 151 of file quota.h.

#define QUOTAFILENAME   "quota"

Definition at line 87 of file quota.h.

#define QUOTAGROUP   "staff"

Definition at line 88 of file quota.h.

#define SUBCMDMASK   0x00ff

Definition at line 99 of file quota.h.

#define SUBCMDSHIFT   8

Definition at line 100 of file quota.h.

#define USRQUOTA   0 /* element used for user quotas */

Definition at line 75 of file quota.h.


Function Documentation

__BEGIN_DECLS int quotactl ( int  __cmd,
const char *  __special,
int  __id,
caddr_t  __addr 
)