.\" Copyright (C) 1996 Andries Brouwer (aeb@cwi.nl) .\" .\" %%%LICENSE_START(VERBATIM) .\" 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. .\" %%%LICENSE_END .\" .\" Moved to man3, aeb, 980612 .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Japanese Version Copyright (c) 1998 NAKANO Takeo all rights reserved. .\" Translated Sat 18 Jul 1998 by NAKANO Takeo .\" Modified Sun Dec 18 1998 by NAKANO Takeo .\" .TH ULIMIT 3 2008\-08\-06 Linux "Linux Programmer's Manual" .SH 名前 ulimit \- ユーザー制限を取得・設定する .SH 書式 \fB#include \fP .sp \fBlong ulimit(int \fP\fIcmd\fP\fB, long \fP\fInewlimit\fP\fB);\fP .SH 説明 注意: このルーチンは古い。 代わりに \fBgetrlimit\fP(2), \fBsetrlimit\fP(2), \fBsysconf\fP(3) などを用いること。 シェルコマンドとしての \fBulimit\fP() については、 \fBbash\fP(1) を見ること。 \fBulimit\fP() は呼び出し元のプロセスに関する制限のいくつかを取得・設定する。 \fIcmd\fP 引き数には、以下の値のうちのどれか一つを与えることができる。 .TP \fBUL_GETFSIZE\fP ファイルサイズに関する制限を返す。単位は 512 バイト。 .TP \fBUL_SETFSIZE\fP ファイルサイズに関する制限を設定する。 .TP \fB3\fP (Linux では実装されていない) データセグメントで指定できるアドレスの最大値を返す。 .TP \fB4\fP (実装されているが、対応するシンボリックな定数は存在しない) プロセスがオープンできるファイル数の最大値を返す。 .SH 返り値 成功すると \fBulimit\fP() は 0 または正の値を返す。 エラーが生じると \-1 を返し、 \fIerrno\fP を適切な値に設定する。 .SH エラー .TP \fBEPERM\fP 非特権プロセスが制限値を増加させようとした。 .SH 準拠 SVr4, POSIX.1\-2001. POSIX.1\-2008 は \fBulimit\fP() を廃止予定としている。 .SH 関連項目 \fBbash\fP(1), \fBgetrlimit\fP(2), \fBsetrlimit\fP(2), \fBsysconf\fP(3) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部 である。プロジェクトの説明とバグ報告に関する情報は http://www.kernel.org/doc/man\-pages/ に書かれている。