OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / man3 / ulimit.3
1 .\" Copyright (C) 1996 Andries Brouwer (aeb@cwi.nl)
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\" Moved to man3, aeb, 980612
26 .\"
27 .\"*******************************************************************
28 .\"
29 .\" This file was generated with po4a. Translate the source file.
30 .\"
31 .\"*******************************************************************
32 .TH ULIMIT 3 2008\-08\-06 Linux "Linux Programmer's Manual"
33 .SH 名前
34 ulimit \- ユーザー制限を取得・設定する
35 .SH 書式
36 \fB#include <ulimit.h>\fP
37 .sp
38 \fBlong ulimit(int \fP\fIcmd\fP\fB, long \fP\fInewlimit\fP\fB);\fP
39 .SH 説明
40 注意: このルーチンは古い。 代わりに \fBgetrlimit\fP(2), \fBsetrlimit\fP(2), \fBsysconf\fP(3)
41 などを用いること。 シェルコマンドとしての \fBulimit\fP()  については、 \fBbash\fP(1)  を見ること。
42
43 \fBulimit\fP()  は呼び出し元のプロセスに関する制限のいくつかを取得・設定する。 \fIcmd\fP
44 引き数には、以下の値のうちのどれか一つを与えることができる。
45 .TP 
46 \fBUL_GETFSIZE\fP
47 ファイルサイズに関する制限を返す。単位は 512 バイト。
48 .TP 
49 \fBUL_SETFSIZE\fP
50 ファイルサイズに関する制限を設定する。
51 .TP 
52 \fB3\fP
53 (Linux では実装されていない)  データセグメントで指定できるアドレスの最大値を返す。
54 .TP 
55 \fB4\fP
56 (実装されているが、対応するシンボリックな定数は存在しない)  プロセスがオープンできるファイル数の最大値を返す。
57 .SH 返り値
58 成功すると \fBulimit\fP()  は 0 または正の値を返す。 エラーが生じると \-1 を返し、 \fIerrno\fP を適切な値に設定する。
59 .SH エラー
60 .TP 
61 \fBEPERM\fP
62 非特権プロセスが制限値を増加させようとした。
63 .SH 準拠
64 SVr4, POSIX.1\-2001.  POSIX.1\-2008 は \fBulimit\fP()  を廃止予定としている。
65 .SH 関連項目
66 \fBbash\fP(1), \fBgetrlimit\fP(2), \fBsetrlimit\fP(2), \fBsysconf\fP(3)
67 .SH この文書について
68 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
69 である。プロジェクトの説明とバグ報告に関する情報は
70 http://www.kernel.org/doc/man\-pages/ に書かれている。