]> git.ipfire.org Git - thirdparty/glibc.git/log
thirdparty/glibc.git
18 years ago2007-05-21 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:23:22 +0000 (15:23 +0000)] 
2007-05-21  Jakub Jelinek  <jakub@redhat.com>

* tst-robust9.c (do_test): Don't fail if ENABLE_PI and
pthread_mutex_init failed with ENOTSUP.

2007-05-17  Ulrich Drepper  <drepper@redhat.com>

[BZ #4512]
* pthread_mutex_lock.c: Preserve FUTEX_WAITERS bit when dead owner
is detected.
* pthread_mutex_timedlock.c: Likewise.
* pthread_mutex_trylock.c: Likewise.
Patch in part by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.

* Makefile (tests): Add tst-robust9 and tst-robustpi9.
* tst-robust9.c: New file.
* tst-robustpi9.c: New file.

18 years ago2007-05-10 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:22:47 +0000 (15:22 +0000)] 
2007-05-10  Ulrich Drepper  <drepper@redhat.com>

* include/sys/cdefs.h: Redefine __nonnull so that test for
incorrect parameters in the libc code itself are not omitted.

18 years ago2007-05-07 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:22:37 +0000 (15:22 +0000)] 
2007-05-07  Ulrich Drepper  <drepper@redhat.com>
    Jakub Jelinek  <jakub@redhat.com>

* malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
(new_heap): Initialize mprotect_size.
(grow_heap): When growing, only mprotect from mprotect_size till
new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.

18 years ago2007-05-07 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:22:08 +0000 (15:22 +0000)] 
2007-05-07  Ulrich Drepper  <drepper@redhat.com>

* locales/as_IN: Fix currency_symbol, abday for Sunday, abmon for
January, February, and September to December, mon for January,
February, September, and December, am_pm, and name_*.
Patch by Amitakhya Phukan <aphukan@redhat.com>.

18 years ago2007-05-07 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:21:44 +0000 (15:21 +0000)] 
2007-05-07  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/lowlevelrobustlock.c
(__lll_robust_lock_wait): Fix race caused by reloading of futex value.
(__lll_robust_timedlock_wait): Likewise.
Reported by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>.

18 years ago2007-05-06 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:21:13 +0000 (15:21 +0000)] 
2007-05-06  Ulrich Drepper  <drepper@redhat.com>

* stdio-common/vfprintf.c (process_string_arg): Optimize
ridiculous precision in wide char code printing multi-byte string.
Reported by Jim Meyering <jim@meyering.net>.

18 years ago2007-05-06 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:19:59 +0000 (15:19 +0000)] 
2007-05-06  Ulrich Drepper  <drepper@redhat.com>

[BZ #4465]
* posix/unistd.h: Remove __THROW from fdatasync.

2007-05-06  Mike Frysinger  <vapier@gentoo.org>

[BZ #4465]
* sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.

[BZ #4465]
* tst-cancel-wrappers.sh: Set C["fdatasync"] to 1.
* tst-cancel4.c (tf_fdatasync): New test.

18 years ago2007-05-06 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:15:16 +0000 (15:15 +0000)] 
2007-05-06  Ulrich Drepper  <drepper@redhat.com>

[BZ #4131]
* elf/dl-addr.c (_dl_addr): Compare address with actual segment
boundaries to work around systems with overlapping binary loading.
Based on a patch by Suzuki <suzuki@in.ibm.com>.

18 years ago2007-05-04 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:15:03 +0000 (15:15 +0000)] 
2007-05-04  Ulrich Drepper  <drepper@redhat.com>

* stdio-common/vfprintf.c (process_string_arg): Adjust call to
__mbsnrtowcs after last change.

2007-05-02  Jakub Jelinek  <jakub@redhat.com>

* stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
fixed length array for ignore.

2007-04-30  Ulrich Drepper  <drepper@redhat.com>

[BZ #4438]
* stdio-common/vfprintf.c (process_string_arg): Don't overflow the
stack for large precisions.
* stdio-common/test-vfprintf.c (main): Add test for large
precision.

18 years ago2007-04-30 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:14:41 +0000 (15:14 +0000)] 
2007-04-30  Jakub Jelinek  <jakub@redhat.com>

* stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
for exponent 0.
* stdio-common/tfformat.c (sprint_doubles): Add a new test.

18 years ago2007-04-30 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:14:24 +0000 (15:14 +0000)] 
2007-04-30  Jakub Jelinek  <jakub@redhat.com>

[BZ #4439]
* resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
account in the size check.
* resolv/tst-inet_ntop.c: New test.
* resolv/Makefile (tests): Add tst-inet_ntop.

18 years ago2007-04-28 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:13:58 +0000 (15:13 +0000)] 
2007-04-28  Ulrich Drepper  <drepper@redhat.com>

[BZ #4102]
* sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
label to Teredo tunnel addresses 2001://32.

18 years ago2007-04-27 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:13:47 +0000 (15:13 +0000)] 
2007-04-27  Ulrich Drepper  <drepper@redhat.com>

[BZ #4342]
* stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
hexa-decimal floats without exponent.
* stdio-common/tstscanf.c (main): Adjust Test 8 test for success.

18 years ago2007-04-27 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:13:29 +0000 (15:13 +0000)] 
2007-04-27  Ulrich Drepper  <drepper@redhat.com>

[BZ #3213]
* locale/C-translit.h.in: Add entry for U2044.

* locales/translit_neutral: Add entry for U2044.

18 years ago2007-04-25 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:12:29 +0000 (15:12 +0000)] 
2007-04-25  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
of 0 after the out_fail label.

2007-03-18  Jakub Jelinek  <jakub@redhat.com>

* nscd/gai.c: Include alloca.h.
(__libc_use_alloca): Define.

2007-03-15  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
NLMSG_ERR.  Instead use a page sized buffer.
* sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
buffer.

2007-03-02  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
message.

2007-02-27  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
memory reallocation.

18 years ago2007-04-25 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:11:35 +0000 (15:11 +0000)] 
2007-04-25  Jakub Jelinek  <jakub@redhat.com>

* libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
version.

18 years ago2007-04-25 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:11:24 +0000 (15:11 +0000)] 
2007-04-25  Ulrich Drepper  <drepper@redhat.com>

[BZ #4406]
* iconv/gconv_charset.h (strip): Allow ':'
* iconv/iconv_open.c (iconv_open): Adjust comment.

18 years ago2007-04-24 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:11:14 +0000 (15:11 +0000)] 
2007-04-24  Ulrich Drepper  <drepper@redhat.com>

[BZ #4411]
* locales/en_ZA: Update int_select.
Patch by Dwayne Bailey <dwayne@translate.org.za>.

18 years ago2007-04-23 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:10:53 +0000 (15:10 +0000)] 
2007-04-23  Jakub Jelinek  <jakub@redhat.com>

[BZ #4405]
* iconvdata/gconv-modules (E13B): Add a missing slash to the alias
name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.

18 years ago2007-04-23 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:10:44 +0000 (15:10 +0000)] 
2007-04-23  Jakub Jelinek  <jakub@redhat.com>

[BZ #4381]
* nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
alignment of buffer and tmp_buffer.
* nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
alignment of buffer.
* resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
bigger than INT_MAX.
* resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
h_errnop arguments.  Fail if buflen is too small.
(_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.

18 years ago2007-04-19 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:10:31 +0000 (15:10 +0000)] 
2007-04-19  Ulrich Drepper  <drepper@redhat.com>

* include/sys/mman.h: Mark madvise hidden.
* misc/madvise.c: Add libc_hidden_def.

18 years ago2007-04-17 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:10:21 +0000 (15:10 +0000)] 
2007-04-17  Ulrich Drepper  <drepper@redhat.com>

[BZ #4368]
* stdlib/stdlib.h: Remove obsolete part of comment for realpath.

18 years ago2007-04-16 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:09:59 +0000 (15:09 +0000)] 
2007-04-16  Ulrich Drepper  <drepper@redhat.com>

[BZ #4364]
* posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.

18 years ago2007-04-13 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:09:50 +0000 (15:09 +0000)] 
2007-04-13  Jakub Jelinek  <jakub@redhat.com>

[BZ #4344]
* elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
Reported by David Anderson <davea42@earthlink.net>.

18 years ago2007-04-13 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:09:42 +0000 (15:09 +0000)] 
2007-04-13  Jakub Jelinek  <jakub@redhat.com>

* stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
special case handling when wcp == wstartp + 1.  Fix a comment typo.
* stdio-common/tfformat.c (sprint_doubles): Add a new testcase.

2007-02-21  Ulrich Drepper  <drepper@redhat.com>

[BZ #4070]
* stdio-common/printf_fp.c (___printf_fp): Handle a few more
special cases.
* stdio-common/tfformat.c (sprint_doubles): Some more tests.

2007-02-19  Ulrich Drepper  <drepper@redhat.com>

* stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
optimization.

18 years ago2007-04-06 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:09:19 +0000 (15:09 +0000)] 
2007-04-06  Jakub Jelinek  <jakub@redhat.com>

* nis/nis_domain_of.c (__nis_domain_of): New function.
* include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
* nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
* nis/nis_call.c (rec_dirsearch): Likewise.
(first_shoot): Likewise.  Remove search_parent_first argument.
(struct nis_server_cache): Rename search_parent_first field
to search_parent.
(nis_server_cache_search, nis_server_cache_add): Rename
search_parent_first argument to search_parent.
(__nisfind_server): Likewise.  If search_parent, call
__nis_domain_of.

18 years ago2007-04-05 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:08:56 +0000 (15:08 +0000)] 
2007-04-05  Jakub Jelinek  <jakub@redhat.com>

* nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
with obj->do_servers after first_shoot.

2007-03-21  Jakub Jelinek  <jakub@redhat.com>

* nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
(nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
variables.
(nis_server_cache_search, nis_server_cache_add): New functions.
(__nisfind_server): Use them.  Add dbp and flags argument, if
call __nisbind_create.
(__nisbind_create): Add server_used and current_ep arguments,
only call __nis_findfastest if server_used is ~0.
(__do_niscall2, __prepare_niscall): Adjust callers.
(ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
ckey_cache_euid, ckey_cache_lock): New variables.
(get_ckey): New function.
(__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
__pmap_getnisport.  Save __pmap_getnisport result in
dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
key.
* nis/nis_lookup.c (nis_lookup): Likewise.
* nis/nis_table.c (nis_list): Likewise.
* nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
prototypes.

* nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
_nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
* nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
_nss_nisplus_getservbyport_r): Likewise.
* nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
_nss_nisplus_getnetbyaddr_r): Likewise.
* nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
* nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
_nss_nisplus_getntohost_r): Likewise.
* nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
_nss_nisplus_getrpcbynumber_r): Likewise.

18 years ago2007-04-01 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:08:45 +0000 (15:08 +0000)] 
2007-04-01  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
and 1 on failure.

18 years ago2007-04-01 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:08:18 +0000 (15:08 +0000)] 
2007-04-01  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
math_opt_barrier and math_force_eval macros.

2007-03-27  Jakub Jelinek  <jakub@redhat.com>

[BZ #3306]
* math/math_private.h (math_opt_barrier, math_force_eval): Define.
* sysdeps/i386/fpu/math_private.h: New file.
* sysdeps/x86_64/fpu/math_private.h: New file.
* math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
math_force_eval macros.  Use "+m" constraint on asm rather than
"=m" and "m".
* math/s_nextafter.c (__nextafter): Likewise.
* sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
Likewise.
* sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
* sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
* sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
* sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
math_opt_barrier and math_force_eval macros.
* sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
* sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
* sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
(__nexttoward): Use math_opt_barrier and
math_force_eval macros.  Use "+m" constraint on asm rather than
"=m" and "m".  Only use asm to force double result if
FLT_EVAL_METHOD is 2.
* sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
(__nexttowardf): Use math_opt_barrier and
math_force_eval macros.  Use "+m" constraint on asm rather than
"=m" and "m".  Only use asm to force double result if
FLT_EVAL_METHOD is not 0.
* sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
(__nexttowardf): Use math_opt_barrier and
math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
x to float using asm.
* sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
(__nldbl_nexttowardf): Use math_opt_barrier and
math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
x to float using asm.
* sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
(__nexttowardf): Use math_opt_barrier and math_force_eval
macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
* math/bug-nextafter.c (zero, inf): New variables.
(main): Add new tests.
* math/bug-nexttoward.c (zero, inf): New variables.
(main): Add new tests.

18 years ago2007-03-30 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:07:31 +0000 (15:07 +0000)] 
2007-03-30  Jakub Jelinek  <jakub@redhat.com>

* libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
__wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
_IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
Remove __THROW.
* libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
_IO_file_xsgetn_maybe_mmap): Likewise.
* libio/oldfileops.c (old_do_write): Likewise.
* libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
_IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
_IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
_IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
_IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
_IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
_IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
_IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
_IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
_IO_file_underflow, _IO_file_underflow_mmap,
_IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
_IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
_IO_file_sync, _IO_file_close_it, _IO_file_finish,
_IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
_IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
_IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
_IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
_IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
_IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
_IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
_IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
_IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
_IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
_IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
_IO_adjust_column_internal, _IO_default_uflow_internal,
_IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
_IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
_IO_file_setbuf_internal, _IO_file_seekoff_internal,
_IO_file_xsputn_internal, _IO_file_xsgetn_internal,
_IO_file_close_it_internal, _IO_file_underflow_internal,
_IO_file_overflow_internal, _IO_file_attach_internal,
_IO_file_fopen_internal, _IO_file_sync_internal,
_IO_file_finish_internal, _IO_wfile_xsputn_internal,
_IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
_IO_switch_to_wget_mode_internal, _IO_padn_internal,
_IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
_IO_seekpos_unlocked): Likewise.
(_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
_IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.

18 years ago2007-03-23 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:07:13 +0000 (15:07 +0000)] 
2007-03-23  Jakub Jelinek  <jakub@redhat.com>

* scripts/check-local-headers.sh: Filter out sys/capability.h.

2007-03-22  Jakub Jelinek  <jakub@redhat.com>

* config.h.in (HAVE_LIBCAP): Add.
* nscd/selinux.h: Include sys/capability.h rather than non-existent
sys/capabilities.h.
* nscd/selinux.c (preserve_capabilities): Use cap_free instead of
free_caps.  Cast away const from 4th cap_set_flag argument.

18 years ago2007-03-16 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:04:24 +0000 (15:04 +0000)] 
2007-03-16  Jakub Jelinek  <jakub@redhat.com>

* elf/dl-open.c (dl_open_worker): Declare l in 2 different
smaller scopes.
* elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
(DL_DST_REQUIRED): Adjust user.

18 years ago2007-03-15 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:03:54 +0000 (15:03 +0000)] 
2007-03-15  Jakub Jelinek  <jakub@redhat.com>

* locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
NULL.

18 years ago2007-03-15 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:00:49 +0000 (15:00 +0000)] 
2007-03-15  Jakub Jelinek  <jakub@redhat.com>

[BZ #4181]
* inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
(inet6_opt_append): Don't check extlen is big enough if extbuf
is NULL.
(inet6_opt_finish): Likewise.
* inet/Makefile (tests): Add test-inet6_opt.
* inet/test-inet6_opt.c: New test.

18 years ago2007-03-15 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 15:00:23 +0000 (15:00 +0000)] 
2007-03-15  Jakub Jelinek  <jakub@redhat.com>

[BZ #4130]
* login/utmp_file.c (setutent_file): Use O_LARGEFILE for
open_not_cancel_2.
(updwtmp_file): Likewise.

18 years ago2007-03-15 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:58:56 +0000 (14:58 +0000)] 
2007-03-15  Jakub Jelinek  <jakub@redhat.com>

[BZ #4101]
* argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
ancestors with the same depths.
Patch by Niels Moeller <nisse@lysator.liu.se>.
(filter_doc): Don't crash if argp is NULL.
* argp/Makefile (tests): Add tst-argp2.
* argp/tst-argp2.c: New test.

18 years ago2007-03-15 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:58:36 +0000 (14:58 +0000)] 
2007-03-15  Jakub Jelinek  <jakub@redhat.com>

[BZ #3919]
* math/libm-test.inc (log_test): Test -Inf and NaN.
(log10_test, log1p_test, log2_test): Test -Inf.
* sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
FE_INVALID when argument is qNaN.
* sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
* sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
* sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
* sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
andb $1, %ah with testb $1, %ah, don't test for parity, instead
testb $4, %ah and jump if non-zero.
* sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
* sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.

18 years ago2007-03-06 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:58:16 +0000 (14:58 +0000)] 
2007-03-06  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
172.16/12 address range.

18 years ago2007-03-01 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:58:05 +0000 (14:58 +0000)] 
2007-03-01  Jakub Jelinek  <jakub@redhat.com>

[BZ #4069]
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
earlier.
* math/libm-test.inc (pow_test): Add more tests involving NaNs.

* sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
for x qNaN and y either +-inf or non-integer value.
* sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
* sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
* sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.

18 years ago2007-02-21 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:57:39 +0000 (14:57 +0000)] 
2007-02-21  Ulrich Drepper  <drepper@redhat.com>

[BZ #4076]
* io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
(open_dir_stream): Likewise.
* io/Makefile (tests): Add bug-ftw5.
* io/bug-ftw5.c: New file.

18 years ago2007-02-21 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:57:02 +0000 (14:57 +0000)] 
2007-02-21  Ulrich Drepper  <drepper@redhat.com>

* nscd/grpcache.c (cache_addgr): In case a record changed on
refresh, adjust key_copy.

[BZ #4074]
* nscd/pwdcache.c (cache_addpw): In case a record changed on
refresh, adjust key_copy.

18 years ago2007-02-21 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:56:42 +0000 (14:56 +0000)] 
2007-02-21  Ulrich Drepper  <drepper@redhat.com>

[BZ #3458]
* sysdeps/unix/sysv/linux/posix_madvise.c: New file.
* sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.

18 years ago2007-02-17 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:55:52 +0000 (14:55 +0000)] 
2007-02-17  Ulrich Drepper  <drepper@redhat.com>

[BZ #3842]
* sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
using __libc_enable_secure.

18 years ago2007-02-17 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:55:40 +0000 (14:55 +0000)] 
2007-02-17  Ulrich Drepper  <drepper@redhat.com>

[BZ #3348]
* malloc/memusage.sh: Cleanups.
* debug/xtrace.sh: Quoting and trap changes.

18 years ago2007-02-16 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:55:25 +0000 (14:55 +0000)] 
2007-02-16  Ulrich Drepper  <drepper@redhat.com>

[BZ #3995]
* locales/ru_RU (LC_TIME): Set first_weekday and first_workday.

18 years ago2007-02-16 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:54:59 +0000 (14:54 +0000)] 
2007-02-16  Ulrich Drepper  <drepper@redhat.com>

[BZ #3851]
* locales/bn_BD: Fix full name of January and February.
Patch by Jamil Ahmed <jamil@bengalinux.org>.

18 years ago2007-02-16 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:54:28 +0000 (14:54 +0000)] 
2007-02-16  Ulrich Drepper  <drepper@redhat.com>

* locale/iso-3166.def: Add entry for Serbia.
* locale/iso-4217.def: Define RSD.

2007-02-17  Ulrich Drepper  <drepper@redhat.com>

[BZ #3334]
* locales/sr_ME: Update from maintainer.

2007-02-16  Ulrich Drepper  <drepper@redhat.com>

[BZ #3322]
* SUPPORTED (SUPPORTED-LOCALES): Add sr_RS and sr_RS@latin.
* locales/sr_RS: New file.
* locales/sr_RS@latin: New file.

18 years ago2007-02-15 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:52:37 +0000 (14:52 +0000)] 
2007-02-15  Ulrich Drepper  <drepper@redhat.com>

* nscd/nscd_helper.c (open_socket): Don't send padding bytes from
reqdata.

18 years ago2007-02-13 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:52:22 +0000 (14:52 +0000)] 
2007-02-13  Ulrich Drepper  <drepper@redhat.com>

* po/ru.po: Update from translation team.

2007-02-03  Ulrich Drepper  <drepper@redhat.com>

* po/sv.po: Update from translation team.

18 years ago2007-02-12 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:51:41 +0000 (14:51 +0000)] 
2007-02-12  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
to the list of i486+ CPUs.
* sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.

2007-01-24  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
and __geode__ to the list of i486+ CPUs.
* sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.

18 years ago2007-02-09 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:51:21 +0000 (14:51 +0000)] 
2007-02-09  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
(__lll_mutex_timedlock_wait): Use correct pointer when we don't
call into the kernel to delay.

18 years ago2007-02-08 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:50:41 +0000 (14:50 +0000)] 
2007-02-08  Jakub Jelinek  <jakub@redhat.com>

[BZ #3944]
* time/strptime_l.c (__strptime_internal): Set have_mon for
%b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
have been computed from tm_yday and tm_year.  Don't crash
in day_of_the_week or day_of_the_year if not have_mon
and tm_mon contains bogus value.
* time/Makefile (tests): Add tst-strptime3.
* time/tst-strptime3.c: New test.

18 years ago2007-02-05 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:50:17 +0000 (14:50 +0000)] 
2007-02-05  Jakub Jelinek  <jakub@redhat.com>

[BZ #3957]
* posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
bit for RE_HAT_LISTS_NOT_NEWLINE.
(build_charclass_op): Remove bogus comment.
* posix/Makefile (tests): Add bug-regex27 and bug-regex28.
* posix/bug-regex27.c: New test.
* posix/bug-regex28.c: New test.

18 years ago2007-02-02 Bruno Haible <bruno@clisp.org>
Jakub Jelinek [Thu, 12 Jul 2007 14:48:20 +0000 (14:48 +0000)] 
2007-02-02  Bruno Haible  <bruno@clisp.org>

[BZ #3954]
* iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
Add mapping for U+327E.
* iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
* iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
mapping of 0xD9 0xE8.
* iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
mapping of U+327E.
Reported by Jungshik Shin <jungshik@google.com>.

[BZ #3955]
* iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
mapping of 0xD9 0xE6 and of 0xD9 0xE7.
Reported by Jungshik Shin <jungshik@google.com>.

2007-02-02  Bruno Haible  <bruno@clisp.org>

* charmaps/EUC-KR: Add mapping for 0xA2 0xE8.
* charmaps/JOHAB: Add mapping for 0xD9 0xE8.
Reported by Jungshik Shin <jungshik@google.com>.

* charmaps/JOHAB: Add mappings for 0xD9 0xE6 and 0xD9 0xE7.
Reported by Jungshik Shin <jungshik@google.com>.

18 years ago2007-01-31 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:46:36 +0000 (14:46 +0000)] 
2007-01-31  Jakub Jelinek  <jakub@redhat.com>

* nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
from return value.
* nscd/nscd_helper.c: Include string.h.
(__nscd_cache_search): Remove const qualifier from return value.
On strict alignment architectures check hash entry and data head
alignment.
* nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
mmapped data during GC cycle contains garbage.  If
__nscd_drop_map_ref fails, decrement mapped->counter when returning
error or if retrying with NO_MAPPING, only __nscd_unmap if counter
dropped to 0.
* nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
* nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
* nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
* nscd/nscd_getai.c (__nscd_getai): Likewise.

18 years ago2007-01-22 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:45:55 +0000 (14:45 +0000)] 
2007-01-22  Ulrich Drepper  <drepper@redhat.com>

[BZ #3902]
* stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
* stdio-common/Makefile (tests): Add bug17.
* stdio-common/bug17.c: New file.

18 years ago2007-01-15 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Thu, 12 Jul 2007 14:42:19 +0000 (14:42 +0000)] 
2007-01-15  Jakub Jelinek  <jakub@redhat.com>

* soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
workbits in semi-raw fraction.

* math/test-misc.c: Add new tests.

2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>

* math/basic-test.c: Include test-skeleton.c.
(TEST_TRUNC): Define.
(truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
(main): Rename to ...
(do_test): ...this.  Run new tests.
(TEST_FUNCTION): Define.

2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
    Joe Kerian  <jkerian@us.us.ibm.com>

[BZ #2749]
* soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
handling for high words.
* soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
and overflow for infinity.

18 years ago/tmp/T
Jakub Jelinek [Thu, 12 Jul 2007 14:35:54 +0000 (14:35 +0000)] 
/tmp/T

18 years ago/tmp/T
Jakub Jelinek [Thu, 12 Jul 2007 14:31:37 +0000 (14:31 +0000)] 
/tmp/T

18 years ago/tmp/T
Jakub Jelinek [Thu, 12 Jul 2007 14:30:34 +0000 (14:30 +0000)] 
/tmp/T

18 years ago2006-12-19 Jakub Jelinek <jakub@redhat.com>
Jakub Jelinek [Tue, 10 Jul 2007 14:44:15 +0000 (14:44 +0000)] 
2006-12-19  Jakub Jelinek  <jakub@redhat.com>

* stdlib/Makefile (tests): Add tst-makecontext.
* stdlib/tst-makecontext.c: New test.

* sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
(__makecontext): Don't realign uc_mcontext.uc_regs.

2006-12-13  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
kernel-features.h.

18 years ago * stdlib/tst-makecontext.c: Include errno.h. Change main()
Jakub Jelinek [Fri, 12 Jan 2007 18:24:52 +0000 (18:24 +0000)] 
* stdlib/tst-makecontext.c: Include errno.h.  Change main()
to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
(do_test): Check errno and exit(0) if ENOSYS.

18 years ago * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
Jakub Jelinek [Fri, 12 Jan 2007 18:23:27 +0000 (18:23 +0000)] 
* stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
thousands separators.
* stdlib/Makefile: Add rules to build and run tst-strtod4.
* stdlib/tst-strtod4.c: New test.

[BZ #3855]
* stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
hexadecimal digit should accept just the initial 0.
* stdlib/tst-strtod2.c (tests): New variable.
(do_test): Run several tests rather than just one.

18 years ago * shlib-versions: Fix sparc64 linux target specification.
Jakub Jelinek [Fri, 12 Jan 2007 18:14:34 +0000 (18:14 +0000)] 
* shlib-versions: Fix sparc64 linux target specification.

18 years ago * stdlib/Makefile (tst-strtod3-ENV): Define.
Jakub Jelinek [Fri, 12 Jan 2007 18:07:19 +0000 (18:07 +0000)] 
* stdlib/Makefile (tst-strtod3-ENV): Define.

* stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
separators also if no non-zero digits found.
* stdlib/Makefile (tests): Add tst-strtod3.

[BZ #3664]
* stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
empty parsed strings.
* stdlib/Makefile (tests): Add tst-strtod2.
* stdlib/tst-strtod2.c: New file.

[BZ #3673]
* stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
computation.
* stdlib/Makefile (tests): Add tst-atof2.
* stdlib/tst-atof2.c: New file.

[BZ #3674]
* stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
correctly if removing trailing zero of hex-float.
* stdlib/Makefile (tests): Add tst-atof1.
* stdlib/tst-atof1.c: New file.

18 years ago * string/Makefile (tst-strxfrm2-ENV): Define.
Jakub Jelinek [Fri, 12 Jan 2007 18:02:24 +0000 (18:02 +0000)] 
* string/Makefile (tst-strxfrm2-ENV): Define.

* string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
if N is one bigger than return value.
* string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
and l1 last arguments, if buf is defined, verify the return value
equals to strlen (buf) and verify no byte beyond passed length
is modified.

* string/Makefile (tests): Add tst-strxfrm2.
* string/tst-strxfrm2.c: New file.

* string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
optimization even if needed > n.

18 years ago * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
Jakub Jelinek [Fri, 12 Jan 2007 17:59:51 +0000 (17:59 +0000)] 
* nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
blacklist the group till after we look it up.

18 years ago * include/atomic.h (atomic_forced_read): New macro.
Jakub Jelinek [Fri, 12 Jan 2007 17:58:08 +0000 (17:58 +0000)] 
* include/atomic.h (atomic_forced_read): New macro.

* sysdeps/unix/sysv/linux/pthread_kill.c (pthread_kill): Make sure
tid isn't reread from pd->tid in between ESRCH test and the syscall.

18 years ago * stdlib/Makefile (tests): Add tst-makecontext.
Jakub Jelinek [Fri, 12 Jan 2007 17:55:39 +0000 (17:55 +0000)] 
* stdlib/Makefile (tests): Add tst-makecontext.
* stdlib/tst-makecontext.c: New test.

* sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
(__makecontext): Don't realign uc_mcontext.uc_regs.

* sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
kernel-features.h.

18 years ago * nss/getXXbyYY_r.c: Include atomic.h.
Jakub Jelinek [Fri, 12 Jan 2007 17:53:27 +0000 (17:53 +0000)] 
* nss/getXXbyYY_r.c: Include atomic.h.
(INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
add atomic_write_barrier () in between.

18 years ago [BZ #3747]
Jakub Jelinek [Fri, 12 Jan 2007 17:52:07 +0000 (17:52 +0000)] 
[BZ #3747]
* stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
[-231 .. 231) range.
* stdlib/tst-rand48.c (main): Fix expected values for 64-bit
targets.
* stdlib/tst-rand48-2.c: New test.
* stdlib/Makefile (tests): Add tst-rand48-2.

18 years ago * misc/tst-pselect.c (do_test): Fix sigblock argument.
Jakub Jelinek [Fri, 12 Jan 2007 17:49:04 +0000 (17:49 +0000)] 
* misc/tst-pselect.c (do_test): Fix sigblock argument.

* misc/tst-pselect.c (do_test): Make sure the helper process is
terminating when the test is aborted.

18 years ago * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
Jakub Jelinek [Fri, 12 Jan 2007 17:27:52 +0000 (17:27 +0000)] 
* sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
(ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
* sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
(__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
ENOTTY.
* io/Makefile: Add rules to build and run tst-ttyname_r test.
* io/tst-ttyname_r.c: New test.

18 years ago [BZ #2337]
Jakub Jelinek [Fri, 12 Jan 2007 17:25:38 +0000 (17:25 +0000)] 
[BZ #2337]
* libio/Makefile (tests): Add tst-setvbuf1.
* libio/tst-setvbuf1.c: New file.

[BZ #2337]
* libio/genops.c (__uflow): Fix a typo.
* libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
the narrow buffer size.

[BZ #2337]
* libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
* libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
_IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
in _flags.
* libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
_IO_wstr_finish): Likewise.
* libio/wmemstream.c (open_wmemstream): Likewise.
* libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
even for wide streams.

18 years ago * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
Jakub Jelinek [Fri, 12 Jan 2007 17:20:09 +0000 (17:20 +0000)] 
* misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
Start searching for next comma at p rather than rest.
* misc/Makefile (tests): Add tst-mntent2.
* misc/tst-mntent2.c: New test.

18 years ago [BZ #3632]
Jakub Jelinek [Fri, 12 Jan 2007 17:16:43 +0000 (17:16 +0000)] 
[BZ #3632]
* include/features.h: Fix comment about default value for
_POSIX_C_SOURCE.

18 years ago * misc/getusershell.c (initshells): Check for integer overflows.
Jakub Jelinek [Fri, 12 Jan 2007 17:11:28 +0000 (17:11 +0000)] 
* misc/getusershell.c (initshells): Check for integer overflows.
Make strings buffer one bigger as fgets always succeeds when second
argument is 1.  Don't use calloc for shells array.  Disallow
/ as shell.

18 years ago * nis/nis_subr.c (nis_getnames): Revert last change.
Jakub Jelinek [Fri, 12 Jan 2007 17:05:59 +0000 (17:05 +0000)] 
* nis/nis_subr.c (nis_getnames): Revert last change.

* nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.

* nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
* sysdeps/generic/unsecvars.h: Add NIS_PATH.

18 years ago * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
Jakub Jelinek [Fri, 12 Jan 2007 17:04:39 +0000 (17:04 +0000)] 
* sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
(ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
* sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
(__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
ENOTTY.
* io/Makefile: Add rules to build and run tst-ttyname_r test.
* io/tst-ttyname_r.c: New test.

18 years ago * elf/dl-support.c: Include dl-procinfo.h.
Jakub Jelinek [Fri, 12 Jan 2007 17:02:00 +0000 (17:02 +0000)] 
* elf/dl-support.c: Include dl-procinfo.h.
* sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
Define.
(_dl_string_platform): Use PPC_PLATFORM_* macros instead of
hardcoded constants.
* sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
PPC_PLATFORM_* macros for array designators.

* sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
names to the beginning.
(_dl_powerpc_platforms): Add "power6x".
* sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
(HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
(_DL_PLATFORMS_COUNT): Increase.
(_dl_string_platform): Handle power6x case.
* sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
PPC_FEATURE_POWER6_EXT): Define.
(PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.

18 years ago [BZ #3559]
Jakub Jelinek [Fri, 12 Jan 2007 16:59:03 +0000 (16:59 +0000)] 
[BZ #3559]
* sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
malloc crashed.

18 years ago * nss/nss_files/files-alias.c (get_next_alias): Set line back
Jakub Jelinek [Fri, 12 Jan 2007 15:56:58 +0000 (15:56 +0000)] 
* nss/nss_files/files-alias.c (get_next_alias): Set line back
to first_unused after parsing :include: file.

18 years ago * po/nl.po: Update from translation team.
Jakub Jelinek [Fri, 12 Jan 2007 15:55:12 +0000 (15:55 +0000)] 
* po/nl.po: Update from translation team.

* po/sv.po: Update from translation team.

* po/sv.po: Update from translation team.

* po/sv.po: Update from translation team.

* po/sv.po: Update from translation team.

* po/tr.po: Update from translation team.

* po/pl.po: Update from translation team.

18 years ago [BZ #3451]
Jakub Jelinek [Fri, 12 Jan 2007 15:31:04 +0000 (15:31 +0000)] 
[BZ #3451]
* sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
change atomic.
(ceil): Likewise.

18 years ago * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
Jakub Jelinek [Fri, 12 Jan 2007 15:29:13 +0000 (15:29 +0000)] 
* sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
noinline attribute.

* sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
noinline attribute.

* sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
Update handling of cache descriptor 0x49 for new models.
* sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
Likewise.

18 years ago * elf/dl-load.c (decompose_rpath): Return bool rather than void.
Jakub Jelinek [Fri, 12 Jan 2007 15:28:03 +0000 (15:28 +0000)] 
* elf/dl-load.c (decompose_rpath): Return bool rather than void.
If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
return false, otherwise return true.
(cache_rpath): Return decompose_rpath return value.

18 years ago * locales/mai_IN: New file.
Jakub Jelinek [Fri, 12 Jan 2007 15:26:50 +0000 (15:26 +0000)] 
* locales/mai_IN: New file.
Provided by Rajesh Ranjan <rajeshkajha@yahoo.com>.

* SUPPORTED: Add mai_IN/UTF-8.

18 years ago * malloc/memusage.c (dest): Reset not_me back to false after
Jakub Jelinek [Fri, 12 Jan 2007 15:25:43 +0000 (15:25 +0000)] 
* malloc/memusage.c (dest): Reset not_me back to false after
printing statistics.

18 years ago * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
Jakub Jelinek [Fri, 12 Jan 2007 15:21:33 +0000 (15:21 +0000)] 
* elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
split out locking and parameter checking.
(_dl_close): Call _dl_close_worker after locking and checking.
* elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
_dl_close.
* elf/Makefile: Add rules to build and run tst-thrlock.
* elf/tst-thrlock.c:  New file.

[BZ #3429]
* elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
we are sure we do not need it anymore for _dl_close.  Also move
the asserts inside the lock region.
Patch mostly by Suzuki <suzuki@in.ibm.com>.

18 years ago * nptl_db/db_info.c [TLS_DTV_AT_TP]: Fixed size init for dtvp
Jakub Jelinek [Fri, 12 Jan 2007 15:18:15 +0000 (15:18 +0000)] 
* nptl_db/db_info.c [TLS_DTV_AT_TP]: Fixed size init for dtvp
to sizeof a pointer, instead of sizeof the union.

18 years ago * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
Jakub Jelinek [Fri, 12 Jan 2007 15:09:57 +0000 (15:09 +0000)] 
* sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
as signed longs, check for x_base + pos overflow.
* sunrpc/Makefile (tests): Add tst-xdrmem2.
* sunrpc/tst-xdrmem2.c: New test.

18 years ago [BZ #3369]
Jakub Jelinek [Fri, 12 Jan 2007 15:07:32 +0000 (15:07 +0000)] 
[BZ #3369]
* sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
and 7.

18 years ago * elf/dl-minimal.c (realloc): Optimize last patch.
Jakub Jelinek [Fri, 12 Jan 2007 15:02:01 +0000 (15:02 +0000)] 
* elf/dl-minimal.c (realloc): Optimize last patch.

[BZ #3352]
* elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
and use memcpy() if it does.

18 years ago [BZ #3320]
Jakub Jelinek [Fri, 12 Jan 2007 14:59:44 +0000 (14:59 +0000)] 
[BZ #3320]
* locales/es_ES (LC_TIME): Add week, first_weekday, and first_workday.

18 years ago * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
Jakub Jelinek [Fri, 12 Jan 2007 14:58:41 +0000 (14:58 +0000)] 
* sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.

18 years ago * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
Jakub Jelinek [Fri, 12 Jan 2007 14:57:15 +0000 (14:57 +0000)] 
* nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
components which lack them.

* nis/nis_subr.c (nis_getnames): Make sure that we always return
at least one entry consisting of the parameter concatenated with
the domain.

18 years ago * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
Jakub Jelinek [Fri, 12 Jan 2007 14:54:57 +0000 (14:54 +0000)] 
* elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
rather than r->r_brk.

18 years ago * nis/nis_table.c (nis_list): If __follow_path fails in the new
Jakub Jelinek [Fri, 12 Jan 2007 14:37:24 +0000 (14:37 +0000)] 
* nis/nis_table.c (nis_list): If __follow_path fails in the new
code, make sure the nis_freeresult call doesn't crash and that the
result is reported correctly.

* nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
when callback is NULL.

* nis/Versions (libnss_nisplus): Add
_nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
* nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
* nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
_nss_create_tablename): Rename to...
(grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
... these.  No longer static.
(internal_setgrent): Adjust users.
(_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
Don't use locking around _nss_grp_create_tablename call.
* nis/nss_nisplus/nisplus-initgroups.c: New file.

18 years agoInclude errno.h. Change main() to do_test(). Define TEST_FUNCTION. Include test...
Ulrich Drepper [Thu, 11 Jan 2007 21:51:00 +0000 (21:51 +0000)] 
Include errno.h.  Change main() to do_test().  Define TEST_FUNCTION. Include test-skeleton.c. (do_test): Check errno and exit(0) if ENOSYS.

18 years ago[BZ #3855]
Ulrich Drepper [Thu, 11 Jan 2007 17:28:58 +0000 (17:28 +0000)] 
[BZ #3855]

* stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
hexadecimal digit should accept just the initial 0.
* stdlib/tst-strtod2.c (tests): New variable.
(do_test): Run several tests rather than just one.

2007-01-11  Jakub Jelinek  <jakub@redhat.com>