platform/upstream/glibc.git
18 years ago* nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_parse_etherent):
Ulrich Drepper [Fri, 14 Apr 2006 21:30:52 +0000 (21:30 +0000)]
* nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_parse_etherent):

Minor cleanups.  NUL terminate name string.

* nis/Versions: No need to export _nss_nisplus_parse_grent,
_nss_nisplus_parse_pwent, and _nss_nisplus_parse_spent.

18 years ago* nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_parse_aliasent):
Ulrich Drepper [Fri, 14 Apr 2006 20:39:47 +0000 (20:39 +0000)]
* nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_parse_aliasent):

Avoid unnecessary allocation.  Fix adjustment for pointer value.

18 years ago* nis/nss_nisplus/nisplus-parser.c: Cleanups, use NIS_RES_*
Ulrich Drepper [Fri, 14 Apr 2006 15:26:13 +0000 (15:26 +0000)]
* nis/nss_nisplus/nisplus-parser.c: Cleanups, use NIS_RES_*

macros.  Avoid unnecessary allocation.

18 years ago* sysdeps/unix/sysv/linux/sync_file_range.c: New file.
Ulrich Drepper [Fri, 14 Apr 2006 08:09:08 +0000 (08:09 +0000)]
* sysdeps/unix/sysv/linux/sync_file_range.c: New file.

18 years ago* nis/Makefile (libnsl-routimes): Add nss-default.
Ulrich Drepper [Fri, 14 Apr 2006 05:51:51 +0000 (05:51 +0000)]
* nis/Makefile (libnsl-routimes): Add nss-default.

* nis/Versions (libnsl) [GLIBC_PRIVATE]: Export _nsl_default_nss.
* nis/nss-nis.c: Move /etc/default/nss handling to...
* nis/nss-default.c: ...here.  New file.
* nis/libnsl.h: New file.
* nis/nss-nis.h: Remove NSS_FLAG_* definitions and _nis_default_nss
plus auxilary definitions.
* nis/nss_nis/nis-initgroups.c: Use _nsl_default_nss instead of
_nis_default_nss.
* nis/nss_nis/nis-service.c: Likewise.

2006-04-07  Steven Munroe  <sjmunroe@us.ibm.com>

* sysdeps/powerpc/fpu/bits/mathinline.h
[__WORDSIZE == 64 || _ARCH_PWR4]: Define __CPU_HAS_FSQRT.
(__ieee754_sqrt): Fix comment.
(__ieee754_sqrtf): Fix comment.
* sysdeps/powerpc/fpu/e_sqrt.c (__ieee754_sqrt): Fix comment.
Check __CPU_HAS_FSQRT instead of dl_hwcap.
* sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Likewise.

18 years ago* locales/cs_CZ (LC_TIME): Define week.
Ulrich Drepper [Mon, 10 Apr 2006 18:15:01 +0000 (18:15 +0000)]
* locales/cs_CZ (LC_TIME): Define week.

* locales/sk_SK (LC_TIME): Likewise.
* locales/pl_PL (LC_TIME): Likewise.
* locales/en_US (LC_TIME): Change week to 7;19971130;7.

18 years ago* inet/inet_ntoa.c: Rewrite to use TLS instead of TSD.
Ulrich Drepper [Sun, 9 Apr 2006 05:51:26 +0000 (05:51 +0000)]
* inet/inet_ntoa.c: Rewrite to use TLS instead of TSD.

18 years ago* nis/nss_nis/nis-alias.c: Optimize use of yperr2nss. Avoid calling
Ulrich Drepper [Sun, 9 Apr 2006 02:45:24 +0000 (02:45 +0000)]
* nis/nss_nis/nis-alias.c: Optimize use of yperr2nss.  Avoid calling

it for YPERR_SUCCESS.  Minor cleanups.  Add __builtin_expect.
* nis/nss_nis/nis-ethers.c: Likewise.
* nis/nss_nis/nis-grp.c: Likewise.
* nis/nss_nis/nis-hosts.c: Likewise.
* nis/nss_nis/nis-initgroups.c: Likewise.
* nis/nss_nis/nis-netgrp.c: Likewise.
* nis/nss_nis/nis-network.c: Likewise.
* nis/nss_nis/nis-proto.c: Likewise.
* nis/nss_nis/nis-publickey.c: Likewise.
* nis/nss_nis/nis-pwd.c: Likewise.
* nis/nss_nis/nis-rpc.c: Likewise.
* nis/nss_nis/nis-service.c: Likewise.
* nis/nss_nis/nis-spwd.c: Likewise.

18 years ago* nis/nis_ping.c: Remove unnecessary conditionals before
Ulrich Drepper [Sat, 8 Apr 2006 20:28:00 +0000 (20:28 +0000)]
* nis/nis_ping.c: Remove unnecessary conditionals before

nis_freeresult calls.
* nis/nis_ismember.c: Likewise.

18 years ago* elf/rtld.c (process_envvars): Fix handling of LD_POINTER_GUARD.
Ulrich Drepper [Sat, 8 Apr 2006 19:52:13 +0000 (19:52 +0000)]
* elf/rtld.c (process_envvars): Fix handling of LD_POINTER_GUARD.

Reported by genesh@comcast.net.

18 years ago* io/fts.c (fts_build): Call fts_lfree in the two error cases
Ulrich Drepper [Sat, 8 Apr 2006 19:35:24 +0000 (19:35 +0000)]
* io/fts.c (fts_build): Call fts_lfree in the two error cases

after the loop [Coverity CID 187].

* nis/nis_getservlist.c (nis_getservlist): Also free lookup result
in error case [Coverity CID 189].

* nis/nis_getservlist.c (nis_getservlist): One more free call
needed [Coverity CID 190].

18 years ago* sysdeps/generic/unwind-dw2-fde.c (end_fde_sort): Remove
Ulrich Drepper [Fri, 7 Apr 2006 20:52:23 +0000 (20:52 +0000)]
* sysdeps/generic/unwind-dw2-fde.c (end_fde_sort): Remove

unnecessary test for accu->linear == NULL [Coverity CID 79].

18 years ago* sysdeps/posix/tempname.c (__gen_tempname): Change attempts_min
Ulrich Drepper [Fri, 7 Apr 2006 20:25:36 +0000 (20:25 +0000)]
* sysdeps/posix/tempname.c (__gen_tempname): Change attempts_min

into a macro.  Use preprocessor to decide how to initialize
attempts [Coverity CID 67].

* io/fts.c (fts_build): Comment out dead code [Coverity CID 68].

* sunrpc/rpc_parse.c (def_union): Comment out dead code
[Coverity CID 70].

* locale/programs/linereader.c (lr_token): Remove duplicate
handling of EOF [Coverity CID 71].

* locale/programs/ld-numeric.c (numeric_read) [case tok_grouping]:
We bail out early if ignore_content is set, so there is no need to
check it later again [Coverity CID 72].

* inet/inet6_option.c (inet6_option_find): Check *tptrp for NULL,
not tptrp [Coverity CID 73].

* inet/inet6_option.c (inet6_option_next): Check *tptrp for NULL,
not tptrp [Coverity CID 74].

* misc/tsearch.c (__tsearch): Don't rotate tree if memory
allocation failed [Coverity CID 78].

18 years ago* sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix typo in
Ulrich Drepper [Fri, 7 Apr 2006 14:11:51 +0000 (14:11 +0000)]
* sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix typo in

the last change.

DW_CFA_GNU_window_save if it obviously cannot work [Coverity CID 102].

18 years ago* inet/rexec.c (rexec_af): If we have no canonical name don't
Ulrich Drepper [Fri, 7 Apr 2006 08:17:33 +0000 (08:17 +0000)]
* inet/rexec.c (rexec_af): If we have no canonical name don't

proceed further [Coverity CID 86].

* iconv/iconv_charmap.c (process_fd): Initialize inptr from inbuf,
not to NULL [Coverity CID 88].

18 years ago* elf/ldconfig.c (main): Use rawmemchr instead of strchr.
Ulrich Drepper [Fri, 7 Apr 2006 07:02:20 +0000 (07:02 +0000)]
* elf/ldconfig.c (main): Use rawmemchr instead of strchr.

* nis/nis_call.c (rec_dirsearch): Likewise.
* nis/nis_local_names.c (nis_local_host): Likewise.
(nis_local_directory): Likewise.
* intl/explodename.c (_nl_explode_name): Likewise.

* sysdeps/generic/unwind-dw2.c (execute_cfa_program): Don't handle
DW_CFA_GNU_windiw_save if it obviously cannot work [Coverity CID 102].

* locale/programs/ld-address.c (address_finish): Fix conditions
for error messages [Coverity CID 104].

18 years ago* libio/fmemopen.c (fmemopen): Free stream memory in case of
Ulrich Drepper [Fri, 7 Apr 2006 04:29:25 +0000 (04:29 +0000)]
* libio/fmemopen.c (fmemopen): Free stream memory in case of

invalid length [Coverity CID 106].

* nss/nss_files/files-key.c (search): Close stream before
successful return [Coverity CID 107].

* io/fts.c (fts_open): Don't allocate parent if *argv==NULL
[Coverity CID 108].

* sunrpc/rpc_cout.c (inline_struct): Free sizestr after use
[Coverity CID 110, 109].

* sunrpc/rpc_scan.c (docppline): Free file string if it is not
going to be used [Coverity CID 111].

* sysdeps/unix/sysv/linux/getsourcefilter.c (getsourcefilter): Free
memory if socket level value cannot be retrieved [Coverity CID 112].

* nis/nis_clone_dir.c (nis_clone_directory): Free all memory in
error case [Coverity CID 114].

* nis/nis_clone_res.c (nis_clone_result): Free all memory in the
error cases [Coverity CID 115].

* sunrpc/rpc_parse.c (get_definition): Free defp if tok ==
TOK_EOF [Coverity CID 116].

* sysdeps/unix/sysv/linux/setsourcefilter.c (setsourcefilter): Free
memory if socket level value cannot be retrieved [Coverity CID 117].

* elf/cache.c (save_cache): Initialize pad to avoid writing
uninitialized data to disk.

* elf/cache.c (save_cache): Free file_entries_new [Coverity CID 118].

* intl/finddomain.c (_nl_find_domain): Avoid strdup of expand
locale name, use strdupa.  Remove free call [Coverity CID 119].

* sunrpc/rpc_main.c (generate_guard): Avoid extra allocation and
the resulting leak [Coverity CID 121].

* sunrpc/rpc_main.c (mkfile_output): Free all allocated memory
[Coverity CID 122].

* sunrpc/rpc_main.c (h_output): Free guard after we are done
[Coverity CID 123].

* sunrpc/svc_udp.c (cache_set): Free victim if newbuf allocation
fails [Coverity CID 126].

* sunrpc/svc_udp.c (svcudp_enablecache): Free memory in error
cases [Coverity CID 127].

* nis/nis_table.c (__create_ib_request): Free ibreq in case strdup
fails [Coverity CID 128].

* nis/nis_getservlist.c (nis_getservlist): Free all memory in case
of an error [Coverity CID 130, 129].

* nis/nis_print_group_entry.c (nis_print_group_entry): If
nis_lookup call failed, return.  Free lookup result in error
cases [Coverity CID 131].

* nis/nis_removemember.c (nis_removemember): Free all memory in
error cases [Coverity CID 132].

* nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
Always free lookup result [Coverity CID 134].

* nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r):
Always free lookup result [Coverity CID 135].

* nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_getntohost_r):
Always free lookup result [Coverity CID 136].

* nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
Before retrying, free old result [Coverity CID 137].

* nis/nss_nisplus/nisplus-publickey.c (_nss_nisplus_netname2user):
Free res in case UID is zero [Coverity CID 138].

* nis/ypclnt.c (yp_update): Always free master string
[Coverity CID 140].

* nis/nis_creategroup.c (nis_creategroup): Free all memory in
error cases [Coverity CID 143, 142, 141].

* nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey): Free result
if yp_match call succeeded [Coverity CID 155].

* nis/nss_nis/nis-publickey.c (_nss_nis_getsecretkey): Free string
allocated in yp_match at all times [Coverity CID 157, 156].

* nscd/nscd.c (write_pid): Close stream also if writing failed
[Coverity CID 165].

* nis/nis_table.c (nis_add_entry): Move test for NULL parameter
ahead of first use [Coverity CID 167].

* nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Move test
for NULL parameter ahead of first use [Coverity CID 168].

* intl/finddomain.c (_nl_find_domain): We never return NULL if we
found the locale [Coverity CID 169].

* inet/getnameinfo.c (getnameinfo): __getservbyport_r does not set
herrno [Coverity CID 178].

* nis/nis_checkpoint.c (nis_checkpoint): Don't access and returned
freed object [Coverity CID 182].

18 years ago2006-04-05 Alan Modra <amodra@bigpond.net.au>
Ulrich Drepper [Wed, 5 Apr 2006 21:33:15 +0000 (21:33 +0000)]
2006-04-05  Alan Modra  <amodra@bigpond.net.au>

    Jakub Jelinek  <jakub@redhat.com>

* posix/bits/unistd.h (readlink, __readlink_chk, __readlink_alias):
Change return value to ssize_t.

Reported by S.Ã\87\9flar Onur <caglar@uludag.org.tr>.
Patch by René Rebe <rene@exactcode.de>.
Reported by René Rebe <rene@exactcode.de>.

18 years agoAdd nonnull attributes.
Ulrich Drepper [Wed, 5 Apr 2006 20:30:13 +0000 (20:30 +0000)]
Add nonnull attributes.

18 years ago[BZ #2508]
Roland McGrath [Tue, 4 Apr 2006 08:40:47 +0000 (08:40 +0000)]
[BZ #2508]

2006-04-04  Roland McGrath  <roland@redhat.com>
* string/Makefile (CFLAGS-inl-tester.c): New variable.
(CFLAGS-tst-inlcall.c): Likewise.

[BZ #2508]
* nscd/Makefile ($(objpfx)nscd_stat.o: sysincludes): Move setting
inside [$(have-selinux) = yes].
($(objpfx)selinux.o: sysincludes): Likewise.

* iconvdata/Makefile (generate-8bit-table): Use LC_ALL=C.
(generate-8bit-gap-table): Likewise.
($(objpfx)iso8859-7jp.stmp): Likewise.
Reported by S.Çağlar Onur <caglar@uludag.org.tr>.

18 years ago* soft-fp/adddf3.c: Add libgcc exception. Update FSF address.
Roland McGrath [Tue, 4 Apr 2006 08:25:52 +0000 (08:25 +0000)]
* soft-fp/adddf3.c: Add libgcc exception.  Update FSF address.

* soft-fp/addsf3.c: Likewise.
* soft-fp/addtf3.c: Likewise.
* soft-fp/divdf3.c: Likewise.
* soft-fp/divsf3.c: Likewise.
* soft-fp/divtf3.c: Likewise.
* soft-fp/double.h: Likewise.
* soft-fp/eqdf2.c: Likewise.
* soft-fp/eqsf2.c: Likewise.
* soft-fp/eqtf2.c: Likewise.
* soft-fp/extenddftf2.c: Likewise.
* soft-fp/extended.h: Likewise.
* soft-fp/extendsfdf2.c: Likewise.
* soft-fp/extendsftf2.c: Likewise.
* soft-fp/fixdfdi.c: Likewise.
* soft-fp/fixdfsi.c: Likewise.
* soft-fp/fixsfdi.c: Likewise.
* soft-fp/fixsfsi.c: Likewise.
* soft-fp/fixtfdi.c: Likewise.
* soft-fp/fixtfsi.c: Likewise.
* soft-fp/fixunsdfdi.c: Likewise.
* soft-fp/fixunsdfsi.c: Likewise.
* soft-fp/fixunssfdi.c: Likewise.
* soft-fp/fixunssfsi.c: Likewise.
* soft-fp/fixunstfdi.c: Likewise.
* soft-fp/fixunstfsi.c: Likewise.
* soft-fp/floatdidf.c: Likewise.
* soft-fp/floatdisf.c: Likewise.
* soft-fp/floatditf.c: Likewise.
* soft-fp/floatsidf.c: Likewise.
* soft-fp/floatsisf.c: Likewise.
* soft-fp/floatsitf.c: Likewise.
* soft-fp/floatundidf.c: Likewise.
* soft-fp/floatundisf.c: Likewise.
* soft-fp/floatunditf.c: Likewise.
* soft-fp/floatunsidf.c: Likewise.
* soft-fp/floatunsisf.c: Likewise.
* soft-fp/floatunsitf.c: Likewise.
* soft-fp/gedf2.c: Likewise.
* soft-fp/gesf2.c: Likewise.
* soft-fp/getf2.c: Likewise.
* soft-fp/ledf2.c: Likewise.
* soft-fp/lesf2.c: Likewise.
* soft-fp/letf2.c: Likewise.
* soft-fp/muldf3.c: Likewise.
* soft-fp/mulsf3.c: Likewise.
* soft-fp/multf3.c: Likewise.
* soft-fp/negdf2.c: Likewise.
* soft-fp/negsf2.c: Likewise.
* soft-fp/negtf2.c: Likewise.
* soft-fp/op-1.h: Likewise.
* soft-fp/op-2.h: Likewise.
* soft-fp/op-4.h: Likewise.
* soft-fp/op-8.h: Likewise.
* soft-fp/op-common.h: Likewise.
* soft-fp/quad.h: Likewise.
* soft-fp/single.h: Likewise.
* soft-fp/soft-fp.h: Likewise.
* soft-fp/sqrtdf2.c: Likewise.
* soft-fp/sqrtsf2.c: Likewise.
* soft-fp/sqrttf2.c: Likewise.
* soft-fp/subdf3.c: Likewise.
* soft-fp/subsf3.c: Likewise.
* soft-fp/subtf3.c: Likewise.
* soft-fp/truncdfsf2.c: Likewise.
* soft-fp/trunctfdf2.c: Likewise.
* soft-fp/trunctfsf2.c: Likewise.
* soft-fp/unorddf2.c: Likewise.
* soft-fp/unordsf2.c: Likewise.
* soft-fp/unordtf2.c: Likewise.

18 years ago[BZ #2505]
Roland McGrath [Tue, 4 Apr 2006 08:18:56 +0000 (08:18 +0000)]
[BZ #2505]

2006-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
[BZ #2505]
* sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR4]:
Define atomic_read_barrier and __ARCH_REL_INSTR using lwsync.

18 years ago[BZ #2508]
Roland McGrath [Tue, 4 Apr 2006 07:32:53 +0000 (07:32 +0000)]
[BZ #2508]

* nscd/Makefile ($(objpfx)nscd_stat.o: sysincludes): Move setting
inside [$(have-selinux) = yes].
($(objpfx)selinux.o: sysincludes): Likewise.

18 years ago* iconvdata/Makefile (generate-8bit-table): Use LC_ALL=C.
Roland McGrath [Tue, 4 Apr 2006 07:08:13 +0000 (07:08 +0000)]
* iconvdata/Makefile (generate-8bit-table): Use LC_ALL=C.

(generate-8bit-gap-table): Likewise.
($(objpfx)iso8859-7jp.stmp): Likewise.
Reported by S.Çağlar Onur <caglar@uludag.org.tr>.

18 years ago* sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Terminate FDE
Roland McGrath [Tue, 4 Apr 2006 07:01:16 +0000 (07:01 +0000)]
* sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Terminate FDE

before syscall.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.

18 years ago* sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Test for <asm/elf.h>
Roland McGrath [Tue, 4 Apr 2006 06:59:03 +0000 (06:59 +0000)]
* sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Test for <asm/elf.h>

with [! _ASM_POWERPC_ELF_H] as well as [!__PPC64_ELF_H].

18 years ago[BZ #2507]
Roland McGrath [Tue, 4 Apr 2006 00:22:16 +0000 (00:22 +0000)]
[BZ #2507]

2006-04-03  Roland McGrath  <roland@frob.com>
[BZ #2507]
* mach/Machrules (.udeps-targets): New variable.
($(objpfx)%.udeps static pattern rule): Use it to avoid \ inside
quoted string.

18 years ago[BZ #2507]
Roland McGrath [Tue, 4 Apr 2006 00:22:05 +0000 (00:22 +0000)]
[BZ #2507]

2006-04-03  Roland McGrath  <roland@frob.com>
[BZ #2507]
* mach/Machrules (.udeps-targets): New variable.
($(objpfx)%.udeps static pattern rule): Use it to avoid \ inside
quoted string.

18 years ago[BZ #2501]
Ulrich Drepper [Sun, 2 Apr 2006 18:24:52 +0000 (18:24 +0000)]
[BZ #2501]

* nscd/nscd_helper.c (get_mapping): Rewrite code to send request
so it uses send and not writev.

18 years ago[BZ #2418]
Ulrich Drepper [Sun, 2 Apr 2006 17:59:59 +0000 (17:59 +0000)]
[BZ #2418]

2006-04-02  Ulrich Drepper  <drepper@redhat.com>
[BZ #2418]
* sysdeps/unix/sysv/linux/bits/socket.h: Use larger of PATH_MAX and
page size when allocating buffer.

18 years ago[BZ #2415]
Ulrich Drepper [Sat, 1 Apr 2006 20:17:41 +0000 (20:17 +0000)]
[BZ #2415]

* elf/ldd.bash.in: Create better error messages for invalid input
files.

18 years ago[BZ #2477]
Ulrich Drepper [Sat, 1 Apr 2006 19:56:00 +0000 (19:56 +0000)]
[BZ #2477]

* sysdeps/unix/sysv/linux/i386/sysdep.h: Create correct LOADARGS_*
macros for non-shared position-independent code.

18 years ago[BZ #2472]
Ulrich Drepper [Sat, 1 Apr 2006 19:20:18 +0000 (19:20 +0000)]
[BZ #2472]

* bits/siginfo.h: Fix typo in ILL_ILLOPN definition.

18 years ago[BZ #2450]
Ulrich Drepper [Sat, 1 Apr 2006 19:12:44 +0000 (19:12 +0000)]
[BZ #2450]

* posix/unistd.h: Match return value of readlink to what POSIX
says these days.
* io/readlink.c: Likewise.
* io/readlinkat.c: Likewise.
* sysdeps/unix/sysv/linux/readlinkat.c: Likewise.

18 years ago[BZ #2498]
Ulrich Drepper [Sat, 1 Apr 2006 18:51:15 +0000 (18:51 +0000)]
[BZ #2498]

2006-04-01  Ulrich Drepper  <drepper@redhat.com>
[BZ #2498]
* nscd/connections.c (main_loop_poll): If the connection cannot be
accepted because of user-imposed limits close the descriptor.

18 years ago* sysdeps/unix/sysv/linux/Versions: Export sync_file_range with
Ulrich Drepper [Fri, 31 Mar 2006 21:50:22 +0000 (21:50 +0000)]
* sysdeps/unix/sysv/linux/Versions: Export sync_file_range with

GLIBC_2.5.
* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove
LINUX_FADV_ASYNC_WRITE and LINUX_FADV_WRITE_WAIT.
Declare sync_file_range and splice.
* sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add
sync_file_range.
* sysdeps/unix/sysv/linux/i386/sync_file_range.S: New file.

18 years ago* sysdeps/unix/sysv/linux/syscalls.list: Add splice syscall.
Ulrich Drepper [Fri, 31 Mar 2006 16:18:10 +0000 (16:18 +0000)]
* sysdeps/unix/sysv/linux/syscalls.list: Add splice syscall.

* sysdeps/unix/sysv/linux/Versions: Export splice with GLIBC_2.5
version.
* Versions.def: Define GLIBC_2.5 for libc.

18 years ago* sysdeps/posix/getaddrinfo.c (gaih_inet): No need to duplicate
Ulrich Drepper [Wed, 29 Mar 2006 17:52:29 +0000 (17:52 +0000)]
* sysdeps/posix/getaddrinfo.c (gaih_inet): No need to duplicate

'name' for 'canon'.  The final allocation will happen later.

18 years ago* sysdeps/unix/sysv/linux/kernel-features.h: Remove support for cvs/fedora-glibc-20060328T0900
Ulrich Drepper [Tue, 28 Mar 2006 04:31:31 +0000 (04:31 +0000)]
* sysdeps/unix/sysv/linux/kernel-features.h: Remove support for

architectures which moved to ports.

18 years ago* sysdeps/unix/sysv/linux/kernel-features.h: Add
Ulrich Drepper [Tue, 28 Mar 2006 04:25:17 +0000 (04:25 +0000)]
* sysdeps/unix/sysv/linux/kernel-features.h: Add

__ASSUME_SET_ROBUST_LIST.

18 years ago* wcsmbs/wchar.h (btowc, wctob): Don't optimize in C++.
Ulrich Drepper [Mon, 27 Mar 2006 20:14:15 +0000 (20:14 +0000)]
* wcsmbs/wchar.h (btowc, wctob): Don't optimize in C++.

18 years ago* sysdeps/sparc/sparc32/bits/atomic.h
Ulrich Drepper [Sat, 25 Mar 2006 21:03:32 +0000 (21:03 +0000)]
* sysdeps/sparc/sparc32/bits/atomic.h

(__v9_compare_and_exchange_val_32_acq): Add "memory" clobber.
* sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
(__arch_compare_and_exchange_val_32_acq, atomic_exchange_acq):
Likewise.
* sysdeps/sparc/sparc64/bits/atomic.h
(__arch_compare_and_exchange_val_32_acq,
__arch_compare_and_exchange_val_64_acq, atomic_exchange_acq): Likewise.

2006-03-24  Jakub Jelinek  <jakub@redhat.com>

* nis/nss_nisplus/nisplus-proto.c (_nss_create_tablename): Check the
return value of malloc rather than the static var again.
* nis/nss_nisplus/nisplus-grp.c (_nss_create_tablename): Likewise.
* nis/nss_nisplus/nisplus-network.c (_nss_create_tablename): Likewise.
* nis/nss_nisplus/nisplus-ethers.c (_nss_create_tablename): Likewise.
* nis/nss_nisplus/nisplus-rpc.c (_nss_create_tablename): Likewise.
* nis/nss_nisplus/nisplus-service.c (_nss_create_tablename): Likewise.
* nis/nss_nisplus/nisplus-hosts.c (_nss_create_tablename): Likewise.
* nis/nss_nisplus/nisplus-alias.c (_nss_create_tablename): Likewise.
* nis/nss_nisplus/nisplus-pwd.c (_nss_pwd_create_tablename): Likewise.

18 years ago* sysdeps/unix/sysv/linux/sparc/bits/poll.h: Add POLLMSG,
Ulrich Drepper [Sat, 25 Mar 2006 20:46:27 +0000 (20:46 +0000)]
* sysdeps/unix/sysv/linux/sparc/bits/poll.h: Add POLLMSG,

POLLREMOVE, and POLLRDHUP.
* sysdeps/unix/sysv/linux/bits/poll.h: Add POLLREMOVE and POLLRDHUP.

18 years ago* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define
Ulrich Drepper [Fri, 24 Mar 2006 16:38:04 +0000 (16:38 +0000)]
* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define

LINUX_FADV_ASYNC_WRITE and LINUX_FADV_WRITE_WAIT.
* sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.

18 years agoDefine LINUX_FADV_ASYNC_WRITE and LINUX_FADV_WRITE_WAIT.
Ulrich Drepper [Fri, 24 Mar 2006 16:36:38 +0000 (16:36 +0000)]
Define LINUX_FADV_ASYNC_WRITE and LINUX_FADV_WRITE_WAIT.

18 years ago* elf/rtld.c (dl_main): Run final self-relocation after setting up TLS.
Roland McGrath [Sun, 19 Mar 2006 07:48:05 +0000 (07:48 +0000)]
* elf/rtld.c (dl_main): Run final self-relocation after setting up TLS.

From Alexandre Oliva <aoliva@redhat.com>.

* elf/tst-audit2.c: New file.
* elf/Makefile (tests): Add it.
($(objpfx)tst-audit2.out): New target.
(tst-audit2-ENV): New variable.

* elf/tst-leaks1.c: Include <stdio.h>.

18 years ago* sysdeps/unix/sysv/linux/alpha/getcontext.S (__getcontext_x):
Roland McGrath [Thu, 16 Mar 2006 23:27:51 +0000 (23:27 +0000)]
* sysdeps/unix/sysv/linux/alpha/getcontext.S (__getcontext_x):

Use .set noat to quiet assembler warning.

18 years ago[BZ #2466]
Roland McGrath [Thu, 16 Mar 2006 23:17:32 +0000 (23:17 +0000)]
[BZ #2466]

* math/gen-libm-test.pl (parse_args): Take function name for pretty
output as an argument.
(generate_testfile): Pass it the name given in the START macro.

[BZ #2466]
* math/libm-test.inc (llrint_test, llround_test): Fix last change to
protect large-precision cases with [LDBL_MANT_DIG > 100].
(llrint_test_tonearest, llrint_test_towardzero): Likewise.
(llrint_test_downward, llrint_test_upward): Likewise.

2006-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
    Alan Modra  <amodra@bigpond.net.au>

[BZ #2466]
* math/libm-test.inc (llrint_test, llround_test) [TEST_LDOUBLE]:
Add new test values.
(llrint_test_tonearest, llrint_test_towardzero, llrint_test_downward,
llrint_test_upward): New functions.
(main): Call them.

* sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Handle
rounding that spans doubles in IBM long double format.
* sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_llrintl.S: Removed.
* sysdeps/powerpc/powerpc64/fpu/s_llroundl.S: Removed.
* sysdeps/powerpc/powerpc64/fpu/s_lrintl.S: Removed.
* sysdeps/powerpc/powerpc64/fpu/s_lroundl.S: Removed.

2006-03-16  Roland McGrath  <roland@redhat.com>

18 years ago* wcsmbs/wchar.h (__wcstol_internal, __wcstoul_internal): Declare these
Roland McGrath [Thu, 16 Mar 2006 22:11:04 +0000 (22:11 +0000)]
* wcsmbs/wchar.h (__wcstol_internal, __wcstoul_internal): Declare these

 only when we will use them, under [__OPTIMIZE__ && __GNUC__ >= 2].
(__wcstoll_internal, __wcstoull_internal_defined): Likewise.

18 years ago* sysdeps/powerpc/powerpc32/fpu/fprsave.S: Add cfi_offset for spilling
Roland McGrath [Thu, 16 Mar 2006 11:49:03 +0000 (11:49 +0000)]
* sysdeps/powerpc/powerpc32/fpu/fprsave.S: Add cfi_offset for spilling

of non-volatile floating-point registers to the stack (fp14-fp31).
* sysdeps/powerpc/powerpc32/gprsave0.S: Add cfi_offset for spilling of
non-volatile general-purpose registers to the stack (gpr13-gpr31).
* sysdeps/powerpc/powerpc64/dl-trampoline.S: Add cfi_offset
for non-volatiles gpr30 - grp31 spilled to the stack.
* sysdeps/powerpc/powerpc64/memcpy.S: Add cfi_offset for non-volatile
gpr31 spill to the stack.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
Add cfi_offset for non-volatile gpr31 spill to the stack.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Add cfi_offset
for non-volatiles gpr28 - grp31 spilled to the stack.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Add
cfi_adjust_cfa_offset when a frame is stacked.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S:
(__novec_setcontext) : Add cfi_offset for non-volatile gpr31 spill
add LR saved to the stack.  Add cfi_adjust_cfa_offset when frame is
stacked.
(__setcontext) : Add cfi_offset for non-volatile gpr31 spill to
the stack.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
(__novec_swapcontext) : Add cfi_offset for non-volatile gpr31 spill
add LR saved to the stack.
(__swapcontext) : Add cfi_offset for non-volatile gpr31 spill add LR
saved to the stack.  Add cfi_adjust_cfa_offset when frame is stacked.

18 years ago[BZ #2423]
Roland McGrath [Thu, 16 Mar 2006 11:47:24 +0000 (11:47 +0000)]
[BZ #2423]

2006-03-07  Jakub Jelinek  <jakub@redhat.com>
[BZ #2423]
* math/libm-test.inc [TEST_LDOUBLE] (ceil_test, floor_test, rint_test,
round_test, trunc_test): Only run some of the new tests if
LDBL_MANT_DIG > 100.

2006-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
    Alan Modra  <amodra@bigpond.net.au>

* sysdeps/powerpc/fpu/fenv_libc.h (__fegetround, __fesetround):
Define inline implementations.
* sysdeps/powerpc/fpu/fegetround.c: Use __fegetround.
* sysdeps/powerpc/fpu/fesetround.c: Use __fesetround.

* sysdeps/powerpc/fpu/math_ldbl.h: New file.

[BZ #2423]
* math/libm-test.inc [TEST_LDOUBLE] (ceil_test, floor_test, rint_test,
round_test, trunc_test): Add new tests.
* sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
(EXTRACT_IBM_EXTENDED_MANTISSA, INSERT_IBM_EXTENDED_MANTISSA):
Removed, replaced with ...
(ldbl_extract_mantissa, ldbl_insert_mantissa, ldbl_pack, ldbl_unpack,
ldbl_canonicalise, ldbl_nearbyint): New functions.
* sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Replace
EXTRACT_IBM_EXTENDED_MANTISSA and INSERT_IBM_EXTENDED_MANTISSA
with ldbl_extract_mantissa and ldbl_insert_mantissa.
* sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
Replace EXTRACT_IBM_EXTENDED_MANTISSA with ldbl_extract_mantissa.
(ldbl_extract_mantissa, ldbl_insert_mantissa): New inline functions.
* sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Handle rounding
that spans doubles in IBM long double format.
* sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
* sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
* sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
* sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_rintl.S: File removed.

18 years ago* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Don't
Roland McGrath [Thu, 16 Mar 2006 10:56:54 +0000 (10:56 +0000)]
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Don't

define for hppa, which doesn't support this syscall.

18 years ago2004-12-09 Randolph Chung <tausq@debian.org>
Roland McGrath [Thu, 16 Mar 2006 10:56:48 +0000 (10:56 +0000)]
2004-12-09  Randolph Chung  <tausq@debian.org>

* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Don't
define for hppa, which doesn't support this syscall.

18 years ago[BZ #2451]
Ulrich Drepper [Wed, 15 Mar 2006 19:26:13 +0000 (19:26 +0000)]
[BZ #2451]

2006-03-13  Jakub Jelinek  <jakub@redhat.com>
[BZ #2451]
* elf/dl-load.c (open_verify): Add free_name argument, if true, free
name before calling lose.
(open_path): Adjust caller.
(_dl_map_object): Adjust callers.  Free name_copy before calling
_dl_signal_error.
* elf/Makefile: Add rules to build and run tst-leaks1.
* elf/tst-leaks1.c: New test.

18 years ago* sysdeps/unix/sysv/linux/ia64/dl-sysdep.h
Ulrich Drepper [Wed, 8 Mar 2006 19:56:41 +0000 (19:56 +0000)]
* sysdeps/unix/sysv/linux/ia64/dl-sysdep.h

(DL_SYSINFO_IMPLEMENTATION): Add missing newline.

18 years ago(DL_SYSINFO_IMPLEMENTATION): Add missing newline.
Ulrich Drepper [Wed, 8 Mar 2006 19:54:19 +0000 (19:54 +0000)]
(DL_SYSINFO_IMPLEMENTATION): Add missing newline.

18 years ago* version.h (VERSION): 2.4 cvs/fedora-glibc-20060306T1239 cvs/glibc-2_4 glibc-2.4
Roland McGrath [Mon, 6 Mar 2006 10:59:43 +0000 (10:59 +0000)]
* version.h (VERSION): 2.4

* README.template: Update for 2.4.
* README: Regenerated.
* manual/install.texi (Configuring and compiling): Separate build
directory is mandatory.  Use glibc-2.4 in example.
Update --enable-add-ons description.
(Supported Configurations): Remove section.
* INSTALL: Regenerated.

18 years ago* sysdeps/unix/sysv/linux/x86_64/sysconf.c
Roland McGrath [Mon, 6 Mar 2006 08:26:03 +0000 (08:26 +0000)]
* sysdeps/unix/sysv/linux/x86_64/sysconf.c

(handle_intel, handle_amd): Add __attribute__ ((noinline)).
* sysdeps/unix/sysv/linux/i386/sysconf.c
(handle_i486, handle_intel, handle_amd): Likewise.

* sysdeps/unix/sysv/linux/i386/sysconf.c (__sysconf): Don't handle
_SC_CPUTIME and _SC_THREAD_CPUTIME here.
* sysdeps/unix/sysv/linux/x86_64/sysconf.c (__sysconf): Likewise.

18 years ago* sysdeps/mach/hurd/faccessat.c: New file.
Roland McGrath [Mon, 6 Mar 2006 07:59:23 +0000 (07:59 +0000)]
* sysdeps/mach/hurd/faccessat.c: New file.

* sysdeps/mach/hurd/fchmodat.c: New file.
* sysdeps/mach/hurd/fchownat.c: New file.
* sysdeps/mach/hurd/fxstatat.c: New file.
* sysdeps/mach/hurd/fxstatat64.c: New file.
* sysdeps/mach/hurd/linkat.c: New file.
* sysdeps/mach/hurd/mkdirat.c: New file.
* sysdeps/mach/hurd/openat.c: New file.
* sysdeps/mach/hurd/openat64.c: New file.
* sysdeps/mach/hurd/symlinkat.c: New file.
* sysdeps/mach/hurd/unlinkat.c: New file.
* sysdeps/mach/hurd/xmknod.c (__xmknod): Just call __xmknodat.
Guts move to ...
* sysdeps/mach/hurd/xmknodat.c: ... here, new file.

* hurd/lookup-at.c: New file.
* hurd/Makefile (routines): Add it.
* hurd/hurd/fd.h: Declare __file_name_lookup_at,
__file_name_split_at and __directory_name_split_at.

* hurd/hurd/lookup.h: Declare {,__}hurd_directory_name_split.

* hurd/hurdlookup.c (__hurd_directory_name_split): Use __memrchr
unconditionally.

* sysdeps/mach/hurd/open.c: Define {,__,__libc_,}open64 as aliases.
* sysdeps/mach/hurd/open64.c: New file.

18 years ago* malloc/malloc.c (MALLOC_ALIGNMENT): Revert to (2 * SIZE_SZ) value. cvs/fedora-glibc-20060306T0720
Roland McGrath [Mon, 6 Mar 2006 06:18:43 +0000 (06:18 +0000)]
* malloc/malloc.c (MALLOC_ALIGNMENT): Revert to (2 * SIZE_SZ) value.

The correct value differs only on powerpc32, and for now changing it
there is causing more trouble than it's worth.

* malloc/arena.c: Add compile-time sanity check on padding calculation.

2006-03-05  Jakub Jelinek  <jakub@redhat.com>

* malloc/arena.c (heap_info): Adjust the padding size if
MALLOC_ALIGNMENT > 2 * SIZE_SZ.

18 years ago* sysdeps/posix/sysconf.c (__sysconf): Use #if _POSIX_FOO > 0
Roland McGrath [Mon, 6 Mar 2006 02:51:01 +0000 (02:51 +0000)]
* sysdeps/posix/sysconf.c (__sysconf): Use #if _POSIX_FOO > 0

rather than #ifdef _POSIX_FOO for options.  We should return -1
at runtime for an option defined to 0 at compile time.

* sysdeps/mach/hurd/bits/posix_opt.h: Define many missing options,
many to -1 or 0.

2006-03-05  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
[__NR_clock_getres || HP_TIMING_AVAIL]: Handle _SC_CPUTIME,
_SC_THREAD_CPUTIME.

18 years ago* sysdeps/sparc/sparc32/dl-trampoline.S: Add CFI markings.
Roland McGrath [Mon, 6 Mar 2006 01:41:08 +0000 (01:41 +0000)]
* sysdeps/sparc/sparc32/dl-trampoline.S: Add CFI markings.

* sysdeps/sparc/sparc32/elf/start.S: Likewise.
* sysdeps/sparc/sparc64/dl-trampoline.S: Likewise.
* sysdeps/sparc/sparc64/elf/start.S: Likewise.
* sysdeps/sparc/sparc32/memchr.S: Rearrange code to reside
within ENTRY/END.
* sysdeps/sparc/sparc32/memcpy.S: Likewise.
* sysdeps/sparc/sparc32/stpcpy.S: Likewise.
* sysdeps/sparc/sparc32/strcat.S: Likewise.
* sysdeps/sparc/sparc32/strchr.S: Likewise.
* sysdeps/sparc/sparc32/strcmp.S: Likewise.
* sysdeps/sparc/sparc32/strcpy.S: Likewise.
* sysdeps/sparc/sparc32/strlen.S: Likewise.
* sysdeps/sparc/sparc64/memcpy.S: Likewise.
* sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Add CFI markings
and use __syscall_error.
* sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S: Use __syscall_error.
* sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Rewrite to use
CFI markings and __syscall_error.
* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/setcontext.S: Rearrange
code to reside within ENTRY/END.
* sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
* sysdeps/unix/sysv/linux/sparc/sysdep.c: New file.
* sysdeps/unix/sysv/linux/sparc/sysdep.S: File removed.
* sysdeps/unix/sysv/linux/sparc/rt-sysdep.c: New file.
* sysdeps/unix/sysv/linux/sparc/Makefile (librt-routines): Add it.

18 years ago* shlib-versions: Use sparc64.*- for CPU patterns.
Roland McGrath [Mon, 6 Mar 2006 01:34:09 +0000 (01:34 +0000)]
* shlib-versions: Use sparc64.*- for CPU patterns.

18 years ago* bits/resource.h (RLIMIT_SBSIZE, RLIMIT_AS, RLIMIT_VMEM): Define.
Roland McGrath [Sun, 5 Mar 2006 22:48:23 +0000 (22:48 +0000)]
* bits/resource.h (RLIMIT_SBSIZE, RLIMIT_AS, RLIMIT_VMEM): Define.

18 years ago* sysdeps/mach/hurd/opendir.c (__opendir): Likewise.
Roland McGrath [Sun, 5 Mar 2006 11:53:37 +0000 (11:53 +0000)]
* sysdeps/mach/hurd/opendir.c (__opendir): Likewise.

18 years ago* sysdeps/mach/hurd/fdopendir.c (__fdopendir): Use O_DIRECTORY
Roland McGrath [Sun, 5 Mar 2006 11:38:04 +0000 (11:38 +0000)]
* sysdeps/mach/hurd/fdopendir.c (__fdopendir): Use O_DIRECTORY

to force directory check.

18 years ago* sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Make sure high bits
Roland McGrath [Sun, 5 Mar 2006 02:53:03 +0000 (02:53 +0000)]
* sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Make sure high bits

of SEL are clear after copying %gs to low bits.
(_hurd_tls_fork): Likewise.

18 years ago[BZ #2414]
Roland McGrath [Fri, 3 Mar 2006 11:51:37 +0000 (11:51 +0000)]
[BZ #2414]

2006-03-03  Roland McGrath  <roland@redhat.com>
[BZ #2414]
* stdlib/tst-setcontext.c (f1): Take arguments of type int.

18 years ago* sysdeps/unix/alpha/sysdep.h (PTR_MANGLE): Use __typeof in cast.
Roland McGrath [Fri, 3 Mar 2006 11:21:41 +0000 (11:21 +0000)]
* sysdeps/unix/alpha/sysdep.h (PTR_MANGLE): Use __typeof in cast.

2006-03-02  Daniel Jacobowitz  <dan@codesourcery.com>

* sysdeps/unix/sysv/linux/configure.in: Remove MIPS cases.  Allow
libc_cv_slibdir et al. to be overridden.
* sysdeps/unix/sysv/linux/configure: Regenerated.

2005-12-27  Jakub Jelinek  <jakub@redhat.com>

* elf/ldconfig.c (search_dir): Skip prelink temporaries.

18 years ago2006-03-02 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 3 Mar 2006 11:21:28 +0000 (11:21 +0000)]
2006-03-02  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/alpha/sysdep.h (PTR_MANGLE): Use __typeof in cast.

18 years ago* elf/check-textrel.c: Don't include "config.h".
Ulrich Drepper [Thu, 2 Mar 2006 18:44:36 +0000 (18:44 +0000)]
* elf/check-textrel.c: Don't include "config.h".

18 years ago* sysdeps/unix/sysv/linux/aio_misc.h: Various cleanups.
Ulrich Drepper [Thu, 2 Mar 2006 17:35:44 +0000 (17:35 +0000)]
* sysdeps/unix/sysv/linux/aio_misc.h: Various cleanups.

18 years ago* io/ftw.c (process_entry): If dir->streamfd != -1,
Ulrich Drepper [Thu, 2 Mar 2006 16:33:18 +0000 (16:33 +0000)]
* io/ftw.c (process_entry): If dir->streamfd != -1,

use FXSTATAT rather than LXSTAT to find if unstatable
file is a dead symlink.

18 years ago006-03-02 Jakub Jelinek <jakub@redhat.com>
Ulrich Drepper [Thu, 2 Mar 2006 15:58:36 +0000 (15:58 +0000)]
006-03-02  Jakub Jelinek  <jakub@redhat.com>

* elf/check-textrel.c: Include config.h.
(AB(handle_file)): Don't fail if PF_X | PF_W on architectures known
to have executable writable PLT.
* sysdeps/powerpc/powerpc32/configure.in (HAVE_PPC_SECURE_PLT): New
test.
* config.h.in (HAVE_PPC_SECURE_PLT): Add.

* malloc/malloc.c (MALLOC_ALIGNMENT): Set to __alignof__ (long double)
if long double is more aligned than 2 * SIZE_SZ.
(misaligned_chunk): Define.
(public_rEALLOc, _int_free, _int_realloc): Use it.

18 years ago(MALLOC_ALIGNMENT): Set to __alignof__ (long double) if long double is more aligned...
Ulrich Drepper [Thu, 2 Mar 2006 15:53:19 +0000 (15:53 +0000)]
(MALLOC_ALIGNMENT): Set to __alignof__ (long double) if long double is more aligned than 2 * SIZE_SZ. (misaligned_chunk): Define. (public_rEALLOc, _int_free, _int_realloc): Use it.

18 years ago[BZ #2013] cvs/fedora-glibc-20060302T0855
Roland McGrath [Thu, 2 Mar 2006 04:49:45 +0000 (04:49 +0000)]
[BZ #2013]

2006-01-05  H.J. Lu  <hongjiu.lu@intel.com>
[BZ #2013]
* sysdeps/ia64/memccpy.S: Properly handle recovery for
predicated speculative load.

18 years ago[BZ #2013]
Roland McGrath [Thu, 2 Mar 2006 04:49:27 +0000 (04:49 +0000)]
[BZ #2013]

2006-01-05  H.J. Lu  <hongjiu.lu@intel.com>
[BZ #2013]
* sysdeps/ia64/memccpy.S: Properly handle recovery for
predicated speculative load.

18 years ago* sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
Ulrich Drepper [Thu, 2 Mar 2006 00:28:24 +0000 (00:28 +0000)]
* sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S

(__lll_robust_lock_wait): Also set FUTEX_WAITERS bit if we got the
mutex.
(__lll_robust_timedlock_wait): Likewise.
* sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S
(__lll_robust_lock_wait): Likewise.
(__lll_robust_timedlock_wait): Likewise.
* sysdeps/unix/sysv/linux/lowlevelrobustlock.c
(__lll_robust_lock_wait): Likewise.
(__lll_robust_timedlock_wait): Likewise.

18 years ago(__lll_robust_lock_wait): Also set FUTEX_WAITERS buit if we got the mutex. (__lll_rob...
Ulrich Drepper [Thu, 2 Mar 2006 00:25:56 +0000 (00:25 +0000)]
(__lll_robust_lock_wait): Also set FUTEX_WAITERS buit if we got the mutex. (__lll_robust_timedlock_wait): Likewise.

18 years ago* sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
Roland McGrath [Wed, 1 Mar 2006 21:26:02 +0000 (21:26 +0000)]
* sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.

* sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat64): Use
libc_hidden_ver rather than libc_hidden_def.

18 years ago* sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
Roland McGrath [Wed, 1 Mar 2006 20:05:53 +0000 (20:05 +0000)]
* sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.

* sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept):
Use inline asm to make sure the compiler doesn't optimize insns out.

18 years ago* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
Roland McGrath [Wed, 1 Mar 2006 20:03:27 +0000 (20:03 +0000)]
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h

(DECLARGS_6): Fix a typo.

18 years ago* version.h (VERSION): 2.3.91
Roland McGrath [Wed, 1 Mar 2006 10:35:59 +0000 (10:35 +0000)]
* version.h (VERSION): 2.3.91

* Makeconfig (sysdeps-srcdirs): New variable.
(sysdeps-add-ons-srcdirs): Use it.
* csu/Makefile (all-Banner-files): Use it.

* Makefile (dist-selector): New variable.
(glibc-%.tar rule): Use it.  Make $(dist-separate) tarballs
contain one version-named directory.

18 years ago* Makefile (format-me): Use --plaintext --no-number-sections.
Roland McGrath [Wed, 1 Mar 2006 10:05:04 +0000 (10:05 +0000)]
* Makefile (format-me): Use  --plaintext --no-number-sections.

* NOTES, INSTALL: Regenerated.

18 years ago* NEWS: Update 2.4 items.
Roland McGrath [Wed, 1 Mar 2006 09:54:57 +0000 (09:54 +0000)]
* NEWS: Update 2.4 items.

18 years ago* configure.in (machine): Match sparcv9v and sparc64v.
Roland McGrath [Wed, 1 Mar 2006 09:17:48 +0000 (09:17 +0000)]
* configure.in (machine): Match sparcv9v and sparc64v.

* configure: Regenerated.
* sysdeps/sparc/sparc32/sparcv9v/memcpy.S: New file.
* sysdeps/sparc/sparc32/sparcv9v/memset.S: New file.
* sysdeps/sparc/sparc64/sparcv9v/memcpy.S: New file.
* sysdeps/sparc/sparc64/sparcv9v/memset.S: New file.

18 years ago* sysdeps/mach/hurd/Subdirs: Use "first hurd".
Roland McGrath [Wed, 1 Mar 2006 08:52:13 +0000 (08:52 +0000)]
* sysdeps/mach/hurd/Subdirs: Use "first hurd".

18 years agoMove sysdeps/rs6000 off to ports.
Roland McGrath [Wed, 1 Mar 2006 07:33:08 +0000 (07:33 +0000)]
Move sysdeps/rs6000 off to ports.

2006-02-28  Roland McGrath  <roland@redhat.com>

* sysdeps/rs6000: Directory removed, saved in ports repository.

18 years ago* sysdeps/unix/sysv/linux/sh/pread.c: Copy in mips pread.c. cvs/fedora-glibc-20060301T0647
Roland McGrath [Wed, 1 Mar 2006 06:38:57 +0000 (06:38 +0000)]
* sysdeps/unix/sysv/linux/sh/pread.c: Copy in mips pread.c.

* sysdeps/unix/sysv/linux/sh/pwrite.c: Copy in mips pwrite.c.
* sysdeps/unix/sysv/linux/sh/pread64.c: Copy in mips pread64.c.
* sysdeps/unix/sysv/linux/sh/pwrite64.c: Copy in mips pwrite64.c.

18 years ago* elf/tst-tls-dlinfo.c: New file.
Roland McGrath [Wed, 1 Mar 2006 06:18:49 +0000 (06:18 +0000)]
* elf/tst-tls-dlinfo.c: New file.

* elf/Makefile (tests): Add it.
($(objpfx)tst-tls-dlinfo): Depend on $(libdl).
($(objpfx)tst-tls-dlinfo.out): Depend on $(objpfx)tst-tlsmod2.so.

* dlfcn/dlfcn.h (RTLD_DI_PROFILENAME, RTLD_DI_PROFILEOUT): New enum
values, reserve unsupported requested names used on Solaris.
(RTLD_DI_TLS_MODID, RTLD_DI_TLS_DATA): New enum values.
(RTLD_DI_MAX): Likewise.
* dlfcn/dlinfo.c (dlinfo_doit): Handle RTLD_DI_TLS_MODID and
RTLD_DI_TLS_DATA.

* elf/dl-tls.c (_dl_tls_get_addr_soft): New function.
* sysdeps/generic/ldsodefs.h: Declare it.
* elf/Versions (ld: GLIBC_PRIVATE): Add it.
* elf/link.h (struct dl_phdr_info): New members dlpi_tls_modid,
dlpi_tls_data.
* elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill them in.

* include/link.h: Don't copy contents from elf/link.h.
Instead, #include it while #define'ing around link_map.
* elf/dl-debug.c (_dl_debug_initialize): Add a cast.
Add bogus extern decl to verify link_map members.
* elf/loadtest.c (MAPS): New macro, cast _r_debug._r_map.
(OUT, main): Use it in place of _r_debug._r_map.
* elf/unload.c: Likewise.
* elf/unload2.c: Likewise.
* elf/neededtest.c (check_loaded_objects): Likewise.
* elf/neededtest2.c (check_loaded_objects): Likewise.
* elf/neededtest3.c (check_loaded_objects): Likewise.
* elf/neededtest4.c (check_loaded_objects): Likewise.
* elf/circleload1.c (check_loaded_objects): Likewise.

18 years ago* nscd/nscd_helper.c: Include <time.h> for `time' declaration.
Roland McGrath [Wed, 1 Mar 2006 05:39:10 +0000 (05:39 +0000)]
* nscd/nscd_helper.c: Include <time.h> for `time' declaration.

18 years ago* include/fcntl.h: Declare __openat, __open64. Use libc_hidden_proto.
Roland McGrath [Wed, 1 Mar 2006 05:32:59 +0000 (05:32 +0000)]
* include/fcntl.h: Declare __openat, __open64.  Use libc_hidden_proto.

* io/openat.c (__openat): Define instead of openat.
Use libc_hidden_def.  Define openat with weak_alias.
* io/openat64.c (__openat64): Define instead of openat64.
Use libc_hidden_def.  Define openat64 with weak_alias.
* sysdeps/unix/sysv/linux/openat.c: Likewise.

* libio/genops.c: Include <sched.h> for __sched_yield decl.

18 years ago* Makeconfig (+includes): Add back $(includes)
Roland McGrath [Wed, 1 Mar 2006 04:20:27 +0000 (04:20 +0000)]
* Makeconfig (+includes): Add back $(includes)

after $(+sysdep-includes).

* Makerules ($(common-objpfx)%.make): Use -DASSEMBLER.

18 years ago* posix/sys/types.h [!__GNUC_PREREQ (2, 7)] (int64_t, u_int64_t):
Roland McGrath [Tue, 28 Feb 2006 19:11:33 +0000 (19:11 +0000)]
* posix/sys/types.h [!__GNUC_PREREQ (2, 7)] (int64_t, u_int64_t):

typedef to long int resp. unsigned long int on 64-bit arches.

18 years ago* sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Include x86_64
Roland McGrath [Tue, 28 Feb 2006 19:07:44 +0000 (19:07 +0000)]
* sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Include x86_64

umount.c rather than hppa umount.c.
* sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Include sh chown.c
rather than m68k chown.c.
* sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include sh
fchownat.c rather than m68k fchownat.c.
* sysdeps/unix/sysv/linux/sh/chown.c: Copy over from m68k chown.c.
* sysdeps/unix/sysv/linux/sh/fchownat.c: Copy over from m68k
fchownat.c.
* sysdeps/unix/sysv/linux/x86_64/brk.c: Copy over from hppa brk.c.
* sysdeps/unix/sysv/linux/x86_64/umount.c: Copy over from hppa
umount.c.

18 years ago* sysdeps/hppa: Directory removed, saved in ports repository.
Roland McGrath [Tue, 28 Feb 2006 10:18:39 +0000 (10:18 +0000)]
* sysdeps/hppa: Directory removed, saved in ports repository.

* sysdeps/mach/hppa: Likewise.
* sysdeps/mach/hurd/hppa: Likewise.
* sysdeps/unix/sysv/linux/hppa: Likewise.
* configure.in (machine): Remove hppa* cases.
* configure: Regenerated.
* shlib-versions: Remove hppa cases.

* sysdeps/m68k: Directory removed, saved in ports repository.
* sysdeps/unix/bsd/m68k: Likewise.
* sysdeps/unix/sysv/linux/m68k: Likewise.
* configure.in (machine): Remove m68* cases.
* configure: Regenerated.

18 years ago* elf/rtld-Rules (subdir-args): New variable.
Roland McGrath [Tue, 28 Feb 2006 09:57:07 +0000 (09:57 +0000)]
* elf/rtld-Rules (subdir-args): New variable.

(rtld-subdir-make): Use it.

18 years ago* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
Roland McGrath [Tue, 28 Feb 2006 09:34:41 +0000 (09:34 +0000)]
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h

(DO_CALL): Add support for 6 system call parameters.
(DECLARGS_6, ASMFMT_6): Define.
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.

18 years ago* sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Copy in i386/bits/fcntl.h.
Roland McGrath [Tue, 28 Feb 2006 08:39:43 +0000 (08:39 +0000)]
* sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Copy in i386/bits/fcntl.h.

18 years ago* scripts/config.guess: Update from master, timestamp='2006-02-27'.
Roland McGrath [Tue, 28 Feb 2006 07:54:15 +0000 (07:54 +0000)]
* scripts/config.guess: Update from master, timestamp='2006-02-27'.

* scripts/config.sub: Update from master, timestamp='2006-02-27'.