diff options
author | Ulrich Drepper <drepper@redhat.com> | 1996-10-02 01:40:17 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1996-10-02 01:40:17 +0000 |
commit | a68b0d31a37a86785b3dbeeee3fad96ee71fadcd (patch) | |
tree | 61537b1f028002a9e6e0f5354fced6128bda8b9c /resolv/netdb.h | |
parent | 2d07133b507b13d4a5ed6dc250f4345c8a26942a (diff) | |
download | glibc-a68b0d31a37a86785b3dbeeee3fad96ee71fadcd.tar.gz glibc-a68b0d31a37a86785b3dbeeee3fad96ee71fadcd.tar.xz glibc-a68b0d31a37a86785b3dbeeee3fad96ee71fadcd.zip |
update from main archive 961001
Diffstat (limited to 'resolv/netdb.h')
-rw-r--r-- | resolv/netdb.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/resolv/netdb.h b/resolv/netdb.h index 1269443cb9..954085f97d 100644 --- a/resolv/netdb.h +++ b/resolv/netdb.h @@ -52,6 +52,12 @@ extern int __h_errno; /* Use a macro to access always the thread specific `h_errno' variable. */ #define h_errno (*__h_errno_location ()) + +/* Retain some binary compatibility with old libraries by having both the + global variable and the per-thread variable set on error. */ +#define __set_h_errno(x) (h_errno = __h_errno = (x)) +#else +#define __set_h_errno(x) (h_errno = (x)) #endif /* Possible values left in `h_errno'. */ @@ -326,6 +332,31 @@ extern struct protoent *getprotobynumber_r __P ((int __proto, #endif /* reentrant */ +/* Establish network group NETGROUP for enumeration. */ +extern int setnetgrent __P ((__const char *__netgroup)); + +/* Free all space allocated by previous `setnetgrent' call. */ +extern void endnetgrent __P ((void)); + +/* Get next member of netgroup established by last `setnetgrent' call + and return pointers to elements in HOSTP, USERP, and DOMAINP. */ +extern int getnetgrent __P ((char **__hostp, char **__userp, + char **__domainp)); + +/* Test whether NETGROUP contains the triple (HOST,USER,DOMAIN). */ +extern int innetgr __P ((__const char *__netgroup, __const char *__host, + __const char *__user, __const char *domain)); + +#ifdef __USE_REENTRANT +/* Reentrant version of `getnetgrent' where result is placed in BUFFER. */ +extern int __getnetgrent_r __P ((char **__hostp, char **__userp, + char **__domainp, + char *__buffer, int __buflen)); +extern int getnetgrent_r __P ((char **__hostp, char **__userp, + char **__domainp, + char *__buffer, int __buflen)); +#endif + __END_DECLS #endif /* netdb.h */ |