platform/upstream/glibc.git
19 years ago* sysdeps/unix/sysv/linux/Versions: Export Inotify_* syscalls.
Ulrich Drepper [Tue, 23 Aug 2005 14:33:08 +0000 (14:33 +0000)]
* sysdeps/unix/sysv/linux/Versions: Export Inotify_* syscalls.

19 years ago* stdlib/bits/stdlib.h (mbstowcs): Divide __bos (__dst) by
Ulrich Drepper [Mon, 22 Aug 2005 15:13:39 +0000 (15:13 +0000)]
* stdlib/bits/stdlib.h (mbstowcs): Divide __bos (__dst) by

sizeof (wchar_t) rather than multiplying __len by sizeof (wchar_t).
Pass __bos (__dst) / sizeof (wchar_t) to the *_chk routine.
* wcsmbs/bits/wchar2.h (mbsrtowcs, mbsnrtowcs): Likewise.
* debug/mbsnrtowcs_chk.c (__mbsnrtowcs_chk): Don't multiply
len by sizeof (wchar_t).
* debug/mbsrtowcs_chk.c (__mbsrtowcs_chk): Likewise.
* debug/mbstowcs_chk.c (__mbstowcs_chk): Likewise.
Fix type of SRC argument.  Pass &SRC rather than SRC to
__mbsrtowcs.
* debug/wcstombs_chk.c (__wcstombs_chk): Pass &SRC rather than SRC
to __wcsrtombs.
* debug/tst-chk1.c: Include assert.h.
(do_test): Change enough array from VLA into a fixed size array.
Assert that MB_CUR_MAX is <= sizeof (enough).  Use FAIL () macro
instead of print error details.  Add several new tests.
Kill some unused variable warnings.

19 years ago* resolv/res_send.c (Aerror): Fix printing IP address. cvs/fedora-glibc-20050822T0727
Ulrich Drepper [Mon, 22 Aug 2005 04:04:55 +0000 (04:04 +0000)]
* resolv/res_send.c (Aerror): Fix printing IP address.

19 years ago* resolv/res_send.c (send_vc): Pass correct sockaddr size to connect.
Ulrich Drepper [Sun, 21 Aug 2005 23:08:30 +0000 (23:08 +0000)]
* resolv/res_send.c (send_vc): Pass correct sockaddr size to connect.

19 years ago* sysdeps/ia64/fpu/libm_error.c (__libm_error_support): Don't abort.
Ulrich Drepper [Sat, 20 Aug 2005 01:22:05 +0000 (01:22 +0000)]
* sysdeps/ia64/fpu/libm_error.c (__libm_error_support): Don't abort.

2005-08-17  Robert Love  <rml@novell.com>

* sysdeps/unix/sysv/linux/sys/inotify.h: Add IN_MOVE_SELF event.

2005-08-19  Bruno Haible  <bruno@clisp.org>

* intl/localealias.c (read_alias_file): In case of failure, close the
file descriptor and sort the array before returning.

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

* malloc/Makefile: Link libmemusage.so with ld.so.
* malloc/memusage.c: Use atomic operations for all counter and size
 computations.  Handle thread stacks.
* sysdeps/generic/memusage.h: Define memusage_cntr_t and
memusage_size_t.
* sysdeps/i386/i686/memusage.h: New file.
* include/atomic.h: Define atomic_max and atomic_min.

* debug/tst-chk1.c: Add tests for mbstowcs and wcstombs.

19 years agoAdd tests for mbstowcs and wcstombs.
Ulrich Drepper [Sat, 20 Aug 2005 01:02:04 +0000 (01:02 +0000)]
Add tests for mbstowcs and wcstombs.

19 years ago[BZ #1075, BZ #1112]
Roland McGrath [Fri, 19 Aug 2005 19:07:25 +0000 (19:07 +0000)]
[BZ #1075, BZ #1112]

bz tags
[BZ #1075]
[BZ #1112]

19 years ago[BZ #1207]
Roland McGrath [Thu, 18 Aug 2005 06:42:31 +0000 (06:42 +0000)]
[BZ #1207]

2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
[BZ #1207]
* posix/regex.h: Remove spurious space-before-tab.  From gnulib.

19 years ago[BZ #1207]
Roland McGrath [Thu, 18 Aug 2005 06:42:25 +0000 (06:42 +0000)]
[BZ #1207]

2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
[BZ #1207]
* posix/regex.h: Remove spurious space-before-tab.  From gnulib.

19 years ago* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
Ulrich Drepper [Wed, 17 Aug 2005 06:17:34 +0000 (06:17 +0000)]
* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add

sys/inotify.h.
* sysdeps/unix/sysv/linux/sys/inotify.h: New file.
* sysdeps/unix/sysv/linux/syscalls.list: Add inotify syscalls.

19 years ago* nscd/cache.c (prune_cache): Add more debug output. Only for
Ulrich Drepper [Tue, 16 Aug 2005 22:47:26 +0000 (22:47 +0000)]
* nscd/cache.c (prune_cache): Add more debug output.  Only for

debug level 3 and higher and very verbose.

19 years ago* nscd/cache.c (prune_cache): Use stat64 not stat.
Ulrich Drepper [Tue, 16 Aug 2005 18:10:03 +0000 (18:10 +0000)]
* nscd/cache.c (prune_cache): Use stat64 not stat.

* nscd/connections.c (nscd_init): Likewise.

19 years ago[BZ #1188]
Ulrich Drepper [Tue, 16 Aug 2005 16:05:37 +0000 (16:05 +0000)]
[BZ #1188]

2005-08-10  Sergio Gelato  <Sergio.Gelato@astro.su.se>
[BZ #1188]
* nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Change assert check
from (len > 0) to (len >= 0).

2005-08-16  Ulrich Drepper  <drepper@redhat.com>

* nis/nis_xdr.c (_xdr_nis_result): Fix type of res variable.
Reported by Thomas Schwinge.

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

* nis/nis_subr.c (nis_leaf_of_r): Handle buflen == 0 correctly.

2005-08-16  Ulrich Drepper  <drepper@redhat.com>

* nss/getent.c (more_help): Use open_memstream instead of handling
memory allocation ourselves.

2005-08-16  Jay Fenlason  <fenlason@redhat.com>

* nss/getent.c (parse_options): change the -s option to support
{database}:{search} to override /etc/resolv.conf for only the
specified database.

19 years ago* nscd/connections.c (main_loop_epoll): Pass NULL as event
Ulrich Drepper [Tue, 9 Aug 2005 06:16:47 +0000 (06:16 +0000)]
* nscd/connections.c (main_loop_epoll): Pass NULL as event

argument for epoll_ctl(EPOLL_CTL_DEL) calls.

19 years ago* nscd/nscd_stat.c (receive_print_stats): Really print values of
Ulrich Drepper [Tue, 9 Aug 2005 05:46:16 +0000 (05:46 +0000)]
* nscd/nscd_stat.c (receive_print_stats): Really print values of

thread number, paranoia, and restart interval the server is using.

19 years ago* argp/argp-help.c: Use _IO_vasprintf instead of vasprintf.
Ulrich Drepper [Tue, 9 Aug 2005 01:27:20 +0000 (01:27 +0000)]
* argp/argp-help.c: Use _IO_vasprintf instead of vasprintf.

* include/stdio.h: Add libc_hidden_proto for __vfprintf_chk.
* debug/vfprintf_chk.c: Add libc_hidden_def.

19 years agoAdd libc_hidden_def.
Ulrich Drepper [Tue, 9 Aug 2005 01:24:11 +0000 (01:24 +0000)]
Add libc_hidden_def.

19 years ago* argp/argp-help.c (__argp_error): __asprintf -> vasprintf.
Roland McGrath [Tue, 9 Aug 2005 00:58:13 +0000 (00:58 +0000)]
* argp/argp-help.c (__argp_error): __asprintf -> vasprintf.

(__argp_failure): Likewise.

19 years ago2005-08-08 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 9 Aug 2005 00:58:08 +0000 (00:58 +0000)]
2005-08-08  Roland McGrath  <roland@redhat.com>

* argp/argp-help.c (__argp_error): __asprintf -> vasprintf.
(__argp_failure): Likewise.

19 years ago* nscd/cache.c (cache_add): Commit hash table and header to disk. cvs/fedora-glibc-20050808T2126
Ulrich Drepper [Mon, 8 Aug 2005 21:04:02 +0000 (21:04 +0000)]
* nscd/cache.c (cache_add): Commit hash table and header to disk.

19 years ago(cache_add): Comment hash table and header to disk.
Ulrich Drepper [Mon, 8 Aug 2005 20:58:35 +0000 (20:58 +0000)]
(cache_add): Comment hash table and header to disk.

19 years ago* mach/shortcut.awk: Ignore `weak_alias' lines.
Roland McGrath [Mon, 8 Aug 2005 20:53:35 +0000 (20:53 +0000)]
* mach/shortcut.awk: Ignore `weak_alias' lines.

Reported by Alfred M. Szmidt <ams@gnu.org>.

Reported by Alfred M. Szmidt <ams@gnu.org>.

19 years ago2005-08-05 Roland McGrath <roland@redhat.com>
Roland McGrath [Mon, 8 Aug 2005 20:52:23 +0000 (20:52 +0000)]
2005-08-05  Roland McGrath  <roland@redhat.com>

* mach/shortcut.awk: Ignore `weak_alias' lines.
Reported by Alfred M. Szmidt <ams@gnu.org>.

19 years ago* nscd/mem.c (mempool_alloc): Use posix_fallocate instead of ftruncate.
Ulrich Drepper [Mon, 8 Aug 2005 20:42:33 +0000 (20:42 +0000)]
* nscd/mem.c (mempool_alloc): Use posix_fallocate instead of ftruncate.

* nscd/connections.c (nscd_init): Likewise.

19 years ago* stdio-common/fxprintf.c: Include libioP.h.
Ulrich Drepper [Mon, 8 Aug 2005 20:06:29 +0000 (20:06 +0000)]
* stdio-common/fxprintf.c: Include libioP.h.

19 years ago* posix/bits/unistd.h (confstr, getgroups, ttyname_r, gethostname,
Ulrich Drepper [Mon, 8 Aug 2005 19:04:11 +0000 (19:04 +0000)]
* posix/bits/unistd.h (confstr, getgroups, ttyname_r, gethostname,

getdomainname): Add __NTH.
* stdlib/bits/stdlib.h (ptsname_r, wctomb, mbstowcs, wcstombs):
Likewise.
(realpath): Likewise.  Use __const instead of const.  Add __restrict
keywords.
* socket/bits/socket2.h (recvfrom): Add __restrict keyword to __buf.
* wcsmbs/bits/wchar2.h (wmemcpy, wmemmove, wmempcpy, wmemset,
wcscpy, wcpcpy, wcsncpy, wcpncpy, wcscat, wcsncat, vswprintf, wcrtomb,
mbsrtowcs, wcsrtombs, mbsnrtowcs, wcsnrtombs): Add __NTH.
* string/bits/string3.h (__memset_ichk): Likewise.
(__memcpy_ichk, __memmove_ichk, __mempcpy_ichk, __strcpy_ichk,
__stpcpy_ichk, __strncpy_ichk, stpncpy, __strcat_ichk,
__strncat_ichk): Likewise.  Use __const instead of const.
(__stpncpy_chk): Use __const instead of const.
(__stpncpy_alias): Use __REDIRECT_NTH instead of __REDIRECT.

2005-08-08  Ulrich Drepper  <drepper@redhat.com>
    Jakub Jelinek  <jakub@redhat.com>

* nscd/mem.c (BLOCK_ALIGN_LOG, BLOCK_ALIGN, BLOCK_ALIGN_M1): Move
definitions to...
* nscd/nscd.h (BLOCK_ALIGN_LOG, BLOCK_ALIGN, BLOCK_ALIGN_M1): ...here.
* nscd/connections.c (usekey): New enum.
(check_use, verify_persistent_db): New functions.
(nscd_init): If persistent database is corrupted, unlink it and
recreate rather than falling back to non-persistent database.
Call verify_persistent_db.  Avoid overflows in total computation.

2005-08-08  Ulrich Drepper  <drepper@redhat.com>

* iconvdata/utf-16.c (PREPARE_LOOP): Minor cleanups to make code
better readable.  Avoid passing var to loop function, it's not
necessary at all.

19 years ago* elf/elf.h (DT_ALPHA_PLTRO): Use symbolic name in DT_ALPHA_PLTRO
Ulrich Drepper [Sun, 7 Aug 2005 07:55:10 +0000 (07:55 +0000)]
* elf/elf.h (DT_ALPHA_PLTRO): Use symbolic name in DT_ALPHA_PLTRO

definition.

19 years ago* timezone/checktab.awk: Update from tzcode2005k.
Ulrich Drepper [Sat, 6 Aug 2005 06:02:23 +0000 (06:02 +0000)]
* timezone/checktab.awk: Update from tzcode2005k.

* timezone/private.h: Likewise.
* timezone/scheck.c: Likewise.
* timezone/tzselect.ksh: Likewise.
* timezone/zdump.c: Likewise.
* timezone/zic.c: Likewise.
* timezone/africa: Update from tzdata2005k.
* timezone/antarctica: Likewise.
* timezone/asia: Likewise.
* timezone/australasia: Likewise.
* timezone/europe: Likewise.
* timezone/iso3166.tab: Likewise.
* timezone/leapseconds: Likewise.
* timezone/northamerica: Likewise.
* timezone/solar87: Likewise.
* timezone/solar88: Likewise.
* timezone/solar89: Likewise.
* timezone/southamerica: Likewise.
* timezone/zone.tab: Likewise.

19 years agoUpdate from tzcode2005k.
Ulrich Drepper [Sat, 6 Aug 2005 05:40:57 +0000 (05:40 +0000)]
Update from tzcode2005k.

19 years ago* sysdeps/mach/hurd/mig-reply.c (reply_port): Don't use ?: as lvalue.
Roland McGrath [Fri, 5 Aug 2005 21:16:35 +0000 (21:16 +0000)]
* sysdeps/mach/hurd/mig-reply.c (reply_port): Don't use ?: as lvalue.

19 years ago[BZ #1137]
Roland McGrath [Thu, 4 Aug 2005 21:35:51 +0000 (21:35 +0000)]
[BZ #1137]

2005-08-03  Dwayne Grant McConnell  <dgm69@us.ibm.com>
* sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s):
Use +=, not =, to append.  Remove duplicate flags.
* sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
Likewise.  Fix comments.

[BZ #1137]

19 years ago[BZ #413, BZ #448]
Roland McGrath [Wed, 3 Aug 2005 07:44:12 +0000 (07:44 +0000)]
[BZ #413, BZ #448]

bz tag
[BZ #448]
[BZ #413]

19 years ago[BZ #1137, BZ #1138]
Roland McGrath [Tue, 2 Aug 2005 03:29:01 +0000 (03:29 +0000)]
[BZ #1137, BZ #1138]

bz tags
[BZ #1138]
[BZ #1138]
[BZ #1137]

19 years ago* sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Restart system
Ulrich Drepper [Mon, 1 Aug 2005 19:27:50 +0000 (19:27 +0000)]
* sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Restart system

call if it returned EINTR.

19 years agohelper variable into .data.rel.ro. Simplify the code. Extend
Ulrich Drepper [Sun, 31 Jul 2005 17:50:49 +0000 (17:50 +0000)]
helper variable into .data.rel.ro.  Simplify the code.  Extend

comment to explain prelinking.

19 years agohelper variable into .data.rel.ro. Remove unnecessary label.
Ulrich Drepper [Sun, 31 Jul 2005 16:44:38 +0000 (16:44 +0000)]
helper variable into .data.rel.ro. Remove unnecessary label.

19 years ago* sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Move
Ulrich Drepper [Sun, 31 Jul 2005 16:31:24 +0000 (16:31 +0000)]
* sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Move

helper variable into .data.rel.ro.

19 years ago(elf_machine_load_address): Move helper variable into .data.rel.ro.
Ulrich Drepper [Sun, 31 Jul 2005 16:28:55 +0000 (16:28 +0000)]
(elf_machine_load_address): Move helper variable into .data.rel.ro.

19 years agoUpdate.
Andreas Jaeger [Sun, 31 Jul 2005 15:56:45 +0000 (15:56 +0000)]
Update.

2005-07-31  Andreas Jaeger  <aj@suse.de>

* include/bits/syslog.h: New file.

19 years agoNew file needed since we have misc/bits/syslog.h.
Andreas Jaeger [Sun, 31 Jul 2005 15:56:33 +0000 (15:56 +0000)]
New file needed since we have misc/bits/syslog.h.

19 years ago* elf/dl-load.c [__WORDSIZE==64] (FILEBUF_SIZE): Adjust the value
Ulrich Drepper [Sat, 30 Jul 2005 21:15:22 +0000 (21:15 +0000)]
* elf/dl-load.c [__WORDSIZE==64] (FILEBUF_SIZE): Adjust the value

up.  We have more program header entries now and the note section
was normally not loaded.

19 years ago* nis/nis_subr.c: Some minor code cleanups.
Ulrich Drepper [Sat, 30 Jul 2005 19:37:11 +0000 (19:37 +0000)]
* nis/nis_subr.c: Some minor code cleanups.

19 years ago* misc/bits/syslog.h: New file.
Ulrich Drepper [Sat, 30 Jul 2005 06:00:43 +0000 (06:00 +0000)]
* misc/bits/syslog.h: New file.

* misc/sys/syslog.h: Include <bits/syslog.h> for fortification.
* misc/Makefile (headers): Add bits/syslog.h.
* include/sys/syslog.h: Add __vsyslog_chk prototype and hidden_proto.
* sysdeps/generic/syslog.c: Change vsyslog function to __vsyslog_chk.
Call __vfprintf_chk if necessary.  Make vsyslog a wrapper.  Add
__syslog_chk.
* misc/Versions: Export __syslog_chk and __vsyslog_chk.

* nis/nis_xdr.c: Help gcc to avoid generating unnecessary wrapper
functions.

19 years agoFortification definitions for syslog functions.
Ulrich Drepper [Sat, 30 Jul 2005 05:56:45 +0000 (05:56 +0000)]
Fortification definitions for syslog functions.

19 years ago* misc/error.c [_LIBC]: Include <stdbool.h> and <stdint.h>. cvs/fedora-glibc-20050729T1531
Roland McGrath [Thu, 28 Jul 2005 21:42:42 +0000 (21:42 +0000)]
* misc/error.c [_LIBC]: Include <stdbool.h> and <stdint.h>.

19 years ago2005-07-28 Thomas Schwinge <schwinge@nic-nac-project.de>
Roland McGrath [Thu, 28 Jul 2005 21:42:37 +0000 (21:42 +0000)]
2005-07-28  Thomas Schwinge  <schwinge@nic-nac-project.de>

* misc/error.c [_LIBC]: Include <stdbool.h> and <stdint.h>.

19 years ago* nis/nis_xdr.c: Help gcc to generate unnecessary wrapper functions.
Ulrich Drepper [Thu, 28 Jul 2005 16:30:20 +0000 (16:30 +0000)]
* nis/nis_xdr.c: Help gcc to generate unnecessary wrapper functions.

19 years ago* stdio-common/fxprintf.c (__fxprintf): Add INTUSE to _IO_vfprintf
Ulrich Drepper [Thu, 28 Jul 2005 14:51:03 +0000 (14:51 +0000)]
* stdio-common/fxprintf.c (__fxprintf): Add INTUSE to _IO_vfprintf

call.
* gmon/gmon.c (write_gmon): Use __snprintf rather than snprintf.

19 years ago* nis/nis_file.c: Rewrite the two pairs of functions into wrappers
Ulrich Drepper [Thu, 28 Jul 2005 07:10:28 +0000 (07:10 +0000)]
* nis/nis_file.c: Rewrite the two pairs of functions into wrappers

around a pair of new, generalized functions.  22% size reduction.

19 years ago* nis/nis_xdr.c: Remove unnecessary cast which might hide bugs.
Ulrich Drepper [Thu, 28 Jul 2005 06:27:35 +0000 (06:27 +0000)]
* nis/nis_xdr.c: Remove unnecessary cast which might hide bugs.

Rearrange code.  This reduces the code size 10%.

19 years ago* locales/hu_HU: Better collation.
Ulrich Drepper [Tue, 26 Jul 2005 16:10:19 +0000 (16:10 +0000)]
* locales/hu_HU: Better collation.

Patch by Gyuro Lehel <lehel@freemail.hu>.

19 years agoBetter collation.
Ulrich Drepper [Tue, 26 Jul 2005 16:08:46 +0000 (16:08 +0000)]
Better collation.

19 years ago* misc/error.c (error_tail): Fix a comment typo.
Roland McGrath [Tue, 26 Jul 2005 08:42:58 +0000 (08:42 +0000)]
* misc/error.c (error_tail): Fix a comment typo.

19 years ago2005-07-26 Jakub Jelinek <jakub@redhat.com>
Roland McGrath [Tue, 26 Jul 2005 08:42:53 +0000 (08:42 +0000)]
2005-07-26  Jakub Jelinek  <jakub@redhat.com>

* misc/error.c (error_tail): Fix a comment typo.

19 years ago* po/zh_TW.po: Update from translation team.
Ulrich Drepper [Tue, 26 Jul 2005 04:04:13 +0000 (04:04 +0000)]
* po/zh_TW.po: Update from translation team.

19 years ago* debug/mbstowcs_chk.c: New file.
Ulrich Drepper [Mon, 25 Jul 2005 21:41:45 +0000 (21:41 +0000)]
* debug/mbstowcs_chk.c: New file.

* debug/wcstombs_chk.c: New file.
* debug/Makefile (routines): Add mbstowcs_chk and wcstombs_chk.
* debug/Versions: Add __mbstowcs_chk and __wcstombs_chk.
* stdlib/bits/stdlib.h: Add definitions for mbstowcs and wcstombs.

* wcsmbs/bits/wchar2.h (mbsrtowcs): Pretty printing.

* string/test-memset.c (test_main): Use negative byte value in

19 years ago* string/test-memset.c (test_main): Use negative byte value is cvs/fedora-glibc-20050725T0627
Ulrich Drepper [Mon, 25 Jul 2005 01:40:59 +0000 (01:40 +0000)]
* string/test-memset.c (test_main): Use negative byte value is

test.

19 years agoAdd a few casts to avoid warnings.
Ulrich Drepper [Sun, 24 Jul 2005 23:09:17 +0000 (23:09 +0000)]
Add a few casts to avoid warnings.

19 years ago* string/test-memset.c (do_one_test): Compare effect of call, not
Ulrich Drepper [Sun, 24 Jul 2005 23:08:03 +0000 (23:08 +0000)]
* string/test-memset.c (do_one_test): Compare effect of call, not

only return value.

Add a few cassts to avoid warnings.

19 years ago(do_one_test): Compare effect of call, not only return value.
Ulrich Drepper [Sun, 24 Jul 2005 23:06:44 +0000 (23:06 +0000)]
(do_one_test): Compare effect of call, not only return value.

Add a few cassts to avoid warnings.

19 years ago* sysdeps/sh/memset.S (memset): Correct 2nd argument handling.
Roland McGrath [Sun, 24 Jul 2005 22:54:37 +0000 (22:54 +0000)]
* sysdeps/sh/memset.S (memset): Correct 2nd argument handling.

19 years agotypo
Roland McGrath [Sun, 24 Jul 2005 21:47:52 +0000 (21:47 +0000)]
typo

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

19 years ago[BZ #1125]
Roland McGrath [Sun, 24 Jul 2005 21:44:32 +0000 (21:44 +0000)]
[BZ #1125]

bz tag
[BZ #1125]

19 years ago[BZ #1125]
Ulrich Drepper [Sun, 24 Jul 2005 21:41:49 +0000 (21:41 +0000)]
[BZ #1125]

* posix/Makefile (tests): Add tst-execvp4.
* posix/tst-execvp4.c: New file.

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

[BZ #1125]
* posix/execvp.c (execvp): Change path_malloc to
char *, free that pointer on failure.

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

19 years ago* wcsmbs/Makefile: Add rules to build and run tst-wchar-h.
Ulrich Drepper [Sun, 24 Jul 2005 20:03:14 +0000 (20:03 +0000)]
* wcsmbs/Makefile: Add rules to build and run tst-wchar-h.

* wcsmbs/tst-wchar-h.c: New file.

19 years ago* wcsmbs/bits/wchar2.h: Use __FILE not FILE.
Ulrich Drepper [Sun, 24 Jul 2005 19:52:01 +0000 (19:52 +0000)]
* wcsmbs/bits/wchar2.h: Use __FILE not FILE.

* stdio-common/fxprintf.c (__fxprintf): Define variable more local.

19 years ago* stdio-common/fxprintf.c (__fxprintf): Declare functions more local.
Ulrich Drepper [Fri, 22 Jul 2005 15:12:23 +0000 (15:12 +0000)]
* stdio-common/fxprintf.c (__fxprintf): Declare functions more local.

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

* wcsmbs/bits/wchar2.h (__vfwprintf_chk, __vwprintf_chk): Use
__gnuc_va_list rather than _G_va_list.

19 years ago(__vfwprintf_chk, __vwprintf_chk): Use __gnuc_va_list rather than _G_va_list.
Ulrich Drepper [Fri, 22 Jul 2005 15:06:27 +0000 (15:06 +0000)]
(__vfwprintf_chk, __vwprintf_chk): Use __gnuc_va_list rather than _G_va_list.

19 years ago[BZ #869]
Roland McGrath [Fri, 22 Jul 2005 07:10:10 +0000 (07:10 +0000)]
[BZ #869]

2005-07-22  Roland McGrath  <roland@redhat.com>
[BZ #869]
* Makerules ($(objpfx)stubs): Fix last change.

19 years ago* nscd/Makefile ($(objpfx)nscd): Pass $(nscd-cflags) to $(LINK.o).
Roland McGrath [Fri, 22 Jul 2005 05:35:27 +0000 (05:35 +0000)]
* nscd/Makefile ($(objpfx)nscd): Pass $(nscd-cflags) to $(LINK.o).

19 years ago* stdlib/Makefile (headers): Move bits/wchar.h to ... cvs/fedora-glibc-20050722T0433
Roland McGrath [Fri, 22 Jul 2005 04:25:52 +0000 (04:25 +0000)]
* stdlib/Makefile (headers): Move bits/wchar.h to ...

* wcsmbs/Makefile (headers): ... here.  Add bits/wchar2.h too.

19 years ago2005-07-21 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 22 Jul 2005 04:25:47 +0000 (04:25 +0000)]
2005-07-21  Roland McGrath  <roland@redhat.com>

* stdlib/Makefile (headers): Move bits/wchar.h to ...
* wcsmbs/Makefile (headers): ... here.  Add bits/wchar2.h too.

19 years ago* wcsmbs/bits/wchar2.h (swprintf): Remove format argument.
Ulrich Drepper [Thu, 21 Jul 2005 16:23:54 +0000 (16:23 +0000)]
* wcsmbs/bits/wchar2.h (swprintf): Remove format argument.

* debug/tst-chk1.c (do_test): Add test for swprintf with format
being the last argument.

2005-07-21  Thorsten Kukuk  <kukuk@suse.de>

* debug/getgroups_chk.c (__getgroups_chk): Fix return value.

* stdio-common/fxprintf.c: Include string.h.

19 years ago* sysdeps/x86_64/fpu/libm-test-ulps: Adjust expected atan2f results. cvs/fedora-glibc-20050721T0814
Ulrich Drepper [Wed, 20 Jul 2005 18:20:48 +0000 (18:20 +0000)]
* sysdeps/x86_64/fpu/libm-test-ulps: Adjust expected atan2f results.

* sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
* sysdeps/s390/fpu/libm-test-ulps: Likewise.

            Darin Petkov  <darin@tensilica.com>

19 years ago2005-07-20 Bob Wilson <bob.wilson@acm.org>
Ulrich Drepper [Wed, 20 Jul 2005 18:02:49 +0000 (18:02 +0000)]
2005-07-20  Bob Wilson  <bob.wilson@acm.org>

            Darin Petkov <darin@tensilica.com>

* sysdeps/ieee754/flt-32/e_atan2f.c (pi_lo): Correct exponent value.

19 years ago* include/stdio.h (__fxprintf): Remove wfmt argument.
Ulrich Drepper [Wed, 20 Jul 2005 17:51:14 +0000 (17:51 +0000)]
* include/stdio.h (__fxprintf): Remove wfmt argument.

* stdio-common/fxprintf.c: Include assert.h, ctype.h and wchar.h.
(__fxprintf): Remove wfmt argument, create wfmt format string on
the fly from fmt.
* argp/argp-fmtstream.c: Adjust all __fxprintf callers.
* argp/argp-help.c: Likewise.
* assert/assert-perr.c: Likewise.
* assert/assert.c: Likewise.
* gmon/gmon.c: Likewise.
* inet/rcmd.c: Likewise.
* malloc/obstack.c: Likewise.
* misc/error.c: Likewise.
* misc/getpass.c: Likewise.
* posix/getopt.c: Likewise.
* resolv/res_hconf.c: Likewise.
* stdio-common/perror.c: Likewise.
* stdio-common/psignal.c: Likewise.
* stdlib/fmtmsg.c: Likewise.
* sunrpc/auth_unix.c: Likewise.
* sunrpc/clnt_perr.c: Likewise.
* sunrpc/clnt_tcp.c: Likewise.
* sunrpc/clnt_udp.c: Likewise.
* sunrpc/clnt_unix.c: Likewise.
* sunrpc/svc_simple.c: Likewise.
* sunrpc/svc_tcp.c: Likewise.
* sunrpc/svc_udp.c: Likewise.
* sunrpc/svc_unix.c: Likewise.
* sunrpc/xdr.c: Likewise.
* sunrpc/xdr_array.c: Likewise.
* sunrpc/xdr_rec.c: Likewise.
* sunrpc/xdr_ref.c: Likewise.
* sysdeps/generic/wordexp.c: Likewise.

19 years ago* wcsmbs/bits/wchar2.h: Add definitions for wcrtomb, mbsrtowcs,
Ulrich Drepper [Wed, 20 Jul 2005 07:43:27 +0000 (07:43 +0000)]
* wcsmbs/bits/wchar2.h: Add definitions for wcrtomb, mbsrtowcs,

wcsrtombs, mbsnrtowcs, and wcsnrtombs.
* debug/Makefile (routines): Add wcrtomb_chk, mbsrtowcs_chk,
wcsrtombs_chk, mbsnrtowcs_chk, and wcsnrtombs_chk.
* debug/Versions: Add __wcrtomb_chk, __mbsrtowcs_chk,
__wcsrtombs_chk, __mbsnrtowcs_chk, and __wcsnrtombs_chk.
* debug/tst-chk1.c: Add tests for new functions.
* debug/mbsnrtowcs_chk.c: New file.
* debug/mbsrtowcs_chk.c: New file.
* debug/wcrtomb_chk.c: New file.
* debug/wcsnrtombs_chk.c: New file.
* debug/wcsrtombs_chk.c: New file.

* include/stdio.h: Add declaration for __fxprintf.

19 years ago* stdio-common/Makefile (aux): Add fxprintf.
Ulrich Drepper [Tue, 19 Jul 2005 23:46:55 +0000 (23:46 +0000)]
* stdio-common/Makefile (aux): Add fxprintf.

* stdio-common/fxprintf.c: New file.
* include/stdio.h: Add declaration for stdio.h.
* argp/argp-fmtstream.c: Use __fxprintf instead of inline stream
orientation test and two separate function calls.
* argp/argp-help.c: Likewise.
* assert/assert-perr.c: Likewise.
* assert/assert.c: Likewise.
* gmon/gmon.c: Likewise.
* inet/rcmd.c: Likewise.
* malloc/obstack.c: Likewise.
* misc/error.c: Likewise.
* misc/getpass.c: Likewise.
* posix/getopt.c: Likewise.
* resolv/res_hconf.c: Likewise.
* stdio-common/perror.c: Likewise.
* stdio-common/psignal.c: Likewise.
* stdlib/fmtmsg.c: Likewise.
* sunrpc/auth_unix.c: Likewise.
* sunrpc/clnt_perr.c: Likewise.
* sunrpc/clnt_tcp.c: Likewise.
* sunrpc/clnt_udp.c: Likewise.
* sunrpc/clnt_unix.c: Likewise.
* sunrpc/svc_simple.c: Likewise.
* sunrpc/svc_tcp.c: Likewise.
* sunrpc/svc_udp.c: Likewise.
* sunrpc/svc_unix.c: Likewise.
* sunrpc/xdr.c: Likewise.
* sunrpc/xdr_array.c: Likewise.
* sunrpc/xdr_rec.c: Likewise.
* sunrpc/xdr_ref.c: Likewise.
* sysdeps/generic/wordexp.c: Likewise.

* misc/Makefile: Add rules to build and run tst-error1.
* misc/tst-error1.c: New file.
* misc/error.c: Fix memory leak and possibly endless loop.

19 years ago* configure.in: Check for -fstack-protector gcc option.
Ulrich Drepper [Tue, 19 Jul 2005 15:35:50 +0000 (15:35 +0000)]
* configure.in: Check for -fstack-protector gcc option.

* config.make.in (have-ssp): Add template.
* nscd/Makefile (nscd-cflags): Add -fstack-protector if supported.

* nscd/nscd.c (main): Don't ignore result of chdir call.

19 years ago(main): Don't ignore result of chdir call.
Ulrich Drepper [Tue, 19 Jul 2005 15:30:46 +0000 (15:30 +0000)]
(main): Don't ignore result of chdir call.

19 years ago[BZ #869, BZ #1113]
Roland McGrath [Tue, 19 Jul 2005 03:55:04 +0000 (03:55 +0000)]
[BZ #869, BZ #1113]

2005-07-18  Roland McGrath  <roland@redhat.com>
[BZ #869]
* Makerules ($(objpfx)stubs): Do cd into $(objdir) to reduce size of
objdump command line.

[BZ #1113]

19 years ago[BZ #869]
Roland McGrath [Tue, 19 Jul 2005 03:54:55 +0000 (03:54 +0000)]
[BZ #869]

2005-07-18  Roland McGrath  <roland@redhat.com>
[BZ #869]
* Makerules ($(objpfx)stubs): Do cd into $(objdir) to reduce size of
objdump command line.

19 years ago* nscd/Makefile (nscd-cflags): Add _FORTIFY_SOURCE.
Ulrich Drepper [Mon, 18 Jul 2005 22:28:46 +0000 (22:28 +0000)]
* nscd/Makefile (nscd-cflags): Add _FORTIFY_SOURCE.

* nscd/connections.c: Fix a few wur warnings.

19 years ago* nscd/grpcache.c (cache_addgr): Use correct maximum for group ID
Ulrich Drepper [Mon, 18 Jul 2005 21:07:28 +0000 (21:07 +0000)]
* nscd/grpcache.c (cache_addgr): Use correct maximum for group ID

length.  Patch by Ivan Gyurdiev <ivg2@cornell.edu>.

* debug/confstr_chk.c: New file.
* debug/getdomainname_chk.c: New file.
* debug/getgroups_chk.c: New file.
* debug/gethostname_chk.c: New file.
* debug/getlogin_r_chk.c: New file.
* debug/ttyname_r_chk.c: New file.
* posix/bits/unistd.h: Add definitions for new debug versions.
* debug/tst-chk1.c: Add tests for new functions.
* debug/Versions: Export new functions.
* debug/Makefile (routines): Add new files.

* stdlib/bits/stdlib.h: Fix typo.

* manual/Makefile (libc/index.html): Depend on dir-add.texi.

19 years agoFix typo.
Ulrich Drepper [Mon, 18 Jul 2005 20:53:13 +0000 (20:53 +0000)]
Fix typo.

19 years ago[BZ #1104, BZ #1105, BZ #1106, BZ #1107, BZ #1108, BZ #1109, BZ #1110, BZ #1111]
Roland McGrath [Mon, 18 Jul 2005 04:15:35 +0000 (04:15 +0000)]
[BZ #1104, BZ #1105, BZ #1106, BZ #1107, BZ #1108, BZ #1109, BZ #1110, BZ #1111]

BZ tags
[BZ #1106]
[BZ #1106]
[BZ #1111]
[BZ #1109]
[BZ #1106]
[BZ #1104]
[BZ #1106]
[BZ #1105]
[BZ #1110]
[BZ #1110]
[BZ #1107]
[BZ #1108]

19 years ago[BZ #549, BZ #653, BZ #1079, BZ #1080, BZ #1081, BZ #1082, BZ #1083, BZ #1085, BZ...
Roland McGrath [Mon, 18 Jul 2005 03:26:39 +0000 (03:26 +0000)]
[BZ #549, BZ #653, BZ #1079, BZ #1080, BZ #1081, BZ #1082, BZ #1083, BZ #1085, BZ #1086, BZ #1087, BZ #1088, BZ #1090, BZ #1093, BZ #1094, BZ #1095, BZ #1096, BZ #1097, BZ #1098, BZ #1099, BZ #1100, BZ #1101, BZ #1103]

BZ tags
[BZ #1079]
[BZ #1080]
[BZ #1101]
[BZ #1097]
[BZ #653]
[BZ #1088]
[BZ #1088]
[BZ #1085]
[BZ #1096]
[BZ #1086]
[BZ #1086]
[BZ #1086]
[BZ #1083]
[BZ #1093]
[BZ #1094]
[BZ #1081]
[BZ #1090]
[BZ #1082]
[BZ #1087]
[BZ #1098]
[BZ #549]
[BZ #1101]
[BZ #1095]
[BZ #1100]
[BZ #1103]
[BZ #1100]
[BZ #1099]

19 years ago * manual/Makefile (libc/index.html): Depend on dir-add.texi.
Roland McGrath [Mon, 18 Jul 2005 00:05:08 +0000 (00:05 +0000)]
    * manual/Makefile (libc/index.html): Depend on dir-add.texi.

19 years ago2005-07-13 Thorsten Kukuk <kukuk@suse.de>
Roland McGrath [Mon, 18 Jul 2005 00:04:52 +0000 (00:04 +0000)]
2005-07-13  Thorsten Kukuk  <kukuk@suse.de>

        * manual/Makefile (libc/index.html): Add dir-add.texi.

19 years ago2005-07-13 Thorsten Kukuk <kukuk@suse.de>
Roland McGrath [Mon, 18 Jul 2005 00:04:48 +0000 (00:04 +0000)]
2005-07-13  Thorsten Kukuk  <kukuk@suse.de>

        * manual/Makefile (libc/index.html): Add dir-add.texi.

19 years ago* stdlib/bits/stdlib.h: Use __REDIRECT_NTH instead of __REDIRECT
Ulrich Drepper [Sat, 16 Jul 2005 05:59:07 +0000 (05:59 +0000)]
* stdlib/bits/stdlib.h: Use __REDIRECT_NTH instead of __REDIRECT

* wcsmbs/bits/wchar2.h: Likewise.

19 years ago* wcsmbs/bits/wchar2.h: Use __REDIRECT_NTH instead of __REDIRECT
Ulrich Drepper [Fri, 15 Jul 2005 23:50:29 +0000 (23:50 +0000)]
* wcsmbs/bits/wchar2.h: Use __REDIRECT_NTH instead of __REDIRECT

where necessary.

19 years agoPretty printing.
Ulrich Drepper [Fri, 15 Jul 2005 14:48:49 +0000 (14:48 +0000)]
Pretty printing.

19 years agoUpdate.
Andreas Jaeger [Fri, 15 Jul 2005 10:49:02 +0000 (10:49 +0000)]
Update.

2005-07-15  Andreas Jaeger  <aj@suse.de>

* debug/Makefile (tst-lfschk3-ENV): New, set locale.
(tst-lfschk2-ENV): New.
(tst-lfschk1-ENV): New.
(tst-chk3-ENV): New.
(tst-chk2-ENV): New.
(tst-chk1-ENV): New.

* include/stdlib.h: Remove malloc attribute from __posix_memalign.
* stdlib/stdlib.h: Likewise.

19 years ago* include/stdlib.h: Remove malloc attribute from __posix_memalign.
Andreas Jaeger [Fri, 15 Jul 2005 10:47:20 +0000 (10:47 +0000)]
* include/stdlib.h: Remove malloc attribute from __posix_memalign.

* stdlib/stdlib.h: Likewise.

19 years ago* wcsmbs/bits/wchar2.h: New file.
Ulrich Drepper [Fri, 15 Jul 2005 10:32:45 +0000 (10:32 +0000)]
* wcsmbs/bits/wchar2.h: New file.

* include/bits/wchar2.h: New file.
* wcsmbs/wchar.h: Include <bits/wchar2.h> if fortification is
requested.
* wcsmbs/wcsncpy.c: Add __wcsncpy alias.
* string/bits/string3.h: Add fortified stpncpy definitions.
* sysdeps/generic/stpncpy_chk.c: New file.
* libio/vswprintf.c: Move _IO_wstrnfile definition to strfile.h.
Export _IO_wstrn_jumps.
* libio/strfile.h: Define _IO_wstrnfile and declare _IO_wstrn_jumps.
* include/wchar.h: Declare __wcsncpy and __vswprintf_chk.
* debug/fgetws_chk.c: New file.
* debug/fgetws_u_chk.c: New file.
* debug/fwprintf_chk.c: New file.
* debug/swprintf_chk.c: New file.
* debug/vfwprintf_chk.c: New file.
* debug/vswprintf_chk.c: New file.
* debug/vwprintf_chk.c: New file.
* debug/wcpcpy_chk.c: New file.
* debug/wcpncpy_chk.c: New file.
* debug/wcscat_chk.c: New file.
* debug/wcscpy_chk.c: New file.
* debug/wcsncat_chk.c: New file.
* debug/wcsncpy_chk.c: New file.
* debug/wmemcpy_chk.c: New file.
* debug/wmemmove_chk.c: New file.
* debug/wmempcpy_chk.c: New file.
* debug/wmemset_chk.c: New file.
* debug/wprintf_chk.c: New file.
* debug/tst-chk1.c: Add tests for new functions.
* debug/Versions: Export new functions.
* debug/Makefile (routines): Add new functions.

19 years ago* nscd/nscd_helper.c: Add a few __builtin_expect.
Ulrich Drepper [Thu, 14 Jul 2005 02:53:33 +0000 (02:53 +0000)]
* nscd/nscd_helper.c: Add a few __builtin_expect.

19 years ago* nscd/connections.c (send_ro_fd): Make sure BUF is aligned correctly.
Ulrich Drepper [Thu, 14 Jul 2005 02:17:58 +0000 (02:17 +0000)]
* nscd/connections.c (send_ro_fd): Make sure BUF is aligned correctly.

19 years ago* nscd/nscd_helper.c (wait_on_socket): New function.
Ulrich Drepper [Wed, 13 Jul 2005 22:47:24 +0000 (22:47 +0000)]
* nscd/nscd_helper.c (wait_on_socket): New function.

(get_mapping): Use wait_on_socket instead of poll.  The former handles
EINTR of poll correctly.
(__nscd_open_socket): Likewise.
(get_mapping): Make sure BUF is aligned correctly.
(get_mapping): Use munmap on correct pointer.

19 years ago* include/libc-symbols.h: Define macros for librt hidden symbols.
Ulrich Drepper [Wed, 13 Jul 2005 06:26:17 +0000 (06:26 +0000)]
* include/libc-symbols.h: Define macros for librt hidden symbols.

* include/time.h: Add librt_hidden_proto definition for clock_gettime.
* sysdeps/generic/clock_gettime.c: Add librt_hidden_def.
* sysdeps/unix/clock_gettime.c: Likewise.