1 .\" This page was taken from the 4.4BSD-Lite CDROM (BSD license)
3 .\" @(#)getrpcent.3n 2.2 88/08/02 4.0 RPCSRC; from 1.11 88/03/14 SMI
5 .\" Japanese Version Copyright (c) 1999 HANATAKA Shinya
6 .\" all rights reserved.
7 .\" Translated 2000-01-11, HANATAKA Shinya <hanataka@abyss.rim.or.jp>
8 .\" Updated 2008-09-19, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
10 .TH GETRPCENT 3 2008-08-19 "" "Linux Programmer's Manual"
13 .\"O getrpcent, getrpcbyname, getrpcbynumber, setrpcent, endrpcent \- get
15 getrpcent, getrpcbyname, getrpcbynumber, setrpcent, endrpcent \-
22 .BI "struct rpcent *getrpcent(void);"
24 .BI "struct rpcent *getrpcbyname(char *" name );
26 .BI "struct rpcent *getrpcbynumber(int " number );
28 .BI "void setrpcent(int " stayopen );
30 .BI "void endrpcent(void);"
39 .\"O each return a pointer to an object with the
40 .\"O following structure containing the broken-out
41 .\"O fields of an entry in the RPC program number data base.
43 この構造体は RPC プログラム番号データベース
49 char *r_name; /* name of server for this RPC program */
50 char **r_aliases; /* alias list */
51 long r_number; /* RPC program number */
56 .\"O The members of this structure are:
61 .\"O The name of the server for this RPC program.
65 .\"O A zero terminated list of alternate names for the RPC program.
66 RPC プログラムの別名のリスト。ゼロで終端されている。
69 .\"O The RPC program number for this service.
74 .\"O reads the next entry from the database.
75 .\"O A connection is opened to the database if necessary.
78 必要ならばデータベースへの接続がオープンされる。
81 .\"O function opens a connection to the database,
82 .\"O and sets the next entry to the first entry.
83 .\"O If \fIstayopen\fP is nonzero,
84 .\"O then the connection to the database
85 .\"O will not be closed between calls to one of the
90 次の読み込みエントリを先頭のエントリに設定する。
91 \fIstayopen\fP が 0 でない場合、
94 関数の呼び出し間でデータベースへの接続をクローズしない。
98 .\"O function closes the connection to the database.
102 .\"O .BR getrpcbyname ()
104 .\"O .BR getrpcbynumber ()
105 .\"O sequentially search from the beginning
106 .\"O of the file until a matching RPC program name or
107 .\"O program number is found, or until end-of-file is encountered.
110 .BR getrpcbynumber ()
111 はファイルの最初から一致する RPC プログラム名かプログラム番号が
112 見つかるか、ファイルの最後 (end-of-file) に到達するまで、順番に
114 .\"O .SH RETURN VALUE
117 .\"O .BR getrpcent (),
118 .\"O .BR getrpcbyname (),
120 .\"O .BR getrpcbynumber ()
121 .\"O return a pointer to a statically allocated
127 .BR getrpcbynumber ()
131 .\"O A NULL pointer is returned on EOF or error.
132 EOF か エラーに遭遇した場合には NULL ポインタを返す。
137 .\"O RPC program number database.
139 .\"O .SH "CONFORMING TO"
141 .\"O Not in POSIX.1-2001.
142 .\"O Present on the BSDs, Solaris, and many other systems.
144 BSD 系、Solaris や他の多くのシステムに存在する。
148 .\"O is contained in a static area
149 .\"O so it must be copied if it is
152 保存するためには全てをコピーする必要がある。