diff options
Diffstat (limited to 'lib/libc/net/getnetent.3')
-rw-r--r-- | lib/libc/net/getnetent.3 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/net/getnetent.3 b/lib/libc/net/getnetent.3 index 7514371c..6b6aeb9 100644 --- a/lib/libc/net/getnetent.3 +++ b/lib/libc/net/getnetent.3 @@ -46,7 +46,7 @@ .Ft struct netent * .Fn getnetent .Ft struct netent * -.Fn getnetbyname "char *name" +.Fn getnetbyname "const char *name" .Ft struct netent * .Fn getnetbyaddr "long net" "int type" .Fn setnetent "int stayopen" @@ -117,7 +117,10 @@ net name or net address and type is found, or until .Dv EOF -is encountered. +is encountered. The +.Fa type +must be +.Dv AF_INET . Network numbers are supplied in host order. .Sh FILES .Bl -tag -width /etc/networks -compact @@ -129,7 +132,8 @@ Null pointer .Dv EOF or error. .Sh SEE ALSO -.Xr networks 5 +.Xr networks 5 , +.%T RFC 1101 .Sh HISTORY The .Fn getnetent , |