glibc/misc
Roland McGrath c2afe83352 * sysdeps/pthread/bits/libc-tsd.h: Include <tls.h>.
[USE_TLS && HAVE___THREAD]: Just include the sysdeps/generic file,
	which does the right thing when __thread support is available.
	* descr.h (struct _pthread_descr_struct) [USE_TLS && HAVE___THREAD]:
	Omit `p_libc_specific', `p_errnop', `p_errno', `p_h_errnop',
	`p_h_errno', `p_resp', and `p_res' members.
	* pthread.c (__pthread_initialize_minimal) [USE_TLS && HAVE___THREAD]:
	Don't initialize `p_errnop' and `p_h_errnop' members.
	(__pthread_reset_main_thread): Likewise.
	(__pthread_initialize_manager): Likewise.
	* manager.c (__pthread_manager, pthread_handle_create): Likewise.
	* pthread.c (pthread_initialize) [USE_TLS && HAVE___THREAD]:
	Don't initialize `p_resp' member.
	(__pthread_reset_main_thread): Likewise.
	* manager.c (pthread_handle_create): Likewise.
	* specific.c (libc_internal_tsd_set, libc_internal_tsd_get):
	Conditionalize these on [!(USE_TLS && HAVE___THREAD)].
	* errno.c [USE_TLS && HAVE___THREAD]
	(__h_errno_location, __res_state): Don't define these at all.

	* sysdeps/i386/tls.h (INSTALL_DTV): Add parens around arguments!
	(INSTALL_NEW_DTV, GET_DTV): Likewise.
	* sysdeps/sh/tls.h (INSTALL_DTV, INSTALL_NEW_DTV, GET_DTV): Likewise.

	* weaks.c: Don't include <errno.h> here.

2002-08-01  Roland McGrath  <roland@redhat.com>

	* sysdeps/i386/tls.h (TLS_DO_MODIFY_LDT): New macro, broken out of
	TLS_INIT_TP.
	(TLS_DO_SET_THREAD_AREA): New macro, uses thread_set_area syscall.
	(TLS_SETUP_GS_SEGMENT): New macro, try one or the other or both.
	(TLS_INIT_TP): Use that.
2002-08-02 03:32:24 +00:00
..
bits Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
sys * sysdeps/pthread/bits/libc-tsd.h: Include <tls.h>. 2002-08-02 03:32:24 +00:00
.cvsignore Tue May 14 14:07:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu> 1996-05-14 20:30:25 +00:00
ar.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
daemon.c Update. 2000-10-28 00:45:40 +00:00
dirname.c Update. 2002-04-04 08:12:33 +00:00
efgcvt_r.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
efgcvt.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
err.c Update. 2001-08-21 02:57:38 +00:00
err.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
error.c Update. 2002-03-03 19:43:30 +00:00
error.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
fstab.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
fstab.h Update. 1999-10-09 21:56:43 +00:00
getpass.c Include wchar.h for prototypes. 2001-08-17 14:14:10 +00:00
getttyent.c Update. 2001-07-17 08:32:35 +00:00
getusershell.c Update. 2001-07-17 08:32:35 +00:00
hsearch_r.c Update. 2002-01-29 08:25:15 +00:00
hsearch.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
init-misc.c Update. 2002-03-03 19:43:30 +00:00
insremque.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
libgen.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
lsearch.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
Makefile Update. 2002-01-29 08:25:15 +00:00
mkdtemp.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
mkstemp64.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
mkstemp.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
mktemp.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
mntent_r.c Update. 2002-04-09 20:36:24 +00:00
mntent.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
mntent.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
qefgcvt_r.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
qefgcvt.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
regexp.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
regexp.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
search.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
sgtty.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
stab.h Update. 1997-06-21 02:59:26 +00:00
syscall.h update from main archive 960107 1997-01-07 23:29:44 +00:00
sysexits.h Update. 1999-06-09 13:08:30 +00:00
syslog.c Update. 2002-04-04 05:10:14 +00:00
syslog.h initial import 1995-02-18 01:27:10 +00:00
tsearch.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
tst-dirname.c Update. 2002-04-04 08:12:33 +00:00
tst-efgcvt.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
tst-fdset.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
tst-hsearch.c Update. 2002-01-29 08:25:15 +00:00
tst-mntent.c Update. 1999-07-26 01:47:15 +00:00
tst-tsearch.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
ttyent.h Update. 1999-10-09 21:56:43 +00:00
ttyslot.c Update. 1999-06-08 21:20:07 +00:00
ustat.h Thu Jul 18 04:33:21 1996 Roland McGrath <roland@baalperazim.frob.com> 1996-07-18 08:43:26 +00:00
Versions Update. 2002-02-01 23:24:05 +00:00