File: quotactl.2

package info (click to toggle)
manpages-ja 0.5.0.0.20080615-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 20,508 kB
  • ctags: 1
  • sloc: sh: 13,690; perl: 157; makefile: 114
file content (241 lines) | stat: -rw-r--r-- 5,791 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" Copyright (C) 1996 Andries Brouwer (aeb@cwi.nl)
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\"
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date.  The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein.  The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" FIXME There is much that is missing and/or out of date in this page.
.\" As things stand the page more or less documents Linux 2.2 reality:
.\"
.\" Linux 2.2 has:
.\"
.\"	Q_GETQUOTA
.\"	Q_GETSTATS
.\"	Q_QUOTAOFF
.\"	Q_QUOTAON
.\"	Q_RSQUASH (not currently documented)
.\"	Q_SETQLIM
.\"	Q_SETQUOTA
.\"	Q_SETUSE
.\"	Q_SYNC
.\"
.\" Linux 2.4 has:
.\"
.\"	Q_COMP_QUOTAOFF
.\"	Q_COMP_QUOTAON
.\"	Q_COMP_SYNC
.\"	Q_GETFMT
.\"	Q_GETINFO
.\"	Q_GETQUOTA
.\"	Q_QUOTAOFF
.\"	Q_QUOTAON
.\"	Q_SETINFO
.\"	Q_SETQUOTA
.\"	Q_SYNC
.\"	Q_V1_GETQUOTA Q_V1_GETSTATS Q_V1_RSQUASH Q_V1_SETQLIM
.\"	Q_V1_SETQUOTA Q_V1_SETUSE
.\"	Q_V2_GETINFO Q_V2_GETQUOTA Q_V2_SETFLAGS Q_V2_SETGRACE
.\"	Q_V2_SETINFO Q_V2_SETQUOTA Q_V2_SETUSE
.\"	Q_XGETQSTAT Q_XGETQUOTA Q_XQUOTAOFF Q_XQUOTAON Q_XQUOTARM
.\"	Q_XSETQLIM
.\"
.\" Linux 2.6.16 has:
.\"
.\"	Q_GETFMT
.\"	Q_GETINFO
.\"	Q_GETQUOTA
.\"	Q_QUOTAOFF
.\"	Q_QUOTAON
.\"	Q_SETINFO
.\"	Q_SETQUOTA
.\"	Q_SYNC
.\"	Q_XGETQSTAT
.\"	Q_XGETQUOTA
.\"	Q_XQUOTAOFF
.\"	Q_XQUOTAON
.\"	Q_XQUOTARM
.\"	Q_XQUOTASYNC
.\"	Q_XSETQLIM
.\"
.\" Japanese Version Copyright (c) 1997 Kazuyoshi Furutaka
.\"         all rights reserved.
.\" Translated Sun Dec 21 21:58:06 JST 1997
.\"         by Kazuyoshi Furutaka <furutaka@jb3.so-net.or.jp>
.\" Modified Wed Dec 24 22:17:00 JST 1997
.\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
.\" Updated & Modified Thu Feb 24 02:50:48 JST 2005
.\"         by Yuichi SATO <ysato444@yahoo.co.jp>
.\"
.TH QUOTACTL 2 2007-06-01 "Linux" "Linux Programmer's Manual"
.SH ̾
quotactl \- ǥ quota 
.SH 
.nf
.B #include <sys/types.h>
.br
.B #include <sys/quota.h>
.sp
.BI "int quotactl(int " cmd ", const char *" special ", int " id \
", caddr_t " addr );
.fi
.SH 
quota ƥϡơΥ桼ڤ/ޤϥ롼פФơ
եȡߥåȵڤӥϡɡߥåȤ롣Ϥե롦ƥ
Ѥǥ̤¤롣
ϡɡߥåȤĶ᤹뤳ȤϽʤ
եȡߥåȤĶ᤹뤬ٹȯ롣
ˡ(ǥեȤǤ) 콵ְʾ好եȡߥåȤĶᤷޤޤ
ƤϤǤʤ: 콵ַвᤷϥϡɡߥåȤĶᤷ
ߤʤ롣

.BR quotactl ()
ƥॳϤ quota ФԤʤ
ǽΰ
.BI QCMD( subcmd , type )
ȤǤ롣
.I type
ˤϡ桼 quota ˤĤƤ
.B USRQUOTA
򡢥롼 quota ˤĤƤ
.B GRPQUOTA
ꤹ롣
.I subcmd
ϰʲ롣

ܤΰ
.I special
 quota ŬѤǥХΥ֥åڥ롦եǤ롣
ΥǥХϥޥȤƤʤƤϤʤʤ

ܤΰ
.I id
ˤϡ(ɬפʾ) quota ŬѤ桼⤷ϥ롼פ ID ꤹ롣

ܤΰ
.I addr
ˤϡޥɤȤ˰ۤäǡ¤ΤΥɥ쥹ꤹ롣

.I subcmd
ϰʲΤ줫Ǥ
.TP 1.1i
.B Q_QUOTAON
quota ͭˤ롣
.I addr
ˤϡΥե롦ƥ quota ϿƤե
ѥ̾ꤹ롣
.TP
.B Q_QUOTAOFF
quota ̵ˤ롣
.TP
.B Q_GETQUOTA
ǥ̤ͤȸߤλ̤롣
.I addr

.RI ( <sys/quota.h>
줿) dqblk ¤Τؤݥ󥿤Ǥ롣
.TP
.B Q_SETQUOTA
ͤȸߤλ̤ꤹ:
.I addr
Ʊ塣
.TP
.B Q_SETQLIM
ͤꤹ;
.I addr
Ʊ塣
.TP
.B Q_SETUSE
̤ꤹ롣
.TP
.B Q_SYNC
ե롦ƥ quota եǥƱ롣
.TP
.B Q_GETSTATS
줿פ롣
.SH ֤
.BR quotactl ()
ϡˤ 0 ֤顼ϡ\-1 ֤ȤȤˡ
.I errno
Ŭڤͤꤵ롣
.SH 顼
.TP 0.9i
.B EACCES
quota ե뤬̤ΥեǤϤʤ
.TP
.B EBUSY
.B Q_QUOTAON
׵᤬ʤ줿quota(s) ϴͭˤʤäƤ롣
.TP
.B EFAULT
.I addr
ͤ˸꤬롣
.TP
.B EINVAL
.I type
Τ quota ηǤϤʤ⤷ϡ
.I special
ǥХդʤä
.TP
.B EIO
quota եؤɤ߽񤭤ʤ
.TP
.B EMFILE
ե򥪡ץ󤷤Ƥ: quota ե򥪡ץʤ
.TP
.B ENODEV
.I special
ޥȡơ֥˸ʤ
.TP
.B ENOPKG
quota ѲĤˤƥͥ򥳥ѥ뤷Ƥʤ
.TP
.B ENOTBLK
.I special
֥åڥ롦ǥХǤϤʤ
.TP
.B EPERM
ץ (Υե롦ƥ) root ΤΤǤϤʤ
ĥץȤΤΤȤϰۤʤ
.I id
Ф
.B Q_GETQUOTA
׵Ԥʤä
⤷ϡ
.BR Q_GETSTATS ,
.B Q_SYNC
ʳ׵᤬ʤ줿
.TP
.B ESRCH
quota ͭˤʤäƤʤե롦ƥФ
.BR Q_GETQUOTA ,
.BR Q_SETQUOTA ,
.BR Q_SETUSE ,
.B Q_SETQLIM
Τ줫׵᤬ʤ줿
.SH 
BSD
.SH Ϣ
.BR quota (1),
.BR getrlimit (2),
.BR setrlimit (2),
.BR ulimit (3),
.BR quotacheck (8),
.BR quotaon (8)