1 .\" This page was taken from the 4.4BSD-Lite CDROM (BSD license)
3 .\" @(#)getrpcport.3r 2.2 88/08/02 4.0 RPCSRC; from 1.12 88/02/26 SMI
5 .\" Japanese Version Copyright (c) 1999 HANATAKA Shinya
6 .\" all rights reserved.
7 .\" Translated Tue Jan 11 00:56:31 JST 2000
8 .\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
10 .TH GETRPCPORT 3 2007-12-23 "" "Linux Programmer's Manual"
13 .\"O getrpcport \- get RPC port number
14 getrpcport \- RPC ¥Ý¡¼¥ÈÈÖ¹æ¤ò¼èÆÀ¤¹¤ë
18 .BI "int getrpcport(char *" host ", int " prognum ", int " versnum \
24 .\"O returns the port number for version
26 .\"O of the RPC program
30 .\"O and using protocol
36 ¥×¥í¥È¥³¥ë¤ò»ÈÍѤ·¤Æ¤¤¤ë¥Ð¡¼¥¸¥ç¥ó
41 .\"O It returns 0 if it cannot contact the portmapper, or if
43 .\"O is not registered.
46 .\"O is registered but not with version
48 .\"O it will still return a port number (for some version of the program)
49 .\"O indicating that the program is indeed registered.
50 .\"O The version mismatch will be detected upon the first call to the service.
51 ¥Ý¡¼¥È¥Þ¥Ã¥Ñ¡¼¤ÈÏ¢Íí¤¬¼è¤ì¤Ê¤¤¾ì¹ç¤ä
53 ¤¬ÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï 0 ¤òÊÖ¤¹¡£
55 ¤¬ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¤¬¡¢¥Ð¡¼¥¸¥ç¥ó
57 ¤Ç¤Ê¤¤¾ì¹ç¤Ë¤â¡¢¤½¤Î¥×¥í¥°¥é¥à¤¬¼ÂºÝ¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¤³¤È¤ò¼¨¤¹¤¿¤á¤Ë
58 (¤½¤Î¥×¥í¥°¥é¥à¤Î¥Ð¡¼¥¸¥ç¥ó¤Î)¥Ý¡¼¥ÈÈÖ¹æ¤òÊÖ¤¹¡£
59 ¥Ð¡¼¥¸¥ç¥ó¤ÎÉÔ°ìÃפϺǽé¤Ë¤½¤Î¥µ¡¼¥Ó¥¹¤ò¸Æ¤Ó½Ð¤·¤¿»þ¤Ë¸¡½Ð¤µ¤ì¤ë¡£
60 .\"O .SH "CONFORMING TO"
62 .\"O Not in POSIX.1-2001.
63 .\"O Present on the BSDs, Solaris, and many other systems.
64 POSIX.1-2001 ¤Ë¤Ï¤Ê¤¤¡£
65 BSD ·Ï¡¢Solaris ¤ä¾¤Î¿¤¯¤Î¥·¥¹¥Æ¥à¤Ë¸ºß¤¹¤ë¡£