This section is based on catpages contributed by Mainichi Communications, Inc. Translated by: MYCOM team Converted by: Japanese Online Manual Project <man-jp@jp.FreeBSD.ORG> Submitted by: Kazuo Horikawa <k-horik@yk.rim.or.jp>
144 lines
4.4 KiB
Groff
144 lines
4.4 KiB
Groff
.\" Copyright (c) 1983, 1991, 1993
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
.\" must display the following acknowledgement:
|
|
.\" This product includes software developed by the University of
|
|
.\" California, Berkeley and its contributors.
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
.\" may be used to endorse or promote products derived from this software
|
|
.\" without specific prior written permission.
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
.\" SUCH DAMAGE.
|
|
.\"
|
|
.\" @(#)getnetent.3 8.1 (Berkeley) 6/4/93
|
|
.\"
|
|
.Dd June 4, 1993
|
|
.Dt GETNETENT 3
|
|
.Os BSD 4.2
|
|
.Sh ̾¾Î
|
|
.Nm getnetent ,
|
|
.Nm getnetbyaddr ,
|
|
.Nm getnetbyname ,
|
|
.Nm setnetent ,
|
|
.Nm endnetent
|
|
.Nd ¥Í¥Ã¥È¥ï¡¼¥¯¥¨¥ó¥È¥ê¤Î¼èÆÀ
|
|
.Sh ½ñ¼°
|
|
.Fd #include <netdb.h>
|
|
.Ft struct netent *
|
|
.Fn getnetent void
|
|
.Ft struct netent *
|
|
.Fn getnetbyname "const char *name"
|
|
.Ft struct netent *
|
|
.Fn getnetbyaddr "unsigned long net" "int type"
|
|
.Ft void
|
|
.Fn setnetent "int stayopen"
|
|
.Ft void
|
|
.Fn endnetent void
|
|
.Sh ²òÀâ
|
|
.Fn getnetent ,
|
|
.Fn getnetbyname ,
|
|
.Fn getnetbyaddr
|
|
´Ø¿ô¤Ï¤½¤ì¤¾¤ì¡¢¼¡¤Ë¼¨¤¹¹½Â¤ÂΤò»ý¤Ä¥ª¥Ö¥¸¥§¥¯¥È¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤·¤Þ¤¹¡£
|
|
¹½Â¤ÂΤˤϡ¢¥Í¥Ã¥È¥ï¡¼¥¯¥Ç¡¼¥¿¥Ù¡¼¥¹
|
|
.Pa /etc/network
|
|
¤Ë¤¢¤ë¹Ô¤ÎÆâÌõ¥Õ¥£¡¼¥ë¥É¤¬´Þ¤Þ¤ì¤Þ¤¹¡£
|
|
.Bd -literal -offset indent
|
|
struct netent {
|
|
char *n_name; /* ¥Í¥Ã¥È¥ï¡¼¥¯¤ÎÀµ¼°Ì¾ */
|
|
char **n_aliases; /* ÊÌ̾¥ê¥¹¥È */
|
|
int n_addrtype; /* ¥Í¥Ã¥ÈÈÖ¹æ¤Î¥¿¥¤¥× */
|
|
unsigned long n_net; /* ¥Í¥Ã¥ÈÈÖ¹æ */
|
|
};
|
|
.Ed
|
|
.Pp
|
|
¤³¤Î¹½Â¤ÂΤΥá¥ó¥Ð¤Ï¼¡¤Î¤È¤ª¤ê¤Ç¤¹¡£
|
|
.Bl -tag -width n_addrtype
|
|
.It Fa n_name
|
|
¥Í¥Ã¥È¥ï¡¼¥¯¤ÎÀµ¼°Ì¾¡£
|
|
.It Fa n_aliases
|
|
¥Í¥Ã¥È¥ï¡¼¥¯¤ÎÊÌ̾ (¥¨¥¤¥ê¥¢¥¹) ¤Î 0 ¤Ç½ª¤ï¤ë¥ê¥¹¥È¡£
|
|
.It Fa n_addrtype
|
|
ÊÖ¤µ¤ì¤ë¥Í¥Ã¥È¥ï¡¼¥¯ÈÖ¹æ¤Î¥¿¥¤¥×¤Ç¤¢¤ê¡¢¸½ºß¤Ï
|
|
.Dv AF_INET
|
|
¤À¤±¤Ç¤¹¡£
|
|
.It Fa n_net
|
|
¥Í¥Ã¥È¥ï¡¼¥¯Èֹ档
|
|
¥Í¥Ã¥È¥ï¡¼¥¯ÈÖ¹æ¤Ï¡¢¥Þ¥·¥ó¥Ð¥¤¥È½ç¤ÇÊÖ¤µ¤ì¤Þ¤¹¡£
|
|
.El
|
|
.Pp
|
|
.Fn getnetent
|
|
´Ø¿ô¤Ï¥Õ¥¡¥¤¥ë¤Î¼¡¤Î¹Ô¤òÆÉ¤ß¹þ¤ß¤Þ¤¹¡£
|
|
¤³¤ÎºÝ¡¢É¬Íפʤé¤ÐÌÜŪ¤Î¥Õ¥¡¥¤¥ë¤ò¥ª¡¼¥×¥ó¤·¤Þ¤¹¡£
|
|
.Pp
|
|
.Fn setnetent
|
|
´Ø¿ô¤Ï¡¢ÌÜŪ¤Î¥Õ¥¡¥¤¥ë¤ò¥ª¡¼¥×¥ó¤·¥ê¥ï¥¤¥ó¥É¤·¤Þ¤¹¡£
|
|
.Fa stayopen
|
|
¥Õ¥é¥°¤¬ 0 ¤Ç¤Ê¤±¤ì¤Ð
|
|
.Fn getnetbyname
|
|
¤Þ¤¿¤Ï
|
|
.Fn getnetbyaddr
|
|
¤½¤ì¤¾¤ì¤Î¸Æ¤Ó½Ð¤·¤Î¸å¤Ë¡¢¥Í¥Ã¥È¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ï¥¯¥í¡¼¥º¤µ¤ì¤Þ¤»¤ó¡£
|
|
.Pp
|
|
.Fn endnetent
|
|
´Ø¿ô¤Ï¥Õ¥¡¥¤¥ë¤ò¥¯¥í¡¼¥º¤·¤Þ¤¹¡£
|
|
.Pp
|
|
.Fn getnetbyname
|
|
´Ø¿ô¤ª¤è¤Ó
|
|
.Fn getnetbyaddr
|
|
¤Ï¡¢Å¬¹ç¤¹¤ë¥Í¥Ã¥È̾¤Þ¤¿¤Ï¥Í¥Ã¥È¥¢¥É¥ì¥¹¤ª¤è¤Ó¥¿¥¤¥×¤¬¸«¤Ä¤«¤ë¤«¡¢¤Þ¤¿¤Ï
|
|
.Dv EOF
|
|
¤Ë㤹¤ë¤Þ¤Ç¡¢¥Õ¥¡¥¤¥ë¤òºÇ½é¤«¤é½ç¼¡¸¡º÷¤·¤Þ¤¹¡£
|
|
.Fa type
|
|
¤Ï
|
|
.Dv AF_INET
|
|
¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
|
|
¥Í¥Ã¥È¥ï¡¼¥¯ÈÖ¹æ¤Ï¥Û¥¹¥È¥ª¡¼¥À¤Çµ¬Äꤵ¤ì¤Þ¤¹¡£
|
|
.Pp
|
|
.Sh ´ØÏ¢¥Õ¥¡¥¤¥ë
|
|
.Bl -tag -width /etc/networks -compact
|
|
.It Pa /etc/networks
|
|
.El
|
|
.Sh ¿ÇÃÇ
|
|
.Dv EOF
|
|
¤Þ¤¿¤Ï¥¨¥é¡¼¤Î¾ì¹ç¤Ï¡¢
|
|
¥Ì¥ë¥Ý¥¤¥ó¥¿ (0) ¤¬ÊÖ¤ê¤Þ¤¹¡£
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr networks 5
|
|
.Pp
|
|
.%T RFC 1101
|
|
.Sh Îò»Ë
|
|
.Fn getnetent ,
|
|
.Fn getnetbyaddr ,
|
|
.Fn getnetbyname ,
|
|
.Fn setnetent ,
|
|
.Fn endnetent
|
|
´Ø¿ô¤Ï¡¢
|
|
.Bx 4.2
|
|
¤ÇºÇ½é¤Ë¼è¤êÆþ¤ì¤é¤ì¤Þ¤·¤¿¡£
|
|
.Sh ¥Ð¥°
|
|
¤³¤ì¤é¤Î´Ø¿ô¤Ç»ÈÍѤµ¤ì¤ë¥Ç¡¼¥¿¶õ´Ö¤ÏÀÅŪ¤Ç¤¹¡£
|
|
¸å¤Ç¤³¤Î¥Ç¡¼¥¿¤ò»È¤¦É¬Íפ¬¤¢¤ë¾ì¹ç¤Ï¡¢
|
|
°Ê¸å¤Î¤³¤ì¤é´Ø¿ô¤Î¸Æ¤Ó½Ð¤·¤Ç¥Ç¡¼¥¿¤ò¾å½ñ¤¤¹¤ëÁ°¤Ë¡¢
|
|
¥³¥Ô¡¼¤·¤ÆÊݸ¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
|
|
¥Ç¡¼¥¿¤È¤·¤Æ¼õ¤±Æþ¤ì¤é¤ì¤ë¤Î¤Ï¸½ºß¡¢¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥Í¥Ã¥È¥ï¡¼¥¯ÈÖ¹æ¤À¤±¤Ç¤¹¡£
|
|
¥Í¥Ã¥È¥ï¡¼¥¯Èֹ椬 32 ¥Ó¥Ã¥È¤òͤ¨¤Ê¤¤ÈϰϤ˼ý¤Þ¤ë¤È¤¤¤¦¤Î¤Ï¡¢
|
|
¤ª¤½¤é¤¯ÁÇËѤʹͤ¨¤Ç¤¹¡£
|