1 2007-01-13 Ulrich Drepper <drepper@redhat.com>
3 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
4 CFLAGS-getsrvbynpt_r.c.
5 * nscd/getsrvbynm_r.c: New file.
6 * nscd/getsrvbypt_r.c: New file.
7 * nscd/nscd_getserv_r.c: New file.
8 * nscd/servicescache.c: New file.
9 * nscd/Makefile (routines): Add nscd_getserv_r.
10 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12 CFLAGS-getsrvbypt_r.c.
13 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
14 table. Add entries for services database.
15 * nscd/connections.c (serv2str): Mark as const. Add entries for
17 (dbs): Add .reset_res and servdb initialization.
18 (serv2db): Add entries for services database.
19 (verify_persistent_db): Accept dbnr == servdb.
20 (invalidate_cache): Rewrite database name recognition to use a table.
21 Call res_init() if .reset_res is set for database.
22 (handle_request): Add code to handle services database.
23 * nscd/gai.c: Don't define __getservbyname_r.
24 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
25 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
26 (serv_response_header): Define.
27 (struct datahead): Add serv_response_header member.
28 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
30 * nscd/nscd.conf: Add entries for services database.
31 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
32 Declare serv_iov_disabled.
33 Declare addservbyname, readdservbyname, addservbyport, and
35 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
36 (find_db): Fix error message.
37 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
38 __nscd_getservbyname_r, and __nscd_getservbyport_r.
39 * nscd/selinux.c (perms): Add entries for services database.
40 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
41 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
43 * nscd/grpcache.c: Remove obsolete code. Cleanups.
44 * nscd/hstcache.c: Likewise.
45 * nscd/pwdcache.c: Likewise.
47 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
48 computation of keylen.
50 * include/string.h: Only redefine strndupa if this is really for
53 2007-01-12 Ulrich Drepper <drepper@redhat.com>
55 * nscd/nscd_gethst_r.c: Minor cleanups.
57 * nscd/connections.c (handle_request): Check selinux permissions
58 for all non-admin commands.
60 * sysdeps/i386/i486/bits/atomic.h: Define
61 atomic_compare_and_exchange_val_acq,
62 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
63 using __sync_* built-ins for gcc >= 4.1.
64 * sysdeps/x86_64/bits/atomic.h: Likewise.
67 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
70 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
72 * stdlib/tst-makecontext.c: Include errno.h. Change main()
73 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
74 (do_test): Check errno and exit(0) if ENOSYS.
76 2007-01-11 Jakub Jelinek <jakub@redhat.com>
78 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
80 * stdlib/Makefile: Add rules to build and run tst-strtod4.
81 * stdlib/tst-strtod4.c: New test.
84 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
85 hexadecimal digit should accept just the initial 0.
86 * stdlib/tst-strtod2.c (tests): New variable.
87 (do_test): Run several tests rather than just one.
89 2007-01-11 Jakub Jelinek <jakub@redhat.com>
91 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
92 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
94 2007-01-10 Ulrich Drepper <drepper@redhat.com>
96 * io/fts.c: Make sure fts_cur is always valid after return from
98 Patch by Miloslav Trmac <mitr@redhat.com>.
100 2006-10-27 Richard Sandiford <richard@codesourcery.com>
102 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
103 (R_MIPS_NUM): Bump by 1.
105 2007-01-03 Jakub Jelinek <jakub@redhat.com>
107 * posix/execvp.c: Include alloca.h.
108 (allocate_scripts_argv): Renamed to...
109 (scripts_argv): ... this. Don't allocate buffer here nor count
111 (execvp): Use alloca if possible.
112 * posix/Makefile: Add rules to build and run tst-vfork3 test.
113 * posix/tst-vfork3.c: New test.
115 2007-01-03 Ulrich Drepper <drepper@redhat.com>
117 * string/Makefile (tst-strxfrm2-ENV): Define.
118 * stdlib/Makefile (tst-strtod3-ENV): Define.
120 2007-01-02 Ulrich Drepper <drepper@redhat.com>
122 * posix/getconf.c: Update copyright year.
123 * nss/getent.c: Likewise.
124 * iconv/iconvconfig.c: Likewise.
125 * iconv/iconv_prog.c: Likewise.
126 * elf/ldconfig.c: Likewise.
127 * catgets/gencat.c: Likewise.
128 * csu/version.c: Likewise.
129 * elf/ldd.bash.in: Likewise.
130 * elf/sprof.c (print_version): Likewise.
131 * locale/programs/locale.c: Likewise.
132 * locale/programs/localedef.c: Likewise.
133 * nscd/nscd.c (print_version): Likewise.
134 * debug/xtrace.sh: Likewise.
135 * malloc/memusage.sh: Likewise.
136 * malloc/mtrace.pl: Likewise.
137 * debug/catchsegv.sh: Likewise.
139 2006-12-24 Ulrich Drepper <drepper@redhat.com>
141 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
144 2006-12-23 Ulrich Drepper <drepper@redhat.com>
146 * posix/wordexp.c: Remove some unnecessary tests.
148 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
150 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
151 blacklist the group till after we look it up.
153 2006-12-21 Ulrich Drepper <drepper@redhat.com>
155 * include/atomic.h (atomic_forced_read): New macro.
157 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
159 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
161 2006-12-19 Jakub Jelinek <jakub@redhat.com>
163 * nss/getXXbyYY_r.c: Include atomic.h.
164 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
165 add atomic_write_barrier () in between.
167 * stdlib/Makefile (tests): Add tst-makecontext.
168 * stdlib/tst-makecontext.c: New test.
170 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
171 (__makecontext): Don't realign uc_mcontext.uc_regs.
173 2006-11-28 Jakub Jelinek <jakub@redhat.com>
175 * elf/dl-support.c: Include dl-procinfo.h.
176 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
177 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
178 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
180 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
182 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
183 PPC_PLATFORM_* macros for array designators.
185 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
187 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
188 names to the beginning.
189 (_dl_powerpc_platforms): Add "power6x".
190 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
191 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
192 (_DL_PLATFORMS_COUNT): Increase.
193 (_dl_string_platform): Handle power6x case.
194 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
195 PPC_FEATURE_POWER6_EXT): Define.
196 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
198 2006-12-18 Jakub Jelinek <jakub@redhat.com>
201 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
202 [-2^31 .. 2^31) range.
203 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
205 * stdlib/tst-rand48-2.c: New test.
206 * stdlib/Makefile (tests): Add tst-rand48-2.
208 2006-12-14 Jakub Jelinek <jakub@redhat.com>
210 * misc/tst-pselect.c (do_test): Fix sigblock argument.
212 2006-12-14 Ulrich Drepper <drepper@redhat.com>
214 * misc/tst-pselect.c (do_test): Make sure the helper process is
215 terminating when the test is aborted.
217 2006-12-13 Ulrich Drepper <drepper@redhat.com>
219 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
220 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
221 Handle relatime mount option.
224 * libio/Makefile (tests): Add tst-setvbuf1.
225 * libio/tst-setvbuf1.c: New file.
227 2006-12-08 Jakub Jelinek <jakub@redhat.com>
230 * libio/genops.c (__uflow): Fix a typo.
231 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
232 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
233 the narrow buffer size.
235 2006-11-24 Jakub Jelinek <jakub@redhat.com>
238 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
239 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
240 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
242 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
243 _IO_wstr_finish): Likewise.
244 * libio/wmemstream.c (open_wmemstream): Likewise.
245 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
246 even for wide streams.
248 2006-12-13 Jakub Jelinek <jakub@redhat.com>
250 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
253 2006-12-11 Ulrich Drepper <drepper@redhat.com>
255 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
256 separators also if no non-zero digits found.
257 * stdlib/Makefile (tests): Add tst-strtod3.
259 2006-12-09 Ulrich Drepper <drepper@redhat.com>
262 * include/features.h: Fix comment about default value for
266 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
267 empty parsed strings.
268 * stdlib/Makefile (tests): Add tst-strtod2.
269 * stdlib/tst-strtod2.c: New file.
272 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
274 * stdlib/Makefile (tests): Add tst-atof2.
275 * stdlib/tst-atof2.c: New file.
278 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
279 correctly if removing trailing zero of hex-float.
280 * stdlib/Makefile (tests): Add tst-atof1.
281 * stdlib/tst-atof1.c: New file.
283 2006-12-09 Jakub Jelinek <jakub@redhat.com>
285 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
286 Start searching for next comma at p rather than rest.
287 * misc/Makefile (tests): Add tst-mntent2.
288 * misc/tst-mntent2.c: New test.
290 * misc/getusershell.c (initshells): Check for integer overflows.
291 Make strings buffer one bigger as fgets always succeeds when second
292 argument is 1. Don't use calloc for shells array. Disallow
295 2006-12-08 Ulrich Drepper <drepper@redhat.com>
297 * malloc/memusage.c: Handle realloc with new size of zero and
298 non-NULL pointer correctly.
299 (me): Really write first record twice.
300 (struct entry): Make format bi-arch safe.
301 (dest): Write out more realloc statistics.
302 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
304 2006-12-05 Jakub Jelinek <jakub@redhat.com>
306 * nis/nis_subr.c (nis_getnames): Revert last change.
308 2006-12-04 Jakub Jelinek <jakub@redhat.com>
310 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
311 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
312 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
313 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
315 * io/Makefile: Add rules to build and run tst-ttyname_r test.
316 * io/tst-ttyname_r.c: New test.
318 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
320 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
322 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
324 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
327 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
329 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
330 `clone' function to ensure proper unwinding stop of gdb.
331 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
333 2006-12-01 Ulrich Drepper <drepper@redhat.com>
335 * nscd/nscd.init: Remove obsolete and commented-out -S option
338 2006-11-23 Jakub Jelinek <jakub@redhat.com>
341 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
344 * manual/string.texi (strtok): Remove duplicate paragraph.
346 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
348 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
349 libgcc not supporting `rflags' unwinding (register # >= 17).
351 2006-11-30 Jakub Jelinek <jakub@redhat.com>
353 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
356 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
357 Jakub Jelinek <jakub@redhat.com>
358 Jan Kratochvil <jan.kratochvil@redhat.com>
360 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
362 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
363 'restore_rt' even in the 'signal' directory.
364 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
366 2006-11-27 Jakub Jelinek <jakub@redhat.com>
369 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
370 malloc crashed. Don't allocate memory unnecessarily in each
373 2006-10-21 Jakub Jelinek <jakub@redhat.com>
375 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
377 2006-11-20 Ulrich Drepper <drepper@redhat.com>
379 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
381 2006-11-18 Bruno Haible <bruno@clisp.org>
383 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
384 __sysconf only after having tried to call getgroups32.
386 2006-11-19 Ulrich Drepper <drepper@redhat.com>
388 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
389 addresses for IPv4 queries if they can be mapped.
391 2006-11-16 Jakub Jelinek <jakub@redhat.com>
393 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
394 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
395 (signmask): Add .size directive.
396 (othermask): Add .type directive.
398 2006-11-14 Ulrich Drepper <drepper@redhat.com>
400 * po/nl.po: Update from translation team.
402 * timezone/zdump.c: Redo fix for BZ #3137.
404 2006-11-14 Jakub Jelinek <jakub@redhat.com>
406 * nss/nss_files/files-alias.c (get_next_alias): Set line back
407 to first_unused after parsing :include: file.
409 2006-11-10 Ulrich Drepper <drepper@redhat.com>
411 * timezone/africa: Update from tzdata2006o.
412 * timezone/antarctica: Likewise.
413 * timezone/asia: Likewise.
414 * timezone/australasia: Likewise.
415 * timezone/backward: Likewise.
416 * timezone/europe: Likewise.
417 * timezone/iso3166.tab: Likewise.
418 * timezone/northamerica: Likewise.
419 * timezone/southamerica: Likewise.
420 * timezone/zone.tab: Likewise.
422 * time/tzfile.c (__tzfile_read): Extend to handle new file format
423 on machines with 64-bit time_t.
425 * timezone/checktab.awk: Update from tzcode2006o.
426 * timezone/ialloc.c: Likewise.
427 * timezone/private.h: Likewise.
428 * timezone/scheck.c: Likewise.
429 * timezone/tzfile.h: Likewise.
430 * timezone/tzselect.ksh: Likewise.
431 * timezone/zdump.c: Likewise.
432 * timezone/zic.c: Likewise.
435 * elf/ldconfig.c (main): Call setlocale and textdomain.
436 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
439 * manual/argp.texi: Fix typos.
440 * manual/charset.texi: Likewise.
441 * manual/errno.texi: Likewise.
442 * manual/filesys.texi: Likewise.
443 * manual/lang.texi: Likewise.
444 * manual/maint.texi: Likewise.
445 * manual/memory.texi: Likewise.
446 * manual/message.texi: Likewise.
447 * manual/resource.texi: Likewise.
448 * manual/search.texi: Likewise.
449 * manual/signal.texi: Likewise.
450 * manual/startup.texi: Likewise.
451 * manual/stdio.texi: Likewise.
452 * manual/sysinfo.texi: Likewise.
453 * manual/syslog.texi: Likewise.
454 * manual/time.texi: Likewise.
455 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
458 * sunrpc/clnt_raw.c: Minimal message improvements.
459 * sunrpc/pm_getmaps.c: Likewise.
460 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
461 * nis/nis_print_group_entry.c: Likewise.
462 * locale/programs/repertoire.c: Likewise.
463 * locale/programs/charmap.c: Likewise.
464 * malloc/memusage.sh: Likewise.
465 * elf/dl-deps.c: Likewise.
466 * locale/programs/ld-collate.c: Likewise.
467 * libio/vswprintf.c: Likewise.
468 * malloc/memusagestat.c: Likewise.
469 * sunrpc/auth_unix.c: Likewise.
470 * sunrpc/rpc_main.c: Likewise.
471 * nscd/cache.c: Likewise.
472 * locale/programs/repertoire.c: Unify output messages.
473 * locale/programs/charmap.c: Likewise.
474 * locale/programs/ld-ctype.c: Likewise.
475 * locale/programs/ld-monetary.c: Likewise.
476 * locale/programs/ld-numeric.c: Likewise.
477 * locale/programs/ld-time.c: Likewise.
478 * elf/ldconfig.c: Likewise.
479 * nscd/selinux.c: Likewise.
480 * elf/cache.c: Likewise.
481 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
484 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
488 2006-11-10 Jakub Jelinek <jakub@redhat.com>
490 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
491 if N is one bigger than return value.
492 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
493 and l1 last arguments, if buf is defined, verify the return value
494 equals to strlen (buf) and verify no byte beyond passed length
497 2006-11-10 Ulrich Drepper <drepper@redhat.com>
499 * po/sv.po: Update from translation team.
501 2006-11-09 Ulrich Drepper <drepper@redhat.com>
503 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
506 2006-11-10 Jakub Jelinek <jakub@redhat.com>
508 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
511 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
512 Use __new_sys_siglist instead of _sys_siglist_internal as
513 second macro argument.
514 (_old_sys_siglist): Use declare_symbol_alias macro instead of
517 2006-11-09 Ulrich Drepper <drepper@redhat.com>
520 * posix/unistd.h (sysconf): Remove const attribute.
522 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
523 temporary or deprecated addresses.
524 Patch by Sridhar Samudrala <sri@us.ibm.com>.
526 * string/Makefile (tests): Add tst-strxfrm2.
527 * string/tst-strxfrm2.c: New file.
529 2006-10-09 Jakub Jelinek <jakub@redhat.com>
531 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
532 rather than r->r_brk.
534 2006-11-08 Jakub Jelinek <jakub@redhat.com>
536 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
537 optimization even if needed > n.
539 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
540 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
541 return false, otherwise return true.
542 (cache_rpath): Return decompose_rpath return value.
544 2006-11-07 Jakub Jelinek <jakub@redhat.com>
546 * include/libc-symbols.h (declare_symbol): Rename to...
547 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
548 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
550 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
552 * sysdeps/gnu/siglist.c: Likewise.
554 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
556 * sysdeps/powerpc/fpu/bits/mathinline.h
557 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
558 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
560 2006-11-05 Ulrich Drepper <drepper@redhat.com>
562 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
563 Update handling of cache descriptor 0x49 for new models.
564 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
567 2006-11-02 Jakub Jelinek <jakub@redhat.com>
569 * malloc/memusage.c (dest): Reset not_me back to false after
572 2006-11-02 Ulrich Drepper <drepper@redhat.com>
574 * configure.in: Work around ld --help change and avoid -z relro
575 test completely if the architecture doesn't care about security.
577 2006-11-01 Ulrich Drepper <drepper@redhat.com>
579 * po/sv.po: Update from translation team.
581 2006-10-31 Ulrich Drepper <drepper@redhat.com>
583 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
584 generate compatibility version.
586 2006-10-29 Ulrich Drepper <drepper@redhat.com>
588 * configure.in: Relax -z relro requirement a bit.
590 * po/sv.po: Update from translation team.
592 2006-10-29 Jakub Jelinek <jakub@redhat.com>
594 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
595 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
596 * elf/dl-close.c (_dl_close_worker): Likewise.
597 * elf/dl-open.c (_dl_open_worker): Likewise.
598 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
600 2006-10-27 Ulrich Drepper <drepper@redhat.com>
602 * configure.in: Require assembler support for visibility, compiler
603 support for visibility and aliases, linker support for various -z
605 * Makeconfig: Remove conditional code which now is unnecessary.
606 * config.h.in: Likewise.
607 * config.make.in: Likewise.
608 * dlfcn/Makefile: Likewise.
609 * elf/Makefile: Likewise.
610 * elf/dl-load.c: Likewise.
611 * elf/rtld.c: Likewise.
612 * include/libc-symbols.h: Likewise.
613 * include/stdio.h: Likewise.
614 * io/Makefile: Likewise.
615 * io/fstat.c: Likewise.
616 * io/fstat64.c: Likewise.
617 * io/fstatat.c: Likewise.
618 * io/fstatat64.c: Likewise.
619 * io/lstat.c: Likewise.
620 * io/lstat64.c: Likewise.
621 * io/mknod.c: Likewise.
622 * io/mknodat.c: Likewise.
623 * io/stat.c: Likewise.
624 * io/stat64.c: Likewise.
625 * libio/stdio.c: Likewise.
626 * nscd/Makefile: Likewise.
627 * stdlib/Makefile: Likewise.
628 * stdlib/atexit.c: Likewise.
629 * sysdeps/generic/ldsodefs.h: Likewise.
630 * sysdeps/i386/dl-machine.h: Likewise.
631 * sysdeps/i386/sysdep.h: Likewise.
632 * sysdeps/i386/i686/memcmp.S: Likewise.
633 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
634 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
635 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
637 * Makerules: USE_TLS support is now default.
638 * tls.make.c: Likewise.
639 * csu/Versions: Likewise.
640 * csu/libc-start.c: Likewise.
641 * csu/libc-tls.c: Likewise.
642 * csu/version.c: Likewise.
643 * dlfcn/dlinfo.c: Likewise.
644 * elf/dl-addr.c: Likewise.
645 * elf/dl-cache.c: Likewise.
646 * elf/dl-close.c: Likewise.
647 * elf/dl-iteratephdr.c: Likewise.
648 * elf/dl-load.c: Likewise.
649 * elf/dl-lookup.c: Likewise.
650 * elf/dl-object.c: Likewise.
651 * elf/dl-open.c: Likewise.
652 * elf/dl-reloc.c: Likewise.
653 * elf/dl-support.c: Likewise.
654 * elf/dl-sym.c: Likewise.
655 * elf/dl-sysdep.c: Likewise.
656 * elf/dl-tls.c: Likewise.
657 * elf/ldconfig.c: Likewise.
658 * elf/rtld.c: Likewise.
659 * elf/tst-tls-dlinfo.c: Likewise.
660 * elf/tst-tls1.c: Likewise.
661 * elf/tst-tls10.h: Likewise.
662 * elf/tst-tls14.c: Likewise.
663 * elf/tst-tls2.c: Likewise.
664 * elf/tst-tls3.c: Likewise.
665 * elf/tst-tls4.c: Likewise.
666 * elf/tst-tls5.c: Likewise.
667 * elf/tst-tls6.c: Likewise.
668 * elf/tst-tls7.c: Likewise.
669 * elf/tst-tls8.c: Likewise.
670 * elf/tst-tls9.c: Likewise.
671 * elf/tst-tlsmod1.c: Likewise.
672 * elf/tst-tlsmod13.c: Likewise.
673 * elf/tst-tlsmod13a.c: Likewise.
674 * elf/tst-tlsmod14a.c: Likewise.
675 * elf/tst-tlsmod2.c: Likewise.
676 * elf/tst-tlsmod3.c: Likewise.
677 * elf/tst-tlsmod4.c: Likewise.
678 * elf/tst-tlsmod5.c: Likewise.
679 * elf/tst-tlsmod6.c: Likewise.
680 * include/errno.h: Likewise.
681 * include/link.h: Likewise.
682 * include/tls.h: Likewise.
683 * locale/global-locale.c: Likewise.
684 * locale/localeinfo.h: Likewise.
685 * malloc/arena.c: Likewise.
686 * malloc/hooks.c: Likewise.
687 * malloc/malloc.c: Likewise.
688 * resolv/Versions: Likewise.
689 * sysdeps/alpha/dl-machine.h: Likewise.
690 * sysdeps/alpha/libc-tls.c: Likewise.
691 * sysdeps/generic/ldsodefs.h: Likewise.
692 * sysdeps/generic/tls.h: Likewise.
693 * sysdeps/i386/dl-machine.h: Likewise.
694 * sysdeps/ia64/dl-machine.h: Likewise.
695 * sysdeps/ia64/libc-tls.c: Likewise.
696 * sysdeps/mach/hurd/fork.c: Likewise.
697 * sysdeps/mach/hurd/i386/tls.h: Likewise.
698 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
699 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
700 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
701 * sysdeps/s390/libc-tls.c: Likewise.
702 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
703 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
704 * sysdeps/sh/dl-machine.h: Likewise.
705 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
706 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
707 * sysdeps/x86_64/dl-machine.h: Likewise.
709 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
710 split out locking and parameter checking.
711 (_dl_close): Call _dl_close_worker after locking and checking.
712 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
714 * elf/Makefile: Add rules to build and run tst-thrlock.
715 * elf/tst-thrlock.c: New file.
718 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
722 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
723 we are sure we do not need it anymore for _dl_close. Also move
724 the asserts inside the lock region.
725 Patch mostly by Suzuki <suzuki@in.ibm.com>.
727 2006-10-27 Jakub Jelinek <jakub@redhat.com>
729 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
731 (_dl_lookup_symbol_x): Adjust caller.
733 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
735 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
737 * elf/dl-libc.c: Revert l_scope name changes.
738 * elf/dl-load.c: Likewise.
739 * elf/dl-object.c: Likewise.
740 * elf/rtld.c: Likewise.
741 * elf/dl-close.c (_dl_close): Likewise.
742 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
743 always use __rtld_mrlock_{change,done}. Always free old scope list
744 here if not l_scope_mem.
745 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
746 change. Never free scope list here. Just __rtld_mrlock_lock before
747 the lookup and __rtld_mrlock_unlock it after the lookup.
748 * elf/dl-sym.c: Likewise.
749 * include/link.h (struct r_scoperec): Remove.
750 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
751 with l_scope_mem and l_scoperec_lock with l_scope_lock.
753 2006-10-25 Ulrich Drepper <drepper@redhat.com>
755 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
757 2006-10-18 Ulrich Drepper <drepper@redhat.com>
759 * configure.in: Disable building profile libraries by default.
761 2006-10-17 Jakub Jelinek <jakub@redhat.com>
763 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
764 as signed longs, check for x_base + pos overflow.
765 * sunrpc/Makefile (tests): Add tst-xdrmem2.
766 * sunrpc/tst-xdrmem2.c: New test.
768 2006-10-18 Ulrich Drepper <drepper@redhat.com>
770 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
771 _dl_lookup_symbol_x code.
773 2006-10-17 Jakub Jelinek <jakub@redhat.com>
775 * elf/dl-runtime.c: Include sysdep-cancel.h.
776 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
777 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
778 instead of catomic_* macros.
779 * elf/dl-sym.c: Include sysdep-cancel.h.
780 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
781 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
782 * elf/dl-close.c: Include sysdep-cancel.h.
783 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
784 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
785 * elf/dl-open.c: Include sysdep-cancel.h.
786 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
787 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
789 2006-10-17 Jakub Jelinek <jakub@redhat.com>
792 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
793 fastbin rather than end of fastbin array.
795 2006-10-18 Ulrich Drepper <drepper@redhat.com>
797 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
799 * sysdeps/x86_64/bits/atomic.h
800 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
801 (catomic_decrement): Use correct body macro.
803 2006-10-17 Jakub Jelinek <jakub@redhat.com>
805 * include/atomic.h: Add a unique prefix to all local variables
807 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
809 2006-10-16 Ulrich Drepper <drepper@redhat.com>
812 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
815 2006-10-14 Ulrich Drepper <drepper@redhat.com>
817 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
819 2006-10-13 Ulrich Drepper <drepper@redhat.com>
822 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
823 determine highest fast bin to consolidate, always look into all of
825 (do_check_malloc_state): Only require for empty bins for large
828 * libio/stdio.h: Add more __wur attributes.
830 * elf/dl-minimal.c (realloc): Optimize last patch.
832 2006-10-12 Richard Sandiford <richard@codesourcery.com>
835 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
836 and use memcpy() if it does.
838 2006-11-12 Andreas Jaeger <aj@suse.de>
841 * manual/search.texi (Hash Search Function): Clarify.
842 (Array Search Function): Clarify.
844 2006-11-12 Joseph Myers <joseph@codesourcery.com>
847 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
849 * math/atest-exp2.c (read_mpn_hex): Likewise.
850 * math/atest-sincos.c (main): Likewise.
852 2006-10-11 Ulrich Drepper <drepper@redhat.com>
854 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
855 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
856 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
858 * Versions.def: Add GLIBC_2.6 for libc.
860 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
862 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
864 2006-10-11 Jakub Jelinek <jakub@redhat.com>
866 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
868 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
870 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
871 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
873 2006-10-11 Ulrich Drepper <drepper@redhat.com>
875 * include/atomic.c: Define catomic_* operations.
876 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
877 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
878 * malloc/memusage.c: Likewise.
879 * gmon/mcount.c: Likewise.
880 * elf/dl-close.c: Likewise.
881 * elf/dl-open.c: Likewise.
882 * elf/dl-profile.c: Likewise.
883 * elf/dl-sym.c: Likewise.
884 * elf/dl-runtime.c: Likewise.
885 * elf/dl-fptr.c: Likewise.
886 * resolv/res_libc.c: Likewise.
888 2006-10-10 Ulrich Drepper <drepper@redhat.com>
890 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
891 components which lack them.
893 * nis/nis_subr.c (nis_getnames): Make sure that we always return
894 at least one entry consisting of the parameter concatenated with
897 2006-10-10 Roland McGrath <roland@frob.com>
899 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
900 * sysdeps/mach/hurd/futimes.c: Likewise.
901 * sysdeps/mach/hurd/lutimes.c: Likewise.
903 2006-10-09 Ulrich Drepper <drepper@redhat.com>
904 Jakub Jelinek <jakub@redhat.com>
906 Implement reference counting of scope records.
907 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
908 from the list in objects which remain. Always allocate new scope
910 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
911 don't resize, allocate a new one.
912 * elf/dl-runtime.c: Update reference counters before using a scope
914 * elf/dl-sym.c: Likewise.
915 * elf/dl-libc.c: Adjust for l_scope name change.
916 * elf/dl-load.c: Likewise.
917 * elf/dl-object.c: Likewise.
918 * elf/rtld.c: Likewise.
919 * include/link.h: Include <rtld-lowlevel.h>. Define struct
920 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
922 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
923 * sysdeps/generic/rtld-lowlevel.h: New file.
925 * include/atomic.h: Rename atomic_and to atomic_and_val and
926 atomic_or to atomic_or_val. Define new macros atomic_and and
927 atomic_or which do not return values.
928 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
930 * sysdeps/i386/i486/bits/atomic.h: Likewise.
932 * po/sv.po: Update from translation team.
934 2006-10-07 Ulrich Drepper <drepper@redhat.com>
936 * Versions.def: Add GLIBC_2.6 to libpthread.
938 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
939 (versioned_symbol): Likewise.
940 (compat_symbol): Likewise.
942 * po/tr.po: Update from translation team.
944 2006-10-06 Ulrich Drepper <drepper@redhat.com>
946 * nis/Banner: Removed. It's been integral part forever and the
947 author info is incomplete anyway.
948 * libio/Banner: Likewise.
950 * nis/nis_table.c (nis_list): If __follow_path fails in the new
951 code, make sure the nis_freeresult call doesn't crash and that the
952 result is reported correctly.
954 2006-09-27 Jakub Jelinek <jakub@redhat.com>
956 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
957 when callback is NULL.
959 * nis/Versions (libnss_nisplus): Add
960 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
961 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
962 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
963 _nss_create_tablename): Rename to...
964 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
965 ... these. No longer static.
966 (internal_setgrent): Adjust users.
967 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
968 Don't use locking around _nss_grp_create_tablename call.
969 * nis/nss_nisplus/nisplus-initgroups.c: New file.
971 2006-10-06 Ulrich Drepper <drepper@redhat.com>
973 * version.h (VERSION): Bump to 2.5.90 for new development tree.
975 2006-10-06 Andreas Jaeger <aj@suse.de>
977 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
979 2006-10-06 Ulrich Drepper <drepper@redhat.com>
981 * po/pl.po: Update from translation team.
983 * nscd/nscd.c (main): Fix typo in message.
984 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
986 2006-10-02 Jakub Jelinek <jakub@redhat.com>
989 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
990 errno.h, signal.h, unistd.h and sysdep-cancel.h.
991 (__sigprocmask): Define.
993 2006-10-02 Ulrich Drepper <drepper@redhat.com>
995 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
998 2006-10-02 Jakub Jelinek <jakub@redhat.com>
1000 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
1001 in oldtotal and newtotal calculation.
1002 * nscd/nscd-client.h (struct mapped_database): Add datasize
1004 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
1005 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
1007 (__nscd_cache_search): Add checks to make sure we never reference
1008 data beyond the current mapping.
1010 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
1012 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
1013 variables const to avoid compiler warnings.
1015 * io/fts.c (fts_close): Remove redundant checks.
1016 (fts_build): Likewise.
1017 (fts_palloc): Likewise.
1019 * manual/message.texi (Advanced gettext functions,
1020 Using gettextized software): Fix typos.
1022 2006-09-30 Ulrich Drepper <drepper@redhat.com>
1024 * posix/glob.c (glob_in_dir): Add some comments and asserts to
1025 explain why there are no leaks.
1027 2006-09-29 Ulrich Drepper <drepper@redhat.com>
1029 * libio/wmemstream.c: Include <wchar.h>.
1030 * libio/bug-wmemstream1.c: Likewise.
1031 * libio/tst-wmemstream1.c: Likewise.
1032 * libio/tst-wmemstream2.c: Likewise.
1034 * version.h (RELEASE): Bump to 2.5.
1035 * README: Regenerated.
1037 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
1040 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
1041 found no group members.
1042 Patch by Petr Baudis.
1044 2006-09-29 Jakub Jelinek <jakub@redhat.com>
1046 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
1047 assert bootstrap_map.l_tls_modid is zero.
1048 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
1051 2006-09-27 Ulrich Drepper <drepper@redhat.com>
1053 * libio/stdio.h: Move open_wmemstream prototype to ...
1054 * wcsmbs/wchar.h: ... here.
1056 2006-09-25 Jakub Jelinek <jakub@redhat.com>
1059 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
1060 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
1061 __{,l}chown to handle the rest.
1062 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
1063 fchownat syscall and __ASSUME_32BITUIDS case inline, call
1064 __{,l}chown to handle the rest.
1065 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
1067 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
1068 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
1071 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
1072 time, rather allocate increasingly bigger arrays of pointers, if
1073 possible with alloca, if too large with malloc.
1075 2006-09-24 Jakub Jelinek <jakub@redhat.com>
1077 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
1079 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
1081 2006-09-24 Ulrich Drepper <drepper@redhat.com>
1083 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
1085 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
1086 IFA_F_HOMEADDRESS flag for interfaces.
1087 * include/ifaddrs.h (struct in6addrinfo): Define
1090 2006-09-21 Jakub Jelinek <jakub@redhat.com>
1093 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
1094 PTR_DEMANGLE3): Define.
1095 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
1096 PTR_DEMANGLE3): Likewise.
1097 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
1098 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1100 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
1102 2006-09-20 Jakub Jelinek <jakub@redhat.com>
1104 * po/libc.pot: Regenerated.
1105 * po/be.po: Updated.
1106 * po/ca.po: Likewise.
1107 * po/cs.po: Likewise.
1108 * po/da.po: Likewise.
1109 * po/de.po: Likewise.
1110 * po/el.po: Likewise.
1111 * po/en_GB.po: Likewise.
1112 * po/es.po: Likewise.
1113 * po/fi.po: Likewise.
1114 * po/fr.po: Likewise.
1115 * po/gl.po: Likewise.
1116 * po/hr.po: Likewise.
1117 * po/hu.po: Likewise.
1118 * po/ja.po: Likewise.
1119 * po/ko.po: Likewise.
1120 * po/nb.po: Likewise.
1121 * po/nl.po: Likewise.
1122 * po/pl.po: Likewise.
1123 * po/pt_BR.po: Likewise.
1124 * po/ru.po: Likewise.
1125 * po/rw.po: Likewise.
1126 * po/sk.po: Likewise.
1127 * po/sv.po: Likewise.
1128 * po/tr.po: Likewise.
1129 * po/zh_CN.po: Likewise.
1130 * po/zh_TW.po: Likewise.
1133 * iconv/iconv_prog.c (main): Fix spelling in error message.
1134 * iconv/iconvconfig.c (main): Likewise.
1135 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
1136 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
1137 * locale/programs/localedef.c (main): Likewise.
1138 * locale/programs/repertoire.c (repertoire_read): Likewise.
1139 * timezone/zdump.c (main): Likewise.
1140 * nscd/connections.c (handle_request): Fix spelling in log message.
1141 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
1143 2006-09-20 Ulrich Drepper <drepper@redhat.com>
1145 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
1148 2006-09-20 Andreas Jaeger <aj@suse.de>
1150 * math/libm-test.inc (lrint_test_upward): Fix typo.
1152 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
1155 * math/libm-test.inc (lrint_test_tonearest): New function.
1156 (lrint_test_towardzero): New function.
1157 (lrint_test_downward): New function.
1158 (lrint_test_upward): New function.
1159 (main): Run these new tests.
1160 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
1161 of values near to 0.
1162 (two52): Use double not long double.
1163 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
1164 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
1165 (two23): Use float not double.
1166 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
1167 (two23): Use float not double.
1168 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
1169 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
1170 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
1171 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
1173 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1175 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
1176 Cast sp to unsigned long to avoid compiler warning.
1177 Use __makecontext_ret function instead of a trampoline on the stack.
1178 (__makecontext_ret): New function.
1179 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
1181 2006-09-19 Jakub Jelinek <jakub@redhat.com>
1183 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
1184 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
1187 2006-09-19 Ulrich Drepper <drepper@redhat.com>
1189 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
1190 sure no reference to the unloaded map's search list remains in the
1193 2006-09-16 Jakub Jelinek <jakub@redhat.com>
1195 * elf/Makefile: Add rules to build and run unload7 test.
1196 * elf/unload7.c: New test.
1197 * elf/unload7mod1.c: New file.
1198 * elf/unload7mod2.c: New file.
1200 2006-09-18 Jakub Jelinek <jakub@redhat.com>
1202 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
1203 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
1204 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1205 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
1206 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
1207 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
1208 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
1209 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
1210 PTRACE_GETEVENTMSG): Likewise.
1211 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
1214 2006-09-17 Mike Frysinger <vapier@gentoo.org>
1216 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
1217 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1218 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
1219 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
1221 2006-09-16 Jakub Jelinek <jakub@redhat.com>
1223 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
1224 write '\0' to the fd.
1225 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
1226 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
1227 Change regs to unsigned long pointer from unsigned int, fix fscr
1230 2006-09-14 Jakub Jelinek <jakub@redhat.com>
1232 * io/Makefile (CFLAGS-fstatat.c): Set.
1233 (CFLAGS-fstatat64.c): Likewise.
1234 (CFLAGS-mknodat.c): Likewise.
1236 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
1237 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
1238 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
1239 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
1241 2006-09-14 Jakub Jelinek <jakub@redhat.com>
1242 Steven Munroe <sjmunroe@us.ibm.com>
1244 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
1245 names to the beginning. Rename "cell" to "cellbe".
1246 (_dl_powerpc_platforms): New.
1247 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
1248 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
1249 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
1250 (_DL_HWCAP_PLATFORM): Define to new mask.
1251 (_dl_platform_string, _dl_string_platform): New functions.
1252 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
1253 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
1255 2006-09-12 Jakub Jelinek <jakub@redhat.com>
1258 * README.libm: Fix a thinko in sqrt algorithm description.
1261 * manual/string.texi (argz_delete): Fix prototype.
1262 Patch by <alpt@freaknet.org>.
1264 2006-08-26 Joseph Myers <joseph@codesourcery.com>
1267 * io/test-lfs.c (do_prepare): Give name_len type size_t.
1268 * io/tst-fcntl.c (do_prepare): Likewise.
1269 * posix/tst-exec.c (do_prepare): Likewise.
1270 * posix/tst-preadwrite.c (do_prepare): Likewise.
1271 * posix/tst-spawn.c (do_prepare): Likewise.
1272 * posix/tst-truncate.c (do_prepare): Likewise.
1273 * rt/tst-aio.c (do_prepare): Likewise.
1274 * rt/tst-aio64.c (do_prepare): Likewise.
1275 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
1278 2006-09-09 Ulrich Drepper <drepper@redhat.com>
1281 * time/mktime.c (guess_time_tm): Fix overflow detection.
1282 * time/Makefile (tests): Add bug-mktime1.
1283 * time/bug-mktime1.c: New file.
1286 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
1289 2006-09-07 Jakub Jelinek <jakub@redhat.com>
1292 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
1293 Ensure relocation doesn't clobber any bits outside of the
1294 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
1295 R_SPARC_HI22 and R_SPARC_H44.
1298 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
1299 (long) (MINSIZE + nb - old_size) is positive.
1301 * malloc/arena.c (grow_heap): When growing bail even if new_size
1305 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
1308 2006-09-06 Jakub Jelinek <jakub@redhat.com>
1310 * posix/regex_internal.c (re_string_reconstruct): Handle
1311 offset < pstr->valid_raw_len && pstr->offsets_needed case.
1312 Ensure no bytes read before raw_mbs array. Pass a saved copy of
1313 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
1314 re_string_context_at.
1315 * posix/Makefile: Add rules to build and run bug-regex26 test.
1316 * posix/bug-regex26.c: New test.
1318 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
1319 rather than col_sym_free. Move seqp declaration earlier.
1321 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
1323 2006-09-05 Jakub Jelinek <jakub@redhat.com>
1325 * nscd/initgrcache.c (addinitgroupsX): Move any_success
1326 decl before first goto out.
1328 2006-09-04 Jakub Jelinek <jakub@redhat.com>
1330 * Makerules (shlib.lds): If have-hash-style, put .hash section
1331 at the end of the RO segment.
1333 2006-09-04 Ulrich Drepper <drepper@redhat.com>
1335 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
1336 style hash table format is used.
1338 2006-09-04 Jakub Jelinek <jakub@redhat.com>
1340 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
1341 randomization rather than before.
1342 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
1344 2006-08-31 Jakub Jelinek <jakub@redhat.com>
1346 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
1348 * malloc/malloc.c (_int_malloc): Use full list insert and not
1349 shortcut which assumes the list is empty for large requests
1352 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
1354 2006-08-30 Jakub Jelinek <jakub@redhat.com>
1356 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
1357 and offout arguments to the prototype.
1358 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
1359 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
1360 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
1361 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
1362 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
1363 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
1364 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
1365 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
1367 2006-08-28 Ulrich Drepper <drepper@redhat.com>
1369 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
1371 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
1374 2006-08-28 Jakub Jelinek <jakub@redhat.com>
1376 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
1377 only if herrno is NETDB_INTERNAL. Handle errors other than
1378 ERANGE outside of the loops, handle TRY_AGAIN.
1380 * locale/programs/ld-ctype.c (translit_flatten): Issue error
1381 if other's ctype category was missing.
1382 * locale/programs/ld-collate.c (collate_read): Return if
1383 copy_locale's collate category is missing.
1385 2006-08-27 Ulrich Drepper <drepper@redhat.com>
1388 * malloc/malloc.c (public_rEALLOc): Try harder by using other
1389 arenas if allocation failed.
1390 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
1392 2006-08-26 Ulrich Drepper <drepper@redhat.com>
1394 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
1396 (malloc_state): Reduce bins size by 2.
1397 (_int_malloc): Fix test for large enough buffer for early termination.
1398 When no unsorted block matches perfectly and an exiting block has
1399 to be split, use full list insert and not shortcut which assumes
1402 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
1405 2006-08-24 Ulrich Drepper <drepper@redhat.com>
1407 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
1410 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
1411 symbol require exact match (these are PLTs).
1412 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
1413 (_dl_ppc64_addr_sym_match): Likewise.
1416 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
1417 If symbol has a value use it.
1418 * elf/tst-dladdr1.c: New file.
1419 * elf/Makefile: Add rules to build and run tst-addr1.
1421 2006-08-24 Jakub Jelinek <jakub@redhat.com>
1423 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
1424 keeps failing and heap growth or new heap creation isn't
1426 * malloc/tst-malloc.c (main): Add new tests.
1428 2006-08-24 Ulrich Drepper <drepper@redhat.com>
1431 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
1432 as in the x86-64 code to use bswap.
1434 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
1437 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
1439 * posix/bits/unistd.h: Likewise.
1441 2006-05-15 Mike Frysinger <vapier@gentoo.org>
1444 * string/strchr.c: Add cast to avoid warning.
1446 2006-08-21 Ulrich Drepper <drepper@redhat.com>
1448 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
1449 platforms define as 512K. For 64-bit platforms as 32MB. The lower
1450 limit is needed to avoid the exploding of the address space
1451 requirement for secondary heaps.
1452 * malloc/arena.c (HEAP_MAX_SIZE): Define using
1453 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
1455 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
1458 * Makerules (depfiles): Handle extra-test-objs the same as
1460 (common-mostlyclean): Likewise.
1461 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
1463 * elf/Makefile (extra-objs): Likewise.
1464 * stdlib/Makefile (extra-objs): Likewise.
1466 2006-08-14 Eric Blake <ebb9@byu.net>
1469 * misc/error.h: Assume C89 or better.
1470 * misc/error.c: Likewise.
1472 2006-08-21 Ulrich Drepper <drepper@redhat.com>
1475 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
1476 __ASSUME_ATFCTS is defined.
1478 2006-08-19 Ulrich Drepper <drepper@redhat.com>
1480 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
1481 to sort in each call.
1483 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
1484 is empty simply return and use next service.
1485 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
1487 * locale/programs/charmap.c (charmap_read): Add new parameter. It
1488 tells us when not finding a charmap file is an error.
1489 * locale/programs/charmap.h: Adjust charmap_read prototype.
1490 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
1491 cannot find a charmap.
1492 * locale/programs/localedef.c (main): Adjust charmap_read call.
1494 2006-08-15 Jakub Jelinek <jakub@redhat.com>
1496 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
1497 sysdeps/posix/pause.c implementation instead.
1499 2006-08-09 Jakub Jelinek <jakub@redhat.com>
1501 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
1504 2006-08-13 Andreas Schwab <schwab@suse.de>
1506 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
1507 Don't clobber caller's LRSAVE.
1508 (_dl_prof_resolve): Likewise.
1510 2006-08-14 Ulrich Drepper <drepper@redhat.com>
1513 * libio/memstream.c (open_memstream): Allocate initial buffer with
1515 * libio/wmemstream.c (open_wmemstream): Likewise.
1516 * libio/strops.c: Pretty printing.
1517 (_IO_str_overflow): Clear uninitialized part of the new buffer.
1518 (enlarge_userbuf): New function.
1519 (_IO_str_seekoff): Call it if seek position is larger than current
1521 * libio/wstrops.c: Likewise.
1522 * libio/vasprintf.c: Add comment as to why we do not have to use
1523 calloc instead of malloc to allocate initial buffer.
1524 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
1525 * libio/bug-memstream1.c: New file.
1526 * libio/bug-wmemstream1.c: New file.
1528 2006-08-13 Ulrich Drepper <drepper@redhat.com>
1530 * libio/wstrops.c: Remove dead macro definitions and comments.
1531 * libio/strops.c: Likewise.
1534 * login/utmpname.c (__utmpname): Remove unnecessary test.
1536 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
1539 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
1542 2006-08-13 Ulrich Drepper <drepper@redhat.com>
1545 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
1547 * sysdeps/unix/clock_settime.c: Add support for platform-specific
1548 setting of CPU clocks.
1550 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
1553 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
1554 since C99 requires the result to promote to 'int' when uint_least8_t
1555 and uint_least16_t promote to 'int'.
1557 2006-08-12 Ulrich Drepper <drepper@redhat.com>
1560 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
1561 lenght of one output field, correct bitmask creation.
1562 * locale/programs/ld-time.c: Add alignment.
1565 * misc/error.c: Add space between program name and message if file
1568 2006-08-03 Eric Blake <ebb9@byu.net>
1571 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
1573 2006-08-09 Ulrich Drepper <drepper@redhat.com>
1575 * malloc/memusagestat.c: Silence warnings.
1577 * malloc/malloc.c: Dynamically size mmap treshold if the program
1578 frees mmaped blocks.
1579 Patch by Valerie Henson and Arjan van de Ven.
1581 2006-08-08 Jakub Jelinek <jakub@redhat.com>
1583 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
1586 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
1587 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
1588 (DEF): Don't put the var into .gnu.linkonce.r.* section.
1589 Only provide var definitions in strtol_l (or for *ull*
1592 * stdio-common/bug16.c (tests): New array.
1593 (do_tests): Allow the first hexadecimal digit
1594 to be 1, 2, 4 or 8. Do 3 additional tests.
1596 * sysdeps/s390/fpu/libm-test-ulps: Update.
1598 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
1599 fchownat syscall if available.
1600 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
1601 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
1602 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
1604 2006-08-07 Ulrich Drepper <drepper@redhat.com>
1606 * nis/nis_xdr.c: Avoid some function calls.
1608 2006-08-07 Jakub Jelinek <jakub@redhat.com>
1609 Ulrich Drepper <drepper@redhat.com>
1611 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
1612 short cut if only one name component is stripped away.
1614 2006-08-07 Ulrich Drepper <drepper@redhat.com>
1616 * nis/nis_call.c: Minor cleanups throughout.
1617 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
1618 (first_shoot): Add search_parent_first parameter. Only if it is set
1619 search parent server first.
1620 If directory for table found through cold start cache is not the same
1621 as referenced in the cache, don't use it.
1622 (__nisfind_server): Take additional parameter. Pass it on to
1624 (__prepare_niscall): Adjust __nisfind_server call.
1625 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
1626 * nis/nis_table.c: Adjust __nisfind_server call.
1627 * nis/nis_lookup.c: Likewise.
1628 (nis_lookup): Don't loop endlessly if name is reduced to ".".
1630 2006-08-03 Ulrich Drepper <drepper@redhat.com>
1633 * math/s_cacosh.c: Return values from positive branch.
1634 * math/s_cacoshf.c: Likewise.
1635 * math/s_cacoshl.c: Likewise.
1638 * sysvipc/sys/msg.h: Change return value to ssize_t.
1639 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
1640 * sysvipc/msgrcv.c: Likewise.
1641 * include/sys/msg.h: Likewise.
1643 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
1644 test introduced in patch for bz #661.
1645 (getgrouplist): Simplify code a bit. Don't allocate one additional
1646 element for NEWGROUPS.
1649 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
1650 'f', use '1' as leading digit not '\1'.
1651 * stdio-common/Makefile (tests): Add bug16.
1652 * stdio-common/bug16.c: New file.
1655 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
1656 and don't try to open it. The patch introducing the macro
1657 contained a bug and used the same file name as the new file
1658 instead of using /var/adm/hostid. Nobody complaint so I'm taking
1659 this out completely.
1662 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
1663 Patch by Jerry James <Jerry.James@usu.edu>.
1665 * rt/Makefile (tests): Add tst-clock2.
1666 * rt/tst-clock2.c: New file.
1669 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
1670 function and its parameters and pass it to new thread.
1671 (__gai_notify): Add support for alternative waiting for completion.
1672 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
1673 waiting for completion.
1674 * resolv/getaddrinfo_a.c: Likewise.
1675 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
1676 waiting for completion is used.
1677 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
1678 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
1679 * resolv/gai_error.c: Likewise.
1680 * resolv/gai_sigqueue.c: Likewise.
1682 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
1684 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
1685 errno to EBADF and return MACH_PORT_NULL.
1687 2006-06-23 Joseph Myers <joseph@codesourcery.com>
1690 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
1692 2006-08-02 Ulrich Drepper <drepper@redhat.com>
1694 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
1695 walk them instead of the symbol table.
1697 2006-08-01 Ulrich Drepper <drepper@redhat.com>
1700 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
1701 status of NSS calls, not the number of returned entries.
1703 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
1704 request_key, keyctl.
1706 2006-07-31 Ulrich Drepper <drepper@redhat.com>
1708 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
1710 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
1712 * elf/tst-auditmod1.c: Fix typo in #error.
1714 2006-07-31 Ulrich Drepper <drepper@redhat.com>
1716 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
1718 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
1720 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
1722 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
1723 that the directory is empty even on non-POSIX filesystems.
1725 2006-07-31 Ulrich Drepper <drepper@redhat.com>
1727 * elf/dl-open.c (dl_open_worker): Add branch prediction.
1729 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
1730 the backend NSS module. If backend setgrent call failed, don't have
1731 internal_setgrent fail. Just remember this until it is needed.
1732 * nis/nss_compat/compat-pwd.c: Likewise.
1733 * nis/nss_compat/compat-spwd.c: Likewise.
1735 2006-07-30 Roland McGrath <roland@redhat.com>
1737 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
1738 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
1739 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
1740 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
1742 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
1743 (nanosleep_not_cancel): New macro.
1744 (sigsuspend_not_cancel): new macro.
1745 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
1746 (do_sigsuspend): Define as inline.
1747 (__sigsuspend): Always use do_sigsuspend.
1748 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
1749 * include/signal.h: Declare __sigsuspend_nocancel.
1750 * sysdeps/posix/pause.c
1751 [! NO_CANCELLATION] (__pause_nocancel): New function.
1753 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
1754 * include/time.h (__nanosleep_nocancel): Likewise.
1756 2006-07-30 Ulrich Drepper <drepper@redhat.com>
1758 * locale/programs/localedef.c (add_to_readlist): Rename local
1759 variables to avoid confusion.
1761 * locale/programs/charmap.c (charmap_read): Emit error message if
1762 charmap couldn't be found or read.
1764 2006-07-28 Ulrich Drepper <drepper@redhat.com>
1766 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1767 __ASSUME_FUTEX_LOCK_PI.
1768 * include/time.h: Declare __nanosleep_nocancel.
1769 * include/unistd.h: Declare __pause_nocancel.
1771 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
1772 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
1773 get the __stack_chk_fail_local definition when it's needed.
1775 2006-07-26 Ulrich Drepper <drepper@redhat.com>
1777 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
1778 * dlfcn/bug-atexit3.c: New file.
1779 * dlfcn/bug-atexit3-lib.cc: New file.
1781 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
1782 used when the namespace is not the base namespace.
1784 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
1786 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
1787 (__new_exitfn): Bump it in every successful call.
1788 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
1789 more exit handlers, call them right away.
1790 * stdlib/exit.h: Declare __new_exitfn_called.
1792 2006-07-25 Ulrich Drepper <drepper@redhat.com>
1794 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
1795 calling registered handler.
1797 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
1798 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1799 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1800 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1801 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1802 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1803 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1804 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1806 2006-07-10 Ulrich Drepper <drepper@redhat.com>
1808 * elf/dl-lookup.c (dl_new_hash): New functions.
1809 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
1810 value here. Compute new-style hash value. Pass new hash value
1811 and reference to variable with the old value to do_lookup_x.
1812 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
1813 old-style hash table.
1814 (_dl_debug_bindings): Pass new hash value and reference to variable
1815 with the old value to do_lookup_x.
1816 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
1817 new-style hash value and change old-style hash value parameter to
1818 be a reference. Reoganize functions to determine whether
1819 new-style hash table is available. Only fall back on old-style
1820 table. If old-style hash value is needed, compute it here.
1821 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
1823 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
1824 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
1825 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
1826 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
1827 * Makeconfig: If linker supports --hash-style option add it to all
1828 linker command lines to build DSOs.
1829 * config.make.in: Define have-hash-style.
1830 * configure.in: Test whether linker supports --hash-style option.
1832 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
1833 * sysdeps/generic/ldsodefs.h: Adjust prototype.
1835 2006-06-27 Ulrich Drepper <drepper@redhat.com>
1837 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
1840 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
1841 RPATH of main map twice.
1843 2006-06-22 Ulrich Drepper <drepper@redhat.com>
1845 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
1846 look further, return original strings.
1847 (_nl_find_msg): Do not return found translation if the conversion
1848 failed. Either signal the string is unusable or that something went
1849 wrong and the original should be used.
1851 2006-06-21 Ulrich Drepper <drepper@redhat.com>
1853 * string/_strerror.c (__strerror_r): Add __builtin_expect.
1855 2006-06-14 Jakub Jelinek <jakub@redhat.com>
1858 * misc/insremque.c (insque): Handle prev == NULL.
1859 * misc/Makefile (tests): Add tst-insremque.
1860 * misc/tst-insremque.c: New test.
1862 2006-06-17 Ulrich Drepper <drepper@redhat.com>
1865 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
1866 conflict with DL_DST_REQUIRED.
1868 2006-06-16 Ulrich Drepper <drepper@redhat.com>
1870 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
1871 match what Solaris does.
1873 2006-06-04 Ulrich Drepper <drepper@redhat.com>
1875 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
1876 local_setegid instead of seteuid and setegid.
1877 * sysdeps/generic/local-setxid.h: New file.
1878 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
1880 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
1882 * string/Makefile (tests): Add bug-envz1.
1883 * string/bug-envz1.c: New file.
1885 2006-06-02 Jakub Jelinek <jakub@redhat.com>
1887 * posix/regex_internal.c (re_string_skip_chars): If no character has
1888 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
1889 to the byte which couldn't be converted.
1890 (re_string_reconstruct): Don't clear valid_raw_len before calling
1891 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
1892 tip_context using re_string_context_at.
1893 * posix/Makefile: Add rules to build and run bug-regex25 test.
1894 * posix/bug-regex25.c: New test.
1896 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
1899 * string/envz.c (envz_strip): Correct erroneously reversed src
1900 and dest parameters to memmove() invocation.
1902 2006-05-30 Jakub Jelinek <jakub@redhat.com>
1904 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
1905 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
1906 to make sure the database has been already invalidated.
1907 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
1908 after the cache has been invalidated. Use pthread_mutex_lock rather
1909 than pthread_mutex_trylock if fd != -1.
1910 * nscd/connections.c (invalidate_cache): Add fd argument, write
1911 response to fd if not calling prune_cache, pass fd to prune_cache.
1912 (handle_request): Adjust invalidate_cache caller.
1913 (nscd_run): Pass -1 as fd to prune_cache.
1915 2006-05-30 Ulrich Drepper <drepper@redhat.com>
1917 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
1920 2006-05-29 Ulrich Drepper <drepper@redhat.com>
1922 * nscd/nscd.h (struct database_dyn): Add prunelock field.
1923 * nscd/cache.c (prune_cache): Take prunelock before starting the
1924 work. Just return in case it is already taken.
1925 * nscd/connections.c (dbs): Initialize .prunelock.
1927 2006-05-25 Ulrich Drepper <drepper@redhat.com>
1929 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
1930 copying. No need to allocate new array for group members. Just
1931 move the pointers and update the size.
1933 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
1934 Avoid memory leak in case realloc fails. Simplification for
1935 better code generation.
1937 Avoid deprecation warning because of libc_hidden_proto for
1939 * inet/inet6_option.c (option_alloc): Renamed from
1940 inet6_option_alloc. Made static.
1941 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1942 (inet6_option_append): Call option_alloc.
1943 * include/netinet/in.h: Remove libc_hidden_proto for
1946 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
1947 for cleanup when cb!=NULL [Coverity CID 233].
1949 2006-05-24 Ulrich Drepper <drepper@redhat.com>
1952 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
1953 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
1954 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
1955 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
1956 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
1957 and inet6_rth_getaddr.
1958 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
1960 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
1961 Mark inet6_option_* interfaces as deprecated.
1962 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
1963 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
1964 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
1965 inet6_rth_segments, and inet6_rth_getaddr.
1966 * inet/inet6_opt.c: New file.
1967 * inet/inet6_rth.c: New file.
1969 * inet/netinet/icmp6.h: Pretty printing.
1972 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
1974 2006-05-23 Ulrich Drepper <drepper@redhat.com>
1976 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
1977 doing it all here. When server does not know the answer do not
1978 fail immediate, try parent first.
1980 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
1983 2006-05-20 Ulrich Drepper <drepper@redhat.com>
1985 * nis/nis_call.c (__prepare_niscall): New function. Split out
1987 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
1989 (__follow_path): New function. Split out from nis_list.
1990 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
1992 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
1994 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
1996 * nis/Versions: Export __prepare_niscall, __create_ib_request,
1997 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
1998 from libnsl for version GLIBC_PRIVATE.
1999 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
2000 Remove entry parameter from _nss_nisplus_parse_pwent and
2001 _nss_nisplus_parse_grent.
2002 * nis/nss_nisplus/nisplus-parser.c: Likewise.
2003 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
2004 again. Rewrite getpwent handling to not use nis_first_entry and
2005 nis_next_entry. Roll out own niscall handling.
2006 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2008 * sunrpc/xdr_rec.c: Fix typo in comment.
2010 2006-05-19 Ulrich Drepper <drepper@redhat.com>
2012 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
2015 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
2016 to allocate memory for my_pollfd. Better initialization of
2017 cb_is_running. Use TEMP_FAILURE_RETRY.
2019 * malloc/memusage.sh (memusageso): Add quotes.
2020 (memusagestat): Likewise.
2021 * debug/xtrace.sh (pcprofileso): Likewise.
2022 (pcprofiledump): Likewise.
2023 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
2025 * malloc/Makefile ($(objpfx)memusage): Likewise.
2027 * nis/nis_callback.c (__nis_create_callback): Calls to
2028 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
2029 asprintf call fails.
2031 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
2032 no uninitialized memory is passed to sendto.
2034 2006-05-18 Ulrich Drepper <drepper@redhat.com>
2036 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
2037 of snprintf+strdup. Handle OOM.
2038 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
2039 cb->serv together. Remove now obsolete free calls.
2040 (__nis_destroy_callback): Remove now obsolete free call.
2042 2006-05-18 David Woodhouse <dwmw2@redhat.com>
2044 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
2045 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
2046 and ULA respectively). Set precedence for IPv4 address to 10 as
2047 defined in RFC3484 for preferring IPv6.
2048 * posix/gai.conf: Update to match the new default tables.
2050 2006-05-18 Jakub Jelinek <jakub@redhat.com>
2052 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
2053 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
2054 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
2055 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
2057 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
2059 (init_nss_interface): Remove initialization of these variables.
2061 2006-05-18 Ulrich Drepper <drepper@redhat.com>
2063 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
2064 nis_free_directory forward to avoid duplication.
2066 2006-05-17 Ulrich Drepper <drepper@redhat.com>
2068 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
2069 rec_dirsearch returning NULL.
2070 (first_shoot): Handle __nis_finddirectory returning NULL.
2071 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
2073 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
2074 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
2076 2006-05-17 Jakub Jelinek <jakub@redhat.com>
2078 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
2081 2006-05-15 Ulrich Drepper <drepper@redhat.com>
2083 * include/rpc/pmap_prot.h: Mark all functions as hidden.
2085 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
2086 * nscd/nscd_getgr_r.c: Likewise.
2088 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
2090 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
2091 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
2093 * stdlib/longlong.h (__clz_tab): Mark as hidden.
2095 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
2097 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
2099 * include/rpc/auth.h: Mark xdr_des_block_internal and
2100 xdr_opaque_auth_internal as hidden.
2102 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
2105 * include/rpc/xdr.h: Mark all _internal functions as hidden.
2107 * misc/getusershell.c (okshells): Don't use static initializers,
2110 * stdlib/fmtmsg.c (keywords): Change type of len element to
2111 uint32_t to not waste space on 64bit machines.
2113 * locale/setlocale.c: Change _nl_category_names into a string.
2114 Add new _nl_category_name_idxs. Change all users.
2115 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
2116 Declare _nl_category_name_idxs.
2117 * locale/findlocale.c: Adjust for _nl_category_names change.
2118 * locale/loadlocale.c: Likewise.
2119 * locale/newlocale.c: Likewise.
2120 * intl/dcigettext.c: Likewise.
2122 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
2123 (add_alias2): ...here. New function.
2124 (__gconv_read_conf): Simplify builtin alias handling.
2125 (builtin_aliases): Convert to string to avoid relocations.
2126 * iconv/gconv_builtin.h: Add comment about correct formatting.
2128 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2130 * resolv/res_debug.c (loc_ntoa): Make error const.
2132 2006-05-14 Andreas Schwab <schwab@suse.de>
2134 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
2136 2006-05-12 Jakub Jelinek <jakub@redhat.com>
2138 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
2139 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
2142 2006-05-11 Ulrich Drepper <drepper@redhat.com>
2144 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
2146 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
2148 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
2149 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
2151 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
2152 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
2154 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
2155 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
2158 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
2159 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
2162 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
2163 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
2165 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
2166 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
2168 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
2169 * include/rpcsvc/nis_callback.h: New file.
2171 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
2172 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
2174 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
2175 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
2177 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
2178 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
2180 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
2181 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
2183 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
2184 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
2187 * nis/nis_xdr.h: Mark all functions as hidden. Remove
2188 __BEGIN_DECLS and __END_DECLS, the header is not installed.
2190 * nis/nis_error.c: Remove table of strings. Use position
2191 independent mechanism.
2192 * nis/nis_error.h: New file.
2194 2006-05-11 Jakub Jelinek <jakub@redhat.com>
2196 * locale/programs/ld-time.c (time_finish): If wide era name or
2197 format aren't provided, set both wname and wformat to L"".
2199 2006-05-10 Ulrich Drepper <drepper@redhat.com>
2201 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
2202 results if the call was succesful.
2204 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
2206 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
2209 2006-05-10 Jakub Jelinek <jakub@redhat.com>
2211 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
2213 2006-05-10 Ulrich Drepper <drepper@redhat.com>
2215 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
2216 caller makes sure this is not the case.
2217 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
2219 2006-05-09 Ulrich Drepper <drepper@redhat.com>
2221 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
2224 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
2225 [Coverity CID 229, 230]
2227 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
2229 (hol_help): Likewise. [Coverity CID 226, 227]
2231 * string/argz-replace.c (__argz_replace): Unconditionally call
2232 free on SRC. [Coverity CID 225]
2234 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
2235 the return value of __nis_default_owner and __nis_default_group,
2236 it has been especially allocated. [Coverity CID 224]
2238 * nis/nis_defaults.c (searchXYX): New functions. Used by both
2239 searchgroup and searchowner. Significantly simplified.
2240 (__nis_default_owner): Remove duplication. Do not locally copy the
2241 string before duplicating it.
2242 (__nis_default_group): Likewise.
2244 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
2245 we must clear the variable before calling __nisfind_server.
2247 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
2248 nis_getnames. [Coverity CID 223]
2250 * locale/programs/locfile.c (locfile_read): Use alloca instead of
2251 xmalloc to allocate local repertoire name. [Coverity CID 222]
2253 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
2254 allocate memory for the input to add_bytes. [Coverity CID 221]
2256 * posix/wordexp.c (w_addword): Free word if realloc fails and it
2257 was allocated here. [Coverity CID 219, 220]
2259 * posix/getconf.c (print_all): Free confstr data after printing.
2262 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
2263 list allocation fails. [Coverity CID 215]
2265 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
2268 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
2269 string is NULL. [Coverity CID 212]
2270 * argp/Makefile: Add rules to build and run bug-argp1.
2271 * argp/bug-argp1.c: New file.
2273 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
2275 * stdlib/canonicalize.c (__realpath): Likewise.
2277 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
2278 pointer. [Coverity CID 206]
2280 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
2281 in statically linked code.
2282 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
2283 statically built code, be prepared to have no link map.
2286 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
2287 dgettext calls. [Coverity CID 204]
2289 * argp/argp-help.c (struct uparams): Remove valid member. Change
2291 (uparam_names): Reduce size. Avoid relative relocations.
2292 Moved to read-only segment.
2293 (fill_in_uparams): Update for new layout.
2295 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
2296 assumed to always be != NULL. [Coverity CID 202]
2298 * argp/argp-help.c (hol_entry_help): Remove some dead code
2301 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
2302 away a few more unconditional yperr2nss calls.
2303 (_nss_nis_getservbyname_r): Likewise.
2305 2006-05-06 Ulrich Drepper <drepper@redhat.com>
2307 * sysdeps/generic/ldsodefs.h: Remove support for non-core
2310 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
2311 that unused memory passed to sendto is nevertheless initialized.
2314 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
2315 possibly unaligned memory accesses.
2317 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
2318 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
2319 and __putlong respectively. Correct buffer overflow check for
2322 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
2324 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
2325 (send_dg): Rewrite error handling to be more compact and avoid
2326 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
2328 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
2330 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
2331 instead of ns_get16.
2332 (res_queriesmatch): Likewise. Minor optimization.
2335 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
2336 __libc_res_nsend might reallocate the buffer for the answer. In
2337 this case we have to reload the HP pointer.
2339 2006-05-05 Ulrich Drepper <drepper@redhat.com>
2341 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
2342 some branch prediction hints.
2344 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
2345 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2346 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2347 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2348 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2349 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2350 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2351 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2353 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
2355 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
2356 by a GOT relocation to make Scrt1.o position independent.
2357 * sysdeps/s390/s390-64/elf/start.S: Likewise.
2359 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
2360 six system call parameters.
2361 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
2363 2006-05-05 Ulrich Drepper <drepper@redhat.com>
2365 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
2368 * sunrpc/svc_udp.c (BZERO): Remove definition.
2370 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
2372 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
2373 (des_SPtrans): Use uint32_t type.
2374 (des_skb): Likewise.
2376 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
2378 2006-05-05 Jakub Jelinek <jakub@redhat.com>
2381 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
2384 2006-05-05 Ulrich Drepper <drepper@redhat.com>
2386 * locale/programs/ld-address.c (address_finish): Fix one more
2387 place where the iso639 array might be accessed beyond the limits.
2389 2006-05-04 Ulrich Drepper <drepper@redhat.com>
2391 * nis/nis_table.c (nis_list): Avoid clearing res twice before
2392 filling it for the first time.
2394 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
2396 Free res object content before returning.
2398 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
2400 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
2403 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
2404 cleanup for initial thread, just the free call on TVP.
2406 * nscd/gai.c (__getline): Define.
2409 See ChangeLog.16 for earlier changes.