OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / draft / man3 / getdtablesize.3
1 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
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 .\" Modified 2002-04-15 by Roger Luethi <rl@hellgate.ch> and aeb
26 .\"
27 .\"*******************************************************************
28 .\"
29 .\" This file was generated with po4a. Translate the source file.
30 .\"
31 .\"*******************************************************************
32 .TH GETDTABLESIZE 3 2013\-02\-05 Linux "Linux Programmer's Manual"
33 .SH 名前
34 getdtablesize \- ディスクリプタ・テーブルのサイズを取得する
35 .SH 書式
36 \fB#include <unistd.h>\fP
37 .sp
38 \fBint getdtablesize(void);\fP
39 .sp
40 .in -4n
41 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
42 .in
43 .sp
44 \fBgetdtablesize\fP():
45 .ad l
46 .RS 4
47 .PD 0
48 .TP  4
49 glibc 2.12 以降:
50 .nf
51 _BSD_SOURCE ||
52     !(_POSIX_C_SOURCE\ >=\ 200112L || _XOPEN_SOURCE\ >=\ 600)
53 .TP  4
54 .fi
55 glibc 2.12 より前: _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
56 .PD
57 .RE
58 .ad b
59 .SH 説明
60 \fBgetdtablesize\fP()  は 1 つのプロセスのオープンできるファイル数の最大値を返す。
61 返り値はファイルディスクリプタの取り得る最大値より 1 大きい値である。
62 .SH 返り値
63 プロセス毎にオープンできるファイル数の現在の制限値。
64 .SH エラー
65 Linux では、 \fBgetdtablesize\fP()  は \fBgetrlimit\fP(2)  で説明されているエラーを返すことがある。
66 下記の「注意」を参照のこと。
67 .SH 準拠
68 SVr4, 4.4BSD (\fBgetdtablesize\fP()  関数は 4.2BSD で最初に現われた)。 これは POSIX.1\-2001
69 で規定されていないので、 移植性のあるアプリケーションはこの呼び出しの代わりに \fIsysconf(_SC_OPEN_MAX)\fP を使うべきである。
70 .SH 注意
71 \fBgetdtablesize\fP()  は libc のライブラリ関数として実装されている。glibc 版は \fBgetrlimit\fP(2)
72 を呼び出して、現在の \fBRLIMIT_NOFILE\fP を返す。 呼び出しに失敗した場合は \fBOPEN_MAX\fP を返す。 libc4 と libc5
73 では \fBOPEN_MAX\fP (Linux 0.98.4 以降では 256 に設定されている)  を返す。
74 .SH 関連項目
75 \fBclose\fP(2), \fBdup\fP(2), \fBgetrlimit\fP(2), \fBopen\fP(2)
76 .SH この文書について
77 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
78 である。プロジェクトの説明とバグ報告に関する情報は
79 http://www.kernel.org/doc/man\-pages/ に書かれている。