Fix an error in the description of "h_errno". Add "const" to a few
declarations to make them agree with the actual prototypes in <netdb.h>.
This commit is contained in:
parent
86f17a898e
commit
d3281e16c2
@ -44,16 +44,16 @@
|
||||
.Nd get network host entry
|
||||
.Sh SYNOPSIS
|
||||
.Fd #include <netdb.h>
|
||||
.Fd extern struct h_errno;
|
||||
.Fd extern int h_errno;
|
||||
.Ft struct hostent *
|
||||
.Fn gethostbyname "char *name"
|
||||
.Fn gethostbyname "const char *name"
|
||||
.Ft struct hostent *
|
||||
.Fn gethostbyaddr "char *addr" "int len" "int type"
|
||||
.Fn gethostbyaddr "const char *addr" "int len" "int type"
|
||||
.Ft struct hostent *
|
||||
.Fn gethostent void
|
||||
.Fn sethostent "int stayopen"
|
||||
.Fn endhostent void
|
||||
.Fn herror "char *string"
|
||||
.Fn herror "const char *string"
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Fn gethostbyname
|
||||
|
Loading…
Reference in New Issue
Block a user