drepper [Thu, 12 Dec 2002 10:23:46 +0000 (10:23 +0000)]
Use __libc_pthread_init instead of __register_pthread_fork_handler.
drepper [Thu, 12 Dec 2002 10:23:00 +0000 (10:23 +0000)]
(sysdep_routimes): Replace fork-gen with libc_pthread_init.
drepper [Thu, 12 Dec 2002 10:22:21 +0000 (10:22 +0000)]
Declare __libc_locking_needed.
drepper [Thu, 12 Dec 2002 10:21:33 +0000 (10:21 +0000)]
(__pthread_initialize_minimal): Call __libc_pthread_init instead of
__register_pthread_fork_handler.
drepper [Thu, 12 Dec 2002 10:20:31 +0000 (10:20 +0000)]
Function called when thread library is initialized.
drepper [Thu, 12 Dec 2002 10:18:59 +0000 (10:18 +0000)]
Renamed to libc_pthread_init.
drepper [Thu, 12 Dec 2002 09:25:42 +0000 (09:25 +0000)]
Update.
drepper [Thu, 12 Dec 2002 09:24:49 +0000 (09:24 +0000)]
(main): If stnow.st[am]time is wrong, print it and not st.st[am]time.
drepper [Thu, 12 Dec 2002 06:58:20 +0000 (06:58 +0000)]
Update.
drepper [Thu, 12 Dec 2002 06:56:02 +0000 (06:56 +0000)]
(_nl_init_domain_conv): Don't append //TRANSLIT to the encoding if it already
has slashes.
drepper [Thu, 12 Dec 2002 04:46:44 +0000 (04:46 +0000)]
Update.
drepper [Thu, 12 Dec 2002 04:46:12 +0000 (04:46 +0000)]
Remove __cleanup_thread prorotype.
drepper [Thu, 12 Dec 2002 04:45:27 +0000 (04:45 +0000)]
(__cleanup_thread): Removed.
(__do_cancel): Remove call to __cleanup_thread.
drepper [Thu, 12 Dec 2002 04:44:08 +0000 (04:44 +0000)]
(tests): Add tst-cleanup1.
drepper [Thu, 12 Dec 2002 04:41:30 +0000 (04:41 +0000)]
Test for cancelation handler order.
roland [Thu, 12 Dec 2002 02:44:03 +0000 (02:44 +0000)]
.
roland [Thu, 12 Dec 2002 02:43:49 +0000 (02:43 +0000)]
2002-12-11 Roland McGrath <roland@redhat.com>
* csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
(CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
Turn off PIC for compiling this file.
drepper [Thu, 12 Dec 2002 02:28:37 +0000 (02:28 +0000)]
Update.
drepper [Thu, 12 Dec 2002 02:28:09 +0000 (02:28 +0000)]
(__libc_cleanup_region_start): Remember function and argument even if
cancellation handler function is not available.
(__libc_cleanup_region_end): Execute registered function directly if pthread
functions are not available.
(__libc_cleanup_end): Likewise.
drepper [Thu, 12 Dec 2002 01:01:43 +0000 (01:01 +0000)]
Update.
drepper [Thu, 12 Dec 2002 00:41:21 +0000 (00:41 +0000)]
Remove thread_id type and MUTEX_INITIALIZER definitions. Not needed.
[_LIBC]: Use definitions from libc-lock.h instead of referencing
pthread routines directly.
drepper [Thu, 12 Dec 2002 00:38:54 +0000 (00:38 +0000)]
(ptmalloc_unlock_all2): Don't add (void) to mutex_init calls.
(arena_get2): Don't look at return value of mutex_lock.
roland [Wed, 11 Dec 2002 23:13:29 +0000 (23:13 +0000)]
.
roland [Wed, 11 Dec 2002 23:13:23 +0000 (23:13 +0000)]
2002-12-11 Roland McGrath <roland@redhat.com>
* csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
elf-init.o instead of compiling a PIC version.
roland [Wed, 11 Dec 2002 23:13:16 +0000 (23:13 +0000)]
2002-12-11 Roland McGrath <roland@redhat.com>
* csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
elf-init.o instead of compiling a PIC version.
roland [Wed, 11 Dec 2002 22:59:29 +0000 (22:59 +0000)]
.
roland [Wed, 11 Dec 2002 22:59:07 +0000 (22:59 +0000)]
2002-07-13 Bruno Haible <bruno@clisp.org>
* intl/dcigettext.c (freea): New macro.
(FREE_BLOCKS): Free also the registered blocks.
(DCIGETTEXT): Free the 'search' variable.
Reported by Andreas Fischer <a.fischer@asentics.de>.
2002-04-27 Bruno Haible <bruno@clisp.org>
* intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
* intl/dcigettext.c: Likewise.
* intl/dcgettext.c: Likewise.
* intl/dgettext.c: Likewise.
* intl/gettext.c: Likewise.
* intl/dcngettext.c: Likewise.
* intl/dngettext.c: Likewise.
* intl/ngettext.c: Likewise.
* intl/textdomain.c: Likewise.
* intl/bindtextdom.c: Likewise.
* intl/plural-exp.h: Likewise.
2001-04-30 Bruno Haible <bruno@clisp.org>
* intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
default macro definitions. Needed for mingw32.
roland [Wed, 11 Dec 2002 22:59:04 +0000 (22:59 +0000)]
2002-12-11 Bruno Haible <bruno@clisp.org>
* intl/gettext.h: Renamed to ...
* intl/gmo.h: ... here.
* intl/Makefile (distribute): Add gmo.h, remove gettext.h.
* intl/gettextP.h: Update.
* intl/loadmsgcat.c: Update.
2002-01-02 Bruno Haible <bruno@clisp.org>
* intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
roland [Wed, 11 Dec 2002 22:58:30 +0000 (22:58 +0000)]
2002-12-11 Bruno Haible <bruno@clisp.org>
* intl/gettext.h: Renamed to ...
* intl/gmo.h: ... here.
* intl/Makefile (distribute): Add gmo.h, remove gettext.h.
* intl/gettextP.h: Update.
* intl/loadmsgcat.c: Update.
* intl/gettextP.h (PARAMS): Make more portable.
(attribute_hidden): Define as empty macro if not already defined.
* intl/hash-string.h (PARAMS): Make more portable.
* intl/loadinfo.h (PARAMS): Likewise.
* intl/plural-exp.h (PARAMS): Likewise.
(attribute_hidden): Move definition near the definition of
internal_function.
* intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
* intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
2002-04-27 Bruno Haible <bruno@clisp.org>
* intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
* intl/dcigettext.c: Likewise.
* intl/dcgettext.c: Likewise.
* intl/dgettext.c: Likewise.
* intl/gettext.c: Likewise.
* intl/dcngettext.c: Likewise.
* intl/dngettext.c: Likewise.
* intl/ngettext.c: Likewise.
* intl/textdomain.c: Likewise.
* intl/bindtextdom.c: Likewise.
* intl/plural-exp.h: Likewise.
roland [Wed, 11 Dec 2002 22:58:28 +0000 (22:58 +0000)]
2002-04-27 Bruno Haible <bruno@clisp.org>
* intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
* intl/dcigettext.c: Likewise.
* intl/dcgettext.c: Likewise.
* intl/dgettext.c: Likewise.
* intl/gettext.c: Likewise.
* intl/dcngettext.c: Likewise.
* intl/dngettext.c: Likewise.
* intl/ngettext.c: Likewise.
* intl/textdomain.c: Likewise.
* intl/bindtextdom.c: Likewise.
* intl/plural-exp.h: Likewise.
roland [Wed, 11 Dec 2002 22:58:26 +0000 (22:58 +0000)]
2002-12-11 Bruno Haible <bruno@clisp.org>
* intl/gettextP.h (PARAMS): Make more portable.
(attribute_hidden): Define as empty macro if not already defined.
* intl/hash-string.h (PARAMS): Make more portable.
* intl/loadinfo.h (PARAMS): Likewise.
* intl/plural-exp.h (PARAMS): Likewise.
(attribute_hidden): Move definition near the definition of
internal_function.
roland [Wed, 11 Dec 2002 22:58:24 +0000 (22:58 +0000)]
2002-12-11 Bruno Haible <bruno@clisp.org>
* intl/gettextP.h (PARAMS): Make more portable.
(attribute_hidden): Define as empty macro if not already defined.
* intl/hash-string.h (PARAMS): Make more portable.
* intl/loadinfo.h (PARAMS): Likewise.
* intl/plural-exp.h (PARAMS): Likewise.
(attribute_hidden): Move definition near the definition of
internal_function.
* intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
* intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
2002-04-27 Bruno Haible <bruno@clisp.org>
* intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
* intl/dcigettext.c: Likewise.
* intl/dcgettext.c: Likewise.
* intl/dgettext.c: Likewise.
* intl/gettext.c: Likewise.
* intl/dcngettext.c: Likewise.
* intl/dngettext.c: Likewise.
* intl/ngettext.c: Likewise.
* intl/textdomain.c: Likewise.
* intl/bindtextdom.c: Likewise.
* intl/plural-exp.h: Likewise.
roland [Wed, 11 Dec 2002 22:58:23 +0000 (22:58 +0000)]
2002-12-11 Bruno Haible <bruno@clisp.org>
* intl/gettext.h: Renamed to ...
* intl/gmo.h: ... here.
* intl/Makefile (distribute): Add gmo.h, remove gettext.h.
* intl/gettextP.h: Update.
* intl/loadmsgcat.c: Update.
drepper [Wed, 11 Dec 2002 09:32:45 +0000 (09:32 +0000)]
Update.
drepper [Wed, 11 Dec 2002 09:32:07 +0000 (09:32 +0000)]
(__pthread_initialize_minimal): Fix initialization in static lib by
preventing gcc from being too clever.
drepper [Wed, 11 Dec 2002 06:32:37 +0000 (06:32 +0000)]
Update.
drepper [Wed, 11 Dec 2002 06:31:03 +0000 (06:31 +0000)]
(__bswap_64): Apply __builtin_constant_p to macro parameter.
drepper [Wed, 11 Dec 2002 00:55:49 +0000 (00:55 +0000)]
Update.
drepper [Wed, 11 Dec 2002 00:54:11 +0000 (00:54 +0000)]
Define all functions as weak.
drepper [Wed, 11 Dec 2002 00:49:28 +0000 (00:49 +0000)]
Update.
drepper [Wed, 11 Dec 2002 00:43:16 +0000 (00:43 +0000)]
Define all functions as weak.
drepper [Wed, 11 Dec 2002 00:42:43 +0000 (00:42 +0000)]
(do_test): Adjustments for l_tls_modid being of type size_t.
drepper [Wed, 11 Dec 2002 00:00:07 +0000 (00:00 +0000)]
Update.
drepper [Tue, 10 Dec 2002 23:59:36 +0000 (23:59 +0000)]
(__pthread_initialize_minimal): Remove unneccesary sigaddset call.
roland [Tue, 10 Dec 2002 23:28:57 +0000 (23:28 +0000)]
.
roland [Tue, 10 Dec 2002 23:28:48 +0000 (23:28 +0000)]
2002-12-10 Jakub Jelinek <jakub@redhat.com>
* elf/tst-array1.c (preinit_array, init_array, fini_array):
Explicitly align the array to sizeof (void *).
* elf/tst-array2dep.c (init_array, fini_array): Likewise.
drepper [Tue, 10 Dec 2002 20:35:58 +0000 (20:35 +0000)]
Update.
drepper [Tue, 10 Dec 2002 20:35:04 +0000 (20:35 +0000)]
(__libc_creat): Renamed from creat.
(creat): New weak alias.
drepper [Tue, 10 Dec 2002 20:34:25 +0000 (20:34 +0000)]
(__libc_sigsuspend): New alias.
drepper [Tue, 10 Dec 2002 20:33:27 +0000 (20:33 +0000)]
(__libc_sigsuspend): Likewise.
drepper [Tue, 10 Dec 2002 20:33:12 +0000 (20:33 +0000)]
(__libc_select): New alias.
drepper [Tue, 10 Dec 2002 20:32:00 +0000 (20:32 +0000)]
Fix a comment typo.
drepper [Tue, 10 Dec 2002 20:19:59 +0000 (20:19 +0000)]
Update.
drepper [Tue, 10 Dec 2002 20:19:21 +0000 (20:19 +0000)]
(CANCELABLE_SYSCALL): Don't define function as weak. There is no
reason for that.
(CANCELABLE_SYSCALL_VA): Likewise.
drepper [Tue, 10 Dec 2002 20:10:53 +0000 (20:10 +0000)]
Update.
drepper [Tue, 10 Dec 2002 20:10:39 +0000 (20:10 +0000)]
(tests): We can run tst-locale2 now.
drepper [Tue, 10 Dec 2002 19:45:21 +0000 (19:45 +0000)]
Update.
drepper [Tue, 10 Dec 2002 19:43:21 +0000 (19:43 +0000)]
No new symbols in 2.3.1, but some new ones in 2.3.2.
roland [Tue, 10 Dec 2002 11:08:11 +0000 (11:08 +0000)]
.
roland [Tue, 10 Dec 2002 11:06:52 +0000 (11:06 +0000)]
2002-12-10 Roland McGrath <roland@redhat.com>
* manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
contributes a manual chapter.
* manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
around xref to it.
roland [Tue, 10 Dec 2002 10:31:03 +0000 (10:31 +0000)]
.
roland [Tue, 10 Dec 2002 10:30:56 +0000 (10:30 +0000)]
2002-12-09 Jakub Jelinek <jakub@redhat.com>
* elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
defined.
* sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
function.
(EXTRA_LD_ENVVARS): Use it.
(DL_OSVERSION_INIT): Define.
* sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
dl-librecon.h.
(EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
roland [Tue, 10 Dec 2002 10:30:53 +0000 (10:30 +0000)]
2002-12-10 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
and move contents to ...
(EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
* sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
it instead of duplicating its contents.
(EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
2002-12-09 Jakub Jelinek <jakub@redhat.com>
* elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
defined.
* sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
function.
(EXTRA_LD_ENVVARS): Use it.
(DL_OSVERSION_INIT): Define.
* sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
dl-librecon.h.
(EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
drepper [Tue, 10 Dec 2002 10:00:51 +0000 (10:00 +0000)]
Update.
drepper [Tue, 10 Dec 2002 09:59:25 +0000 (09:59 +0000)]
(__closedir): Remove __libc_lock_lock call. It is not allowed to
destroy pthread mutexes which are still in use even though it is safe
for our implementations. If somebody still uses the descriptor it is
a bug.
roland [Tue, 10 Dec 2002 05:10:08 +0000 (05:10 +0000)]
.
roland [Tue, 10 Dec 2002 05:09:56 +0000 (05:09 +0000)]
2002-12-09 Richard Henderson <rth@redhat.com>
* csu/abi-note.S: Use .p2align, not .align.
drepper [Tue, 10 Dec 2002 04:05:39 +0000 (04:05 +0000)]
Update.
drepper [Tue, 10 Dec 2002 04:04:44 +0000 (04:04 +0000)]
Update.
drepper [Tue, 10 Dec 2002 04:03:43 +0000 (04:03 +0000)]
Add __libc_creat and __libc_select aliases.
drepper [Tue, 10 Dec 2002 04:02:31 +0000 (04:02 +0000)]
Define __libc_sigwaitinfo alias.
drepper [Tue, 10 Dec 2002 04:01:54 +0000 (04:01 +0000)]
Define __libc_sigwait alias.
drepper [Tue, 10 Dec 2002 04:01:28 +0000 (04:01 +0000)]
Define __libc_sigsuspend alias.
drepper [Tue, 10 Dec 2002 04:00:47 +0000 (04:00 +0000)]
Define __libc_poll alias.
drepper [Tue, 10 Dec 2002 03:59:53 +0000 (03:59 +0000)]
Define __libc_select alias.
drepper [Tue, 10 Dec 2002 03:59:13 +0000 (03:59 +0000)]
Define __libc_waitid alias.
drepper [Tue, 10 Dec 2002 03:58:21 +0000 (03:58 +0000)]
Define __libc_sigpause and __libc___xpg_sigpause aliases.
drepper [Tue, 10 Dec 2002 03:57:22 +0000 (03:57 +0000)]
Define __libc_pselect alias.
drepper [Tue, 10 Dec 2002 03:56:22 +0000 (03:56 +0000)]
Remove use of USE_IN_LIBIO.
drepper [Tue, 10 Dec 2002 03:56:09 +0000 (03:56 +0000)]
Update.
drepper [Tue, 10 Dec 2002 03:39:11 +0000 (03:39 +0000)]
Export creat, poll, pselect, readv, select, sigpause, __xpg_sigpause,
sigsuspend, sigwaitinfo, waitid, and writev from libpthread in version
GLIBC_2.3.2.
drepper [Tue, 10 Dec 2002 03:38:06 +0000 (03:38 +0000)]
Add wrappers for creat, poll, pselect, readv, select, sigpause,
__xpg_sigpause, sigsuspend, sigwaitinfo, waitid, and writev.
drepper [Tue, 10 Dec 2002 03:35:48 +0000 (03:35 +0000)]
Update.
drepper [Tue, 10 Dec 2002 03:35:17 +0000 (03:35 +0000)]
Remove duplicated sigwait entry.
drepper [Mon, 9 Dec 2002 22:57:03 +0000 (22:57 +0000)]
Require binutils 2.13.
drepper [Mon, 9 Dec 2002 22:54:11 +0000 (22:54 +0000)]
(Tools for Compilation): Require binutils 2.13.
roland [Mon, 9 Dec 2002 20:37:37 +0000 (20:37 +0000)]
.
roland [Mon, 9 Dec 2002 20:37:20 +0000 (20:37 +0000)]
2002-12-08 Roland McGrath <roland@redhat.com>
* elf/Makefile (tests): Uncomment tst-array[123].
* Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
* csu/elf-init.c: New file.
* csu/Makefile (routines, static-only-routines): Add elf-init.
* sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
and __libc_csu_fini in place of _fini.
* sysdeps/arm/elf/start.S: Likewise.
* sysdeps/cris/elf/start.S: Likewise.
* sysdeps/hppa/elf/start.S: Likewise.
* sysdeps/i386/elf/start.S: Likewise.
* sysdeps/ia64/elf/start.S: Likewise.
* sysdeps/m68k/elf/start.S: Likewise.
* sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
* sysdeps/mips/elf/start.S: Likewise.
* sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
* sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
* sysdeps/s390/s390-32/elf/start.S: Likewise.
* sysdeps/s390/s390-64/elf/start.S: Likewise.
* sysdeps/sh/elf/start.S: Likewise.
* sysdeps/sparc/sparc32/elf/start.S: Likewise.
* sysdeps/sparc/sparc64/elf/start.S: Likewise.
* sysdeps/x86_64/elf/start.S: Likewise.
roland [Mon, 9 Dec 2002 10:49:37 +0000 (10:49 +0000)]
.
roland [Mon, 9 Dec 2002 10:49:26 +0000 (10:49 +0000)]
2002-12-06 Roland McGrath <roland@redhat.com>
* td_ta_event_getmsg.c (td_ta_event_getmsg): Write the NEXT pointer
into the inferior's __pthread_last_event variable, not a word from
an inferior address used in the parent. Pass the address of a
null word to ps_pdwrite, not a null pointer.
roland [Mon, 9 Dec 2002 07:14:24 +0000 (07:14 +0000)]
.
roland [Mon, 9 Dec 2002 07:14:11 +0000 (07:14 +0000)]
2002-12-08 Roland McGrath <roland@redhat.com>
* sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
struct containing function ptr and value, free it.
(__aio_notify_only): Allocate that and copy values from SIGEV into it.
It's not safe to let the new thread use the SIGEV pointer.
roland [Mon, 9 Dec 2002 02:03:28 +0000 (02:03 +0000)]
.
roland [Mon, 9 Dec 2002 02:03:15 +0000 (02:03 +0000)]
2001-10-20 Paul Eggert <eggert@twinsun.com>
* misc/error.c (strerror_r): Do not declare unless [!_LIBC].
Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
Use strerror_r that is only a macro, even if it is not a function.
(strerror): Check for HAVE_DECL_STRERROR before declaring.
(private_strerror): Use prototypes, not old-style function definition.
(print_errno_message): New function.
Support the POSIX 'int'-flavored strerror_r, as well as the traditional
char*-flavored one.
(error_tail, error, error_at_line): Use it.
drepper [Sun, 8 Dec 2002 22:55:19 +0000 (22:55 +0000)]
Update.
drepper [Sun, 8 Dec 2002 22:53:46 +0000 (22:53 +0000)]
Added SHMLBA #define.
drepper [Sun, 8 Dec 2002 09:41:40 +0000 (09:41 +0000)]
Update.
drepper [Sun, 8 Dec 2002 09:41:26 +0000 (09:41 +0000)]
Enable pthread_cleanup_{push,pop} optimizations only inside libpthread.
drepper [Sun, 8 Dec 2002 09:28:13 +0000 (09:28 +0000)]
Update.
drepper [Sun, 8 Dec 2002 09:27:53 +0000 (09:27 +0000)]
(__fcntl): Initialize oldtype to avoid warning.