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 \-
16 RPC ¥¨¥ó¥È¥ê¤ò¼èÆÀ¤¹¤ë
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.
42 ¤Ï¤½¤ì¤¾¤ì°Ê²¼¤Î¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¤òÊÖ¤¹¡£
43 ¤³¤Î¹½Â¤ÂÎ¤Ï RPC ¥×¥í¥°¥é¥àÈÖ¹æ¥Ç¡¼¥¿¥Ù¡¼¥¹
44 ¤Î³Æ¹Ô¤Î¥Õ¥£¡¼¥ë¥É¤ò´Þ¤ó¤Ç¤¤¤ë¡£
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:
57 ¤³¤Î¹½Â¤ÂΤΥá¥ó¥Ð¡¼¤Ï°Ê²¼¤ÎÄ̤ꡣ
61 .\"O The name of the server for this RPC program.
62 ¤³¤Î RPC ¥×¥í¥°¥é¥à¤Î¥µ¡¼¥Ð¤Î̾Á°
65 .\"O A zero terminated list of alternate names for the RPC program.
66 RPC ¥×¥í¥°¥é¥à¤ÎÊÌ̾¤Î¥ê¥¹¥È¡£¥¼¥í¤Ç½ªÃ¼¤µ¤ì¤Æ¤¤¤ë¡£
69 .\"O The RPC program number for this service.
70 ¤³¤Î¥µ¡¼¥Ó¥¹¤Î RPC ¥×¥í¥°¥é¥àÈֹ档
74 .\"O reads the next entry from the database.
75 .\"O A connection is opened to the database if necessary.
77 ¤Ï¥Õ¥¡¥¤¥ë¤Î¼¡¤Î¥¨¥ó¥È¥ê¤òÆɤ߹þ¤à¡£
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
89 ¤Ï¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ø¤ÎÀܳ¤ò¥ª¡¼¥×¥ó¤·¡¢
90 ¼¡¤ÎÆɤ߹þ¤ß¥¨¥ó¥È¥ê¤òÀèƬ¤Î¥¨¥ó¥È¥ê¤ËÀßÄꤹ¤ë¡£
91 \fIstayopen\fP ¤¬ 0 ¤Ç¤Ê¤¤¾ì¹ç¡¢
94 ´Ø¿ô¤Î¸Æ¤Ó½Ð¤·´Ö¤Ç¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ø¤ÎÀܳ¤ò¥¯¥í¡¼¥º¤·¤Ê¤¤¡£
98 .\"O function closes the connection to the database.
100 ¤Ï¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ø¤ÎÀܳ¤ò¥¯¥í¡¼¥º¤¹¤ë¡£
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 ()
128 ¤Ï¡¢ÀÅŪ¤Ë³ä¤êÅö¤Æ¤é¤ì¤¿
130 ¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¤òÊÖ¤¹¡£
131 .\"O A NULL pointer is returned on EOF or error.
132 EOF ¤« ¥¨¥é¡¼¤ËÁø¶ø¤·¤¿¾ì¹ç¤Ë¤Ï NULL ¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£
137 .\"O RPC program number database.
138 RPC ¥×¥í¥°¥é¥àÈÖ¹æ¥Ç¡¼¥¿¥Ù¡¼¥¹
139 .\"O .SH "CONFORMING TO"
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 ¤ä¾¤Î¿¤¯¤Î¥·¥¹¥Æ¥à¤Ë¸ºß¤¹¤ë¡£
148 .\"O is contained in a static area
149 .\"O so it must be copied if it is
151 Á´¤Æ¤Î¾ðÊó¤ÏÀÅŪÎΰè¤Ë³ÊǼ¤µ¤ì¤ë¡£
152 Êݸ¤¹¤ë¤¿¤á¤Ë¤ÏÁ´¤Æ¤ò¥³¥Ô¡¼¤¹¤ëɬÍפ¬¤¢¤ë¡£