aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads
AgeCommit message (Collapse)Author
2000-08-30Update.Ulrich Drepper
* iconvdata/big5hkscs.c: Rewritten. Regenerate data from the official file. * iconvdata/TESTS: Add BIG5HKSCS entry. * iconvdata/testdata/BIG5HKSCS: New file. * iconvdata/testdata/BIG5HKSCS..UTF8: New file. * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is always true.
2000-08-25Update.Ulrich Drepper
2000-08-25 Ulrich Drepper <drepper@redhat.com> * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic. * elf/nodelete.c (fini_ran): New global variable. (do_test): Before every dlclose call clear fini_ran and test afterwards that it is not set by the destructors. * elf/nodelmod1.c: Add destructor which sets fini_ran. * elf/nodelmod2.c: Likewise. * elf/nodelmod4.c: Likewise.
2000-08-25Update.Ulrich Drepper
* elf/dl-close.c (_dl_close): Don't run destructors of objects marked DF_1_NODELETE.
2000-08-25Update.Ulrich Drepper
2000-08-25 Ulrich Drepper <drepper@redhat.com> * sysdeps/posix/system.c (__libc_system): We cannot use vfork here since we call sigaction in the child.
2000-08-25(PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Defined. ↵Ulrich Drepper
(PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP: Defined.
2000-08-24Update.Andreas Jaeger
* Examples/ex13.c: Include <string.h> for strerror prototype and <stdlib.h> for abort prototype.
2000-08-24Update.Andreas Jaeger
* sysdeps/unix/sysv/syscalls.list: Likewise.
2000-08-24Update.Andreas Jaeger
Move inclusion of test-skeleton to front to have prototype for add_temp_file.
2000-08-22* Examples/ex13.c: New test by Kurt Garloff <garloff@suse.de>.Andreas Jaeger
* Makefile (tests): Add ex13. 2000-08-22 Andreas Jaeger <aj@suse.de> * Examples/ex13.c: New test by Kurt Garloff <garloff@suse.de>. * Makefile (tests): Add ex13.
2000-08-21Update.Ulrich Drepper
* misc/sys/cdefs.h: Define __restrict_arr. * include/sys/time.h: Add restrict where required by AGd4. * inet/arpa/inet.h: Likewise. * io/sys/stat.h: Likewise. * io/sys/statvfs.h: Likewise. * misc/search.h: Likewise. * misc/sys/select.h: Likewise. * posix/glob.h: Likewise. * posix/regex.h: Likewise. * posix/spawn.h: Likewise. * posix/unistd.h: Likewise. * rt/aio.h: Likewise. * signal/signal.h: Likewise. * socket/sys/socket.h: Likewise. * stdlib/ucontext.h: Likewise. * streams/stropts.h: Likewise. * string/string.h: Likewise. * time/time.h: Likewise. * time/sys/time.h: Likewise. * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam and posix_spawnattr_setscheparam. * libio/stdio.h: Make cuserid prototype again available for all XPG versions.
2000-08-17Update.Greg McGary
2000-08-17 Greg McGary <greg@mcgary.org> * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix from test program name when constructing suffix for $(LDLIBS-*). (bounded-thread-library): New variable. * crypt/Makefile [build-shared, build-static] (libcrypt-dep): Remove variable. ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies. [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies. * linuxthreads/Makefile (libpthread, librt): Remove variables. (librt-tests): Add variable. (tests): Use it. [build-shared, build-static] ($(addprefix $(objpfx),$(tests)), $(addprefix $(objpfx),$(librt-tests))): Consolidate individual dependencies. [build-bounded] ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)): Add dependencies. * math/Makefile (LDLIBS-*): Remove variables (they are redundant). [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies. * misc/Makefile [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies. * rt/Makefile [build-shared, build-static] ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies. [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies. 2000-08-17 Greg McGary <greg@mcgary.org> * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/ * sysdeps/unix/make-syscalls.sh: Likewise. * sysdeps/unix/sysv/linux/shmctl.c: Likewise. * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise. * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise. 2000-08-17 Greg McGary <greg@mcgary.org> * sysdeps/i386/fpu/s_frexp.S: Check bounds. Wrap extern symbols in BP_SYM (). * sysdeps/i386/fpu/s_frexpf.S: Likewise. * sysdeps/i386/fpu/s_frexpl.S: Likewise. * sysdeps/i386/fpu/s_remquo.S: Likewise. * sysdeps/i386/fpu/s_remquof.S: Likewise. * sysdeps/i386/fpu/s_remquol.S: Likewise. * sysdeps/i386/fpu/s_sincos.S: Likewise. * sysdeps/i386/fpu/s_sincosf.S: Likewise. * sysdeps/i386/fpu/s_sincosl.S: Likewise. * sysdeps/unix/sysv/linux/i386/clone.S: Likewise. * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2000-08-16Update.Ulrich Drepper
2000-08-15 Marko Myllynen <myllynen@lut.fi> * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
2000-08-14Update.Ulrich Drepper
2000-08-12 Andreas Jaeger <aj@suse.de> * include/features.h (__STDC_ISO_10646__): Define. Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>. * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600. * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not for revision 6 and up). * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before including <time.h>. * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined to get definitions of just these types. * signal/signal.h: Define thread signal handling functions also for POSIX95. * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for POSIX95. * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise. * sysvipc/sys/shm.h: Define pid_t for XPG. * wcsmbs/wchar.h: Make the various wide char string and stream functions available for the respective XPG versions.
2000-08-12Update.Andreas Jaeger
* sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2000-08-12 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set ↵Andreas Jaeger
mips2 for assembler. * sysdeps/mips/pt-machine.h (testandset): Add .set mips2 for assembler. (__compare_and_swap): Likewise. * sysdeps/mips/pspinlock.c (__pthread_spin_lock): Likewise.
2000-08-10Update.Ulrich Drepper
2000-08-10 Ulrich Drepper <drepper@redhat.com> * timezone/zic.c: Update from tzcode2000f. * timezone/australasia: Update from tzdata2000f. * timezone/europe: Likewise. * timezone/southamerica: Likewise. * timezone/yearistype: Likewise.
2000-08-08Update.Ulrich Drepper
2000-08-08 Ulrich Drepper <drepper@redhat.com> * locale/linereader.c (get_string): Don't print an error is a string contains an unknown character.
2000-08-05Update.Ulrich Drepper
2000-08-05 Ulrich Drepper <drepper@redhat.com> * Banner: Bump version number to 0.9. Always allocate stack and guardpage together. Use mprotect to
2000-08-05Update.Ulrich Drepper
* Makefile (tests): Add tststack. Add rule to build the program. * tststack.c: New file.
2000-08-05Update.Ulrich Drepper
* internals.h: Declare __pthread_max_stacksize. * pthread.c (__pthread_max_stacksize): New variable. (__pthread_initialize_manager): Determine __pthread_initialize_manager value. * manager.c (thread_segment): Return always NULL if FLOATING_STACKS. (pthread_allocate_stack): Allow kernel to choose stack address if FLOATING_STACKS. This also handles variable-sized stacks. Always allocate stack and guardoage together. Use mprotect to change guardpage access. * sysdeps/i386/useldt.h: Define FLOATING_STACKS and ARCH_STACK_MAX_SIZE. * attr.c (__pthread_attr_setstacksize): Also test value against upper limit.
2000-08-05Update.Ulrich Drepper
2000-08-04 Ulrich Drepper <drepper@redhat.com> * manager.c (__pthread_nonstandard_stacks): Define only if THREAD_SELF is not defined. (pthread_allocate_stack): Always initialize gardaddr to a correct value. (pthread_handle_create): Unmap thread with one call. (pthread_free): Remove test for initial thread before removing stack. Unmap stack with one call. * pthread.c (__pthread_initial_thread): Initialize p_userstack to 1 to avoid removing the stack.
2000-08-03Update.Ulrich Drepper
2000-07-27 Jes Sorensen <jes@linuxcare.com> * linuxthreads/sysdeps/ia64/pspinlock.c (__pthread_spin_lock): Add load of spin lock to prime the cache before the atomic compare and exchange operation (cmpxchg4). This avoids the spinning on the cmpxchg4 instruction and reduces movement of the cache line back and forth between the processors (explanation by Asis K. Mallick from Intel). This basically makes the implementation operate the same as the Linux kernel implementation. * linuxthreads/shlib-versions: Use GLIBC_2_2 for Linux/ia64. * linuxthreads/sysdeps/ia64/pspinlock.c: New file.
2000-08-03Update.Ulrich Drepper
2000-08-03 Ulrich Drepper <drepper@redhat.com> * iconvdata/big5.c: Updated. Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2000-08-02Update.Andreas Jaeger
2000-08-02 Andreas Jaeger <aj@suse.de> * linuxthreads/sysdeps/s390/pspinlock.c: New file. * linuxthreads/sysdeps/s390/pt-machine.h: New file. Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2000-08-02Linux/S390 POSIX spinlock implementation.Andreas Jaeger
2000-07-28* sysdeps/mips/pspinlock.c (__pthread_spin_lock): Implement for Andreas Jaeger
R3K. * sysdeps/mips/pt-machine.h (testandset): Likewise. 2000-07-12 Maciej W. Rozycki <macro@ds2.pg.gda.pl> * sysdeps/mips/pspinlock.c (__pthread_spin_lock): Implement for R3K. * sysdeps/mips/pt-machine.h (testandset): Likewise.
2000-07-27Update.Ulrich Drepper
2000-07-27 Jes Sorensen <jes@linuxcare.com> * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong name and add weak alias for __fork. * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread & pwrite to use __libc_<name> as strong names instead of __syscall_<name>. * include/sched.h: Add clone2 prototype. 2000-07-26 Jes Sorensen <jes@linuxcare.com> * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the procedure name twice. 2000-07-27 Philip Blundell <philb@gnu.org> * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
2000-07-26Initialize p_sem_avail.Andreas Jaeger
2000-07-26 Andreas Jaeger <aj@suse.de> * pthread.c: Initialize p_sem_avail.
2000-07-26Update.Ulrich Drepper
* internals.h (struct __pthread_descr_struct): Add p_sem_avail.
2000-07-26Update.Ulrich Drepper
* internals.h (strict __pthread_descr_struct): Add p_sem_avail. * semaphore.c: Handle spurious wakeups. * sysdeps/pthread/pthread.h: Add back PTHREAD_MUTX_FAST_NP as an alias for PTHREAD_MUTEX_ADAPTIVE_NP for source code compatibility. * pthread.c (__pthread_set_own_extricate): Use THREAD_GETMEM. (__pthread_wait_for_restart): Likewise. * condvar.c (pthread_cond_wait): Also check whether thread is cancelable before aborting loop. (pthread_cond_timedwait): Likewise.
2000-07-26Update.Ulrich Drepper
2000-07-25 Ulrich Drepper <drepper@redhat.com> * signals.c (pthread_sighandler): Remove special code to restrore %gs on x86. (pthread_sighandler_t): Likewise.
2000-07-25Update.Ulrich Drepper
* libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
2000-07-25Update.Ulrich Drepper
2000-07-25 Mark Kettenis <kettenis@gnu.org> * nss/nss_files/files-netgrp.c (strip_whitespace): New function. (_nss_netgroup_parseline): Use strip_whitespace to strip off any leading and trailing spaces from host, user and domain name. 2000-07-25 Jes Sorensen <jes@linuxcare.com> * csu/defs.awk: Add support for need_endp. 2000-07-25 Mark Kettenis <kettenis@gnu.org> * resolv/resolv.h: Remove __P from res_send_qhook and res_send_rhook typedefs. 2000-07-25 Bruno Haible <haible@clisp.cons.org> * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
2000-07-24Update.Ulrich Drepper
* pthread.c (__pthread_initial_thread): Update initializer. (__pthread_manager_thread): Likewise. (pthread_initialize): Move setrlimit call to... (__pthread_initialize_manager): ...here. (__pthread_reset_main_thread): Reset also soft limit on stack size.
2000-07-24(__pthread_initial_thread): Update initializer. (__pthread_manager_thread): ↵Ulrich Drepper
Likewise. (pthread_initialize): Move setrlimit call to... (__pthread_initialize_manager): ...here. (__pthread_reset_main_thread): Reset also soft limit on stack size.
2000-07-24Update.Ulrich Drepper
* internals.h (struct _pthread_descr_struct): Add p_condvar_avail.
2000-07-24(struct _pthread_descr_struct): Add p_condvar_avail.Ulrich Drepper
2000-07-24Update.Ulrich Drepper
2000-07-24 Ulrich Drepper <drepper@redhat.com> * condvar.c: Handle spurious wakeups. [PR libc/1749]. * spinlock.h: If IMPLEMENT_TAS_WITH_CAS is defined use
2000-07-22Update.Ulrich Drepper
* locale/programs/ld-collate.c (handle_ellipsis): Test for duplication with generated name, not the name of the first character. Patch by Yong Li <yong.li@asu.edu>.
2000-07-22Update.Ulrich Drepper
2000-07-21 Ulrich Drepper <drepper@redhat.com> * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification. Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2000-07-21Fix typos.Ulrich Drepper
* pthread.c (pthread_initialize): Don't use sysconf to determine 2000-07-18 Kaz Kylheku <kaz@ashi.footprints.net>
2000-07-21Update.Ulrich Drepper
* elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)). (tests-nodelete-yes): Define. (modules-names): Add $(modules-nodelete-$(have-z-nodelete)). Add rules to build nodelete and modules. * elf/nodelete.c: New file. * elf/nodelmod1.c: New file. * elf/nodelmod2.c: New file. * configure.in: Add test for -z nodelete option. * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
2000-07-19Update.Ulrich Drepper
2000-07-19 Ulrich Drepper <drepper@redhat.com> * resolv/Makefile (distribute): Add README. * resolv/README: New file. By Mark Kettenis <kettenis@gnu.org>.
2000-07-19Update.Ulrich Drepper
2000-07-18 Mark Kettenis <kettenis@gnu.org> Update resolver code to BIND 8.2.3-T5B. * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and __res_nclose. [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename, __res_mkquery, __res_nsend, __res_query, __res_querydomain and __res_search. * resolv/Banner: BIND-8.2.3-T5B. * resolv/base64.c: Update from BIND 8.2.3-T5B. * resolv/herror.c: Likewise. * resolv/inet_addr.c: Likewise. * resolv/inet_net_ntop.c: Likewise. * resolv/inet_net_pton.c: Likewise. * resolv/inet_neta.c: Likewise. * resolv/inet_ntop.c: Likewise. * resolv/nsap_addr.c: Likewise. * resolv/inet_pton.c: Likewise. Reject a few more more invalid IPv6 addresses (ISC bug #520). * resolv/ns_name.c: Avoid emitting RCS ID in object file. * resolv/ns_parse.c: Likewise. * resolv/ns_netint.c: Likewise. * resolv/ns_samedomain.c: Likewise. * resolv/ns_ttl.c: Likewise. * resolv/ns_print.c: Update from BIND 8.2.3-T5B. Avoid emitting RCS ID in object file. * resolv/res_debug.c: Update from BIND 8.2.3-T5B. * resolv/res_mkquery.c: Likewise. * resolv/res_query.c: Likewise. * resolv/res_init.c: Likewise. (res_setoptions): Mark internal. * resolv/res_send.c: Likewise. [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit by using poll instead. * resolv/res_comp.c: Likewise. [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a weak alias for __dn_expand. * resolv/res_data.c: Likewise. (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set in _res.options. Avoids a potential security risk by avoiding a close (0). [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make res_mkquery, res_query, res_querydomain adn res_search weak aliases for __res_mkquery, __res_query, __res_querydomain and __res_search. * resolv/res_libc.c: (_res): Don't initialize. Fix res_close instead to avoid close(0). (res_init): Always use the static resolver context. [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak alias for __res_init. * resolv/resolv.h: Update from BIND 8.2.3-T5B. Move definition of RES_SET_H_ERRNO and accompanying comment to... * include/resolv.h: ... here. * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B. * resolv/arpa/nameser_compat.h: Likewise.
2000-07-19Update.Ulrich Drepper
2000-07-19 Kaz Kylheku <kaz@ashi.footprints.net> Bugfixes to the variant of the code for machines with no compare and swap. * spinlock.c (__pthread_alt_lock, __pthread_alt_timedlock): Wait node was not being properly enqueued, due to failing to update the lock->__status field. * spinlock.c (__pthread_alt_timedlock): The oldstatus variable was being set inappropriately, causing the suspend function to be called with a null self pointer and crash.
2000-07-19Update.Ulrich Drepper
* spinlock.h (__pthread_alt_trylock): Fix code used if no compare&swap is available.
2000-07-19Update.Ulrich Drepper
* spinlock.h (__pthread_trylock): Use __compare_and_swap, not compare_and_swap.
2000-07-18Update.Ulrich Drepper
* nss/makedb.c (main): Compare result of load_db with NSS_STATUS_SUCCESS and not 0. Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
2000-07-18Update.Ulrich Drepper
2000-07-18 Ulrich Drepper <drepper@redhat.com> * spinlock.c (__pthread_alt_timedlock): Add back one of the removed thread_self calls.
2000-07-18Update.Ulrich Drepper
2000-07-18 Ulrich Drepper <drepper@redhat.com> * include/libc-symbols.h: Define RETURN_ADDRESS macro. * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of __builtin_return_address. * dlfcn/dlopenold.c: Likewise. * dlfcn/dlsym.c: Likewise. * dlfcn/dlvsym.c: Likewise. * elf/dl-profstub.c: Likewise. * malloc/malloc.c: Likewise. * sysdeps/generic/machine-gmon.h: Likewise. Based on a patch by schwidefsky@de.ibm.com.