Ulrich Drepper
6bf4302e76
(_int_free): Add inexpensive double free and memory corruption tests. (malloc_printf_nc): Renamed to malloc_printerr. Second parameter is no format string anymore. Don't use stdio. Adjust all callers.
2004-09-09 09:03:28 +00:00
Andreas Jaeger
45ab54ce2d
* nscd/Makefile (CFLAGS-nscd_setup_thread.c): Set to -fpie.
2004-09-09 06:35:47 +00:00
Andreas Jaeger
1f9c1540bf
(CFLAGS-nscd_setup_thread.c): Set to -fpie.
2004-09-09 06:35:38 +00:00
Ulrich Drepper
31f93b3b72
[BZ #375 ]
...
Update.
2004-09-08 Ulrich Drepper <drepper@redhat.com>
* sysdeps/pthread/pthread.h
(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): Make safe for C++.
(PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Likewise.
(PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Likewise.
(PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Likewise.
[BZ #375 ]
2004-09-09 04:59:02 +00:00
Ulrich Drepper
062ad13224
Update.
...
* sysdeps/unix/sysv/linux/bits/socket.h (__SCM_CONNECT): Removed.
2004-09-09 02:04:45 +00:00
Ulrich Drepper
9d0cdc0eea
Update.
...
2004-09-08 Ulrich Drepper <drepper@redhat.com>
* malloc/malloc.c (_int_free): Add inexpensive double free test.
2004-09-09 01:58:35 +00:00
Ulrich Drepper
4924c0072b
Update.
...
* sysdeps/ia64/fpu/bits/mathinline.h: Use __NTH instead of __THROW.
2004-09-08 Ulrich Drepper <drepper@redhat.com>
2004-09-08 21:47:22 +00:00
Ulrich Drepper
239581f404
Use __NTH instead of __THROW.
2004-09-08 21:44:02 +00:00
Roland McGrath
54b497ce38
* malloc/mcheck.c: Don't use __P.
...
Use prototypes definitions for static functions.
2004-09-08 20:36:06 +00:00
Roland McGrath
b80163bd53
2004-09-08 Roland McGrath <roland@redhat.com>
...
* malloc/mcheck.c: Don't use __P.
Use prototypes definitions for static functions.
2004-09-08 20:36:02 +00:00
Ulrich Drepper
cf6f93d426
Update.
...
* nscd/nscd-client.h: Add a few #includes.
2004-09-08 19:49:17 +00:00
Ulrich Drepper
67a0b49db3
* sysdeps/generic/nscd_setup_thread.c: New file.
...
* sysdeps/unix/sysv/linux/nscd_setup_thread.c: New file.
2004-09-08 18:03:21 +00:00
Ulrich Drepper
081fc592fa
Update.
...
Jakub Jelinek <jakub@redhat.com>
* nscd/Makefile (nscd-modules): Add nscd_setup_thread.
* nscd/connections.c (nscd_run): Call setup_thread for maintenance
threads.
* nscd/nscd-client.h (struct database_pers_head): Add
nscd_certainly_running field.
* nscd/nscd.h: Declare setup_thread.
* nscd/nscd_helper.c (__nscd_get_map_ref): Avoid the time test if
nscd_certainly_running is nonzero.
2004-09-08 Ulrich Drepper <drepper@redhat.com>
2004-09-08 17:56:46 +00:00
Ulrich Drepper
c207f23b0b
Update.
...
* nscd/connections.c: Implement r/o sharing of nscd's cache with client
processes via shared memory.
* nscd/nscd-client.h: Likewise.
* nscd/nscd.h: Likewise.
* nscd/nscd_conf.c: Likewise.
* nscd/nscd_getgr_r.c: Likewise.
* nscd/nscd_getpw_r.c: Likewise.
* nscd/nscd_gethst_r.c: Likewise.
* nscd/nscd.conf: Add new config parameters.
* nscd/Makefile (aux): Add nscd_helper.
* nscd/nscd_helper.c: New file.
* nscd/mem.c (gc): Indicate beginning and end of the gc cycle.
* nscd/hstcache.c: Simplify a lot. We cache only the request itself,
no derived information.
* connections.c (nscd_init): Fix bug in testing size of the persistent.
* nis/Makefile (aux): Add nis_hash.
* nis/nis_hash.c: New file. Split out from nis_util.c.
* nis/nis_util.c: Move __nis_hash code in separate file.
* csu/tst-atomic.c: Improve atomic_increment_val test which would
not have found a ppc bug.
2004-09-08 15:46:42 +00:00
Ulrich Drepper
0a3ad40da9
Update.
...
* sysdeps/s390/fpu/bits/mathinline.h: Remove unnecessary includes.
2004-09-08 14:04:05 +00:00
Ulrich Drepper
06d6611aac
Update.
...
2004-09-08 Ulrich Drepper <drepper@redhat.com>
* malloc/arena.c: Remove __MALLOC_P uses.
* malloc/malloc.c: Likewise.
* malloc/mtrace.c: Remove __P uses.
* malloc/mcheck-init.c: Likewise.
2004-09-08 08:12:39 +00:00
Ulrich Drepper
590b40f7ec
Update.
...
2004-09-07 Jakub Jelinek <jakub@redhat.com>
* sysdeps/powerpc/powerpc64/configure.in: New file.
* config.h.in (USE_PPC64_OVERLAPPING_OPD): Add.
* configure.in (HAVE_ASM_GLOBAL_DOT_NAME): Remove.
* sysdeps/powerpc/powerpc64/sysdep.h: Formatting.
(OPD_ENT, BODY_LABEL, ENTRY_1, ENTRY_2, END_2, DOT_PREFIX,
BODY_PREFIX): Define.
(ENTRY, DOT_LABEL, END, TRACEBACK, END_GEN_TB, EALIGN): Support
HAVE_ASM_GLOBAL_DOT_NAME or no dot symbols,
USE_PPC64_OVERLAPPING_OPD or never overlapping .opd entries.
* sysdeps/powerpc/powerpc64/dl-machine.h: Include sysdep.h.
(TRAMPOLINE_TEMPLATE, RTLD_START): Use the new sysdep.h macros.
2004-09-08 07:02:28 +00:00
Ulrich Drepper
67254a97d9
Update.
...
* malloc/malloc.h: Don't define __THROW if it is already defined.
2004-09-08 06:31:04 +00:00
Ulrich Drepper
7ba0e52c39
Update.
...
* sysdeps/powerpc/bits/atomic.h (atomic_increment): Define.
(atomic_decrement): Define.
* sysdeps/powerpc/bits/atomic.h: Implement atomic_increment_val and
atomic_decrement_val.
* sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
* sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
* csu/tst-atomic.c (do_test): Add tests of atomic_increment_val
and atomic_decrement_val.
2004-09-08 06:09:02 +00:00
Ulrich Drepper
f510d815be
and atomic_delay is not already defined.
2004-09-07 22:41:16 +00:00
Ulrich Drepper
f377d02227
Update.
...
* include/atomic.h: Define atomic_increment_val, atomic_decrement_val,
and atomic_dealy is not already defined.
* sysdeps/i386/i486/bits/atomic.h: Define atomic_delay.
* sysdeps/x86_64/bits/atomic.h: Likewise.
* miscd/sys/cdefs.h (__NTH): New macro.
(__THROW): Define using nothrow attribute for C code and gcc >= 3.2.
(__REDIRECT_NTH): New macro.
* argp/argp.h: Use __NTH and __REDIRECT_NTH where necessary.
* ctype/ctype.h: Likewise.
* dirent/dirent.h: Likewise.
* io/fcntl.h: Likewise.
* io/sys/sendfile.h: Likewise.
* io/sys/stat.h: Likewise.
* io/sys/statfs.h: Likewise.
* io/sys/statvfs.h: Likewise.
* libio/bits/stdio.h: Likewise.
* misc/sys/mman.h: Likewise.
* posix/unistd.h: Likewise.
* resource/sys/resource.h: Likewise.
* rt/aio.h: Likewise.
* signal/signal.h: Likewise.
* stdlib/stdlib.h: Likewise.
* string/argz.h: Likewise.
* string/string.h: Likewise.
* sysdeps/generic/inttypes.h: Likewise.
* sysdeps/i386/fpu/bits/mathinline.h: Likewise.
* sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
* sysdeps/s390/fpu/bits/mathinline.h: Likewise.
* sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
* sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
* sysdeps/unix/sysv/linux/bits/sys/sysmacros.h: Likewise.
* wcsmbs/wchar.h: Likewise.
* sysdeps/generic/glob.c: Use __PMT isntead of __P where appropriate.
* resolv/gethnamaddr.c (getanswer): Remove __P use in variable
definition.
* io/sys/poll.h: Remove __THROW from poll prototype, it's a
cancellation point.
2004-09-07 22:33:37 +00:00
Ulrich Drepper
36ccb375a7
Use __PMT instead of __P where appropriate.
2004-09-07 22:10:43 +00:00
Roland McGrath
e2e2181e41
* tst-cancel4.c (tf_waitid): Use WEXITED flag bit if available.
2004-09-07 21:36:26 +00:00
Roland McGrath
db12ef58ba
2004-09-04 Jakub Jelinek <jakub@redhat.com>
...
* tst-cancel4.c (tf_waitid): Use WEXITED flag bit if available.
2004-09-07 21:36:21 +00:00
Ulrich Drepper
0cf12a6a6d
(getanswer): Remove __P use in variable definition.
2004-09-07 21:10:49 +00:00
Ulrich Drepper
e0329987e3
Update.
...
2004-09-07 Ulrich Drepper <drepper@redhat.com>
* sysdeps/pthread/pthread.h (pthread_once): Remove __THROW since
the initialization function might throw.
2004-09-07 20:52:41 +00:00
Ulrich Drepper
f863a5a5af
Update.
...
* io/fts.c (fts_open): Remove uses of __P.
2004-09-07 17:28:11 +00:00
Ulrich Drepper
3655715ba5
Update.
...
2004-09-07 Ulrich Drepper <drepper@redhat.com>
* include/stdlib.h: No need to use __THROW in this header.
2004-09-07 17:06:18 +00:00
Ulrich Drepper
2ef4aac763
No need to use __THROW in this header.
2004-09-07 17:04:23 +00:00
Roland McGrath
f2b85a9f1d
* sysdeps/mach/hurd/dl-sysdep.c (__writev): Does use assert on FD
...
validity, since __assert_fail gets to here anyway. Just fail.
2004-09-06 21:31:44 +00:00
Roland McGrath
584d156836
2004-09-06 Roland McGrath <roland@frob.com>
...
* sysdeps/mach/hurd/dl-sysdep.c (__writev): Does use assert on FD
validity, since __assert_fail gets to here anyway. Just fail.
2004-09-06 21:31:38 +00:00
Ulrich Drepper
a4fdd4b8b8
(gaih_inet): Little code cleanup. Move variable h into gethosts macro.
2004-09-06 08:26:59 +00:00
Ulrich Drepper
415b043df9
Update.
...
2004-09-06 Ulrich Drepper <drepper@redhat.com>
* sysdeps/posix/getaddrinfo.c (gaih_inet): Fix problem with
AF_UNSPEC lookup with AI_CANONNAME of name which has only IPv6
addresses.
2004-09-06 08:16:27 +00:00
Ulrich Drepper
b0d8b23d61
(gaih_inet): Fix problem with AF_UNSPEC lookup with AI_CANONNAME of name which has only IPv6 addresses.
2004-09-06 08:15:50 +00:00
Richard Henderson
6029b952a6
* sysdeps/alpha/fpu/fraiseexcpt.c: Remove file. * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IEEE_RAISE_EXCEPTION): New. * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.c: New file. * sysdeps/unix/sysv/linux/alpha/kernel_sysinfo.h: New file. * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use it. * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
...
* sysdeps/alpha/fpu/fraiseexcpt.c: Remove file.
* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_IEEE_RAISE_EXCEPTION): New.
* sysdeps/unix/sysv/linux/alpha/fraiseexcpt.c: New file.
* sysdeps/unix/sysv/linux/alpha/kernel_sysinfo.h: New file.
* sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use it.
* sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2004-09-05 Richard Henderson <rth@redhat.com>
2004-09-06 02:19:36 +00:00
Richard Henderson
febcd83655
* sysdeps/alpha/div.S: Save and restore FPCR around fp operations. * sysdeps/alpha/divl.S, sysdeps/alpha/divq.S, sysdeps/alpha/divqu.S, sysdeps/alpha/ldiv.S, sysdeps/alpha/reml.S, sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S: Likewise. * sysdeps/alpha/div_libc.h (FRAME): Increase to 64.
...
2004-09-05 Richard Henderson <rth@redhat.com>
* sysdeps/alpha/div.S: Save and restore FPCR around fp operations.
* sysdeps/alpha/divl.S, sysdeps/alpha/divq.S, sysdeps/alpha/divqu.S,
sysdeps/alpha/ldiv.S, sysdeps/alpha/reml.S, sysdeps/alpha/remq.S,
sysdeps/alpha/remqu.S: Likewise.
* sysdeps/alpha/div_libc.h (FRAME): Increase to 64.
2004-09-06 02:01:35 +00:00
Richard Henderson
42d86dd6c0
* sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P): Move definition inside libpthread, libc, librt check. Provide definition for rtld.
...
2005-09-05 Richard Henderson <rth@redhat.com>
* sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
Move definition inside libpthread, libc, librt check. Provide
definition for rtld.
lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success
return actual return value from the syscall, not 0.
Add __mutex field.
2004-09-06 01:12:02 +00:00
Ulrich Drepper
418dfb124c
Update.
...
2004-09-05 Ulrich Drepper <drepper@redhat.com>
* nscd/cache.c (cache_add): Correctly log GETHOSTBYADDR and
GETHOSTBYADDRv6 requests.
2004-09-05 07:19:46 +00:00
Ulrich Drepper
03e157d849
Update.
...
2004-09-04 Ulrich Drepper <drepper@redhat.com>
* nscd/pwdcache.c (cache_addpw): Use correct key length in
cache_add calls.
* nscd/grpcache.c (cache_addgr): Likewise.
2004-09-05 07:02:13 +00:00
Ulrich Drepper
3d73c4ba9c
(cache_addgr): Use correct key length in cache_add calls.
2004-09-05 06:47:36 +00:00
Roland McGrath
2a254592d0
* sysdeps/mach/hurd/i386/tls.h (THREAD_DTV): Changed type of _DTV
...
to `dtv_t *'.
2004-09-03 20:49:05 +00:00
Roland McGrath
b80f5da01c
2004-09-03 Alfred M. Szmidt <ams@kemisten.nu>
...
* sysdeps/mach/hurd/i386/tls.h (THREAD_DTV): Changed type of _DTV
to `dtv_t *'.
2004-09-03 20:49:00 +00:00
Ulrich Drepper
ead07d01fa
Update.
...
2004-09-03 Ulrich Drepper <drepper@redhat.com>
* nscd/nscd.c (parse_opt): Use writev instead of two write for
invalidate command.
2004-09-03 08:15:41 +00:00
Ulrich Drepper
1da484d94a
Update.
...
2004-09-02 Ulrich Drepper <drepper@redhat.com>
* nscd/connections.c (nscd_run): Check early for invalid request types.
2004-09-03 03:41:30 +00:00
Ulrich Drepper
3c82c131d9
(nscd_run): Check early for invalid request types.
2004-09-03 03:39:45 +00:00
Roland McGrath
91b52f4838
Add backslashes missing in last change.
2004-09-03 00:28:13 +00:00
Roland McGrath
58c64754d2
* sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): New macro.
...
(INSTALL_NEW_DTV, THREAD_DTV): Rewritten to fetch the right word.
(THREAD_SELF): New macro.
2004-09-02 23:58:45 +00:00
Roland McGrath
0544677016
2004-09-02 Roland McGrath <roland@redhat.com>
...
* sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): New macro.
(INSTALL_NEW_DTV, THREAD_DTV): Rewritten to fetch the right word.
(THREAD_SELF): New macro.
2004-09-02 23:58:23 +00:00
Ulrich Drepper
f76c849910
Update.
...
* sysdeps/alpha/jmpbuf-unwind.h: Define __libc_unwind_longjmp.
* sysdeps/i386/jmpbuf-unwind.h: Likewise
* sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
* sysdeps/s390/jmpbuf-unwind.h: Likewise.
* sysdeps/sh/jmpbuf-unwind.h: Likewise.
* sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
* sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
* unwind.c: Use it.
2004-09-02 22:47:23 +00:00
Ulrich Drepper
73f7c32c47
[BZ #357 ]
...
Update.
2004-09-02 Steven Munroe <sjmunroe@us.ibm.com>
[BZ #357 ]
* stdlib/tst-setcontext.c (test_stack): Added test for stack clobber.
(main): Call test_stack.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
(__getcontext): Push stack frame then save parms in local frame.
Improve instruction scheduling.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
(__swapcontext): Likewise.
2004-09-02 18:59:24 +00:00