1 2007-06-06 Jakub Jelinek <jakub@redhat.com>
4 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
6 * sysdeps/x86_64/ldbl2mpn.c: New file.
7 * sysdeps/ia64/ldbl2mpn.c: New file.
9 2007-07-01 Jakub Jelinek <jakub@redhat.com>
11 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
12 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
13 Return NULL if mmap failed instead of asserting it does not.
14 (calloc): Check for integer overflow.
16 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
19 2007-07-03 Jakub Jelinek <jakub@redhat.com>
22 * nis/nss-default.c: Include errno.h.
23 (init): Preserve errno.
25 2007-06-19 Ulrich Drepper <drepper@redhat.com>
27 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
29 (rtld_global_ro): Likewise.
31 2007-06-18 Jakub Jelinek <jakub@redhat.com>
33 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
34 Move PT_LOAD checking to...
35 (_dl_addr_inside_object): ... here, new function.
36 * elf/dl-sym.c (do_sym): If not l_contiguous,
37 call _dl_addr_inside_object.
38 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
39 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
40 * elf/dl-open.c (dl_open_worker): Likewise.
41 (_dl_addr_inside_object): New function if IS_IN_rtld.
42 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
43 holes are present or are PROT_NONE protected.
44 * include/link.h (struct link_map): Add l_contiguous field.
45 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
47 2007-06-18 Jakub Jelinek <jakub@redhat.com>
49 * elf/rtld.c (dl_main): Don't call init_tls more than once.
51 2007-06-19 Ulrich Drepper <drepper@redhat.com>
53 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
55 2007-06-13 Jakub Jelinek <jakub@redhat.com>
57 * include/link.h: Don't include rtld-lowlevel.h.
58 (struct link_map): Remove l_scope_lock.
59 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
60 (_dl_scope_free_list): New field (variable) in _rtld_global.
61 (DL_LOOKUP_SCOPE_LOCK): Remove.
62 (_dl_scope_free): New prototype.
63 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
64 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
65 (_dl_profile_fixup): Likewise.
66 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
67 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
68 THREAD_GSCOPE_RESET_FLAG around it.
69 * elf/dl-close.c (_dl_close_worker): Don't use
70 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
71 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
72 scopes were queued or if l_scope_mem has been abandoned.
73 * elf/dl-open.c (_dl_scope_free): New function.
74 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
75 * elf/dl-support.c (_dl_scope_free_list): New variable.
76 * elf/dl-lookup.c (add_dependency): Remove flags argument.
77 Remove DL_LOOKUP_SCOPE_LOCK handling.
78 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
80 * elf/dl-object.c (_dl_new_object): Don't use
81 __rtld_mrlock_initialize.
83 2007-06-09 Ulrich Drepper <drepper@redhat.com>
85 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
86 make sure gcc doesn't mess around with this.
88 2007-06-08 Ulrich Drepper <drepper@redhat.com>
90 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
92 2007-06-08 Jakub Jelinek <jakub@redhat.com>
94 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
95 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
97 2007-05-18 Ulrich Drepper <drepper@redhat.com>
99 * elf/dl-close.c (_dl_close_worker): When removing object from
100 global scope, wait for all lookups to finish afterwards.
101 * elf/dl-open.c (add_to_global): When global scope array must
102 grow, allocate a new one and free old array only after all
104 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
105 (_dl_lookup_symbol_x): Likewise.
106 * elf/dl-support.c: Define _dl_wait_lookup_done.
107 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
108 _dl_wait_lookup_done.
110 2007-06-05 Jakub Jelinek <jakub@redhat.com>
112 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
113 (__mpn_construct_long_double): Fix conversion where result ought
114 to be smaller than __LDBL_MIN__, or the low double should be
115 denormal. Fix decision where to negate low double - honor round
117 * stdio-common/tst-sprintf2.c: Include string.h.
118 (COMPARE_LDBL): Define.
119 (TEST): Also test whether a string hexadecimal float representation
120 can be parsed back to the number.
121 (main): Add a couple of further tests.
123 2007-06-04 Jakub Jelinek <jakub@redhat.com>
125 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
126 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
127 is non-zero, but smaller than 2 * __DBL_MIN__.
128 * stdio-common/tst-sprintf2.c: New test.
129 * stdio-common/Makefile (tests): Add tst-sprintf2.
131 2007-06-04 Jakub Jelinek <jakub@redhat.com>
133 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
134 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
135 Remove unreachable code at the end.
137 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
139 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
140 ldbl-128ibm in comment.
141 (fpclassifyl): Correct classification of denormals.
142 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
143 return value for MIN denormal. Rewrite using long double math too
144 correctly handle denormals and canonicalize the results.
146 2007-05-29 Ulrich Drepper <drepper@redhat.com>
148 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
149 of crashing. When this is the case or if the reply is malformed,
150 don't try to close the new file descriptor since it does not
152 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
154 2007-05-21 Ulrich Drepper <drepper@redhat.com>
156 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
157 as second parameter to handle_intel.
159 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
161 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
162 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
164 * sysdeps/x86_64/memcpy.S: Complete rewrite.
165 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
166 Patch by Evandro Menezes <evandro.menezes@amd.com>.
168 2007-05-21 Ulrich Drepper <drepper@redhat.com>
170 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
172 2007-05-21 Jakub Jelinek <jakub@redhat.com>
175 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
176 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
177 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
179 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
182 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
183 reinitialize workend at the start of each do_positional format spec
184 loop, free workstart before do_positional loops.
185 (printf_unknown): Fix size of work_buffer.
186 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
188 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
189 (public_sET_STATe): If ms->version < 3, put all chunks into
190 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
193 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
194 * malloc/hooks.c: Likewise.
195 * malloc/arena.c: Likewise.
196 * malloc/malloc.c (do_check_malloc_state): Don't assert
197 n_mmaps is not greater than n_mmaps_max. This removes the need
198 for the previous change.
200 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
203 2007-05-18 Ulrich Drepper <drepper@redhat.com>
205 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
206 not overlapping with arena.
208 * malloc/mcheck.c (reallochook): If size==0, free the block.
210 * rt/tst-shm.c: Use fstat64 instead of fstat.
212 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
213 __NR_sync_file_range is not defined.
215 2007-05-17 Ulrich Drepper <drepper@redhat.com>
217 Dummy files to prevent stub versions from being used.
218 * sysdeps/x86_64/fpu/k_cosl.c: New file.
219 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
220 * sysdeps/x86_64/fpu/k_sinl.c: New file.
221 * sysdeps/x86_64/fpu/k_tanl.c: New file.
223 2007-05-14 Ulrich Drepper <drepper@redhat.com>
225 * version.h (VERSION): Define to 6.
226 * include/features.h (__GLIBC_MINOR__): Likewise.
228 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
230 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
233 2007-05-13 Ulrich Drepper <drepper@redhat.com>
235 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
236 number of mmaps. n_mmaps_max is the target.
237 * malloc/hooks.c: Likewise.
238 * malloc/arena.c: Likewise.
240 2007-05-12 Andreas Jaeger <aj@suse.de>
242 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
245 2007-05-11 Ulrich Drepper <drepper@redhat.com>
247 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
248 adding new variables.
250 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
251 optimize. Completely extend global scope array before making the
254 2007-05-10 Ulrich Drepper <drepper@redhat.com>
256 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
257 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
260 * include/link.h: Move l_version and l_nversion members around to
263 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
265 * sysdeps/unix/sysv/linux/sched_setaffinity.c
266 (__sched_setaffinity_new): If syscall was successful and
267 RESET_VGETCPU_CACHE is defined, use it before returning.
268 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
270 * io/sys/stat.h: Make sure struct timespec is defined for
273 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
275 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
276 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
277 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
278 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
279 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
280 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
281 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
282 * io/sys/stat.h: Declare utimensat, futimens.
283 * io/utimensat.c: New file.
284 * io/futimens.c: New file.
285 * sysdeps/unix/sysv/linux/utimensat.c: New file.
286 * sysdeps/unix/sysv/linux/futimens.c: New file.
287 * io/Makefile (routines): Add utimensat, futimens.
288 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
289 * sysdeps/unix/sysv/linux/lutimes.c: New file.
290 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
293 * include/sys/cdefs.h: Redefine __nonnull so that test for
294 incorrect parameters in the libc code itself are not omitted.
296 2006-07-02 Jakub Jelinek <jakub@redhat.com>
298 * nscd/connections.c (sighup_pending): New variable.
299 (nscd_run): If sighup_pending, prune all 3 caches.
300 (sighup_handler): Don't prune caches here, rather just set
303 2007-05-09 Jakub Jelinek <jakub@redhat.com>
305 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
306 exception in addition to inexact when asked to raise only FE_INEXACT.
309 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
312 2007-05-07 Ulrich Drepper <drepper@redhat.com>
315 * string/strfry.c (strfry): Make result more random.
317 2007-05-07 Richard Henderson <rth@redhat.com>
319 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
320 if __NO_LONG_DOUBLE_MATH.
321 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
322 available in the compiler, add .arch directive to the assembly.
324 2007-05-07 Jakub Jelinek <jakub@redhat.com>
326 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
327 compat_symbol to GLIBC_2_1.
328 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
329 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
330 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
331 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
332 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
333 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
334 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
336 (__isnanl): New compat_symbol.
338 2007-05-07 Ulrich Drepper <drepper@redhat.com>
339 Jakub Jelinek <jakub@redhat.com>
341 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
342 (new_heap): Initialize mprotect_size.
343 (grow_heap): When growing, only mprotect from mprotect_size till
344 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
345 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
347 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
348 Peter Bergner <bergner@us.ibm.com>
350 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
351 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
352 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
353 * sysdeps/powerpc/fpu/fe_mask.c: New file.
354 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
355 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
356 Call __fe_mask_env() if all FP exceptions disabled.
357 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
358 from old FPSCR to new fenv to propagate DFP rounding modes.
359 Call __fe_mask_env() if FP exceptions previously enabled.
360 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
361 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
362 transitioning from all exceptions disabled to any exception enabled
364 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
365 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
366 when transitioning from all exceptions disabled to any exception
367 enabled or visa versa.
368 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
369 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
370 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
371 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
373 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
375 2007-05-06 Ulrich Drepper <drepper@redhat.com>
378 * posix/unistd.h: Remove __THROW from fdatasync.
380 2007-05-06 Mike Frysinger <vapier@gentoo.org>
383 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
385 2007-05-06 Ulrich Drepper <drepper@redhat.com>
387 * stdio-common/vfprintf.c (process_string_arg): Optimize
388 ridiculous precision in wide char code printing multi-byte string.
389 Reported by Jim Meyering <jim@meyering.net>.
392 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
393 boundaries to work around systems with overlapping binary loading.
394 Based on a patch by Suzuki <suzuki@in.ibm.com>.
396 2007-05-04 Ulrich Drepper <drepper@redhat.com>
398 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
399 __mbsnrtowcs after last change.
401 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
402 (get_ident): Likewise.
404 2007-05-03 Jakub Jelinek <jakub@redhat.com>
406 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
407 with setting the sticky bit.
408 * math/test-misc.c (main): Add more truncation tests.
410 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
412 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
413 double in the function declaration.
414 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
415 double in the function declaration.
416 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
417 float in the function declaration.
418 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
419 float in the function declaration.
421 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
422 denormal operands. Do not generate FP_EX_DENORM exception.
423 (FP_UNPACK_RAW_EP): Ditto.
424 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
425 undefined _FP_UNPACK_RAW_E.
426 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
427 undefined _FP_UNPACK_RAW_EP.
428 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
429 undefined _FP_PACK_RAW_E.
430 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
431 undefined _FP_PACK_RAW_EP.
433 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
435 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
438 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
439 Jakub Jelinek <jakub@redhat.com>
441 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
442 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
444 * soft-fp/op-common.h (FP_TRUNC): Ditto.
446 2007-05-03 Jakub Jelinek <jakub@redhat.com>
448 * math/test-misc.c (main): Add tests for rounding long double
449 values close to smallest double denormalized value to double.
451 2007-04-30 Joseph Myers <joseph@codesourcery.com>
453 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
454 condition for truncating to 0. Set sticky bit for such
457 2007-05-02 Jakub Jelinek <jakub@redhat.com>
459 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
460 fixed length array for ignore.
462 2007-04-30 Ulrich Drepper <drepper@redhat.com>
465 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
466 stack for large precisions.
467 * stdio-common/test-vfprintf.c (main): Add test for large
470 2007-04-30 Jakub Jelinek <jakub@redhat.com>
472 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
474 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
477 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
478 account in the size check.
479 * resolv/tst-inet_ntop.c: New test.
480 * resolv/Makefile (tests): Add tst-inet_ntop.
482 2007-04-30 Ulrich Drepper <drepper@redhat.com>
483 Jakub Jelinek <jakub@redhat.com>
486 * malloc/malloc.c: Keep separate list for first blocks on the bin
487 lists with a given size. This helps skipping over list elements
488 we know won't fit in two places.
489 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
491 2007-04-28 Ulrich Drepper <drepper@redhat.com>
494 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
495 label to Teredo tunnel addresses 2001://32.
497 2007-04-27 Ulrich Drepper <drepper@redhat.com>
499 * locale/programs/ld-collate.c (collate_read): Allow order_start
502 * locale/programs/ld-collate.c (collate_read): Fix printing of
506 * locale/C-translit.h.in: Add entry for U2044.
509 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
510 hexa-decimal floats without exponent.
511 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
513 2007-04-25 Ulrich Drepper <drepper@redhat.com>
515 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
516 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
517 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
518 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
520 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
523 2007-04-25 Jakub Jelinek <jakub@redhat.com>
525 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
526 of 0 after the out_fail label.
528 2007-04-25 Ulrich Drepper <drepper@redhat.com>
531 * iconv/gconv_charset.h (strip): Allow ':'.
532 * iconv/iconv_open.c (iconv_open): Adjust comment.
534 2007-04-25 Jakub Jelinek <jakub@redhat.com>
536 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
539 2007-04-23 Jakub Jelinek <jakub@redhat.com>
542 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
543 alignment of buffer and tmp_buffer.
544 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
545 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
547 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
549 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
550 h_errnop arguments. Fail if buflen is too small.
551 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
553 2007-04-23 Jakub Jelinek <jakub@redhat.com>
556 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
557 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
559 2007-04-22 Roland McGrath <roland@redhat.com>
561 * elf/elf.h (NT_PRXFPREG): New macro.
563 2007-04-19 Andreas Jaeger <aj@suse.de>
566 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
567 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
570 2007-04-19 Ulrich Drepper <drepper@redhat.com>
572 * include/sys/mman.h: Mark madvise hidden.
573 * misc/madvise.c: Add libc_hidden_def.
575 2007-04-06 Jakub Jelinek <jakub@redhat.com>
577 * nis/nis_domain_of.c (__nis_domain_of): New function.
578 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
579 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
580 * nis/nis_call.c (rec_dirsearch): Likewise.
581 (first_shoot): Likewise. Remove search_parent_first argument.
582 (struct nis_server_cache): Rename search_parent_first field
584 (nis_server_cache_search, nis_server_cache_add): Rename
585 search_parent_first argument to search_parent.
586 (__nisfind_server): Likewise. If search_parent, call
589 2007-04-18 Ulrich Drepper <drepper@redhat.com>
591 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
593 2007-04-17 Ulrich Drepper <drepper@redhat.com>
596 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
598 2007-04-16 Jakub Jelinek <jakub@redhat.com>
600 * locale/programs/locarchive.c (add_alias, insert_name): Remove static.
602 2007-04-16 Ulrich Drepper <drepper@redhat.com>
605 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
607 2007-04-15 Jakub Jelinek <jakub@redhat.com>
609 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
610 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
611 current number of locales in SUPPORTED.
612 (create_archive): Initialize serial.
613 (enlarge_archive): Preserve aliases rather than duplicating
616 2007-04-13 Jakub Jelinek <jakub@redhat.com>
618 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
619 after _IO_un_link, not before it.
621 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
622 special case handling when wcp == wstartp + 1. Fix a comment typo.
623 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
625 2007-03-30 Jakub Jelinek <jakub@redhat.com>
627 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
628 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
629 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
631 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
632 _IO_file_xsgetn_maybe_mmap): Likewise.
633 * libio/oldfileops.c (old_do_write): Likewise.
634 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
635 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
636 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
637 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
638 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
639 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
640 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
641 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
642 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
643 _IO_file_underflow, _IO_file_underflow_mmap,
644 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
645 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
646 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
647 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
648 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
649 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
650 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
651 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
652 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
653 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
654 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
655 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
656 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
657 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
658 _IO_adjust_column_internal, _IO_default_uflow_internal,
659 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
660 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
661 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
662 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
663 _IO_file_close_it_internal, _IO_file_underflow_internal,
664 _IO_file_overflow_internal, _IO_file_attach_internal,
665 _IO_file_fopen_internal, _IO_file_sync_internal,
666 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
667 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
668 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
669 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
670 _IO_seekpos_unlocked): Likewise.
671 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
672 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
674 2007-04-16 Jakub Jelinek <jakub@redhat.com>
676 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
677 argument in xmalloc size computation.
679 2007-04-01 Jakub Jelinek <jakub@redhat.com>
681 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
682 math_opt_barrier and math_force_eval macros.
684 2007-03-27 Jakub Jelinek <jakub@redhat.com>
687 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
688 * sysdeps/i386/fpu/math_private.h: New file.
689 * sysdeps/x86_64/fpu/math_private.h: New file.
690 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
691 math_force_eval macros. Use "+m" constraint on asm rather than
693 * math/s_nextafter.c (__nextafter): Likewise.
694 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
696 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
697 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
698 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
699 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
700 math_opt_barrier and math_force_eval macros.
701 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
702 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
703 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
704 (__nexttoward): Use math_opt_barrier and
705 math_force_eval macros. Use "+m" constraint on asm rather than
706 "=m" and "m". Only use asm to force double result if
707 FLT_EVAL_METHOD is 2.
708 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
709 (__nexttowardf): Use math_opt_barrier and
710 math_force_eval macros. Use "+m" constraint on asm rather than
711 "=m" and "m". Only use asm to force double result if
712 FLT_EVAL_METHOD is not 0.
713 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
714 (__nexttowardf): Use math_opt_barrier and
715 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
716 x to float using asm.
717 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
718 (__nldbl_nexttowardf): Use math_opt_barrier and
719 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
720 x to float using asm.
721 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
722 (__nexttowardf): Use math_opt_barrier and math_force_eval
723 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
724 * math/bug-nextafter.c (zero, inf): New variables.
725 (main): Add new tests.
726 * math/bug-nexttoward.c (zero, inf): New variables.
727 (main): Add new tests.
729 2007-03-22 Jakub Jelinek <jakub@redhat.com>
732 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
733 exceptions both in SW and MXCSR.
734 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
735 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
736 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
737 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
738 in MXCSR if SSE is available.
739 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
741 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
743 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
744 Return 0 rather than 1.
745 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
746 Remove incorrect part of a comment. Fix argument to feraiseexcept.
747 * math/test-fenv.c (feholdexcept_tests): New function.
750 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
753 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
756 2007-04-13 Jakub Jelinek <jakub@redhat.com>
759 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
760 Reported by David Anderson <davea42@earthlink.net>.
762 2007-04-07 Ulrich Drepper <drepper@redhat.com>
764 * posix/sys/wait.h: Remove unnecessary forward declaration.
766 2007-04-05 Jakub Jelinek <jakub@redhat.com>
768 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
769 with obj->do_servers after first_shoot.
771 2007-04-03 Ulrich Drepper <drepper@redhat.com>
773 * posix/Makefile (routines): Add sched_cpucount.
774 (tests): Add tst-cpucount.
775 * posix/sched_cpucount.c: New file.
776 * posix/tst-cpucount.c: New file.
777 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
778 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
779 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
780 * posix/sched.h: Define CPU_COUNT.
782 2007-03-27 Jakub Jelinek <jakub@redhat.com>
784 * posix/fnmatch.c (STRUCT): Define.
785 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
786 * posix/fnmatch_loop.c (struct STRUCT): New type.
787 (FCT): Add ends argument. If ends != NULL and normal * is
788 seen in the pattern, store current pattern and string pointers
789 and return. Adjust recursive calls.
790 (EXT): Adjust FCT callers.
791 (STRUCT): Undef at the end of the file.
792 * posix/Makefile (tests): Add tst-fnmatch2.
793 * posix/tst-fnmatch2.c: New test.
795 2007-04-01 Jakub Jelinek <jakub@redhat.com>
797 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
800 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
801 Change last argument to unsigned int.
803 2007-03-23 Jakub Jelinek <jakub@redhat.com>
805 * scripts/check-local-headers.sh: Filter out sys/capability.h.
807 2007-03-22 Jakub Jelinek <jakub@redhat.com>
809 * config.h.in (HAVE_LIBCAP): Add.
810 * nscd/selinux.h: Include sys/capability.h rather than non-existent
812 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
813 free_caps. Cast away const from 4th cap_set_flag argument.
815 2007-03-26 Ulrich Drepper <drepper@redhat.com>
817 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
819 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
821 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
823 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
825 * sysdeps/powerpc/bits/atomic.h
826 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
827 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
828 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
829 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
830 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
831 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
832 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
833 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
834 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
835 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
836 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
837 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
838 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
839 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
840 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
841 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
842 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
843 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
844 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
845 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
847 2007-03-20 Jakub Jelinek <jakub@redhat.com>
849 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
850 (__cache_line_size): Define the variable here. Add
851 attribute_hidden, remove weak_extern.
852 (__libc_start_main): Set __cache_line_size
854 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
855 (__cache_line_size): Define the variable here. Add
856 attribute_hidden, remove weak_extern.
857 (DL_PLATFORM_AUXV): Set __cache_line_size
859 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
860 weak_extern, add attribute_hidden.
861 (__elf_machine_runtime_setup): Assume __cache_line_size is always
863 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
865 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
867 2007-03-26 Jakub Jelinek <jakub@redhat.com>
870 * timezone/africa: Update from tzdata2007d.
871 * timezone/asia: Likewise.
872 * timezone/australasia: Likewise.
873 * timezone/backward: Likewise.
874 * timezone/europe: Likewise.
875 * timezone/iso3166.tab: Likewise.
876 * timezone/leapseconds: Likewise.
877 * timezone/northamerica: Likewise.
878 * timezone/southamerica: Likewise.
879 * timezone/zone.tab: Likewise.
881 * timezone/private.h: Update from tzcode2007d.
882 * timezone/zdump.c: Likewise.
883 * timezone/zic.c: Likewise.
885 2007-03-21 Jakub Jelinek <jakub@redhat.com>
887 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
888 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
890 (nis_server_cache_search, nis_server_cache_add): New functions.
891 (__nisfind_server): Use them. Add dbp and flags argument, if
892 call __nisbind_create.
893 (__nisbind_create): Add server_used and current_ep arguments,
894 only call __nis_findfastest if server_used is ~0.
895 (__do_niscall2, __prepare_niscall): Adjust callers.
896 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
897 ckey_cache_euid, ckey_cache_lock): New variables.
898 (get_ckey): New function.
899 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
900 __pmap_getnisport. Save __pmap_getnisport result in
901 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
903 * nis/nis_lookup.c (nis_lookup): Likewise.
904 * nis/nis_table.c (nis_list): Likewise.
905 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
908 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
909 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
910 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
911 _nss_nisplus_getservbyport_r): Likewise.
912 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
913 _nss_nisplus_getnetbyaddr_r): Likewise.
914 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
915 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
916 _nss_nisplus_getntohost_r): Likewise.
917 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
918 _nss_nisplus_getrpcbynumber_r): Likewise.
920 2007-03-20 Jakub Jelinek <jakub@redhat.com>
922 * configure.in (libc_cv_gnu89_inline): Only do compile test.
923 * configure: Rebuilt.
925 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
927 * soft-fp/extended.h (_FP_UNION_E): Likewise.
929 2006-06-07 Joseph Myers <joseph@codesourcery.com>
932 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
935 2007-03-18 Jakub Jelinek <jakub@redhat.com>
937 * nscd/gai.c: Include alloca.h.
938 (__libc_use_alloca): Define.
940 2007-03-16 Jakub Jelinek <jakub@redhat.com>
942 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
944 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
945 (DL_DST_REQUIRED): Adjust user.
947 * include/dlfcn.h (struct link_map): New forward decl.
949 * inet/getnameinfo.c: Include stddef.h.
950 (getnameinfo): Use offsetof.
952 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
954 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
956 * string/strerror_l.c: Include stdlib.h.
958 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
959 * config.make.in (gnu89-inline-CFLAGS): New variable.
960 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
962 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
963 * argp/argp.h: Use it.
964 * bits/mathinline.h: Likewise.
965 * bits/sigset.h: Likewise.
966 * bits/string.h: Likewise.
967 * ctype/ctype.h: Likewise.
968 * hurd/hurd.h: Likewise.
969 * hurd/hurd/fd.h: Likewise.
970 * hurd/hurd/port.h: Likewise.
971 * hurd/hurd/signal.h: Likewise.
972 * hurd/hurd/threadvar.h: Likewise.
973 * hurd/hurd/userlink.h: Likewise.
974 * io/sys/stat.h: Likewise.
975 * libio/bits/stdio.h: Likewise.
976 * libio/bits/stdio2.h: Likewise.
977 * mach/lock-intern.h: Likewise.
978 * mach/mach/mig_support.h: Likewise.
979 * math/bits/cmathcalls.h: Likewise.
980 * posix/bits/unistd.h: Likewise.
981 * socket/bits/socket2.h: Likewise.
982 * stdlib/bits/stdlib.h: Likewise.
983 * stdlib/stdlib.h: Likewise.
984 * string/argz.h: Likewise.
985 * string/bits/string2.h: Likewise.
986 * string/bits/string3.h: Likewise.
987 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
988 * sysdeps/generic/inttypes.h: Likewise.
989 * sysdeps/generic/machine-lock.h: Likewise.
990 * sysdeps/generic/machine-sp.h: Likewise.
991 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
992 * sysdeps/i386/i486/bits/string.h: Likewise.
993 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
994 * sysdeps/mach/alpha/machine-lock.h: Likewise.
995 * sysdeps/mach/alpha/machine-sp.h: Likewise.
996 * sysdeps/mach/i386/machine-lock.h: Likewise.
997 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
998 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
999 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
1000 * sysdeps/s390/bits/string.h: Likewise.
1001 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
1002 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
1003 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1004 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
1005 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1006 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
1007 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
1008 * wcsmbs/bits/wchar2.h: Likewise.
1009 * wcsmbs/wchar.h: Likewise.
1010 * stdlib/gmp.h: Likewise. Include <features.h> to get
1011 __extern_inline definition.
1013 2007-03-15 Jakub Jelinek <jakub@redhat.com>
1015 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
1019 * math/libm-test.inc (log_test): Test -Inf and NaN.
1020 (log10_test, log1p_test, log2_test): Test -Inf.
1021 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
1022 FE_INVALID when argument is qNaN.
1023 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
1024 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
1025 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
1026 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
1027 andb $1, %ah with testb $1, %ah, don't test for parity, instead
1028 testb $4, %ah and jump if non-zero.
1029 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1030 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
1033 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
1034 ancestors with the same depths.
1035 Patch by Niels Moeller <nisse@lysator.liu.se>.
1036 (filter_doc): Don't crash if argp is NULL.
1037 * argp/Makefile (tests): Add tst-argp2.
1038 * argp/tst-argp2.c: New test.
1041 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
1043 (updwtmp_file): Likewise.
1046 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
1047 (inet6_opt_append): Don't check extlen is big enough if extbuf
1049 (inet6_opt_finish): Likewise.
1050 * inet/Makefile (tests): Add test-inet6_opt.
1051 * inet/test-inet6_opt.c: New test.
1053 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
1054 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
1055 NLMSG_ERR. Instead use a page sized buffer.
1056 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
1059 2007-03-14 Richard Henderson <rth@redhat.com>
1061 * sysdeps/alpha/fpu/s_llround.c: New file.
1062 * sysdeps/alpha/fpu/s_llroundf.c: New file.
1063 * sysdeps/alpha/fpu/s_lround.c: New file.
1064 * sysdeps/alpha/fpu/s_lroundf.c: New file.
1065 * sysdeps/alpha/fpu/s_round.c: New file.
1066 * sysdeps/alpha/fpu/s_roundf.c: New file.
1067 * sysdeps/alpha/fpu/s_trunc.c: New file.
1068 * sysdeps/alpha/fpu/s_truncf.c: New file.
1070 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
1071 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
1072 * sysdeps/alpha/fpu/s_floor.c: Likewise.
1073 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
1074 * sysdeps/alpha/fpu/s_rint.c: Likewise.
1075 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
1077 * sysdeps/alpha/fpu/s_fmax.S: New file.
1078 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
1079 * sysdeps/alpha/fpu/s_fmin.S: New file.
1080 * sysdeps/alpha/fpu/s_fminf.S: New file.
1081 * sysdeps/alpha/fpu/s_isnan.c: New file.
1082 * sysdeps/alpha/fpu/s_isnanf.c: New file.
1083 * sysdeps/alpha/fpu/s_llrint.c: New file.
1084 * sysdeps/alpha/fpu/s_llrintf.c: New file.
1085 * sysdeps/alpha/fpu/s_lrint.c: New file.
1086 * sysdeps/alpha/fpu/s_lrintf.c: New file.
1087 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
1088 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
1090 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
1091 (__fdimf, fdimf, __fdim, fdim): Remove.
1092 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
1093 (__isnanf, __isnan, __isnanl): New.
1095 2007-03-13 Richard Henderson <rth@redhat.com>
1097 * sysdeps/ieee754/ldbl-128/Makefile: New file.
1099 2007-03-13 Richard Henderson <rth@redhat.com>
1101 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
1102 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
1103 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
1104 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
1105 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
1106 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
1108 2007-03-13 Richard Henderson <rth@redhat.com>
1110 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
1111 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
1112 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
1113 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
1114 Move to dl-auxv.h; initialize instead of extern weak.
1115 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
1117 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
1118 Extern instead of initialized.
1120 2007-03-13 Richard Henderson <rth@redhat.com>
1122 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
1123 __sigsuspend_nocancel.
1125 2007-03-06 Ulrich Drepper <drepper@redhat.com>
1127 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
1128 172.16/12 address range.
1130 2007-03-02 Jakub Jelinek <jakub@redhat.com>
1132 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
1133 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
1136 2007-03-01 Jakub Jelinek <jakub@redhat.com>
1139 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
1141 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
1143 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
1144 for x qNaN and y either +-inf or non-integer value.
1145 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
1146 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
1147 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
1149 2007-02-10 Mike Frysinger <vapier@gentoo.org>
1151 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
1152 from sysdep_headers.
1154 2007-02-28 Jakub Jelinek <jakub@redhat.com>
1156 * time/tzfile.c (find_transition): Instead of a linear search try to
1157 guess the transition index, use a linear search if the result is at
1158 most 10 transitions away from the guess or binary search otherwise.
1160 2007-02-27 Jakub Jelinek <jakub@redhat.com>
1162 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
1163 memory reallocation.
1165 2007-02-21 Ulrich Drepper <drepper@redhat.com>
1167 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
1169 Optimize use of TOLOWER.
1172 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
1173 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
1174 * sysdeps/i386/fpu/e_fmod.S: Likewise.
1177 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
1178 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
1181 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
1182 (open_dir_stream): Likewise.
1183 * io/Makefile (tests): Add bug-ftw5.
1184 * io/bug-ftw5.c: New file.
1186 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
1187 * nscd/servicescache.c (cache_addserv): Likewise.
1189 * nscd/grpcache.c (cache_addgr): In case a record changed on
1190 refresh, adjust key_copy.
1193 * nscd/pwdcache.c (cache_addpw): In case a record changed on
1194 refresh, adjust key_copy.
1197 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
1199 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
1201 2007-02-19 Ulrich Drepper <drepper@redhat.com>
1203 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
1206 * stdio-common/vfscanf.c: Small cleanups throughout.
1208 2007-02-18 Ulrich Drepper <drepper@redhat.com>
1211 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
1212 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
1213 * sysdeps/i386/fpu/e_fmod.S: Likewise.
1214 Patch by Jared Casper <jaredcasper@gmail.com>.
1216 * sysdeps/unix/closedir.c: Outside libc don't use locking.
1217 * sysdeps/unix/opendir.c: Likewise.
1218 * sysdeps/unix/readdir.c: Likewise.
1221 * stdio-common/vfscanf.c: Handle localized digits etc for floating
1223 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
1225 * stdio-common/vfscanf.c: Fix problems in width accounting.
1226 * stdio-common/tst-sscanf.c (double_tests): New tests.
1227 (main): Hook them up.
1229 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
1230 More simplifications of floating-point reader.
1232 * stdio-common/Makefile (tests): Add tst-swscanf.
1233 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
1235 * stdio-common/tst-swscanf.c: New file.
1237 2007-02-17 Ulrich Drepper <drepper@redhat.com>
1240 * libio/stdio.h: Define struct _IO_FILE in global namespace.
1241 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
1242 Remove using for __jmp_buf_tag.
1243 * locale/locale.h (struct lconv): Also define in std namespace.
1244 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
1247 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
1248 using __libc_enable_secure.
1251 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
1254 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
1255 of names for ellipsises.
1258 * malloc/memusage.sh: Cleanups.
1259 * debug/xtrace.sh: Quoting and trap changes.
1261 2007-02-16 Ulrich Drepper <drepper@redhat.com>
1263 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
1265 * locale/iso-3166.def: Update entry for Serbia.
1266 * locale/iso-4217.def: Define RSD, remove CSD.
1268 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
1269 and 64-bit operations.
1272 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
1275 * nscd/nscd.c (parse_opt): One more conversion to use send instead
1278 2007-02-15 Ulrich Drepper <drepper@redhat.com>
1281 * assert/assert.h (assert): Simplify.
1282 (assert_perror): Likewise.
1283 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
1285 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
1288 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
1289 change: don't pass NULL in place of an integer.
1291 2007-02-02 Bruno Haible <bruno@clisp.org>
1294 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
1295 Add mapping for U+327E.
1296 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
1297 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
1298 mapping of 0xD9 0xE8.
1299 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
1301 Reported by Jungshik Shin <jungshik@google.com>.
1304 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
1305 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
1306 Reported by Jungshik Shin <jungshik@google.com>.
1308 2007-02-14 Ulrich Drepper <drepper@redhat.com>
1310 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
1314 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
1315 byte variants. Patch mostly be tom@tommay.net.
1317 2007-02-14 Jakub Jelinek <jakub@redhat.com>
1320 * posix/glob.c (attribute_hidden): Define if not defined.
1321 (glob): Unescape dirname, filename or username when needed and not
1322 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
1323 is NULL. Handle unescaped [ in pattern without closing ].
1324 Don't pass GLOB_CHECK down to recursive glob for directories.
1325 (__glob_pattern_type): New function.
1326 (__glob_pattern_p): Implement using __glob_pattern_type.
1327 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
1328 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
1329 Remove unreachable code.
1330 * posix/globtest.sh: Add a couple of new tests.
1332 2007-02-13 Ulrich Drepper <drepper@redhat.com>
1334 * po/ru.po: Update from translation team.
1336 2007-02-12 Jakub Jelinek <jakub@redhat.com>
1338 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
1339 to the list of i486+ CPUs.
1340 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
1342 2007-02-12 Ulrich Drepper <drepper@redhat.com>
1344 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
1345 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
1348 2007-02-09 Ulrich Drepper <drepper@redhat.com>
1350 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
1352 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
1353 * resolv/res_mkquery.c: Define __res_nopt.
1354 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
1355 try adding EDNS0 record.
1356 * resolv/res_send.c (send_dg): If request failed with FORMERR and
1357 EDNS0 record was send make sure we don't try it again.
1358 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
1359 * include/resolv.h: Declare __res_nopt.
1361 2007-02-08 Jakub Jelinek <jakub@redhat.com>
1364 * time/strptime_l.c (__strptime_internal): Set have_mon for
1365 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
1366 have been computed from tm_yday and tm_year. Don't crash
1367 in day_of_the_week or day_of_the_year if not have_mon
1368 and tm_mon contains bogus value.
1369 * time/Makefile (tests): Add tst-strptime3.
1370 * time/tst-strptime3.c: New test.
1372 2007-02-05 Jakub Jelinek <jakub@redhat.com>
1375 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
1376 bit for RE_HAT_LISTS_NOT_NEWLINE.
1377 (build_charclass_op): Remove bogus comment.
1378 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
1379 * posix/bug-regex27.c: New test.
1380 * posix/bug-regex28.c: New test.
1382 2007-02-03 Ulrich Drepper <drepper@redhat.com>
1384 * po/sv.po: Update from translation team.
1386 2007-02-02 Ulrich Drepper <drepper@redhat.com>
1388 * nscd/nscd_helper.c (open_socket): Minor size optimization.
1390 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1392 * include/locale.h (__uselocale): Add libc_hidden_proto.
1393 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
1395 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
1398 2007-02-01 Ulrich Drepper <drepper@redhat.com>
1400 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
1402 (PTR_DEMANGLE): Real definition now that it's not the same as
1404 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1406 * string/strerror_l.c: New file.
1407 * string/Makefile (routines): Add strerror_l.
1408 * string/string.h: Declare strerror_l.
1409 * string/Versions: Export strerror_l for GLIBC_2.6.
1411 2007-01-31 Ulrich Drepper <drepper@redhat.com>
1413 * nscd/nscd_helper.c (open_socket): Now takes request type and key
1414 as parameter. Construct request record. Try sending request
1415 before the first poll use, it usually succeeds. Adjust all
1417 * nscd/nscd-client.h: Define MAXKEYLEN.
1418 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
1420 2007-01-31 Jakub Jelinek <jakub@redhat.com>
1422 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
1424 * nscd/nscd_helper.c: Include string.h.
1425 (__nscd_cache_search): Remove const qualifier from return value.
1426 On strict alignment architectures check hash entry and data head
1428 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
1429 mmapped data during GC cycle contains garbage. If
1430 __nscd_drop_map_ref fails, decrement mapped->counter when returning
1431 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
1433 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1434 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1435 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
1436 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1437 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1439 2007-01-30 Ulrich Drepper <drepper@redhat.com>
1441 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
1443 2007-01-26 Ulrich Drepper <drepper@redhat.com>
1445 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
1446 names not numbers in cfi_*.
1448 2007-01-26 Andreas Jaeger <aj@suse.de>
1450 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
1451 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
1452 Correct values of PER_HPUX and PER_OSF4.
1454 2007-01-24 Ulrich Drepper <drepper@redhat.com>
1456 * elf/dl-minimal.c: Undefine _itoa first.
1457 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
1458 * malloc/mtrace.c: Revert last change.
1459 * posix/wordexp.c: Likewise.
1461 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1463 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
1464 and __geode__ to the list of i486+ CPUs.
1465 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
1467 2007-01-23 Ulrich Drepper <drepper@redhat.com>
1469 * stdio-common/_itoa.c: Include <limits.h>.
1470 * stdio-common/_itowa.c: Likewise.
1472 2007-01-22 Ulrich Drepper <drepper@redhat.com>
1474 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
1476 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
1478 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
1480 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
1484 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
1485 * stdio-common/Makefile (tests): Add bug17.
1486 * stdio-common/bug17.c: New file.
1488 2007-01-19 Ulrich Drepper <drepper@redhat.com>
1490 * iconvdata/brf.c: New file.
1491 * iconvdata/testdata/BRF: New file.
1492 * iconvdata/testdata/BRF..UTF8: New file.
1493 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1494 * iconvdata/Makefile: Add rules to build BRF.
1495 * iconvdata/TESTS: Add BRF entry.
1496 * iconvdata/gconv-modules: Likewise.
1497 * iconvdata/tst-tables.sh: Likewise.
1499 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
1501 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
1502 type `long long int', not `long int'.
1505 2007-01-18 Ulrich Drepper <drepper@redhat.com>
1507 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
1508 of values on 64-bit platforms which are too large.
1510 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
1511 Joe Kerian <jkerian@us.us.ibm.com>
1514 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
1515 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
1516 (__copysignl): Use signbit() for comparison.
1517 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
1518 SET_LDOUBLE_WORDS64.
1521 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
1522 (__ceill): Remove calls to fegetround(), fesetround().
1523 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
1524 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
1525 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
1527 2007-01-17 Jakub Jelinek <jakub@redhat.com>
1529 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
1531 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
1533 2007-01-17 Ulrich Drepper <drepper@redhat.com>
1535 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
1537 * csu/libc-start.c: Likewise.
1539 2007-01-16 Ulrich Drepper <drepper@redhat.com>
1541 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
1544 2007-01-15 Ulrich Drepper <drepper@redhat.com>
1546 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
1548 (handle_request): Remove unnecessary tests.
1550 * nscd/cache.c (cache_add): Record the failure to add to the cache.
1552 2007-01-15 Jakub Jelinek <jakub@redhat.com>
1554 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
1555 workbits in semi-raw fraction.
1557 * math/test-misc.c: Add new tests.
1559 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
1561 * math/basic-test.c: Include test-skeleton.c.
1562 (TEST_TRUNC): Define.
1563 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
1564 (main): Rename to ...
1565 (do_test): ...this. Run new tests.
1566 (TEST_FUNCTION): Define.
1568 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
1569 Joe Kerian <jkerian@us.us.ibm.com>
1572 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
1573 handling for high words.
1574 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
1575 and overflow for infinity.
1577 2007-01-15 Ulrich Drepper <drepper@redhat.com>
1579 * nscd/connections.c (handle_request): Add a __builtin_expect.
1581 * nscd/connections.c (serv2db): Change type into structure which
1582 also says whether this is a request for data. Renamed to
1583 servinfo. All users changed.
1584 (handle_request): Much simpler test whether we should search the cache.
1586 * nscd/connections.c (handle_request): Fix thinko in selinux test
1589 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
1590 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
1591 it before getting dl_load_lock and then relock.
1592 (_dl_lookup_symbol_x): Pass flags to add_dependency.
1593 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
1594 case we unlocked the scope.
1595 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
1596 _dl_lookup_symbol_x in case we locked the scope.
1597 (_dl_profile_fixup): Likewise.
1598 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
1599 set DL_LOOKUP_SCOPE_LOCK.
1601 2007-01-13 Ulrich Drepper <drepper@redhat.com>
1603 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
1604 CFLAGS-getsrvbynpt_r.c.
1605 * nscd/getsrvbynm_r.c: New file.
1606 * nscd/getsrvbypt_r.c: New file.
1607 * nscd/nscd_getserv_r.c: New file.
1608 * nscd/servicescache.c: New file.
1609 * nscd/Makefile (routines): Add nscd_getserv_r.
1610 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
1611 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
1612 CFLAGS-getsrvbypt_r.c.
1613 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
1614 table. Add entries for services database.
1615 * nscd/connections.c (serv2str): Mark as const. Add entries for
1617 (dbs): Add .reset_res and servdb initialization.
1618 (serv2db): Add entries for services database.
1619 (verify_persistent_db): Accept dbnr == servdb.
1620 (invalidate_cache): Rewrite database name recognition to use a table.
1621 Call res_init() if .reset_res is set for database.
1622 (handle_request): Add code to handle services database.
1623 * nscd/gai.c: Don't define __getservbyname_r.
1624 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
1625 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
1626 (serv_response_header): Define.
1627 (struct datahead): Add serv_response_header member.
1628 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
1630 * nscd/nscd.conf: Add entries for services database.
1631 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
1632 Declare serv_iov_disabled.
1633 Declare addservbyname, readdservbyname, addservbyport, and
1635 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
1636 (find_db): Fix error message.
1637 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
1638 __nscd_getservbyname_r, and __nscd_getservbyport_r.
1639 * nscd/selinux.c (perms): Add entries for services database.
1640 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
1641 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
1643 * nscd/grpcache.c: Remove obsolete code. Cleanups.
1644 * nscd/hstcache.c: Likewise.
1645 * nscd/pwdcache.c: Likewise.
1647 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
1648 computation of keylen.
1650 * include/string.h: Only redefine strndupa if this is really for
1653 2007-01-12 Ulrich Drepper <drepper@redhat.com>
1655 * nscd/nscd_gethst_r.c: Minor cleanups.
1657 * nscd/connections.c (handle_request): Check selinux permissions
1658 for all non-admin commands.
1660 * sysdeps/i386/i486/bits/atomic.h: Define
1661 atomic_compare_and_exchange_val_acq,
1662 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
1663 using __sync_* built-ins for gcc >= 4.1.
1664 * sysdeps/x86_64/bits/atomic.h: Likewise.
1667 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
1670 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
1672 * stdlib/tst-makecontext.c: Include errno.h. Change main()
1673 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
1674 (do_test): Check errno and exit(0) if ENOSYS.
1676 2007-01-11 Jakub Jelinek <jakub@redhat.com>
1678 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
1679 thousands separators.
1680 * stdlib/Makefile: Add rules to build and run tst-strtod4.
1681 * stdlib/tst-strtod4.c: New test.
1684 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
1685 hexadecimal digit should accept just the initial 0.
1686 * stdlib/tst-strtod2.c (tests): New variable.
1687 (do_test): Run several tests rather than just one.
1689 2007-01-11 Jakub Jelinek <jakub@redhat.com>
1691 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
1692 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
1694 2007-01-10 Ulrich Drepper <drepper@redhat.com>
1696 * io/fts.c: Make sure fts_cur is always valid after return from
1698 Patch by Miloslav Trmac <mitr@redhat.com>.
1700 2006-10-27 Richard Sandiford <richard@codesourcery.com>
1702 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
1703 (R_MIPS_NUM): Bump by 1.
1705 2007-01-03 Jakub Jelinek <jakub@redhat.com>
1707 * posix/execvp.c: Include alloca.h.
1708 (allocate_scripts_argv): Renamed to...
1709 (scripts_argv): ... this. Don't allocate buffer here nor count
1711 (execvp): Use alloca if possible.
1712 * posix/Makefile: Add rules to build and run tst-vfork3 test.
1713 * posix/tst-vfork3.c: New test.
1715 2007-01-03 Ulrich Drepper <drepper@redhat.com>
1717 * string/Makefile (tst-strxfrm2-ENV): Define.
1718 * stdlib/Makefile (tst-strtod3-ENV): Define.
1720 2007-01-02 Ulrich Drepper <drepper@redhat.com>
1722 * posix/getconf.c: Update copyright year.
1723 * nss/getent.c: Likewise.
1724 * iconv/iconvconfig.c: Likewise.
1725 * iconv/iconv_prog.c: Likewise.
1726 * elf/ldconfig.c: Likewise.
1727 * catgets/gencat.c: Likewise.
1728 * csu/version.c: Likewise.
1729 * elf/ldd.bash.in: Likewise.
1730 * elf/sprof.c (print_version): Likewise.
1731 * locale/programs/locale.c: Likewise.
1732 * locale/programs/localedef.c: Likewise.
1733 * nscd/nscd.c (print_version): Likewise.
1734 * debug/xtrace.sh: Likewise.
1735 * malloc/memusage.sh: Likewise.
1736 * malloc/mtrace.pl: Likewise.
1737 * debug/catchsegv.sh: Likewise.
1739 2006-12-24 Ulrich Drepper <drepper@redhat.com>
1741 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
1744 2006-12-23 Ulrich Drepper <drepper@redhat.com>
1746 * posix/wordexp.c: Remove some unnecessary tests.
1748 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
1750 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
1751 blacklist the group till after we look it up.
1753 2006-12-21 Ulrich Drepper <drepper@redhat.com>
1755 * include/atomic.h (atomic_forced_read): New macro.
1757 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1759 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
1761 2006-12-19 Jakub Jelinek <jakub@redhat.com>
1763 * nss/getXXbyYY_r.c: Include atomic.h.
1764 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
1765 add atomic_write_barrier () in between.
1767 * stdlib/Makefile (tests): Add tst-makecontext.
1768 * stdlib/tst-makecontext.c: New test.
1770 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
1771 (__makecontext): Don't realign uc_mcontext.uc_regs.
1773 2006-11-28 Jakub Jelinek <jakub@redhat.com>
1775 * elf/dl-support.c: Include dl-procinfo.h.
1776 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
1777 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
1778 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
1780 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
1781 hardcoded constants.
1782 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
1783 PPC_PLATFORM_* macros for array designators.
1785 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
1787 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
1788 names to the beginning.
1789 (_dl_powerpc_platforms): Add "power6x".
1790 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
1791 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
1792 (_DL_PLATFORMS_COUNT): Increase.
1793 (_dl_string_platform): Handle power6x case.
1794 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
1795 PPC_FEATURE_POWER6_EXT): Define.
1796 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
1798 2006-12-18 Jakub Jelinek <jakub@redhat.com>
1801 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
1802 [-2^31 .. 2^31) range.
1803 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
1805 * stdlib/tst-rand48-2.c: New test.
1806 * stdlib/Makefile (tests): Add tst-rand48-2.
1808 2006-12-14 Jakub Jelinek <jakub@redhat.com>
1810 * misc/tst-pselect.c (do_test): Fix sigblock argument.
1812 2006-12-14 Ulrich Drepper <drepper@redhat.com>
1814 * misc/tst-pselect.c (do_test): Make sure the helper process is
1815 terminating when the test is aborted.
1817 2006-12-13 Ulrich Drepper <drepper@redhat.com>
1819 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
1820 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
1821 Handle relatime mount option.
1824 * libio/Makefile (tests): Add tst-setvbuf1.
1825 * libio/tst-setvbuf1.c: New file.
1827 2006-12-08 Jakub Jelinek <jakub@redhat.com>
1830 * libio/genops.c (__uflow): Fix a typo.
1831 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
1832 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
1833 the narrow buffer size.
1835 2006-11-24 Jakub Jelinek <jakub@redhat.com>
1838 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
1839 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
1840 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
1842 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
1843 _IO_wstr_finish): Likewise.
1844 * libio/wmemstream.c (open_wmemstream): Likewise.
1845 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
1846 even for wide streams.
1848 2006-12-13 Jakub Jelinek <jakub@redhat.com>
1850 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
1853 2006-12-11 Ulrich Drepper <drepper@redhat.com>
1855 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
1856 separators also if no non-zero digits found.
1857 * stdlib/Makefile (tests): Add tst-strtod3.
1859 2006-12-10 Jakub Jelinek <jakub@redhat.com>
1861 * sysdeps/unix/sysv/linux/netlinkaccess.h: Include linux/if_addr.h
1862 if IFA_MAX is not defined.
1863 (IFA_RTA, IFA_PAYLOAD, IFLA_RTA, IFLA_PAYLOAD): Define if not
1865 * sysdeps/unix/sysv/linux/check_pf.c: Include netlinkaccess.h
1866 instead of asm/types.h, linux/netlink.h and linux/rtnetlink.h.
1868 2006-12-09 Ulrich Drepper <drepper@redhat.com>
1871 * include/features.h: Fix comment about default value for
1875 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
1876 empty parsed strings.
1877 * stdlib/Makefile (tests): Add tst-strtod2.
1878 * stdlib/tst-strtod2.c: New file.
1881 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
1883 * stdlib/Makefile (tests): Add tst-atof2.
1884 * stdlib/tst-atof2.c: New file.
1887 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
1888 correctly if removing trailing zero of hex-float.
1889 * stdlib/Makefile (tests): Add tst-atof1.
1890 * stdlib/tst-atof1.c: New file.
1892 2006-12-09 Jakub Jelinek <jakub@redhat.com>
1894 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
1895 Start searching for next comma at p rather than rest.
1896 * misc/Makefile (tests): Add tst-mntent2.
1897 * misc/tst-mntent2.c: New test.
1899 * misc/getusershell.c (initshells): Check for integer overflows.
1900 Make strings buffer one bigger as fgets always succeeds when second
1901 argument is 1. Don't use calloc for shells array. Disallow
1904 2006-12-08 Ulrich Drepper <drepper@redhat.com>
1906 * malloc/memusage.c: Handle realloc with new size of zero and
1907 non-NULL pointer correctly.
1908 (me): Really write first record twice.
1909 (struct entry): Make format bi-arch safe.
1910 (dest): Write out more realloc statistics.
1911 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
1913 2006-12-05 Jakub Jelinek <jakub@redhat.com>
1915 * nis/nis_subr.c (nis_getnames): Revert last change.
1917 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1919 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
1920 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
1921 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
1922 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
1924 * io/Makefile: Add rules to build and run tst-ttyname_r test.
1925 * io/tst-ttyname_r.c: New test.
1927 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1929 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
1931 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
1933 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
1936 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1938 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
1939 `clone' function to ensure proper unwinding stop of gdb.
1940 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1942 2006-12-01 Ulrich Drepper <drepper@redhat.com>
1944 * nscd/nscd.init: Remove obsolete and commented-out -S option
1947 2006-11-23 Jakub Jelinek <jakub@redhat.com>
1950 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
1953 * manual/string.texi (strtok): Remove duplicate paragraph.
1955 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1957 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
1958 libgcc not supporting `rflags' unwinding (register # >= 17).
1960 2006-11-30 Jakub Jelinek <jakub@redhat.com>
1962 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
1965 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
1966 Jakub Jelinek <jakub@redhat.com>
1967 Jan Kratochvil <jan.kratochvil@redhat.com>
1969 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
1971 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
1972 'restore_rt' even in the 'signal' directory.
1973 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
1975 2006-11-27 Jakub Jelinek <jakub@redhat.com>
1978 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
1979 malloc crashed. Don't allocate memory unnecessarily in each
1982 2006-10-21 Jakub Jelinek <jakub@redhat.com>
1984 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
1986 2006-11-20 Ulrich Drepper <drepper@redhat.com>
1988 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
1990 2006-11-18 Bruno Haible <bruno@clisp.org>
1992 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
1993 __sysconf only after having tried to call getgroups32.
1995 2006-11-19 Ulrich Drepper <drepper@redhat.com>
1997 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
1998 addresses for IPv4 queries if they can be mapped.
2000 2006-11-16 Jakub Jelinek <jakub@redhat.com>
2002 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
2003 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
2004 (signmask): Add .size directive.
2005 (othermask): Add .type directive.
2007 2006-11-14 Ulrich Drepper <drepper@redhat.com>
2009 * po/nl.po: Update from translation team.
2011 * timezone/zdump.c: Redo fix for BZ #3137.
2013 2006-11-14 Jakub Jelinek <jakub@redhat.com>
2015 * nss/nss_files/files-alias.c (get_next_alias): Set line back
2016 to first_unused after parsing :include: file.
2018 2006-11-10 Ulrich Drepper <drepper@redhat.com>
2020 * timezone/africa: Update from tzdata2006o.
2021 * timezone/antarctica: Likewise.
2022 * timezone/asia: Likewise.
2023 * timezone/australasia: Likewise.
2024 * timezone/backward: Likewise.
2025 * timezone/europe: Likewise.
2026 * timezone/iso3166.tab: Likewise.
2027 * timezone/northamerica: Likewise.
2028 * timezone/southamerica: Likewise.
2029 * timezone/zone.tab: Likewise.
2031 * time/tzfile.c (__tzfile_read): Extend to handle new file format
2032 on machines with 64-bit time_t.
2034 * timezone/checktab.awk: Update from tzcode2006o.
2035 * timezone/ialloc.c: Likewise.
2036 * timezone/private.h: Likewise.
2037 * timezone/scheck.c: Likewise.
2038 * timezone/tzfile.h: Likewise.
2039 * timezone/tzselect.ksh: Likewise.
2040 * timezone/zdump.c: Likewise.
2041 * timezone/zic.c: Likewise.
2044 * elf/ldconfig.c (main): Call setlocale and textdomain.
2045 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
2048 * manual/argp.texi: Fix typos.
2049 * manual/charset.texi: Likewise.
2050 * manual/errno.texi: Likewise.
2051 * manual/filesys.texi: Likewise.
2052 * manual/lang.texi: Likewise.
2053 * manual/maint.texi: Likewise.
2054 * manual/memory.texi: Likewise.
2055 * manual/message.texi: Likewise.
2056 * manual/resource.texi: Likewise.
2057 * manual/search.texi: Likewise.
2058 * manual/signal.texi: Likewise.
2059 * manual/startup.texi: Likewise.
2060 * manual/stdio.texi: Likewise.
2061 * manual/sysinfo.texi: Likewise.
2062 * manual/syslog.texi: Likewise.
2063 * manual/time.texi: Likewise.
2064 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2067 * sunrpc/clnt_raw.c: Minimal message improvements.
2068 * sunrpc/pm_getmaps.c: Likewise.
2069 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
2070 * nis/nis_print_group_entry.c: Likewise.
2071 * locale/programs/repertoire.c: Likewise.
2072 * locale/programs/charmap.c: Likewise.
2073 * malloc/memusage.sh: Likewise.
2074 * elf/dl-deps.c: Likewise.
2075 * locale/programs/ld-collate.c: Likewise.
2076 * libio/vswprintf.c: Likewise.
2077 * malloc/memusagestat.c: Likewise.
2078 * sunrpc/auth_unix.c: Likewise.
2079 * sunrpc/rpc_main.c: Likewise.
2080 * nscd/cache.c: Likewise.
2081 * locale/programs/repertoire.c: Unify output messages.
2082 * locale/programs/charmap.c: Likewise.
2083 * locale/programs/ld-ctype.c: Likewise.
2084 * locale/programs/ld-monetary.c: Likewise.
2085 * locale/programs/ld-numeric.c: Likewise.
2086 * locale/programs/ld-time.c: Likewise.
2087 * elf/ldconfig.c: Likewise.
2088 * nscd/selinux.c: Likewise.
2089 * elf/cache.c: Likewise.
2090 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
2093 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
2097 2006-11-10 Jakub Jelinek <jakub@redhat.com>
2099 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
2100 if N is one bigger than return value.
2101 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
2102 and l1 last arguments, if buf is defined, verify the return value
2103 equals to strlen (buf) and verify no byte beyond passed length
2106 2006-11-10 Ulrich Drepper <drepper@redhat.com>
2108 * po/sv.po: Update from translation team.
2110 2006-11-09 Ulrich Drepper <drepper@redhat.com>
2112 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
2115 2006-11-10 Jakub Jelinek <jakub@redhat.com>
2117 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
2120 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
2121 Use __new_sys_siglist instead of _sys_siglist_internal as
2122 second macro argument.
2123 (_old_sys_siglist): Use declare_symbol_alias macro instead of
2126 2006-11-09 Ulrich Drepper <drepper@redhat.com>
2129 * posix/unistd.h (sysconf): Remove const attribute.
2131 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
2132 temporary or deprecated addresses.
2133 Patch by Sridhar Samudrala <sri@us.ibm.com>.
2135 * string/Makefile (tests): Add tst-strxfrm2.
2136 * string/tst-strxfrm2.c: New file.
2138 2006-10-09 Jakub Jelinek <jakub@redhat.com>
2140 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
2141 rather than r->r_brk.
2143 2006-11-08 Jakub Jelinek <jakub@redhat.com>
2145 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
2146 optimization even if needed > n.
2148 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
2149 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
2150 return false, otherwise return true.
2151 (cache_rpath): Return decompose_rpath return value.
2153 2006-11-07 Jakub Jelinek <jakub@redhat.com>
2155 * include/libc-symbols.h (declare_symbol): Rename to...
2156 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
2157 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
2159 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
2161 * sysdeps/gnu/siglist.c: Likewise.
2163 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
2165 * sysdeps/powerpc/fpu/bits/mathinline.h
2166 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
2167 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
2169 2006-11-05 Ulrich Drepper <drepper@redhat.com>
2171 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
2172 Update handling of cache descriptor 0x49 for new models.
2173 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
2176 2006-11-02 Jakub Jelinek <jakub@redhat.com>
2178 * malloc/memusage.c (dest): Reset not_me back to false after
2179 printing statistics.
2181 2006-11-02 Ulrich Drepper <drepper@redhat.com>
2183 * configure.in: Work around ld --help change and avoid -z relro
2184 test completely if the architecture doesn't care about security.
2186 2006-11-01 Ulrich Drepper <drepper@redhat.com>
2188 * po/sv.po: Update from translation team.
2190 2006-10-31 Ulrich Drepper <drepper@redhat.com>
2192 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
2193 generate compatibility version.
2195 2006-10-29 Ulrich Drepper <drepper@redhat.com>
2197 * configure.in: Relax -z relro requirement a bit.
2199 * po/sv.po: Update from translation team.
2201 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2203 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
2204 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
2205 * elf/dl-close.c (_dl_close_worker): Likewise.
2206 * elf/dl-open.c (_dl_open_worker): Likewise.
2207 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
2209 2006-10-27 Ulrich Drepper <drepper@redhat.com>
2211 * configure.in: Require assembler support for visibility, compiler
2212 support for visibility and aliases, linker support for various -z
2214 * Makeconfig: Remove conditional code which now is unnecessary.
2215 * config.h.in: Likewise.
2216 * config.make.in: Likewise.
2217 * dlfcn/Makefile: Likewise.
2218 * elf/Makefile: Likewise.
2219 * elf/dl-load.c: Likewise.
2220 * elf/rtld.c: Likewise.
2221 * include/libc-symbols.h: Likewise.
2222 * include/stdio.h: Likewise.
2223 * io/Makefile: Likewise.
2224 * io/fstat.c: Likewise.
2225 * io/fstat64.c: Likewise.
2226 * io/fstatat.c: Likewise.
2227 * io/fstatat64.c: Likewise.
2228 * io/lstat.c: Likewise.
2229 * io/lstat64.c: Likewise.
2230 * io/mknod.c: Likewise.
2231 * io/mknodat.c: Likewise.
2232 * io/stat.c: Likewise.
2233 * io/stat64.c: Likewise.
2234 * libio/stdio.c: Likewise.
2235 * nscd/Makefile: Likewise.
2236 * stdlib/Makefile: Likewise.
2237 * stdlib/atexit.c: Likewise.
2238 * sysdeps/generic/ldsodefs.h: Likewise.
2239 * sysdeps/i386/dl-machine.h: Likewise.
2240 * sysdeps/i386/sysdep.h: Likewise.
2241 * sysdeps/i386/i686/memcmp.S: Likewise.
2242 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2243 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2244 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2246 * Makerules: USE_TLS support is now default.
2247 * tls.make.c: Likewise.
2248 * csu/Versions: Likewise.
2249 * csu/libc-start.c: Likewise.
2250 * csu/libc-tls.c: Likewise.
2251 * csu/version.c: Likewise.
2252 * dlfcn/dlinfo.c: Likewise.
2253 * elf/dl-addr.c: Likewise.
2254 * elf/dl-cache.c: Likewise.
2255 * elf/dl-close.c: Likewise.
2256 * elf/dl-iteratephdr.c: Likewise.
2257 * elf/dl-load.c: Likewise.
2258 * elf/dl-lookup.c: Likewise.
2259 * elf/dl-object.c: Likewise.
2260 * elf/dl-open.c: Likewise.
2261 * elf/dl-reloc.c: Likewise.
2262 * elf/dl-support.c: Likewise.
2263 * elf/dl-sym.c: Likewise.
2264 * elf/dl-sysdep.c: Likewise.
2265 * elf/dl-tls.c: Likewise.
2266 * elf/ldconfig.c: Likewise.
2267 * elf/rtld.c: Likewise.
2268 * elf/tst-tls-dlinfo.c: Likewise.
2269 * elf/tst-tls1.c: Likewise.
2270 * elf/tst-tls10.h: Likewise.
2271 * elf/tst-tls14.c: Likewise.
2272 * elf/tst-tls2.c: Likewise.
2273 * elf/tst-tls3.c: Likewise.
2274 * elf/tst-tls4.c: Likewise.
2275 * elf/tst-tls5.c: Likewise.
2276 * elf/tst-tls6.c: Likewise.
2277 * elf/tst-tls7.c: Likewise.
2278 * elf/tst-tls8.c: Likewise.
2279 * elf/tst-tls9.c: Likewise.
2280 * elf/tst-tlsmod1.c: Likewise.
2281 * elf/tst-tlsmod13.c: Likewise.
2282 * elf/tst-tlsmod13a.c: Likewise.
2283 * elf/tst-tlsmod14a.c: Likewise.
2284 * elf/tst-tlsmod2.c: Likewise.
2285 * elf/tst-tlsmod3.c: Likewise.
2286 * elf/tst-tlsmod4.c: Likewise.
2287 * elf/tst-tlsmod5.c: Likewise.
2288 * elf/tst-tlsmod6.c: Likewise.
2289 * include/errno.h: Likewise.
2290 * include/link.h: Likewise.
2291 * include/tls.h: Likewise.
2292 * locale/global-locale.c: Likewise.
2293 * locale/localeinfo.h: Likewise.
2294 * malloc/arena.c: Likewise.
2295 * malloc/hooks.c: Likewise.
2296 * malloc/malloc.c: Likewise.
2297 * resolv/Versions: Likewise.
2298 * sysdeps/alpha/dl-machine.h: Likewise.
2299 * sysdeps/alpha/libc-tls.c: Likewise.
2300 * sysdeps/generic/ldsodefs.h: Likewise.
2301 * sysdeps/generic/tls.h: Likewise.
2302 * sysdeps/i386/dl-machine.h: Likewise.
2303 * sysdeps/ia64/dl-machine.h: Likewise.
2304 * sysdeps/ia64/libc-tls.c: Likewise.
2305 * sysdeps/mach/hurd/fork.c: Likewise.
2306 * sysdeps/mach/hurd/i386/tls.h: Likewise.
2307 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
2308 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
2309 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
2310 * sysdeps/s390/libc-tls.c: Likewise.
2311 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2312 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2313 * sysdeps/sh/dl-machine.h: Likewise.
2314 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2315 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2316 * sysdeps/x86_64/dl-machine.h: Likewise.
2318 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
2319 split out locking and parameter checking.
2320 (_dl_close): Call _dl_close_worker after locking and checking.
2321 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
2323 * elf/Makefile: Add rules to build and run tst-thrlock.
2324 * elf/tst-thrlock.c: New file.
2327 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
2331 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
2332 we are sure we do not need it anymore for _dl_close. Also move
2333 the asserts inside the lock region.
2334 Patch mostly by Suzuki <suzuki@in.ibm.com>.
2336 2006-10-27 Jakub Jelinek <jakub@redhat.com>
2338 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
2340 (_dl_lookup_symbol_x): Adjust caller.
2342 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
2344 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
2346 * elf/dl-libc.c: Revert l_scope name changes.
2347 * elf/dl-load.c: Likewise.
2348 * elf/dl-object.c: Likewise.
2349 * elf/rtld.c: Likewise.
2350 * elf/dl-close.c (_dl_close): Likewise.
2351 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
2352 always use __rtld_mrlock_{change,done}. Always free old scope list
2353 here if not l_scope_mem.
2354 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
2355 change. Never free scope list here. Just __rtld_mrlock_lock before
2356 the lookup and __rtld_mrlock_unlock it after the lookup.
2357 * elf/dl-sym.c: Likewise.
2358 * include/link.h (struct r_scoperec): Remove.
2359 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
2360 with l_scope_mem and l_scoperec_lock with l_scope_lock.
2362 2006-10-25 Ulrich Drepper <drepper@redhat.com>
2364 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
2366 2006-10-18 Ulrich Drepper <drepper@redhat.com>
2368 * configure.in: Disable building profile libraries by default.
2370 2006-10-17 Jakub Jelinek <jakub@redhat.com>
2372 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
2373 as signed longs, check for x_base + pos overflow.
2374 * sunrpc/Makefile (tests): Add tst-xdrmem2.
2375 * sunrpc/tst-xdrmem2.c: New test.
2377 2006-10-18 Ulrich Drepper <drepper@redhat.com>
2379 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
2380 _dl_lookup_symbol_x code.
2382 2006-10-17 Jakub Jelinek <jakub@redhat.com>
2384 * elf/dl-runtime.c: Include sysdep-cancel.h.
2385 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
2386 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
2387 instead of catomic_* macros.
2388 * elf/dl-sym.c: Include sysdep-cancel.h.
2389 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
2390 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
2391 * elf/dl-close.c: Include sysdep-cancel.h.
2392 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
2393 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
2394 * elf/dl-open.c: Include sysdep-cancel.h.
2395 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
2396 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
2398 2006-10-17 Jakub Jelinek <jakub@redhat.com>
2401 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
2402 fastbin rather than end of fastbin array.
2404 2006-10-18 Ulrich Drepper <drepper@redhat.com>
2406 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
2408 * sysdeps/x86_64/bits/atomic.h
2409 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
2410 (catomic_decrement): Use correct body macro.
2412 2006-10-17 Jakub Jelinek <jakub@redhat.com>
2414 * include/atomic.h: Add a unique prefix to all local variables
2416 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
2418 2006-10-16 Ulrich Drepper <drepper@redhat.com>
2421 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
2424 2006-10-14 Ulrich Drepper <drepper@redhat.com>
2426 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
2428 2006-10-13 Ulrich Drepper <drepper@redhat.com>
2431 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
2432 determine highest fast bin to consolidate, always look into all of
2434 (do_check_malloc_state): Only require for empty bins for large
2435 sizes in main arena.
2437 * libio/stdio.h: Add more __wur attributes.
2439 * elf/dl-minimal.c (realloc): Optimize last patch.
2441 2006-10-12 Richard Sandiford <richard@codesourcery.com>
2444 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
2445 and use memcpy() if it does.
2447 2006-11-12 Andreas Jaeger <aj@suse.de>
2450 * manual/search.texi (Hash Search Function): Clarify.
2451 (Array Search Function): Clarify.
2453 2006-11-12 Joseph Myers <joseph@codesourcery.com>
2456 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
2458 * math/atest-exp2.c (read_mpn_hex): Likewise.
2459 * math/atest-sincos.c (main): Likewise.
2461 2006-10-11 Ulrich Drepper <drepper@redhat.com>
2463 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
2464 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
2465 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
2467 * Versions.def: Add GLIBC_2.6 for libc.
2469 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
2471 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
2473 2006-10-11 Jakub Jelinek <jakub@redhat.com>
2475 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
2477 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
2479 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
2480 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
2482 2006-10-11 Ulrich Drepper <drepper@redhat.com>
2484 * include/atomic.c: Define catomic_* operations.
2485 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
2486 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
2487 * malloc/memusage.c: Likewise.
2488 * gmon/mcount.c: Likewise.
2489 * elf/dl-close.c: Likewise.
2490 * elf/dl-open.c: Likewise.
2491 * elf/dl-profile.c: Likewise.
2492 * elf/dl-sym.c: Likewise.
2493 * elf/dl-runtime.c: Likewise.
2494 * elf/dl-fptr.c: Likewise.
2495 * resolv/res_libc.c: Likewise.
2497 2006-10-10 Ulrich Drepper <drepper@redhat.com>
2499 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
2500 components which lack them.
2502 * nis/nis_subr.c (nis_getnames): Make sure that we always return
2503 at least one entry consisting of the parameter concatenated with
2506 2006-10-10 Roland McGrath <roland@frob.com>
2508 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
2509 * sysdeps/mach/hurd/futimes.c: Likewise.
2510 * sysdeps/mach/hurd/lutimes.c: Likewise.
2512 2006-10-09 Ulrich Drepper <drepper@redhat.com>
2513 Jakub Jelinek <jakub@redhat.com>
2515 Implement reference counting of scope records.
2516 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
2517 from the list in objects which remain. Always allocate new scope
2519 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
2520 don't resize, allocate a new one.
2521 * elf/dl-runtime.c: Update reference counters before using a scope
2523 * elf/dl-sym.c: Likewise.
2524 * elf/dl-libc.c: Adjust for l_scope name change.
2525 * elf/dl-load.c: Likewise.
2526 * elf/dl-object.c: Likewise.
2527 * elf/rtld.c: Likewise.
2528 * include/link.h: Include <rtld-lowlevel.h>. Define struct
2529 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
2530 Add l_scoperec_lock.
2531 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
2532 * sysdeps/generic/rtld-lowlevel.h: New file.
2534 * include/atomic.h: Rename atomic_and to atomic_and_val and
2535 atomic_or to atomic_or_val. Define new macros atomic_and and
2536 atomic_or which do not return values.
2537 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
2539 * sysdeps/i386/i486/bits/atomic.h: Likewise.
2541 * po/sv.po: Update from translation team.
2543 2006-10-07 Ulrich Drepper <drepper@redhat.com>
2545 * Versions.def: Add GLIBC_2.6 to libpthread.
2547 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
2548 (versioned_symbol): Likewise.
2549 (compat_symbol): Likewise.
2551 * po/tr.po: Update from translation team.
2553 2006-10-06 Ulrich Drepper <drepper@redhat.com>
2555 * nis/Banner: Removed. It's been integral part forever and the
2556 author info is incomplete anyway.
2557 * libio/Banner: Likewise.
2559 * nis/nis_table.c (nis_list): If __follow_path fails in the new
2560 code, make sure the nis_freeresult call doesn't crash and that the
2561 result is reported correctly.
2563 2006-09-27 Jakub Jelinek <jakub@redhat.com>
2565 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
2566 when callback is NULL.
2568 * nis/Versions (libnss_nisplus): Add
2569 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
2570 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
2571 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
2572 _nss_create_tablename): Rename to...
2573 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
2574 ... these. No longer static.
2575 (internal_setgrent): Adjust users.
2576 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
2577 Don't use locking around _nss_grp_create_tablename call.
2578 * nis/nss_nisplus/nisplus-initgroups.c: New file.
2580 2006-10-06 Ulrich Drepper <drepper@redhat.com>
2582 * version.h (VERSION): Bump to 2.5.90 for new development tree.
2584 2006-10-06 Andreas Jaeger <aj@suse.de>
2586 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
2588 2006-10-06 Ulrich Drepper <drepper@redhat.com>
2590 * po/pl.po: Update from translation team.
2592 * nscd/nscd.c (main): Fix typo in message.
2593 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
2595 2006-10-02 Jakub Jelinek <jakub@redhat.com>
2598 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
2599 errno.h, signal.h, unistd.h and sysdep-cancel.h.
2600 (__sigprocmask): Define.
2602 2006-10-02 Ulrich Drepper <drepper@redhat.com>
2604 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
2607 2006-10-02 Jakub Jelinek <jakub@redhat.com>
2609 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
2610 in oldtotal and newtotal calculation.
2611 * nscd/nscd-client.h (struct mapped_database): Add datasize
2613 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
2614 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
2616 (__nscd_cache_search): Add checks to make sure we never reference
2617 data beyond the current mapping.
2619 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
2621 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
2622 variables const to avoid compiler warnings.
2624 * io/fts.c (fts_close): Remove redundant checks.
2625 (fts_build): Likewise.
2626 (fts_palloc): Likewise.
2628 * manual/message.texi (Advanced gettext functions,
2629 Using gettextized software): Fix typos.
2631 2006-09-30 Ulrich Drepper <drepper@redhat.com>
2633 * posix/glob.c (glob_in_dir): Add some comments and asserts to
2634 explain why there are no leaks.
2636 2006-09-29 Ulrich Drepper <drepper@redhat.com>
2638 * libio/wmemstream.c: Include <wchar.h>.
2639 * libio/bug-wmemstream1.c: Likewise.
2640 * libio/tst-wmemstream1.c: Likewise.
2641 * libio/tst-wmemstream2.c: Likewise.
2643 * version.h (RELEASE): Bump to 2.5.
2644 * README: Regenerated.
2646 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
2649 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
2650 found no group members.
2651 Patch by Petr Baudis.
2653 2006-09-29 Jakub Jelinek <jakub@redhat.com>
2655 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
2656 assert bootstrap_map.l_tls_modid is zero.
2657 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
2660 2006-09-27 Ulrich Drepper <drepper@redhat.com>
2662 * libio/stdio.h: Move open_wmemstream prototype to ...
2663 * wcsmbs/wchar.h: ... here.
2665 2006-09-25 Jakub Jelinek <jakub@redhat.com>
2668 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
2669 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
2670 __{,l}chown to handle the rest.
2671 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
2672 fchownat syscall and __ASSUME_32BITUIDS case inline, call
2673 __{,l}chown to handle the rest.
2674 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
2676 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
2677 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
2680 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
2681 time, rather allocate increasingly bigger arrays of pointers, if
2682 possible with alloca, if too large with malloc.
2684 2006-09-24 Jakub Jelinek <jakub@redhat.com>
2686 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
2688 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
2690 2006-09-24 Ulrich Drepper <drepper@redhat.com>
2692 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
2694 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
2695 IFA_F_HOMEADDRESS flag for interfaces.
2696 * include/ifaddrs.h (struct in6addrinfo): Define
2699 2006-09-21 Jakub Jelinek <jakub@redhat.com>
2702 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
2703 PTR_DEMANGLE3): Define.
2704 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
2705 PTR_DEMANGLE3): Likewise.
2706 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
2707 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
2709 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
2711 2006-09-20 Jakub Jelinek <jakub@redhat.com>
2713 * po/libc.pot: Regenerated.
2714 * po/be.po: Updated.
2715 * po/ca.po: Likewise.
2716 * po/cs.po: Likewise.
2717 * po/da.po: Likewise.
2718 * po/de.po: Likewise.
2719 * po/el.po: Likewise.
2720 * po/en_GB.po: Likewise.
2721 * po/es.po: Likewise.
2722 * po/fi.po: Likewise.
2723 * po/fr.po: Likewise.
2724 * po/gl.po: Likewise.
2725 * po/hr.po: Likewise.
2726 * po/hu.po: Likewise.
2727 * po/ja.po: Likewise.
2728 * po/ko.po: Likewise.
2729 * po/nb.po: Likewise.
2730 * po/nl.po: Likewise.
2731 * po/pl.po: Likewise.
2732 * po/pt_BR.po: Likewise.
2733 * po/ru.po: Likewise.
2734 * po/rw.po: Likewise.
2735 * po/sk.po: Likewise.
2736 * po/sv.po: Likewise.
2737 * po/tr.po: Likewise.
2738 * po/zh_CN.po: Likewise.
2739 * po/zh_TW.po: Likewise.
2742 * iconv/iconv_prog.c (main): Fix spelling in error message.
2743 * iconv/iconvconfig.c (main): Likewise.
2744 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
2745 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
2746 * locale/programs/localedef.c (main): Likewise.
2747 * locale/programs/repertoire.c (repertoire_read): Likewise.
2748 * timezone/zdump.c (main): Likewise.
2749 * nscd/connections.c (handle_request): Fix spelling in log message.
2750 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
2752 2006-09-20 Ulrich Drepper <drepper@redhat.com>
2754 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
2757 2006-09-20 Andreas Jaeger <aj@suse.de>
2759 * math/libm-test.inc (lrint_test_upward): Fix typo.
2761 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
2764 * math/libm-test.inc (lrint_test_tonearest): New function.
2765 (lrint_test_towardzero): New function.
2766 (lrint_test_downward): New function.
2767 (lrint_test_upward): New function.
2768 (main): Run these new tests.
2769 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
2770 of values near to 0.
2771 (two52): Use double not long double.
2772 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
2773 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
2774 (two23): Use float not double.
2775 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
2776 (two23): Use float not double.
2777 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
2778 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
2779 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
2780 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
2782 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2784 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
2785 Cast sp to unsigned long to avoid compiler warning.
2786 Use __makecontext_ret function instead of a trampoline on the stack.
2787 (__makecontext_ret): New function.
2788 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
2790 2006-09-19 Jakub Jelinek <jakub@redhat.com>
2792 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
2793 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
2796 2006-09-19 Ulrich Drepper <drepper@redhat.com>
2798 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
2799 sure no reference to the unloaded map's search list remains in the
2802 2006-09-16 Jakub Jelinek <jakub@redhat.com>
2804 * elf/Makefile: Add rules to build and run unload7 test.
2805 * elf/unload7.c: New test.
2806 * elf/unload7mod1.c: New file.
2807 * elf/unload7mod2.c: New file.
2809 2006-09-18 Jakub Jelinek <jakub@redhat.com>
2811 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
2812 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
2813 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
2814 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
2815 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
2816 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
2817 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
2818 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
2819 PTRACE_GETEVENTMSG): Likewise.
2820 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
2823 2006-09-17 Mike Frysinger <vapier@gentoo.org>
2825 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
2826 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
2827 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
2828 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
2830 2006-09-16 Jakub Jelinek <jakub@redhat.com>
2832 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
2833 write '\0' to the fd.
2834 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
2835 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
2836 Change regs to unsigned long pointer from unsigned int, fix fscr
2839 2006-09-14 Jakub Jelinek <jakub@redhat.com>
2841 * io/Makefile (CFLAGS-fstatat.c): Set.
2842 (CFLAGS-fstatat64.c): Likewise.
2843 (CFLAGS-mknodat.c): Likewise.
2845 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
2846 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
2847 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
2848 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
2850 2006-09-14 Jakub Jelinek <jakub@redhat.com>
2851 Steven Munroe <sjmunroe@us.ibm.com>
2853 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
2854 names to the beginning. Rename "cell" to "cellbe".
2855 (_dl_powerpc_platforms): New.
2856 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
2857 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
2858 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
2859 (_DL_HWCAP_PLATFORM): Define to new mask.
2860 (_dl_platform_string, _dl_string_platform): New functions.
2861 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
2862 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
2864 2006-09-12 Jakub Jelinek <jakub@redhat.com>
2867 * README.libm: Fix a thinko in sqrt algorithm description.
2870 * manual/string.texi (argz_delete): Fix prototype.
2871 Patch by <alpt@freaknet.org>.
2873 2006-08-26 Joseph Myers <joseph@codesourcery.com>
2876 * io/test-lfs.c (do_prepare): Give name_len type size_t.
2877 * io/tst-fcntl.c (do_prepare): Likewise.
2878 * posix/tst-exec.c (do_prepare): Likewise.
2879 * posix/tst-preadwrite.c (do_prepare): Likewise.
2880 * posix/tst-spawn.c (do_prepare): Likewise.
2881 * posix/tst-truncate.c (do_prepare): Likewise.
2882 * rt/tst-aio.c (do_prepare): Likewise.
2883 * rt/tst-aio64.c (do_prepare): Likewise.
2884 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
2887 2006-09-09 Ulrich Drepper <drepper@redhat.com>
2890 * time/mktime.c (guess_time_tm): Fix overflow detection.
2891 * time/Makefile (tests): Add bug-mktime1.
2892 * time/bug-mktime1.c: New file.
2895 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
2898 2006-09-07 Jakub Jelinek <jakub@redhat.com>
2901 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
2902 Ensure relocation doesn't clobber any bits outside of the
2903 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
2904 R_SPARC_HI22 and R_SPARC_H44.
2907 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
2908 (long) (MINSIZE + nb - old_size) is positive.
2910 * malloc/arena.c (grow_heap): When growing bail even if new_size
2914 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
2917 2006-09-06 Jakub Jelinek <jakub@redhat.com>
2919 * posix/regex_internal.c (re_string_reconstruct): Handle
2920 offset < pstr->valid_raw_len && pstr->offsets_needed case.
2921 Ensure no bytes read before raw_mbs array. Pass a saved copy of
2922 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
2923 re_string_context_at.
2924 * posix/Makefile: Add rules to build and run bug-regex26 test.
2925 * posix/bug-regex26.c: New test.
2927 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
2928 rather than col_sym_free. Move seqp declaration earlier.
2930 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
2932 2006-09-05 Jakub Jelinek <jakub@redhat.com>
2934 * nscd/initgrcache.c (addinitgroupsX): Move any_success
2935 decl before first goto out.
2937 2006-09-04 Jakub Jelinek <jakub@redhat.com>
2939 * Makerules (shlib.lds): If have-hash-style, put .hash section
2940 at the end of the RO segment.
2942 2006-09-04 Ulrich Drepper <drepper@redhat.com>
2944 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
2945 style hash table format is used.
2947 2006-09-04 Jakub Jelinek <jakub@redhat.com>
2949 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
2950 randomization rather than before.
2951 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
2953 2006-08-31 Jakub Jelinek <jakub@redhat.com>
2955 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
2957 * malloc/malloc.c (_int_malloc): Use full list insert and not
2958 shortcut which assumes the list is empty for large requests
2961 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
2963 2006-08-30 Jakub Jelinek <jakub@redhat.com>
2965 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
2966 and offout arguments to the prototype.
2967 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
2968 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
2969 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
2970 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
2971 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
2972 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
2973 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
2974 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
2976 2006-08-28 Ulrich Drepper <drepper@redhat.com>
2978 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
2980 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
2983 2006-08-28 Jakub Jelinek <jakub@redhat.com>
2985 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
2986 only if herrno is NETDB_INTERNAL. Handle errors other than
2987 ERANGE outside of the loops, handle TRY_AGAIN.
2989 * locale/programs/ld-ctype.c (translit_flatten): Issue error
2990 if other's ctype category was missing.
2991 * locale/programs/ld-collate.c (collate_read): Return if
2992 copy_locale's collate category is missing.
2994 2006-08-27 Ulrich Drepper <drepper@redhat.com>
2997 * malloc/malloc.c (public_rEALLOc): Try harder by using other
2998 arenas if allocation failed.
2999 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
3001 2006-08-26 Ulrich Drepper <drepper@redhat.com>
3003 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
3005 (malloc_state): Reduce bins size by 2.
3006 (_int_malloc): Fix test for large enough buffer for early termination.
3007 When no unsorted block matches perfectly and an exiting block has
3008 to be split, use full list insert and not shortcut which assumes
3011 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
3014 2006-08-24 Ulrich Drepper <drepper@redhat.com>
3016 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
3019 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
3020 symbol require exact match (these are PLTs).
3021 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
3022 (_dl_ppc64_addr_sym_match): Likewise.
3025 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
3026 If symbol has a value use it.
3027 * elf/tst-dladdr1.c: New file.
3028 * elf/Makefile: Add rules to build and run tst-addr1.
3030 2006-08-24 Jakub Jelinek <jakub@redhat.com>
3032 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
3033 keeps failing and heap growth or new heap creation isn't
3035 * malloc/tst-malloc.c (main): Add new tests.
3037 2006-08-24 Ulrich Drepper <drepper@redhat.com>
3040 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
3041 as in the x86-64 code to use bswap.
3043 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
3046 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
3048 * posix/bits/unistd.h: Likewise.
3050 2006-05-15 Mike Frysinger <vapier@gentoo.org>
3053 * string/strchr.c: Add cast to avoid warning.
3055 2006-08-21 Ulrich Drepper <drepper@redhat.com>
3057 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
3058 platforms define as 512K. For 64-bit platforms as 32MB. The lower
3059 limit is needed to avoid the exploding of the address space
3060 requirement for secondary heaps.
3061 * malloc/arena.c (HEAP_MAX_SIZE): Define using
3062 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
3064 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
3067 * Makerules (depfiles): Handle extra-test-objs the same as
3069 (common-mostlyclean): Likewise.
3070 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
3072 * elf/Makefile (extra-objs): Likewise.
3073 * stdlib/Makefile (extra-objs): Likewise.
3075 2006-08-14 Eric Blake <ebb9@byu.net>
3078 * misc/error.h: Assume C89 or better.
3079 * misc/error.c: Likewise.
3081 2006-08-21 Ulrich Drepper <drepper@redhat.com>
3084 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
3085 __ASSUME_ATFCTS is defined.
3087 2006-08-19 Ulrich Drepper <drepper@redhat.com>
3089 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
3090 to sort in each call.
3092 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
3093 is empty simply return and use next service.
3094 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
3096 * locale/programs/charmap.c (charmap_read): Add new parameter. It
3097 tells us when not finding a charmap file is an error.
3098 * locale/programs/charmap.h: Adjust charmap_read prototype.
3099 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
3100 cannot find a charmap.
3101 * locale/programs/localedef.c (main): Adjust charmap_read call.
3103 2006-08-15 Jakub Jelinek <jakub@redhat.com>
3105 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
3106 sysdeps/posix/pause.c implementation instead.
3108 2006-08-09 Jakub Jelinek <jakub@redhat.com>
3110 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
3113 2006-08-13 Andreas Schwab <schwab@suse.de>
3115 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
3116 Don't clobber caller's LRSAVE.
3117 (_dl_prof_resolve): Likewise.
3119 2006-08-14 Ulrich Drepper <drepper@redhat.com>
3122 * libio/memstream.c (open_memstream): Allocate initial buffer with
3124 * libio/wmemstream.c (open_wmemstream): Likewise.
3125 * libio/strops.c: Pretty printing.
3126 (_IO_str_overflow): Clear uninitialized part of the new buffer.
3127 (enlarge_userbuf): New function.
3128 (_IO_str_seekoff): Call it if seek position is larger than current
3130 * libio/wstrops.c: Likewise.
3131 * libio/vasprintf.c: Add comment as to why we do not have to use
3132 calloc instead of malloc to allocate initial buffer.
3133 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
3134 * libio/bug-memstream1.c: New file.
3135 * libio/bug-wmemstream1.c: New file.
3137 2006-08-13 Ulrich Drepper <drepper@redhat.com>
3139 * libio/wstrops.c: Remove dead macro definitions and comments.
3140 * libio/strops.c: Likewise.
3143 * login/utmpname.c (__utmpname): Remove unnecessary test.
3145 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
3148 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
3151 2006-08-13 Ulrich Drepper <drepper@redhat.com>
3154 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
3156 * sysdeps/unix/clock_settime.c: Add support for platform-specific
3157 setting of CPU clocks.
3159 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
3162 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
3163 since C99 requires the result to promote to 'int' when uint_least8_t
3164 and uint_least16_t promote to 'int'.
3166 2006-08-12 Ulrich Drepper <drepper@redhat.com>
3169 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
3170 lenght of one output field, correct bitmask creation.
3171 * locale/programs/ld-time.c: Add alignment.
3174 * misc/error.c: Add space between program name and message if file
3177 2006-08-03 Eric Blake <ebb9@byu.net>
3180 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
3182 2006-08-09 Ulrich Drepper <drepper@redhat.com>
3184 * malloc/memusagestat.c: Silence warnings.
3186 * malloc/malloc.c: Dynamically size mmap treshold if the program
3187 frees mmaped blocks.
3188 Patch by Valerie Henson and Arjan van de Ven.
3190 2006-08-08 Jakub Jelinek <jakub@redhat.com>
3192 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
3195 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
3196 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
3197 (DEF): Don't put the var into .gnu.linkonce.r.* section.
3198 Only provide var definitions in strtol_l (or for *ull*
3201 * stdio-common/bug16.c (tests): New array.
3202 (do_tests): Allow the first hexadecimal digit
3203 to be 1, 2, 4 or 8. Do 3 additional tests.
3205 * sysdeps/s390/fpu/libm-test-ulps: Update.
3207 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
3208 fchownat syscall if available.
3209 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
3210 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
3211 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
3213 2006-08-07 Ulrich Drepper <drepper@redhat.com>
3215 * nis/nis_xdr.c: Avoid some function calls.
3217 2006-08-07 Jakub Jelinek <jakub@redhat.com>
3218 Ulrich Drepper <drepper@redhat.com>
3220 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
3221 short cut if only one name component is stripped away.
3223 2006-08-07 Ulrich Drepper <drepper@redhat.com>
3225 * nis/nis_call.c: Minor cleanups throughout.
3226 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
3227 (first_shoot): Add search_parent_first parameter. Only if it is set
3228 search parent server first.
3229 If directory for table found through cold start cache is not the same
3230 as referenced in the cache, don't use it.
3231 (__nisfind_server): Take additional parameter. Pass it on to
3233 (__prepare_niscall): Adjust __nisfind_server call.
3234 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
3235 * nis/nis_table.c: Adjust __nisfind_server call.
3236 * nis/nis_lookup.c: Likewise.
3237 (nis_lookup): Don't loop endlessly if name is reduced to ".".
3239 2006-08-03 Ulrich Drepper <drepper@redhat.com>
3242 * math/s_cacosh.c: Return values from positive branch.
3243 * math/s_cacoshf.c: Likewise.
3244 * math/s_cacoshl.c: Likewise.
3247 * sysvipc/sys/msg.h: Change return value to ssize_t.
3248 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3249 * sysvipc/msgrcv.c: Likewise.
3250 * include/sys/msg.h: Likewise.
3252 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
3253 test introduced in patch for bz #661.
3254 (getgrouplist): Simplify code a bit. Don't allocate one additional
3255 element for NEWGROUPS.
3258 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
3259 'f', use '1' as leading digit not '\1'.
3260 * stdio-common/Makefile (tests): Add bug16.
3261 * stdio-common/bug16.c: New file.
3264 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
3265 and don't try to open it. The patch introducing the macro
3266 contained a bug and used the same file name as the new file
3267 instead of using /var/adm/hostid. Nobody complaint so I'm taking
3268 this out completely.
3271 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
3272 Patch by Jerry James <Jerry.James@usu.edu>.
3274 * rt/Makefile (tests): Add tst-clock2.
3275 * rt/tst-clock2.c: New file.
3278 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
3279 function and its parameters and pass it to new thread.
3280 (__gai_notify): Add support for alternative waiting for completion.
3281 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
3282 waiting for completion.
3283 * resolv/getaddrinfo_a.c: Likewise.
3284 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
3285 waiting for completion is used.
3286 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
3287 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
3288 * resolv/gai_error.c: Likewise.
3289 * resolv/gai_sigqueue.c: Likewise.
3291 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
3293 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
3294 errno to EBADF and return MACH_PORT_NULL.
3296 2006-06-23 Joseph Myers <joseph@codesourcery.com>
3299 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
3301 2006-08-02 Ulrich Drepper <drepper@redhat.com>
3303 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
3304 walk them instead of the symbol table.
3306 2006-08-01 Ulrich Drepper <drepper@redhat.com>
3309 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
3310 status of NSS calls, not the number of returned entries.
3312 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
3313 request_key, keyctl.
3315 2006-07-31 Ulrich Drepper <drepper@redhat.com>
3317 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
3319 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
3321 * elf/tst-auditmod1.c: Fix typo in #error.
3323 2006-07-31 Ulrich Drepper <drepper@redhat.com>
3325 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
3327 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
3329 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
3331 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
3332 that the directory is empty even on non-POSIX filesystems.
3334 2006-07-31 Ulrich Drepper <drepper@redhat.com>
3336 * elf/dl-open.c (dl_open_worker): Add branch prediction.
3338 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
3339 the backend NSS module. If backend setgrent call failed, don't have
3340 internal_setgrent fail. Just remember this until it is needed.
3341 * nis/nss_compat/compat-pwd.c: Likewise.
3342 * nis/nss_compat/compat-spwd.c: Likewise.
3344 2006-07-30 Roland McGrath <roland@redhat.com>
3346 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
3347 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
3348 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
3349 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
3351 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
3352 (nanosleep_not_cancel): New macro.
3353 (sigsuspend_not_cancel): new macro.
3354 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
3355 (do_sigsuspend): Define as inline.
3356 (__sigsuspend): Always use do_sigsuspend.
3357 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
3358 * include/signal.h: Declare __sigsuspend_nocancel.
3359 * sysdeps/posix/pause.c
3360 [! NO_CANCELLATION] (__pause_nocancel): New function.
3362 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
3363 * include/time.h (__nanosleep_nocancel): Likewise.
3365 2006-07-30 Ulrich Drepper <drepper@redhat.com>
3367 * locale/programs/localedef.c (add_to_readlist): Rename local
3368 variables to avoid confusion.
3370 * locale/programs/charmap.c (charmap_read): Emit error message if
3371 charmap couldn't be found or read.
3373 2006-07-28 Ulrich Drepper <drepper@redhat.com>
3375 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3376 __ASSUME_FUTEX_LOCK_PI.
3377 * include/time.h: Declare __nanosleep_nocancel.
3378 * include/unistd.h: Declare __pause_nocancel.
3380 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
3381 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
3382 get the __stack_chk_fail_local definition when it's needed.
3384 2006-07-26 Ulrich Drepper <drepper@redhat.com>
3386 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
3387 * dlfcn/bug-atexit3.c: New file.
3388 * dlfcn/bug-atexit3-lib.cc: New file.
3390 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
3391 used when the namespace is not the base namespace.
3393 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
3395 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
3396 (__new_exitfn): Bump it in every successful call.
3397 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
3398 more exit handlers, call them right away.
3399 * stdlib/exit.h: Declare __new_exitfn_called.
3401 2006-07-25 Ulrich Drepper <drepper@redhat.com>
3403 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
3404 calling registered handler.
3406 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
3407 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3408 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3409 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3410 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3411 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3412 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3413 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3415 2006-07-10 Ulrich Drepper <drepper@redhat.com>
3417 * elf/dl-lookup.c (dl_new_hash): New functions.
3418 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
3419 value here. Compute new-style hash value. Pass new hash value
3420 and reference to variable with the old value to do_lookup_x.
3421 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
3422 old-style hash table.
3423 (_dl_debug_bindings): Pass new hash value and reference to variable
3424 with the old value to do_lookup_x.
3425 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
3426 new-style hash value and change old-style hash value parameter to
3427 be a reference. Reoganize functions to determine whether
3428 new-style hash table is available. Only fall back on old-style
3429 table. If old-style hash value is needed, compute it here.
3430 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
3432 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
3433 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
3434 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
3435 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
3436 * Makeconfig: If linker supports --hash-style option add it to all
3437 linker command lines to build DSOs.
3438 * config.make.in: Define have-hash-style.
3439 * configure.in: Test whether linker supports --hash-style option.
3441 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
3442 * sysdeps/generic/ldsodefs.h: Adjust prototype.
3444 2006-06-27 Ulrich Drepper <drepper@redhat.com>
3446 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
3449 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
3450 RPATH of main map twice.
3452 2006-06-22 Ulrich Drepper <drepper@redhat.com>
3454 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
3455 look further, return original strings.
3456 (_nl_find_msg): Do not return found translation if the conversion
3457 failed. Either signal the string is unusable or that something went
3458 wrong and the original should be used.
3460 2006-06-21 Ulrich Drepper <drepper@redhat.com>
3462 * string/_strerror.c (__strerror_r): Add __builtin_expect.
3464 2006-06-14 Jakub Jelinek <jakub@redhat.com>
3467 * misc/insremque.c (insque): Handle prev == NULL.
3468 * misc/Makefile (tests): Add tst-insremque.
3469 * misc/tst-insremque.c: New test.
3471 2006-06-17 Ulrich Drepper <drepper@redhat.com>
3474 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
3475 conflict with DL_DST_REQUIRED.
3477 2006-06-16 Ulrich Drepper <drepper@redhat.com>
3479 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
3480 match what Solaris does.
3482 2006-06-04 Ulrich Drepper <drepper@redhat.com>
3484 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
3485 local_setegid instead of seteuid and setegid.
3486 * sysdeps/generic/local-setxid.h: New file.
3487 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
3489 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
3491 * string/Makefile (tests): Add bug-envz1.
3492 * string/bug-envz1.c: New file.
3494 2006-06-02 Jakub Jelinek <jakub@redhat.com>
3496 * posix/regex_internal.c (re_string_skip_chars): If no character has
3497 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
3498 to the byte which couldn't be converted.
3499 (re_string_reconstruct): Don't clear valid_raw_len before calling
3500 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
3501 tip_context using re_string_context_at.
3502 * posix/Makefile: Add rules to build and run bug-regex25 test.
3503 * posix/bug-regex25.c: New test.
3505 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
3508 * string/envz.c (envz_strip): Correct erroneously reversed src
3509 and dest parameters to memmove() invocation.
3511 2006-05-30 Jakub Jelinek <jakub@redhat.com>
3513 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
3514 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
3515 to make sure the database has been already invalidated.
3516 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
3517 after the cache has been invalidated. Use pthread_mutex_lock rather
3518 than pthread_mutex_trylock if fd != -1.
3519 * nscd/connections.c (invalidate_cache): Add fd argument, write
3520 response to fd if not calling prune_cache, pass fd to prune_cache.
3521 (handle_request): Adjust invalidate_cache caller.
3522 (nscd_run): Pass -1 as fd to prune_cache.
3524 2006-05-30 Ulrich Drepper <drepper@redhat.com>
3526 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
3529 2006-05-29 Ulrich Drepper <drepper@redhat.com>
3531 * nscd/nscd.h (struct database_dyn): Add prunelock field.
3532 * nscd/cache.c (prune_cache): Take prunelock before starting the
3533 work. Just return in case it is already taken.
3534 * nscd/connections.c (dbs): Initialize .prunelock.
3536 2006-05-25 Ulrich Drepper <drepper@redhat.com>
3538 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
3539 copying. No need to allocate new array for group members. Just
3540 move the pointers and update the size.
3542 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
3543 Avoid memory leak in case realloc fails. Simplification for
3544 better code generation.
3546 Avoid deprecation warning because of libc_hidden_proto for
3548 * inet/inet6_option.c (option_alloc): Renamed from
3549 inet6_option_alloc. Made static.
3550 (inet6_option_alloc): Now a simple wrapper around option_alloc.
3551 (inet6_option_append): Call option_alloc.
3552 * include/netinet/in.h: Remove libc_hidden_proto for
3555 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
3556 for cleanup when cb!=NULL [Coverity CID 233].
3558 2006-05-24 Ulrich Drepper <drepper@redhat.com>
3561 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
3562 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
3563 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
3564 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
3565 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
3566 and inet6_rth_getaddr.
3567 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
3569 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
3570 Mark inet6_option_* interfaces as deprecated.
3571 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
3572 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
3573 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
3574 inet6_rth_segments, and inet6_rth_getaddr.
3575 * inet/inet6_opt.c: New file.
3576 * inet/inet6_rth.c: New file.
3578 * inet/netinet/icmp6.h: Pretty printing.
3581 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
3583 2006-05-23 Ulrich Drepper <drepper@redhat.com>
3585 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
3586 doing it all here. When server does not know the answer do not
3587 fail immediate, try parent first.
3589 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
3592 2006-05-20 Ulrich Drepper <drepper@redhat.com>
3594 * nis/nis_call.c (__prepare_niscall): New function. Split out
3596 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
3598 (__follow_path): New function. Split out from nis_list.
3599 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
3601 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
3603 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
3605 * nis/Versions: Export __prepare_niscall, __create_ib_request,
3606 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
3607 from libnsl for version GLIBC_PRIVATE.
3608 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
3609 Remove entry parameter from _nss_nisplus_parse_pwent and
3610 _nss_nisplus_parse_grent.
3611 * nis/nss_nisplus/nisplus-parser.c: Likewise.
3612 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
3613 again. Rewrite getpwent handling to not use nis_first_entry and
3614 nis_next_entry. Roll out own niscall handling.
3615 * nis/nss_nisplus/nisplus-grp.c: Likewise.
3617 * sunrpc/xdr_rec.c: Fix typo in comment.
3619 2006-05-19 Ulrich Drepper <drepper@redhat.com>
3621 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
3624 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
3625 to allocate memory for my_pollfd. Better initialization of
3626 cb_is_running. Use TEMP_FAILURE_RETRY.
3628 * malloc/memusage.sh (memusageso): Add quotes.
3629 (memusagestat): Likewise.
3630 * debug/xtrace.sh (pcprofileso): Likewise.
3631 (pcprofiledump): Likewise.
3632 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
3634 * malloc/Makefile ($(objpfx)memusage): Likewise.
3636 * nis/nis_callback.c (__nis_create_callback): Calls to
3637 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
3638 asprintf call fails.
3640 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
3641 no uninitialized memory is passed to sendto.
3643 2006-05-18 Ulrich Drepper <drepper@redhat.com>
3645 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
3646 of snprintf+strdup. Handle OOM.
3647 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
3648 cb->serv together. Remove now obsolete free calls.
3649 (__nis_destroy_callback): Remove now obsolete free call.
3651 2006-05-18 David Woodhouse <dwmw2@redhat.com>
3653 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
3654 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
3655 and ULA respectively). Set precedence for IPv4 address to 10 as
3656 defined in RFC3484 for preferring IPv6.
3657 * posix/gai.conf: Update to match the new default tables.
3659 2006-05-18 Jakub Jelinek <jakub@redhat.com>
3661 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
3662 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
3663 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
3664 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
3666 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
3668 (init_nss_interface): Remove initialization of these variables.
3670 2006-05-18 Ulrich Drepper <drepper@redhat.com>
3672 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
3673 nis_free_directory forward to avoid duplication.
3675 2006-05-17 Ulrich Drepper <drepper@redhat.com>
3677 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
3678 rec_dirsearch returning NULL.
3679 (first_shoot): Handle __nis_finddirectory returning NULL.
3680 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
3682 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
3683 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
3685 2006-05-17 Jakub Jelinek <jakub@redhat.com>
3687 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
3690 2006-05-15 Ulrich Drepper <drepper@redhat.com>
3692 * include/rpc/pmap_prot.h: Mark all functions as hidden.
3694 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
3695 * nscd/nscd_getgr_r.c: Likewise.
3697 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
3699 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
3700 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
3702 * stdlib/longlong.h (__clz_tab): Mark as hidden.
3704 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
3706 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
3708 * include/rpc/auth.h: Mark xdr_des_block_internal and
3709 xdr_opaque_auth_internal as hidden.
3711 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
3714 * include/rpc/xdr.h: Mark all _internal functions as hidden.
3716 * misc/getusershell.c (okshells): Don't use static initializers,
3719 * stdlib/fmtmsg.c (keywords): Change type of len element to
3720 uint32_t to not waste space on 64bit machines.
3722 * locale/setlocale.c: Change _nl_category_names into a string.
3723 Add new _nl_category_name_idxs. Change all users.
3724 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
3725 Declare _nl_category_name_idxs.
3726 * locale/findlocale.c: Adjust for _nl_category_names change.
3727 * locale/loadlocale.c: Likewise.
3728 * locale/newlocale.c: Likewise.
3729 * intl/dcigettext.c: Likewise.
3731 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
3732 (add_alias2): ...here. New function.
3733 (__gconv_read_conf): Simplify builtin alias handling.
3734 (builtin_aliases): Convert to string to avoid relocations.
3735 * iconv/gconv_builtin.h: Add comment about correct formatting.
3737 2006-05-15 Jakub Jelinek <jakub@redhat.com>
3739 * resolv/res_debug.c (loc_ntoa): Make error const.
3741 2006-05-14 Andreas Schwab <schwab@suse.de>
3743 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
3745 2006-05-12 Jakub Jelinek <jakub@redhat.com>
3747 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
3748 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
3751 2006-05-11 Ulrich Drepper <drepper@redhat.com>
3753 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
3755 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
3757 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
3758 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
3760 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
3761 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
3763 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
3764 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
3767 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
3768 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
3771 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
3772 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
3774 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
3775 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
3777 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
3778 * include/rpcsvc/nis_callback.h: New file.
3780 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
3781 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
3783 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
3784 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
3786 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
3787 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
3789 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
3790 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
3792 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
3793 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
3796 * nis/nis_xdr.h: Mark all functions as hidden. Remove
3797 __BEGIN_DECLS and __END_DECLS, the header is not installed.
3799 * nis/nis_error.c: Remove table of strings. Use position
3800 independent mechanism.
3801 * nis/nis_error.h: New file.
3803 2006-05-11 Jakub Jelinek <jakub@redhat.com>
3805 * locale/programs/ld-time.c (time_finish): If wide era name or
3806 format aren't provided, set both wname and wformat to L"".
3808 2006-05-10 Ulrich Drepper <drepper@redhat.com>
3810 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
3811 results if the call was succesful.
3813 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
3815 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
3818 2006-05-10 Jakub Jelinek <jakub@redhat.com>
3820 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
3822 2006-05-10 Ulrich Drepper <drepper@redhat.com>
3824 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
3825 caller makes sure this is not the case.
3826 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
3828 2006-05-09 Ulrich Drepper <drepper@redhat.com>
3830 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
3833 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
3834 [Coverity CID 229, 230]
3836 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
3838 (hol_help): Likewise. [Coverity CID 226, 227]
3840 * string/argz-replace.c (__argz_replace): Unconditionally call
3841 free on SRC. [Coverity CID 225]
3843 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
3844 the return value of __nis_default_owner and __nis_default_group,
3845 it has been especially allocated. [Coverity CID 224]
3847 * nis/nis_defaults.c (searchXYX): New functions. Used by both
3848 searchgroup and searchowner. Significantly simplified.
3849 (__nis_default_owner): Remove duplication. Do not locally copy the
3850 string before duplicating it.
3851 (__nis_default_group): Likewise.
3853 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
3854 we must clear the variable before calling __nisfind_server.
3856 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
3857 nis_getnames. [Coverity CID 223]
3859 * locale/programs/locfile.c (locfile_read): Use alloca instead of
3860 xmalloc to allocate local repertoire name. [Coverity CID 222]
3862 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
3863 allocate memory for the input to add_bytes. [Coverity CID 221]
3865 * posix/wordexp.c (w_addword): Free word if realloc fails and it
3866 was allocated here. [Coverity CID 219, 220]
3868 * posix/getconf.c (print_all): Free confstr data after printing.
3871 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
3872 list allocation fails. [Coverity CID 215]
3874 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
3877 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
3878 string is NULL. [Coverity CID 212]
3879 * argp/Makefile: Add rules to build and run bug-argp1.
3880 * argp/bug-argp1.c: New file.
3882 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
3884 * stdlib/canonicalize.c (__realpath): Likewise.
3886 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
3887 pointer. [Coverity CID 206]
3889 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
3890 in statically linked code.
3891 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
3892 statically built code, be prepared to have no link map.
3895 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
3896 dgettext calls. [Coverity CID 204]
3898 * argp/argp-help.c (struct uparams): Remove valid member. Change
3900 (uparam_names): Reduce size. Avoid relative relocations.
3901 Moved to read-only segment.
3902 (fill_in_uparams): Update for new layout.
3904 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
3905 assumed to always be != NULL. [Coverity CID 202]
3907 * argp/argp-help.c (hol_entry_help): Remove some dead code
3910 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
3911 away a few more unconditional yperr2nss calls.
3912 (_nss_nis_getservbyname_r): Likewise.
3914 2006-05-06 Ulrich Drepper <drepper@redhat.com>
3916 * sysdeps/generic/ldsodefs.h: Remove support for non-core
3919 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
3920 that unused memory passed to sendto is nevertheless initialized.
3923 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
3924 possibly unaligned memory accesses.
3926 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
3927 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
3928 and __putlong respectively. Correct buffer overflow check for
3931 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
3933 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
3934 (send_dg): Rewrite error handling to be more compact and avoid
3935 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
3937 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
3939 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
3940 instead of ns_get16.
3941 (res_queriesmatch): Likewise. Minor optimization.
3944 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
3945 __libc_res_nsend might reallocate the buffer for the answer. In
3946 this case we have to reload the HP pointer.
3948 2006-05-05 Ulrich Drepper <drepper@redhat.com>
3950 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
3951 some branch prediction hints.
3953 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
3954 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3955 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3956 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3957 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3958 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3959 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3960 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3962 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
3964 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
3965 by a GOT relocation to make Scrt1.o position independent.
3966 * sysdeps/s390/s390-64/elf/start.S: Likewise.
3968 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
3969 six system call parameters.
3970 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
3972 2006-05-05 Ulrich Drepper <drepper@redhat.com>
3974 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
3977 * sunrpc/svc_udp.c (BZERO): Remove definition.
3979 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
3981 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
3982 (des_SPtrans): Use uint32_t type.
3983 (des_skb): Likewise.
3985 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
3987 2006-05-05 Jakub Jelinek <jakub@redhat.com>
3990 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
3993 2006-05-05 Ulrich Drepper <drepper@redhat.com>
3995 * locale/programs/ld-address.c (address_finish): Fix one more
3996 place where the iso639 array might be accessed beyond the limits.
3998 2006-05-04 Ulrich Drepper <drepper@redhat.com>
4000 * nis/nis_table.c (nis_list): Avoid clearing res twice before
4001 filling it for the first time.
4003 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
4005 Free res object content before returning.
4007 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
4009 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
4012 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
4013 cleanup for initial thread, just the free call on TVP.
4015 * nscd/gai.c (__getline): Define.
4018 See ChangeLog.16 for earlier changes.