6a00dc5ed2
Submitted by: Yuko Sasaki <yuko@veltec.co.jp>
138 lines
4.2 KiB
Groff
138 lines
4.2 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.
|
||
.\"
|
||
.\" @(#)getprotoent.3 8.1 (Berkeley) 6/4/93
|
||
.\" %FreeBSD: src/lib/libc/net/getprotoent.3,v 1.4.2.4 2001/12/14 18:33:55 ru Exp %
|
||
.\" $FreeBSD$
|
||
.\"
|
||
.Dd June 4, 1993
|
||
.Dt GETPROTOENT 3
|
||
.Os
|
||
.Sh ̾<EFBFBD><EFBFBD>
|
||
.Nm getprotoent ,
|
||
.Nm getprotobynumber ,
|
||
.Nm getprotobyname ,
|
||
.Nm setprotoent ,
|
||
.Nm endprotoent
|
||
.Nd <EFBFBD>ץ<EFBFBD><EFBFBD>ȥ<EFBFBD><EFBFBD>륨<EFBFBD><EFBFBD><EFBFBD>ȥ<EFBFBD><EFBFBD>μ<EFBFBD><EFBFBD><EFBFBD>
|
||
.Sh <EFBFBD>饤<EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD>
|
||
.Lb libc
|
||
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
.In netdb.h
|
||
.Ft struct protoent *
|
||
.Fn getprotoent void
|
||
.Ft struct protoent *
|
||
.Fn getprotobyname "const char *name"
|
||
.Ft struct protoent *
|
||
.Fn getprotobynumber "int proto"
|
||
.Ft void
|
||
.Fn setprotoent "int stayopen"
|
||
.Ft void
|
||
.Fn endprotoent void
|
||
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
.Fn getprotoent ,
|
||
.Fn getprotobyname ,
|
||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
.Fn getprotobynumber
|
||
<EFBFBD>ؿ<EFBFBD><EFBFBD>Ϥ<EFBFBD><EFBFBD>줾<EFBFBD>졢<EFBFBD><EFBFBD><EFBFBD>˼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¤<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĥ<EFBFBD><EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȤؤΥݥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
||
<EFBFBD><EFBFBD>¤<EFBFBD>Τˤϡ<EFBFBD><EFBFBD>ͥåȥ<EFBFBD><EFBFBD><EFBFBD>ץ<EFBFBD><EFBFBD>ȥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>١<EFBFBD><EFBFBD><EFBFBD>
|
||
.Pa /etc/protocols
|
||
<EFBFBD>ˤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ԥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ե<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɤ<EFBFBD><EFBFBD>ޤޤ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
||
.Bd -literal -offset indent
|
||
.Pp
|
||
struct protoent {
|
||
char *p_name; /* <20>ץ<EFBFBD><D7A5>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD>Υ<EFBFBD><CEA5>ե<EFBFBD><D5A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̾ */
|
||
char **p_aliases; /* <20><><EFBFBD><EFBFBD><EFBFBD>ꥢ<EFBFBD><EAA5A2><EFBFBD>ꥹ<EFBFBD><EAA5B9> */
|
||
int p_proto; /* <20>ץ<EFBFBD><D7A5>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD>ֹ<EFBFBD> */
|
||
};
|
||
.Ed
|
||
.Pp
|
||
<EFBFBD><EFBFBD><EFBFBD>ι<EFBFBD>¤<EFBFBD>ΤΥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Фϼ<EFBFBD><EFBFBD>ΤȤ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FBD><EFBFBD>ȥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֹ椬<EFBFBD><EFBFBD><EFBFBD>Ĥ<EFBFBD><EFBFBD>뤫<EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
||
.Dv EOF
|
||
<EFBFBD><EFBFBD>ã<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤǡ<EFBFBD><EFBFBD>ե<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǽ餫<EFBFBD><EFBFBD><EFBFBD>缡<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
||
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
.Dv EOF
|
||
<EFBFBD>ޤ<EFBFBD><EFBFBD>ϥ<EFBFBD><EFBFBD>顼<EFBFBD><EFBFBD>
|
||
Null
|
||
<EFBFBD>ݥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
(0)
|
||
<EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
||
.Sh <EFBFBD><EFBFBD>Ϣ<EFBFBD>ե<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
.Bl -tag -width /etc/protocols -compact
|
||
.It Pa /etc/protocols
|
||
.El
|
||
.Sh <EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
.Xr protocols 5
|
||
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
.Fn getprotoent ,
|
||
.Fn getprotobynumber ,
|
||
.Fn getprotobyname ,
|
||
.Fn setprotoent
|
||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
.Fn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