+++ /dev/null
-.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
-.\"
-.\" %%%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
-.\"
-.\" References consulted:
-.\" Linux libc source code
-.\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
-.\" 386BSD man pages
-.\" Modified Sat Jul 24 19:26:03 1993 by Rik Faith (faith@cs.unc.edu)
-.\"*******************************************************************
-.\"
-.\" This file was generated with po4a. Translate the source file.
-.\"
-.\"*******************************************************************
-.\"
-.\" Japanese Version Copyright (c) 1998 NAKANO Takeo all rights reserved.
-.\" Translated Fri Mar 15 1998 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
-.\" Updated 2008-09-19, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
-.\"
-.TH GETPROTOENT 3 2008\-08\-19 GNU "Linux Programmer's Manual"
-.SH 名前
-getprotoent, getprotobyname, getprotobynumber, setprotoent, endprotoent \-
-プロトコルのエントリーを取得する
-.SH 書式
-.nf
-\fB#include <netdb.h>\fP
-.sp
-\fBstruct protoent *getprotoent(void);\fP
-.sp
-\fBstruct protoent *getprotobyname(const char *\fP\fIname\fP\fB);\fP
-.sp
-\fBstruct protoent *getprotobynumber(int \fP\fIproto\fP\fB);\fP
-.sp
-\fBvoid setprotoent(int \fP\fIstayopen\fP\fB);\fP
-.sp
-\fBvoid endprotoent(void);\fP
-.fi
-.SH 説明
-\fBgetprotoent\fP() 関数は、プロトコルのデータベース (\fBprotocols\fP(5) 参照) から次のエントリーを読み込み、
-そのエントリーを \fIprotoent\fP 構造体の要素別のフィールドに格納し、 その構造体を返す。 必要であれば、データベースへの接続がオープンされる。
-.PP
-\fBgetprotobyname\fP() 関数は、プロトコル名 \fIname\fP にマッチするエントリーを データベースから探し、そのエントリーを収めた
-\fIprotoent\fP 構造体を返す。 必要であれば、データベースへの接続がオープンされる。
-.PP
-\fBgetprotobynumber\fP() 関数は、プロトコル番号 \fInumber\fP にマッチするエントリーを
-データベースから探し、そのエントリーを収めた \fIprotoent\fP 構造体を返す。 必要であれば、データベースへの接続がオープンされる。
-.PP
-\fBsetprotoent\fP() 関数はデータベースへの接続をオープンし、 次の読み込みエントリーを先頭のエントリーに設定する。
-\fIstayopen\fP が 0 でない場合、 一つ一つの \fBgetproto*\fP() 関数の呼び出し間でデータベースへの接続をクローズしない。
-.PP
-\fBendprotoent\fP() 関数はデータベースへの接続をクローズする。
-.PP
-\fIprotoent\fP 構造体は \fI<netdb.h>\fP で以下のように定義されている。
-.sp
-.in +4n
-.nf
-struct protoent {
- char *p_name; /* official protocol name */
- char **p_aliases; /* alias list */
- int p_proto; /* protocol number */
-}
-.fi
-.in
-.PP
-\fIprotoent\fP 構造体のメンバーは以下の通り。
-.TP
-\fIp_name\fP
-プロトコルの正式名 (official name)。
-.TP
-\fIp_aliases\fP
-プロトコルの別名のリスト。 リストはヌルで終端される。
-.TP
-\fIp_proto\fP
-プロトコルの番号
-.SH 返り値
-\fBgetprotoent\fP(), \fBgetprotobyname\fP(), \fBgetprotobynumber\fP() 関数は、静的に割り当てられた
-\fIprotoent\fP 構造体へのポインターを返す。 エラーが起こったり、ファイルの最後に達した場合は NULL を返す。
-.SH ファイル
-.PD 0
-.TP
-\fI/etc/protocols\fP
-プロトコルのデータベースファイル
-.PD
-.SH 準拠
-4.3BSD, POSIX.1\-2001.
-.SH 関連項目
-\fBgetnetent\fP(3), \fBgetprotoent_r\fP(3), \fBgetservent\fP(3), \fBprotocols\fP(5)
-.SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
-である。プロジェクトの説明とバグ報告に関する情報は
-http://www.kernel.org/doc/man\-pages/ に書かれている。