* tst-robust9.c (do_test): Don't fail if ENABLE_PI and
[glibc.git] / ChangeLog
blob4b582368b81451668b3db1a72dbe2f9688c2eef3
1 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
3         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
4         the entry.
6         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7         handling to ...
8         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
9         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10         cacheinfo.
11         * sysdeps/x86_64/memcpy.S: Complete rewrite.
12         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
13         Patch by Evandro Menezes <evandro.menezes@amd.com>.
15         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
17 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
19         [BZ #4525]
20         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
21         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
22         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
24         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
26         [BZ #4514]
27         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
28         reinitialize workend at the start of each do_positional format spec
29         loop, free workstart before do_positional loops.
30         (printf_unknown): Fix size of work_buffer.
31         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
33         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
34         (public_sET_STATe): If ms->version < 3, put all chunks into
35         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
36         chunks.
38         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
39         * malloc/hooks.c: Likewise.
40         * malloc/arena.c: Likewise.
41         * malloc/malloc.c (do_check_malloc_state): Don't assert
42         n_mmaps is not greater than n_mmaps_max.  This removes the need
43         for the previous change.
45         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
46         2007-05-07 commit.
48 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
50         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
51         Define for kernel >= 2.6.22.
53 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
54         * elf/dl-close.c (_dl_close_worker): When removing object from
55         global scope, wait for all lookups to finish afterwards.
56         * elf/dl-open.c (add_to_global): When global scope array must
57         grow, allocate a new one and free old array only after all
58         lookups finish.
59         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
60         (_dl_lookup_symbol_x): Likewise.
61         * elf/dl-support.c: Define _dl_wait_lookup_done.
62         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
63         _dl_wait_lookup_done.
65         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
66         not overlapping with arena.
68         * malloc/mcheck.c (reallochook): If size==0, free the block.
70         * rt/tst-shm.c: Use fstat64 instead of fstat.
72         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
73         __NR_sync_file_range is not defined.
75 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
77         Dummy files to prevent stub versions from being used.
78         * sysdeps/x86_64/fpu/k_cosl.c: New file.
79         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
80         * sysdeps/x86_64/fpu/k_sinl.c: New file.
81         * sysdeps/x86_64/fpu/k_tanl.c: New file.
83         * version.h (VERSION): Set to 2.6.90.
85 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
87         * version.h (VERSION): Define to 2.6.
88         * include/features.h (__GLIBC_MINOR__): Define to 6.
90         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
92         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
93         sizes.
95 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
97         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
98         number of mmaps.  n_mmaps_max is the target.
99         * malloc/hooks.c: Likewise.
100         * malloc/arena.c: Likewise.
102 2007-05-12  Andreas Jaeger  <aj@suse.de>
104         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
105         getpid.
107 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
109         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
110         adding new variables.
112         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
113         optimize.  Completely extend global scope array before making the
114         new entries visible.
116 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
118         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
119         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
120         tst-getcpu.
122         * include/link.h: Move l_version and l_nversion members around to
123         fill gaps.
125         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
127         * sysdeps/unix/sysv/linux/sched_setaffinity.c
128         (__sched_setaffinity_new): If syscall was successful and
129         RESET_VGETCPU_CACHE is defined, use it before returning.
130         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
132         * io/sys/stat.h: Make sure struct timespec is defined for
133         __USE_ATFILE.
135         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
136         UTIME_OMIT.
137         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
138         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
139         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
140         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
141         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
142         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
143         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
144         * io/sys/stat.h: Declare utimensat, futimens.
145         * io/utimensat.c: New file.
146         * io/futimens.c: New file.
147         * sysdeps/unix/sysv/linux/utimensat.c: New file.
148         * sysdeps/unix/sysv/linux/futimens.c: New file.
149         * io/Makefile (routines): Add utimensat, futimens.
150         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
151         * sysdeps/unix/sysv/linux/lutimes.c: New file.
152         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
153         available.
155         * include/sys/cdefs.h: Redefine __nonnull so that test for
156         incorrect parameters in the libc code itself are not omitted.
158 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
160         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
161         exception in addition to inexact when asked to raise only FE_INEXACT.
163         [BZ #3427]
164         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
165         in *envp.
167 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
169         [BZ #4403]
170         * string/strfry.c (strfry): Make result more random.
172 2007-05-07  Richard Henderson  <rth@redhat.com>
174         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
175         if __NO_LONG_DOUBLE_MATH.
176         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
177         available in the compiler, add .arch directive to the assembly.
179 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
181         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
182         compat_symbol to GLIBC_2_1.
183         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
184         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
185         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
186         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
187         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
188         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
189         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
190         libc, not libm.
191         (__isnanl): New compat_symbol.
193 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
194             Jakub Jelinek  <jakub@redhat.com>
196         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
197         (new_heap): Initialize mprotect_size.
198         (grow_heap): When growing, only mprotect from mprotect_size till
199         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
200         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
202 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
203             Peter Bergner  <bergner@us.ibm.com>
205         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
206         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
207         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
208         * sysdeps/powerpc/fpu/fe_mask.c: New file.
209         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
210         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
211         Call __fe_mask_env() if all FP exceptions disabled.
212         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
213         from old FPSCR to new fenv to propagate DFP rounding modes.
214         Call __fe_mask_env() if FP exceptions previously enabled.
215         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
216         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
217         transitioning from all exceptions disabled to any exception enabled
218         or visa versa.
219         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
220         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
221         when transitioning from all exceptions disabled to any exception
222         enabled or visa versa.
223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
230 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
232         [BZ #4465]
233         * posix/unistd.h: Remove __THROW from fdatasync.
235 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
237         [BZ #4465]
238         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
240 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
242         * stdio-common/vfprintf.c (process_string_arg): Optimize
243         ridiculous precision in wide char code printing multi-byte string.
244         Reported by Jim Meyering <jim@meyering.net>.
246         [BZ #4131]
247         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
248         boundaries to work around systems with overlapping binary loading.
249         Based on a patch by Suzuki <suzuki@in.ibm.com>.
251 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
253         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
254         __mbsnrtowcs after last change.
256         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
257         (get_ident): Likewise.
259 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
261         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
262         with setting the sticky bit.
263         * math/test-misc.c (main): Add more truncation tests.
265 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
267         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
268         double in the function declaration.
269         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
270         double in the function declaration.
271         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
272         float in the function declaration.
273         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
274         float in the function declaration.
276         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
277         denormal operands.  Do not generate FP_EX_DENORM exception.
278         (FP_UNPACK_RAW_EP): Ditto.
279         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
280         undefined _FP_UNPACK_RAW_E.
281         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
282         undefined _FP_UNPACK_RAW_EP.
283         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
284         undefined _FP_PACK_RAW_E.
285         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
286         undefined _FP_PACK_RAW_EP.
288         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
289         _FP_FRAC_COPY_2.
290         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
291         _FP_FRAC_COPY_4.
293 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
294             Jakub Jelinek  <jakub@redhat.com>
296         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
297         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
298         this case.
299         * soft-fp/op-common.h (FP_TRUNC): Ditto.
301 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
303         * math/test-misc.c (main): Add tests for rounding long double
304         values close to smallest double denormalized value to double.
306 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
308         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
309         condition for truncating to 0.  Set sticky bit for such
310         truncation.
312 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
314         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
315         fixed length array for ignore.
317 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
319         [BZ #4438]
320         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
321         stack for large precisions.
322         * stdio-common/test-vfprintf.c (main): Add test for large
323         precision.
325 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
327         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
328         for exponent 0.
329         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
331         [BZ #4439]
332         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
333         account in the size check.
334         * resolv/tst-inet_ntop.c: New test.
335         * resolv/Makefile (tests): Add tst-inet_ntop.
337 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
338             Jakub Jelinek  <jakub@redhat.com>
340         [BZ #4349]
341         * malloc/malloc.c: Keep separate list for first blocks on the bin
342         lists with a given size.  This helps skipping over list elements
343         we know won't fit in two places.
344         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
346 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
348         [BZ #4102]
349         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
350         label to Teredo tunnel addresses 2001://32.
352 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
354         * locale/programs/ld-collate.c (collate_read): Allow order_start
355         after copy.
357         * locale/programs/ld-collate.c (collate_read): Fix printing of
358         error message.
360         [BZ #3213]
361         * locale/C-translit.h.in: Add entry for U2044.
363         [BZ #4342]
364         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
365         hexa-decimal floats without exponent.
366         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
368 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
370         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
371         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
372         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
373         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
374         GLIBC_2.6.
375         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
376         Add sched_getcpu.
378 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
380         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
381         of 0 after the out_fail label.
383 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
385         [BZ #4406]
386         * iconv/gconv_charset.h (strip): Allow ':'.
387         * iconv/iconv_open.c (iconv_open): Adjust comment.
389 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
391         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
392         version.
394 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
396         [BZ #4381]
397         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
398         alignment of buffer and tmp_buffer.
399         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
400         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
401         alignment of buffer.
402         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
403         bigger than INT_MAX.
404         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
405         h_errnop arguments.  Fail if buflen is too small.
406         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
408 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
410         [BZ #4405]
411         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
412         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
414 2007-04-22  Roland McGrath  <roland@redhat.com>
416         * elf/elf.h (NT_PRXFPREG): New macro.
418 2007-04-19  Andreas Jaeger  <aj@suse.de>
420         [BZ #3905]
421         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
422         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
423         Added.
425 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
427         * include/sys/mman.h: Mark madvise hidden.
428         * misc/madvise.c: Add libc_hidden_def.
430 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
432         * nis/nis_domain_of.c (__nis_domain_of): New function.
433         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
434         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
435         * nis/nis_call.c (rec_dirsearch): Likewise.
436         (first_shoot): Likewise.  Remove search_parent_first argument.
437         (struct nis_server_cache): Rename search_parent_first field
438         to search_parent.
439         (nis_server_cache_search, nis_server_cache_add): Rename
440         search_parent_first argument to search_parent.
441         (__nisfind_server): Likewise.  If search_parent, call
442         __nis_domain_of.
444 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
446         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
448 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
450         [BZ #4368]
451         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
453 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
455         [BZ #4364]
456         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
458 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
460         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
461         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
462         current number of locales in SUPPORTED.
463         (create_archive): Initialize serial.
464         (enlarge_archive): Preserve aliases rather than duplicating
465         their locrecs.
467 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
469         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
470         after _IO_un_link, not before it.
472         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
473         special case handling when wcp == wstartp + 1.  Fix a comment typo.
474         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
476 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
478         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
479         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
480         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
481         Remove __THROW.
482         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
483         _IO_file_xsgetn_maybe_mmap): Likewise.
484         * libio/oldfileops.c (old_do_write): Likewise.
485         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
486         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
487         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
488         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
489         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
490         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
491         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
492         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
493         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
494         _IO_file_underflow, _IO_file_underflow_mmap,
495         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
496         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
497         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
498         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
499         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
500         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
501         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
502         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
503         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
504         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
505         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
506         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
507         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
508         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
509         _IO_adjust_column_internal, _IO_default_uflow_internal,
510         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
511         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
512         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
513         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
514         _IO_file_close_it_internal, _IO_file_underflow_internal,
515         _IO_file_overflow_internal, _IO_file_attach_internal,
516         _IO_file_fopen_internal, _IO_file_sync_internal,
517         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
518         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
519         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
520         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
521         _IO_seekpos_unlocked): Likewise.
522         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
523         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
525 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
527         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
528         argument in xmalloc size computation.
530 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
532         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
533         math_opt_barrier and math_force_eval macros.
535 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
537         [BZ #3306]
538         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
539         * sysdeps/i386/fpu/math_private.h: New file.
540         * sysdeps/x86_64/fpu/math_private.h: New file.
541         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
542         math_force_eval macros.  Use "+m" constraint on asm rather than
543         "=m" and "m".
544         * math/s_nextafter.c (__nextafter): Likewise.
545         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
546         Likewise.
547         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
548         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
549         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
550         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
551         math_opt_barrier and math_force_eval macros.
552         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
553         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
554         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
555         (__nexttoward): Use math_opt_barrier and
556         math_force_eval macros.  Use "+m" constraint on asm rather than
557         "=m" and "m".  Only use asm to force double result if
558         FLT_EVAL_METHOD is 2.
559         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
560         (__nexttowardf): Use math_opt_barrier and
561         math_force_eval macros.  Use "+m" constraint on asm rather than
562         "=m" and "m".  Only use asm to force double result if
563         FLT_EVAL_METHOD is not 0.
564         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
565         (__nexttowardf): Use math_opt_barrier and
566         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
567         x to float using asm.
568         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
569         (__nldbl_nexttowardf): Use math_opt_barrier and
570         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
571         x to float using asm.
572         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
573         (__nexttowardf): Use math_opt_barrier and math_force_eval
574         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
575         * math/bug-nextafter.c (zero, inf): New variables.
576         (main): Add new tests.
577         * math/bug-nexttoward.c (zero, inf): New variables.
578         (main): Add new tests.
580 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
582         [BZ #3427]
583         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
584         exceptions both in SW and MXCSR.
585         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
586         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
587         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
588         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
589         in MXCSR if SSE is available.
590         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
591         and ldsodefs.h.
592         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
593         Fix comment typo.
594         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
595         Return 0 rather than 1.
596         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
597         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
598         * math/test-fenv.c (feholdexcept_tests): New function.
599         (main): Call it.
601 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
603         [BZ #3427]
604         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
605         in SW.
607 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
609         [BZ #4344]
610         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
611         Reported by David Anderson <davea42@earthlink.net>.
613 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
615         * posix/sys/wait.h: Remove unnecessary forward declaration.
617 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
619         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
620         with obj->do_servers after first_shoot.
622 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
624         * posix/Makefile (routines): Add sched_cpucount.
625         (tests): Add tst-cpucount.
626         * posix/sched_cpucount.c: New file.
627         * posix/tst-cpucount.c: New file.
628         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
629         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
630         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
631         * posix/sched.h: Define CPU_COUNT.
633 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
635         * posix/fnmatch.c (STRUCT): Define.
636         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
637         * posix/fnmatch_loop.c (struct STRUCT): New type.
638         (FCT): Add ends argument.  If ends != NULL and normal * is
639         seen in the pattern, store current pattern and string pointers
640         and return.  Adjust recursive calls.
641         (EXT): Adjust FCT callers.
642         (STRUCT): Undef at the end of the file.
643         * posix/Makefile (tests): Add tst-fnmatch2.
644         * posix/tst-fnmatch2.c: New test.
646 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
648         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
649         and 1 on failure.
651         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
652         Change last argument to unsigned int.
654 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
656         * scripts/check-local-headers.sh: Filter out sys/capability.h.
658 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
660         * config.h.in (HAVE_LIBCAP): Add.
661         * nscd/selinux.h: Include sys/capability.h rather than non-existent
662         sys/capabilities.h.
663         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
664         free_caps.  Cast away const from 4th cap_set_flag argument.
666 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
668         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
669         GLIBC_2.6.
670         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
671         Add sync_file_range.
672         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
674 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
676         * sysdeps/powerpc/bits/atomic.h
677         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
678         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
679         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
680         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
681         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
682         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
683         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
684         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
685         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
686         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
687         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
688         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
689         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
690         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
691         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
692         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
693         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
694         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
695         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
696         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
698 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
700         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
701         (__cache_line_size): Define the variable here.  Add
702         attribute_hidden, remove weak_extern.
703         (__libc_start_main): Set __cache_line_size
704         unconditionally.
705         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
706         (__cache_line_size): Define the variable here.  Add
707         attribute_hidden, remove weak_extern.
708         (DL_PLATFORM_AUXV): Set __cache_line_size
709         unconditionally.
710         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
711         weak_extern, add attribute_hidden.
712         (__elf_machine_runtime_setup): Assume __cache_line_size is always
713         defined in ld.so.
714         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
715         definition.
716         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
718 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
720         [BZ #4276]
721         * timezone/africa: Update from tzdata2007d.
722         * timezone/asia: Likewise.
723         * timezone/australasia: Likewise.
724         * timezone/backward: Likewise.
725         * timezone/europe: Likewise.
726         * timezone/iso3166.tab: Likewise.
727         * timezone/leapseconds: Likewise.
728         * timezone/northamerica: Likewise.
729         * timezone/southamerica: Likewise.
730         * timezone/zone.tab: Likewise.
732         * timezone/private.h: Update from tzcode2007d.
733         * timezone/zdump.c: Likewise.
734         * timezone/zic.c: Likewise.
736 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
738         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
739         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
740         variables.
741         (nis_server_cache_search, nis_server_cache_add): New functions.
742         (__nisfind_server): Use them.  Add dbp and flags argument, if
743         call __nisbind_create.
744         (__nisbind_create): Add server_used and current_ep arguments,
745         only call __nis_findfastest if server_used is ~0.
746         (__do_niscall2, __prepare_niscall): Adjust callers.
747         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
748         ckey_cache_euid, ckey_cache_lock): New variables.
749         (get_ckey): New function.
750         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
751         __pmap_getnisport.  Save __pmap_getnisport result in
752         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
753         key.
754         * nis/nis_lookup.c (nis_lookup): Likewise.
755         * nis/nis_table.c (nis_list): Likewise.
756         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
757         prototypes.
759         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
760         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
761         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
762         _nss_nisplus_getservbyport_r): Likewise.
763         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
764         _nss_nisplus_getnetbyaddr_r): Likewise.
765         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
766         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
767         _nss_nisplus_getntohost_r): Likewise.
768         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
769         _nss_nisplus_getrpcbynumber_r): Likewise.
771 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
773         * configure.in (libc_cv_gnu89_inline): Only do compile test.
774         * configure: Rebuilt.
776         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
777         bit-fields.
778         * soft-fp/extended.h (_FP_UNION_E): Likewise.
780 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
782         [BZ #2831]
783         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
784         bit-fields.
786 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
788         * nscd/gai.c: Include alloca.h.
789         (__libc_use_alloca): Define.
791 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
793         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
794         smaller scopes.
795         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
796         (DL_DST_REQUIRED): Adjust user.
798         * include/dlfcn.h (struct link_map): New forward decl.
800         * inet/getnameinfo.c: Include stddef.h.
801         (getnameinfo): Use offsetof.
803         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
805         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
807         * string/strerror_l.c: Include stdlib.h.
809         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
810         * config.make.in (gnu89-inline-CFLAGS): New variable.
811         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
812         -std=gnu99.
813         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
814         * argp/argp.h: Use it.
815         * bits/mathinline.h: Likewise.
816         * bits/sigset.h: Likewise.
817         * bits/string.h: Likewise.
818         * ctype/ctype.h: Likewise.
819         * hurd/hurd.h: Likewise.
820         * hurd/hurd/fd.h: Likewise.
821         * hurd/hurd/port.h: Likewise.
822         * hurd/hurd/signal.h: Likewise.
823         * hurd/hurd/threadvar.h: Likewise.
824         * hurd/hurd/userlink.h: Likewise.
825         * io/sys/stat.h: Likewise.
826         * libio/bits/stdio.h: Likewise.
827         * libio/bits/stdio2.h: Likewise.
828         * mach/lock-intern.h: Likewise.
829         * mach/mach/mig_support.h: Likewise.
830         * math/bits/cmathcalls.h: Likewise.
831         * posix/bits/unistd.h: Likewise.
832         * socket/bits/socket2.h: Likewise.
833         * stdlib/bits/stdlib.h: Likewise.
834         * stdlib/stdlib.h: Likewise.
835         * string/argz.h: Likewise.
836         * string/bits/string2.h: Likewise.
837         * string/bits/string3.h: Likewise.
838         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
839         * sysdeps/generic/inttypes.h: Likewise.
840         * sysdeps/generic/machine-lock.h: Likewise.
841         * sysdeps/generic/machine-sp.h: Likewise.
842         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
843         * sysdeps/i386/i486/bits/string.h: Likewise.
844         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
845         * sysdeps/mach/alpha/machine-lock.h: Likewise.
846         * sysdeps/mach/alpha/machine-sp.h: Likewise.
847         * sysdeps/mach/i386/machine-lock.h: Likewise.
848         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
849         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
850         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
851         * sysdeps/s390/bits/string.h: Likewise.
852         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
853         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
854         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
855         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
856         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
857         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
858         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
859         * wcsmbs/bits/wchar2.h: Likewise.
860         * wcsmbs/wchar.h: Likewise.
861         * stdlib/gmp.h: Likewise.  Include <features.h> to get
862         __extern_inline definition.
864 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
866         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
867         NULL.
869         [BZ #3919]
870         * math/libm-test.inc (log_test): Test -Inf and NaN.
871         (log10_test, log1p_test, log2_test): Test -Inf.
872         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
873         FE_INVALID when argument is qNaN.
874         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
875         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
876         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
877         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
878         andb $1, %ah with testb $1, %ah, don't test for parity, instead
879         testb $4, %ah and jump if non-zero.
880         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
881         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
883         [BZ #4101]
884         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
885         ancestors with the same depths.
886         Patch by Niels Moeller <nisse@lysator.liu.se>.
887         (filter_doc): Don't crash if argp is NULL.
888         * argp/Makefile (tests): Add tst-argp2.
889         * argp/tst-argp2.c: New test.
891         [BZ #4130]
892         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
893         open_not_cancel_2.
894         (updwtmp_file): Likewise.
896         [BZ #4181]
897         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
898         (inet6_opt_append): Don't check extlen is big enough if extbuf
899         is NULL.
900         (inet6_opt_finish): Likewise.
901         * inet/Makefile (tests): Add test-inet6_opt.
902         * inet/test-inet6_opt.c: New test.
904         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
905         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
906         NLMSG_ERR.  Instead use a page sized buffer.
907         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
908         buffer.
910 2007-03-14  Richard Henderson  <rth@redhat.com>
912         * sysdeps/alpha/fpu/s_llround.c: New file.
913         * sysdeps/alpha/fpu/s_llroundf.c: New file.
914         * sysdeps/alpha/fpu/s_lround.c: New file.
915         * sysdeps/alpha/fpu/s_lroundf.c: New file.
916         * sysdeps/alpha/fpu/s_round.c: New file.
917         * sysdeps/alpha/fpu/s_roundf.c: New file.
918         * sysdeps/alpha/fpu/s_trunc.c: New file.
919         * sysdeps/alpha/fpu/s_truncf.c: New file.
921         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
922         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
923         * sysdeps/alpha/fpu/s_floor.c: Likewise.
924         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
925         * sysdeps/alpha/fpu/s_rint.c: Likewise.
926         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
928         * sysdeps/alpha/fpu/s_fmax.S: New file.
929         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
930         * sysdeps/alpha/fpu/s_fmin.S: New file.
931         * sysdeps/alpha/fpu/s_fminf.S: New file.
932         * sysdeps/alpha/fpu/s_isnan.c: New file.
933         * sysdeps/alpha/fpu/s_isnanf.c: New file.
934         * sysdeps/alpha/fpu/s_llrint.c: New file.
935         * sysdeps/alpha/fpu/s_llrintf.c: New file.
936         * sysdeps/alpha/fpu/s_lrint.c: New file.
937         * sysdeps/alpha/fpu/s_lrintf.c: New file.
938         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
939         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
941         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
942         (__fdimf, fdimf, __fdim, fdim): Remove.
943         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
944         (__isnanf, __isnan, __isnanl): New.
946 2007-03-13  Richard Henderson  <rth@redhat.com>
948         * sysdeps/ieee754/ldbl-128/Makefile: New file.
950 2007-03-13  Richard Henderson  <rth@redhat.com>
952         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
953         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
954         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
955         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
956         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
957         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
959 2007-03-13  Richard Henderson  <rth@redhat.com>
961         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
962         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
963         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
964         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
965         Move to dl-auxv.h; initialize instead of extern weak.
966         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
967         weak symbol.
968         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
969         Extern instead of initialized.
971 2007-03-13  Richard Henderson  <rth@redhat.com>
973         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
974         __sigsuspend_nocancel.
976 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
978         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
979         172.16/12 address range.
981 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
983         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
984         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
985         message.
987 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
989         [BZ #4069]
990         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
991         earlier.
992         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
994         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
995         for x qNaN and y either +-inf or non-integer value.
996         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
997         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
998         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
1000 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
1002         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
1003         from sysdep_headers.
1005 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
1007         * time/tzfile.c (find_transition): Instead of a linear search try to
1008         guess the transition index, use a linear search if the result is at
1009         most 10 transitions away from the guess or binary search otherwise.
1011 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
1013         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
1014         memory reallocation.
1016 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
1018         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
1019         and fix some typos.
1020         Optimize use of TOLOWER.
1022         [BZ #3325]
1023         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
1024         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
1025         * sysdeps/i386/fpu/e_fmod.S: Likewise.
1027         [BZ #3458]
1028         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
1029         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
1031         [BZ #4076]
1032         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
1033         (open_dir_stream): Likewise.
1034         * io/Makefile (tests): Add bug-ftw5.
1035         * io/bug-ftw5.c: New file.
1037         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
1038         * nscd/servicescache.c (cache_addserv): Likewise.
1040         * nscd/grpcache.c (cache_addgr): In case a record changed on
1041         refresh, adjust key_copy.
1043         [BZ #4074]
1044         * nscd/pwdcache.c (cache_addpw): In case a record changed on
1045         refresh, adjust key_copy.
1047         [BZ #4070]
1048         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
1049         special cases.
1050         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
1052 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
1054         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
1055         optimization.
1057         * stdio-common/vfscanf.c: Small cleanups throughout.
1059 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
1061         [BZ #3325]
1062         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
1063         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
1064         * sysdeps/i386/fpu/e_fmod.S: Likewise.
1065         Patch by Jared Casper <jaredcasper@gmail.com>.
1067         * sysdeps/unix/closedir.c: Outside libc don't use locking.
1068         * sysdeps/unix/opendir.c: Likewise.
1069         * sysdeps/unix/readdir.c: Likewise.
1071         [BZ #2211]
1072         * stdio-common/vfscanf.c: Handle localized digits etc for floating
1073         point numbers.
1074         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
1076         * stdio-common/vfscanf.c: Fix problems in width accounting.
1077         * stdio-common/tst-sscanf.c (double_tests): New tests.
1078         (main): Hook them up.
1080         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
1081         More simplifications of floating-point reader.
1083         * stdio-common/Makefile (tests): Add tst-swscanf.
1084         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
1085         testing.
1086         * stdio-common/tst-swscanf.c: New file.
1088 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
1090         [BZ #2633]
1091         * libio/stdio.h: Define struct _IO_FILE in global namespace.
1092         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
1093         Remove using for __jmp_buf_tag.
1094         * locale/locale.h (struct lconv): Also define in std namespace.
1095         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
1097         [BZ #3842]
1098         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
1099         using __libc_enable_secure.
1101         [BZ #3818]
1102         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
1104         [BZ #3745]
1105         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
1106         of names for ellipsises.
1108         [BZ #3348]
1109         * malloc/memusage.sh: Cleanups.
1110         * debug/xtrace.sh: Quoting and trap changes.
1112 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
1114         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
1116         * locale/iso-3166.def: Update entry for Serbia.
1117         * locale/iso-4217.def: Define RSD, remove CSD.
1119         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
1120         and 64-bit operations.
1122         [BZ #4040]
1123         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
1124         16-bit operations.
1126         * nscd/nscd.c (parse_opt): One more conversion to use send instead
1127         of writev.
1129 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
1131         [BZ #3991]
1132         * assert/assert.h (assert): Simplify.
1133         (assert_perror): Likewise.
1134         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
1136         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
1137         reqdata.
1139         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
1140         change: don't pass NULL in place of an integer.
1142 2007-02-02  Bruno Haible  <bruno@clisp.org>
1144         [BZ #3954]
1145         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
1146         Add mapping for U+327E.
1147         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
1148         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
1149         mapping of 0xD9 0xE8.
1150         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
1151         mapping of U+327E.
1152         Reported by Jungshik Shin <jungshik@google.com>.
1154         [BZ #3955]
1155         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
1156         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
1157         Reported by Jungshik Shin <jungshik@google.com>.
1159 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
1161         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
1162         byte variants.
1164         [BZ #4040]
1165         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
1166         byte variants.  Patch mostly be tom@tommay.net.
1168 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
1170         [BZ #3996]
1171         * posix/glob.c (attribute_hidden): Define if not defined.
1172         (glob): Unescape dirname, filename or username when needed and not
1173         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
1174         is NULL.  Handle unescaped [ in pattern without closing ].
1175         Don't pass GLOB_CHECK down to recursive glob for directories.
1176         (__glob_pattern_type): New function.
1177         (__glob_pattern_p): Implement using __glob_pattern_type.
1178         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
1179         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
1180         Remove unreachable code.
1181         * posix/globtest.sh: Add a couple of new tests.
1183 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
1185         * po/ru.po: Update from translation team.
1187 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
1189         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
1190         to the list of i486+ CPUs.
1191         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
1193 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
1195         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
1196         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
1197         references.
1199 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
1201         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
1203         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
1204         * resolv/res_mkquery.c: Define __res_nopt.
1205         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
1206         try adding EDNS0 record.
1207         * resolv/res_send.c (send_dg): If request failed with FORMERR and
1208         EDNS0 record was send make sure we don't try it again.
1209         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
1210         * include/resolv.h: Declare __res_nopt.
1212 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
1214         [BZ #3944]
1215         * time/strptime_l.c (__strptime_internal): Set have_mon for
1216         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
1217         have been computed from tm_yday and tm_year.  Don't crash
1218         in day_of_the_week or day_of_the_year if not have_mon
1219         and tm_mon contains bogus value.
1220         * time/Makefile (tests): Add tst-strptime3.
1221         * time/tst-strptime3.c: New test.
1223 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
1225         [BZ #3957]
1226         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
1227         bit for RE_HAT_LISTS_NOT_NEWLINE.
1228         (build_charclass_op): Remove bogus comment.
1229         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
1230         * posix/bug-regex27.c: New test.
1231         * posix/bug-regex28.c: New test.
1233 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
1235         * po/sv.po: Update from translation team.
1237 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
1239         * nscd/nscd_helper.c (open_socket): Minor size optimization.
1241 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
1243         * include/locale.h (__uselocale): Add libc_hidden_proto.
1244         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
1246         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
1247         gettimeofday.
1249 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
1251         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
1252         returning.
1253         (PTR_DEMANGLE): Real definition now that it's not the same as
1254         PRT_MANGLE anymore.
1255         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1257         * string/strerror_l.c: New file.
1258         * string/Makefile (routines): Add strerror_l.
1259         * string/string.h: Declare strerror_l.
1260         * string/Versions: Export strerror_l for GLIBC_2.6.
1262 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
1264         * nscd/nscd_helper.c (open_socket): Now takes request type and key
1265         as parameter.  Construct request record.  Try sending request
1266         before the first poll use, it usually succeeds.  Adjust all
1267         callers.
1268         * nscd/nscd-client.h: Define MAXKEYLEN.
1269         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
1271 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
1273         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
1274         from return value.
1275         * nscd/nscd_helper.c: Include string.h.
1276         (__nscd_cache_search): Remove const qualifier from return value.
1277         On strict alignment architectures check hash entry and data head
1278         alignment.
1279         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
1280         mmapped data during GC cycle contains garbage.  If
1281         __nscd_drop_map_ref fails, decrement mapped->counter when returning
1282         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
1283         dropped to 0.
1284         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1285         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1286         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
1287         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1288         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1290 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
1292         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
1294 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
1296         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
1297         names not numbers in cfi_*.
1299 2007-01-26  Andreas Jaeger  <aj@suse.de>
1301         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
1302         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
1303         Correct values of PER_HPUX and PER_OSF4.
1305 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
1307         * elf/dl-minimal.c: Undefine _itoa first.
1308         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
1309         * malloc/mtrace.c: Revert last change.
1310         * posix/wordexp.c: Likewise.
1312 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
1314         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
1315         and __geode__ to the list of i486+ CPUs.
1316         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
1318 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
1320         * stdio-common/_itoa.c: Include <limits.h>.
1321         * stdio-common/_itowa.c: Likewise.
1323 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
1325         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
1326         platforms.
1327         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
1328         64-bit platforms.
1329         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
1330         possible.
1331         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
1332         if possible.
1334         [BZ #3902]
1335         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
1336         * stdio-common/Makefile (tests): Add bug17.
1337         * stdio-common/bug17.c: New file.
1339 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
1341         * iconvdata/brf.c: New file.
1342         * iconvdata/testdata/BRF: New file.
1343         * iconvdata/testdata/BRF..UTF8: New file.
1344         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1345         * iconvdata/Makefile: Add rules to build BRF.
1346         * iconvdata/TESTS: Add BRF entry.
1347         * iconvdata/gconv-modules: Likewise.
1348         * iconvdata/tst-tables.sh: Likewise.
1350 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
1352         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
1353         type `long long int', not `long int'.
1354         (wcstoq): Likewise.
1356 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
1358         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
1359         of values on 64-bit platforms which are too large.
1361 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
1362             Joe Kerian  <jkerian@us.us.ibm.com>
1364         [BZ #2749]
1365         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
1366         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
1367         (__copysignl): Use signbit() for comparison.
1368         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
1369         SET_LDOUBLE_WORDS64.
1371         [BZ #2423, #2749]
1372         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
1373         (__ceill): Remove calls to fegetround(), fesetround().
1374         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
1375         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
1376         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
1378 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
1380         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
1382         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
1384 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
1386         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
1387         demangle pointer.
1388         * csu/libc-start.c: Likewise.
1390 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
1392         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
1393         really work anyway.
1395 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
1397         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
1398         users.
1399         (handle_request): Remove unnecessary tests.
1401         * nscd/cache.c (cache_add): Record the failure to add to the cache.
1403 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
1405         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
1406         workbits in semi-raw fraction.
1408         * math/test-misc.c: Add new tests.
1410 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
1412         * math/basic-test.c: Include test-skeleton.c.
1413         (TEST_TRUNC): Define.
1414         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
1415         (main): Rename to ...
1416         (do_test): ...this.  Run new tests.
1417         (TEST_FUNCTION): Define.
1419 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
1420             Joe Kerian  <jkerian@us.us.ibm.com>
1422         [BZ #2749]
1423         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
1424         handling for high words.
1425         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
1426         and overflow for infinity.
1428 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
1430         * nscd/connections.c (handle_request): Add a __builtin_expect.
1432         * nscd/connections.c (serv2db): Change type into structure which
1433         also says whether this is a request for data.  Renamed to
1434         servinfo.  All users changed.
1435         (handle_request): Much simpler test whether we should search the cache.
1437         * nscd/connections.c (handle_request): Fix thinko in selinux test
1438         invocation.
1440         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
1441         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
1442         it before getting dl_load_lock and then relock.
1443         (_dl_lookup_symbol_x): Pass flags to add_dependency.
1444         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
1445         case we unlocked the scope.
1446         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
1447         _dl_lookup_symbol_x in case we locked the scope.
1448         (_dl_profile_fixup): Likewise.
1449         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
1450         set DL_LOOKUP_SCOPE_LOCK.
1452 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
1454         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
1455         CFLAGS-getsrvbynpt_r.c.
1456         * nscd/getsrvbynm_r.c: New file.
1457         * nscd/getsrvbypt_r.c: New file.
1458         * nscd/nscd_getserv_r.c: New file.
1459         * nscd/servicescache.c: New file.
1460         * nscd/Makefile (routines): Add nscd_getserv_r.
1461         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
1462         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
1463         CFLAGS-getsrvbypt_r.c.
1464         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
1465         table.  Add entries for services database.
1466         * nscd/connections.c (serv2str): Mark as const.  Add entries for
1467         services database.
1468         (dbs): Add .reset_res and servdb initialization.
1469         (serv2db): Add entries for services database.
1470         (verify_persistent_db): Accept dbnr == servdb.
1471         (invalidate_cache): Rewrite database name recognition to use a table.
1472         Call res_init() if .reset_res is set for database.
1473         (handle_request): Add code to handle services database.
1474         * nscd/gai.c: Don't define __getservbyname_r.
1475         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
1476         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
1477         (serv_response_header): Define.
1478         (struct datahead): Add serv_response_header member.
1479         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
1480         using table.
1481         * nscd/nscd.conf: Add entries for services database.
1482         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
1483         Declare serv_iov_disabled.
1484         Declare addservbyname, readdservbyname, addservbyport, and
1485         readdservbyport.
1486         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
1487         (find_db): Fix error message.
1488         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
1489         __nscd_getservbyname_r, and __nscd_getservbyport_r.
1490         * nscd/selinux.c (perms): Add entries for services database.
1491         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
1492         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
1494         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
1495         * nscd/hstcache.c: Likewise.
1496         * nscd/pwdcache.c: Likewise.
1498         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
1499         computation of keylen.
1501         * include/string.h: Only redefine strndupa if this is really for
1502         libc code.
1504 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
1506         * nscd/nscd_gethst_r.c: Minor cleanups.
1508         * nscd/connections.c (handle_request): Check selinux permissions
1509         for all non-admin commands.
1511         * sysdeps/i386/i486/bits/atomic.h: Define
1512         atomic_compare_and_exchange_val_acq,
1513         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
1514         using __sync_* built-ins for gcc >= 4.1.
1515         * sysdeps/x86_64/bits/atomic.h: Likewise.
1517         [BZ #3840]
1518         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
1519         and .oS.d files.
1521 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
1523         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
1524         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
1525         (do_test): Check errno and exit(0) if ENOSYS.
1527 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
1529         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
1530         thousands separators.
1531         * stdlib/Makefile: Add rules to build and run tst-strtod4.
1532         * stdlib/tst-strtod4.c: New test.
1534         [BZ #3855]
1535         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
1536         hexadecimal digit should accept just the initial 0.
1537         * stdlib/tst-strtod2.c (tests): New variable.
1538         (do_test): Run several tests rather than just one.
1540 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
1542         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
1543         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
1545 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
1547         * io/fts.c: Make sure fts_cur is always valid after return from
1548         fts_read.
1549         Patch by Miloslav Trmac <mitr@redhat.com>.
1551 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
1553         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
1554         (R_MIPS_NUM): Bump by 1.
1556 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
1558         * posix/execvp.c: Include alloca.h.
1559         (allocate_scripts_argv): Renamed to...
1560         (scripts_argv): ... this.  Don't allocate buffer here nor count
1561         arguments.
1562         (execvp): Use alloca if possible.
1563         * posix/Makefile: Add rules to build and run tst-vfork3 test.
1564         * posix/tst-vfork3.c: New test.
1566 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
1568         * string/Makefile (tst-strxfrm2-ENV): Define.
1569         * stdlib/Makefile (tst-strtod3-ENV): Define.
1571 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
1573         * posix/getconf.c: Update copyright year.
1574         * nss/getent.c: Likewise.
1575         * iconv/iconvconfig.c: Likewise.
1576         * iconv/iconv_prog.c: Likewise.
1577         * elf/ldconfig.c: Likewise.
1578         * catgets/gencat.c: Likewise.
1579         * csu/version.c: Likewise.
1580         * elf/ldd.bash.in: Likewise.
1581         * elf/sprof.c (print_version): Likewise.
1582         * locale/programs/locale.c: Likewise.
1583         * locale/programs/localedef.c: Likewise.
1584         * nscd/nscd.c (print_version): Likewise.
1585         * debug/xtrace.sh: Likewise.
1586         * malloc/memusage.sh: Likewise.
1587         * malloc/mtrace.pl: Likewise.
1588         * debug/catchsegv.sh: Likewise.
1590 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
1592         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
1593         attempts.
1595 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
1597         * posix/wordexp.c: Remove some unnecessary tests.
1599 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
1601         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
1602         blacklist the group till after we look it up.
1604 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
1606         * include/atomic.h (atomic_forced_read): New macro.
1608 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1610         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
1612 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
1614         * nss/getXXbyYY_r.c: Include atomic.h.
1615         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
1616         add atomic_write_barrier () in between.
1618         * stdlib/Makefile (tests): Add tst-makecontext.
1619         * stdlib/tst-makecontext.c: New test.
1621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
1622         (__makecontext): Don't realign uc_mcontext.uc_regs.
1624 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
1626         * elf/dl-support.c: Include dl-procinfo.h.
1627         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
1628         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
1629         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
1630         Define.
1631         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
1632         hardcoded constants.
1633         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
1634         PPC_PLATFORM_* macros for array designators.
1636 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
1638         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
1639         names to the beginning.
1640         (_dl_powerpc_platforms): Add "power6x".
1641         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
1642         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
1643         (_DL_PLATFORMS_COUNT): Increase.
1644         (_dl_string_platform): Handle power6x case.
1645         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
1646         PPC_FEATURE_POWER6_EXT): Define.
1647         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
1649 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
1651         [BZ #3747]
1652         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
1653         [-2^31 .. 2^31) range.
1654         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
1655         targets.
1656         * stdlib/tst-rand48-2.c: New test.
1657         * stdlib/Makefile (tests): Add tst-rand48-2.
1659 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
1661         * misc/tst-pselect.c (do_test): Fix sigblock argument.
1663 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
1665         * misc/tst-pselect.c (do_test): Make sure the helper process is
1666         terminating when the test is aborted.
1668 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
1670         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
1671         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
1672         Handle relatime mount option.
1674         [BZ #2337]
1675         * libio/Makefile (tests): Add tst-setvbuf1.
1676         * libio/tst-setvbuf1.c: New file.
1678 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
1680         [BZ #2337]
1681         * libio/genops.c (__uflow): Fix a typo.
1682         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
1683         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
1684         the narrow buffer size.
1686 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
1688         [BZ #2337]
1689         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
1690         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
1691         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
1692         in _flags.
1693         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
1694         _IO_wstr_finish): Likewise.
1695         * libio/wmemstream.c (open_wmemstream): Likewise.
1696         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
1697         even for wide streams.
1699 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
1701         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
1702         kernel-features.h.
1704 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
1706         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
1707         separators also if no non-zero digits found.
1708         * stdlib/Makefile (tests): Add tst-strtod3.
1710 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
1712         [BZ #3632]
1713         * include/features.h: Fix comment about default value for
1714         _POSIX_C_SOURCE.
1716         [BZ #3664]
1717         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
1718         empty parsed strings.
1719         * stdlib/Makefile (tests): Add tst-strtod2.
1720         * stdlib/tst-strtod2.c: New file.
1722         [BZ #3673]
1723         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
1724         computation.
1725         * stdlib/Makefile (tests): Add tst-atof2.
1726         * stdlib/tst-atof2.c: New file.
1728         [BZ #3674]
1729         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
1730         correctly if removing trailing zero of hex-float.
1731         * stdlib/Makefile (tests): Add tst-atof1.
1732         * stdlib/tst-atof1.c: New file.
1734 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
1736         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
1737         Start searching for next comma at p rather than rest.
1738         * misc/Makefile (tests): Add tst-mntent2.
1739         * misc/tst-mntent2.c: New test.
1741         * misc/getusershell.c (initshells): Check for integer overflows.
1742         Make strings buffer one bigger as fgets always succeeds when second
1743         argument is 1.  Don't use calloc for shells array.  Disallow
1744         / as shell.
1746 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
1748         * malloc/memusage.c: Handle realloc with new size of zero and
1749         non-NULL pointer correctly.
1750         (me): Really write first record twice.
1751         (struct entry): Make format bi-arch safe.
1752         (dest): Write out more realloc statistics.
1753         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
1755 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
1757         * nis/nis_subr.c (nis_getnames): Revert last change.
1759 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
1761         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
1762         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
1763         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
1764         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
1765         ENOTTY.
1766         * io/Makefile: Add rules to build and run tst-ttyname_r test.
1767         * io/tst-ttyname_r.c: New test.
1769 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1771         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
1773 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
1775         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
1776         jump table entries.
1778 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
1780         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
1781         `clone' function to ensure proper unwinding stop of gdb.
1782         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1784 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
1786         * nscd/nscd.init: Remove obsolete and commented-out -S option
1787         handling.
1789 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
1791         [BZ #3514]
1792         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
1794         [BZ #3515]
1795         * manual/string.texi (strtok): Remove duplicate paragraph.
1797 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1799         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
1800         libgcc not supporting `rflags' unwinding (register # >= 17).
1802 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
1804         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
1805         succeeded.
1807 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
1808             Jakub Jelinek  <jakub@redhat.com>
1809             Jan Kratochvil  <jan.kratochvil@redhat.com>
1811         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
1812         unwind information.
1813         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
1814         'restore_rt' even in the 'signal' directory.
1815         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
1817 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
1819         [BZ #3559]
1820         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
1821         malloc crashed.  Don't allocate memory unnecessarily in each
1822         loop.
1824 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
1826         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
1828 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
1830         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
1832 2006-11-18  Bruno Haible  <bruno@clisp.org>
1834         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
1835         __sysconf only after having tried to call getgroups32.
1837 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
1839         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
1840         addresses for IPv4 queries if they can be mapped.
1842 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
1844         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
1845         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
1846         (signmask): Add .size directive.
1847         (othermask): Add .type directive.
1849 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
1851         * po/nl.po: Update from translation team.
1853         * timezone/zdump.c: Redo fix for BZ #3137.
1855 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
1857         * nss/nss_files/files-alias.c (get_next_alias): Set line back
1858         to first_unused after parsing :include: file.
1860 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
1862         * timezone/africa: Update from tzdata2006o.
1863         * timezone/antarctica: Likewise.
1864         * timezone/asia: Likewise.
1865         * timezone/australasia: Likewise.
1866         * timezone/backward: Likewise.
1867         * timezone/europe: Likewise.
1868         * timezone/iso3166.tab: Likewise.
1869         * timezone/northamerica: Likewise.
1870         * timezone/southamerica: Likewise.
1871         * timezone/zone.tab: Likewise.
1873         * time/tzfile.c (__tzfile_read): Extend to handle new file format
1874         on machines with 64-bit time_t.
1876         * timezone/checktab.awk: Update from tzcode2006o.
1877         * timezone/ialloc.c: Likewise.
1878         * timezone/private.h: Likewise.
1879         * timezone/scheck.c: Likewise.
1880         * timezone/tzfile.h: Likewise.
1881         * timezone/tzselect.ksh: Likewise.
1882         * timezone/zdump.c: Likewise.
1883         * timezone/zic.c: Likewise.
1885         [BZ #3483]
1886         * elf/ldconfig.c (main): Call setlocale and textdomain.
1887         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
1889         [BZ #3480]
1890         * manual/argp.texi: Fix typos.
1891         * manual/charset.texi: Likewise.
1892         * manual/errno.texi: Likewise.
1893         * manual/filesys.texi: Likewise.
1894         * manual/lang.texi: Likewise.
1895         * manual/maint.texi: Likewise.
1896         * manual/memory.texi: Likewise.
1897         * manual/message.texi: Likewise.
1898         * manual/resource.texi: Likewise.
1899         * manual/search.texi: Likewise.
1900         * manual/signal.texi: Likewise.
1901         * manual/startup.texi: Likewise.
1902         * manual/stdio.texi: Likewise.
1903         * manual/sysinfo.texi: Likewise.
1904         * manual/syslog.texi: Likewise.
1905         * manual/time.texi: Likewise.
1906         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1908         [BZ #3465]
1909         * sunrpc/clnt_raw.c: Minimal message improvements.
1910         * sunrpc/pm_getmaps.c: Likewise.
1911         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
1912         * nis/nis_print_group_entry.c: Likewise.
1913         * locale/programs/repertoire.c: Likewise.
1914         * locale/programs/charmap.c: Likewise.
1915         * malloc/memusage.sh: Likewise.
1916         * elf/dl-deps.c: Likewise.
1917         * locale/programs/ld-collate.c: Likewise.
1918         * libio/vswprintf.c: Likewise.
1919         * malloc/memusagestat.c: Likewise.
1920         * sunrpc/auth_unix.c: Likewise.
1921         * sunrpc/rpc_main.c: Likewise.
1922         * nscd/cache.c: Likewise.
1923         * locale/programs/repertoire.c: Unify output messages.
1924         * locale/programs/charmap.c: Likewise.
1925         * locale/programs/ld-ctype.c: Likewise.
1926         * locale/programs/ld-monetary.c: Likewise.
1927         * locale/programs/ld-numeric.c: Likewise.
1928         * locale/programs/ld-time.c: Likewise.
1929         * elf/ldconfig.c: Likewise.
1930         * nscd/selinux.c: Likewise.
1931         * elf/cache.c: Likewise.
1932         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
1934         [BZ #3451]
1935         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
1936         change atomic.
1937         (ceil): Likewise.
1939 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
1941         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
1942         if N is one bigger than return value.
1943         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
1944         and l1 last arguments, if buf is defined, verify the return value
1945         equals to strlen (buf) and verify no byte beyond passed length
1946         is modified.
1948 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
1950         * po/sv.po: Update from translation team.
1952 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
1954         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
1955         noinline attribute.
1957 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
1959         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
1960         noinline attribute.
1962         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
1963         Use __new_sys_siglist instead of _sys_siglist_internal as
1964         second macro argument.
1965         (_old_sys_siglist): Use declare_symbol_alias macro instead of
1966         strong_alias.
1968 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
1970         [BZ #3493]
1971         * posix/unistd.h (sysconf): Remove const attribute.
1973         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
1974         temporary or deprecated addresses.
1975         Patch by Sridhar Samudrala <sri@us.ibm.com>.
1977         * string/Makefile (tests): Add tst-strxfrm2.
1978         * string/tst-strxfrm2.c: New file.
1980 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
1982         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
1983         rather than r->r_brk.
1985 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
1987         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
1988         optimization even if needed > n.
1990         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
1991         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
1992         return false, otherwise return true.
1993         (cache_rpath): Return decompose_rpath return value.
1995 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
1997         * include/libc-symbols.h (declare_symbol): Rename to...
1998         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
1999         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
2000         .size directive.
2001         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
2002         changes.
2003         * sysdeps/gnu/siglist.c: Likewise.
2005 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
2007         * sysdeps/powerpc/fpu/bits/mathinline.h
2008         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
2009         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
2011 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
2013         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
2014         Update handling of cache descriptor 0x49 for new models.
2015         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
2016         Likewise.
2018 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
2020         * malloc/memusage.c (dest): Reset not_me back to false after
2021         printing statistics.
2023 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
2025         * configure.in: Work around ld --help change and avoid -z relro
2026         test completely if the architecture doesn't care about security.
2028 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
2030         * po/sv.po: Update from translation team.
2032 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
2034         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
2035         generate compatibility version.
2037 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
2039         * configure.in: Relax -z relro requirement a bit.
2041         * po/sv.po: Update from translation team.
2043 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2045         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
2046         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
2047         * elf/dl-close.c (_dl_close_worker): Likewise.
2048         * elf/dl-open.c (_dl_open_worker): Likewise.
2049         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
2051 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
2053         * configure.in: Require assembler support for visibility, compiler
2054         support for visibility and aliases, linker support for various -z
2055         options.
2056         * Makeconfig: Remove conditional code which now is unnecessary.
2057         * config.h.in: Likewise.
2058         * config.make.in: Likewise.
2059         * dlfcn/Makefile: Likewise.
2060         * elf/Makefile: Likewise.
2061         * elf/dl-load.c: Likewise.
2062         * elf/rtld.c: Likewise.
2063         * include/libc-symbols.h: Likewise.
2064         * include/stdio.h: Likewise.
2065         * io/Makefile: Likewise.
2066         * io/fstat.c: Likewise.
2067         * io/fstat64.c: Likewise.
2068         * io/fstatat.c: Likewise.
2069         * io/fstatat64.c: Likewise.
2070         * io/lstat.c: Likewise.
2071         * io/lstat64.c: Likewise.
2072         * io/mknod.c: Likewise.
2073         * io/mknodat.c: Likewise.
2074         * io/stat.c: Likewise.
2075         * io/stat64.c: Likewise.
2076         * libio/stdio.c: Likewise.
2077         * nscd/Makefile: Likewise.
2078         * stdlib/Makefile: Likewise.
2079         * stdlib/atexit.c: Likewise.
2080         * sysdeps/generic/ldsodefs.h: Likewise.
2081         * sysdeps/i386/dl-machine.h: Likewise.
2082         * sysdeps/i386/sysdep.h: Likewise.
2083         * sysdeps/i386/i686/memcmp.S: Likewise.
2084         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2085         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2086         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2088         * Makerules: USE_TLS support is now default.
2089         * tls.make.c: Likewise.
2090         * csu/Versions: Likewise.
2091         * csu/libc-start.c: Likewise.
2092         * csu/libc-tls.c: Likewise.
2093         * csu/version.c: Likewise.
2094         * dlfcn/dlinfo.c: Likewise.
2095         * elf/dl-addr.c: Likewise.
2096         * elf/dl-cache.c: Likewise.
2097         * elf/dl-close.c: Likewise.
2098         * elf/dl-iteratephdr.c: Likewise.
2099         * elf/dl-load.c: Likewise.
2100         * elf/dl-lookup.c: Likewise.
2101         * elf/dl-object.c: Likewise.
2102         * elf/dl-open.c: Likewise.
2103         * elf/dl-reloc.c: Likewise.
2104         * elf/dl-support.c: Likewise.
2105         * elf/dl-sym.c: Likewise.
2106         * elf/dl-sysdep.c: Likewise.
2107         * elf/dl-tls.c: Likewise.
2108         * elf/ldconfig.c: Likewise.
2109         * elf/rtld.c: Likewise.
2110         * elf/tst-tls-dlinfo.c: Likewise.
2111         * elf/tst-tls1.c: Likewise.
2112         * elf/tst-tls10.h: Likewise.
2113         * elf/tst-tls14.c: Likewise.
2114         * elf/tst-tls2.c: Likewise.
2115         * elf/tst-tls3.c: Likewise.
2116         * elf/tst-tls4.c: Likewise.
2117         * elf/tst-tls5.c: Likewise.
2118         * elf/tst-tls6.c: Likewise.
2119         * elf/tst-tls7.c: Likewise.
2120         * elf/tst-tls8.c: Likewise.
2121         * elf/tst-tls9.c: Likewise.
2122         * elf/tst-tlsmod1.c: Likewise.
2123         * elf/tst-tlsmod13.c: Likewise.
2124         * elf/tst-tlsmod13a.c: Likewise.
2125         * elf/tst-tlsmod14a.c: Likewise.
2126         * elf/tst-tlsmod2.c: Likewise.
2127         * elf/tst-tlsmod3.c: Likewise.
2128         * elf/tst-tlsmod4.c: Likewise.
2129         * elf/tst-tlsmod5.c: Likewise.
2130         * elf/tst-tlsmod6.c: Likewise.
2131         * include/errno.h: Likewise.
2132         * include/link.h: Likewise.
2133         * include/tls.h: Likewise.
2134         * locale/global-locale.c: Likewise.
2135         * locale/localeinfo.h: Likewise.
2136         * malloc/arena.c: Likewise.
2137         * malloc/hooks.c: Likewise.
2138         * malloc/malloc.c: Likewise.
2139         * resolv/Versions: Likewise.
2140         * sysdeps/alpha/dl-machine.h: Likewise.
2141         * sysdeps/alpha/libc-tls.c: Likewise.
2142         * sysdeps/generic/ldsodefs.h: Likewise.
2143         * sysdeps/generic/tls.h: Likewise.
2144         * sysdeps/i386/dl-machine.h: Likewise.
2145         * sysdeps/ia64/dl-machine.h: Likewise.
2146         * sysdeps/ia64/libc-tls.c: Likewise.
2147         * sysdeps/mach/hurd/fork.c: Likewise.
2148         * sysdeps/mach/hurd/i386/tls.h: Likewise.
2149         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
2150         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
2151         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
2152         * sysdeps/s390/libc-tls.c: Likewise.
2153         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2154         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2155         * sysdeps/sh/dl-machine.h: Likewise.
2156         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2157         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2158         * sysdeps/x86_64/dl-machine.h: Likewise.
2160         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
2161         split out locking and parameter checking.
2162         (_dl_close): Call _dl_close_worker after locking and checking.
2163         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
2164         _dl_close.
2165         * elf/Makefile: Add rules to build and run tst-thrlock.
2166         * elf/tst-thrlock.c:  New file.
2168         [BZ #3426]
2169         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
2170         reality.
2172         [BZ #3429]
2173         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
2174         we are sure we do not need it anymore for _dl_close.  Also move
2175         the asserts inside the lock region.
2176         Patch mostly by Suzuki <suzuki@in.ibm.com>.
2178 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
2180         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
2181         argument.
2182         (_dl_lookup_symbol_x): Adjust caller.
2184         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
2185         _ns_global_scope.
2186         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
2188         * elf/dl-libc.c: Revert l_scope name changes.
2189         * elf/dl-load.c: Likewise.
2190         * elf/dl-object.c: Likewise.
2191         * elf/rtld.c: Likewise.
2192         * elf/dl-close.c (_dl_close): Likewise.
2193         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
2194         always use __rtld_mrlock_{change,done}.  Always free old scope list
2195         here if not l_scope_mem.
2196         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
2197         change.  Never free scope list here.  Just __rtld_mrlock_lock before
2198         the lookup and __rtld_mrlock_unlock it after the lookup.
2199         * elf/dl-sym.c: Likewise.
2200         * include/link.h (struct r_scoperec): Remove.
2201         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
2202         with l_scope_mem and l_scoperec_lock with l_scope_lock.
2204 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
2206         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
2208 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
2210         * configure.in: Disable building profile libraries by default.
2212 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
2214         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
2215         as signed longs, check for x_base + pos overflow.
2216         * sunrpc/Makefile (tests): Add tst-xdrmem2.
2217         * sunrpc/tst-xdrmem2.c: New test.
2219 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
2221         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
2222         _dl_lookup_symbol_x code.
2224 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
2226         * elf/dl-runtime.c: Include sysdep-cancel.h.
2227         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
2228         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
2229         instead of catomic_* macros.
2230         * elf/dl-sym.c: Include sysdep-cancel.h.
2231         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
2232         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
2233         * elf/dl-close.c: Include sysdep-cancel.h.
2234         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
2235         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
2236         * elf/dl-open.c: Include sysdep-cancel.h.
2237         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
2238         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
2240 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
2242         [BZ #3313]
2243         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
2244         fastbin rather than end of fastbin array.
2246 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
2248         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
2249         body macro.
2250         * sysdeps/x86_64/bits/atomic.h
2251         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
2252         (catomic_decrement): Use correct body macro.
2254 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
2256         * include/atomic.h: Add a unique prefix to all local variables
2257         in macros.
2258         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
2260 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
2262         [BZ #3369]
2263         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
2264         and 7.
2266 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
2268         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
2270 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
2272         [BZ #3313]
2273         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
2274         determine highest fast bin to consolidate, always look into all of
2275         them.
2276         (do_check_malloc_state): Only require for empty bins for large
2277         sizes in main arena.
2279         * libio/stdio.h: Add more __wur attributes.
2281         * elf/dl-minimal.c (realloc): Optimize last patch.
2283 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
2285         [BZ #3352]
2286         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
2287         and use memcpy() if it does.
2289 2006-11-12  Andreas Jaeger  <aj@suse.de>
2291         [BZ #2510]
2292         * manual/search.texi (Hash Search Function): Clarify.
2293         (Array Search Function): Clarify.
2295 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
2297         [BZ #2830]
2298         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
2299         shifting.
2300         * math/atest-exp2.c (read_mpn_hex): Likewise.
2301         * math/atest-sincos.c (main): Likewise.
2303 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
2305         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
2306         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
2307         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
2308         version GLIBC_2.6.
2309         * Versions.def: Add GLIBC_2.6 for libc.
2311         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
2313         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
2315 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
2317         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
2319         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
2321         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
2322         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
2324 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
2326         * include/atomic.c: Define catomic_* operations.
2327         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
2328         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
2329         * malloc/memusage.c: Likewise.
2330         * gmon/mcount.c: Likewise.
2331         * elf/dl-close.c: Likewise.
2332         * elf/dl-open.c: Likewise.
2333         * elf/dl-profile.c: Likewise.
2334         * elf/dl-sym.c: Likewise.
2335         * elf/dl-runtime.c: Likewise.
2336         * elf/dl-fptr.c: Likewise.
2337         * resolv/res_libc.c: Likewise.
2339 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
2341         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
2342         components which lack them.
2344         * nis/nis_subr.c (nis_getnames): Make sure that we always return
2345         at least one entry consisting of the parameter concatenated with
2346         the domain.
2348 2006-10-10  Roland McGrath  <roland@frob.com>
2350         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
2351         * sysdeps/mach/hurd/futimes.c: Likewise.
2352         * sysdeps/mach/hurd/lutimes.c: Likewise.
2354 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
2355             Jakub Jelinek  <jakub@redhat.com>
2357         Implement reference counting of scope records.
2358         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
2359         from the list in objects which remain.  Always allocate new scope
2360         record.
2361         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
2362         don't resize, allocate a new one.
2363         * elf/dl-runtime.c: Update reference counters before using a scope
2364         array.
2365         * elf/dl-sym.c: Likewise.
2366         * elf/dl-libc.c: Adjust for l_scope name change.
2367         * elf/dl-load.c: Likewise.
2368         * elf/dl-object.c: Likewise.
2369         * elf/rtld.c: Likewise.
2370         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
2371         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
2372         Add l_scoperec_lock.
2373         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
2374         * sysdeps/generic/rtld-lowlevel.h: New file.
2376         * include/atomic.h: Rename atomic_and to atomic_and_val and
2377         atomic_or to atomic_or_val.  Define new macros atomic_and and
2378         atomic_or which do not return values.
2379         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
2380         Various cleanups.
2381         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2383         * po/sv.po: Update from translation team.
2385 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
2387         * Versions.def: Add GLIBC_2.6 to libpthread.
2389         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
2390         (versioned_symbol): Likewise.
2391         (compat_symbol): Likewise.
2393         * po/tr.po: Update from translation team.
2395 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
2397         * nis/Banner: Removed.  It's been integral part forever and the
2398         author info is incomplete anyway.
2399         * libio/Banner: Likewise.
2401         * nis/nis_table.c (nis_list): If __follow_path fails in the new
2402         code, make sure the nis_freeresult call doesn't crash and that the
2403         result is reported correctly.
2405 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
2407         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
2408         when callback is NULL.
2410         * nis/Versions (libnss_nisplus): Add
2411         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
2412         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
2413         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
2414         _nss_create_tablename): Rename to...
2415         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
2416         ... these.  No longer static.
2417         (internal_setgrent): Adjust users.
2418         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
2419         Don't use locking around _nss_grp_create_tablename call.
2420         * nis/nss_nisplus/nisplus-initgroups.c: New file.
2422 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
2424         * version.h (VERSION): Bump to 2.5.90 for new development tree.
2426 2006-10-06  Andreas Jaeger  <aj@suse.de>
2428         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
2430 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
2432         * po/pl.po: Update from translation team.
2434         * nscd/nscd.c (main): Fix typo in message.
2435         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
2437 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
2439         [BZ #3291]
2440         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
2441         errno.h, signal.h, unistd.h and sysdep-cancel.h.
2442         (__sigprocmask): Define.
2444 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
2446         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
2447         used.
2449 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
2451         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
2452         in oldtotal and newtotal calculation.
2453         * nscd/nscd-client.h (struct mapped_database): Add datasize
2454         field.
2455         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
2456         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
2457         increased.
2458         (__nscd_cache_search): Add checks to make sure we never reference
2459         data beyond the current mapping.
2461 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2463         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
2464         variables const to avoid compiler warnings.
2466         * io/fts.c (fts_close): Remove redundant checks.
2467         (fts_build): Likewise.
2468         (fts_palloc): Likewise.
2470         * manual/message.texi (Advanced gettext functions,
2471         Using gettextized software): Fix typos.
2473 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
2475         * posix/glob.c (glob_in_dir): Add some comments and asserts to
2476         explain why there are no leaks.
2478 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
2480         * libio/wmemstream.c: Include <wchar.h>.
2481         * libio/bug-wmemstream1.c: Likewise.
2482         * libio/tst-wmemstream1.c: Likewise.
2483         * libio/tst-wmemstream2.c: Likewise.
2485         * version.h (RELEASE): Bump to 2.5.
2486         * README: Regenerated.
2488         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
2490         [BZ #3273]
2491         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
2492         found no group members.
2493         Patch by Petr Baudis.
2495 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
2497         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
2498         assert bootstrap_map.l_tls_modid is zero.
2499         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
2500         if USE___THREAD.
2502 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
2504         * libio/stdio.h: Move open_wmemstream prototype to ...
2505         * wcsmbs/wchar.h: ... here.
2507 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
2509         [BZ #3252]
2510         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
2511         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
2512         __{,l}chown to handle the rest.
2513         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
2514         fchownat syscall and __ASSUME_32BITUIDS case inline, call
2515         __{,l}chown to handle the rest.
2516         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
2517         i386/fchownat.c.
2518         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
2519         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
2521         [BZ #3253]
2522         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
2523         time, rather allocate increasingly bigger arrays of pointers, if
2524         possible with alloca, if too large with malloc.
2526 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
2528         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
2530         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
2532 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
2534         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
2535         home addresses.
2536         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
2537         IFA_F_HOMEADDRESS flag for interfaces.
2538         * include/ifaddrs.h (struct in6addrinfo): Define
2539         in6ai_homeaddress.
2541 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
2543         [BZ #3225]
2544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
2545         PTR_DEMANGLE3): Define.
2546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
2547         PTR_DEMANGLE3): Likewise.
2548         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
2549         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
2550         Likewise.
2551         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
2553 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
2555         * po/libc.pot: Regenerated.
2556         * po/be.po: Updated.
2557         * po/ca.po: Likewise.
2558         * po/cs.po: Likewise.
2559         * po/da.po: Likewise.
2560         * po/de.po: Likewise.
2561         * po/el.po: Likewise.
2562         * po/en_GB.po: Likewise.
2563         * po/es.po: Likewise.
2564         * po/fi.po: Likewise.
2565         * po/fr.po: Likewise.
2566         * po/gl.po: Likewise.
2567         * po/hr.po: Likewise.
2568         * po/hu.po: Likewise.
2569         * po/ja.po: Likewise.
2570         * po/ko.po: Likewise.
2571         * po/nb.po: Likewise.
2572         * po/nl.po: Likewise.
2573         * po/pl.po: Likewise.
2574         * po/pt_BR.po: Likewise.
2575         * po/ru.po: Likewise.
2576         * po/rw.po: Likewise.
2577         * po/sk.po: Likewise.
2578         * po/sv.po: Likewise.
2579         * po/tr.po: Likewise.
2580         * po/zh_CN.po: Likewise.
2581         * po/zh_TW.po: Likewise.
2583         [BZ #3137]
2584         * iconv/iconv_prog.c (main): Fix spelling in error message.
2585         * iconv/iconvconfig.c (main): Likewise.
2586         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
2587         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
2588         * locale/programs/localedef.c (main): Likewise.
2589         * locale/programs/repertoire.c (repertoire_read): Likewise.
2590         * timezone/zdump.c (main): Likewise.
2591         * nscd/connections.c (handle_request): Fix spelling in log message.
2592         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
2594 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
2596         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
2597         interfaces.
2599 2006-09-20  Andreas Jaeger  <aj@suse.de>
2601         * math/libm-test.inc (lrint_test_upward): Fix typo.
2603 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
2605         [BZ #2592]
2606         * math/libm-test.inc (lrint_test_tonearest): New function.
2607         (lrint_test_towardzero): New function.
2608         (lrint_test_downward): New function.
2609         (lrint_test_upward): New function.
2610         (main): Run these new tests.
2611         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
2612         of values near to 0.
2613         (two52): Use double not long double.
2614         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
2615         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
2616         (two23): Use float not double.
2617         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
2618         (two23): Use float not double.
2619         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
2620         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
2621         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
2622         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
2624 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2626         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
2627         Cast sp to unsigned long to avoid compiler warning.
2628         Use __makecontext_ret function instead of a trampoline on the stack.
2629         (__makecontext_ret): New function.
2630         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
2632 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
2634         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
2635         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
2636         bits.
2638 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
2640         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
2641         sure no reference to the unloaded map's search list remains in the
2642         dependency's scope.
2644 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
2646         * elf/Makefile: Add rules to build and run unload7 test.
2647         * elf/unload7.c: New test.
2648         * elf/unload7mod1.c: New file.
2649         * elf/unload7mod2.c: New file.
2651 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
2653         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
2654         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
2655         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
2656         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
2657         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
2658         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
2659         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
2660         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
2661         PTRACE_GETEVENTMSG): Likewise.
2662         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
2663         values.
2665 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
2667         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
2668         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
2669         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
2670         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
2672 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
2674         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
2675         write '\0' to the fd.
2676         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
2677         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
2678         Change regs to unsigned long pointer from unsigned int, fix fscr
2679         offset.
2681 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
2683         * io/Makefile (CFLAGS-fstatat.c): Set.
2684         (CFLAGS-fstatat64.c): Likewise.
2685         (CFLAGS-mknodat.c): Likewise.
2687         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
2688         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
2689         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
2690         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
2692 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
2693             Steven Munroe  <sjmunroe@us.ibm.com>
2695         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
2696         names to the beginning.  Rename "cell" to "cellbe".
2697         (_dl_powerpc_platforms): New.
2698         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
2699         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
2700         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
2701         (_DL_HWCAP_PLATFORM): Define to new mask.
2702         (_dl_platform_string, _dl_string_platform): New functions.
2703         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
2704         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
2706 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
2708         [BZ #2526]
2709         * README.libm: Fix a thinko in sqrt algorithm description.
2711         [BZ #3143]
2712         * manual/string.texi (argz_delete): Fix prototype.
2713         Patch by <alpt@freaknet.org>.
2715 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
2717         [BZ #3138]
2718         * io/test-lfs.c (do_prepare): Give name_len type size_t.
2719         * io/tst-fcntl.c (do_prepare): Likewise.
2720         * posix/tst-exec.c (do_prepare): Likewise.
2721         * posix/tst-preadwrite.c (do_prepare): Likewise.
2722         * posix/tst-spawn.c (do_prepare): Likewise.
2723         * posix/tst-truncate.c (do_prepare): Likewise.
2724         * rt/tst-aio.c (do_prepare): Likewise.
2725         * rt/tst-aio64.c (do_prepare): Likewise.
2726         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
2727         size_t.
2729 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
2731         [BZ #2821]
2732         * time/mktime.c (guess_time_tm): Fix overflow detection.
2733         * time/Makefile (tests): Add bug-mktime1.
2734         * time/bug-mktime1.c: New file.
2736         [BZ #3189, #3188]
2737         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
2738         (mremap): Likewise.
2740 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
2742         [BZ #1006]
2743         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
2744         Ensure relocation doesn't clobber any bits outside of the
2745         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
2746         R_SPARC_HI22 and R_SPARC_H44.
2748         [BZ #2775]
2749         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
2750         (long) (MINSIZE + nb - old_size) is positive.
2752         * malloc/arena.c (grow_heap): When growing bail even if new_size
2753         is negative.
2755         [BZ #3155]
2756         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
2757         stack below r1.
2759 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
2761         * posix/regex_internal.c (re_string_reconstruct): Handle
2762         offset < pstr->valid_raw_len && pstr->offsets_needed case.
2763         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
2764         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
2765         re_string_context_at.
2766         * posix/Makefile: Add rules to build and run bug-regex26 test.
2767         * posix/bug-regex26.c: New test.
2769         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
2770         rather than col_sym_free.  Move seqp declaration earlier.
2772         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
2774 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
2776         * nscd/initgrcache.c (addinitgroupsX): Move any_success
2777         decl before first goto out.
2779 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
2781         * Makerules (shlib.lds): If have-hash-style, put .hash section
2782         at the end of the RO segment.
2784 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
2786         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
2787         style hash table format is used.
2789 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
2791         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
2792         randomization rather than before.
2793         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
2795 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
2797         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
2799         * malloc/malloc.c (_int_malloc): Use full list insert and not
2800         shortcut which assumes the list is empty for large requests
2801         too.
2803         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
2805 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
2807         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
2808         and offout arguments to the prototype.
2809         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
2810         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
2811         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
2812         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
2813         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
2814         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
2815         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
2816         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
2818 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
2820         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
2822         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
2823         dlopen parameters.
2825 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
2827         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
2828         only if herrno is NETDB_INTERNAL.  Handle errors other than
2829         ERANGE outside of the loops, handle TRY_AGAIN.
2831         * locale/programs/ld-ctype.c (translit_flatten): Issue error
2832         if other's ctype category was missing.
2833         * locale/programs/ld-collate.c (collate_read): Return if
2834         copy_locale's collate category is missing.
2836 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
2838         [BZ #2684]
2839         * malloc/malloc.c (public_rEALLOc): Try harder by using other
2840         arenas if allocation failed.
2841         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
2843 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
2845         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
2846         waste bins[0..1].
2847         (malloc_state): Reduce bins size by 2.
2848         (_int_malloc): Fix test for large enough buffer for early termination.
2849         When no unsorted block matches perfectly and an exiting block has
2850         to be split, use full list insert and not shortcut which assumes
2851         the list is empty.
2853         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
2854         failure.
2856 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
2858         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
2859         do anything.
2861         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
2862         symbol require exact match (these are PLTs).
2863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
2864         (_dl_ppc64_addr_sym_match): Likewise.
2866         [BZ #2683]
2867         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
2868         If symbol has a value use it.
2869         * elf/tst-dladdr1.c: New file.
2870         * elf/Makefile: Add rules to build and run tst-addr1.
2872 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
2874         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
2875         keeps failing and heap growth or new heap creation isn't
2876         successful either.
2877         * malloc/tst-malloc.c (main): Add new tests.
2879 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
2881         [BZ #2734]
2882         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
2883         as in the x86-64 code to use bswap.
2885 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
2887         [BZ #2680]
2888         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
2889         __USE_UNIX98.
2890         * posix/bits/unistd.h: Likewise.
2892 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
2894         [BZ #2751]
2895         * string/strchr.c: Add cast to avoid warning.
2897 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
2899         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
2900         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
2901         limit is needed to avoid the exploding of the address space
2902         requirement for secondary heaps.
2903         * malloc/arena.c (HEAP_MAX_SIZE): Define using
2904         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
2906 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
2908         [BZ #3018]
2909         * Makerules (depfiles): Handle extra-test-objs the same as
2910         extra-objs.
2911         (common-mostlyclean): Likewise.
2912         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
2913         instead.
2914         * elf/Makefile (extra-objs): Likewise.
2915         * stdlib/Makefile (extra-objs): Likewise.
2917 2006-08-14  Eric Blake  <ebb9@byu.net>
2919         [BZ #3044]
2920         * misc/error.h: Assume C89 or better.
2921         * misc/error.c: Likewise.
2923 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
2925         [BZ #3040]
2926         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
2927         __ASSUME_ATFCTS is defined.
2929 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
2931         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
2932         to sort in each call.
2934         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
2935         is empty simply return and use next service.
2936         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
2938         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
2939         tells us when not finding a charmap file is an error.
2940         * locale/programs/charmap.h: Adjust charmap_read prototype.
2941         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
2942         cannot find a charmap.
2943         * locale/programs/localedef.c (main): Adjust charmap_read call.
2945 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
2947         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
2948         sysdeps/posix/pause.c implementation instead.
2950 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
2952         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
2953         to EPERM.
2955 2006-08-13  Andreas Schwab  <schwab@suse.de>
2957         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
2958         Don't clobber caller's LRSAVE.
2959         (_dl_prof_resolve): Likewise.
2961 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
2963         [BZ #1996]
2964         * libio/memstream.c (open_memstream): Allocate initial buffer with
2965         calloc.
2966         * libio/wmemstream.c (open_wmemstream): Likewise.
2967         * libio/strops.c: Pretty printing.
2968         (_IO_str_overflow): Clear uninitialized part of the new buffer.
2969         (enlarge_userbuf): New function.
2970         (_IO_str_seekoff): Call it if seek position is larger than current
2971         buffer.
2972         * libio/wstrops.c: Likewise.
2973         * libio/vasprintf.c: Add comment as to why we do not have to use
2974         calloc instead of malloc to allocate initial buffer.
2975         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
2976         * libio/bug-memstream1.c: New file.
2977         * libio/bug-wmemstream1.c: New file.
2979 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
2981         * libio/wstrops.c: Remove dead macro definitions and comments.
2982         * libio/strops.c: Likewise.
2984         [BZ #2764]
2985         * login/utmpname.c (__utmpname): Remove unnecessary test.
2987 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
2989         [BZ #2832]
2990         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
2991         0s from integers.
2993 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
2995         [BZ #2987]
2996         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
2997         for CPU clocks.
2998         * sysdeps/unix/clock_settime.c: Add support for platform-specific
2999         setting of CPU clocks.
3001 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3003         [BZ #2841]
3004         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
3005         since C99 requires the result to promote to 'int' when uint_least8_t
3006         and uint_least16_t promote to 'int'.
3008 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
3010         [BZ #3013]
3011         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
3012         lenght of one output field, correct bitmask creation.
3013         * locale/programs/ld-time.c: Add alignment.
3015         [BZ #2997]
3016         * misc/error.c: Add space between program name and message if file
3017         name is missing.
3019 2006-08-03  Eric Blake  <ebb9@byu.net>
3021         [BZ #2998]
3022         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
3024 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
3026         * malloc/memusagestat.c: Silence warnings.
3028         * malloc/malloc.c: Dynamically size mmap treshold if the program
3029         frees mmaped blocks.
3030         Patch by Valerie Henson and Arjan van de Ven.
3032 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
3034         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
3035         __USE_GNU.
3037         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
3038         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
3039         (DEF): Don't put the var into .gnu.linkonce.r.* section.
3040         Only provide var definitions in strtol_l (or for *ull*
3041         in strtoll_l).
3043         * stdio-common/bug16.c (tests): New array.
3044         (do_tests): Allow the first hexadecimal digit
3045         to be 1, 2, 4 or 8.  Do 3 additional tests.
3047         * sysdeps/s390/fpu/libm-test-ulps: Update.
3049         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
3050         fchownat syscall if available.
3051         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
3052         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
3053         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
3055 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
3057         * nis/nis_xdr.c: Avoid some function calls.
3059 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
3060             Ulrich Drepper  <drepper@redhat.com>
3062         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
3063         short cut if only one name component is stripped away.
3065 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
3067         * nis/nis_call.c: Minor cleanups throughout.
3068         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
3069         (first_shoot): Add search_parent_first parameter.  Only if it is set
3070         search parent server first.
3071         If directory for table found through cold start cache is not the same
3072         as referenced in the cache, don't use it.
3073         (__nisfind_server): Take additional parameter.  Pass it on to
3074         first_shoot.
3075         (__prepare_niscall): Adjust __nisfind_server call.
3076         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
3077         * nis/nis_table.c: Adjust __nisfind_server call.
3078         * nis/nis_lookup.c: Likewise.
3079         (nis_lookup): Don't loop endlessly if name is reduced to ".".
3081 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
3083         [BZ #2182]
3084         * math/s_cacosh.c: Return values from positive branch.
3085         * math/s_cacoshf.c: Likewise.
3086         * math/s_cacoshl.c: Likewise.
3088         [BZ #2883]
3089         * sysvipc/sys/msg.h: Change return value to ssize_t.
3090         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3091         * sysvipc/msgrcv.c: Likewise.
3092         * include/sys/msg.h: Likewise.
3094         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
3095         test introduced in patch for bz #661.
3096         (getgrouplist): Simplify code a bit.  Don't allocate one additional
3097         element for NEWGROUPS.
3099         [BZ #2908]
3100         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
3101         'f', use '1' as leading digit not '\1'.
3102         * stdio-common/Makefile (tests): Add bug16.
3103         * stdio-common/bug16.c: New file.
3105         [BZ #2914]
3106         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
3107         and don't try to open it.  The patch introducing the macro
3108         contained a bug and used the same file name as the new file
3109         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
3110         this out completely.
3112         [BZ #2926]
3113         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
3114         Patch by Jerry James <Jerry.James@usu.edu>.
3116         * rt/Makefile (tests): Add tst-clock2.
3117         * rt/tst-clock2.c: New file.
3119         [BZ #2978]
3120         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
3121         function and its parameters and pass it to new thread.
3122         (__gai_notify): Add support for alternative waiting for completion.
3123         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
3124         waiting for completion.
3125         * resolv/getaddrinfo_a.c: Likewise.
3126         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
3127         waiting for completion is used.
3128         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
3129         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
3130         * resolv/gai_error.c: Likewise.
3131         * resolv/gai_sigqueue.c: Likewise.
3133 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
3135         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
3136         errno to EBADF and return MACH_PORT_NULL.
3138 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
3140         [BZ #2980]
3141         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
3143 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
3145         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
3146         walk them instead of the symbol table.
3148 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
3150         [BZ #2098]
3151         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
3152         status of NSS calls, not the number of returned entries.
3154         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
3155         request_key, keyctl.
3157 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
3159         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
3161 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
3163         * elf/tst-auditmod1.c: Fix typo in #error.
3165 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
3167         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
3169         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
3171 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
3173         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
3174         that the directory is empty even on non-POSIX filesystems.
3176 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
3178         * elf/dl-open.c (dl_open_worker): Add branch prediction.
3180         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
3181         the backend NSS module.  If backend setgrent call failed, don't have
3182         internal_setgrent fail.  Just remember this until it is needed.
3183         * nis/nss_compat/compat-pwd.c: Likewise.
3184         * nis/nss_compat/compat-spwd.c: Likewise.
3186 2006-07-30  Roland McGrath  <roland@redhat.com>
3188         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
3189         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
3190         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
3191         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
3193         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
3194         (nanosleep_not_cancel): New macro.
3195         (sigsuspend_not_cancel): new macro.
3196         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
3197         (do_sigsuspend): Define as inline.
3198         (__sigsuspend): Always use do_sigsuspend.
3199         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
3200         * include/signal.h: Declare __sigsuspend_nocancel.
3201         * sysdeps/posix/pause.c
3202         [! NO_CANCELLATION] (__pause_nocancel): New function.
3204         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
3205         * include/time.h (__nanosleep_nocancel): Likewise.
3207 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
3209         * locale/programs/localedef.c (add_to_readlist): Rename local
3210         variables to avoid confusion.
3212         * locale/programs/charmap.c (charmap_read): Emit error message if
3213         charmap couldn't be found or read.
3215 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
3217         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3218         __ASSUME_FUTEX_LOCK_PI.
3219         * include/time.h: Declare __nanosleep_nocancel.
3220         * include/unistd.h: Declare __pause_nocancel.
3222         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
3223         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
3224         get the __stack_chk_fail_local definition when it's needed.
3226 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
3228         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
3229         * dlfcn/bug-atexit3.c: New file.
3230         * dlfcn/bug-atexit3-lib.cc: New file.
3232         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
3233         used when the namespace is not the base namespace.
3235 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
3237         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
3238         (__new_exitfn): Bump it in every successful call.
3239         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
3240         more exit handlers, call them right away.
3241         * stdlib/exit.h: Declare __new_exitfn_called.
3243 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
3245         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
3246         calling registered handler.
3248         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
3249         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3250         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3251         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3252         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3253         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3254         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3255         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3257 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
3259         * elf/dl-lookup.c (dl_new_hash): New functions.
3260         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
3261         value here.  Compute new-style hash value.  Pass new hash value
3262         and reference to variable with the old value to do_lookup_x.
3263         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
3264         old-style hash table.
3265         (_dl_debug_bindings): Pass new hash value and reference to variable
3266         with the old value to do_lookup_x.
3267         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
3268         new-style hash value and change old-style hash value parameter to
3269         be a reference.  Reoganize functions to determine whether
3270         new-style hash table is available.  Only fall back on old-style
3271         table.  If old-style hash value is needed, compute it here.
3272         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
3273         entry.
3274         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
3275         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
3276         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
3277         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
3278         * Makeconfig: If linker supports --hash-style option add it to all
3279         linker command lines to build DSOs.
3280         * config.make.in: Define have-hash-style.
3281         * configure.in: Test whether linker supports --hash-style option.
3283         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
3284         * sysdeps/generic/ldsodefs.h: Adjust prototype.
3286 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
3288         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
3289         auditing.
3291         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
3292         RPATH of main map twice.
3294 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
3296         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
3297         look further, return original strings.
3298         (_nl_find_msg): Do not return found translation if the conversion
3299         failed.  Either signal the string is unusable or that something went
3300         wrong and the original should be used.
3302 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
3304         * string/_strerror.c (__strerror_r): Add __builtin_expect.
3306 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
3308         [BZ #2766]
3309         * misc/insremque.c (insque): Handle prev == NULL.
3310         * misc/Makefile (tests): Add tst-insremque.
3311         * misc/tst-insremque.c: New test.
3313 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
3315         [BZ #2792]
3316         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
3317         conflict with DL_DST_REQUIRED.
3319 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
3321         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
3322         match what Solaris does.
3324 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
3326         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
3327         local_setegid instead of seteuid and setegid.
3328         * sysdeps/generic/local-setxid.h: New file.
3329         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
3331         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
3333         * string/Makefile (tests): Add bug-envz1.
3334         * string/bug-envz1.c: New file.
3336 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
3338         * posix/regex_internal.c (re_string_skip_chars): If no character has
3339         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
3340         to the byte which couldn't be converted.
3341         (re_string_reconstruct): Don't clear valid_raw_len before calling
3342         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
3343         tip_context using re_string_context_at.
3344         * posix/Makefile: Add rules to build and run bug-regex25 test.
3345         * posix/bug-regex25.c: New test.
3347 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
3349         [BZ #2703]
3350         * string/envz.c (envz_strip): Correct erroneously reversed src
3351         and dest parameters to memmove() invocation.
3353 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
3355         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
3356         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
3357         to make sure the database has been already invalidated.
3358         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
3359         after the cache has been invalidated.  Use pthread_mutex_lock rather
3360         than pthread_mutex_trylock if fd != -1.
3361         * nscd/connections.c (invalidate_cache): Add fd argument, write
3362         response to fd if not calling prune_cache, pass fd to prune_cache.
3363         (handle_request): Adjust invalidate_cache caller.
3364         (nscd_run): Pass -1 as fd to prune_cache.
3366 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
3368         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
3369         the correct place.
3371 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
3373         * nscd/nscd.h (struct database_dyn): Add prunelock field.
3374         * nscd/cache.c (prune_cache): Take prunelock before starting the
3375         work.  Just return in case it is already taken.
3376         * nscd/connections.c (dbs): Initialize .prunelock.
3378 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
3380         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
3381         copying.  No need to allocate new array for group members.  Just
3382         move the pointers and update the size.
3384         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
3385         Avoid memory leak in case realloc fails.  Simplification for
3386         better code generation.
3388         Avoid deprecation warning because of libc_hidden_proto for
3389         inet6_option_alloc.
3390         * inet/inet6_option.c (option_alloc): Renamed from
3391         inet6_option_alloc.  Made static.
3392         (inet6_option_alloc): Now a simple wrapper around option_alloc.
3393         (inet6_option_append): Call option_alloc.
3394         * include/netinet/in.h: Remove libc_hidden_proto for
3395         inet6_option_alloc.
3397         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
3398         for cleanup when cb!=NULL [Coverity CID 233].
3400 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
3402         [BZ #2693]
3403         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
3404         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
3405         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
3406         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
3407         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
3408         and inet6_rth_getaddr.
3409         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
3410         array.
3411         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
3412         Mark inet6_option_* interfaces as deprecated.
3413         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
3414         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
3415         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
3416         inet6_rth_segments, and inet6_rth_getaddr.
3417         * inet/inet6_opt.c: New file.
3418         * inet/inet6_rth.c: New file.
3420         * inet/netinet/icmp6.h: Pretty printing.
3422         [BZ #2683]
3423         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
3425 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
3427         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
3428         doing it all here.  When server does not know the answer do not
3429         fail immediate, try parent first.
3431         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
3432         overflow test.
3434 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
3436         * nis/nis_call.c (__prepare_niscall): New function.  Split out
3437         from __do_niscall.
3438         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
3439         and exported.
3440         (__follow_path): New function.  Split out from nis_list.
3441         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
3442         _xdr_nis_result.
3443         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
3444         _xdr_nis_result.
3445         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
3446         and __follow_path.
3447         * nis/Versions: Export __prepare_niscall, __create_ib_request,
3448         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
3449         from libnsl for version GLIBC_PRIVATE.
3450         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
3451         Remove entry parameter from _nss_nisplus_parse_pwent and
3452         _nss_nisplus_parse_grent.
3453         * nis/nss_nisplus/nisplus-parser.c: Likewise.
3454         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
3455         again.  Rewrite getpwent handling to not use nis_first_entry and
3456         nis_next_entry.  Roll out own niscall handling.
3457         * nis/nss_nisplus/nisplus-grp.c: Likewise.
3459         * sunrpc/xdr_rec.c: Fix typo in comment.
3461 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
3463         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
3464         handling.
3466         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
3467         to allocate memory for my_pollfd.  Better initialization of
3468         cb_is_running.  Use TEMP_FAILURE_RETRY.
3470         * malloc/memusage.sh (memusageso): Add quotes.
3471         (memusagestat): Likewise.
3472         * debug/xtrace.sh (pcprofileso): Likewise.
3473         (pcprofiledump): Likewise.
3474         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
3475         replacement.
3476         * malloc/Makefile ($(objpfx)memusage): Likewise.
3478         * nis/nis_callback.c (__nis_create_callback): Calls to
3479         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
3480         asprintf call fails.
3482         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
3483         no uninitialized memory is passed to sendto.
3485 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
3487         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
3488         of snprintf+strdup.  Handle OOM.
3489         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
3490         cb->serv together.  Remove now obsolete free calls.
3491         (__nis_destroy_callback): Remove now obsolete free call.
3493 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
3495         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
3496         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
3497         and ULA respectively). Set precedence for IPv4 address to 10 as
3498         defined in RFC3484 for preferring IPv6.
3499         * posix/gai.conf: Update to match the new default tables.
3501 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
3503         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
3504         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
3505         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
3506         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
3508         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
3509         Removed.
3510         (init_nss_interface): Remove initialization of these variables.
3512 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
3514         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
3515         nis_free_directory forward to avoid duplication.
3517 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
3519         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
3520         rec_dirsearch returning NULL.
3521         (first_shoot): Handle __nis_finddirectory returning NULL.
3522         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
3524         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
3525         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
3527 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
3529         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
3530         pid changed.
3532 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
3534         * include/rpc/pmap_prot.h: Mark all functions as hidden.
3536         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
3537         * nscd/nscd_getgr_r.c: Likewise.
3539         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
3541         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
3542         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
3544         * stdlib/longlong.h (__clz_tab): Mark as hidden.
3546         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
3548         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
3550         * include/rpc/auth.h: Mark xdr_des_block_internal and
3551         xdr_opaque_auth_internal as hidden.
3553         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
3554         hidden.
3556         * include/rpc/xdr.h: Mark all _internal functions as hidden.
3558         * misc/getusershell.c (okshells): Don't use static initializers,
3559         do it dynamically.
3561         * stdlib/fmtmsg.c (keywords): Change type of len element to
3562         uint32_t to not waste space on 64bit machines.
3564         * locale/setlocale.c: Change _nl_category_names into a string.
3565         Add new _nl_category_name_idxs.  Change all users.
3566         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
3567         Declare _nl_category_name_idxs.
3568         * locale/findlocale.c: Adjust for _nl_category_names change.
3569         * locale/loadlocale.c: Likewise.
3570         * locale/newlocale.c: Likewise.
3571         * intl/dcigettext.c: Likewise.
3573         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
3574         (add_alias2): ...here.  New function.
3575         (__gconv_read_conf): Simplify builtin alias handling.
3576         (builtin_aliases): Convert to string to avoid relocations.
3577         * iconv/gconv_builtin.h: Add comment about correct formatting.
3579 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
3581         * resolv/res_debug.c (loc_ntoa): Make error const.
3583 2006-05-14  Andreas Schwab  <schwab@suse.de>
3585         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
3587 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
3589         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
3590         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
3591         sizeof (cpu_set_t).
3593 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
3595         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
3597         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
3599         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
3600         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
3602         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
3603         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
3605         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
3606         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
3607         xdr_cback_data.
3609         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
3610         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
3611         xdr_ypupdate_args.
3613         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
3614         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
3616         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
3617         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
3619         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
3620         * include/rpcsvc/nis_callback.h: New file.
3622         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
3623         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
3625         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
3626         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
3628         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
3629         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
3631         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
3632         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
3634         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
3635         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
3636         xdr_ypdelete_args.
3638         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
3639         __BEGIN_DECLS and __END_DECLS, the header is not installed.
3641         * nis/nis_error.c: Remove table of strings.  Use position
3642         independent mechanism.
3643         * nis/nis_error.h: New file.
3645 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
3647         * locale/programs/ld-time.c (time_finish): If wide era name or
3648         format aren't provided, set both wname and wformat to L"".
3650 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
3652         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
3653         results if the call was succesful.
3655         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
3657         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
3658         as hidden.
3660 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
3662         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
3664 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
3666         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
3667         caller makes sure this is not the case.
3668         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
3670 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
3672         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
3673         calls.
3675         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
3676         [Coverity CID 229, 230]
3678         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
3679         DGETTEXT calls.
3680         (hol_help): Likewise.  [Coverity CID 226, 227]
3682         * string/argz-replace.c (__argz_replace): Unconditionally call
3683         free on SRC.  [Coverity CID 225]
3685         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
3686         the return value of __nis_default_owner and __nis_default_group,
3687         it has been especially allocated.  [Coverity CID 224]
3689         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
3690         searchgroup and searchowner.  Significantly simplified.
3691         (__nis_default_owner): Remove duplication.  Do not locally copy the
3692         string before duplicating it.
3693         (__nis_default_group): Likewise.
3695         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
3696         we must clear the variable before calling __nisfind_server.
3698         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
3699         nis_getnames.  [Coverity CID 223]
3701         * locale/programs/locfile.c (locfile_read): Use alloca instead of
3702         xmalloc to allocate local repertoire name.  [Coverity CID 222]
3704         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
3705         allocate memory for the input to add_bytes.  [Coverity CID 221]
3707         * posix/wordexp.c (w_addword): Free word if realloc fails and it
3708         was allocated here.  [Coverity CID 219, 220]
3710         * posix/getconf.c (print_all): Free confstr data after printing.
3711         [Coverity CID 218]
3713         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
3714         list allocation fails.  [Coverity CID 215]
3716         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
3717         [Coverity CID 213]
3719         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
3720         string is NULL.  [Coverity CID 212]
3721         * argp/Makefile: Add rules to build and run bug-argp1.
3722         * argp/bug-argp1.c: New file.
3724         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
3725         end of string.
3726         * stdlib/canonicalize.c (__realpath): Likewise.
3728         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
3729         pointer.  [Coverity CID 206]
3731         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
3732         in statically linked code.
3733         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
3734         statically built code, be prepared to have no link map.
3735         [Coverity CID 205]
3737         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
3738         dgettext calls. [Coverity CID 204]
3740         * argp/argp-help.c (struct uparams): Remove valid member.  Change
3741         the one user.
3742         (uparam_names): Reduce size.  Avoid relative relocations.
3743         Moved to read-only segment.
3744         (fill_in_uparams): Update for new layout.
3746         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
3747         assumed to always be != NULL. [Coverity CID 202]
3749         * argp/argp-help.c (hol_entry_help): Remove some dead code
3750         [Coverity CID 200].
3752         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
3753         away a few more unconditional yperr2nss calls.
3754         (_nss_nis_getservbyname_r): Likewise.
3756 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
3758         * sysdeps/generic/ldsodefs.h: Remove support for non-core
3759         architectures.
3761         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
3762         that unused memory passed to sendto is nevertheless initialized.
3764         [BZ #2499]
3765         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
3766         possibly unaligned memory accesses.
3768         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
3769         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
3770         and __putlong respectively.  Correct buffer overflow check for
3771         NS_NOTIFY_OP.
3773         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
3775         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
3776         (send_dg): Rewrite error handling to be more compact and avoid
3777         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
3779         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
3781         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
3782         instead of ns_get16.
3783         (res_queriesmatch): Likewise.  Minor optimization.
3785         [BZ #2499]
3786         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
3787         __libc_res_nsend might reallocate the buffer for the answer.  In
3788         this case we have to reload the HP pointer.
3790 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
3792         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
3793         some branch prediction hints.
3795         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
3796         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3797         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3798         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3799         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3800         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3801         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3802         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3804 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3806         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
3807         by a GOT relocation to make Scrt1.o position independent.
3808         * sysdeps/s390/s390-64/elf/start.S: Likewise.
3810         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
3811         six system call parameters.
3812         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
3814 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
3816         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
3817         malloc&bzero.
3819         * sunrpc/svc_udp.c (BZERO): Remove definition.
3820         (CALLOC): Define.
3821         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
3823         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
3824         (des_SPtrans): Use uint32_t type.
3825         (des_skb): Likewise.
3827         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
3829 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
3831         [BZ #2509]
3832         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
3833         on 32-bit arches.
3835 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
3837         * locale/programs/ld-address.c (address_finish): Fix one more
3838         place where the iso639 array might be accessed beyond the limits.
3840 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
3842         * nis/nis_table.c (nis_list): Avoid clearing res twice before
3843         filling it for the first time.
3845         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
3846         Adjust all callers.
3847         Free res object content before returning.
3849         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
3851         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
3852         client->cl_auth.
3854         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
3855         cleanup for initial thread, just the free call on TVP.
3857         * nscd/gai.c (__getline): Define.
3860 See ChangeLog.16 for earlier changes.