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