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