mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-18 11:00:07 +00:00
535b764df5
* elf/rtld.c (_dl_start_final): Allocate TLS and initialize thread-pointer as soon as possible. * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS elements in rtld_global. * sysdeps/generic/tls.h: New file. * elf/Makefile (distribute): Add tls.h. * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS relocations. Not complete yet. * resolv/resolv.h: Allow user to define __need_res_state and only define __res_start structure then. * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
33 lines
1013 B
C
33 lines
1013 B
C
#ifndef _RESOLV_H_
|
|
|
|
#define RES_SET_H_ERRNO(r,x) \
|
|
do \
|
|
{ \
|
|
(r)->res_h_errno = x; \
|
|
__set_h_errno(x); \
|
|
} \
|
|
while (0)
|
|
|
|
#include <resolv/resolv.h>
|
|
|
|
#ifdef _RESOLV_H_
|
|
/* Now define the internal interfaces. */
|
|
extern int __res_vinit (res_state, int);
|
|
extern void _sethtent (int);
|
|
extern void _endhtent (void);
|
|
extern struct hostent *_gethtent (void);
|
|
extern struct hostent *_gethtbyname (const char *__name);
|
|
extern struct hostent *_gethtbyname2 (const char *__name, int __af);
|
|
struct hostent *_gethtbyaddr (const char *addr, size_t __len, int __af);
|
|
extern u_int32_t _getlong (const u_char *__src);
|
|
extern u_int16_t _getshort (const u_char *__src);
|
|
extern void res_pquery (const res_state __statp, const u_char *__msg,
|
|
int __len, FILE *__file);
|
|
extern void res_send_setqhook (res_send_qhook __hook);
|
|
extern void res_send_setrhook (res_send_rhook __hook);
|
|
extern int res_ourserver_p (const res_state __statp,
|
|
const struct sockaddr_in6 *__inp);
|
|
#endif
|
|
|
|
#endif
|