Cross Reference: resolv_mt.h
xref
: /
osnet-11
/
usr
/
src
/
lib
/
libresolv2
/
include
/
resolv_mt.h
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
resolv_mt.h revision 2
2
N/A
#
ifndef
_RESOLV_MT_H
2
N/A
#
define
_RESOLV_MT_H
2
N/A
2
N/A
#
include
<
sys
/
types.h
>
2
N/A
#
include
<
netinet
/
in.h
>
2
N/A
#
include
<
arpa
/
nameser.h
>
2
N/A
#
include
<
resolv.h
>
2
N/A
2
N/A
/* Access functions for the libresolv private interface */
2
N/A
2
N/A
int
__res_enable_mt
(
void
);
2
N/A
int
__res_disable_mt
(
void
);
2
N/A
2
N/A
/* Per-thread context */
2
N/A
2
N/A
typedef
struct
{
2
N/A
int
no_hosts_fallback_private
;
2
N/A
int
retry_save
;
2
N/A
int
retry_private
;
2
N/A
char
inet_nsap_ntoa_tmpbuf
[
255
*
3
];
2
N/A
char
sym_ntos_unname
[
20
];
2
N/A
char
sym_ntop_unname
[
20
];
2
N/A
char
p_option_nbuf
[
40
];
2
N/A
char
p_time_nbuf
[
40
];
2
N/A
char
precsize_ntoa_retbuf
[
sizeof
"90000000.00"
];
2
N/A
char
loc_ntoa_tmpbuf
[
sizeof
2
N/A
"1000 60 60.000 N 1000 60 60.000 W -12345678.00m 90000000.00m 90000000.00m 90000000.00m"
];
2
N/A
char
p_secstodate_output
[
15
];
2
N/A
}
mtctxres_t
;
2
N/A
2
N/A
/* Thread-specific data (TSD) */
2
N/A
2
N/A
mtctxres_t
*
___mtctxres
(
void
);
2
N/A
#
define
mtctxres
(
___mtctxres
())
2
N/A
2
N/A
/* Various static data that should be TSD */
2
N/A
2
N/A
#
define
sym_ntos_unname
(
mtctxres
->
sym_ntos_unname
)
2
N/A
#
define
sym_ntop_unname
(
mtctxres
->
sym_ntop_unname
)
2
N/A
#
define
inet_nsap_ntoa_tmpbuf
(
mtctxres
->
inet_nsap_ntoa_tmpbuf
)
2
N/A
#
define
p_option_nbuf
(
mtctxres
->
p_option_nbuf
)
2
N/A
#
define
p_time_nbuf
(
mtctxres
->
p_time_nbuf
)
2
N/A
#
define
precsize_ntoa_retbuf
(
mtctxres
->
precsize_ntoa_retbuf
)
2
N/A
#
define
loc_ntoa_tmpbuf
(
mtctxres
->
loc_ntoa_tmpbuf
)
2
N/A
#
define
p_secstodate_output
(
mtctxres
->
p_secstodate_output
)
2
N/A
2
N/A
#
endif
/* _RESOLV_MT_H */