platform/upstream/glibc.git
20 years agoUpdate.
Ulrich Drepper [Mon, 18 Aug 2003 17:18:58 +0000 (17:18 +0000)]
Update.

2003-08-18  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
loading big binaries where @gprel(sym) cannot be handled in 'add'
but instead has to be used with 'movl'.

20 years ago(ELF_MACHINE_LOAD_ADDRESS): Support loading big binaries where @gprel(sym) cannot...
Ulrich Drepper [Mon, 18 Aug 2003 17:15:52 +0000 (17:15 +0000)]
(ELF_MACHINE_LOAD_ADDRESS): Support loading big binaries where @gprel(sym) cannot be handled in 'add' but instead has to be used with 'movl'.

20 years agoUpdate.
Andreas Jaeger [Sun, 17 Aug 2003 06:33:15 +0000 (06:33 +0000)]
Update.

2003-08-17  Andreas Jaeger  <aj@suse.de>

20 years agoUpdate.
Andreas Jaeger [Sun, 17 Aug 2003 06:32:18 +0000 (06:32 +0000)]
Update.

2003-08-17  Juergen Kreileder <jk@blackdown.de>
    Andreas Jaeger  <aj@suse.de>

* sysdeps/x86_64/bits/byteswap.h: New file.

20 years agoFix typo.
Andreas Jaeger [Sun, 17 Aug 2003 01:09:52 +0000 (01:09 +0000)]
Fix typo.

2003-08-17  Andreas Jaeger  <aj@suse.de>

* sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.

20 years agoUpdate.
Ulrich Drepper [Sun, 17 Aug 2003 00:37:19 +0000 (00:37 +0000)]
Update.

2003-08-16  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
* sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
* sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
* sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
* sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
ret_ERRVAL): Define.
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
Define.
* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
* sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.

* sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
posix_fadvise64_64): Remove.
* sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
V flag.
* sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
(posix_fadvise64): Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
(posix_fadvise64): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
(posix_fadvise64): Likewise.
* sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
Likewise.
* sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
* sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
(__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
(__posix_fadvise64_l32): New function.
* sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
posix_fadvise64@@GLIBC_2.3.3.
* sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
* sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
error value.
* sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.

* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
(SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.

2003-08-15  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
(elf_machine_matches_host): Remove weak extern stuff.
Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
(elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
stuff.  Use GL(dl_hwcap) unconditionally.

20 years agoUpdate.
Ulrich Drepper [Sat, 16 Aug 2003 18:21:36 +0000 (18:21 +0000)]
Update.

2003-08-16  Alan Modra  <amodra@bigpond.net.au>

* sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
__libc_start_main branch.

20 years agoAdd a nop after __libc_start_main branch.
Ulrich Drepper [Sat, 16 Aug 2003 18:19:50 +0000 (18:19 +0000)]
Add a nop after __libc_start_main branch.

20 years ago* sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
Andreas Jaeger [Sat, 16 Aug 2003 16:12:14 +0000 (16:12 +0000)]
* sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS

instead of setting errno.
* sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
2003-08-16  Jakub Jelinek <jakub@redhat.com>,
    Andreas Jaeger  <aj@suse.de>

* sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
instead of setting errno.
* sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.

20 years ago* sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
Andreas Jaeger [Sat, 16 Aug 2003 09:17:57 +0000 (09:17 +0000)]
* sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.

* sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
2003-08-16  Andreas Jaeger  <aj@suse.de>

* sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
* sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.

20 years agoUpdate.
Ulrich Drepper [Sat, 16 Aug 2003 08:10:06 +0000 (08:10 +0000)]
Update.

* sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
posix_fadvise64.
* sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
Add posix_fadvise64_64.

20 years agoUpdate.
Ulrich Drepper [Sat, 16 Aug 2003 06:21:46 +0000 (06:21 +0000)]
Update.

2003-08-15  Ulrich Drepper  <drepper@redhat.com>

* io/Versions [GLIBC_2.3.3]: Add posix_fadvise64.
* io/fcntl.h (posix_fadvise64): Change type of third parameter to
off_t.
* sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
* sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
description indicating the error value is returned, not -1.
* sysdeps/unix/sysv/linux/Makefile [subdir=io] (subdir_routines): Add
posix_fadvise64_64.
* sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
__ASSUME_FADVISE64_64_SYSCALL.
* sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
posix_madvise in one file.  Have posix_madvise defined with error
value returned.
Define posix_fadvise64_64 entry.  Add version info to posix_fadvise64
entry.
* sysdeps/unix/sysv/linux/alpha/syscalls.list: Define
posix_fadvise64_64 entry.  Add version info to posix_fadvise64 entry.
* sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
* sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
PSEUDO_END_ERRVAL, and ret_ERRVAL.
* sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.

* posix/Makefile (routines): Add posix_madvise.
* sysdeps/generic/madvise.c: Don't define posix_madvise.
* sysdeps/generic/posix_madvise.c: New file.
* sysdeps/unix/sysv/aix/posix_madvise.c: New file.

20 years agoUpdate.
Ulrich Drepper [Fri, 15 Aug 2003 17:55:25 +0000 (17:55 +0000)]
Update.

2003-08-15  Jakub Jelinek  <jakub@redhat.com>

* assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
3.0, not for !gcc or gcc < 3.0.

20 years agoUpdate.
Ulrich Drepper [Fri, 15 Aug 2003 03:58:56 +0000 (03:58 +0000)]
Update.

2003-08-11  Carlos O'Donell  <carlos@baldric.uwo.ca>

* dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
Address passed to test_in_mod1 and test_in_mod2 without casting.
* dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
(test_in_mod1): Cast dlsym loaded value to same type as mainp.
* dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
(test_in_mod2): Cast dlsym loaded value to same type as mainp.

2003-08-15  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
Change quotes before using [].

* sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.

* sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
Renamed to...
(__sparc32_atomic_locks): ...this.  Change into 64-byte array.
(__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
argument.  Select one of 64 locks from address bits.
(atomic_compare_and_exchange_val_acq,
atomic_compare_and_exchange_bool_acq): Pass memory address to
__sparc32_atomic_do_{,un}lock.

20 years ago(libc_cv_sparc32_tls): Change quotes before using [].
Ulrich Drepper [Fri, 15 Aug 2003 03:54:01 +0000 (03:54 +0000)]
(libc_cv_sparc32_tls): Change quotes before using [].

20 years agoRemove files not actually removed in 2003-03-31 change
Roland McGrath [Fri, 15 Aug 2003 00:23:43 +0000 (00:23 +0000)]
Remove files not actually removed in 2003-03-31 change

20 years agoUpdate.
Ulrich Drepper [Thu, 14 Aug 2003 21:48:29 +0000 (21:48 +0000)]
Update.

* assert/assert.h (assert): Use !! in front of expression to allow
use of pointers.

20 years agoUpdate.
Ulrich Drepper [Thu, 14 Aug 2003 08:49:16 +0000 (08:49 +0000)]
Update.

2003-08-14  Ulrich Drepper  <drepper@redhat.com>

* iconvdata/cp932.c: Fixed checking of a few border of code areas.
Changed conversion of JIS X 0201 from using a table to calculating.
* iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
conversion routine.  Changed CHARSET_NAME definition from EUCJP-MS to
EUC-JP-MS.
* iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
* iconvdata/CP932.irreversible: New file.
* iconvdata/EUC-JP-MS.irreversible: New file.
Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.

20 years agoUpdate.
Ulrich Drepper [Thu, 14 Aug 2003 00:14:43 +0000 (00:14 +0000)]
Update.

2003-08-13  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.

* elf/Makefile: Use LC_ALL=C in a few cases where we call external
text processing tools.

* sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
element unless BROKEN_THREAD_SIGNALS is defined.
(struct requestlist): Likewise.
* sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
* sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
* sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
parameter unless BROKEN_THREAD_SIGNALS is defined.  Adjust callers.
Pass current PID to __aio_sigqueue.
* sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
call.  Don't initialize caller_pid field of waitlist element.

20 years agoUpdate.
Ulrich Drepper [Tue, 12 Aug 2003 18:40:03 +0000 (18:40 +0000)]
Update.

2003-08-12  Jakub Jelinek  <jakub@redhat.com>

* libio/libioP.h (_IO_vtable_offset): Define.
* libio/freopen.c (freopen): Use it.
* libio/ioputs.c (_IO_puts): Likewise.
* libio/freopen64.c (freopen64): Likewise.
* libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
Likewise.
* libio/iofclose.c (_IO_new_fclose): Likewise.
* libio/iofputs.c (_IO_fputs): Likewise.
* libio/ioftell.c (_IO_ftell): Likewise.
* libio/iofwrite.c (_IO_fwrite): Likewise.
* libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
* libio/iosetbuffer.c (_IO_setbuffer): Likewise.
* stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
* stdio-common/vfscanf.c (ORIENT): Likewise.

20 years agoUpdate.
Ulrich Drepper [Tue, 12 Aug 2003 03:41:23 +0000 (03:41 +0000)]
Update.

2003-08-11  Ulrich Drepper  <drepper@redhat.com>

* assert/assert.h: Use __builtin_expect in assert and
assert_perror definitions if possible.

20 years agoUpdate.
Ulrich Drepper [Fri, 8 Aug 2003 07:43:03 +0000 (07:43 +0000)]
Update.

2003-08-07  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/generic/ldsodefs.h (_rtld_global): Add
_dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
* elf/rtld.c (rtld_lock_default_lock_recursive,
rtld_lock_default_unlock_recursive): New functions.
(dl_main): Initialize _dl_rtld_lock_recursive and
_dl_rtld_unlock_recursive.

2003-08-05  Jakub Jelinek  <jakub@redhat.com>

* elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
config_file directories instead of prepending.

20 years agoUpdate.
Ulrich Drepper [Fri, 8 Aug 2003 07:11:21 +0000 (07:11 +0000)]
Update.

2003-08-06  Jakub Jelinek  <jakub@redhat.com>

* tst-cancel17.c (do_test): Make len2 maximum of page size and
PIPE_BUF.

20 years agoReturn __getpagesize () for _PC_PIPE_BUF if PIPE_BUF is not defined.
Ulrich Drepper [Fri, 8 Aug 2003 07:08:23 +0000 (07:08 +0000)]
Return __getpagesize () for _PC_PIPE_BUF if PIPE_BUF is not defined.

20 years ago* pthread_create.c (__pthread_create_2_0): Clear new_attr.cpuset.
Jakub Jelinek [Thu, 7 Aug 2003 00:09:55 +0000 (00:09 +0000)]
* pthread_create.c (__pthread_create_2_0): Clear new_attr.cpuset.

20 years ago(__pthread_create_2_0): Clear new_attr.cpuset.
Jakub Jelinek [Thu, 7 Aug 2003 00:09:47 +0000 (00:09 +0000)]
(__pthread_create_2_0): Clear new_attr.cpuset.

20 years agoBump to 0.56.
Ulrich Drepper [Mon, 4 Aug 2003 22:24:17 +0000 (22:24 +0000)]
Bump to 0.56.

20 years agoUpdate.
Ulrich Drepper [Mon, 4 Aug 2003 21:53:09 +0000 (21:53 +0000)]
Update.

2003-08-03  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/pthread/createthread.c (do_clone): Move error handling
to first syscall error check.  Move syscall error check for tkill
into __ASSUME_CLONE_STOPPED #ifdef.

20 years agoUpdate.
Ulrich Drepper [Sun, 3 Aug 2003 06:47:02 +0000 (06:47 +0000)]
Update.

* sysdeps/pthread/createthread.c (do_clone): If __ASSUME_CLONE_STOPPED
is not defined, do explicit synchronization.
(create_thread): Do not lock pd->lock here.  If __ASSUME_CLONE_STOPPED
is not defined also unlock pd->lock for non-debugging case in case
it is necessary.
* pthread_create.c (start_thread): Always get and release pd->lock
if __ASSUME_CLONE_STOPPED is not defined.
(start_thread_debug): Removed.  Adjust users.
* allocatestack.c (allocate_stack): Always initialize lock if
__ASSUME_CLONE_STOPPED is not defined.
* Makefile (tests): Add tst-sched1.
* tst-sched1.c: New file.

20 years agoUpdate.
Ulrich Drepper [Sun, 3 Aug 2003 05:23:52 +0000 (05:23 +0000)]
Update.

2003-08-02  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/kernel-features.h: Define
__ASSUME_CLONE_STOPPED.

20 years agoUpdate.
Ulrich Drepper [Sat, 2 Aug 2003 22:31:52 +0000 (22:31 +0000)]
Update.

2003-08-02  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/pthread/createthread.c (do_clone): Only use
sched_setschduler and pass correct parameters.

20 years agoUpdate.
Ulrich Drepper [Fri, 1 Aug 2003 18:13:17 +0000 (18:13 +0000)]
Update.

2003-08-01  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/generic/bits/libc-lock.h
(__libc_cleanup_push,__libc_cleanup_pop): Define even here.

20 years agoUpdate.
Ulrich Drepper [Fri, 1 Aug 2003 08:27:56 +0000 (08:27 +0000)]
Update.

20 years ago* sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
Roland McGrath [Fri, 1 Aug 2003 08:20:00 +0000 (08:20 +0000)]
* sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.

20 years ago2003-08-01 Roland McGrath <roland@frob.com>
Roland McGrath [Fri, 1 Aug 2003 08:14:26 +0000 (08:14 +0000)]
2003-08-01  Roland McGrath  <roland@frob.com>

* sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.

20 years agoUpdate.
Ulrich Drepper [Fri, 1 Aug 2003 04:37:37 +0000 (04:37 +0000)]
Update.

* sysdeps/pthread/bits/typesizes.h (__SSIZE_T_TYPE): Define.
* sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
Likewise.
* sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.

20 years agoUpdate.
Ulrich Drepper [Thu, 31 Jul 2003 19:34:52 +0000 (19:34 +0000)]
Update.

* sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
instead of __SWORD_TYPE.
* sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
* sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
* sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
Define.
* sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
Define.
* sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
Define.
* sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.

20 years agoUpdate.
Ulrich Drepper [Thu, 31 Jul 2003 19:26:38 +0000 (19:26 +0000)]
Update.

2003-07-31  Jakub Jelinek  <jakub@redhat.com>

* dlfcn/dlerror.c (once): New.
(dlerror): Call __libc_once.
(_dlerror_run): Remove once.

2003-07-31  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
Sync with 2.5.7 and 2.5.73 kernel changes.

2003-07-31  Jakub Jelinek  <jakub@redhat.com>

* dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
* elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
formats to size_t.
* elf/dl-lookup.c (_dl_debug_bindings): Likewise.
* elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
* elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
* gmon/tst-sprofil.c (main): Add parens to shut up warning.
* iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
difference argument.
* stdio-common/tst-wc-printf.c (main): Cast arguments with %C
format to wint_t.
* stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
%d format and cast expected value to int.
* sysdeps/generic/libc-start.c (STATIC): Add
__attribute__((always_inline) if LIBC_START_MAIN is already defined.
* sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
to ieee_float_shape_type.
(__sqrt): Avoid type punning.
* sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
to ieee_float_shape_type.
(__sqrtf): Avoid type punning.
* sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
refsym if in dl-conflict.c.
* sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
* sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
(__new_semctl): Shut up warning.
* sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
(__new_semctl): Shut up warning.
* sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
Change old into union of __old_shmid_ds and __old_shminfo structs.
Adjust all users.
* wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.

2003-07-31  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
modtime computation.
* sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
* sysdeps/posix/utimes.c (__utimes): Likewise.

20 years agoUpdate.
Ulrich Drepper [Thu, 31 Jul 2003 09:25:54 +0000 (09:25 +0000)]
Update.

2003-07-31  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
(__pthread_cond_timedwait): Don't use cmov unless HAVE_CMOV is defined.
* sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
Define HAVE_CMOV.
Patch by Nicholas Miell <nmiell@attbi.com>.

20 years agoUpdate.
Ulrich Drepper [Thu, 31 Jul 2003 07:42:20 +0000 (07:42 +0000)]
Update.

2003-07-30  Jakub Jelinek  <jakub@redhat.com>

* elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
call dl_signal_error directly.  If already relocated, call
GL(dl_init_static_tls) directly, otherwise queue it for later.
(CHECK_STATIC_TLS): Undo 2003-07-24 change.
* elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
* elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
for all static TLS initializations delayed in _dl_allocate_static_tls.
* elf/dl-support.c (_dl_init_static_tls): New variable.
* include/link.h (struct link_map): Add l_need_tls_init.
* sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
(_dl_nothread_init_static_tls): New prototype.
(_dl_allocate_static_tls): Adjust prototype.

* elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.

elf_machine_rela_relative): Adjust.
(CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.

20 years ago(_dl_allocate_static_tls): Don't return any value, call dl_signal_error directly...
Ulrich Drepper [Thu, 31 Jul 2003 07:34:08 +0000 (07:34 +0000)]
(_dl_allocate_static_tls): Don't return any value, call dl_signal_error directly.  If already relocated, call GL(dl_init_static_tls) directly, otherwise queue it for later. (CHECK_STATIC_TLS): Undo 2003-07-24 change.

20 years ago* elf/dynamic-link.h (elf_machine_rel, elf_machine_rela, elf_machine_rel_relative...
Alexandre Oliva [Thu, 31 Jul 2003 06:33:53 +0000 (06:33 +0000)]
* elf/dynamic-link.h (elf_machine_rel, elf_machine_rela, elf_machine_rel_relative, elf_machine_rela_relative): Don't assume reloc_addr is aligned. * sysdeps/alpha/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela, elf_machine_rel_relative, elf_machine_rela_relative): Adjust. * sysdeps/cris/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/hppa/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela, elf_machine_rel_relative, elf_machine_rela_relative): Adjust. * sysdeps/ia64/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/m68k/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/mips/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela_relative, elf_machine_rela): Adjust. * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): * sysdeps/sh/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/x86_64/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust.

2003-07-31  Alexandre Oliva  <aoliva@redhat.com>

* elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
reloc_addr is aligned.
* sysdeps/alpha/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
* sysdeps/cris/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/hppa/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
* sysdeps/ia64/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/m68k/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/mips/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/powerpc/powerpc64/dl-machine.h
(elf_machine_rela_relative, elf_machine_rela): Adjust.
* sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative):
* sysdeps/sh/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/x86_64/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.

20 years agorevert bogus commit
Roland McGrath [Wed, 30 Jul 2003 07:06:00 +0000 (07:06 +0000)]
revert bogus commit

20 years agoUpdate.
Ulrich Drepper [Wed, 30 Jul 2003 05:23:16 +0000 (05:23 +0000)]
Update.

2003-07-29  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
alignment of TCB used before the last change so that it matches
ld's output for IE code.

20 years ago(_dl_determine_tlsoffset): Restore alignment of TCB used before the last change so...
Ulrich Drepper [Wed, 30 Jul 2003 05:21:00 +0000 (05:21 +0000)]
(_dl_determine_tlsoffset): Restore alignment of TCB used before the last change so that it matches ld's output for IE code.

20 years ago* include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
Roland McGrath [Tue, 29 Jul 2003 23:48:35 +0000 (23:48 +0000)]
* include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,

__ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
break strict-aliasing rules" warnings.

20 years ago* elf/dl-support.c: Likewise.
Roland McGrath [Tue, 29 Jul 2003 21:28:19 +0000 (21:28 +0000)]
* elf/dl-support.c: Likewise.

20 years ago* elf/Makefile: Revert accidental changes in last commit.
Roland McGrath [Tue, 29 Jul 2003 21:14:31 +0000 (21:14 +0000)]
* elf/Makefile: Revert accidental changes in last commit.

20 years ago* rt/tst-timer2.c: New file.
Roland McGrath [Tue, 29 Jul 2003 09:32:03 +0000 (09:32 +0000)]
* rt/tst-timer2.c: New file.

* rt/Makefile (tests): Add it.

20 years ago* elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
Roland McGrath [Tue, 29 Jul 2003 08:57:15 +0000 (08:57 +0000)]
* elf/dl-support.c (_dl_hwcap): Add nocommon attribute.

20 years ago* elf/Makefile (tests) [$(build-shared) = yes]:
Roland McGrath [Tue, 29 Jul 2003 08:36:30 +0000 (08:36 +0000)]
* elf/Makefile (tests) [$(build-shared) = yes]:

Depend on $(test-modules).
* dlfcn/Makefile: Likewise.

20 years ago* sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
Roland McGrath [Mon, 28 Jul 2003 22:29:47 +0000 (22:29 +0000)]
* sysdeps/generic/bits/types.h (__STD_TYPE): New macro.

Use that instead of `typedef' when using __*_TYPE macros in rhs.

20 years ago* elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
Roland McGrath [Mon, 28 Jul 2003 21:50:26 +0000 (21:50 +0000)]
* elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.

* elf/tst-tlsmod14a.c: Likewise.

* sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
before <linux/sysctl.h>.

20 years ago2003-07-28 Roland McGrath <roland@redhat.com>
Roland McGrath [Mon, 28 Jul 2003 21:50:14 +0000 (21:50 +0000)]
2003-07-28  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
before <linux/sysctl.h>.

20 years ago2003-07-14 Guido Guenther <agx@sigxcpu.org>
Andreas Jaeger [Mon, 28 Jul 2003 18:45:38 +0000 (18:45 +0000)]
2003-07-14  Guido Guenther  <agx@sigxcpu.org>

* sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Add IS_IN_librt,
use L() for local labels.
2003-07-14  Guido Guenther  <agx@sigxcpu.org>

* sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Add IS_IN_librt,
use L() for local labels.

20 years agoUpdate.
Ulrich Drepper [Sun, 27 Jul 2003 19:02:36 +0000 (19:02 +0000)]
Update.

* sysdeps/unix/sysv/syscalls.list: time syscall never fails.
* sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
* sysdeps/unix/sysv/i386/time.S: time syscall never fails.

20 years agoUpdate.
Ulrich Drepper [Sun, 27 Jul 2003 18:25:09 +0000 (18:25 +0000)]
Update.

2003-07-27  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/syscalls.list: umask syscall never fails.

20 years agoumask syscall never fails.
Ulrich Drepper [Sun, 27 Jul 2003 18:24:21 +0000 (18:24 +0000)]
umask syscall never fails.

20 years ago* sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
Andreas Jaeger [Sun, 27 Jul 2003 15:12:18 +0000 (15:12 +0000)]
* sysdeps/unix/sysv/linux/init-first.c: Mark init as used.

20 years agoInclude error.h for error prototype.
Andreas Jaeger [Sun, 27 Jul 2003 14:22:12 +0000 (14:22 +0000)]
Include error.h for error prototype.

2003-07-27  Andreas Jaeger  <aj@suse.de>

* collate-test.c: Include error.h for error prototype.
* xfrm-test.c: Likewise.

20 years agoUpdate.
Ulrich Drepper [Fri, 25 Jul 2003 09:06:04 +0000 (09:06 +0000)]
Update.

2003-07-25  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
Include bits/a.out.h.
* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
bits/a.out.h.
* sysdeps/unix/sysv/linux/bits/a.out.h: New file.
* sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
* sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
* sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
* sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
* sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
* sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
* sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.

20 years agoUpdate.
Ulrich Drepper [Fri, 25 Jul 2003 07:56:33 +0000 (07:56 +0000)]
Update.

2003-07-24  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
if aiocbp != NULL and has already completed.  Return -1/EINVAL if
aiocbp->aio_fildes does not match fildes.

20 years agoUpdate.
Ulrich Drepper [Fri, 25 Jul 2003 00:49:30 +0000 (00:49 +0000)]
Update.

* timezone/zic.c (rpytime): Replace cheap overflow check with a
functioning one.

20 years agoUpdate.
Ulrich Drepper [Thu, 24 Jul 2003 20:07:00 +0000 (20:07 +0000)]
Update.

2003-07-24  Ulrich Drepper  <drepper@redhat.com>

* include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
* sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
Fix calculation of offsets to take misalignment of first byte in
file into account.
* elf/dl-load.c (_dl_map_object_from_fd): Initialize
l_tls_firstbyte_offset field.
* elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
* elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
Take l_tls_firstbyte_offset information into account.
(CHECK_STATIS_TLS): _dl_allocate_static_tls can fail now.
* sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
* elf/Makefile: Add rules to build and run tst-tls14.
* elf/tst-tls14.c: New file.
* elf/tst-tlsmod14a.c: New file.
* elf/tst-tlsmod14b.c: New file.

21 years agoUpdate.
Ulrich Drepper [Wed, 23 Jul 2003 18:50:26 +0000 (18:50 +0000)]
Update.

2003-07-23  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
(lio_listio): Use it.
* sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
after few defines to avoid duplication.

21 years agoUpdate.
Ulrich Drepper [Tue, 22 Jul 2003 23:56:53 +0000 (23:56 +0000)]
Update.

* include/stdio.h (__libc_fatal): Add libc_hidden_proto.
* include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
Likewise.
* elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
Add libc_hidden_def.
* sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
* sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
* sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
* elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
__libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
* libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
* sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
change.
* sysdeps/generic/unwind.inc: Removed.

21 years agoUpdate.
Ulrich Drepper [Tue, 22 Jul 2003 23:10:17 +0000 (23:10 +0000)]
Update.

2003-07-22  Jakub Jelinek  <jakub@redhat.com>

* include/resolv.h (__resp): Declare.  Define to __libc_resp
if in libc.so.
(_res): If USE___THREAD, define to (*__resp).
* resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
even if USE___THREAD.
(__resp): New __thread variable.
(__libc_resp): New alias.
* resolv/Versions (libc): Export _res@GLIBC_2.0 even if
USE_TLS && HAVE___THREAD.  Export __resp@@GLIBC_PRIVATE.
* sysdeps/generic/res-state.c (__res_state): Return __resp
if USE___THREAD.

21 years agoUpdate.
Ulrich Drepper [Tue, 22 Jul 2003 22:28:07 +0000 (22:28 +0000)]
Update.

2003-07-22  H.J. Lu  <hongjiu.lu@intel.com>

* elf/dl-support.c (_dl_hwcap): New variable.
(_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.

* sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
and <dl-procinfo.h>.
(__feclearexcept): Clear MXCSR if needed.
* sysdeps/i386/fpu/fsetexcptflg.c: Likewise.

* sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
that newer hardware needs more than these macros.

* sysdeps/i386/setfpucw.c: New file.

2003-07-22  Jakub Jelinek  <jakub@redhat.com>

* elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
* elf/ldconfig.c: Include dl-procinfo.c.
(PROCINFO_CLASS): Define.
* sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
* sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
* sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
* sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
Define if not yet defined.  Use it instead of EXTERN.  Undefine
at the end of the file.
* sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
(PROCINFO_CLASS): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
(PROCINFO_CLASS): Likewise.

2003-07-22  H.J. Lu  <hongjiu.lu@intel.com>

* elf/ldconfig.c (main): Issue a fatal error if relative path
is used to build cache.

2003-07-22  Ulrich Drepper  <drepper@redhat.com>

* elf/readlib.c (process_file): Avoid possible overflow in assignment.

21 years ago(process_file): Avoid possible overflow in assignment.
Ulrich Drepper [Tue, 22 Jul 2003 21:35:06 +0000 (21:35 +0000)]
(process_file): Avoid possible overflow in assignment.

21 years ago* manual/charset.texi (Converting a Character): Fix example code so a
Roland McGrath [Tue, 22 Jul 2003 20:06:18 +0000 (20:06 +0000)]
* manual/charset.texi (Converting a Character): Fix example code so a

valid pointer is returned.

21 years ago2003-07-21 Art Haas <ahaas@airmail.net>
Roland McGrath [Tue, 22 Jul 2003 20:05:55 +0000 (20:05 +0000)]
2003-07-21  Art Haas  <ahaas@airmail.net>

* manual/charset.texi (Converting a Character): Fix example code so a
valid pointer is returned.

21 years ago(process_file): Check that file is a shared object.
Andreas Jaeger [Tue, 22 Jul 2003 20:00:48 +0000 (20:00 +0000)]
(process_file): Check that file is a shared object.

21 years agoUpdate.
Andreas Jaeger [Tue, 22 Jul 2003 20:00:41 +0000 (20:00 +0000)]
Update.

* elf/readlib.c (process_file): Check that file is a shared
object.

21 years agoUpdate.
Andreas Jaeger [Tue, 22 Jul 2003 19:37:41 +0000 (19:37 +0000)]
Update.

* elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
will not optimize it away.
(__DTOR_END__): Likewise.
(__CTOR_END__): Likewise.

21 years agoUpdate.
Andreas Jaeger [Tue, 22 Jul 2003 19:25:40 +0000 (19:25 +0000)]
Update.

2003-07-22  Andreas Jaeger  <aj@suse.de>

* include/libc-symbols.h (_elf_set_element): Use attribute used so
that gcc will not optimize it away.
(link_warning): Likewise.

21 years agoUpdate.
Ulrich Drepper [Tue, 22 Jul 2003 19:24:49 +0000 (19:24 +0000)]
Update.

2003-07-22  Ulrich Drepper  <drepper@redhat.com>

* wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
* wcsmbs/Makefile (tests): Add tst-wcpncpy.
* wcsmbs/tst-wcpncpy.c: New file.

21 years ago(_elf_set_element): Use attribute used so that gcc will not optimize it away. (link_w...
Andreas Jaeger [Tue, 22 Jul 2003 19:24:48 +0000 (19:24 +0000)]
(_elf_set_element): Use attribute used so that gcc will not optimize it away. (link_warning): Likewise.

21 years ago(tests): Add tst-wcpncpy.
Ulrich Drepper [Tue, 22 Jul 2003 19:23:54 +0000 (19:23 +0000)]
(tests): Add tst-wcpncpy.

21 years agoUpdate.
Ulrich Drepper [Tue, 22 Jul 2003 03:43:27 +0000 (03:43 +0000)]
Update.

* sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.

21 years agoUpdate.
Ulrich Drepper [Tue, 22 Jul 2003 03:19:23 +0000 (03:19 +0000)]
Update.

* sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
stmxcsr and ldmxcsr.

21 years agoUpdate.
Ulrich Drepper [Tue, 22 Jul 2003 00:14:36 +0000 (00:14 +0000)]
Update.

* sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
* sysdeps/i386/fpu/feenablxcpt.c: Likewise.
* sysdeps/i386/fpu/feholdexcpt.c: Likewise.
* sysdeps/i386/fpu/fesetround.c: Likewise.
* sysdeps/i386/fpu/ftestexcept.c: Likewise.

21 years agoUpdate.
Ulrich Drepper [Mon, 21 Jul 2003 22:40:24 +0000 (22:40 +0000)]
Update.

2003-07-21  Ulrich Drepper  <drepper@redhat.com>

* Makerules (build-module-helper): Add -z defs unless explicitly said
not to do it.
* dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
which has undefined symbols.
* elf/Makefile: Likewise.

21 years agoUpdate.
Ulrich Drepper [Mon, 21 Jul 2003 20:17:47 +0000 (20:17 +0000)]
Update.

2003-07-21  HJ Lu  <hongjiu.lu@intel.com>

* elf/ldconfig.c (search_dir): Treat symlink as regular file
if it won't point to itself.

21 years agoUpdate.
Ulrich Drepper [Sun, 20 Jul 2003 22:17:34 +0000 (22:17 +0000)]
Update.

2003-07-20  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.

21 years agoUpdate.
Ulrich Drepper [Sun, 20 Jul 2003 19:28:08 +0000 (19:28 +0000)]
Update.

* sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.

21 years agolseek and llseek are no cancellation points.
Ulrich Drepper [Sun, 20 Jul 2003 19:22:15 +0000 (19:22 +0000)]
lseek and llseek are no cancellation points.

21 years ago* iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
Andreas Jaeger [Sun, 20 Jul 2003 12:11:01 +0000 (12:11 +0000)]
* iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called

STANDARD_TO_LOOP_ERR_HANDLER.
* iconvdata/euc-jp-ms.c (BODY): Likewise.
2003-07-20  Andreas Jaeger  <aj@suse.de>

* iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
STANDARD_TO_LOOP_ERR_HANDLER.
* iconvdata/euc-jp-ms.c (BODY): Likewise.

21 years agoUpdate.
Ulrich Drepper [Sun, 20 Jul 2003 08:56:05 +0000 (08:56 +0000)]
Update.

2003-07-20  Ulrich Drepper  <drepper@redhat.com>

* Makefile (libpthread-routines): Add pthread_attr_getaffinity and
pthread_attr_setaffinity.
* Versions [libpthread] (GLIBC_2.3.3): Likewise.
* sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: New file.
* sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: New file.
* pthread_attr_destroy.c: Free cpuset element if allocated.
* pthread_create.c: Pass iattr as additional parameter to
create_thread.
* sysdeps/pthread/createthread.c: If attribute is provided and
a new thread is created with affinity set or scheduling parameters,
start thread with CLONE_STOPPED.
* sysdeps/pthread/pthread.h: Declare pthread_attr_getaffinity and
pthread_attr_setaffinity.
* sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
cpuset element.

21 years agoUpdate.
Ulrich Drepper [Sat, 19 Jul 2003 08:42:04 +0000 (08:42 +0000)]
Update.

2003-07-19  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.

21 years agoRemove affinity syscalls.
Ulrich Drepper [Sat, 19 Jul 2003 08:40:07 +0000 (08:40 +0000)]
Remove affinity syscalls.

21 years agoUpdate.
Andreas Jaeger [Wed, 16 Jul 2003 07:39:17 +0000 (07:39 +0000)]
Update.

2003-07-16  Daniel Jacobowitz  <drow@mvista.com>
    Andreas Jaeger  <aj@suse.de>

* sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
256K, remove unneeded declaration of __getpagesize.

21 years ago2003-07-16 Daniel Jacobowitz <drow@mvista.com>
Andreas Jaeger [Wed, 16 Jul 2003 07:39:07 +0000 (07:39 +0000)]
2003-07-16  Daniel Jacobowitz  <drow@mvista.com>

    Andreas Jaeger  <aj@suse.de>
* sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
256K, remove unneeded declaration of __getpagesize.

21 years agoUpdate.
Ulrich Drepper [Wed, 16 Jul 2003 00:10:33 +0000 (00:10 +0000)]
Update.

2003-07-16  Andreas Schwab  <schwab@suse.de>

* sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.

21 years agoUpdate.
Ulrich Drepper [Tue, 15 Jul 2003 08:59:35 +0000 (08:59 +0000)]
Update.

2003-07-15  Ulrich Drepper  <drepper@redhat.com>

* io/test-utime.c (main): Make test yet more robust.

21 years agoUpdate.
Ulrich Drepper [Tue, 15 Jul 2003 07:52:52 +0000 (07:52 +0000)]
Update.

More cancellation handling fixups.
* sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
* sysdeps/generic/not-cancel.h: Likewise.
* catgets/open_catalog.c: Use not-cancelable syscalls.
* time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
* sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
* sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
* dlfcn/dlfcn.h: Mark dlopen with __THROW again.
* io/fcntl.h: Don't mark posix_fallocate with __THROW.
* libio/fileops.c: Use not-cancelable syscalls for fclose.
* libio/iopopen.c: Use no-cancelable syscalls.
* libio/stdio.h: Mark popen and pclose with __THROW again.
* misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
* misc/syslog.c: Fix locking and cancellation cleanup handling.
* posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
* stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
CFLAGS-tempname.c): Add -fexceptions.
* stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
* string/string.h: Mark strerror and strerror_r with _THROW again.
* sysdeps/generic/unwind.inc: New file.  Copied from gcc.
* sysdeps/generic/unwind-dw2.c: Update from gcc version.  Remove
#ifs since we now need all the code compiled.
* sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
* sysdeps/unix/closedir.c: Use not-cancelable syscalls.
* sysdeps/unix/opendir.c: Likewise.

21 years agoUpdate.
Ulrich Drepper [Tue, 15 Jul 2003 04:34:40 +0000 (04:34 +0000)]
Update.

2003-07-14  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/pthread/configure.in: Require CFI directives also for
ppc and s390.

21 years agoUpdate.
Ulrich Drepper [Tue, 15 Jul 2003 03:32:03 +0000 (03:32 +0000)]
Update.

2003-07-14  Ulrich Drepper  <drepper@redhat.com>

* iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
Add rule for EUC-JP-MS dependency.
* iconvdata/cp932.c: New file.
* iconvdata/eucjp-ms.c: New file.
* iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.

2003-07-15  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
cfi directives.

21 years agoUpdate.
Ulrich Drepper [Mon, 14 Jul 2003 23:05:23 +0000 (23:05 +0000)]
Update.

2003-07-14  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Fix typo
in test for compilation in libc.

21 years agoUpdate.
Ulrich Drepper [Mon, 14 Jul 2003 21:38:42 +0000 (21:38 +0000)]
Update.

2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_FIXED_CLONE_SYSCALL): New macro.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.

* sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.

21 years agoUpdate.
Ulrich Drepper [Mon, 14 Jul 2003 21:16:43 +0000 (21:16 +0000)]
Update.

2003-07-14  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/kernel-features.h: Define
__ASSUME_TGKILL for Alpha appropriately.