[BZ #3944]
[platform/upstream/glibc.git] / ChangeLog
1 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
2
3         [BZ #3944]
4         * time/strptime_l.c (__strptime_internal): Set have_mon for
5         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
6         have been computed from tm_yday and tm_year.  Don't crash
7         in day_of_the_week or day_of_the_year if not have_mon
8         and tm_mon contains bogus value.
9         * time/Makefile (tests): Add tst-strptime3.
10         * time/tst-strptime3.c: New test.
11
12 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
13
14         [BZ #3957]
15         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
16         bit for RE_HAT_LISTS_NOT_NEWLINE.
17         (build_charclass_op): Remove bogus comment.
18         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
19         * posix/bug-regex27.c: New test.
20         * posix/bug-regex28.c: New test.
21
22 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
23
24         * po/sv.po: Update from translation team.
25
26 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
27
28         * nscd/nscd_helper.c (open_socket): Minor size optimization.
29
30 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
31
32         * include/locale.h (__uselocale): Add libc_hidden_proto.
33         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
34
35         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
36         gettimeofday.
37
38 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
39
40         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
41         returning.
42         (PTR_DEMANGLE): Real definition now that it's not the same as
43         PRT_MANGLE anymore.
44         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
45
46         * string/strerror_l.c: New file.
47         * string/Makefile (routines): Add strerror_l.
48         * string/string.h: Declare strerror_l.
49         * string/Versions: Export strerror_l for GLIBC_2.6.
50
51 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
52
53         * nscd/nscd_helper.c (open_socket): Now takes request type and key
54         as parameter.  Construct request record.  Try sending request
55         before the first poll use, it usually succeeds.  Adjust all
56         callers.
57         * nscd/nscd-client.h: Define MAXKEYLEN.
58         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
59
60 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
61
62         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
63         from return value.
64         * nscd/nscd_helper.c: Include string.h.
65         (__nscd_cache_search): Remove const qualifier from return value.
66         On strict alignment architectures check hash entry and data head
67         alignment.
68         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
69         mmapped data during GC cycle contains garbage.  If
70         __nscd_drop_map_ref fails, decrement mapped->counter when returning
71         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
72         dropped to 0.
73         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
74         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
75         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
76         * nscd/nscd_getai.c (__nscd_getai): Likewise.
77         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
78
79 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
80
81         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
82
83 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
84
85         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
86         names not numbers in cfi_*.
87
88 2007-01-26  Andreas Jaeger  <aj@suse.de>
89
90         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
91         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
92         Correct values of PER_HPUX and PER_OSF4.
93
94 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
95
96         * elf/dl-minimal.c: Undefine _itoa first.
97         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
98         * malloc/mtrace.c: Revert last change.
99         * posix/wordexp.c: Likewise.
100
101 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
102
103         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
104         and __geode__ to the list of i486+ CPUs.
105         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
106
107 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
108
109         * stdio-common/_itoa.c: Include <limits.h>.
110         * stdio-common/_itowa.c: Likewise.
111
112 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
113
114         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
115         platforms.
116         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
117         64-bit platforms.
118         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
119         possible.
120         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
121         if possible.
122
123         [BZ #3902]
124         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
125         * stdio-common/Makefile (tests): Add bug17.
126         * stdio-common/bug17.c: New file.
127
128 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
129
130         * iconvdata/brf.c: New file.
131         * iconvdata/testdata/BRF: New file.
132         * iconvdata/testdata/BRF..UTF8: New file.
133         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
134         * iconvdata/Makefile: Add rules to build BRF.
135         * iconvdata/TESTS: Add BRF entry.
136         * iconvdata/gconv-modules: Likewise.
137         * iconvdata/tst-tables.sh: Likewise.
138
139 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
140
141         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
142         type `long long int', not `long int'.
143         (wcstoq): Likewise.
144
145 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
146
147         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
148         of values on 64-bit platforms which are too large.
149
150 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
151             Joe Kerian  <jkerian@us.us.ibm.com>
152
153         [BZ #2749]
154         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
155         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
156         (__copysignl): Use signbit() for comparison.
157         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
158         SET_LDOUBLE_WORDS64.
159
160         [BZ #2423, #2749]
161         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
162         (__ceill): Remove calls to fegetround(), fesetround().
163         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
164         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
165         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
166
167 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
168
169         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
170
171         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
172
173 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
174
175         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
176         demangle pointer.
177         * csu/libc-start.c: Likewise.
178
179 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
180
181         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
182         really work anyway.
183
184 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
185
186         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
187         users.
188         (handle_request): Remove unnecessary tests.
189
190         * nscd/cache.c (cache_add): Record the failure to add to the cache.
191
192 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
193
194         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
195         workbits in semi-raw fraction.
196
197         * math/test-misc.c: Add new tests.
198
199 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
200
201         * math/basic-test.c: Include test-skeleton.c.
202         (TEST_TRUNC): Define.
203         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
204         (main): Rename to ...
205         (do_test): ...this.  Run new tests.
206         (TEST_FUNCTION): Define.
207
208 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
209             Joe Kerian  <jkerian@us.us.ibm.com>
210
211         [BZ #2749]
212         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
213         handling for high words.
214         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
215         and overflow for infinity.
216
217 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
218
219         * nscd/connections.c (handle_request): Add a __builtin_expect.
220
221         * nscd/connections.c (serv2db): Change type into structure which
222         also says whether this is a request for data.  Renamed to
223         servinfo.  All users changed.
224         (handle_request): Much simpler test whether we should search the cache.
225
226         * nscd/connections.c (handle_request): Fix thinko in selinux test
227         invocation.
228
229         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
230         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
231         it before getting dl_load_lock and then relock.
232         (_dl_lookup_symbol_x): Pass flags to add_dependency.
233         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
234         case we unlocked the scope.
235         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
236         _dl_lookup_symbol_x in case we locked the scope.
237         (_dl_profile_fixup): Likewise.
238         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
239         set DL_LOOKUP_SCOPE_LOCK.
240
241 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
242
243         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
244         CFLAGS-getsrvbynpt_r.c.
245         * nscd/getsrvbynm_r.c: New file.
246         * nscd/getsrvbypt_r.c: New file.
247         * nscd/nscd_getserv_r.c: New file.
248         * nscd/servicescache.c: New file.
249         * nscd/Makefile (routines): Add nscd_getserv_r.
250         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
251         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
252         CFLAGS-getsrvbypt_r.c.
253         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
254         table.  Add entries for services database.
255         * nscd/connections.c (serv2str): Mark as const.  Add entries for
256         services database.
257         (dbs): Add .reset_res and servdb initialization.
258         (serv2db): Add entries for services database.
259         (verify_persistent_db): Accept dbnr == servdb.
260         (invalidate_cache): Rewrite database name recognition to use a table.
261         Call res_init() if .reset_res is set for database.
262         (handle_request): Add code to handle services database.
263         * nscd/gai.c: Don't define __getservbyname_r.
264         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
265         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
266         (serv_response_header): Define.
267         (struct datahead): Add serv_response_header member.
268         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
269         using table.
270         * nscd/nscd.conf: Add entries for services database.
271         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
272         Declare serv_iov_disabled.
273         Declare addservbyname, readdservbyname, addservbyport, and
274         readdservbyport.
275         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
276         (find_db): Fix error message.
277         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
278         __nscd_getservbyname_r, and __nscd_getservbyport_r.
279         * nscd/selinux.c (perms): Add entries for services database.
280         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
281         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
282
283         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
284         * nscd/hstcache.c: Likewise.
285         * nscd/pwdcache.c: Likewise.
286
287         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
288         computation of keylen.
289
290         * include/string.h: Only redefine strndupa if this is really for
291         libc code.
292
293 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
294
295         * nscd/nscd_gethst_r.c: Minor cleanups.
296
297         * nscd/connections.c (handle_request): Check selinux permissions
298         for all non-admin commands.
299
300         * sysdeps/i386/i486/bits/atomic.h: Define
301         atomic_compare_and_exchange_val_acq,
302         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
303         using __sync_* built-ins for gcc >= 4.1.
304         * sysdeps/x86_64/bits/atomic.h: Likewise.
305
306         [BZ #3840]
307         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
308         and .oS.d files.
309
310 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
311
312         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
313         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
314         (do_test): Check errno and exit(0) if ENOSYS.
315
316 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
317
318         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
319         thousands separators.
320         * stdlib/Makefile: Add rules to build and run tst-strtod4.
321         * stdlib/tst-strtod4.c: New test.
322
323         [BZ #3855]
324         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
325         hexadecimal digit should accept just the initial 0.
326         * stdlib/tst-strtod2.c (tests): New variable.
327         (do_test): Run several tests rather than just one.
328
329 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
330
331         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
332         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
333
334 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
335
336         * io/fts.c: Make sure fts_cur is always valid after return from
337         fts_read.
338         Patch by Miloslav Trmac <mitr@redhat.com>.
339
340 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
341
342         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
343         (R_MIPS_NUM): Bump by 1.
344
345 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
346
347         * posix/execvp.c: Include alloca.h.
348         (allocate_scripts_argv): Renamed to...
349         (scripts_argv): ... this.  Don't allocate buffer here nor count
350         arguments.
351         (execvp): Use alloca if possible.
352         * posix/Makefile: Add rules to build and run tst-vfork3 test.
353         * posix/tst-vfork3.c: New test.
354
355 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
356
357         * string/Makefile (tst-strxfrm2-ENV): Define.
358         * stdlib/Makefile (tst-strtod3-ENV): Define.
359
360 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
361
362         * posix/getconf.c: Update copyright year.
363         * nss/getent.c: Likewise.
364         * iconv/iconvconfig.c: Likewise.
365         * iconv/iconv_prog.c: Likewise.
366         * elf/ldconfig.c: Likewise.
367         * catgets/gencat.c: Likewise.
368         * csu/version.c: Likewise.
369         * elf/ldd.bash.in: Likewise.
370         * elf/sprof.c (print_version): Likewise.
371         * locale/programs/locale.c: Likewise.
372         * locale/programs/localedef.c: Likewise.
373         * nscd/nscd.c (print_version): Likewise.
374         * debug/xtrace.sh: Likewise.
375         * malloc/memusage.sh: Likewise.
376         * malloc/mtrace.pl: Likewise.
377         * debug/catchsegv.sh: Likewise.
378
379 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
380
381         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
382         attempts.
383
384 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
385
386         * posix/wordexp.c: Remove some unnecessary tests.
387
388 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
389
390         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
391         blacklist the group till after we look it up.
392
393 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
394
395         * include/atomic.h (atomic_forced_read): New macro.
396
397 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
398
399         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
400
401 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
402
403         * nss/getXXbyYY_r.c: Include atomic.h.
404         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
405         add atomic_write_barrier () in between.
406
407         * stdlib/Makefile (tests): Add tst-makecontext.
408         * stdlib/tst-makecontext.c: New test.
409
410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
411         (__makecontext): Don't realign uc_mcontext.uc_regs.
412
413 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
414
415         * elf/dl-support.c: Include dl-procinfo.h.
416         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
417         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
418         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
419         Define.
420         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
421         hardcoded constants.
422         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
423         PPC_PLATFORM_* macros for array designators.
424
425 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
426
427         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
428         names to the beginning.
429         (_dl_powerpc_platforms): Add "power6x".
430         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
431         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
432         (_DL_PLATFORMS_COUNT): Increase.
433         (_dl_string_platform): Handle power6x case.
434         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
435         PPC_FEATURE_POWER6_EXT): Define.
436         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
437
438 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
439
440         [BZ #3747]
441         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
442         [-2^31 .. 2^31) range.
443         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
444         targets.
445         * stdlib/tst-rand48-2.c: New test.
446         * stdlib/Makefile (tests): Add tst-rand48-2.
447
448 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
449
450         * misc/tst-pselect.c (do_test): Fix sigblock argument.
451
452 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
453
454         * misc/tst-pselect.c (do_test): Make sure the helper process is
455         terminating when the test is aborted.
456
457 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
458
459         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
460         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
461         Handle relatime mount option.
462
463         [BZ #2337]
464         * libio/Makefile (tests): Add tst-setvbuf1.
465         * libio/tst-setvbuf1.c: New file.
466
467 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
468
469         [BZ #2337]
470         * libio/genops.c (__uflow): Fix a typo.
471         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
472         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
473         the narrow buffer size.
474
475 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
476
477         [BZ #2337]
478         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
479         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
480         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
481         in _flags.
482         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
483         _IO_wstr_finish): Likewise.
484         * libio/wmemstream.c (open_wmemstream): Likewise.
485         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
486         even for wide streams.
487
488 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
489
490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
491         kernel-features.h.
492
493 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
494
495         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
496         separators also if no non-zero digits found.
497         * stdlib/Makefile (tests): Add tst-strtod3.
498
499 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
500
501         [BZ #3632]
502         * include/features.h: Fix comment about default value for
503         _POSIX_C_SOURCE.
504
505         [BZ #3664]
506         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
507         empty parsed strings.
508         * stdlib/Makefile (tests): Add tst-strtod2.
509         * stdlib/tst-strtod2.c: New file.
510
511         [BZ #3673]
512         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
513         computation.
514         * stdlib/Makefile (tests): Add tst-atof2.
515         * stdlib/tst-atof2.c: New file.
516
517         [BZ #3674]
518         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
519         correctly if removing trailing zero of hex-float.
520         * stdlib/Makefile (tests): Add tst-atof1.
521         * stdlib/tst-atof1.c: New file.
522
523 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
524
525         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
526         Start searching for next comma at p rather than rest.
527         * misc/Makefile (tests): Add tst-mntent2.
528         * misc/tst-mntent2.c: New test.
529
530         * misc/getusershell.c (initshells): Check for integer overflows.
531         Make strings buffer one bigger as fgets always succeeds when second
532         argument is 1.  Don't use calloc for shells array.  Disallow
533         / as shell.
534
535 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
536
537         * malloc/memusage.c: Handle realloc with new size of zero and
538         non-NULL pointer correctly.
539         (me): Really write first record twice.
540         (struct entry): Make format bi-arch safe.
541         (dest): Write out more realloc statistics.
542         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
543
544 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
545
546         * nis/nis_subr.c (nis_getnames): Revert last change.
547
548 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
549
550         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
551         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
552         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
553         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
554         ENOTTY.
555         * io/Makefile: Add rules to build and run tst-ttyname_r test.
556         * io/tst-ttyname_r.c: New test.
557
558 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
559
560         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
561
562 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
563
564         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
565         jump table entries.
566
567 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
568
569         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
570         `clone' function to ensure proper unwinding stop of gdb.
571         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
572
573 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
574
575         * nscd/nscd.init: Remove obsolete and commented-out -S option
576         handling.
577
578 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
579
580         [BZ #3514]
581         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
582
583         [BZ #3515]
584         * manual/string.texi (strtok): Remove duplicate paragraph.
585
586 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
587
588         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
589         libgcc not supporting `rflags' unwinding (register # >= 17).
590
591 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
592
593         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
594         succeeded.
595
596 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
597             Jakub Jelinek  <jakub@redhat.com>
598             Jan Kratochvil  <jan.kratochvil@redhat.com>
599
600         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
601         unwind information.
602         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
603         'restore_rt' even in the 'signal' directory.
604         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
605
606 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
607
608         [BZ #3559]
609         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
610         malloc crashed.  Don't allocate memory unnecessarily in each
611         loop.
612
613 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
614
615         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
616
617 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
618
619         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
620
621 2006-11-18  Bruno Haible  <bruno@clisp.org>
622
623         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
624         __sysconf only after having tried to call getgroups32.
625
626 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
627
628         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
629         addresses for IPv4 queries if they can be mapped.
630
631 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
632
633         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
634         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
635         (signmask): Add .size directive.
636         (othermask): Add .type directive.
637
638 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
639
640         * po/nl.po: Update from translation team.
641
642         * timezone/zdump.c: Redo fix for BZ #3137.
643
644 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
645
646         * nss/nss_files/files-alias.c (get_next_alias): Set line back
647         to first_unused after parsing :include: file.
648
649 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
650
651         * timezone/africa: Update from tzdata2006o.
652         * timezone/antarctica: Likewise.
653         * timezone/asia: Likewise.
654         * timezone/australasia: Likewise.
655         * timezone/backward: Likewise.
656         * timezone/europe: Likewise.
657         * timezone/iso3166.tab: Likewise.
658         * timezone/northamerica: Likewise.
659         * timezone/southamerica: Likewise.
660         * timezone/zone.tab: Likewise.
661
662         * time/tzfile.c (__tzfile_read): Extend to handle new file format
663         on machines with 64-bit time_t.
664
665         * timezone/checktab.awk: Update from tzcode2006o.
666         * timezone/ialloc.c: Likewise.
667         * timezone/private.h: Likewise.
668         * timezone/scheck.c: Likewise.
669         * timezone/tzfile.h: Likewise.
670         * timezone/tzselect.ksh: Likewise.
671         * timezone/zdump.c: Likewise.
672         * timezone/zic.c: Likewise.
673
674         [BZ #3483]
675         * elf/ldconfig.c (main): Call setlocale and textdomain.
676         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
677
678         [BZ #3480]
679         * manual/argp.texi: Fix typos.
680         * manual/charset.texi: Likewise.
681         * manual/errno.texi: Likewise.
682         * manual/filesys.texi: Likewise.
683         * manual/lang.texi: Likewise.
684         * manual/maint.texi: Likewise.
685         * manual/memory.texi: Likewise.
686         * manual/message.texi: Likewise.
687         * manual/resource.texi: Likewise.
688         * manual/search.texi: Likewise.
689         * manual/signal.texi: Likewise.
690         * manual/startup.texi: Likewise.
691         * manual/stdio.texi: Likewise.
692         * manual/sysinfo.texi: Likewise.
693         * manual/syslog.texi: Likewise.
694         * manual/time.texi: Likewise.
695         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
696
697         [BZ #3465]
698         * sunrpc/clnt_raw.c: Minimal message improvements.
699         * sunrpc/pm_getmaps.c: Likewise.
700         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
701         * nis/nis_print_group_entry.c: Likewise.
702         * locale/programs/repertoire.c: Likewise.
703         * locale/programs/charmap.c: Likewise.
704         * malloc/memusage.sh: Likewise.
705         * elf/dl-deps.c: Likewise.
706         * locale/programs/ld-collate.c: Likewise.
707         * libio/vswprintf.c: Likewise.
708         * malloc/memusagestat.c: Likewise.
709         * sunrpc/auth_unix.c: Likewise.
710         * sunrpc/rpc_main.c: Likewise.
711         * nscd/cache.c: Likewise.
712         * locale/programs/repertoire.c: Unify output messages.
713         * locale/programs/charmap.c: Likewise.
714         * locale/programs/ld-ctype.c: Likewise.
715         * locale/programs/ld-monetary.c: Likewise.
716         * locale/programs/ld-numeric.c: Likewise.
717         * locale/programs/ld-time.c: Likewise.
718         * elf/ldconfig.c: Likewise.
719         * nscd/selinux.c: Likewise.
720         * elf/cache.c: Likewise.
721         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
722
723         [BZ #3451]
724         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
725         change atomic.
726         (ceil): Likewise.
727
728 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
729
730         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
731         if N is one bigger than return value.
732         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
733         and l1 last arguments, if buf is defined, verify the return value
734         equals to strlen (buf) and verify no byte beyond passed length
735         is modified.
736
737 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
738
739         * po/sv.po: Update from translation team.
740
741 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
742
743         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
744         noinline attribute.
745
746 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
747
748         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
749         noinline attribute.
750
751         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
752         Use __new_sys_siglist instead of _sys_siglist_internal as
753         second macro argument.
754         (_old_sys_siglist): Use declare_symbol_alias macro instead of
755         strong_alias.
756
757 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
758
759         [BZ #3493]
760         * posix/unistd.h (sysconf): Remove const attribute.
761
762         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
763         temporary or deprecated addresses.
764         Patch by Sridhar Samudrala <sri@us.ibm.com>.
765
766         * string/Makefile (tests): Add tst-strxfrm2.
767         * string/tst-strxfrm2.c: New file.
768
769 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
770
771         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
772         rather than r->r_brk.
773
774 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
775
776         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
777         optimization even if needed > n.
778
779         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
780         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
781         return false, otherwise return true.
782         (cache_rpath): Return decompose_rpath return value.
783
784 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
785
786         * include/libc-symbols.h (declare_symbol): Rename to...
787         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
788         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
789         .size directive.
790         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
791         changes.
792         * sysdeps/gnu/siglist.c: Likewise.
793
794 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
795
796         * sysdeps/powerpc/fpu/bits/mathinline.h
797         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
798         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
799
800 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
801
802         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
803         Update handling of cache descriptor 0x49 for new models.
804         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
805         Likewise.
806
807 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
808
809         * malloc/memusage.c (dest): Reset not_me back to false after
810         printing statistics.
811
812 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
813
814         * configure.in: Work around ld --help change and avoid -z relro
815         test completely if the architecture doesn't care about security.
816
817 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
818
819         * po/sv.po: Update from translation team.
820
821 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
822
823         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
824         generate compatibility version.
825
826 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
827
828         * configure.in: Relax -z relro requirement a bit.
829
830         * po/sv.po: Update from translation team.
831
832 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
833
834         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
835         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
836         * elf/dl-close.c (_dl_close_worker): Likewise.
837         * elf/dl-open.c (_dl_open_worker): Likewise.
838         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
839
840 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
841
842         * configure.in: Require assembler support for visibility, compiler
843         support for visibility and aliases, linker support for various -z
844         options.
845         * Makeconfig: Remove conditional code which now is unnecessary.
846         * config.h.in: Likewise.
847         * config.make.in: Likewise.
848         * dlfcn/Makefile: Likewise.
849         * elf/Makefile: Likewise.
850         * elf/dl-load.c: Likewise.
851         * elf/rtld.c: Likewise.
852         * include/libc-symbols.h: Likewise.
853         * include/stdio.h: Likewise.
854         * io/Makefile: Likewise.
855         * io/fstat.c: Likewise.
856         * io/fstat64.c: Likewise.
857         * io/fstatat.c: Likewise.
858         * io/fstatat64.c: Likewise.
859         * io/lstat.c: Likewise.
860         * io/lstat64.c: Likewise.
861         * io/mknod.c: Likewise.
862         * io/mknodat.c: Likewise.
863         * io/stat.c: Likewise.
864         * io/stat64.c: Likewise.
865         * libio/stdio.c: Likewise.
866         * nscd/Makefile: Likewise.
867         * stdlib/Makefile: Likewise.
868         * stdlib/atexit.c: Likewise.
869         * sysdeps/generic/ldsodefs.h: Likewise.
870         * sysdeps/i386/dl-machine.h: Likewise.
871         * sysdeps/i386/sysdep.h: Likewise.
872         * sysdeps/i386/i686/memcmp.S: Likewise.
873         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
874         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
875         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
876
877         * Makerules: USE_TLS support is now default.
878         * tls.make.c: Likewise.
879         * csu/Versions: Likewise.
880         * csu/libc-start.c: Likewise.
881         * csu/libc-tls.c: Likewise.
882         * csu/version.c: Likewise.
883         * dlfcn/dlinfo.c: Likewise.
884         * elf/dl-addr.c: Likewise.
885         * elf/dl-cache.c: Likewise.
886         * elf/dl-close.c: Likewise.
887         * elf/dl-iteratephdr.c: Likewise.
888         * elf/dl-load.c: Likewise.
889         * elf/dl-lookup.c: Likewise.
890         * elf/dl-object.c: Likewise.
891         * elf/dl-open.c: Likewise.
892         * elf/dl-reloc.c: Likewise.
893         * elf/dl-support.c: Likewise.
894         * elf/dl-sym.c: Likewise.
895         * elf/dl-sysdep.c: Likewise.
896         * elf/dl-tls.c: Likewise.
897         * elf/ldconfig.c: Likewise.
898         * elf/rtld.c: Likewise.
899         * elf/tst-tls-dlinfo.c: Likewise.
900         * elf/tst-tls1.c: Likewise.
901         * elf/tst-tls10.h: Likewise.
902         * elf/tst-tls14.c: Likewise.
903         * elf/tst-tls2.c: Likewise.
904         * elf/tst-tls3.c: Likewise.
905         * elf/tst-tls4.c: Likewise.
906         * elf/tst-tls5.c: Likewise.
907         * elf/tst-tls6.c: Likewise.
908         * elf/tst-tls7.c: Likewise.
909         * elf/tst-tls8.c: Likewise.
910         * elf/tst-tls9.c: Likewise.
911         * elf/tst-tlsmod1.c: Likewise.
912         * elf/tst-tlsmod13.c: Likewise.
913         * elf/tst-tlsmod13a.c: Likewise.
914         * elf/tst-tlsmod14a.c: Likewise.
915         * elf/tst-tlsmod2.c: Likewise.
916         * elf/tst-tlsmod3.c: Likewise.
917         * elf/tst-tlsmod4.c: Likewise.
918         * elf/tst-tlsmod5.c: Likewise.
919         * elf/tst-tlsmod6.c: Likewise.
920         * include/errno.h: Likewise.
921         * include/link.h: Likewise.
922         * include/tls.h: Likewise.
923         * locale/global-locale.c: Likewise.
924         * locale/localeinfo.h: Likewise.
925         * malloc/arena.c: Likewise.
926         * malloc/hooks.c: Likewise.
927         * malloc/malloc.c: Likewise.
928         * resolv/Versions: Likewise.
929         * sysdeps/alpha/dl-machine.h: Likewise.
930         * sysdeps/alpha/libc-tls.c: Likewise.
931         * sysdeps/generic/ldsodefs.h: Likewise.
932         * sysdeps/generic/tls.h: Likewise.
933         * sysdeps/i386/dl-machine.h: Likewise.
934         * sysdeps/ia64/dl-machine.h: Likewise.
935         * sysdeps/ia64/libc-tls.c: Likewise.
936         * sysdeps/mach/hurd/fork.c: Likewise.
937         * sysdeps/mach/hurd/i386/tls.h: Likewise.
938         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
939         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
940         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
941         * sysdeps/s390/libc-tls.c: Likewise.
942         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
943         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
944         * sysdeps/sh/dl-machine.h: Likewise.
945         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
946         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
947         * sysdeps/x86_64/dl-machine.h: Likewise.
948
949         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
950         split out locking and parameter checking.
951         (_dl_close): Call _dl_close_worker after locking and checking.
952         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
953         _dl_close.
954         * elf/Makefile: Add rules to build and run tst-thrlock.
955         * elf/tst-thrlock.c:  New file.
956
957         [BZ #3426]
958         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
959         reality.
960
961         [BZ #3429]
962         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
963         we are sure we do not need it anymore for _dl_close.  Also move
964         the asserts inside the lock region.
965         Patch mostly by Suzuki <suzuki@in.ibm.com>.
966
967 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
968
969         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
970         argument.
971         (_dl_lookup_symbol_x): Adjust caller.
972
973         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
974         _ns_global_scope.
975         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
976
977         * elf/dl-libc.c: Revert l_scope name changes.
978         * elf/dl-load.c: Likewise.
979         * elf/dl-object.c: Likewise.
980         * elf/rtld.c: Likewise.
981         * elf/dl-close.c (_dl_close): Likewise.
982         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
983         always use __rtld_mrlock_{change,done}.  Always free old scope list
984         here if not l_scope_mem.
985         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
986         change.  Never free scope list here.  Just __rtld_mrlock_lock before
987         the lookup and __rtld_mrlock_unlock it after the lookup.
988         * elf/dl-sym.c: Likewise.
989         * include/link.h (struct r_scoperec): Remove.
990         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
991         with l_scope_mem and l_scoperec_lock with l_scope_lock.
992
993 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
994
995         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
996
997 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
998
999         * configure.in: Disable building profile libraries by default.
1000
1001 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
1002
1003         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
1004         as signed longs, check for x_base + pos overflow.
1005         * sunrpc/Makefile (tests): Add tst-xdrmem2.
1006         * sunrpc/tst-xdrmem2.c: New test.
1007
1008 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
1009
1010         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
1011         _dl_lookup_symbol_x code.
1012
1013 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
1014
1015         * elf/dl-runtime.c: Include sysdep-cancel.h.
1016         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
1017         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
1018         instead of catomic_* macros.
1019         * elf/dl-sym.c: Include sysdep-cancel.h.
1020         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
1021         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
1022         * elf/dl-close.c: Include sysdep-cancel.h.
1023         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
1024         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
1025         * elf/dl-open.c: Include sysdep-cancel.h.
1026         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
1027         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
1028
1029 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
1030
1031         [BZ #3313]
1032         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
1033         fastbin rather than end of fastbin array.
1034
1035 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
1036
1037         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
1038         body macro.
1039         * sysdeps/x86_64/bits/atomic.h
1040         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
1041         (catomic_decrement): Use correct body macro.
1042
1043 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
1044
1045         * include/atomic.h: Add a unique prefix to all local variables
1046         in macros.
1047         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
1048
1049 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
1050
1051         [BZ #3369]
1052         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
1053         and 7.
1054
1055 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
1056
1057         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
1058
1059 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
1060
1061         [BZ #3313]
1062         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
1063         determine highest fast bin to consolidate, always look into all of
1064         them.
1065         (do_check_malloc_state): Only require for empty bins for large
1066         sizes in main arena.
1067
1068         * libio/stdio.h: Add more __wur attributes.
1069
1070         * elf/dl-minimal.c (realloc): Optimize last patch.
1071
1072 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
1073
1074         [BZ #3352]
1075         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
1076         and use memcpy() if it does.
1077
1078 2006-11-12  Andreas Jaeger  <aj@suse.de>
1079
1080         [BZ #2510]
1081         * manual/search.texi (Hash Search Function): Clarify.
1082         (Array Search Function): Clarify.
1083
1084 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
1085
1086         [BZ #2830]
1087         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
1088         shifting.
1089         * math/atest-exp2.c (read_mpn_hex): Likewise.
1090         * math/atest-sincos.c (main): Likewise.
1091
1092 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
1093
1094         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
1095         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
1096         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
1097         version GLIBC_2.6.
1098         * Versions.def: Add GLIBC_2.6 for libc.
1099
1100         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
1101
1102         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
1103
1104 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
1105
1106         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
1107
1108         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
1109
1110         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
1111         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
1112
1113 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
1114
1115         * include/atomic.c: Define catomic_* operations.
1116         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
1117         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
1118         * malloc/memusage.c: Likewise.
1119         * gmon/mcount.c: Likewise.
1120         * elf/dl-close.c: Likewise.
1121         * elf/dl-open.c: Likewise.
1122         * elf/dl-profile.c: Likewise.
1123         * elf/dl-sym.c: Likewise.
1124         * elf/dl-runtime.c: Likewise.
1125         * elf/dl-fptr.c: Likewise.
1126         * resolv/res_libc.c: Likewise.
1127
1128 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
1129
1130         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
1131         components which lack them.
1132
1133         * nis/nis_subr.c (nis_getnames): Make sure that we always return
1134         at least one entry consisting of the parameter concatenated with
1135         the domain.
1136
1137 2006-10-10  Roland McGrath  <roland@frob.com>
1138
1139         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
1140         * sysdeps/mach/hurd/futimes.c: Likewise.
1141         * sysdeps/mach/hurd/lutimes.c: Likewise.
1142
1143 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
1144             Jakub Jelinek  <jakub@redhat.com>
1145
1146         Implement reference counting of scope records.
1147         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
1148         from the list in objects which remain.  Always allocate new scope
1149         record.
1150         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
1151         don't resize, allocate a new one.
1152         * elf/dl-runtime.c: Update reference counters before using a scope
1153         array.
1154         * elf/dl-sym.c: Likewise.
1155         * elf/dl-libc.c: Adjust for l_scope name change.
1156         * elf/dl-load.c: Likewise.
1157         * elf/dl-object.c: Likewise.
1158         * elf/rtld.c: Likewise.
1159         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
1160         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
1161         Add l_scoperec_lock.
1162         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
1163         * sysdeps/generic/rtld-lowlevel.h: New file.
1164
1165         * include/atomic.h: Rename atomic_and to atomic_and_val and
1166         atomic_or to atomic_or_val.  Define new macros atomic_and and
1167         atomic_or which do not return values.
1168         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
1169         Various cleanups.
1170         * sysdeps/i386/i486/bits/atomic.h: Likewise.
1171
1172         * po/sv.po: Update from translation team.
1173
1174 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
1175
1176         * Versions.def: Add GLIBC_2.6 to libpthread.
1177
1178         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
1179         (versioned_symbol): Likewise.
1180         (compat_symbol): Likewise.
1181
1182         * po/tr.po: Update from translation team.
1183
1184 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
1185
1186         * nis/Banner: Removed.  It's been integral part forever and the
1187         author info is incomplete anyway.
1188         * libio/Banner: Likewise.
1189
1190         * nis/nis_table.c (nis_list): If __follow_path fails in the new
1191         code, make sure the nis_freeresult call doesn't crash and that the
1192         result is reported correctly.
1193
1194 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
1195
1196         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
1197         when callback is NULL.
1198
1199         * nis/Versions (libnss_nisplus): Add
1200         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
1201         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
1202         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
1203         _nss_create_tablename): Rename to...
1204         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
1205         ... these.  No longer static.
1206         (internal_setgrent): Adjust users.
1207         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
1208         Don't use locking around _nss_grp_create_tablename call.
1209         * nis/nss_nisplus/nisplus-initgroups.c: New file.
1210
1211 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
1212
1213         * version.h (VERSION): Bump to 2.5.90 for new development tree.
1214
1215 2006-10-06  Andreas Jaeger  <aj@suse.de>
1216
1217         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
1218
1219 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
1220
1221         * po/pl.po: Update from translation team.
1222
1223         * nscd/nscd.c (main): Fix typo in message.
1224         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
1225
1226 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
1227
1228         [BZ #3291]
1229         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
1230         errno.h, signal.h, unistd.h and sysdep-cancel.h.
1231         (__sigprocmask): Define.
1232
1233 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
1234
1235         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
1236         used.
1237
1238 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
1239
1240         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
1241         in oldtotal and newtotal calculation.
1242         * nscd/nscd-client.h (struct mapped_database): Add datasize
1243         field.
1244         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
1245         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
1246         increased.
1247         (__nscd_cache_search): Add checks to make sure we never reference
1248         data beyond the current mapping.
1249
1250 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1251
1252         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
1253         variables const to avoid compiler warnings.
1254
1255         * io/fts.c (fts_close): Remove redundant checks.
1256         (fts_build): Likewise.
1257         (fts_palloc): Likewise.
1258
1259         * manual/message.texi (Advanced gettext functions,
1260         Using gettextized software): Fix typos.
1261
1262 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
1263
1264         * posix/glob.c (glob_in_dir): Add some comments and asserts to
1265         explain why there are no leaks.
1266
1267 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
1268
1269         * libio/wmemstream.c: Include <wchar.h>.
1270         * libio/bug-wmemstream1.c: Likewise.
1271         * libio/tst-wmemstream1.c: Likewise.
1272         * libio/tst-wmemstream2.c: Likewise.
1273
1274         * version.h (RELEASE): Bump to 2.5.
1275         * README: Regenerated.
1276
1277         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
1278
1279         [BZ #3273]
1280         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
1281         found no group members.
1282         Patch by Petr Baudis.
1283
1284 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
1285
1286         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
1287         assert bootstrap_map.l_tls_modid is zero.
1288         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
1289         if USE___THREAD.
1290
1291 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
1292
1293         * libio/stdio.h: Move open_wmemstream prototype to ...
1294         * wcsmbs/wchar.h: ... here.
1295
1296 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
1297
1298         [BZ #3252]
1299         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
1300         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
1301         __{,l}chown to handle the rest.
1302         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
1303         fchownat syscall and __ASSUME_32BITUIDS case inline, call
1304         __{,l}chown to handle the rest.
1305         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
1306         i386/fchownat.c.
1307         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
1308         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
1309
1310         [BZ #3253]
1311         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
1312         time, rather allocate increasingly bigger arrays of pointers, if
1313         possible with alloca, if too large with malloc.
1314
1315 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
1316
1317         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
1318
1319         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
1320
1321 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
1322
1323         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
1324         home addresses.
1325         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
1326         IFA_F_HOMEADDRESS flag for interfaces.
1327         * include/ifaddrs.h (struct in6addrinfo): Define
1328         in6ai_homeaddress.
1329
1330 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
1331
1332         [BZ #3225]
1333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
1334         PTR_DEMANGLE3): Define.
1335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
1336         PTR_DEMANGLE3): Likewise.
1337         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
1338         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1339         Likewise.
1340         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
1341
1342 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
1343
1344         * po/libc.pot: Regenerated.
1345         * po/be.po: Updated.
1346         * po/ca.po: Likewise.
1347         * po/cs.po: Likewise.
1348         * po/da.po: Likewise.
1349         * po/de.po: Likewise.
1350         * po/el.po: Likewise.
1351         * po/en_GB.po: Likewise.
1352         * po/es.po: Likewise.
1353         * po/fi.po: Likewise.
1354         * po/fr.po: Likewise.
1355         * po/gl.po: Likewise.
1356         * po/hr.po: Likewise.
1357         * po/hu.po: Likewise.
1358         * po/ja.po: Likewise.
1359         * po/ko.po: Likewise.
1360         * po/nb.po: Likewise.
1361         * po/nl.po: Likewise.
1362         * po/pl.po: Likewise.
1363         * po/pt_BR.po: Likewise.
1364         * po/ru.po: Likewise.
1365         * po/rw.po: Likewise.
1366         * po/sk.po: Likewise.
1367         * po/sv.po: Likewise.
1368         * po/tr.po: Likewise.
1369         * po/zh_CN.po: Likewise.
1370         * po/zh_TW.po: Likewise.
1371
1372         [BZ #3137]
1373         * iconv/iconv_prog.c (main): Fix spelling in error message.
1374         * iconv/iconvconfig.c (main): Likewise.
1375         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
1376         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
1377         * locale/programs/localedef.c (main): Likewise.
1378         * locale/programs/repertoire.c (repertoire_read): Likewise.
1379         * timezone/zdump.c (main): Likewise.
1380         * nscd/connections.c (handle_request): Fix spelling in log message.
1381         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
1382
1383 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
1384
1385         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
1386         interfaces.
1387
1388 2006-09-20  Andreas Jaeger  <aj@suse.de>
1389
1390         * math/libm-test.inc (lrint_test_upward): Fix typo.
1391
1392 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
1393
1394         [BZ #2592]
1395         * math/libm-test.inc (lrint_test_tonearest): New function.
1396         (lrint_test_towardzero): New function.
1397         (lrint_test_downward): New function.
1398         (lrint_test_upward): New function.
1399         (main): Run these new tests.
1400         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
1401         of values near to 0.
1402         (two52): Use double not long double.
1403         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
1404         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
1405         (two23): Use float not double.
1406         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
1407         (two23): Use float not double.
1408         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
1409         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
1410         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
1411         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
1412
1413 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1414
1415         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
1416         Cast sp to unsigned long to avoid compiler warning.
1417         Use __makecontext_ret function instead of a trampoline on the stack.
1418         (__makecontext_ret): New function.
1419         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
1420
1421 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
1422
1423         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
1424         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
1425         bits.
1426
1427 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
1428
1429         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
1430         sure no reference to the unloaded map's search list remains in the
1431         dependency's scope.
1432
1433 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
1434
1435         * elf/Makefile: Add rules to build and run unload7 test.
1436         * elf/unload7.c: New test.
1437         * elf/unload7mod1.c: New file.
1438         * elf/unload7mod2.c: New file.
1439
1440 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
1441
1442         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
1443         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
1444         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1445         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
1446         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
1447         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
1448         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
1449         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
1450         PTRACE_GETEVENTMSG): Likewise.
1451         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
1452         values.
1453
1454 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
1455
1456         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
1457         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1458         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
1459         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
1460
1461 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
1462
1463         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
1464         write '\0' to the fd.
1465         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
1466         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
1467         Change regs to unsigned long pointer from unsigned int, fix fscr
1468         offset.
1469
1470 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
1471
1472         * io/Makefile (CFLAGS-fstatat.c): Set.
1473         (CFLAGS-fstatat64.c): Likewise.
1474         (CFLAGS-mknodat.c): Likewise.
1475
1476         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
1477         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
1478         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
1479         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
1480
1481 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
1482             Steven Munroe  <sjmunroe@us.ibm.com>
1483
1484         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
1485         names to the beginning.  Rename "cell" to "cellbe".
1486         (_dl_powerpc_platforms): New.
1487         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
1488         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
1489         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
1490         (_DL_HWCAP_PLATFORM): Define to new mask.
1491         (_dl_platform_string, _dl_string_platform): New functions.
1492         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
1493         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
1494
1495 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
1496
1497         [BZ #2526]
1498         * README.libm: Fix a thinko in sqrt algorithm description.
1499
1500         [BZ #3143]
1501         * manual/string.texi (argz_delete): Fix prototype.
1502         Patch by <alpt@freaknet.org>.
1503
1504 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
1505
1506         [BZ #3138]
1507         * io/test-lfs.c (do_prepare): Give name_len type size_t.
1508         * io/tst-fcntl.c (do_prepare): Likewise.
1509         * posix/tst-exec.c (do_prepare): Likewise.
1510         * posix/tst-preadwrite.c (do_prepare): Likewise.
1511         * posix/tst-spawn.c (do_prepare): Likewise.
1512         * posix/tst-truncate.c (do_prepare): Likewise.
1513         * rt/tst-aio.c (do_prepare): Likewise.
1514         * rt/tst-aio64.c (do_prepare): Likewise.
1515         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
1516         size_t.
1517
1518 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
1519
1520         [BZ #2821]
1521         * time/mktime.c (guess_time_tm): Fix overflow detection.
1522         * time/Makefile (tests): Add bug-mktime1.
1523         * time/bug-mktime1.c: New file.
1524
1525         [BZ #3189, #3188]
1526         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
1527         (mremap): Likewise.
1528
1529 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
1530
1531         [BZ #1006]
1532         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
1533         Ensure relocation doesn't clobber any bits outside of the
1534         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
1535         R_SPARC_HI22 and R_SPARC_H44.
1536
1537         [BZ #2775]
1538         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
1539         (long) (MINSIZE + nb - old_size) is positive.
1540
1541         * malloc/arena.c (grow_heap): When growing bail even if new_size
1542         is negative.
1543
1544         [BZ #3155]
1545         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
1546         stack below r1.
1547
1548 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
1549
1550         * posix/regex_internal.c (re_string_reconstruct): Handle
1551         offset < pstr->valid_raw_len && pstr->offsets_needed case.
1552         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
1553         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
1554         re_string_context_at.
1555         * posix/Makefile: Add rules to build and run bug-regex26 test.
1556         * posix/bug-regex26.c: New test.
1557
1558         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
1559         rather than col_sym_free.  Move seqp declaration earlier.
1560
1561         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
1562
1563 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
1564
1565         * nscd/initgrcache.c (addinitgroupsX): Move any_success
1566         decl before first goto out.
1567
1568 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
1569
1570         * Makerules (shlib.lds): If have-hash-style, put .hash section
1571         at the end of the RO segment.
1572
1573 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
1574
1575         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
1576         style hash table format is used.
1577
1578 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
1579
1580         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
1581         randomization rather than before.
1582         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
1583
1584 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
1585
1586         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
1587
1588         * malloc/malloc.c (_int_malloc): Use full list insert and not
1589         shortcut which assumes the list is empty for large requests
1590         too.
1591
1592         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
1593
1594 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
1595
1596         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
1597         and offout arguments to the prototype.
1598         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
1599         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
1600         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
1601         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
1602         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
1603         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
1604         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
1605         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
1606
1607 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
1608
1609         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
1610
1611         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
1612         dlopen parameters.
1613
1614 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
1615
1616         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
1617         only if herrno is NETDB_INTERNAL.  Handle errors other than
1618         ERANGE outside of the loops, handle TRY_AGAIN.
1619
1620         * locale/programs/ld-ctype.c (translit_flatten): Issue error
1621         if other's ctype category was missing.
1622         * locale/programs/ld-collate.c (collate_read): Return if
1623         copy_locale's collate category is missing.
1624
1625 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
1626
1627         [BZ #2684]
1628         * malloc/malloc.c (public_rEALLOc): Try harder by using other
1629         arenas if allocation failed.
1630         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
1631
1632 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
1633
1634         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
1635         waste bins[0..1].
1636         (malloc_state): Reduce bins size by 2.
1637         (_int_malloc): Fix test for large enough buffer for early termination.
1638         When no unsorted block matches perfectly and an exiting block has
1639         to be split, use full list insert and not shortcut which assumes
1640         the list is empty.
1641
1642         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
1643         failure.
1644
1645 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
1646
1647         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
1648         do anything.
1649
1650         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
1651         symbol require exact match (these are PLTs).
1652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
1653         (_dl_ppc64_addr_sym_match): Likewise.
1654
1655         [BZ #2683]
1656         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
1657         If symbol has a value use it.
1658         * elf/tst-dladdr1.c: New file.
1659         * elf/Makefile: Add rules to build and run tst-addr1.
1660
1661 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
1662
1663         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
1664         keeps failing and heap growth or new heap creation isn't
1665         successful either.
1666         * malloc/tst-malloc.c (main): Add new tests.
1667
1668 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
1669
1670         [BZ #2734]
1671         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
1672         as in the x86-64 code to use bswap.
1673
1674 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
1675
1676         [BZ #2680]
1677         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
1678         __USE_UNIX98.
1679         * posix/bits/unistd.h: Likewise.
1680
1681 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
1682
1683         [BZ #2751]
1684         * string/strchr.c: Add cast to avoid warning.
1685
1686 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
1687
1688         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
1689         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
1690         limit is needed to avoid the exploding of the address space
1691         requirement for secondary heaps.
1692         * malloc/arena.c (HEAP_MAX_SIZE): Define using
1693         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
1694
1695 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
1696
1697         [BZ #3018]
1698         * Makerules (depfiles): Handle extra-test-objs the same as
1699         extra-objs.
1700         (common-mostlyclean): Likewise.
1701         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
1702         instead.
1703         * elf/Makefile (extra-objs): Likewise.
1704         * stdlib/Makefile (extra-objs): Likewise.
1705
1706 2006-08-14  Eric Blake  <ebb9@byu.net>
1707
1708         [BZ #3044]
1709         * misc/error.h: Assume C89 or better.
1710         * misc/error.c: Likewise.
1711
1712 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
1713
1714         [BZ #3040]
1715         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
1716         __ASSUME_ATFCTS is defined.
1717
1718 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
1719
1720         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
1721         to sort in each call.
1722
1723         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
1724         is empty simply return and use next service.
1725         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
1726
1727         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
1728         tells us when not finding a charmap file is an error.
1729         * locale/programs/charmap.h: Adjust charmap_read prototype.
1730         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
1731         cannot find a charmap.
1732         * locale/programs/localedef.c (main): Adjust charmap_read call.
1733
1734 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
1735
1736         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
1737         sysdeps/posix/pause.c implementation instead.
1738
1739 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
1740
1741         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
1742         to EPERM.
1743
1744 2006-08-13  Andreas Schwab  <schwab@suse.de>
1745
1746         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
1747         Don't clobber caller's LRSAVE.
1748         (_dl_prof_resolve): Likewise.
1749
1750 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
1751
1752         [BZ #1996]
1753         * libio/memstream.c (open_memstream): Allocate initial buffer with
1754         calloc.
1755         * libio/wmemstream.c (open_wmemstream): Likewise.
1756         * libio/strops.c: Pretty printing.
1757         (_IO_str_overflow): Clear uninitialized part of the new buffer.
1758         (enlarge_userbuf): New function.
1759         (_IO_str_seekoff): Call it if seek position is larger than current
1760         buffer.
1761         * libio/wstrops.c: Likewise.
1762         * libio/vasprintf.c: Add comment as to why we do not have to use
1763         calloc instead of malloc to allocate initial buffer.
1764         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
1765         * libio/bug-memstream1.c: New file.
1766         * libio/bug-wmemstream1.c: New file.
1767
1768 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
1769
1770         * libio/wstrops.c: Remove dead macro definitions and comments.
1771         * libio/strops.c: Likewise.
1772
1773         [BZ #2764]
1774         * login/utmpname.c (__utmpname): Remove unnecessary test.
1775
1776 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
1777
1778         [BZ #2832]
1779         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
1780         0s from integers.
1781
1782 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
1783
1784         [BZ #2987]
1785         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
1786         for CPU clocks.
1787         * sysdeps/unix/clock_settime.c: Add support for platform-specific
1788         setting of CPU clocks.
1789
1790 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1791
1792         [BZ #2841]
1793         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
1794         since C99 requires the result to promote to 'int' when uint_least8_t
1795         and uint_least16_t promote to 'int'.
1796
1797 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
1798
1799         [BZ #3013]
1800         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
1801         lenght of one output field, correct bitmask creation.
1802         * locale/programs/ld-time.c: Add alignment.
1803
1804         [BZ #2997]
1805         * misc/error.c: Add space between program name and message if file
1806         name is missing.
1807
1808 2006-08-03  Eric Blake  <ebb9@byu.net>
1809
1810         [BZ #2998]
1811         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
1812
1813 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
1814
1815         * malloc/memusagestat.c: Silence warnings.
1816
1817         * malloc/malloc.c: Dynamically size mmap treshold if the program
1818         frees mmaped blocks.
1819         Patch by Valerie Henson and Arjan van de Ven.
1820
1821 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
1822
1823         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
1824         __USE_GNU.
1825
1826         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
1827         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
1828         (DEF): Don't put the var into .gnu.linkonce.r.* section.
1829         Only provide var definitions in strtol_l (or for *ull*
1830         in strtoll_l).
1831
1832         * stdio-common/bug16.c (tests): New array.
1833         (do_tests): Allow the first hexadecimal digit
1834         to be 1, 2, 4 or 8.  Do 3 additional tests.
1835
1836         * sysdeps/s390/fpu/libm-test-ulps: Update.
1837
1838         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
1839         fchownat syscall if available.
1840         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
1841         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
1842         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
1843
1844 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
1845
1846         * nis/nis_xdr.c: Avoid some function calls.
1847
1848 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
1849             Ulrich Drepper  <drepper@redhat.com>
1850
1851         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
1852         short cut if only one name component is stripped away.
1853
1854 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
1855
1856         * nis/nis_call.c: Minor cleanups throughout.
1857         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
1858         (first_shoot): Add search_parent_first parameter.  Only if it is set
1859         search parent server first.
1860         If directory for table found through cold start cache is not the same
1861         as referenced in the cache, don't use it.
1862         (__nisfind_server): Take additional parameter.  Pass it on to
1863         first_shoot.
1864         (__prepare_niscall): Adjust __nisfind_server call.
1865         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
1866         * nis/nis_table.c: Adjust __nisfind_server call.
1867         * nis/nis_lookup.c: Likewise.
1868         (nis_lookup): Don't loop endlessly if name is reduced to ".".
1869
1870 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
1871
1872         [BZ #2182]
1873         * math/s_cacosh.c: Return values from positive branch.
1874         * math/s_cacoshf.c: Likewise.
1875         * math/s_cacoshl.c: Likewise.
1876
1877         [BZ #2883]
1878         * sysvipc/sys/msg.h: Change return value to ssize_t.
1879         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
1880         * sysvipc/msgrcv.c: Likewise.
1881         * include/sys/msg.h: Likewise.
1882
1883         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
1884         test introduced in patch for bz #661.
1885         (getgrouplist): Simplify code a bit.  Don't allocate one additional
1886         element for NEWGROUPS.
1887
1888         [BZ #2908]
1889         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
1890         'f', use '1' as leading digit not '\1'.
1891         * stdio-common/Makefile (tests): Add bug16.
1892         * stdio-common/bug16.c: New file.
1893
1894         [BZ #2914]
1895         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
1896         and don't try to open it.  The patch introducing the macro
1897         contained a bug and used the same file name as the new file
1898         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
1899         this out completely.
1900
1901         [BZ #2926]
1902         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
1903         Patch by Jerry James <Jerry.James@usu.edu>.
1904
1905         * rt/Makefile (tests): Add tst-clock2.
1906         * rt/tst-clock2.c: New file.
1907
1908         [BZ #2978]
1909         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
1910         function and its parameters and pass it to new thread.
1911         (__gai_notify): Add support for alternative waiting for completion.
1912         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
1913         waiting for completion.
1914         * resolv/getaddrinfo_a.c: Likewise.
1915         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
1916         waiting for completion is used.
1917         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
1918         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
1919         * resolv/gai_error.c: Likewise.
1920         * resolv/gai_sigqueue.c: Likewise.
1921
1922 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
1923
1924         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
1925         errno to EBADF and return MACH_PORT_NULL.
1926
1927 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
1928
1929         [BZ #2980]
1930         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
1931
1932 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
1933
1934         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
1935         walk them instead of the symbol table.
1936
1937 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
1938
1939         [BZ #2098]
1940         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
1941         status of NSS calls, not the number of returned entries.
1942
1943         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
1944         request_key, keyctl.
1945
1946 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
1947
1948         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
1949
1950 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
1951
1952         * elf/tst-auditmod1.c: Fix typo in #error.
1953
1954 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
1955
1956         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
1957
1958         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
1959
1960 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
1961
1962         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
1963         that the directory is empty even on non-POSIX filesystems.
1964
1965 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
1966
1967         * elf/dl-open.c (dl_open_worker): Add branch prediction.
1968
1969         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
1970         the backend NSS module.  If backend setgrent call failed, don't have
1971         internal_setgrent fail.  Just remember this until it is needed.
1972         * nis/nss_compat/compat-pwd.c: Likewise.
1973         * nis/nss_compat/compat-spwd.c: Likewise.
1974
1975 2006-07-30  Roland McGrath  <roland@redhat.com>
1976
1977         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
1978         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
1979         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
1980         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
1981
1982         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
1983         (nanosleep_not_cancel): New macro.
1984         (sigsuspend_not_cancel): new macro.
1985         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
1986         (do_sigsuspend): Define as inline.
1987         (__sigsuspend): Always use do_sigsuspend.
1988         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
1989         * include/signal.h: Declare __sigsuspend_nocancel.
1990         * sysdeps/posix/pause.c
1991         [! NO_CANCELLATION] (__pause_nocancel): New function.
1992
1993         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
1994         * include/time.h (__nanosleep_nocancel): Likewise.
1995
1996 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
1997
1998         * locale/programs/localedef.c (add_to_readlist): Rename local
1999         variables to avoid confusion.
2000
2001         * locale/programs/charmap.c (charmap_read): Emit error message if
2002         charmap couldn't be found or read.
2003
2004 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
2005
2006         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2007         __ASSUME_FUTEX_LOCK_PI.
2008         * include/time.h: Declare __nanosleep_nocancel.
2009         * include/unistd.h: Declare __pause_nocancel.
2010
2011         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
2012         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
2013         get the __stack_chk_fail_local definition when it's needed.
2014
2015 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
2016
2017         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
2018         * dlfcn/bug-atexit3.c: New file.
2019         * dlfcn/bug-atexit3-lib.cc: New file.
2020
2021         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
2022         used when the namespace is not the base namespace.
2023
2024 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
2025
2026         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
2027         (__new_exitfn): Bump it in every successful call.
2028         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
2029         more exit handlers, call them right away.
2030         * stdlib/exit.h: Declare __new_exitfn_called.
2031
2032 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
2033
2034         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
2035         calling registered handler.
2036
2037         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
2038         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2039         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2040         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2041         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2042         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2043         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2044         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2045
2046 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
2047
2048         * elf/dl-lookup.c (dl_new_hash): New functions.
2049         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
2050         value here.  Compute new-style hash value.  Pass new hash value
2051         and reference to variable with the old value to do_lookup_x.
2052         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
2053         old-style hash table.
2054         (_dl_debug_bindings): Pass new hash value and reference to variable
2055         with the old value to do_lookup_x.
2056         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
2057         new-style hash value and change old-style hash value parameter to
2058         be a reference.  Reoganize functions to determine whether
2059         new-style hash table is available.  Only fall back on old-style
2060         table.  If old-style hash value is needed, compute it here.
2061         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
2062         entry.
2063         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
2064         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
2065         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
2066         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
2067         * Makeconfig: If linker supports --hash-style option add it to all
2068         linker command lines to build DSOs.
2069         * config.make.in: Define have-hash-style.
2070         * configure.in: Test whether linker supports --hash-style option.
2071
2072         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
2073         * sysdeps/generic/ldsodefs.h: Adjust prototype.
2074
2075 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
2076
2077         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
2078         auditing.
2079
2080         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
2081         RPATH of main map twice.
2082
2083 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
2084
2085         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
2086         look further, return original strings.
2087         (_nl_find_msg): Do not return found translation if the conversion
2088         failed.  Either signal the string is unusable or that something went
2089         wrong and the original should be used.
2090
2091 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
2092
2093         * string/_strerror.c (__strerror_r): Add __builtin_expect.
2094
2095 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
2096
2097         [BZ #2766]
2098         * misc/insremque.c (insque): Handle prev == NULL.
2099         * misc/Makefile (tests): Add tst-insremque.
2100         * misc/tst-insremque.c: New test.
2101
2102 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
2103
2104         [BZ #2792]
2105         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
2106         conflict with DL_DST_REQUIRED.
2107
2108 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
2109
2110         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
2111         match what Solaris does.
2112
2113 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
2114
2115         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
2116         local_setegid instead of seteuid and setegid.
2117         * sysdeps/generic/local-setxid.h: New file.
2118         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
2119
2120         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
2121
2122         * string/Makefile (tests): Add bug-envz1.
2123         * string/bug-envz1.c: New file.
2124
2125 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
2126
2127         * posix/regex_internal.c (re_string_skip_chars): If no character has
2128         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
2129         to the byte which couldn't be converted.
2130         (re_string_reconstruct): Don't clear valid_raw_len before calling
2131         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
2132         tip_context using re_string_context_at.
2133         * posix/Makefile: Add rules to build and run bug-regex25 test.
2134         * posix/bug-regex25.c: New test.
2135
2136 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
2137
2138         [BZ #2703]
2139         * string/envz.c (envz_strip): Correct erroneously reversed src
2140         and dest parameters to memmove() invocation.
2141
2142 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
2143
2144         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
2145         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
2146         to make sure the database has been already invalidated.
2147         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
2148         after the cache has been invalidated.  Use pthread_mutex_lock rather
2149         than pthread_mutex_trylock if fd != -1.
2150         * nscd/connections.c (invalidate_cache): Add fd argument, write
2151         response to fd if not calling prune_cache, pass fd to prune_cache.
2152         (handle_request): Adjust invalidate_cache caller.
2153         (nscd_run): Pass -1 as fd to prune_cache.
2154
2155 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
2156
2157         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
2158         the correct place.
2159
2160 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
2161
2162         * nscd/nscd.h (struct database_dyn): Add prunelock field.
2163         * nscd/cache.c (prune_cache): Take prunelock before starting the
2164         work.  Just return in case it is already taken.
2165         * nscd/connections.c (dbs): Initialize .prunelock.
2166
2167 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
2168
2169         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
2170         copying.  No need to allocate new array for group members.  Just
2171         move the pointers and update the size.
2172
2173         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
2174         Avoid memory leak in case realloc fails.  Simplification for
2175         better code generation.
2176
2177         Avoid deprecation warning because of libc_hidden_proto for
2178         inet6_option_alloc.
2179         * inet/inet6_option.c (option_alloc): Renamed from
2180         inet6_option_alloc.  Made static.
2181         (inet6_option_alloc): Now a simple wrapper around option_alloc.
2182         (inet6_option_append): Call option_alloc.
2183         * include/netinet/in.h: Remove libc_hidden_proto for
2184         inet6_option_alloc.
2185
2186         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
2187         for cleanup when cb!=NULL [Coverity CID 233].
2188
2189 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
2190
2191         [BZ #2693]
2192         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
2193         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
2194         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
2195         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
2196         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
2197         and inet6_rth_getaddr.
2198         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
2199         array.
2200         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
2201         Mark inet6_option_* interfaces as deprecated.
2202         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
2203         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
2204         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
2205         inet6_rth_segments, and inet6_rth_getaddr.
2206         * inet/inet6_opt.c: New file.
2207         * inet/inet6_rth.c: New file.
2208
2209         * inet/netinet/icmp6.h: Pretty printing.
2210
2211         [BZ #2683]
2212         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
2213
2214 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
2215
2216         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
2217         doing it all here.  When server does not know the answer do not
2218         fail immediate, try parent first.
2219
2220         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
2221         overflow test.
2222
2223 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
2224
2225         * nis/nis_call.c (__prepare_niscall): New function.  Split out
2226         from __do_niscall.
2227         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
2228         and exported.
2229         (__follow_path): New function.  Split out from nis_list.
2230         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
2231         _xdr_nis_result.
2232         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
2233         _xdr_nis_result.
2234         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
2235         and __follow_path.
2236         * nis/Versions: Export __prepare_niscall, __create_ib_request,
2237         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
2238         from libnsl for version GLIBC_PRIVATE.
2239         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
2240         Remove entry parameter from _nss_nisplus_parse_pwent and
2241         _nss_nisplus_parse_grent.
2242         * nis/nss_nisplus/nisplus-parser.c: Likewise.
2243         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
2244         again.  Rewrite getpwent handling to not use nis_first_entry and
2245         nis_next_entry.  Roll out own niscall handling.
2246         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2247
2248         * sunrpc/xdr_rec.c: Fix typo in comment.
2249
2250 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
2251
2252         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
2253         handling.
2254
2255         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
2256         to allocate memory for my_pollfd.  Better initialization of
2257         cb_is_running.  Use TEMP_FAILURE_RETRY.
2258
2259         * malloc/memusage.sh (memusageso): Add quotes.
2260         (memusagestat): Likewise.
2261         * debug/xtrace.sh (pcprofileso): Likewise.
2262         (pcprofiledump): Likewise.
2263         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
2264         replacement.
2265         * malloc/Makefile ($(objpfx)memusage): Likewise.
2266
2267         * nis/nis_callback.c (__nis_create_callback): Calls to
2268         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
2269         asprintf call fails.
2270
2271         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
2272         no uninitialized memory is passed to sendto.
2273
2274 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
2275
2276         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
2277         of snprintf+strdup.  Handle OOM.
2278         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
2279         cb->serv together.  Remove now obsolete free calls.
2280         (__nis_destroy_callback): Remove now obsolete free call.
2281
2282 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
2283
2284         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
2285         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
2286         and ULA respectively). Set precedence for IPv4 address to 10 as
2287         defined in RFC3484 for preferring IPv6.
2288         * posix/gai.conf: Update to match the new default tables.
2289
2290 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
2291
2292         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
2293         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
2294         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
2295         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
2296
2297         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
2298         Removed.
2299         (init_nss_interface): Remove initialization of these variables.
2300
2301 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
2302
2303         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
2304         nis_free_directory forward to avoid duplication.
2305
2306 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
2307
2308         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
2309         rec_dirsearch returning NULL.
2310         (first_shoot): Handle __nis_finddirectory returning NULL.
2311         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
2312
2313         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
2314         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
2315
2316 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
2317
2318         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
2319         pid changed.
2320
2321 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
2322
2323         * include/rpc/pmap_prot.h: Mark all functions as hidden.
2324
2325         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
2326         * nscd/nscd_getgr_r.c: Likewise.
2327
2328         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
2329
2330         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
2331         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
2332
2333         * stdlib/longlong.h (__clz_tab): Mark as hidden.
2334
2335         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
2336
2337         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
2338
2339         * include/rpc/auth.h: Mark xdr_des_block_internal and
2340         xdr_opaque_auth_internal as hidden.
2341
2342         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
2343         hidden.
2344
2345         * include/rpc/xdr.h: Mark all _internal functions as hidden.
2346
2347         * misc/getusershell.c (okshells): Don't use static initializers,
2348         do it dynamically.
2349
2350         * stdlib/fmtmsg.c (keywords): Change type of len element to
2351         uint32_t to not waste space on 64bit machines.
2352
2353         * locale/setlocale.c: Change _nl_category_names into a string.
2354         Add new _nl_category_name_idxs.  Change all users.
2355         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
2356         Declare _nl_category_name_idxs.
2357         * locale/findlocale.c: Adjust for _nl_category_names change.
2358         * locale/loadlocale.c: Likewise.
2359         * locale/newlocale.c: Likewise.
2360         * intl/dcigettext.c: Likewise.
2361
2362         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
2363         (add_alias2): ...here.  New function.
2364         (__gconv_read_conf): Simplify builtin alias handling.
2365         (builtin_aliases): Convert to string to avoid relocations.
2366         * iconv/gconv_builtin.h: Add comment about correct formatting.
2367
2368 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2369
2370         * resolv/res_debug.c (loc_ntoa): Make error const.
2371
2372 2006-05-14  Andreas Schwab  <schwab@suse.de>
2373
2374         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
2375
2376 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
2377
2378         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
2379         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
2380         sizeof (cpu_set_t).
2381
2382 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
2383
2384         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
2385
2386         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
2387
2388         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
2389         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
2390
2391         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
2392         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
2393
2394         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
2395         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
2396         xdr_cback_data.
2397
2398         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
2399         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
2400         xdr_ypupdate_args.
2401
2402         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
2403         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
2404
2405         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
2406         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
2407
2408         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
2409         * include/rpcsvc/nis_callback.h: New file.
2410
2411         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
2412         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
2413
2414         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
2415         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
2416
2417         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
2418         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
2419
2420         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
2421         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
2422
2423         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
2424         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
2425         xdr_ypdelete_args.
2426
2427         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
2428         __BEGIN_DECLS and __END_DECLS, the header is not installed.
2429
2430         * nis/nis_error.c: Remove table of strings.  Use position
2431         independent mechanism.
2432         * nis/nis_error.h: New file.
2433
2434 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
2435
2436         * locale/programs/ld-time.c (time_finish): If wide era name or
2437         format aren't provided, set both wname and wformat to L"".
2438
2439 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
2440
2441         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
2442         results if the call was succesful.
2443
2444         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
2445
2446         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
2447         as hidden.
2448
2449 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
2450
2451         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
2452
2453 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
2454
2455         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
2456         caller makes sure this is not the case.
2457         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
2458
2459 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
2460
2461         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
2462         calls.
2463
2464         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
2465         [Coverity CID 229, 230]
2466
2467         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
2468         DGETTEXT calls.
2469         (hol_help): Likewise.  [Coverity CID 226, 227]
2470
2471         * string/argz-replace.c (__argz_replace): Unconditionally call
2472         free on SRC.  [Coverity CID 225]
2473
2474         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
2475         the return value of __nis_default_owner and __nis_default_group,
2476         it has been especially allocated.  [Coverity CID 224]
2477
2478         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
2479         searchgroup and searchowner.  Significantly simplified.
2480         (__nis_default_owner): Remove duplication.  Do not locally copy the
2481         string before duplicating it.
2482         (__nis_default_group): Likewise.
2483
2484         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
2485         we must clear the variable before calling __nisfind_server.
2486
2487         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
2488         nis_getnames.  [Coverity CID 223]
2489
2490         * locale/programs/locfile.c (locfile_read): Use alloca instead of
2491         xmalloc to allocate local repertoire name.  [Coverity CID 222]
2492
2493         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
2494         allocate memory for the input to add_bytes.  [Coverity CID 221]
2495
2496         * posix/wordexp.c (w_addword): Free word if realloc fails and it
2497         was allocated here.  [Coverity CID 219, 220]
2498
2499         * posix/getconf.c (print_all): Free confstr data after printing.
2500         [Coverity CID 218]
2501
2502         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
2503         list allocation fails.  [Coverity CID 215]
2504
2505         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
2506         [Coverity CID 213]
2507
2508         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
2509         string is NULL.  [Coverity CID 212]
2510         * argp/Makefile: Add rules to build and run bug-argp1.
2511         * argp/bug-argp1.c: New file.
2512
2513         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
2514         end of string.
2515         * stdlib/canonicalize.c (__realpath): Likewise.
2516
2517         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
2518         pointer.  [Coverity CID 206]
2519
2520         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
2521         in statically linked code.
2522         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
2523         statically built code, be prepared to have no link map.
2524         [Coverity CID 205]
2525
2526         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
2527         dgettext calls. [Coverity CID 204]
2528
2529         * argp/argp-help.c (struct uparams): Remove valid member.  Change
2530         the one user.
2531         (uparam_names): Reduce size.  Avoid relative relocations.
2532         Moved to read-only segment.
2533         (fill_in_uparams): Update for new layout.
2534
2535         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
2536         assumed to always be != NULL. [Coverity CID 202]
2537
2538         * argp/argp-help.c (hol_entry_help): Remove some dead code
2539         [Coverity CID 200].
2540
2541         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
2542         away a few more unconditional yperr2nss calls.
2543         (_nss_nis_getservbyname_r): Likewise.
2544
2545 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
2546
2547         * sysdeps/generic/ldsodefs.h: Remove support for non-core
2548         architectures.
2549
2550         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
2551         that unused memory passed to sendto is nevertheless initialized.
2552
2553         [BZ #2499]
2554         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
2555         possibly unaligned memory accesses.
2556
2557         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
2558         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
2559         and __putlong respectively.  Correct buffer overflow check for
2560         NS_NOTIFY_OP.
2561
2562         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
2563
2564         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
2565         (send_dg): Rewrite error handling to be more compact and avoid
2566         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
2567
2568         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
2569
2570         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
2571         instead of ns_get16.
2572         (res_queriesmatch): Likewise.  Minor optimization.
2573
2574         [BZ #2499]
2575         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
2576         __libc_res_nsend might reallocate the buffer for the answer.  In
2577         this case we have to reload the HP pointer.
2578
2579 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
2580
2581         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
2582         some branch prediction hints.
2583
2584         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
2585         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2586         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2587         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2588         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2589         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2590         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2591         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2592
2593 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2594
2595         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
2596         by a GOT relocation to make Scrt1.o position independent.
2597         * sysdeps/s390/s390-64/elf/start.S: Likewise.
2598
2599         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
2600         six system call parameters.
2601         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
2602
2603 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
2604
2605         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
2606         malloc&bzero.
2607
2608         * sunrpc/svc_udp.c (BZERO): Remove definition.
2609         (CALLOC): Define.
2610         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
2611
2612         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
2613         (des_SPtrans): Use uint32_t type.
2614         (des_skb): Likewise.
2615
2616         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
2617
2618 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
2619
2620         [BZ #2509]
2621         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
2622         on 32-bit arches.
2623
2624 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
2625
2626         * locale/programs/ld-address.c (address_finish): Fix one more
2627         place where the iso639 array might be accessed beyond the limits.
2628
2629 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
2630
2631         * nis/nis_table.c (nis_list): Avoid clearing res twice before
2632         filling it for the first time.
2633
2634         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
2635         Adjust all callers.
2636         Free res object content before returning.
2637
2638         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
2639
2640         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
2641         client->cl_auth.
2642
2643         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
2644         cleanup for initial thread, just the free call on TVP.
2645
2646         * nscd/gai.c (__getline): Define.
2647
2648
2649 See ChangeLog.16 for earlier changes.