give the "netgrent" functions a home in netdb.h
This commit is contained in:
parent
40c10ffdbd
commit
8f15078110
@ -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));
|
||||
|
||||
/*
|
||||
|
@ -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
|
||||
|
@ -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 *));
|
||||
|
@ -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
|
||||
|
@ -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 *));
|
||||
|
Loading…
x
Reference in New Issue
Block a user