diff options
-rw-r--r-- | include/netdb.h | 5 | ||||
-rw-r--r-- | lib/libc/gen/getnetgrent.3 | 1 | ||||
-rw-r--r-- | sbin/mountd/mountd.c | 5 | ||||
-rw-r--r-- | usr.sbin/amd/include/config.h | 2 | ||||
-rw-r--r-- | usr.sbin/mountd/mountd.c | 5 |
5 files changed, 7 insertions, 11 deletions
diff --git a/include/netdb.h b/include/netdb.h index 2e3ae67..94c7d39 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -208,6 +208,7 @@ typedef _BSD_SOCKLEN_T_ socklen_t; __BEGIN_DECLS void endhostent __P((void)); void endnetent __P((void)); +void endnetgrent __P((void)); void endprotoent __P((void)); void endservent __P((void)); void freehostent __P((struct hostent *)); @@ -220,6 +221,7 @@ struct hostent *getipnodebyname __P((const char *, int, int, int *)); struct netent *getnetbyaddr __P((unsigned long, int)); struct netent *getnetbyname __P((const char *)); struct netent *getnetent __P((void)); +int getnetgrent __P((char **, char **, char **)); struct protoent *getprotobyname __P((const char *)); struct protoent *getprotobynumber __P((int)); struct protoent *getprotoent __P((void)); @@ -228,6 +230,8 @@ struct servent *getservbyport __P((int, const char *)); struct servent *getservent __P((void)); void herror __P((const char *)); __const char *hstrerror __P((int)); +int innetgr __P((const char *, const char *, const char *, + const char *)); void sethostent __P((int)); /* void sethostfile __P((const char *)); */ void setnetent __P((int)); @@ -238,6 +242,7 @@ int getnameinfo __P((const struct sockaddr *, socklen_t, char *, size_t, char *, size_t, int)); void freeaddrinfo __P((struct addrinfo *)); char *gai_strerror __P((int)); +void setnetgrent __P((const char *)); void setservent __P((int)); /* diff --git a/lib/libc/gen/getnetgrent.3 b/lib/libc/gen/getnetgrent.3 index 3258df6..eac3a52 100644 --- a/lib/libc/gen/getnetgrent.3 +++ b/lib/libc/gen/getnetgrent.3 @@ -44,6 +44,7 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS +.Fd #include <netdb.h> .Ft int .Fn getnetgrent "char **host" "char **user" "char **domain" .Ft int diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c index 16d2ece..da600c5 100644 --- a/sbin/mountd/mountd.c +++ b/sbin/mountd/mountd.c @@ -201,11 +201,6 @@ int xdr_fhs __P((XDR *, caddr_t)); int xdr_mlist __P((XDR *, caddr_t)); void terminate __P((int)); -/* C library */ -int getnetgrent(); -void endnetgrent(); -void setnetgrent(); - static int bitcmp __P((void *, void *, int)); static int netpartcmp __P((struct sockaddr *, struct sockaddr *, int)); static int sacmp __P((struct sockaddr *, struct sockaddr *)); diff --git a/usr.sbin/amd/include/config.h b/usr.sbin/amd/include/config.h index c5f4382..2456edd 100644 --- a/usr.sbin/amd/include/config.h +++ b/usr.sbin/amd/include/config.h @@ -1977,7 +1977,7 @@ #define HAVE_EXTERN_GETPAGESIZE 1 /* does extern definition for innetgr() exist? */ -/* #undef HAVE_EXTERN_INNETGR */ +#define HAVE_EXTERN_INNETGR /* does extern definition for mkstemp() exist? */ #define HAVE_EXTERN_MKSTEMP 1 diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index 16d2ece..da600c5 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -201,11 +201,6 @@ int xdr_fhs __P((XDR *, caddr_t)); int xdr_mlist __P((XDR *, caddr_t)); void terminate __P((int)); -/* C library */ -int getnetgrent(); -void endnetgrent(); -void setnetgrent(); - static int bitcmp __P((void *, void *, int)); static int netpartcmp __P((struct sockaddr *, struct sockaddr *, int)); static int sacmp __P((struct sockaddr *, struct sockaddr *)); |