platform/upstream/linaro-glibc.git
17 years ago* stdio-common/vfprintf.c (process_string_arg): Optimize
Ulrich Drepper [Mon, 7 May 2007 03:44:48 +0000 (03:44 +0000)]
* 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>.

17 years ago[BZ #4131]
Ulrich Drepper [Sun, 6 May 2007 21:01:32 +0000 (21:01 +0000)]
[BZ #4131]

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>.

17 years ago* stdio-common/vfprintf.c (process_string_arg): Adjust call to
Ulrich Drepper [Sat, 5 May 2007 04:41:44 +0000 (04:41 +0000)]
* stdio-common/vfprintf.c (process_string_arg): Adjust call to

__mbsnrtowcs after last change.

17 years ago* soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
Ulrich Drepper [Sat, 5 May 2007 04:36:02 +0000 (04:36 +0000)]
* soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to

_FP_FRAC_COPY_2.
* soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
_FP_FRAC_COPY_4.

17 years ago* locale/programs/linereader.c (get_symname): Fix adding final NUL.
Ulrich Drepper [Sat, 5 May 2007 04:15:31 +0000 (04:15 +0000)]
* locale/programs/linereader.c (get_symname): Fix adding final NUL.

(get_ident): Likewise.

17 years ago[BZ #4114]
Ulrich Drepper [Fri, 4 May 2007 20:53:10 +0000 (20:53 +0000)]
[BZ #4114]

2007-05-04  Ulrich Drepper  <drepper@redhat.com>
[BZ #4114]
* locales/ast_ES: New file.
* SUPPORTED (SUPPORTED-LOCALES): Add ast_ES.UTF-8 and ast_ES.

17 years agoAsturian language locale for Spain.
Ulrich Drepper [Fri, 4 May 2007 20:52:28 +0000 (20:52 +0000)]
Asturian language locale for Spain.

17 years ago* soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
Jakub Jelinek [Thu, 3 May 2007 16:36:49 +0000 (16:36 +0000)]
* soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT

with setting the sticky bit.
* math/test-misc.c (main): Add more truncation tests.
* soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
double in the function declaration.
* soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
double in the function declaration.
* soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
float in the function declaration.
* soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
float in the function declaration.

* soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
denormal operands.  Do not generate FP_EX_DENORM exception.
(FP_UNPACK_RAW_EP): Ditto.
(FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
undefined _FP_UNPACK_RAW_E.
(FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
undefined _FP_UNPACK_RAW_EP.
(FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
undefined _FP_PACK_RAW_E.
(FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
undefined _FP_PACK_RAW_EP.

* op-2.h (_FP_FRAC_COPY_2_2): Define as alias to _FP_FRAC_COPY_2.
* op-4.h (_FP_FRAC_COPY_2_2): Define as alias to _FP_FRAC_COPY_4.

* soft-fp/op-common.h (FP_EXTEND): Do not abort when
_FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
this case.
* soft-fp/op-common.h (FP_TRUNC): Ditto.
* soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
with setting the sticky bit.
* math/test-misc.c (main): Add more truncation tests.

2007-04-14  Uros Bizjak  <ubizjak@gmail.com>

* soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
double in the function declaration.
* soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
double in the function declaration.
* soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
float in the function declaration.
* soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
float in the function declaration.

* soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
denormal operands.  Do not generate FP_EX_DENORM exception.
(FP_UNPACK_RAW_EP): Ditto.
(FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
undefined _FP_UNPACK_RAW_E.
(FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
undefined _FP_UNPACK_RAW_EP.
(FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
undefined _FP_PACK_RAW_E.
(FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
undefined _FP_PACK_RAW_EP.

* op-2.h (_FP_FRAC_COPY_2_2): Define as alias to _FP_FRAC_COPY_2.
* op-4.h (_FP_FRAC_COPY_2_2): Define as alias to _FP_FRAC_COPY_4.

2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
    Jakub Jelinek  <jakub@redhat.com>

* soft-fp/op-common.h (FP_EXTEND): Do not abort when
_FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
this case.
* soft-fp/op-common.h (FP_TRUNC): Ditto.

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

17 years ago* math/test-misc.c (main): Add tests for rounding long double
Jakub Jelinek [Thu, 3 May 2007 12:15:04 +0000 (12:15 +0000)]
* math/test-misc.c (main): Add tests for rounding long double

values close to smallest double denormalized value to double.
* soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
condition for truncating to 0.  Set sticky bit for such
truncation.
2007-05-03  Jakub Jelinek  <jakub@redhat.com>

* math/test-misc.c (main): Add tests for rounding long double
values close to smallest double denormalized value to double.

2007-04-30  Joseph Myers  <joseph@codesourcery.com>

* soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
condition for truncating to 0.  Set sticky bit for such
truncation.

17 years ago* stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
Ulrich Drepper [Wed, 2 May 2007 08:16:34 +0000 (08:16 +0000)]
* stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than

fixed length array for ignore.

17 years ago* stdio-common/test-vfprintf.c (main): Add test for large
Ulrich Drepper [Tue, 1 May 2007 18:35:44 +0000 (18:35 +0000)]
* stdio-common/test-vfprintf.c (main): Add test for large

precision.

17 years ago[BZ #4438]
Ulrich Drepper [Tue, 1 May 2007 04:11:51 +0000 (04:11 +0000)]
[BZ #4438]

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.

17 years ago* stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
Ulrich Drepper [Mon, 30 Apr 2007 22:33:44 +0000 (22:33 +0000)]
* 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.

17 years ago[BZ #4439]
Ulrich Drepper [Mon, 30 Apr 2007 22:30:14 +0000 (22:30 +0000)]
[BZ #4439]

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.

17 years ago[BZ #4349]
Ulrich Drepper [Mon, 30 Apr 2007 22:18:46 +0000 (22:18 +0000)]
[BZ #4349]

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

[BZ #4349]
* malloc/malloc.c: Keep separate list for first blocks on the bin
lists with a given size.  This helps skipping over list elements
we know won't fit in two places.
Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.

17 years ago[BZ #4102]
Ulrich Drepper [Sat, 28 Apr 2007 16:09:22 +0000 (16:09 +0000)]
[BZ #4102]

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.

17 years ago* locale/programs/ld-collate.c (collate_read): Allow order_start
Ulrich Drepper [Sat, 28 Apr 2007 06:51:26 +0000 (06:51 +0000)]
* locale/programs/ld-collate.c (collate_read): Allow order_start

after copy.

17 years ago[BZ #3213]
Ulrich Drepper [Sat, 28 Apr 2007 06:40:56 +0000 (06:40 +0000)]
[BZ #3213]

* locale/programs/ld-collate.c (collate_read): Fix printing of
error message.

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

17 years ago[BZ #4392]
Ulrich Drepper [Sat, 28 Apr 2007 04:23:56 +0000 (04:23 +0000)]
[BZ #4392]

* pthread_mutex_trylock.c (__pthread_mutex_trylock): Treat error
check mutexes like normal mutexes.

17 years ago[BZ #4306]
Ulrich Drepper [Sat, 28 Apr 2007 04:03:38 +0000 (04:03 +0000)]
[BZ #4306]

2007-04-27  Ulrich Drepper  <drepper@redhat.com>
[BZ #4306]
* sysdeps/unix/sysv/linux/timer_create.c (timer_create):
Initialize the whole sigevent structure to appease valgrind.

17 years ago[BZ #4342]
Ulrich Drepper [Fri, 27 Apr 2007 19:29:06 +0000 (19:29 +0000)]
[BZ #4342]

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.

* iconv/gconv_charset.h (strip): Allow ':'.

17 years ago(_IO_vfscanf_internal): Allow hexa-decimal floats without exponent.
Ulrich Drepper [Fri, 27 Apr 2007 19:28:32 +0000 (19:28 +0000)]
(_IO_vfscanf_internal): Allow hexa-decimal floats without exponent.

17 years ago* io/bug-ftw5.c: New file.
Jakub Jelinek [Thu, 26 Apr 2007 15:39:15 +0000 (15:39 +0000)]
* io/bug-ftw5.c: New file.

17 years ago* sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
Ulrich Drepper [Thu, 26 Apr 2007 04:59:42 +0000 (04:59 +0000)]
* sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):

Add sched_getcpu.

17 years ago* sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
Ulrich Drepper [Thu, 26 Apr 2007 04:50:57 +0000 (04:50 +0000)]
* sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.

* sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
* sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
* sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
GLIBC_2.6.

17 years ago(tcbhead_t): Add vgetcpu_cache.
Ulrich Drepper [Thu, 26 Apr 2007 04:44:47 +0000 (04:44 +0000)]
(tcbhead_t): Add vgetcpu_cache.

17 years ago* sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
Jakub Jelinek [Wed, 25 Apr 2007 16:05:18 +0000 (16:05 +0000)]
* sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead

of 0 after the out_fail label.
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.

17 years ago[BZ #4406]
Ulrich Drepper [Wed, 25 Apr 2007 15:15:47 +0000 (15:15 +0000)]
[BZ #4406]

2007-04-25  Ulrich Drepper  <drepper@redhat.com>
[BZ #4406]
* iconv/gconv_charset.h (strip): Allow ':'
* iconv/iconv_open.c (iconv_open): Adjust comment.

17 years ago(strip): Allow ':'
Ulrich Drepper [Wed, 25 Apr 2007 15:14:36 +0000 (15:14 +0000)]
(strip): Allow ':'

17 years ago* libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
Jakub Jelinek [Wed, 25 Apr 2007 14:35:54 +0000 (14:35 +0000)]
* libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized

version.
2007-04-25  Jakub Jelinek  <jakub@redhat.com>

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

17 years ago[BZ #4411]
Ulrich Drepper [Tue, 24 Apr 2007 19:04:27 +0000 (19:04 +0000)]
[BZ #4411]

2007-04-24  Ulrich Drepper  <drepper@redhat.com>
[BZ #4411]
* locales/en_ZA: Update int_select.
Patch by Dwayne Bailey <dwayne@translate.org.za>.

17 years ago[BZ #4381]
Ulrich Drepper [Mon, 23 Apr 2007 15:17:21 +0000 (15:17 +0000)]
[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.

2007-04-23  Jakub Jelinek  <jakub@redhat.com>

17 years ago(HOST_DB_LOOKUP): Ensure sufficient alignment of buffer and tmp_buffer.
Ulrich Drepper [Mon, 23 Apr 2007 15:15:53 +0000 (15:15 +0000)]
(HOST_DB_LOOKUP): Ensure sufficient alignment of buffer and tmp_buffer.

17 years ago[BZ #4405]
Jakub Jelinek [Mon, 23 Apr 2007 09:22:10 +0000 (09:22 +0000)]
[BZ #4405]

* iconvdata/gconv-modules (E13B): Add a missing slash to the alias
name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
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>.

17 years ago* elf/elf.h (NT_PRXFPREG): New macro.
Roland McGrath [Sun, 22 Apr 2007 10:36:25 +0000 (10:36 +0000)]
* elf/elf.h (NT_PRXFPREG): New macro.

17 years ago2007-04-22 Roland McGrath <roland@redhat.com>
Roland McGrath [Sun, 22 Apr 2007 10:36:16 +0000 (10:36 +0000)]
2007-04-22  Roland McGrath  <roland@redhat.com>

* elf/elf.h (NT_PRXFPREG): New macro.

17 years ago[BZ #3905]
Andreas Jaeger [Fri, 20 Apr 2007 16:02:16 +0000 (16:02 +0000)]
[BZ #3905]

* bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
Added.
2007-04-19  Andreas Jaeger  <aj@suse.de>

[BZ #3905]
* bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
Added.

17 years ago* misc/madvise.c: Add libc_hidden_def.
Ulrich Drepper [Thu, 19 Apr 2007 17:42:47 +0000 (17:42 +0000)]
* misc/madvise.c: Add libc_hidden_def.

17 years ago* include/sys/mman.h: Mark madvise hidden.
Ulrich Drepper [Thu, 19 Apr 2007 17:41:07 +0000 (17:41 +0000)]
* include/sys/mman.h: Mark madvise hidden.

17 years ago* nis/nis_domain_of.c (__nis_domain_of): New function.
Ulrich Drepper [Thu, 19 Apr 2007 14:28:01 +0000 (14:28 +0000)]
* 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.

17 years ago* sysdeps/posix/getaddrinfo.c: Remove commented-out code.
Ulrich Drepper [Wed, 18 Apr 2007 23:46:35 +0000 (23:46 +0000)]
* sysdeps/posix/getaddrinfo.c: Remove commented-out code.

17 years ago[BZ #4368]
Ulrich Drepper [Tue, 17 Apr 2007 18:36:00 +0000 (18:36 +0000)]
[BZ #4368]

2007-04-17  Ulrich Drepper  <drepper@redhat.com>
[BZ #4368]
* stdlib/stdlib.h: Remove obsolete part of comment for realpath.

17 years ago[BZ #4364]
Ulrich Drepper [Mon, 16 Apr 2007 23:44:21 +0000 (23:44 +0000)]
[BZ #4364]

2007-04-16  Ulrich Drepper  <drepper@redhat.com>
[BZ #4364]
* posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.

17 years ago* locale/programs/locarchive.c (INITIAL_NUM_NAMES,
Ulrich Drepper [Mon, 16 Apr 2007 23:31:03 +0000 (23:31 +0000)]
* locale/programs/locarchive.c (INITIAL_NUM_NAMES,

INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
current number of locales in SUPPORTED.
(create_archive): Initialize serial.
(enlarge_archive): Preserve aliases rather than duplicating
their locrecs.

17 years ago* libio/genops.c (_IO_default_finish): Call _IO_lock_fini
Ulrich Drepper [Mon, 16 Apr 2007 23:29:46 +0000 (23:29 +0000)]
* libio/genops.c (_IO_default_finish): Call _IO_lock_fini

after _IO_un_link, not before it.

17 years ago* stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
Ulrich Drepper [Mon, 16 Apr 2007 23:28:39 +0000 (23:28 +0000)]
* 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.

17 years ago* libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
Ulrich Drepper [Mon, 16 Apr 2007 23:15:58 +0000 (23:15 +0000)]
* 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.

17 years ago(__underflow, __uflow, __overflow, __wunderflow, __wuflow, __woverflow, _IO_getc...
Ulrich Drepper [Mon, 16 Apr 2007 23:14:04 +0000 (23:14 +0000)]
(__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.

17 years ago* locale/programs/locarchive.c (show_archive_content): Fix sizeof
Jakub Jelinek [Mon, 16 Apr 2007 23:02:04 +0000 (23:02 +0000)]
* locale/programs/locarchive.c (show_archive_content): Fix sizeof

argument in xmalloc size computation.
2007-04-16  Jakub Jelinek  <jakub@redhat.com>

* locale/programs/locarchive.c (show_archive_content): Fix sizeof
argument in xmalloc size computation.

17 years ago* sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
Ulrich Drepper [Mon, 16 Apr 2007 20:42:23 +0000 (20:42 +0000)]
* sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use

math_opt_barrier and math_force_eval macros.

17 years ago[BZ #3306]
Ulrich Drepper [Mon, 16 Apr 2007 20:41:42 +0000 (20:41 +0000)]
[BZ #3306]

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.

17 years ago[BZ #3427]
Ulrich Drepper [Mon, 16 Apr 2007 20:15:57 +0000 (20:15 +0000)]
[BZ #3427]

2007-03-22  Jakub Jelinek  <jakub@redhat.com>
[BZ #3427]
* sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
exceptions both in SW and MXCSR.
* sysdeps/x86_64/fpu/feupdateenv.c: New file.
* sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
* sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
* sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
in MXCSR if SSE is available.
* sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
and ldsodefs.h.
(__feupdateenv): Query exceptions also from MXCSR if SSE is available.
Fix comment typo.
* sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
Return 0 rather than 1.
* sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
Remove incorrect part of a comment.  Fix argument to feraiseexcept.
* math/test-fenv.c (feholdexcept_tests): New function.
(main): Call it.

2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>

[BZ #3427]
* sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
in SW.

17 years ago(feholdexcept): Clear all exceptions in SW.
Ulrich Drepper [Mon, 16 Apr 2007 20:13:01 +0000 (20:13 +0000)]
(feholdexcept): Clear all exceptions in SW.

17 years ago[BZ #4344]
Jakub Jelinek [Fri, 13 Apr 2007 19:53:20 +0000 (19:53 +0000)]
[BZ #4344]

* elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
Reported by David Anderson <davea42@earthlink.net>.
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>.

17 years ago* posix/sys/wait.h: Remove unnecessary forward declaration.
Ulrich Drepper [Sat, 7 Apr 2007 18:21:35 +0000 (18:21 +0000)]
* posix/sys/wait.h: Remove unnecessary forward declaration.

17 years ago* tst-locale1.c: Avoid warnings.
Ulrich Drepper [Fri, 6 Apr 2007 22:19:54 +0000 (22:19 +0000)]
* tst-locale1.c: Avoid warnings.

* tst-locale2.c: Likewise.

17 years agoAvoid warnings.
Ulrich Drepper [Fri, 6 Apr 2007 22:19:46 +0000 (22:19 +0000)]
Avoid warnings.

17 years ago* nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
Jakub Jelinek [Thu, 5 Apr 2007 13:59:03 +0000 (13:59 +0000)]
* nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers

with obj->do_servers after first_shoot.
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.

17 years ago* bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
Ulrich Drepper [Wed, 4 Apr 2007 18:51:36 +0000 (18:51 +0000)]
* bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.

* sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
* posix/sched.h: Define CPU_COUNT.

17 years ago* posix/Makefile (routines): Add sched_cpucount.
Ulrich Drepper [Tue, 3 Apr 2007 23:29:18 +0000 (23:29 +0000)]
* posix/Makefile (routines): Add sched_cpucount.

(tests): Add tst-cpucount.
* posix/sched_cpucount.c: New file.
* posix/tst-cpucount.c: New file.
* posix/Versions: Export __sched_cpucount with version GLIBC_2.6.

17 years ago* posix/fnmatch.c (STRUCT): Define.
Ulrich Drepper [Sun, 1 Apr 2007 19:44:33 +0000 (19:44 +0000)]
* posix/fnmatch.c (STRUCT): Define.

(fnmatch): Pass NULL as last argument to internal_fn{,w}match.
* posix/fnmatch_loop.c (struct STRUCT): New type.
(FCT): Add ends argument.  If ends != NULL and normal * is
seen in the pattern, store current pattern and string pointers
and return.  Adjust recursive calls.
(EXT): Adjust FCT callers.
(STRUCT): Undef at the end of the file.
* posix/Makefile (tests): Add tst-fnmatch2.
* posix/tst-fnmatch2.c: New test.

17 years agoTest of fnmatch with patterns using lots of *.
Ulrich Drepper [Sun, 1 Apr 2007 19:43:35 +0000 (19:43 +0000)]
Test of fnmatch with patterns using lots of *.

17 years ago* sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
Jakub Jelinek [Sun, 1 Apr 2007 16:37:33 +0000 (16:37 +0000)]
* sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success

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

17 years ago* sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
Jakub Jelinek [Sun, 1 Apr 2007 16:35:03 +0000 (16:35 +0000)]
* sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):

Change last argument to unsigned int.
2007-04-01  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
Change last argument to unsigned int.

17 years ago* scripts/check-local-headers.sh: Filter out sys/capability.h.
Ulrich Drepper [Mon, 26 Mar 2007 20:41:09 +0000 (20:41 +0000)]
* 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.

17 years ago* sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
Ulrich Drepper [Mon, 26 Mar 2007 20:38:57 +0000 (20:38 +0000)]
* sysdeps/unix/sysv/linux/Versions: Move sync_file_range to

GLIBC_2.6.
* sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
Add sync_file_range.
Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.

17 years ago* sysdeps/powerpc/bits/atomic.h
Ulrich Drepper [Mon, 26 Mar 2007 20:16:39 +0000 (20:16 +0000)]
* sysdeps/powerpc/bits/atomic.h

[!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
[!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
(__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
(__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
(__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
(__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
* sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
(__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
(__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
* sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
(__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
(__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
(__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
(__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
(__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
(__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
(__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
(__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.

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

17 years ago007-03-20 Jakub Jelinek <jakub@redhat.com>
Ulrich Drepper [Mon, 26 Mar 2007 20:09:10 +0000 (20:09 +0000)]
007-03-20  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/powerpc/libc-start.c
(__cache_line_size): Define the variable here.  Add
attribute_hidden, remove weak_extern.
(__libc_start_main): Set __cache_line_size
unconditionally.
* sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
(__cache_line_size): Define the variable here.  Add
attribute_hidden, remove weak_extern.
(DL_PLATFORM_AUXV): Set __cache_line_size
unconditionally.
* sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
weak_extern, add attribute_hidden.
(__elf_machine_runtime_setup): Assume __cache_line_size is always
defined in ld.so.
* sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
definition.
* sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.

17 years ago(__cache_line_size): Define the variable here. Add attribute_hidden, remove weak_ext...
Ulrich Drepper [Mon, 26 Mar 2007 20:08:13 +0000 (20:08 +0000)]
(__cache_line_size): Define the variable here.  Add attribute_hidden, remove weak_extern. (__libc_start_main): Set __cache_line_size unconditionally.

17 years ago[BZ #4276]
Jakub Jelinek [Mon, 26 Mar 2007 12:57:50 +0000 (12:57 +0000)]
[BZ #4276]

* timezone/africa: Update from tzdata2007d.
* timezone/asia: Likewise.
* timezone/australasia: Likewise.
* timezone/backward: Likewise.
* timezone/europe: Likewise.
* timezone/iso3166.tab: Likewise.
* timezone/leapseconds: Likewise.
* timezone/northamerica: Likewise.
* timezone/southamerica: Likewise.
* timezone/zone.tab: Likewise.
* timezone/private.h: Update from tzcode2007d.
* timezone/zdump.c: Likewise.
* timezone/zic.c: Likewise.
2007-03-26  Jakub Jelinek  <jakub@redhat.com>

[BZ #4276]
* timezone/africa: Update from tzdata2007d.
* timezone/asia: Likewise.
* timezone/australasia: Likewise.
* timezone/backward: Likewise.
* timezone/europe: Likewise.
* timezone/iso3166.tab: Likewise.
* timezone/leapseconds: Likewise.
* timezone/northamerica: Likewise.
* timezone/southamerica: Likewise.
* timezone/zone.tab: Likewise.

* timezone/private.h: Update from tzcode2007d.
* timezone/zdump.c: Likewise.
* timezone/zic.c: Likewise.

17 years ago* nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
Jakub Jelinek [Wed, 21 Mar 2007 20:24:59 +0000 (20:24 +0000)]
* 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.
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.

17 years ago* configure.in (libc_cv_gnu89_inline): Only do compile test.
Jakub Jelinek [Tue, 20 Mar 2007 12:11:23 +0000 (12:11 +0000)]
* configure.in (libc_cv_gnu89_inline): Only do compile test.

* configure: Rebuilt.
* configure.in (libc_cv_gnu89_inline): Only do compile test.
* configure: Rebuilt.

17 years ago[BZ #2831]
Jakub Jelinek [Tue, 20 Mar 2007 12:10:36 +0000 (12:10 +0000)]
[BZ #2831]

* soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
bit-fields.
* soft-fp/extended.h (_FP_UNION_E): Likewise.
[BZ #2831]
* soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
bit-fields.
2007-03-20  Jakub Jelinek  <jakub@redhat.com>

* soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
bit-fields.
* soft-fp/extended.h (_FP_UNION_E): Likewise.

2006-06-07  Joseph Myers  <joseph@codesourcery.com>

[BZ #2831]
* soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
bit-fields.

17 years ago* nscd/gai.c: Include alloca.h.
Ulrich Drepper [Sun, 18 Mar 2007 17:55:52 +0000 (17:55 +0000)]
* nscd/gai.c: Include alloca.h.

(__libc_use_alloca): Define.

17 years ago* elf/dl-open.c (dl_open_worker): Declare l in 2 different
Ulrich Drepper [Sat, 17 Mar 2007 17:09:13 +0000 (17:09 +0000)]
* 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.

* include/dlfcn.h (struct link_map): New forward decl.

* inet/getnameinfo.c: Include stddef.h.
(getnameinfo): Use offsetof.

* time/tst-mktime2.c (do_test): Don't rely on signed wrap.

* stdio-common/vfprintf.c (_itoa): Undef before redefining.

* string/strerror_l.c: Include stdlib.h.

17 years ago* configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
Ulrich Drepper [Sat, 17 Mar 2007 17:04:28 +0000 (17:04 +0000)]
* configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.

* config.make.in (gnu89-inline-CFLAGS): New variable.
* Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
-std=gnu99.
* misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
* argp/argp.h: Use it.
* bits/mathinline.h: Likewise.
* bits/sigset.h: Likewise.
* bits/string.h: Likewise.
* ctype/ctype.h: Likewise.
* hurd/hurd.h: Likewise.
* hurd/hurd/fd.h: Likewise.
* hurd/hurd/port.h: Likewise.
* hurd/hurd/signal.h: Likewise.
* hurd/hurd/threadvar.h: Likewise.
* hurd/hurd/userlink.h: Likewise.
* io/sys/stat.h: Likewise.
* libio/bits/stdio.h: Likewise.
* libio/bits/stdio2.h: Likewise.
* mach/lock-intern.h: Likewise.
* mach/mach/mig_support.h: Likewise.
* math/bits/cmathcalls.h: Likewise.
* posix/bits/unistd.h: Likewise.
* socket/bits/socket2.h: Likewise.
* stdlib/bits/stdlib.h: Likewise.
* stdlib/stdlib.h: Likewise.
* string/argz.h: Likewise.
* string/bits/string2.h: Likewise.
* string/bits/string3.h: Likewise.
* sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
* sysdeps/generic/inttypes.h: Likewise.
* sysdeps/generic/machine-lock.h: Likewise.
* sysdeps/generic/machine-sp.h: Likewise.
* sysdeps/i386/fpu/bits/mathinline.h: Likewise.
* sysdeps/i386/i486/bits/string.h: Likewise.
* sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
* sysdeps/mach/alpha/machine-lock.h: Likewise.
* sysdeps/mach/alpha/machine-sp.h: Likewise.
* sysdeps/mach/i386/machine-lock.h: Likewise.
* sysdeps/mach/powerpc/machine-lock.h: Likewise.
* sysdeps/mach/powerpc/machine-sp.h: Likewise.
* sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
* sysdeps/s390/bits/string.h: Likewise.
* sysdeps/s390/fpu/bits/mathinline.h: Likewise.
* sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
* sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
* sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
* sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
* sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
* sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
* wcsmbs/bits/wchar2.h: Likewise.
* wcsmbs/wchar.h: Likewise.
* stdlib/gmp.h: Likewise.  Include <features.h> to get
__extern_inline definition.

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

17 years ago.
Ulrich Drepper [Thu, 15 Mar 2007 20:12:43 +0000 (20:12 +0000)]
.

17 years ago[BZ #3919]
Ulrich Drepper [Thu, 15 Mar 2007 20:10:51 +0000 (20:10 +0000)]
[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.

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

17 years ago[BZ #4101]
Ulrich Drepper [Thu, 15 Mar 2007 20:09:02 +0000 (20:09 +0000)]
[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.

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

17 years ago[BZ #4130]
Ulrich Drepper [Thu, 15 Mar 2007 20:06:22 +0000 (20:06 +0000)]
[BZ #4130]

* login/utmp_file.c (setutent_file): Use O_LARGEFILE for
open_not_cancel_2.
(updwtmp_file): Likewise.

17 years ago[BZ #4181]
Ulrich Drepper [Thu, 15 Mar 2007 20:05:19 +0000 (20:05 +0000)]
[BZ #4181]

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.

* 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.

17 years ago* Makefile: Define tst-sscanf-ENV.
Ulrich Drepper [Wed, 14 Mar 2007 22:32:50 +0000 (22:32 +0000)]
* Makefile: Define tst-sscanf-ENV.

* tst-sscanf.c: Use fa_IR.UTF-8 which exists internally.

17 years agoUse fa_IR.UTF-8 which exists internally.
Ulrich Drepper [Wed, 14 Mar 2007 22:32:31 +0000 (22:32 +0000)]
Use fa_IR.UTF-8 which exists internally.

17 years ago * sysdeps/alpha/fpu/s_llround.c: New file.
Richard Henderson [Wed, 14 Mar 2007 20:01:05 +0000 (20:01 +0000)]
    * sysdeps/alpha/fpu/s_llround.c: New file.

* sysdeps/alpha/fpu/s_llroundf.c: New file.
* sysdeps/alpha/fpu/s_lround.c: New file.
* sysdeps/alpha/fpu/s_lroundf.c: New file.
* sysdeps/alpha/fpu/s_round.c: New file.
* sysdeps/alpha/fpu/s_roundf.c: New file.
* sysdeps/alpha/fpu/s_trunc.c: New file.
* sysdeps/alpha/fpu/s_truncf.c: New file.
* sysdeps/alpha/fpu/s_llround.c: New file.
* sysdeps/alpha/fpu/s_llroundf.c: New file.
* sysdeps/alpha/fpu/s_lround.c: New file.
* sysdeps/alpha/fpu/s_lroundf.c: New file.
* sysdeps/alpha/fpu/s_round.c: New file.
* sysdeps/alpha/fpu/s_roundf.c: New file.
* sysdeps/alpha/fpu/s_trunc.c: New file.
* sysdeps/alpha/fpu/s_truncf.c: New file.

17 years ago* sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
Richard Henderson [Wed, 14 Mar 2007 17:44:14 +0000 (17:44 +0000)]
* sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.

* sysdeps/alpha/fpu/s_ceilf.c: Likewise.
* sysdeps/alpha/fpu/s_floor.c: Likewise.
* sysdeps/alpha/fpu/s_floorf.c: Likewise.
* sysdeps/alpha/fpu/s_rint.c: Likewise.
* sysdeps/alpha/fpu/s_rintf.c: Likewise.
* sysdeps/alpha/fpu/s_fmax.S: New file.
* sysdeps/alpha/fpu/s_fmaxf.S: New file.
* sysdeps/alpha/fpu/s_fmin.S: New file.
* sysdeps/alpha/fpu/s_fminf.S: New file.
* sysdeps/alpha/fpu/s_isnan.c: New file.
* sysdeps/alpha/fpu/s_isnanf.c: New file.
* sysdeps/alpha/fpu/s_llrint.c: New file.
* sysdeps/alpha/fpu/s_llrintf.c: New file.
* sysdeps/alpha/fpu/s_lrint.c: New file.
* sysdeps/alpha/fpu/s_lrintf.c: New file.
* sysdeps/alpha/fpu/s_nearbyint.c: New file.
* sysdeps/alpha/fpu/s_nearbyintf.c: New file.

* sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
(__fdimf, fdimf, __fdim, fdim): Remove.
(__signbitf, __signbit, __signbitl): Use gcc builtin if available.
(__isnanf, __isnan, __isnanl): New.
2007-03-14  Richard Henderson  <rth@redhat.com>

* sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
* sysdeps/alpha/fpu/s_ceilf.c: Likewise.
* sysdeps/alpha/fpu/s_floor.c: Likewise.
* sysdeps/alpha/fpu/s_floorf.c: Likewise.
* sysdeps/alpha/fpu/s_rint.c: Likewise.
* sysdeps/alpha/fpu/s_rintf.c: Likewise.

* sysdeps/alpha/fpu/s_fmax.S: New file.
* sysdeps/alpha/fpu/s_fmaxf.S: New file.
* sysdeps/alpha/fpu/s_fmin.S: New file.
* sysdeps/alpha/fpu/s_fminf.S: New file.
* sysdeps/alpha/fpu/s_isnan.c: New file.
* sysdeps/alpha/fpu/s_isnanf.c: New file.
* sysdeps/alpha/fpu/s_llrint.c: New file.
* sysdeps/alpha/fpu/s_llrintf.c: New file.
* sysdeps/alpha/fpu/s_lrint.c: New file.
* sysdeps/alpha/fpu/s_lrintf.c: New file.
* sysdeps/alpha/fpu/s_nearbyint.c: New file.
* sysdeps/alpha/fpu/s_nearbyintf.c: New file.

* sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
(__fdimf, fdimf, __fdim, fdim): Remove.
(__signbitf, __signbit, __signbitl): Use gcc builtin if available.
(__isnanf, __isnan, __isnanl): New.

17 years ago * sysdeps/ieee754/ldbl-128/Makefile: New file.
Richard Henderson [Wed, 14 Mar 2007 17:36:18 +0000 (17:36 +0000)]
    * sysdeps/ieee754/ldbl-128/Makefile: New file.

* sysdeps/ieee754/ldbl-128/Makefile: New file.

2007-03-13  Richard Henderson  <rth@redhat.com>

17 years ago * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding. ...
Richard Henderson [Wed, 14 Mar 2007 00:40:50 +0000 (00:40 +0000)]
    * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.

* sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
* sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
* sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
* sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
* sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
* sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.

2007-03-13  Richard Henderson  <rth@redhat.com>

17 years ago * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Use two
Richard Henderson [Tue, 13 Mar 2007 21:28:03 +0000 (21:28 +0000)]
    * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Use two

separate cfi regions for the two subsections.
2007-03-13  Richard Henderson  <rth@redhat.com>

* sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Use two
separate cfi regions for the two subsections.

17 years ago * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
Richard Henderson [Tue, 13 Mar 2007 21:25:16 +0000 (21:25 +0000)]
    * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.

* sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
* sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
* sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
Move to dl-auxv.h; initialize instead of extern weak.
(DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
weak symbol.
* sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
Extern instead of initialized.
        * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
* sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
* sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
* sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
Move to dl-auxv.h; initialize instead of extern weak.
(DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
weak symbol.
* sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
Extern instead of initialized.

2007-03-13  Richard Henderson  <rth@redhat.com>

17 years ago * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
Richard Henderson [Tue, 13 Mar 2007 16:05:44 +0000 (16:05 +0000)]
    * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for

__sigsuspend_nocancel.
2007-03-13  Richard Henderson  <rth@redhat.com>

* sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
__sigsuspend_nocancel.

17 years ago* sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
Ulrich Drepper [Tue, 6 Mar 2007 14:53:08 +0000 (14:53 +0000)]
* sysdeps/posix/getaddrinfo.c (get_scope): Correct test for

172.16/12 address range.

17 years ago* sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
Ulrich Drepper [Mon, 5 Mar 2007 20:32:32 +0000 (20:32 +0000)]
* 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.

17 years ago[BZ #4069]
Ulrich Drepper [Mon, 5 Mar 2007 19:40:18 +0000 (19:40 +0000)]
[BZ #4069]

17 years ago[BZ #4096]
Ulrich Drepper [Mon, 5 Mar 2007 19:38:56 +0000 (19:38 +0000)]
[BZ #4096]

2007-03-01  Jakub Jelinek  <jakub@redhat.com>
[BZ #4096]
* 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.

17 years ago* sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
Ulrich Drepper [Mon, 5 Mar 2007 19:35:17 +0000 (19:35 +0000)]
* sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h

from sysdep_headers.

17 years ago* time/tzfile.c (find_transition): Instead of a linear search try to
Ulrich Drepper [Mon, 5 Mar 2007 19:32:39 +0000 (19:32 +0000)]
* time/tzfile.c (find_transition): Instead of a linear search try to

guess the transition index, use a linear search if the result is at
most 10 transitions away from the guess or binary search otherwise.

17 years ago(find_transition): Instead of a linear search try to guess the transition index,...
Ulrich Drepper [Mon, 5 Mar 2007 19:32:03 +0000 (19:32 +0000)]
(find_transition): Instead of a linear search try to guess the transition index, use a linear search if the result is at most 10 transitions away from the guess or binary search otherwise.

17 years ago* sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
Jakub Jelinek [Tue, 27 Feb 2007 11:20:39 +0000 (11:20 +0000)]
* sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix

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

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

17 years ago* sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset refcntr in
Ulrich Drepper [Sun, 25 Feb 2007 21:44:22 +0000 (21:44 +0000)]
* sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset refcntr in

new thread, don't just decrement it.
Patch by Suzuki K P <suzuki@in.ibm.com>.

17 years ago* stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
Ulrich Drepper [Thu, 22 Feb 2007 00:45:40 +0000 (00:45 +0000)]
* stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions

and fix some typos.
Optimize use of TOLOWER.