Module Name: src
Committed By: jruoho
Date: Thu Jul 14 21:25:43 UTC 2011
Modified Files:
src/lib/libc/net: getprotoent.3
Log Message:
Complete prototypes, markup NULL, complete return values, more markup.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libc/net/getprotoent.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/net/getprotoent.3
diff -u src/lib/libc/net/getprotoent.3:1.11 src/lib/libc/net/getprotoent.3:1.12
--- src/lib/libc/net/getprotoent.3:1.11 Thu Aug 7 16:43:09 2003
+++ src/lib/libc/net/getprotoent.3 Thu Jul 14 21:25:42 2011
@@ -1,4 +1,4 @@
-.\" $NetBSD: getprotoent.3,v 1.11 2003/08/07 16:43:09 agc Exp $
+.\" $NetBSD: getprotoent.3,v 1.12 2011/07/14 21:25:42 jruoho Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)getprotoent.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd June 4, 1993
+.Dd July 15, 2011
.Dt GETPROTOENT 3
.Os
.Sh NAME
@@ -49,8 +49,10 @@
.Fn getprotobyname "const char *name"
.Ft struct protoent *
.Fn getprotobynumber "int proto"
+.Ft void
.Fn setprotoent "int stayopen"
-.Fn endprotoent
+.Ft void
+.Fn endprotoent "void"
.Sh DESCRIPTION
The
.Fn getprotoent ,
@@ -73,7 +75,7 @@
.Ed
.Pp
The members of this structure are:
-.Bl -tag -width p_aliases
+.Bl -tag -width p_aliases -offset indent
.It Fa p_name
The official name of the protocol.
.It Fa p_aliases
@@ -116,8 +118,17 @@
.Dv EOF
is encountered.
.Sh RETURN VALUES
-Null pointer
-(0) returned on
+Upon success,
+.Fn getprotoent ,
+.Fn getprotobyname ,
+and
+.Fn getprotobynumber
+return a pointer to the
+.Vt protoent
+structure as described above.
+A
+.Dv NULL
+pointer is returned on
.Dv EOF
or error.
.Sh FILES