1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
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:
Ulrich Drepper
2002-12-19 07:09:42 +00:00
parent 5e28917950
commit df45b31e81
7 changed files with 96 additions and 15 deletions

View File

@ -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
}