OSDN Git Service

0b368feea63ae9a350c325412f4442579f404e6d
[linuxjm/LDP_man-pages.git] / draft / man3 / getrpcent.3
1 .\" This page was taken from the 4.4BSD-Lite CDROM (BSD license)
2 .\"
3 .\" @(#)getrpcent.3n    2.2 88/08/02 4.0 RPCSRC; from 1.11 88/03/14 SMI
4 .\"
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>
9 .\"
10 .TH GETRPCENT 3 2008-08-19 "" "Linux Programmer's Manual"
11 .\"O .SH NAME
12 .SH 名前
13 .\"O getrpcent, getrpcbyname, getrpcbynumber, setrpcent, endrpcent \- get
14 .\"O RPC entry
15 getrpcent, getrpcbyname, getrpcbynumber, setrpcent, endrpcent \-
16 RPC エントリを取得する
17 .\"O .SH SYNOPSIS
18 .SH 書式
19 .nf
20 .B #include <netdb.h>
21
22 .BI "struct rpcent *getrpcent(void);"
23
24 .BI "struct rpcent *getrpcbyname(char *" name );
25
26 .BI "struct rpcent *getrpcbynumber(int " number );
27
28 .BI "void setrpcent(int " stayopen );
29
30 .BI "void endrpcent(void);"
31 .fi
32 .\"O .SH DESCRIPTION
33 .SH 説明
34 .LP
35 .BR getrpcent (),
36 .BR getrpcbyname (),
37 .\"O and
38 .BR getrpcbynumber ()
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.
42 はそれぞれ以下の構造体へのポインタを返す。
43 この構造体は RPC プログラム番号データベース
44 の各行のフィールドを含んでいる。
45 .in +4n
46 .nf
47
48 struct rpcent {
49     char  *r_name;     /* name of server for this RPC program */
50     char **r_aliases;  /* alias list */
51     long   r_number;   /* RPC program number */
52 };
53 .fi
54 .in
55 .LP
56 .\"O The members of this structure are:
57 この構造体のメンバーは以下の通り。
58 .RS 4
59 .TP 12
60 .I r_name
61 .\"O The name of the server for this RPC program.
62 この RPC プログラムのサーバの名前
63 .TP
64 .I r_aliases
65 .\"O A zero terminated list of alternate names for the RPC program.
66 RPC プログラムの別名のリスト。ゼロで終端されている。
67 .TP
68 .I r_number
69 .\"O The RPC program number for this service.
70 このサービスの RPC プログラム番号。
71 .RE
72 .LP
73 .\"O .BR getrpcent ()
74 .\"O reads the next entry from the database.
75 .\"O A connection is opened to the database if necessary.
76 .BR getrpcent ()
77 はファイルの次のエントリを読み込む。
78 必要ならばデータベースへの接続がオープンされる。
79 .LP
80 .\"O .BR setrpcent ()
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
86 .\"O .BR getrpc* ()
87 .\"O functions.
88 .BR setrpcent ()
89 はデータベースへの接続をオープンし、
90 次の読み込みエントリを先頭のエントリに設定する。
91 \fIstayopen\fP が 0 でない場合、
92 一つ一つの
93 .BR getrpc* ()
94 関数の呼び出し間でデータベースへの接続をクローズしない。
95 .LP
96 .\"O The
97 .\"O .BR endrpcent ()
98 .\"O function closes the connection to the database.
99 .BR endrpcent ()
100 はデータベースへの接続をクローズする。
101 .LP
102 .\"O .BR getrpcbyname ()
103 .\"O and
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.
108 .BR getrpcbyname ()
109
110 .BR getrpcbynumber ()
111 はファイルの最初から一致する RPC プログラム名かプログラム番号が
112 見つかるか、ファイルの最後 (end-of-file) に到達するまで、順番に
113 探していく。
114 .\"O .SH RETURN VALUE
115 .SH 返り値
116 .\"O On success,
117 .\"O .BR getrpcent (),
118 .\"O .BR getrpcbyname (),
119 .\"O and
120 .\"O .BR getrpcbynumber ()
121 .\"O return a pointer to a statically allocated
122 .\"O .I rpcent
123 .\"O structure.
124 成功すると、
125 .BR getrpcent (),
126 .BR getrpcbyname (),
127 .BR getrpcbynumber ()
128 は、静的に割り当てられた
129 .I rpcent
130 構造体へのポインタを返す。
131 .\"O A NULL pointer is returned on EOF or error.
132 EOF か エラーに遭遇した場合には NULL ポインタを返す。
133 .\"O .SH FILES
134 .SH ファイル
135 .TP
136 .I /etc/rpc
137 .\"O RPC program number database.
138 RPC プログラム番号データベース
139 .\"O .SH "CONFORMING TO"
140 .SH 準拠
141 .\"O Not in POSIX.1-2001.
142 .\"O Present on the BSDs, Solaris, and many other systems.
143 POSIX.1-2001 にはない。
144 BSD 系、Solaris や他の多くのシステムに存在する。
145 .\"O .SH BUGS
146 .SH バグ
147 .\"O All information
148 .\"O is contained in a static area
149 .\"O so it must be copied if it is
150 .\"O to be saved.
151 全ての情報は静的領域に格納される。
152 保存するためには全てをコピーする必要がある。
153 .\"O .SH "SEE ALSO"
154 .SH 関連項目
155 .BR getrpcent_r (3),
156 .BR rpc (5),
157 .BR rpcinfo (8),
158 .BR ypserv (8)