Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/sys
File: quota.h
/* This just represents the non-kernel parts of <linux/quota.h>.
[0] Fix | Delete
Copyright (C) 1998-2018 Free Software Foundation, Inc.
[1] Fix | Delete
This file is part of the GNU C Library.
[2] Fix | Delete
[3] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[4] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[5] Fix | Delete
License as published by the Free Software Foundation; either
[6] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[7] Fix | Delete
[8] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[9] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[10] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[11] Fix | Delete
Lesser General Public License for more details.
[12] Fix | Delete
[13] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[14] Fix | Delete
License along with the GNU C Library; if not, see
[15] Fix | Delete
<http://www.gnu.org/licenses/>. */
[16] Fix | Delete
[17] Fix | Delete
/*
[18] Fix | Delete
* Copyright (c) 1982, 1986 Regents of the University of California.
[19] Fix | Delete
* All rights reserved.
[20] Fix | Delete
*
[21] Fix | Delete
* This code is derived from software contributed to Berkeley by
[22] Fix | Delete
* Robert Elz at The University of Melbourne.
[23] Fix | Delete
*
[24] Fix | Delete
* Redistribution and use in source and binary forms, with or without
[25] Fix | Delete
* modification, are permitted provided that the following conditions
[26] Fix | Delete
* are met:
[27] Fix | Delete
* 1. Redistributions of source code must retain the above copyright
[28] Fix | Delete
* notice, this list of conditions and the following disclaimer.
[29] Fix | Delete
* 2. Redistributions in binary form must reproduce the above copyright
[30] Fix | Delete
* notice, this list of conditions and the following disclaimer in the
[31] Fix | Delete
* documentation and/or other materials provided with the distribution.
[32] Fix | Delete
* 4. Neither the name of the University nor the names of its contributors
[33] Fix | Delete
* may be used to endorse or promote products derived from this software
[34] Fix | Delete
* without specific prior written permission.
[35] Fix | Delete
*
[36] Fix | Delete
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
[37] Fix | Delete
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
[38] Fix | Delete
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
[39] Fix | Delete
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
[40] Fix | Delete
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
[41] Fix | Delete
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
[42] Fix | Delete
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
[43] Fix | Delete
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
[44] Fix | Delete
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
[45] Fix | Delete
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
[46] Fix | Delete
* SUCH DAMAGE.
[47] Fix | Delete
*/
[48] Fix | Delete
[49] Fix | Delete
#ifndef _SYS_QUOTA_H
[50] Fix | Delete
#define _SYS_QUOTA_H 1
[51] Fix | Delete
[52] Fix | Delete
#include <features.h>
[53] Fix | Delete
#include <sys/types.h>
[54] Fix | Delete
[55] Fix | Delete
#include <linux/quota.h>
[56] Fix | Delete
[57] Fix | Delete
/*
[58] Fix | Delete
* Convert diskblocks to blocks and the other way around.
[59] Fix | Delete
* currently only to fool the BSD source. :-)
[60] Fix | Delete
*/
[61] Fix | Delete
#define dbtob(num) ((num) << 10)
[62] Fix | Delete
#define btodb(num) ((num) >> 10)
[63] Fix | Delete
[64] Fix | Delete
/*
[65] Fix | Delete
* Convert count of filesystem blocks to diskquota blocks, meant for
[66] Fix | Delete
* filesystems where i_blksize != 1024.
[67] Fix | Delete
*/
[68] Fix | Delete
#define fs_to_dq_blocks(num, blksize) (((num) * (blksize)) / 1024)
[69] Fix | Delete
[70] Fix | Delete
/*
[71] Fix | Delete
* Definitions for disk quotas imposed on the average user
[72] Fix | Delete
* (big brother finally hits Linux).
[73] Fix | Delete
*
[74] Fix | Delete
* The following constants define the amount of time given a user
[75] Fix | Delete
* before the soft limits are treated as hard limits (usually resulting
[76] Fix | Delete
* in an allocation failure). The timer is started when the user crosses
[77] Fix | Delete
* their soft limit, it is reset when they go below their soft limit.
[78] Fix | Delete
*/
[79] Fix | Delete
#define MAX_IQ_TIME 604800 /* (7*24*60*60) 1 week */
[80] Fix | Delete
#define MAX_DQ_TIME 604800 /* (7*24*60*60) 1 week */
[81] Fix | Delete
[82] Fix | Delete
#define QUOTAFILENAME "quota"
[83] Fix | Delete
#define QUOTAGROUP "staff"
[84] Fix | Delete
[85] Fix | Delete
#define NR_DQHASH 43 /* Just an arbitrary number any suggestions ? */
[86] Fix | Delete
#define NR_DQUOTS 256 /* Number of quotas active at one time */
[87] Fix | Delete
[88] Fix | Delete
/* Old name for struct if_dqblk. */
[89] Fix | Delete
struct dqblk
[90] Fix | Delete
{
[91] Fix | Delete
__uint64_t dqb_bhardlimit; /* absolute limit on disk quota blocks alloc */
[92] Fix | Delete
__uint64_t dqb_bsoftlimit; /* preferred limit on disk quota blocks */
[93] Fix | Delete
__uint64_t dqb_curspace; /* current quota block count */
[94] Fix | Delete
__uint64_t dqb_ihardlimit; /* maximum # allocated inodes */
[95] Fix | Delete
__uint64_t dqb_isoftlimit; /* preferred inode limit */
[96] Fix | Delete
__uint64_t dqb_curinodes; /* current # allocated inodes */
[97] Fix | Delete
__uint64_t dqb_btime; /* time limit for excessive disk use */
[98] Fix | Delete
__uint64_t dqb_itime; /* time limit for excessive files */
[99] Fix | Delete
__uint32_t dqb_valid; /* bitmask of QIF_* constants */
[100] Fix | Delete
};
[101] Fix | Delete
[102] Fix | Delete
/*
[103] Fix | Delete
* Shorthand notation.
[104] Fix | Delete
*/
[105] Fix | Delete
#define dq_bhardlimit dq_dqb.dqb_bhardlimit
[106] Fix | Delete
#define dq_bsoftlimit dq_dqb.dqb_bsoftlimit
[107] Fix | Delete
#define dq_curspace dq_dqb.dqb_curspace
[108] Fix | Delete
#define dq_valid dq_dqb.dqb_valid
[109] Fix | Delete
#define dq_ihardlimit dq_dqb.dqb_ihardlimit
[110] Fix | Delete
#define dq_isoftlimit dq_dqb.dqb_isoftlimit
[111] Fix | Delete
#define dq_curinodes dq_dqb.dqb_curinodes
[112] Fix | Delete
#define dq_btime dq_dqb.dqb_btime
[113] Fix | Delete
#define dq_itime dq_dqb.dqb_itime
[114] Fix | Delete
[115] Fix | Delete
#define dqoff(UID) ((__loff_t)((UID) * sizeof (struct dqblk)))
[116] Fix | Delete
[117] Fix | Delete
/* Old name for struct if_dqinfo. */
[118] Fix | Delete
struct dqinfo
[119] Fix | Delete
{
[120] Fix | Delete
__uint64_t dqi_bgrace;
[121] Fix | Delete
__uint64_t dqi_igrace;
[122] Fix | Delete
__uint32_t dqi_flags;
[123] Fix | Delete
__uint32_t dqi_valid;
[124] Fix | Delete
};
[125] Fix | Delete
[126] Fix | Delete
__BEGIN_DECLS
[127] Fix | Delete
[128] Fix | Delete
extern int quotactl (int __cmd, const char *__special, int __id,
[129] Fix | Delete
__caddr_t __addr) __THROW;
[130] Fix | Delete
[131] Fix | Delete
__END_DECLS
[132] Fix | Delete
[133] Fix | Delete
#endif /* sys/quota.h */
[134] Fix | Delete
[135] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function