mirror of git://sourceware.org/git/glibc.git
* sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
__libc_write, __libc_lseek64, to ... (ld: GLIBC_PRIVATE): ... here.
This commit is contained in:
parent
160bb40945
commit
29514aade7
|
@ -1,5 +1,9 @@
|
||||||
2002-09-24 Roland McGrath <roland@redhat.com>
|
2002-09-24 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
|
||||||
|
__libc_write, __libc_lseek64, to ...
|
||||||
|
(ld: GLIBC_PRIVATE): ... here.
|
||||||
|
|
||||||
* csu/Versions: Use %include <tls.h> to get USE_TLS defined.
|
* csu/Versions: Use %include <tls.h> to get USE_TLS defined.
|
||||||
(libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
|
(libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
|
||||||
(libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
|
(libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
2002-09-24 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
|
* td_thr_tls_get_addr.c (td_thr_tls_get_addr): Fetch just the
|
||||||
|
individual members we need, not the whole structures.
|
||||||
|
|
||||||
2002-09-24 Ulrich Drepper <drepper@redhat.com>
|
2002-09-24 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* td_thr_tls_get_addr.c (td_thr_tls_get_addr): Change second
|
* td_thr_tls_get_addr.c (td_thr_tls_get_addr): Change second
|
||||||
|
|
|
@ -33,25 +33,25 @@ td_thr_tls_get_addr (const td_thrhandle_t *th __attribute__ ((unused)),
|
||||||
void **address __attribute__ ((unused)))
|
void **address __attribute__ ((unused)))
|
||||||
{
|
{
|
||||||
#if USE_TLS
|
#if USE_TLS
|
||||||
struct _pthread_descr_struct pds;
|
|
||||||
size_t modid;
|
size_t modid;
|
||||||
struct link_map map;
|
union dtv pdtv, *dtvp;
|
||||||
union dtv pdtv;
|
|
||||||
|
|
||||||
LOG ("td_thr_tls_get_addr");
|
LOG ("td_thr_tls_get_addr");
|
||||||
|
|
||||||
/* Get the thread descriptor. */
|
/* Get the DTV pointer from the thread descriptor. */
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
if (ps_pdread (th->th_ta_p->ph,
|
||||||
th->th_ta_p->sizeof_descr) != PS_OK)
|
&((struct _pthread_descr_struct *) th->th_unique)->dtv,
|
||||||
|
&dtvp, sizeof dtvp) != PS_OK)
|
||||||
return TD_ERR; /* XXX Other error value? */
|
return TD_ERR; /* XXX Other error value? */
|
||||||
|
|
||||||
/* Get the link_map, so we gan get the module ID. */
|
/* Read the module ID from the link_map. */
|
||||||
if (ps_pdread (th->th_ta_p->ph, map_address, &map,
|
if (ps_pdread (th->th_ta_p->ph,
|
||||||
sizeof (struct link_map)) != PS_OK)
|
&((struct link_map *) map_address)->l_tls_modid,
|
||||||
|
&modid, sizeof modid) != PS_OK)
|
||||||
return TD_ERR; /* XXX Other error value? */
|
return TD_ERR; /* XXX Other error value? */
|
||||||
|
|
||||||
/* Get the corresponding entry in the DTV. */
|
/* Get the corresponding entry in the DTV. */
|
||||||
if (ps_pdread (th->th_ta_p->ph, pds.p_header.data.dtvp + map.l_tls_modid,
|
if (ps_pdread (th->th_ta_p->ph, dtvp + modid,
|
||||||
&pdtv, sizeof (union dtv)) != PS_OK)
|
&pdtv, sizeof (union dtv)) != PS_OK)
|
||||||
return TD_ERR; /* XXX Other error value? */
|
return TD_ERR; /* XXX Other error value? */
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
2002-09-23 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
|
* tst-xlocale1.c (main): int -> size_t for counter.
|
||||||
|
* tst-xlocale2.c (do_test): Likewise.
|
||||||
|
* tst-ctype.c (main): Likewise.
|
||||||
|
|
||||||
2002-09-22 Bruno Haible <bruno@clisp.org>
|
2002-09-22 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
* charmaps/TSCII: New file.
|
* charmaps/TSCII: New file.
|
||||||
|
|
|
@ -72,7 +72,7 @@ main (void)
|
||||||
size_t inplinelen = 0;
|
size_t inplinelen = 0;
|
||||||
char *resline = NULL;
|
char *resline = NULL;
|
||||||
size_t reslinelen = 0;
|
size_t reslinelen = 0;
|
||||||
int n;
|
size_t n;
|
||||||
const unsigned short int *__ctype_b;
|
const unsigned short int *__ctype_b;
|
||||||
|
|
||||||
setlocale (LC_ALL, "");
|
setlocale (LC_ALL, "");
|
||||||
|
|
|
@ -23,7 +23,7 @@ static struct
|
||||||
int
|
int
|
||||||
main (void)
|
main (void)
|
||||||
{
|
{
|
||||||
int cnt;
|
size_t cnt;
|
||||||
int result = 0;
|
int result = 0;
|
||||||
locale_t loc = newlocale (1 << LC_ALL, "C", NULL);
|
locale_t loc = newlocale (1 << LC_ALL, "C", NULL);
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ static int
|
||||||
do_test (locale_t l)
|
do_test (locale_t l)
|
||||||
{
|
{
|
||||||
int result = 0;
|
int result = 0;
|
||||||
int n;
|
size_t n;
|
||||||
|
|
||||||
#define DO_TEST(TEST, RES) \
|
#define DO_TEST(TEST, RES) \
|
||||||
for (n = 0; n < sizeof (str) - 1; ++n) \
|
for (n = 0; n < sizeof (str) - 1; ++n) \
|
||||||
|
|
|
@ -16,12 +16,15 @@ ld {
|
||||||
__hurd_threadvar_stack_mask; __hurd_threadvar_stack_offset;
|
__hurd_threadvar_stack_mask; __hurd_threadvar_stack_offset;
|
||||||
|
|
||||||
# functions that must be shared with libc
|
# functions that must be shared with libc
|
||||||
__close; __fxstat64; __getcwd; __getpid; __libc_read; __libc_write;
|
__close; __getcwd; __getpid;
|
||||||
__libc_lseek64; __mmap; __open; __xstat64; __fxstat64;
|
__mmap; __open; __xstat64; __fxstat64;
|
||||||
_exit; _hurd_intr_rpc_mach_msg;
|
_exit; _hurd_intr_rpc_mach_msg;
|
||||||
abort;
|
abort;
|
||||||
}
|
}
|
||||||
GLIBC_PRIVATE {
|
GLIBC_PRIVATE {
|
||||||
_dl_init_first;
|
_dl_init_first;
|
||||||
|
|
||||||
|
# functions that must be shared with libc
|
||||||
|
__libc_read; __libc_write; __libc_lseek64;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue