mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
2002-12-18 Ulrich Drepper <drepper@redhat.com> * descr.h (struct pthread) [NEED_DL_SYSINFO]: Add sysinfo member. * sysdeps/i386/tls.h (tcbhead_t): Add sysinfo member. Define SYSINFO_OFFSEET if NEED_DL_SYSINFO is defined. (INIT_SYSINFO): New #define. (TLS_TP_INIT): Use INIT_SYSINFO. * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init): At test to make sure SYSINFO_OFFSET value is correct. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: New file.
This commit is contained in:
@ -20,6 +20,7 @@
|
||||
#include <unistd.h>
|
||||
#include <list.h>
|
||||
#include "fork.h"
|
||||
#include <dl-sysdep.h>
|
||||
#include <tls.h>
|
||||
#include <string.h>
|
||||
#include <pthreadP.h>
|
||||
@ -62,4 +63,12 @@ __libc_pthread_init (ptr, reclaim, functions)
|
||||
str_n_len ("*** MULTIPLE_THREADS_OFFSET out of date\n"));
|
||||
_exit (1);
|
||||
}
|
||||
#ifdef SYSINFO_OFFSET
|
||||
if (offsetof (struct pthread, header.data.sysinfo) != SYSINFO_OFFSET)
|
||||
{
|
||||
__libc_write (STDERR_FILENO,
|
||||
str_n_len ("*** SYSINFO_OFFSET out of date\n"));
|
||||
_exit (1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user