OSDN Git Service

7a7b26a7fa7e3fdf62262ac78ae33eb2f617fa06
[linuxjm/LDP_man-pages.git] / draft / man3 / ulimit.3
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright (C) 1996 Andries Brouwer (aeb@cwi.nl)
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" Moved to man3, aeb, 980612
26 .\"
27 .\" Japanese Version Copyright (c) 1998 NAKANO Takeo all rights reserved.
28 .\" Translated Sat 18 Jul 1998 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
29 .\" Modified Sun Dec 18 1998 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
30 .\"
31 .TH ULIMIT 3 2008-08-06 "Linux" "Linux Programmer's Manual"
32 .\"O .SH NAME
33 .\"O ulimit \- get and set user limits
34 .SH 名前
35 ulimit \- ユーザー制限を取得・設定する
36 .\"O .SH SYNOPSIS
37 .SH 書式
38 .B #include <ulimit.h>
39 .sp
40 .BI "long ulimit(int " cmd ", long " newlimit );
41 .\"O .SH DESCRIPTION
42 .SH 説明
43 .\"O Warning: This routine is obsolete.
44 .\"O Use
45 .\"O .BR getrlimit (2),
46 .\"O .BR setrlimit (2),
47 .\"O and
48 .\"O .BR sysconf (3)
49 .\"O instead.
50 注意: このルーチンは古い。
51 代わりに
52 .BR getrlimit (2),
53 .BR setrlimit (2),
54 .BR sysconf (3)
55 などを用いること。
56 .\"O For the shell command
57 .\"O .BR ulimit (),
58 .\"O see
59 .\"O .BR bash (1).
60 シェルコマンドとしての
61 .BR ulimit ()
62 については、
63 .BR bash (1)
64 を見ること。
65
66 .\"O The
67 .\"O .BR ulimit ()
68 .\"O call will get or set some limit for the calling process.
69 .BR ulimit ()
70 は呼び出し元のプロセスに関する制限のいくつかを取得・設定する。
71 .\"O The
72 .\"O .I cmd
73 .\"O argument can have one of the following values.
74 .I cmd
75 引き数には、以下の値のうちのどれか一つを与えることができる。
76 .TP
77 .B UL_GETFSIZE
78 .\"O Return the limit on the size of a file, in units of 512 bytes.
79 ファイルサイズに関する制限を返す。単位は 512 バイト。
80 .TP
81 .B UL_SETFSIZE
82 .\"O Set the limit on the size of a file.
83 ファイルサイズに関する制限を設定する。
84 .TP
85 .B 3
86 .\"O (Not implemented for Linux.)
87 .\"O Return the maximum possible address of the data segment.
88 (Linux では実装されていない)
89 データセグメントで指定できるアドレスの最大値を返す。
90 .TP
91 .B 4
92 .\"O (Implemented but no symbolic constant provided.)
93 .\"O Return the maximum number of files that the calling process can open.
94 (実装されているが、対応するシンボリックな定数は存在しない)
95 プロセスがオープンできるファイル数の最大値を返す。
96 .\"O .SH "RETURN VALUE"
97 .SH 返り値
98 .\"O On success,
99 .\"O .BR ulimit ()
100 .\"O returns a nonnegative value.
101 .\"O On error, \-1 is returned, and
102 .\"O .I errno
103 .\"O is set appropriately.
104 成功すると
105 .BR ulimit ()
106 は 0 または正の値を返す。
107 エラーが生じると \-1 を返し、
108 .I errno
109 を適切な値に設定する。
110 .\"O .SH ERRORS
111 .SH エラー
112 .TP
113 .B EPERM
114 .\"O A unprivileged process tried to increase a limit.
115 非特権プロセスが制限値を増加させようとした。
116 .\"O .SH "CONFORMING TO"
117 .SH 準拠
118 SVr4, POSIX.1-2001.
119 .\"O POSIX.1-2008 marks
120 .\"O .BR ulimit ()
121 .\"O as obsolete.
122 POSIX.1-2008 は
123 .BR ulimit ()
124 を廃止予定としている。
125 .\"O .SH "SEE ALSO"
126 .SH 関連項目
127 .BR bash (1),
128 .BR getrlimit (2),
129 .BR setrlimit (2),
130 .BR sysconf (3)