mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
2002-08-08 Roland McGrath <roland@frob.com>
* resolv/netdb.h: Don't declare h_errno as a plain global any more.
This commit is contained in:
parent
c0b338331e
commit
ed4d0184a1
@ -53,15 +53,13 @@
|
|||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
/* Error status for non-reentrant lookup functions. */
|
/* Error status for non-reentrant lookup functions.
|
||||||
extern int h_errno;
|
We use a macro to access always the thread-specific `h_errno' variable. */
|
||||||
|
#define h_errno (*__h_errno_location ())
|
||||||
|
|
||||||
/* Function to get address of global `h_errno' variable. */
|
/* Function to get address of global `h_errno' variable. */
|
||||||
extern int *__h_errno_location (void) __THROW __attribute__ ((__const__));
|
extern int *__h_errno_location (void) __THROW __attribute__ ((__const__));
|
||||||
|
|
||||||
/* Use a macro to access always the thread specific `h_errno' variable. */
|
|
||||||
#define h_errno (*__h_errno_location ())
|
|
||||||
|
|
||||||
|
|
||||||
/* Possible values left in `h_errno'. */
|
/* Possible values left in `h_errno'. */
|
||||||
#define NETDB_INTERNAL -1 /* See errno. */
|
#define NETDB_INTERNAL -1 /* See errno. */
|
||||||
|
Loading…
Reference in New Issue
Block a user