external/glibc.git
18 years ago* sunrpc/auth_des.c (authdes_pk_create): If conversation key
Ulrich Drepper [Wed, 7 Dec 2005 04:12:32 +0000 (04:12 +0000)]
* sunrpc/auth_des.c (authdes_pk_create): If conversation key

cannot be created, free memory.
Reported by rprasad@vmware.com.

18 years ago(authdes_pk_create): If conversation key cannot be created, free memory.
Ulrich Drepper [Wed, 7 Dec 2005 04:10:51 +0000 (04:10 +0000)]
(authdes_pk_create): If conversation key cannot be created, free memory.

18 years ago* sysdeps/hppa/bits/setjmp.h: Add _BITS_SETJMP_H preprocessor
Roland McGrath [Tue, 6 Dec 2005 01:38:34 +0000 (01:38 +0000)]
* sysdeps/hppa/bits/setjmp.h: Add _BITS_SETJMP_H preprocessor

protection and allow pthread.h to include bits/setjmp.h as well as
setjmp.h.
* sysdeps/m68k/bits/setjmp.h: Likewise.
* sysdeps/s390/bits/setjmp.h: Make sure only setjmp.h or pthread.h
are allow to include bits/setjmp.h.
* sysdeps/mips/bits/setjmp.h (_JMPBUF_UNWINDS): Cast rhs to match lhs
cast of address.
* sysdeps/sh/bits/setjmp.h: Likewise.

2005-11-12  Jim Meyering  <jim@meyering.net>

* sysdeps/unix/opendir.c (__alloc_dir): Declare STATP parameter
to be pointer to const.
* include/dirent.h: Update decl.

18 years ago* sysdeps/generic/dwarf2.h: Replace license text with glibc LGPL.
Roland McGrath [Tue, 6 Dec 2005 01:28:16 +0000 (01:28 +0000)]
* sysdeps/generic/dwarf2.h: Replace license text with glibc LGPL.

18 years ago* hurd/hurdmalloc.c: Remove $ tag $ magic.
Roland McGrath [Tue, 6 Dec 2005 01:24:30 +0000 (01:24 +0000)]
* hurd/hurdmalloc.c: Remove $ tag $ magic.

* mach/err_kern.sub: Likewise.
* mach/err_server.sub: Likewise.
* mach/err_us.sub: Likewise.
* mach/error_compat.c: Likewise.
* mach/errorlib.h: Likewise.
* mach/errstring.c: Likewise.
* mach/mach/error.h: Likewise.
* mach/mach_error.c: Likewise.
* mach/mach_error.h: Likewise.
* mach/msg-destroy.c: Likewise.
* mach/msgserver.c: Likewise.
* sysdeps/mach/sys/reboot.h: Likewise.

18 years ago* malloc/tst-mallocfork.c (do_test): Make sure sa_flags is
Roland McGrath [Tue, 6 Dec 2005 00:50:15 +0000 (00:50 +0000)]
* malloc/tst-mallocfork.c (do_test): Make sure sa_flags is

initialized.  Reported by John Reiser <jreiser@BitWagon.com>.

18 years ago* stdlib/longlong.h: Update from GCC.
Roland McGrath [Tue, 6 Dec 2005 00:48:30 +0000 (00:48 +0000)]
* stdlib/longlong.h: Update from GCC.

18 years ago* soft-fp/soft-fp.h: Include <stdlib.h>.
Roland McGrath [Tue, 6 Dec 2005 00:38:43 +0000 (00:38 +0000)]
* soft-fp/soft-fp.h: Include <stdlib.h>.

* soft-fp/floatdisf.c (__floatdisf): Return float.

18 years ago* sysdeps/unix/sysv/linux/kernel-features.h
Roland McGrath [Tue, 6 Dec 2005 00:35:22 +0000 (00:35 +0000)]
* sysdeps/unix/sysv/linux/kernel-features.h

(__ASSUME_POSIX_CPU_TIMERS): New macro, for 2.6.12 and later.

18 years ago* sysdeps/generic/dwarf2.h: Replace license text with glibc LGPL.
Roland McGrath [Tue, 6 Dec 2005 00:15:06 +0000 (00:15 +0000)]
* sysdeps/generic/dwarf2.h: Replace license text with glibc LGPL.

18 years ago2005-12-05 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 6 Dec 2005 00:15:01 +0000 (00:15 +0000)]
2005-12-05  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/dwarf2.h: Replace license text with glibc LGPL.

18 years ago(nis_list): One more reallocation optimization.
Ulrich Drepper [Sun, 4 Dec 2005 07:10:47 +0000 (07:10 +0000)]
(nis_list): One more reallocation optimization.

18 years ago* nis/nis_table.c (nis_list): Optimize freeing and reallocation of
Ulrich Drepper [Sun, 4 Dec 2005 06:27:06 +0000 (06:27 +0000)]
* nis/nis_table.c (nis_list): Optimize freeing and reallocation of

result record.

18 years ago* nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
Ulrich Drepper [Sat, 3 Dec 2005 22:36:14 +0000 (22:36 +0000)]
* nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):

Better sized buffers.  Correct error case handling.

18 years ago* nis/nis_error.c (nis_sperror_r): Let snprintf determine whether
Ulrich Drepper [Sat, 3 Dec 2005 22:15:54 +0000 (22:15 +0000)]
* nis/nis_error.c (nis_sperror_r): Let snprintf determine whether

there is an overflow.
* nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_setnetgrent):
Rewrite to use snprintf.
* nis/nss_nisplus/nisplus-publickey.c (_nss_nisplus_netname2user):
Likewise.

18 years ago* nis/nss_nisplus/nisplus-service.c: Fix locking to use
Ulrich Drepper [Sat, 3 Dec 2005 20:12:27 +0000 (20:12 +0000)]
* nis/nss_nisplus/nisplus-service.c: Fix locking to use

_nss_create_tablename.  Avoid unnecessary copying, remove
unnecessary variables, general cleanup.
* nis/nss_nisplus/nisplus-rpc.c: Likewise.
* nis/nss_nisplus/nisplus-proto.c: Likewise..
* nis/nss_nisplus/nisplus-network.c: Fix locking to use
_nss_create_tablename.  Avoid unnecessary copying, general cleanup.
* nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
Removed.
Fix locking to use _nss_create_tablename.  Avoid unnecessary copying,
general cleanup.
* nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_getntohost_r):
Correctly construct request.
Fix locking to use _nss_create_tablename.  Avoid unnecessary copying,
general cleanup.
* nis/nss_nisplus/nisplus-alias.c: Fix locking to use
_nss_create_tablename.  Avoid unnecessary copying, general cleanup.

18 years ago* nis/nss_nisplus/nisplus-pwd.c (_nss_pwd_create_tablename):
Ulrich Drepper [Sat, 3 Dec 2005 05:20:52 +0000 (05:20 +0000)]
* nis/nss_nisplus/nisplus-pwd.c (_nss_pwd_create_tablename):

Renamed from _nss_create_tablename.  Export from file (but not DSO).
(pwd_tablename_val): Renamed from tablename_val, mark hidden.
(pwd_tablename_len): Renamed from tablename_len, mark hidden.
Change all users.
* nis/nss_nisplus/nisplus-spwd.c (_nss_create_tablename): Removed.
Use _nss_pwd_create_tablename now.  Use pwd_tablename_val and
pwd_tablename_len.  Remove unnecessary variables, general cleanup.

* nis/nss_nisplus/nisplus-grp.c: Likewise.

18 years ago* nis/nss_nisplus/nisplus-pwd.c: Fix locking to use
Ulrich Drepper [Sat, 3 Dec 2005 04:44:36 +0000 (04:44 +0000)]
* nis/nss_nisplus/nisplus-pwd.c: Fix locking to use

_nss_create_tablename.  Avoid unnecessary copying, remove
unnecessary variables, general cleanup.

18 years ago* io/Makefile (routines): Add mknodat, xmknodat, mkdirat, mkfifoat.
Ulrich Drepper [Fri, 2 Dec 2005 21:55:54 +0000 (21:55 +0000)]
* io/Makefile (routines): Add mknodat, xmknodat, mkdirat, mkfifoat.

(static-only-routines): Add mknodat.
* io/Versions [GLIBC_2.4]: Add mkdirat, mkfifoat, __xmknodat.
* io/sys/stat.h: Declare mkditat, mknodat, mkfifoat, __xmknodat.
Define mknodat inline function.
* include/sys/stat.h: Add hidden proto for __xmknodat.
* sysdeps/generic/mkdirat.c: New file.
* sysdeps/generic/mkfifoat.c: New file.
* sysdeps/generic/mknodat.c: New file.
* sysdeps/generic/xmknodat.c: New file.
* sysdeps/unix/mkfifoat.c: New file.
* sysdeps/unix/sysv/linux/mkdirat.c: New file.
* sysdeps/unix/sysv/linux/xmknodat.c: New file.

* sysdeps/generic/xmknod.c: Add one more parameter check.

18 years agoAdd one more parameter check.
Ulrich Drepper [Fri, 2 Dec 2005 21:41:00 +0000 (21:41 +0000)]
Add one more parameter check.

18 years ago(MREMAP_FIXED): Added. Patch by René Rebe <rene@exactcode.de>.
Andreas Jaeger [Mon, 28 Nov 2005 08:25:55 +0000 (08:25 +0000)]
(MREMAP_FIXED): Added. Patch by René Rebe <rene@exactcode.de>.

2005-11-28  Andreas Jaeger  <aj@suse.de>

* sysdeps/unix/sysv/linux/mips/bits/mman.h (MREMAP_FIXED): Added,
Patch by René Rebe <rene@exactcode.de>.

18 years ago* sysdeps/posix/getaddrinfo.c: Avoid RFC 3484 sorting if there are
Ulrich Drepper [Sun, 27 Nov 2005 23:13:21 +0000 (23:13 +0000)]
* sysdeps/posix/getaddrinfo.c: Avoid RFC 3484 sorting if there are

multiple return records but only one address.

18 years ago* sysdeps/posix/getaddrinfo.c (gaih_inet): Avoid some code duplication.
Ulrich Drepper [Sun, 27 Nov 2005 22:59:43 +0000 (22:59 +0000)]
* sysdeps/posix/getaddrinfo.c (gaih_inet): Avoid some code duplication.

18 years ago(gaih_inet): Avoid some code duplication.
Ulrich Drepper [Sun, 27 Nov 2005 22:58:34 +0000 (22:58 +0000)]
(gaih_inet): Avoid some code duplication.

18 years ago* sysdeps/unix/sysv/linux/fchownat.c: Include alloca.h, sysdep.h.
Roland McGrath [Sun, 27 Nov 2005 21:20:05 +0000 (21:20 +0000)]
* sysdeps/unix/sysv/linux/fchownat.c: Include alloca.h, sysdep.h.

Reported by René Rebe <rene@exactcode.de>.

18 years ago2005-11-27 Roland McGrath <roland@redhat.com>
Roland McGrath [Sun, 27 Nov 2005 21:19:57 +0000 (21:19 +0000)]
2005-11-27  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/sysv/linux/fchownat.c: Include alloca.h, sysdep.h.
Reported by René Rebe <rene@exactcode.de>.

18 years ago* sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Don't cache
Ulrich Drepper [Sun, 27 Nov 2005 17:14:28 +0000 (17:14 +0000)]
* sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Don't cache

euid and egid.

18 years ago* nis/nis_table.c (nis_list): Add more free calls in error cases.
Ulrich Drepper [Sun, 27 Nov 2005 09:32:34 +0000 (09:32 +0000)]
* nis/nis_table.c (nis_list): Add more free calls in error cases.

18 years ago(nis_list): Add more free calls in error cases.
Ulrich Drepper [Sun, 27 Nov 2005 09:30:10 +0000 (09:30 +0000)]
(nis_list): Add more free calls in error cases.

18 years ago * sysdeps/alpha/strncmp.S: Don't read too much data when pointers ...
Richard Henderson [Sun, 27 Nov 2005 06:05:33 +0000 (06:05 +0000)]
    * sysdeps/alpha/strncmp.S: Don't read too much data when pointers         are co-aligned, and count is aligned with the end of the word.

2005-11-26  Richard Henderson  <rth@redhat.com>

* sysdeps/alpha/strncmp.S: Don't read too much data when pointers
are co-aligned, and count is aligned with the end of the word.

18 years ago* nis/nis_lookup.c (nis_lookup): Mark RPCTIMEOUT as const. Pretty
Ulrich Drepper [Sun, 27 Nov 2005 03:13:50 +0000 (03:13 +0000)]
* nis/nis_lookup.c (nis_lookup): Mark RPCTIMEOUT as const.  Pretty

printing.

18 years ago* nis/nis_table.c (__create_ib_request): Use strdupa instead of
Ulrich Drepper [Sun, 27 Nov 2005 01:20:12 +0000 (01:20 +0000)]
* nis/nis_table.c (__create_ib_request): Use strdupa instead of

variable size array.
(RPCTIMEOUT): Mark as const.

(RPCTIMEOUT, UDPTIMEOUT): Mark as const.

18 years ago* nis/ypclnt.c (yp_bind_ypbindprog): Initialize clnt_saddr by hand.
Ulrich Drepper [Sat, 26 Nov 2005 22:16:52 +0000 (22:16 +0000)]
* nis/ypclnt.c (yp_bind_ypbindprog): Initialize clnt_saddr by hand.

(ypdomainname): Renamed from __ypdomainname.  No need for initializer.
(ypbindlist): Renamed from __ypbindlist.
(do_ypcall): Check memory allocation suceeded before calling
yp_bind_ypbindprog.
(yperr_string): Reduce size of function by using only one gettext call.
(ypbinderr_string): Likewise.
(yp_match): Free response in case memory for return value cannot be
allocated.
(yp_first): Likewise.
(yp_next): Likewise.
(do_ypcall_tr): New function which translates error codes as well.
(yp_match, yp_next, yp_master, yp_order, yp_maplist): Use it.
(yp_all): Correct test for invalid parameter.
Pretty printing.

18 years ago(yp_bind_ypbindprog): Initialize clnt_saddr by hand. (ypdomainname): Renamed from...
Ulrich Drepper [Sat, 26 Nov 2005 22:16:03 +0000 (22:16 +0000)]
(yp_bind_ypbindprog): Initialize clnt_saddr by hand. (ypdomainname): Renamed from __ypdomainname.  No need for initializer. (ypbindlist): Renamed from __ypbindlist. (do_ypcall): Check memory allocation suceeded before calling yp_bind_ypbindprog. (yperr_string): Reduce size of function by using only one gettext call. (ypbinderr_string): Likewise. (yp_match): Free response in case memory for return value cannot be allocated. (yp_first): Likewise. (yp_next): Likewise. (do_ypcall_tr): New function which translates error codes as well. (yp_match, yp_next, yp_master, yp_order, yp_maplist): Use it. (yp_all): Correct test for invalid parameter. Pretty printing.

18 years ago * sysdeps/unix/sysv/linux/alpha/fxstatat.c (__fxstatat): Fix typo. ...
Richard Henderson [Sat, 26 Nov 2005 00:52:45 +0000 (00:52 +0000)]
    * sysdeps/unix/sysv/linux/alpha/fxstatat.c (__fxstatat): Fix typo.         (__fxstatat64): Alias from __fxstatat; remove other cnp errors.         * sysdeps/unix/sysv/linux/alpha/sigaction.c: Include sys/cdefs.h         and stddef.h.         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MREMAP_FIXED): Define.

2005-11-25  Richard Henderson  <rth@redhat.com>

* sysdeps/unix/sysv/linux/alpha/fxstatat.c (__fxstatat): Fix typo.
(__fxstatat64): Alias from __fxstatat; remove other cnp errors.
* sysdeps/unix/sysv/linux/alpha/sigaction.c: Include sys/cdefs.h
and stddef.h.
* sysdeps/unix/sysv/linux/alpha/bits/mman.h (MREMAP_FIXED): Define.

18 years ago* Makeconfig (+cflags): Add -fmerge-all-constants by default.
Ulrich Drepper [Fri, 25 Nov 2005 18:36:59 +0000 (18:36 +0000)]
* Makeconfig (+cflags): Add -fmerge-all-constants by default.

18 years ago[BZ #1912]
Ulrich Drepper [Fri, 25 Nov 2005 16:42:59 +0000 (16:42 +0000)]
[BZ #1912]

2005-11-25  Ulrich Drepper  <drepper@redhat.com>
[BZ #1912]
* nss/function.def: Add entry to use gethostbyname2 for files.

18 years ago* sysdeps/unix/sysv/linux/fxstatat64.c: Include string.h.
Ulrich Drepper [Fri, 25 Nov 2005 16:13:50 +0000 (16:13 +0000)]
* sysdeps/unix/sysv/linux/fxstatat64.c: Include string.h.

18 years ago[BZ #1926]
Ulrich Drepper [Fri, 25 Nov 2005 16:09:10 +0000 (16:09 +0000)]
[BZ #1926]

* nss/nss_files/files-netgrp.c (_nss_files_endnetgrent): Change
return value type to match expected type.

18 years ago[BZ #1925]
Ulrich Drepper [Fri, 25 Nov 2005 16:05:57 +0000 (16:05 +0000)]
[BZ #1925]

2005-11-25  Ulrich Drepper  <drepper@redhat.com>
[BZ #1925]
* nis/ypclnt.c (yp_order): Correct test for invalid parameter.

18 years ago* scripts/check-c++-types.sh: Improve comments.
Ulrich Drepper [Fri, 25 Nov 2005 07:34:21 +0000 (07:34 +0000)]
* scripts/check-c++-types.sh: Improve comments.

18 years ago* scripts/check-local-headers.sh: New file.
Ulrich Drepper [Thu, 24 Nov 2005 18:28:02 +0000 (18:28 +0000)]
* scripts/check-local-headers.sh: New file.

* Makefile (tests): Run check-local-headers.sh.

2005-11-23  Thorsten Kukuk  <kukuk@suse.de>

* include/sys/sendfile.h: New file.

2005-11-24  Andreas Schwab  <schwab@suse.de>

* time/sys/time.h: Remove nonnull attribute from futimesat.

18 years ago[BZ #1920]
Ulrich Drepper [Thu, 24 Nov 2005 18:16:42 +0000 (18:16 +0000)]
[BZ #1920]

005-11-24  Jakub Jelinek  <jakub@redhat.com>
[BZ #1920]
* sysdeps/pthread/pthread.h (__pthread_unwind_next): Use
__attribute__ instead of __attribute.
* sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
(__cleanup_fct_attribute): Likewise.

18 years ago* nscd/connections.c (sendfileall): Define.
Ulrich Drepper [Tue, 22 Nov 2005 19:06:27 +0000 (19:06 +0000)]
* nscd/connections.c (sendfileall): Define.

(handle_request): Use it instead of sendfile call.
* nscd/nscd-client.h: Declare sendfileall.
* nscd/aicache.c: Use sendfileall instead of sendfile.
* nscd/grpcache.c: Likewise.
* nscd/hstcache.c: Likewise.
* nscd/initgrcache.c: Likewise.
* nscd/pwdcache.c: Likewise.

18 years ago[BZ #1908]
Ulrich Drepper [Tue, 22 Nov 2005 18:11:01 +0000 (18:11 +0000)]
[BZ #1908]

2005-11-22  Ulrich Drepper  <drepper@redhat.com>
[BZ #1908]
* manual/install.texi (Tools for Compilation): Require gawk.

2005-11-22  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
unused is_static field from slotinfo array.

18 years ago* sunrpc/bindrsvprt.c (bindresvport): Wrap around to startport
Ulrich Drepper [Tue, 22 Nov 2005 04:39:40 +0000 (04:39 +0000)]
* sunrpc/bindrsvprt.c (bindresvport): Wrap around to startport

in the loop if port is bigger than endport, initially set to
ENDPORT.  When changing startport, set endport and port
appropriately.

18 years ago* Makefile.in: Remove RCS ID line.
Ulrich Drepper [Mon, 21 Nov 2005 15:48:11 +0000 (15:48 +0000)]
* Makefile.in: Remove RCS ID line.

* config-name.in: Likewise.
* config.make.in: Likewise.
* malloc/arena.c: Likewise.
* malloc/hooks.c: Likewise.
* malloc/malloc.c: Likewise.
* manual/dir: Likewise.
* math/math_private.h: Likewise.
* resolv/gethnamaddr.c: Likewise.
* scripts/mkinstalldirs: Likewise.
* sunrpc/rpc_clntout.c: Likewise.
* sunrpc/rpc_cout.c: Likewise.
* sunrpc/rpc_hout.c: Likewise.
* sunrpc/rpc_main.c: Likewise.
* sunrpc/rpc_parse.c: Likewise.
* sunrpc/rpc_sample.c: Likewise.
* sunrpc/rpc_scan.c: Likewise.
* sunrpc/rpc_svcout.c: Likewise.
* sunrpc/rpc_tblout.c: Likewise.
* sunrpc/rpc_util.c: Likewise.
* sysdeps/unix/sysv/linux/sys/quote.h: Likewise.

* nscd/nscd_helper.c: Pretty printing.

18 years ago..
Ulrich Drepper [Mon, 21 Nov 2005 15:45:19 +0000 (15:45 +0000)]
..

2005-11-21  Ulrich Drepper  <drepper@redhat.com>

* locales/se_NO: Remove RCS ID line.

18 years agoPretty printing.
Ulrich Drepper [Mon, 21 Nov 2005 15:36:25 +0000 (15:36 +0000)]
Pretty printing.

18 years ago* elf/elf.h: Revert last change.
Roland McGrath [Sat, 19 Nov 2005 21:31:02 +0000 (21:31 +0000)]
* elf/elf.h: Revert last change.

18 years ago2005-11-19 Roland McGrath <roland@redhat.com>
Roland McGrath [Sat, 19 Nov 2005 21:30:54 +0000 (21:30 +0000)]
2005-11-19  Roland McGrath  <roland@redhat.com>

* elf/elf.h: Revert last change.

18 years ago* sysdeps/unix/sysv/linux/ia64/bits/shm.h (shmatt_t): New type.
Ulrich Drepper [Sat, 19 Nov 2005 17:22:39 +0000 (17:22 +0000)]
* sysdeps/unix/sysv/linux/ia64/bits/shm.h (shmatt_t): New type.

(struct shmid_ds): Use it for shm_nattch field.

2005-11-18  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/futimesat.c (futimesat): If FILE is NULL,
set access and modification times of the file referenced by FD.
* sysdeps/generic/futimesat.c (futimesat): Don't return EINVAL if
FILE is NULL.  Don't check FD if FILE is absolute path.

2005-11-19  Ulrich Drepper  <drepper@redhat.com>

* nscd/nscd_gethst_r.c (nscd_gethst_r): Avoid unnecesary read call
if there are no aliases.

* sysdeps/unix/sysv/linux/Makefile (CFLAGS-connections.c,
CFLAGS-pwdcache.c, CFLAGS-grpcache.c, CFLAGS-hstcache.c,
CFLAGS-aicache.c, CFLAGS-initgrcache.c): Add -DHAVE_SENDFILE.
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
Define.
* nscd/pwdcache.c [HAVE_SENDFILE]: Include <sys/sendfile.h> and
<kernel-features.h>.
[HAVE_SENDFILE] (cache_addpw): Use sendfile to transmit positive
result.
* nscd/grpcache.c: Likewise.
* nscd/hstcache.c: Likewise.
* nscd/aicache.c: Likewise.
* nscd/initgrcache.c: Likewise.
* nscd/connectionc.c: Likewise.

18 years ago(nscd_gethst_r): Avoid unnecesary read call if there are no aliases.
Ulrich Drepper [Sat, 19 Nov 2005 17:09:03 +0000 (17:09 +0000)]
(nscd_gethst_r): Avoid unnecesary read call if there are no aliases.

18 years ago* sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove useless alias.
Roland McGrath [Fri, 18 Nov 2005 22:48:22 +0000 (22:48 +0000)]
* sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove useless alias.

* sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Handle
NO_WEAK_ALIAS.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.

18 years ago* sysdeps/unix/sysv/linux/m68k/bits/mman.h (MREMAP_FIXED): New macro.
Roland McGrath [Fri, 18 Nov 2005 22:46:36 +0000 (22:46 +0000)]
* sysdeps/unix/sysv/linux/m68k/bits/mman.h (MREMAP_FIXED): New macro.

18 years ago* nscd/grpcache.c: Include <sys/socket.h>.
Roland McGrath [Fri, 18 Nov 2005 22:42:25 +0000 (22:42 +0000)]
* nscd/grpcache.c: Include <sys/socket.h>.

* nscd/nscd_stat.c: Likewise.
* nscd/pwdcache.c: Likewise.
* sysdeps/unix/sysv/linux/unlinkat.c: Include <stdlib.h>, <sysdep.h>.

18 years ago2005-11-18 Paul Brook <paul@codesourcery.com>
Roland McGrath [Fri, 18 Nov 2005 22:42:21 +0000 (22:42 +0000)]
2005-11-18  Paul Brook  <paul@codesourcery.com>

* nscd/grpcache.c: Include <sys/socket.h>.
* nscd/nscd_stat.c: Likewise.
* nscd/pwdcache.c: Likewise.
* sysdeps/unix/sysv/linux/unlinkat.c: Include <stdlib.h>, <sysdep.h>.

18 years ago* sysdeps/unix/sysv/linux/sparc/bits/shm.h: Define SHM_NORESERVE.
Ulrich Drepper [Fri, 18 Nov 2005 02:41:39 +0000 (02:41 +0000)]
* sysdeps/unix/sysv/linux/sparc/bits/shm.h: Define SHM_NORESERVE.

* sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.

18 years ago.
Ulrich Drepper [Fri, 18 Nov 2005 00:31:58 +0000 (00:31 +0000)]
.

18 years ago.
Ulrich Drepper [Fri, 18 Nov 2005 00:17:40 +0000 (00:17 +0000)]
.

18 years ago[BZ #1877]
Ulrich Drepper [Fri, 18 Nov 2005 00:12:44 +0000 (00:12 +0000)]
[BZ #1877]

2005-11-17  Steven Munroe  <sjmunroe@us.ibm.com>
[BZ #1877]
* string/test-strncmp.c (do_test_limit): Handle zero length and
non-zero align values.
(test_main): Correct do_test_limit tests for 64-bit.

2005-11-15  Steven Munroe  <sjmunroe@us.ibm.com>

* sysdeps/powerpc/sysdep.h (PPC_FEATURE_HAS_SPE,
PPC_FEATURE_HAS_EFP_SINGLE, PPC_FEATURE_HAS_EFP_DOUBLE,
PPC_FEATURE_NO_TB, PPC_FEATURE_POWER4, PPC_FEATURE_POWER5,
PPC_FEATURE_POWER5_PLUS, PPC_FEATURE_CELL, PPC_FEATURE_970):
Define to match 2.6.15 kernel.

* sysdeps/powerpc/fpu/e_sqrt.c: Remove dl-procinfo.h include.
* sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
* sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.

18 years agoRemove dl-procinfo.h include.
Ulrich Drepper [Thu, 17 Nov 2005 23:33:52 +0000 (23:33 +0000)]
Remove dl-procinfo.h include.

18 years ago* elf/elf.h (R_PPC64_ADDR30): Renamed to R_PPC64_REL30.
Roland McGrath [Thu, 17 Nov 2005 23:02:23 +0000 (23:02 +0000)]
* elf/elf.h (R_PPC64_ADDR30): Renamed to R_PPC64_REL30.

18 years ago2005-11-17 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 17 Nov 2005 23:02:17 +0000 (23:02 +0000)]
2005-11-17  Roland McGrath  <roland@redhat.com>

* elf/elf.h (R_PPC64_ADDR30): Renamed to R_PPC64_REL30.

18 years ago* io/sys/stat.h (fstatat): If __REDIRECT_NTH isn't defined,
Ulrich Drepper [Thu, 17 Nov 2005 21:32:27 +0000 (21:32 +0000)]
* io/sys/stat.h (fstatat): If __REDIRECT_NTH isn't defined,

define fstatat to fstatat64.
(fstatat64): Only provide prototype if __USE_LARGEFILE64,
similarly with the inline.
* io/fcntl.h (openat64): Only provide prototype if __USE_LARGEFILE64.

18 years ago[BZ #1877]
Ulrich Drepper [Thu, 17 Nov 2005 21:19:33 +0000 (21:19 +0000)]
[BZ #1877]

2005-11-17  Steven Munroe  <sjmunroe@us.ibm.com>
[BZ #1877]
* string/test-strncmp.c (do_test_limit): New function.
(do_test) Add cast to eliminate compiler warnings.
(do_random_tests) Add cast to eliminate compiler warnings.
(test_main) Add do_test_limit tests.
* sysdeps/powerpc/powerpc32/strncmp.S: Test length before unaligned
load.
* sysdeps/powerpc/powerpc64/strncmp.S: Likewise.

18 years ago* include/resolv.h: Include <stdbool.h>.
Ulrich Drepper [Thu, 17 Nov 2005 18:49:41 +0000 (18:49 +0000)]
* include/resolv.h: Include <stdbool.h>.

Patch by Paul Brook.

18 years ago* io/sys/stat.h: Use __const not const in fstatat prototypes.
Ulrich Drepper [Thu, 17 Nov 2005 15:29:42 +0000 (15:29 +0000)]
* io/sys/stat.h: Use __const not const in fstatat prototypes.

18 years ago* sysdeps/pthread/unwind-forcedunwind.c (pthread_cancel_init): Put
Ulrich Drepper [Wed, 16 Nov 2005 23:32:52 +0000 (23:32 +0000)]
* sysdeps/pthread/unwind-forcedunwind.c (pthread_cancel_init): Put

a write barrier before writing libgcc_s_getcfa.

18 years ago* sysdeps/wordsize-32/Makefile (CPPFLAGS-divdi3.c): Set to
Ulrich Drepper [Wed, 16 Nov 2005 19:20:10 +0000 (19:20 +0000)]
* sysdeps/wordsize-32/Makefile (CPPFLAGS-divdi3.c): Set to

-Din_divdi3_c.
* sysdeps/wordsize-32/symbol-hacks.h: Skip if in_divdi3_c is defined.

18 years ago* sysdeps/unix/sysv/linux/fchownat.c: Include string.h.
Ulrich Drepper [Wed, 16 Nov 2005 08:20:36 +0000 (08:20 +0000)]
* sysdeps/unix/sysv/linux/fchownat.c: Include string.h.

* sysdeps/unix/sysv/linux/futimesat.c: Likewise.
* sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
* sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
* sysdeps/unix/sysv/linux/renameat.c: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
* sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
* sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.

18 years ago* iconvdata/Makefile (modules): Add ISO_11548-1.
Ulrich Drepper [Wed, 16 Nov 2005 08:16:43 +0000 (08:16 +0000)]
* iconvdata/Makefile (modules): Add ISO_11548-1.

(distribute): Add iso_11548-1.c.
* iconvdata/gconv-modules: Add entries for ISO 11548-1.
* iconvdata/TESTS: Add entry for ISO 11548-1.

[BZ 1872]
* iconvdata/iso_11548-1.c: New file.
* iconvdata/testdata/ISO_11548-1: New file.
* iconvdata/testdata/ISO_11548-1..UTF8: New file.
Patch by Samuel Thibault <samuel.thibault@ens-lyon.org>.

18 years ago* sysdeps/sh/bits/setjmp.h (_JMPBUF_UNWINDS): Remove incorrect &.
Ulrich Drepper [Wed, 16 Nov 2005 07:56:21 +0000 (07:56 +0000)]
* sysdeps/sh/bits/setjmp.h (_JMPBUF_UNWINDS): Remove incorrect &.

18 years ago[BZ 1865]
Ulrich Drepper [Wed, 16 Nov 2005 07:52:07 +0000 (07:52 +0000)]
[BZ 1865]

* inet/netinet/icmp6.h: More updates for RFC3542.
* inet/netinet/ip6.h: Likewise.
* sysdeps/unix/sysv/linux/bits/in.h: Adjust for current kernel sources.
Patch by David L Stevens <dlstevens@us.ibm.com>.

18 years ago* sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
Ulrich Drepper [Wed, 16 Nov 2005 00:36:16 +0000 (00:36 +0000)]
* sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):

Return -1 on failure.
* sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
* sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise..
* sysdeps/unix/sysv/linux/fxstatat64.c [__ASSUME_STAT64_SYSCALL]
(__fxstatat64): Handle errors.

18 years ago* io/sys/poll.h: Add comment explaining poll is a cancellation
Ulrich Drepper [Tue, 15 Nov 2005 21:58:44 +0000 (21:58 +0000)]
* io/sys/poll.h: Add comment explaining poll is a cancellation

point.

* sysdeps/unix/sysv/linux/sys/epoll.h: Add comment explaining
epoll_wait is a cancellation point.

18 years ago* sysdeps/unix/sysv/linux/syscalls.list (epoll_wait): Align with
Ulrich Drepper [Tue, 15 Nov 2005 21:54:29 +0000 (21:54 +0000)]
* sysdeps/unix/sysv/linux/syscalls.list (epoll_wait): Align with

poll, make cancelable.

18 years ago* sysdeps/unix/sysv/linux/syscalls.list (epoll_create, epoll_ctl,
Ulrich Drepper [Tue, 15 Nov 2005 19:59:57 +0000 (19:59 +0000)]
* sysdeps/unix/sysv/linux/syscalls.list (epoll_create, epoll_ctl,

epoll_wait): Align with poll, make cancelable.

2005-11-15  Jakub Jelinek  <jakub@redhat.com>

* io/sys/stat.h (fstatat): Don't use __THROW together with
__REDIRECT_NTH.

18 years ago* elf/dl-open.c [!SHARED]: Remove _dl_tls_static_size definition.
Ulrich Drepper [Tue, 15 Nov 2005 07:26:22 +0000 (07:26 +0000)]
* elf/dl-open.c [!SHARED]: Remove _dl_tls_static_size definition.

* sysdeps/generic/libc-tls.c: Initialize _dl_tls_static_size here.

18 years ago[BZ #1294]
Ulrich Drepper [Sat, 12 Nov 2005 02:11:32 +0000 (02:11 +0000)]
[BZ #1294]

2005-11-11  Ulrich Drepper  <drepper@redhat.com>
[BZ #1294]
* locales/pt_BR: Set p_cs_precedes and n_cs_precedes to 1.

18 years ago* io/Makefile (routines): Add fstatat, fstatat64, fxstatat, fxstatat64,
Ulrich Drepper [Fri, 11 Nov 2005 20:02:07 +0000 (20:02 +0000)]
* io/Makefile (routines): Add fstatat, fstatat64, fxstatat, fxstatat64,

fchownat, and unlinkat.
(static-only-routines): Add fstatat and fstatat64.
(tests): Add tst-unlinkat, tst-fstatat, tst-futimesat, tst-renameat,
and tst-fchownat.
* io/Versions [GLIBC_2.4]: Add fchownat, __fxstatat, __fxstatat64,
and unlinkat.
* io/fcntl.h: Define AT_FDCWD, AT_SYMLINK_NOFOLLOW, and AT_REMOVEDIR.
* io/fstatat.c: New file.
* io/fstatat64.c: New file.
* io/sys/stat.h: Declare fstatat, fstatat64, __fxstatat, __fxstatat64
and define fstatat and fstatat64 inline functions.
* libio/stdio.h: Declare renameat.
* misc/Makefile (routines): Add futimesat.
* misc/Versions [GLIBC_2.4]: Add futimesat.
* posix/unistd.h: Declare fchownat and unlinkat.
* stdio-common/Makefile (routines): Add renameat.
* stdio-common/Versions [GLIBC_2.4]: Add renameat.
* sysdeps/generic/fchownat.c: New file.
* sysdeps/generic/futimesat.c: New file.
* sysdeps/generic/fxstatat.c: New file.
* sysdeps/generic/fxstatat64.c: New file.
* sysdeps/generic/renameat.c: New file.
* sysdeps/generic/unlinkat.c: New file.
* sysdeps/unix/sysv/linux/fchownat.c: New file.
* sysdeps/unix/sysv/linux/futimesat.c: New file.
* sysdeps/unix/sysv/linux/fxstatat.c: New file.
* sysdeps/unix/sysv/linux/fxstatat64.c: New file.
* sysdeps/unix/sysv/linux/renameat.c: New file.
* sysdeps/unix/sysv/linux/unlinkat.c: New file.
* sysdeps/unix/sysv/linux/alpha/fxstatat.c: New file.
* sysdeps/unix/sysv/linux/i386/fchownat.c: New file.
* sysdeps/unix/sysv/linux/i386/fxstatat.c: New file.
* sysdeps/unix/sysv/linux/m68k/fchownat.c: New file.
* sysdeps/unix/sysv/linux/m68k/fxstatat.c: New file.
* sysdeps/unix/sysv/linux/powerpc/fchownat.c: New file.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/fxstatat.c: New file.
* sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: New file.
* sysdeps/unix/sysv/linux/s390/s390-32/fxstatat.c: New file.
* sysdeps/unix/sysv/linux/sh/fchownat.c: New file.
* sysdeps/unix/sysv/linux/sh/fxstatat.c: New file.
* sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: New file.
* sysdeps/unix/sysv/linux/sparc/sparc32/fxstatat.c: New file.
* sysdeps/unix/sysv/linux/sparc/sparc64/fxstatat.c: New file.
* sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: New file.
* sysdeps/unix/sysv/linux/wordsize-64/fxstatat64.c: New file.
* time/sys/time.h: Declare futimesat.
* include/fcntl.h: Declare __atfct_seterrno.
* sysdeps/unix/sysv/linux/openat.c (__atfct_seterrno): New function.
Split out from openat code and called.
(do_test): Allow openat to fail with ENOSYS.  Handle AT_FDCWD.
* sysdeps/generic/openat.c: Handle AT_FDCWD.
* sysdeps/generic/openat64.c: Likewise.
* io/tst-unlinkat.c: New file.
* io/tst-fstatat.c: New file.
* io/tst-futimesat.c: New file.
* io/tst-renameat.c: New file.
* io/tst-fchownat.c: New file.
* io/tst-openat.c: Don't fail if openat is not implemented.

* sysdeps/unix/sysv/linux/powerpc/chown.c: Don't provide backward
compatibility code if new kernel is guaranteed.

* time/sys/time.h: Add a few nonnull attributes.

18 years ago* io/fcntl.h: Declare openat and openat64.
Ulrich Drepper [Thu, 10 Nov 2005 00:12:21 +0000 (00:12 +0000)]
* io/fcntl.h: Declare openat and openat64.

* io/Makefile (routines): Add openat and openat64.
(tests): Add tst-openat.
* io/Versions: Add openat and openat64 for GLIBC_2.4.
* sysdeps/generic/openat.c: New file.
* sysdeps/generic/openat64.c: New file.
* sysdeps/unix/sysv/linux/openat.c: New file.
* sysdeps/unix/sysv/linux/openat64.c: New file.
* io/tst-openat.c: New file.

* sysdeps/unix/sysv/linux/device-nrs.h: Add info for /dev/full.

18 years ago(__libc_check_standard_fds): Reverse modes so that common operations on
Ulrich Drepper [Wed, 9 Nov 2005 19:36:12 +0000 (19:36 +0000)]
(__libc_check_standard_fds): Reverse modes so that common operations on

18 years ago* sysdeps/generic/check_fds.c (check_one_fd): For writable
Ulrich Drepper [Wed, 9 Nov 2005 19:32:40 +0000 (19:32 +0000)]
* sysdeps/generic/check_fds.c (check_one_fd): For writable

descriptors, use /dev/full.
(__libc_check_standard_fds): Revert modes so that common operations on
the descriptors fail.

18 years ago(check_one_fd): For writable descriptors, use /dev/full. (__libc_check_standard_fds...
Ulrich Drepper [Wed, 9 Nov 2005 19:26:07 +0000 (19:26 +0000)]
(check_one_fd): For writable descriptors, use /dev/full. (__libc_check_standard_fds): Revert modes so that common operations on the descriptors fail.

18 years ago* elf/elf.h (R_M32R_REL32): New macro.
Roland McGrath [Tue, 8 Nov 2005 01:53:36 +0000 (01:53 +0000)]
* elf/elf.h (R_M32R_REL32): New macro.

18 years ago* sysdeps/mach/hurd/bits/stat.h (S_IMMAP0): New macro.
Roland McGrath [Tue, 8 Nov 2005 01:23:02 +0000 (01:23 +0000)]
* sysdeps/mach/hurd/bits/stat.h (S_IMMAP0): New macro.

(S_ISPARE): Unset the S_IMMAP0 flag.

18 years ago* configure.in: Grok --with-cpu=CPU option. If given, search for
Roland McGrath [Tue, 8 Nov 2005 01:21:32 +0000 (01:21 +0000)]
* configure.in: Grok --with-cpu=CPU option.  If given, search for

sysdeps/.../machine/CPU subdirs, and give error if none are found.
* configure: Regenerated.
* config.make.in (with-cpu): New substituted variable.
* Makeconfig (+cflags): Add -mcpu=$(with-cpu) if set.

18 years ago* malloc/malloc.c (munmap_chunk): Suppress warnings from last change.
Roland McGrath [Mon, 7 Nov 2005 23:00:18 +0000 (23:00 +0000)]
* malloc/malloc.c (munmap_chunk): Suppress warnings from last change.

* sysdeps/unix/sysv/linux/tcflush.c: Rewritten.
* sysdeps/unix/sysv/linux/tcflow.c: Rewritten.

18 years agosysdeps/unix/bsd/sun moved to ports
Roland McGrath [Mon, 7 Nov 2005 22:37:55 +0000 (22:37 +0000)]
sysdeps/unix/bsd/sun moved to ports

2005-11-07  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/bsd/sun: Directory and all subdirectories removed,
saved in ports repository.

18 years ago* malloc/malloc.c (munmap_chunk): Add sanity checks.
Ulrich Drepper [Sun, 6 Nov 2005 17:08:48 +0000 (17:08 +0000)]
* malloc/malloc.c (munmap_chunk): Add sanity checks.

* sysdeps/pthread/configure: Fix comment.

18 years ago* configure.in: Remove gnu_as definition and everything using it.
Ulrich Drepper [Sun, 6 Nov 2005 02:14:58 +0000 (02:14 +0000)]
* configure.in: Remove gnu_as definition and everything using it.

* config.make.in: Remove gnu-as.
* config.h.in: Remove HAVE_GNU_AS.

18 years ago* config.make.in: Remove gnu-ld.
Ulrich Drepper [Sun, 6 Nov 2005 02:08:44 +0000 (02:08 +0000)]
* config.make.in: Remove gnu-ld.

18 years ago* configure.in: Remove gnu_ld definition and everything using it.
Ulrich Drepper [Sun, 6 Nov 2005 02:06:06 +0000 (02:06 +0000)]
* configure.in: Remove gnu_ld definition and everything using it.

* config.h.in: Remove HAVE_GNU_LD.
* csu/Makefile: Remove use of gnu-ld.
* csu/munch.awk: Removed.
* csu/munch-tmpl.c: Removed.
* include/libc-symbols.h: Remove use of HAVE_GNU_LD.
* posix/execl.c: Likewise.
* posix/execv.c: Likewise.
* stdio-common/psignal.c: Likewise.
* stdlib/exit.c: Likewise.
* string/strsignal.c: Likewise.
* string/tester.c: Likewise.
* sysdeps/generic/errlist.c: Likewise.
* sysdeps/generic/getenv.c: Likewise.
* sysdeps/generic/getgroups.c: Likewise.
* sysdeps/generic/init-posix.c: Likewise.
* sysdeps/posix/gettimeofday.c: Likewise.
* sysdeps/posix/system.c: Likewise.
* sysdeps/unix/bsd/init-posix.c: Likewise.
* sysdeps/unix/bsd/ulimit.c: Likewise.
* sysdeps/unix/bsd/sun/m68k/brk.S: Likewise.
* sysdeps/unix/bsd/sun/m68k/sethostid.S: Likewise.
* sysdeps/unix/bsd/sun/sparc/sethostid.S: Likewise.
* sysdeps/unix/i386/brk.S: Likewise.
* sysdeps/unix/sparc/brk.S: Likewise.

18 years ago* config.h.in: Remove HAVE_SUBTRACT_LOCAL_LABELS.
Ulrich Drepper [Sat, 5 Nov 2005 21:52:08 +0000 (21:52 +0000)]
* config.h.in: Remove HAVE_SUBTRACT_LOCAL_LABELS.

18 years ago* configure.in: Remove test for support for subtracting local labels.
Ulrich Drepper [Sat, 5 Nov 2005 21:49:48 +0000 (21:49 +0000)]
* configure.in: Remove test for support for subtracting local labels.

* stdio-common/vfprintf.c: Remove test of
HAVE_SUBTRACT_LOCAL_LABELS.

18 years ago* configure.in: If init_array/fini_array support is not available,
Ulrich Drepper [Sat, 5 Nov 2005 17:46:24 +0000 (17:46 +0000)]
* configure.in: If init_array/fini_array support is not available,

bail out.
* config.h.in: Remove trace of optional init_array/fini_array support.
* config.make.in: Likewise.
* csu/elf-init.c: Likewise.
* dlfcn/dlfcn.c: Likewise.
* elf/soinit.c: Likewise.
* sysdeps/ia64/elf/initfinit.c: Likewise.

18 years ago* SUPPORTED (SUPPORTED-LOCALES): Fix typo in si_LK line.
Ulrich Drepper [Sat, 5 Nov 2005 16:26:30 +0000 (16:26 +0000)]
* SUPPORTED (SUPPORTED-LOCALES): Fix typo in si_LK line.

18 years ago(SUPPORTED-LOCALES): Fix typo in si_LK line.
Ulrich Drepper [Sat, 5 Nov 2005 16:25:49 +0000 (16:25 +0000)]
(SUPPORTED-LOCALES): Fix typo in si_LK line.

18 years ago* sysdeps/i386/configure.in (libc_mtune_example): Variable removed.
Roland McGrath [Sat, 5 Nov 2005 02:36:27 +0000 (02:36 +0000)]
* sysdeps/i386/configure.in (libc_mtune_example): Variable removed.

* sysdeps/i386/configure: Regenerated.