]> sourceware.org Git - glibc.git/blob - ChangeLog
* dlfcn/bug-atexit1.c: New file.
[glibc.git] / ChangeLog
1 2005-09-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2
3 [BZ #1361]
4 * argp/argp-fmtstream.h [HAVE_CONFIG_H]: Do not #include <config.h>.
5 * argp/argp-eexst.c, argp/argp-fmtstream.c, argp/argp-fs-xinl.c,
6 argp/argp-xinl.c: Fix up whitespace.
7
8 2005-09-27 Ulrich Drepper <drepper@redhat.com>
9
10 [BZ #1158]
11 * stdlib/cxa_atexit.c (__new_exitfn): Rewrite to preserve order in
12 which the functions were registered.
13 * dlfcn/Makefile: Add rules to build and run bug-atexit1 and
14 bug-atexit2.
15 * dlfcn/bug-atexit1.c: New file.
16 * dlfcn/bug-atexit1-lib.c: New file.
17 * dlfcn/bug-atexit2.c: New file.
18 * dlfcn/bug-atexit2-lib.c: New file.
19
20 [BZ #1078]
21 * libio/fileops.c (_IO_new_file_xsputn): Determine amount of
22 available space in non-line-buffered buffer correctly.
23 * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
24 * stdio-common/Makefile (tests): Add tst-fwrite.
25 * stdio-common/tst-fwrite.c: New file.
26
27 2005-09-26 Ulrich Drepper <drepper@redhat.com>
28
29 [BZ #838]
30 * malloc/arena.c (ptmalloc_lock_all): If global lock already taken
31 by the same thread, just bump the counter.
32 (ptmalloc_unlock_all): If counter for recursive locks hasn't reached
33 zero, don't do anything else.
34 * malloc/Makefile (tests): Add tst-mallocfork.
35 * malloc/tst-mallocfork.c: New file.
36
37 [BZ #808]
38 * malloc/malloc.c (_int_realloc): Make error message clearer.
39
40 [BZ #713]
41 * libio/iofgets.c: Treat N==1 correctly.
42 * libio/iofgets_u.c: Likewise.
43 * libio/iofgetws.c: Likewise.
44 * libio/iofgetws_u.c: Likewise.
45 * stdio-common/Makefile (tests): Add tst-fgets.
46 * stdio-common/tst-fgets.c: New file.
47
48 2005-01-11 Thorsten Kukuk <kukuk@suse.de>
49
50 [BZ #652]
51 * posix/getconf.c: Add new option -a to print the names of
52 the current system configuration variables to stdout.
53 Based on patch from Josh Aas <josha@sgi.com>.
54
55 2005-09-26 Ulrich Drepper <drepper@redhat.com>
56
57 [BZ #644]
58 * sysdeps/posix/getaddrinfo.c (fls): New function.
59 (gaih_inet): Don't use ffs, use fls. Convert address to native byte
60 order first.
61 * posix/Makefile (tests): Add tst-rfc3484.
62 * posix/tst-rfc3484.c: New file.
63
64 [BZ #627]
65 * libio/iofclose.c (_IO_new_fclose): Unlock the internal lock
66 before destroying it as part of the _IO_FINISH call.
67 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
68
69 [BZ #524]
70 * sysdeps/posix/getaddrinfo.c (match_prefix): Fix matching loop if
71 number of bits is multiple of 8.
72 Patch by Fredrik Tolf <fredrik@dolda2000.com>.
73
74 [BZ #516]
75 * elf/dl-load.c: Report failed loading due to ELF class mismatch
76 with better words.
77
78 [BZ #162]
79 * manual/llio.texi (Waiting for I/O): Correct description of read
80 conditions reported by select.
81
82 2005-09-24 Jakub Jelinek <jakub@redhat.com>
83
84 * inet/getnetgrent_r.c (innetgr): Call endfct even if result != 0.
85 Return 1 only if result == 1. Patch by Benoit Capelle.
86
87 2005-09-25 Ulrich Drepper <drepper@redhat.com>
88
89 [BZ #278]
90 * manual/stdio.texi (Hook Functions): Correct type of position
91 parameter of seeker and fix fallout of the change in the text.
92
93 [BZ #714]
94 * iconv/loop.c [!STORE_REST] (SINGLE): Correctly record number of
95 left-over bytes and store them correctly.
96 * wcsmbs/tst-mbrtowc2.c: New file.
97 * wcsmbs/Makefile (tests): Add tst-mbrtowc2.
98
99 2005-09-24 Roland McGrath <roland@redhat.com>
100
101 * sysdeps/unix/sysv/i386/signal.S: Removed, saved in ports repository.
102 * sysdeps/unix/sysv/i386/sigreturn.S: Likewise.
103
104 2005-09-24 Ulrich Drepper <drepper@redhat.com>
105
106 [BZ #545]
107 * locale/iso-639.def: More updates from the current spec.
108
109 * locale/programs/ld-address.c (address_finish): Produce better
110 error messages for invalid lang_ab use.
111
112 * locale/iso-639.def: Add a few updates from current spec.
113
114 2005-09-23 Ulrich Drepper <drepper@redhat.com>
115
116 [BZ #704]
117 * locale/iso-4217.def: Replace MGF with MGA.
118
119 * iconvdata/jis0208.c (__jisx0208_from_ucs4_lat1): Reduce size of
120 array.
121 * iconvdata/jis0208.h (ucs4_to_jisx0208): Adjust access.
122
123 2004-08-13 GOTO Masanori <gotom@debian.or.jp>
124
125 [BZ #395]
126 * iconvdata/jis0208.c: Remove 0x005C mapping from
127 __jisx0208_from_ucs4_lat1.
128 Reported by Fumitoshi UKAI <ukai@debian.or.jp>
129
130 2005-09-23 Ulrich Drepper <drepper@redhat.com>
131
132 [BZ #394]
133 * libio/fmemopen.c (fmemopen_write): Return 0 instead of -1 if
134 nothing can be written.
135 * libio/iofopncook.c (_IO_cookie_write): If something went wrong,
136 set error bit.
137
138 2005-09-22 Ulrich Drepper <drepper@redhat.com>
139
140 [BZ #281]
141 * posix/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
142 * posix/regcomp.c: Remove unnecessary uses of
143 unsigned RE_TRANSLATE_TYPE.
144 * posix/regex_internal.h: Likewise.
145 * posix/regex_internal.c: Likewise.
146 * posix/regexexec.c: Likewise.
147 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
148
149 [BZ #1035]
150 * locale/iso-4217.def: Replace TRL entry with TRY for new Turkish Lira.
151
152 [BZ #1363]
153 * nscd/nscd_getpw_r.c (nscd_getpw_r): Remove incorrectly C&Ped
154 free call in code handling detection of GC runs.
155
156 2005-09-22 Roland McGrath <roland@redhat.com>
157
158 * elf/dl-tsd.c (__libc_dl_error_tsd): Use attribute_tls_model_ie for
159 static __thread variable.
160 From Alexandre Oliva <aoliva@redhat.com>
161
162 * Makefile ($(objpfx)c++-types-check.out): Use $<, not $^, in command.
163 Reported by Alexandre Oliva <aoliva@redhat.com>.
164
165 2005-09-20 Jakub Jelinek <jakub@redhat.com>
166
167 * nscd/dbg_log.c (init_logfile): Use fopen64 rather than fopen.
168
169 2005-09-20 Roland McGrath <roland@redhat.com>
170
171 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use execv, not execl.
172
173 [BZ #1346]
174 * elf/dl-load.c (_dl_map_object_from_fd) [HAVE_Z_RELRO]: Do relro
175 magic on __stack_prot only if [SHARED]. Skip mprotect if __stack_prot
176 lies outside the page-rounded-down relro region.
177
178 2005-09-19 Richard Henderson <rth@redhat.com>
179
180 [BZ #1358]
181 * sysdeps/unix/alpha/sysdep.h (inline_syscall1): Copy argument(s)
182 to a temporary first.
183 (inline_syscall2, inline_syscall3, inline_syscall4): Likewise.
184 (inline_syscall5, inline_syscall6): Likewise.
185
186 * sysdeps/alpha/ldiv.S (lldiv): Add alias.
187
188 2005-09-17 Ulrich Drepper <drepper@redhat.com>
189
190 [BZ #1010]
191 * sysdeps/unix/sockatmark.c (sockatmark): Use SIOCATMARK correctly.
192
193 [BZ #1053]
194 * debug/xtrace.sh: Add missing escape character in -? match.
195 Patch by Peter Breitenlohner <peb@mppmu.mpg.de>.
196
197 [BZ #1051]
198 * wctype/wctype.h: Remove stray __END_NAMESPACE_C99.
199 * stdlib/stdlib.h: Use __END_NAMESPACE_STD instead of
200 __END_NAMESPACE_C99 in one place.
201 * scripts/begin-end-check.pl: New file.
202 Patch by Ralph Loader <suckfish@ihug.co.nz>.
203 * Makefile: Add rules to run scripts/begin-end-check.pl.
204
205 2005-09-17 Andreas Jaeger <aj@suse.de>
206
207 * timezone/zdump.c: Include ctype.h.
208
209 2005-09-16 Andreas Jaeger <aj@suse.de>
210
211 [BZ #1047]
212 * sysdeps/unix/sysv/linux/mips/getpagesize.c: New file.
213
214 2005-09-16 Maciej W. Rozycki <macro@linux-mips.org>
215
216 [BZ #933]
217 * sysdeps/unix/sysv/linux/mips/brk.c (__brk): Load the number of
218 the syscall immediately before invocation.
219 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl): Likewise.
220 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S (syscall): Likewise.
221
222 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl): Use
223 macros to handle GP.
224 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S (syscall):
225 Likewise. Update inaccurate comments.
226
227 2005-09-13 Ulrich Drepper <drepper@redhat.com>
228
229 * sysdeps/posix/spawni.c (__spawni): Automatically recognize some
230 more cases when we can use vfork.
231
232 2005-08-29 Thomas Schwinge <schwinge@nic-nac-project.de>
233
234 [BZ #1261]
235 * manual/memory.texi (Hooks for Malloc): Correct prototype of
236 my_init_hook and definition of my_free_hook.
237
238 2005-09-12 Roland McGrath <roland@redhat.com>
239
240 [BZ #1331]
241 * malloc/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
242 macro argument.
243 Reported by Matej Vela <vela@debian.org>.
244
245 2005-09-12 Jakub Jelinek <jakub@redhat.com>
246
247 * malloc/malloc.c (struct malloc_chunk): Fix comment typo.
248 (public_cALLOc): For mmapped chunks and perturb_byte != 0,
249 don't clear SIZE_SZ bytes more than should be cleared.
250
251 2005-09-09 Jakub Jelinek <jakub@redhat.com>
252
253 * inet/getnetgrent_r.c: Include assert.
254 (setup): Remove FUNC_NAME and ALL arguments, assume they are always
255 "setnetgrent" and 1.
256 (endnetgrent_hook): New function.
257 (internal_endnetgrent): Use it.
258 (__internal_setnetgrent_reuse): Use it. Adjust setup caller.
259 If status is NSS_STATUS_SUCCESS, yet action is continue, call
260 endnetgrent hook.
261 (internal_getnetgrent_r): Use __nss_lookup_function rather than
262 setup. Recompute getfct pointer after successful
263 __internal_setnetgrent_reuse. Don't use __nss_next.
264 (innetgr): Use __nss_lookup_function instead of __nss_lookup.
265 Adjust setup caller.
266 * nss/nss_files/files-netgrp.c (_nss_files_endnetgrent): Always clear
267 data_size and cursor. Add libnss_files_hidden_proto and
268 libnss_files_hidden_def.
269 (_nss_files_setnetgrent): Call _nss_files_endnetgrent on failure.
270 * nis/nss_nis/nis-netgrp.c (internal_endnetgrent): Always clear
271 data_size and cursor.
272 (_nss_nis_setnetgrent): Don't call internal_endnetgrent.
273 (_nss_nis_getnetgrent_r): Remove result->cursor == NULL handling.
274 * nis/nss_nisplus/nisplus-netgrp.c (internal_endnetgrent): Always clear
275 data_size and position.
276 (_nss_nisplus_setnetgrent): Don't call internal_endnetgrent.
277
278 2005-09-09 Ulrich Drepper <drepper@redhat.com>
279
280 * nss/getent.c (netgroup_keys): Call endnetgrent.
281 (main): Call mtrace.
282
283 * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): We don't
284 need locking for the stream. Use feof_unlocked.
285
286 2005-09-09 Jakub Jelinek <jakub@redhat.com>
287
288 [BZ #1318]
289 * locale/loadarchive.c (_nl_load_locale_from_archive): Free
290 normalized_codeset even if p was already normalized.
291 Reported by Jaroslav Snajdr <jsnajdr@kerio.com>.
292
293 2005-09-08 Roland McGrath <roland@redhat.com>
294
295 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Decode DSOCAPS
296 properly, first byte is bit number in mask. Skip disabled caps.
297
298 2005-07-11 Derek R. Price <derek@ximbiot.com>
299
300 [BZ #1061]
301 * sysdeps/generic/glob.c (glob): Only a 0 return from
302 getlogin_r means success, according to POSIX 1003.2.
303
304 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
305
306 [BZ #1033]
307 * time/mktime.c: Import from gnulib.
308 The following macros are now consistent with other gnulib code.
309 This does not change mktime's behavior.
310 (TYPE_IS_INTEGER): New macro.
311 (time_t_is_integer): Use it.
312 (TYPE_TWOS_COMPLEMENT): New macro.
313 (twos_complement_arithmetic): Use it.
314 (TYPE_ONES_COMPLEMENT): New macro.
315 (TYPE_MINIMUM, TYPE_MAXIMUM): Now supports signed-magnitude.
316 mktime doesn't use this, but the code now matches other gnulib code.
317 (ranged_convert): Pacify GCC 4.0 in a different way, which
318 generates a few bytes less code.
319 (ranged_convert, __mktime_internal): When calling a function via a
320 pointer P, use P () rather than (*P) (), as we now assume C89 or
321 better.
322
323 2005-09-07 Alexandre Oliva <aoliva@redhat.com>
324
325 * timezone/test-tz.c: Update to match tzdata2005m.
326 * timezone/tst-timezone.c: Likewise.
327
328 2005-09-07 Ulrich Drepper <drepper@redhat.com>
329
330 * posix/regexec.c (find_recover_state): Remove unnecessary
331 initialization.
332 (transit_state_bkref): Make DFA a const pointer.
333 (get_subexp): Likewise.
334 (check_arrival): Likewise.
335 (update_cur_sifted_state): Likewise.
336 (re_search_internal): Likewise.
337 (prune_impossible_nodes): Likewise.
338 (acquire_init_state_context): Likewise.
339 (proceed_next_node): Likewise.
340 (set_regs): Likewise.
341 (free_fail_stack_return): Likewise.
342 (check_arrival_expand_ecl): Mark DFA parameter as const.
343 (check_arrival_expand_ecl_sub): Likewise.
344 (check_subexp_limits): Likewise.
345 (sub_epsilon_src_nodes): Likewise.
346 (add_epsilon_src_nodes): Likewise.
347 (merge_state_array): Likewise.
348 (update_regs): Likewise.
349 (build_trtable): Likewise.
350 (sift_states_backward): Mark MCTX parameter as const.
351 (build_sifted_states): Likewise.
352 (update_cur_sifted_state): Likewise.
353 (sift_states_mkref): Likewise.
354 (check_arrival_expand_ecl): Mark eclosure as const.
355 (check_dst_limits_calc_pos_1): Likewise.
356 * posix/regex_internal.h (re_match_context_t): Make dfa a const
357 pointer.
358
359 2005-09-06 Ulrich Drepper <drepper@redhat.com>
360
361 * timezone/africa: Update from tzdata2005m.
362 * timezone/asia: Likewise.
363 * timezone/australasia: Likewise.
364 * timezone/backward: Likewise.
365 * timezone/europe: Likewise.
366 * timezone/northamerica: Likewise.
367 * timezone/southamerica: Likewise.
368 * timezone/zone.tab: Likewise.
369 * timezone/zdump.c: Update from tzcode2005m.
370
371 * posix/regexec.c (merge_state_with_log): Define dfa as const pointer.
372 (transit_state_sb): Likewise.
373 (transit_state_mb): Likewise.
374 (sift_states_iter_mb): Likewise.
375 (check_arrival_add_next_nodes): Likewise.
376 (check_node_accept_bytes): Change first parameter to pointer-to-const.
377 [_LIBC] (re_search_2_stub): Use mempcpy.
378
379 * posix/regex_internal.c (re_string_reconstruct): Avoid calling
380 mbrtowc for very simple UTF-8 case.
381
382 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
383
384 * posix/regex_internal.c (build_wcs_upper_buffer): Fix portability
385 bugs in int versus size_t comparisons.
386
387 2005-09-06 Ulrich Drepper <drepper@redhat.com>
388
389 * posix/regex_internal.c (re_acquire_state): Make DFA pointer arg
390 a pointer-to-const.
391 (re_acquire_state_context): Likewise.
392 * posix/regex_internal.h: Adjust prototypes.
393
394 2005-08-31 Jim Meyering <jim@meyering.net>
395
396 * posix/regcomp.c (search_duplicated_node): Make first pointer arg
397 a pointer-to-const.
398 * posix/regex_internal.c (create_ci_newstate, create_cd_newstate,
399 register_state): Likewise.
400 * posix/regexec.c (search_cur_bkref_entry, check_dst_limits):
401 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
402 (group_nodes_into_DFAstates): Likewise.
403
404 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
405
406 * posix/regexec.c (re_search_internal): Simplify update of
407 rm_so and rm_eo by replacing "if (A == B) A += C - B;"
408 with the equivalent of "if (A == B) A = C;".
409
410 2005-09-06 Ulrich Drepper <drepper@redhat.com>
411
412 * posix/regcomp.c (re_compile_internal): Change third parameter type
413 to size_t.
414 (init_dfa): Likewise. Make sure that arithmetic on pat_len doesn't
415 overflow.
416 * posix/regex_internal.h (struct re_dfa_t): Change type of nodes_alloc
417 and nodes_len to size_t.
418 * posix/regex_internal.c (re_dfa_add_node): Use size_t as type for
419 new_nodes_alloc. Check for overflow.
420
421 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
422
423 * posix/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
424 (optimize_subexps, lower_subexp):
425 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
426 since the signed shift might overflow. Use 1u<<31 instead.
427 * posix/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
428 Likewise.
429 * posix/regexec.c (check_dst_limits_calc_pos_1): Likewise.
430 (check_subexp_matching_top): Likewise.
431 * posix/regcomp.c (optimize_subexps, lower_subexp):
432 Use CHAR_BIT rather than 8, for clarity.
433 * posix/regexec.c (check_dst_limits_calc_pos_1):
434 (check_subexp_matching_top): Likewise.
435 * posix/regcomp.c (init_dfa): Make table_size unsigned, so that we
436 don't have to worry about portability issues when shifting it left.
437 Remove no-longer-needed test for table_size > 0.
438 * posix/regcomp.c (parse_sub_exp): Do not shift more bits than there
439 are in a word, as the resulting behavior is undefined.
440 * posix/regexec.c (check_dst_limits_calc_pos_1): Likewise;
441 in one case, a <= should have been an <, and in another case the
442 whole test was missing.
443 * posix/regex_internal.h (BYTE_BITS): Remove. All uses changed to
444 the standard name CHAR_BIT.
445
446 * posix/regex_internal.h (re_sub_match_top_t): Remove unused member
447 next_last_offset.
448 (struct re_dfa_t): Remove unused member states_alloc.
449 * posix/regcomp.c (init_dfa): Don't initialize unused members.
450
451 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
452
453 * posix/regexec.c (set_regs): Don't alloca with an unbounded size.
454
455 alloca modernization/simplification for regex.
456 * posix/regex.c: Remove portability cruft for alloca. This no longer
457 needs to be at the start of the file, and can be moved into
458 regex_internal.h and simplified.
459 * posix/regex_internal.h: Include <alloca.h>.
460 (__libc_use_alloca) [!defined _LIBC]: New macro.
461 * posix/regexec.c (build_trtable): Remove "#ifdef _LIBC",
462 since the code now works outside glibc.
463
464 2005-09-06 Ulrich Drepper <drepper@redhat.com>
465
466 * include/regex.h: Remove use of _RE_ARGS.
467
468 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
469
470 * posix/regexec.c (find_recover_state): Change "err" to "*err".
471
472 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
473
474 * posix/regcomp.c (regerror): Pointer args are 'restrict',
475 as per POSIX.
476 * posix/regex.h (regerror): Likewise.
477 * manual/pattern.texi (POSIX Regexp Compilation): Likewise.
478 Similarly for regcomp and regexec. Also, first 2 args of regexec
479 and 2nd arg of regerror are const.
480
481 * posix/regex.c: Do not include <sys/types.h>, as POSIX no longer
482 requires this. (The code never needed it.)
483
484 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
485
486 * posix/regexec.c (sift_states_bkref): re_node_set_insert returns
487 int, not reg_errcode_t.
488
489 * posix/regex_internal.c (calc_state_hash): Put 'inline' before type,
490 since some broken compilers warn about it otherwise.
491
492 * posix/regcomp.c (create_initial_state): Remove duplicate decl.
493
494 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
495
496 * posix/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
497 C89 or better. All uses removed.
498
499 2005-09-06 Ulrich Drepper <drepper@redhat.com>
500
501 * posix/regex.c: Prevent using C++ compilers.
502
503 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
504
505 * posix/regcomp.c (duplicate_node): Return new index, not an error
506 code, and let the caller return REG_ESPACE if out of space. This
507 removes an uninitialied-variable warning with GCC 4.0.1, and also
508 avoids taking the address of a local variable. All callers
509 changed.
510
511 2005-09-06 Ulrich Drepper <drepper@redhat.com>
512
513 * include/time.h (__strptime_internal): Rename parameter to avoid
514 bogus compiler warning.
515
516 2005-08-19 Jim Meyering <jim@meyering.net>
517
518 * posix/regexec.c (proceed_next_node): Redo local variables to
519 avoid GCC shadowing warnings.
520
521 2005-09-06 Ulrich Drepper <drepper@redhat.com>
522
523 * posix/regex_internal.c (re_acquire_state): Minor code rearrangement.
524 (re_acquire_state_context): Likewise.
525
526 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
527
528 * posix/regex_internal.c (re_string_realloc_buffers):
529 (re_node_set_insert, re_node_set_insert_last, re_dfa_add_node):
530 Rename local variables to avoid GCC shadowing warnings.
531
532 2005-07-08 Eric Blake <ebb9@byu.net>
533 Paul Eggert <eggert@cs.ucla.edu>
534
535 * posix/regcomp.c (init_dfa): Store __btowc value in wint_t, not
536 wchar_t. Remove now-unnecessary cast.
537 (build_range_exp): Likewise.
538
539 2005-08-31 Bob Wilson <bob.wilson@acm.org>
540
541 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Remove the
542 exponent bias from the increment value for scaling by 2^60.
543
544 2005-09-05 Alexandre Oliva <aoliva@redhat.com>
545
546 * configure.in: Compile source test file with -fPIC for -shared.
547
548 2005-09-04 Ulrich Drepper <drepper@redhat.com>
549
550 * iconv/skeleton.c: Eliminate DEFINE_DIRECTION_OBJECTS macro use,
551 it wasn't used. Remove use of from_object and to_object variable,
552 replace with some constants. Adjust users.
553
554 * sysdeps/i386/bits/string.h: Removed.
555
556 * stdio-common/Makefile (tests): Add tst-put-error.
557 * stdio-common/tst-put-error.c: New file.
558 * libio/fileops.c (_IO_new_file_xsputn): If overflow fails and no more
559 data would have to be written signal error.
560 * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
561
562 * libio/fileops.c (_IO_new_file_overflow): Use NULL not 0.
563
564 2005-09-02 Ulrich Drepper <drepper@redhat.com>
565
566 * elf/dl-load.c (_dl_map_object_from_fd): No need to change
567 protection of memory used for the last segment.
568
569 2005-08-22 Robert Millan <robertmh@gnu.org>
570
571 * sysdeps/mach/hurd/nfs/nfs.h: Move to ...
572 * sysdeps/generic/nfs/nfs.h: ... here.
573
574 2005-09-01 Ulrich Drepper <drepper@redhat.com>
575
576 * libio/stdio.h: Remove __wur from ungetc, sscanf, and vsscanf.
577 Add __wur to feof{,_unlocked}, ferror{,_unlocked},
578 fileno{,_unlocked}, and popen.
579
580 2005-08-30 Ulrich Drepper <drepper@redhat.com>
581
582 * sysdeps/ieee754/flt-32/e_hypotf.c [!__STDC__]: Fix function name.
583
584 2005-08-01 Bob Wilson <bob.wilson@acm.org>
585 Richard Sandiford <richard@codesourcery.com>
586
587 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Add missing
588 exponent bias to the value for 2^126.
589
590 2005-08-30 Jakub Jelinek <jakub@redhat.com>
591 Alan Modra <amodra@bigpond.net.au>
592
593 * elf/dl-addr.c (_dl_addr): Use DL_ADDR_SYM_MATCH macro.
594 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): Define.
595 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h: New file.
596
597 2005-08-23 Ulrich Drepper <drepper@redhat.com>
598
599 * nscd/nscd.c (main): Use error while process isn't running in the
600 background, not dbg_log.
601 * nscd/nscd_conf.c (nscd_parse_file): Likewise.
602 Mark messages with _(). Unify testing for database name.
603
604 * nscd/connection.c (DEFAULT_DATASIZE_PER_BUCKET): Move to nscd.h.
605 (dbs): Initialize max_db_size fields.
606 (nscd_init): When mapping the database, use max_db_size as the
607 mapping size even if it is bigger than the file size.
608 * nscd/mem.c (mempool_alloc): When resizing the file make sure the
609 limit in max_db_size is not exceeded. Don't use mremap, just
610 posix_fallocate is enough (according to Linus). Use posix_fallocate
611 correctly.
612 * nscd/nscd.conf: Add max-db-size parameters.
613 * nscd/nscd.h (struct database_dyn): Add max_db_size field.
614 Define DEFAULT_MAX_DB_SIZE and DEFAULT_DATASIZE_PER_BUCKET.
615 Temporarily define TEMP_FAILURE_RETRY_VAL here.
616 * nscd/nscd_conf.c (nscd_parse_file): Parse max-db-size parameter
617 and add sanity checks for it.
618
619 * nscd/aicache.c (addhstaiX): Use send with MSG_NOSIGNAL not write to
620 send reply.
621 * nscd/connection.c (writeall): Likewise.
622 (handle_request): Likewise.
623 * nscd/grpcache.c (cache_addgr): Likewise.
624 * nscd/hstcache.c (cache_addhst): Likewise.
625 * nscd/initgrcache.c (addinitgroupsX): Likewise.
626 * nscd/nscd.c (parse_opt): Likewise.
627 * nscd/nscd_stat.c (send_stats): Likewise.
628 (receive_print_stats): Likewise.
629 * nscd/pwdcache.c (cache_addpw): Likewise.
630
631 * sysdeps/unix/sysv/linux/Versions: Export inotify_* syscalls.
632
633 2005-08-22 Jakub Jelinek <jakub@redhat.com>
634
635 * stdlib/bits/stdlib.h (mbstowcs): Divide __bos (__dst) by
636 sizeof (wchar_t) rather than multiplying __len by sizeof (wchar_t).
637 Pass __bos (__dst) / sizeof (wchar_t) to the *_chk routine.
638 * wcsmbs/bits/wchar2.h (mbsrtowcs, mbsnrtowcs): Likewise.
639 * debug/mbsnrtowcs_chk.c (__mbsnrtowcs_chk): Don't multiply
640 len by sizeof (wchar_t).
641 * debug/mbsrtowcs_chk.c (__mbsrtowcs_chk): Likewise.
642 * debug/mbstowcs_chk.c (__mbstowcs_chk): Likewise.
643 Fix type of SRC argument. Pass &SRC rather than SRC to
644 __mbsrtowcs.
645 * debug/wcstombs_chk.c (__wcstombs_chk): Pass &SRC rather than SRC
646 to __wcsrtombs.
647 * debug/tst-chk1.c: Include assert.h.
648 (do_test): Change enough array from VLA into a fixed size array.
649 Assert that MB_CUR_MAX is <= sizeof (enough). Use FAIL () macro
650 instead of print error details. Add several new tests.
651 Kill some unused variable warnings.
652
653 2005-08-21 Ulrich Drepper <drepper@redhat.com>
654
655 * resolv/res_send.c (Aerror): Fix printing IP address.
656
657 * resolv/res_send.c (send_vc): Pass correct sockaddr size to connect.
658
659 2005-08-19 H.J. Lu <hongjiu.lu@intel.com>
660
661 * sysdeps/ia64/fpu/libm_error.c (__libm_error_support): Don't abort.
662
663 2005-08-17 Robert Love <rml@novell.com>
664
665 * sysdeps/unix/sysv/linux/sys/inotify.h: Add IN_MOVE_SELF event.
666
667 2005-08-19 Bruno Haible <bruno@clisp.org>
668
669 * intl/localealias.c (read_alias_file): In case of failure, close the
670 file descriptor and sort the array before returning.
671
672 2005-08-19 Ulrich Drepper <drepper@redhat.com>
673
674 * malloc/Makefile: Link libmemusage.so with ld.so.
675 * malloc/memusage.c: Use atomic operations for all counter and size
676 computations. Handle thread stacks.
677 * sysdeps/generic/memusage.h: Define memusage_cntr_t and
678 memusage_size_t.
679 * sysdeps/i386/i686/memusage.h: New file.
680 * include/atomic.h: Define atomic_max and atomic_min.
681
682 * debug/tst-chk1.c: Add tests for mbstowcs and wcstombs.
683
684 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
685
686 [BZ #1207]
687 * posix/regex.h: Remove spurious space-before-tab. From gnulib.
688
689 2005-08-16 Ulrich Drepper <drepper@redhat.com>
690
691 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
692 sys/inotify.h.
693 * sysdeps/unix/sysv/linux/sys/inotify.h: New file.
694 * sysdeps/unix/sysv/linux/syscalls.list: Add inotify syscalls.
695
696 * nscd/cache.c (prune_cache): Add more debug output. Only for
697 debug level 3 and higher and very verbose.
698
699 * nscd/cache.c (prune_cache): Use stat64 not stat.
700 * nscd/connections.c (nscd_init): Likewise.
701
702 2005-08-10 Sergio Gelato <Sergio.Gelato@astro.su.se>
703
704 [BZ #1188]
705 * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Change assert check
706 from (len > 0) to (len >= 0).
707
708 2005-08-16 Ulrich Drepper <drepper@redhat.com>
709
710 * nis/nis_xdr.c (_xdr_nis_result): Fix type of res variable.
711 Reported by Thomas Schwinge.
712
713 2005-08-15 Jakub Jelinek <jakub@redhat.com>
714
715 * nis/nis_subr.c (nis_leaf_of_r): Handle buflen == 0 correctly.
716
717 2005-08-16 Ulrich Drepper <drepper@redhat.com>
718
719 * nss/getent.c (more_help): Use open_memstream instead of handling
720 memory allocation ourselves.
721
722 2005-08-16 Jay Fenlason <fenlason@redhat.com>
723
724 * nss/getent.c (parse_options): change the -s option to support
725 {database}:{search} to override /etc/resolv.conf for only the
726 specified database.
727
728 2005-08-08 Ulrich Drepper <drepper@redhat.com>
729
730 * nscd/connections.c (main_loop_epoll): Pass NULL as event
731 argument for epoll_ctl(EPOLL_CTL_DEL) calls.
732
733 * nscd/nscd_stat.c (receive_print_stats): Really print values of
734 thread number, paranoia, and restart interval the server is using.
735
736 * argp/argp-help.c: Use _IO_vasprintf instead of vasprintf.
737 * include/stdio.h: Add libc_hidden_proto for __vfprintf_chk.
738 * debug/vfprintf_chk.c: Add libc_hidden_def.
739
740 2005-08-08 Roland McGrath <roland@redhat.com>
741
742 * argp/argp-help.c (__argp_error): __asprintf -> vasprintf.
743 (__argp_failure): Likewise.
744
745 2005-08-08 Ulrich Drepper <drepper@redhat.com>
746
747 * nscd/cache.c (cache_add): Commit hash table and header to disk.
748
749 * nscd/mem.c (mempool_alloc): Use posix_fallocate instead of ftruncate.
750 * nscd/connections.c (nscd_init): Likewise.
751
752 2005-08-08 Jakub Jelinek <jakub@redhat.com>
753
754 * stdio-common/fxprintf.c: Include libioP.h.
755
756 * posix/bits/unistd.h (confstr, getgroups, ttyname_r, gethostname,
757 getdomainname): Add __NTH.
758 * stdlib/bits/stdlib.h (ptsname_r, wctomb, mbstowcs, wcstombs):
759 Likewise.
760 (realpath): Likewise. Use __const instead of const. Add __restrict
761 keywords.
762 * socket/bits/socket2.h (recvfrom): Add __restrict keyword to __buf.
763 * wcsmbs/bits/wchar2.h (wmemcpy, wmemmove, wmempcpy, wmemset,
764 wcscpy, wcpcpy, wcsncpy, wcpncpy, wcscat, wcsncat, vswprintf, wcrtomb,
765 mbsrtowcs, wcsrtombs, mbsnrtowcs, wcsnrtombs): Add __NTH.
766 * string/bits/string3.h (__memset_ichk): Likewise.
767 (__memcpy_ichk, __memmove_ichk, __mempcpy_ichk, __strcpy_ichk,
768 __stpcpy_ichk, __strncpy_ichk, stpncpy, __strcat_ichk,
769 __strncat_ichk): Likewise. Use __const instead of const.
770 (__stpncpy_chk): Use __const instead of const.
771 (__stpncpy_alias): Use __REDIRECT_NTH instead of __REDIRECT.
772
773 2005-08-08 Ulrich Drepper <drepper@redhat.com>
774 Jakub Jelinek <jakub@redhat.com>
775
776 * nscd/mem.c (BLOCK_ALIGN_LOG, BLOCK_ALIGN, BLOCK_ALIGN_M1): Move
777 definitions to...
778 * nscd/nscd.h (BLOCK_ALIGN_LOG, BLOCK_ALIGN, BLOCK_ALIGN_M1): ...here.
779 * nscd/connections.c (usekey): New enum.
780 (check_use, verify_persistent_db): New functions.
781 (nscd_init): If persistent database is corrupted, unlink it and
782 recreate rather than falling back to non-persistent database.
783 Call verify_persistent_db. Avoid overflows in total computation.
784
785 2005-08-08 Ulrich Drepper <drepper@redhat.com>
786
787 * iconvdata/utf-16.c (PREPARE_LOOP): Minor cleanups to make code
788 better readable. Avoid passing var to loop function, it's not
789 necessary at all.
790
791 2005-08-07 Ulrich Drepper <drepper@redhat.com>
792
793 * elf/elf.h (DT_ALPHA_PLTRO): Use symbolic name in DT_ALPHA_PLTRO
794 definition.
795
796 2005-08-05 Ulrich Drepper <drepper@redhat.com>
797
798 * timezone/checktab.awk: Update from tzcode2005k.
799 * timezone/private.h: Likewise.
800 * timezone/scheck.c: Likewise.
801 * timezone/tzselect.ksh: Likewise.
802 * timezone/zdump.c: Likewise.
803 * timezone/zic.c: Likewise.
804 * timezone/africa: Update from tzdata2005k.
805 * timezone/antarctica: Likewise.
806 * timezone/asia: Likewise.
807 * timezone/australasia: Likewise.
808 * timezone/europe: Likewise.
809 * timezone/iso3166.tab: Likewise.
810 * timezone/leapseconds: Likewise.
811 * timezone/northamerica: Likewise.
812 * timezone/solar87: Likewise.
813 * timezone/solar88: Likewise.
814 * timezone/solar89: Likewise.
815 * timezone/southamerica: Likewise.
816 * timezone/zone.tab: Likewise.
817
818 2005-08-05 Roland McGrath <roland@redhat.com>
819
820 * mach/shortcut.awk: Ignore `weak_alias' lines.
821 Reported by Alfred M. Szmidt <ams@gnu.org>.
822
823 * sysdeps/mach/hurd/mig-reply.c (reply_port): Don't use ?: as lvalue.
824 Reported by Alfred M. Szmidt <ams@gnu.org>.
825
826 2005-08-03 Dwayne Grant McConnell <dgm69@us.ibm.com>
827
828 * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s):
829 Use +=, not =, to append. Remove duplicate flags.
830 * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
831 Likewise. Fix comments.
832
833 2005-08-01 Ulrich Drepper <drepper@redhat.com>
834
835 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Restart system
836 call if it returned EINTR.
837
838 2005-07-31 Ulrich Drepper <drepper@redhat.com>
839
840 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Move
841 helper variable into .data.rel.ro. Simplify the code. Extend
842 comment to explain prelinking.
843
844 2005-07-31 Andreas Jaeger <aj@suse.de>
845
846 * include/bits/syslog.h: New file.
847
848 2005-07-30 Ulrich Drepper <drepper@redhat.com>
849
850 * elf/dl-load.c [__WORDSIZE==64] (FILEBUF_SIZE): Adjust the value
851 up. We have more program header entries now and the note section
852 was normally not loaded.
853
854 * nis/nis_subr.c: Some minor code cleanups.
855
856 2005-07-29 Ulrich Drepper <drepper@redhat.com>
857
858 * misc/bits/syslog.h: New file.
859 * misc/sys/syslog.h: Include <bits/syslog.h> for fortification.
860 * misc/Makefile (headers): Add bits/syslog.h.
861 * include/sys/syslog.h: Add __vsyslog_chk prototype and hidden_proto.
862 * sysdeps/generic/syslog.c: Change vsyslog function to __vsyslog_chk.
863 Call __vfprintf_chk if necessary. Make vsyslog a wrapper. Add
864 __syslog_chk.
865 * misc/Versions: Export __syslog_chk and __vsyslog_chk.
866
867 2005-07-28 Thomas Schwinge <schwinge@nic-nac-project.de>
868
869 [BZ #1137]
870 * misc/error.c [_LIBC]: Include <stdbool.h> and <stdint.h>.
871
872 2005-07-28 Ulrich Drepper <drepper@redhat.com>
873
874 * nis/nis_xdr.c: Help gcc to avoid generating unnecessary wrapper
875 functions.
876
877 2005-07-28 Jakub Jelinek <jakub@redhat.com>
878
879 * stdio-common/fxprintf.c (__fxprintf): Add INTUSE to _IO_vfprintf
880 call.
881 * gmon/gmon.c (write_gmon): Use __snprintf rather than snprintf.
882
883 2005-07-28 Ulrich Drepper <drepper@redhat.com>
884
885 * nis/nis_file.c: Rewrite the two pairs of functions into wrappers
886 around a pair of new, generalized functions. 22% size reduction.
887
888 2005-07-27 Ulrich Drepper <drepper@redhat.com>
889
890 * nis/nis_xdr.c: Remove unnecessary cast which might hide bugs.
891 Rearrange code. This reduces the code size 10%.
892
893 2005-07-26 Jakub Jelinek <jakub@redhat.com>
894
895 * misc/error.c (error_tail): Fix a comment typo.
896
897 2005-07-25 Ulrich Drepper <drepper@redhat.com>
898
899 * po/zh_TW.po: Update from translation team.
900
901 * debug/mbstowcs_chk.c: New file.
902 * debug/wcstombs_chk.c: New file.
903 * debug/Makefile (routines): Add mbstowcs_chk and wcstombs_chk.
904 * debug/Versions: Add __mbstowcs_chk and __wcstombs_chk.
905 * stdlib/bits/stdlib.h: Add definitions for mbstowcs and wcstombs.
906
907 * wcsmbs/bits/wchar2.h (mbsrtowcs): Pretty printing.
908
909 2005-07-24 Ulrich Drepper <drepper@redhat.com>
910
911 * string/test-memset.c (test_main): Use negative byte value in
912 test.
913
914 * string/test-memset.c (do_one_test): Compare effect of call, not
915 only return value.
916 Add a few casts to avoid warnings.
917
918 2005-07-24 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
919
920 * sysdeps/sh/memset.S (memset): Correct 2nd argument handling.
921
922 2005-07-24 Ulrich Drepper <drepper@redhat.com>
923
924 [BZ #1125]
925 * posix/Makefile (tests): Add tst-execvp4.
926 * posix/tst-execvp4.c: New file.
927
928 2005-07-24 Jakub Jelinek <jakub@redhat.com>
929
930 [BZ #1125]
931 * posix/execvp.c (execvp): Change path_malloc to
932 char *, free that pointer on failure.
933
934 2005-07-24 Ulrich Drepper <drepper@redhat.com>
935
936 * wcsmbs/bits/wchar2.h: Use __FILE not FILE.
937 * wcsmbs/Makefile: Add rules to build and run tst-wchar-h.
938 * wcsmbs/tst-wchar-h.c: New file.
939
940 2005-07-22 Ulrich Drepper <drepper@redhat.com>
941
942 * stdio-common/fxprintf.c (__fxprintf): Define variable more local.
943
944 2005-07-22 Jakub Jelinek <jakub@redhat.com>
945
946 * wcsmbs/bits/wchar2.h (__vfwprintf_chk, __vwprintf_chk): Use
947 __gnuc_va_list rather than _G_va_list.
948
949 2005-07-22 Roland McGrath <roland@redhat.com>
950
951 [BZ #869]
952 * Makerules ($(objpfx)stubs): Fix last change.
953
954 2005-07-21 Roland McGrath <roland@redhat.com>
955
956 * nscd/Makefile ($(objpfx)nscd): Pass $(nscd-cflags) to $(LINK.o).
957
958 * stdlib/Makefile (headers): Move bits/wchar.h to ...
959 * wcsmbs/Makefile (headers): ... here. Add bits/wchar2.h too.
960
961 2005-07-21 Jakub Jelinek <jakub@redhat.com>
962
963 * wcsmbs/bits/wchar2.h (swprintf): Remove format argument.
964 * debug/tst-chk1.c (do_test): Add test for swprintf with format
965 being the last argument.
966
967 2005-07-21 Thorsten Kukuk <kukuk@suse.de>
968
969 * debug/getgroups_chk.c (__getgroups_chk): Fix return value.
970
971 * stdio-common/fxprintf.c: Include string.h.
972
973 2005-07-20 Ulrich Drepper <drepper@redhat.com>
974
975 [BZ #1138]
976 * sysdeps/x86_64/fpu/libm-test-ulps: Adjust expected atan2f results.
977 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
978 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
979
980 2005-07-20 Bob Wilson <bob.wilson@acm.org>
981 Darin Petkov <darin@tensilica.com>
982
983 [BZ #1138]
984 * sysdeps/ieee754/flt-32/e_atan2f.c (pi_lo): Correct exponent value.
985
986 2005-07-20 Jakub Jelinek <jakub@redhat.com>
987
988 * include/stdio.h (__fxprintf): Remove wfmt argument.
989 * stdio-common/fxprintf.c: Include assert.h, ctype.h and wchar.h.
990 (__fxprintf): Remove wfmt argument, create wfmt format string on
991 the fly from fmt.
992 * argp/argp-fmtstream.c: Adjust all __fxprintf callers.
993 * argp/argp-help.c: Likewise.
994 * assert/assert-perr.c: Likewise.
995 * assert/assert.c: Likewise.
996 * gmon/gmon.c: Likewise.
997 * inet/rcmd.c: Likewise.
998 * malloc/obstack.c: Likewise.
999 * misc/error.c: Likewise.
1000 * misc/getpass.c: Likewise.
1001 * posix/getopt.c: Likewise.
1002 * resolv/res_hconf.c: Likewise.
1003 * stdio-common/perror.c: Likewise.
1004 * stdio-common/psignal.c: Likewise.
1005 * stdlib/fmtmsg.c: Likewise.
1006 * sunrpc/auth_unix.c: Likewise.
1007 * sunrpc/clnt_perr.c: Likewise.
1008 * sunrpc/clnt_tcp.c: Likewise.
1009 * sunrpc/clnt_udp.c: Likewise.
1010 * sunrpc/clnt_unix.c: Likewise.
1011 * sunrpc/svc_simple.c: Likewise.
1012 * sunrpc/svc_tcp.c: Likewise.
1013 * sunrpc/svc_udp.c: Likewise.
1014 * sunrpc/svc_unix.c: Likewise.
1015 * sunrpc/xdr.c: Likewise.
1016 * sunrpc/xdr_array.c: Likewise.
1017 * sunrpc/xdr_rec.c: Likewise.
1018 * sunrpc/xdr_ref.c: Likewise.
1019 * sysdeps/generic/wordexp.c: Likewise.
1020
1021 2005-07-20 Ulrich Drepper <drepper@redhat.com>
1022
1023 * wcsmbs/bits/wchar2.h: Add definitions for wcrtomb, mbsrtowcs,
1024 wcsrtombs, mbsnrtowcs, and wcsnrtombs.
1025 * debug/Makefile (routines): Add wcrtomb_chk, mbsrtowcs_chk,
1026 wcsrtombs_chk, mbsnrtowcs_chk, and wcsnrtombs_chk.
1027 * debug/Versions: Add __wcrtomb_chk, __mbsrtowcs_chk,
1028 __wcsrtombs_chk, __mbsnrtowcs_chk, and __wcsnrtombs_chk.
1029 * debug/tst-chk1.c: Add tests for new functions.
1030 * debug/mbsnrtowcs_chk.c: New file.
1031 * debug/mbsrtowcs_chk.c: New file.
1032 * debug/wcrtomb_chk.c: New file.
1033 * debug/wcsnrtombs_chk.c: New file.
1034 * debug/wcsrtombs_chk.c: New file.
1035
1036 2005-07-19 Ulrich Drepper <drepper@redhat.com>
1037
1038 * stdio-common/Makefile (aux): Add fxprintf.
1039 * stdio-common/fxprintf.c: New file.
1040 * include/stdio.h: Add declaration for __fxprintf.
1041 * argp/argp-fmtstream.c: Use __fxprintf instead of inline stream
1042 orientation test and two separate function calls.
1043 * argp/argp-help.c: Likewise.
1044 * assert/assert-perr.c: Likewise.
1045 * assert/assert.c: Likewise.
1046 * gmon/gmon.c: Likewise.
1047 * inet/rcmd.c: Likewise.
1048 * malloc/obstack.c: Likewise.
1049 * misc/error.c: Likewise.
1050 * misc/getpass.c: Likewise.
1051 * posix/getopt.c: Likewise.
1052 * resolv/res_hconf.c: Likewise.
1053 * stdio-common/perror.c: Likewise.
1054 * stdio-common/psignal.c: Likewise.
1055 * stdlib/fmtmsg.c: Likewise.
1056 * sunrpc/auth_unix.c: Likewise.
1057 * sunrpc/clnt_perr.c: Likewise.
1058 * sunrpc/clnt_tcp.c: Likewise.
1059 * sunrpc/clnt_udp.c: Likewise.
1060 * sunrpc/clnt_unix.c: Likewise.
1061 * sunrpc/svc_simple.c: Likewise.
1062 * sunrpc/svc_tcp.c: Likewise.
1063 * sunrpc/svc_udp.c: Likewise.
1064 * sunrpc/svc_unix.c: Likewise.
1065 * sunrpc/xdr.c: Likewise.
1066 * sunrpc/xdr_array.c: Likewise.
1067 * sunrpc/xdr_rec.c: Likewise.
1068 * sunrpc/xdr_ref.c: Likewise.
1069 * sysdeps/generic/wordexp.c: Likewise.
1070
1071 [BZ #1137]
1072 * misc/Makefile: Add rules to build and run tst-error1.
1073 * misc/tst-error1.c: New file.
1074 * misc/error.c: Fix memory leak and possibly endless loop.
1075
1076 * configure.in: Check for -fstack-protector gcc option.
1077 * config.make.in (have-ssp): Add template.
1078 * nscd/Makefile (nscd-cflags): Add -fstack-protector if supported.
1079
1080 * nscd/nscd.c (main): Don't ignore result of chdir call.
1081
1082 2005-07-18 Roland McGrath <roland@redhat.com>
1083
1084 [BZ #869]
1085 * Makerules ($(objpfx)stubs): Do cd into $(objdir) to reduce size of
1086 objdump command line.
1087
1088 2005-07-18 Ulrich Drepper <drepper@redhat.com>
1089
1090 * nscd/Makefile (nscd-cflags): Add _FORTIFY_SOURCE.
1091
1092 * nscd/connections.c: Fix a few wur warnings.
1093
1094 [BZ #1113]
1095 * nscd/grpcache.c (cache_addgr): Use correct maximum for group ID
1096 length. Patch by Ivan Gyurdiev <ivg2@cornell.edu>.
1097
1098 * debug/confstr_chk.c: New file.
1099 * debug/getdomainname_chk.c: New file.
1100 * debug/getgroups_chk.c: New file.
1101 * debug/gethostname_chk.c: New file.
1102 * debug/getlogin_r_chk.c: New file.
1103 * debug/ttyname_r_chk.c: New file.
1104 * posix/bits/unistd.h: Add definitions for new debug versions.
1105 * debug/tst-chk1.c: Add tests for new functions.
1106 * debug/Versions: Export new functions.
1107 * debug/Makefile (routines): Add new files.
1108
1109 * stdlib/bits/stdlib.h: Fix typo.
1110
1111 2005-07-13 Thorsten Kukuk <kukuk@suse.de>
1112
1113 * manual/Makefile (libc/index.html): Depend on dir-add.texi.
1114
1115 2005-07-15 Ulrich Drepper <drepper@redhat.com>
1116
1117 * stdlib/bits/stdlib.h: Use __REDIRECT_NTH instead of __REDIRECT
1118 where necessary.
1119 * wcsmbs/bits/wchar2.h: Likewise.
1120
1121 2005-07-15 Andreas Jaeger <aj@suse.de>
1122
1123 * debug/Makefile (tst-lfschk3-ENV): New, set locale.
1124 (tst-lfschk2-ENV): New.
1125 (tst-lfschk1-ENV): New.
1126 (tst-chk3-ENV): New.
1127 (tst-chk2-ENV): New.
1128 (tst-chk1-ENV): New.
1129
1130 [BZ #1079]
1131 * include/stdlib.h: Remove malloc attribute from __posix_memalign.
1132 * stdlib/stdlib.h: Likewise.
1133
1134 2005-07-15 Ulrich Drepper <drepper@redhat.com>
1135
1136 * wcsmbs/bits/wchar2.h: New file.
1137 * include/bits/wchar2.h: New file.
1138 * wcsmbs/wchar.h: Include <bits/wchar2.h> if fortification is
1139 requested.
1140 * wcsmbs/wcsncpy.c: Add __wcsncpy alias.
1141 * string/bits/string3.h: Add fortified stpncpy definitions.
1142 * sysdeps/generic/stpncpy_chk.c: New file.
1143 * libio/vswprintf.c: Move _IO_wstrnfile definition to strfile.h.
1144 Export _IO_wstrn_jumps.
1145 * libio/strfile.h: Define _IO_wstrnfile and declare _IO_wstrn_jumps.
1146 * include/wchar.h: Declare __wcsncpy and __vswprintf_chk.
1147 * debug/fgetws_chk.c: New file.
1148 * debug/fgetws_u_chk.c: New file.
1149 * debug/fwprintf_chk.c: New file.
1150 * debug/swprintf_chk.c: New file.
1151 * debug/vfwprintf_chk.c: New file.
1152 * debug/vswprintf_chk.c: New file.
1153 * debug/vwprintf_chk.c: New file.
1154 * debug/wcpcpy_chk.c: New file.
1155 * debug/wcpncpy_chk.c: New file.
1156 * debug/wcscat_chk.c: New file.
1157 * debug/wcscpy_chk.c: New file.
1158 * debug/wcsncat_chk.c: New file.
1159 * debug/wcsncpy_chk.c: New file.
1160 * debug/wmemcpy_chk.c: New file.
1161 * debug/wmemmove_chk.c: New file.
1162 * debug/wmempcpy_chk.c: New file.
1163 * debug/wmemset_chk.c: New file.
1164 * debug/wprintf_chk.c: New file.
1165 * debug/tst-chk1.c: Add tests for new functions.
1166 * debug/Versions: Export new functions.
1167 * debug/Makefile (routines): Add new functions.
1168
1169 2005-07-13 Ulrich Drepper <drepper@redhat.com>
1170
1171 * nscd/nscd_helper.c: Add a few __builtin_expect.
1172
1173 [BZ #1080]
1174 * nscd/connections.c (send_ro_fd): Make sure BUF is aligned correctly.
1175 * nscd/nscd_helper.c (wait_on_socket): New function.
1176 (get_mapping): Use wait_on_socket instead of poll. The former handles
1177 EINTR of poll correctly.
1178 (__nscd_open_socket): Likewise.
1179 (get_mapping): Make sure BUF is aligned correctly.
1180 (get_mapping): Use munmap on correct pointer.
1181
1182 2005-07-12 Ulrich Drepper <drepper@redhat.com>
1183
1184 * include/libc-symbols.h: Define macros for librt hidden symbols.
1185 * include/time.h: Add librt_hidden_proto definition for clock_gettime.
1186 * sysdeps/generic/clock_gettime.c: Add librt_hidden_def.
1187 * sysdeps/unix/clock_gettime.c: Likewise.
1188
1189 * stdlib/bits/stdlib.h: New file.
1190 * stdlib/stdlib.h: Include <bits/stdlib.h> if fortification is
1191 requested.
1192 * Makefile (headers): Add bits/stdlib.h.
1193 * include/bits/stdlib.h: New file.
1194 * debug/Depend: New file.
1195 * debug/ptsname_r_chk.c: New file.
1196 * debug/realpath_chk.c: New file.
1197 * debug/wctomb_chk.c: New file.
1198 * debug/Makefile (routines): Add ptsname_r_chk, realpath_chk, and
1199 wctomb_chk.
1200 * debug/Versions: Export __ptsname_r_chk, __realpath_chk, and
1201 __wctomb_chk.
1202 * debug/tst-chk1.c: Add tests for __ptsname_r_chk, __realpath_chk, and
1203 __wctomb_chk.
1204
1205 2005-07-12 Jakub Jelinek <jakub@redhat.com>
1206
1207 [BZ #1106]
1208 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Include not-cancel.h.
1209 (has_cpuclock): Use open_not_cancel_2 instead of open, read_not_cancel
1210 instead of read and close_not_cancel_no_status instead of close.
1211
1212 [BZ #1106]
1213 * sysdeps/s390/s390-64/bcopy.S (__bcopy): Use
1214 HIDDEN_BUILTIN_JUMPTARGET to jump to memmove.
1215
1216 2005-06-27 Carlos O'Donell <carlos@systemhalted.org>
1217
1218 * posix/regcomp.c (re_compile_internal): Call __libc_lock_init
1219 after init_dfa.
1220
1221 2005-07-08 Ulrich Drepper <drepper@redhat.com>
1222
1223 * sysdeps/x86_64/fpu/s_sincosl.S: Use retq not ret. Remove
1224 alignment.
1225 * sysdeps/x86_64/fpu/s_sincos.S: New file.
1226
1227 * include/fenv.h: Add libm_hidden_proto for fesetround and
1228 feholdexcept.
1229 * sysdeps/alpha/fpu/feholdexcpt.c: Add libm_hidden_def.
1230 * sysdeps/alpha/fpu/fesetround.c: Likewise.
1231 * sysdeps/generic/feholdexcpt.c: Likewise.
1232 * sysdeps/generic/fesetround.c: Likewise.
1233 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1234 * sysdeps/i386/fpu/fesetround.c: Likewise.
1235 * sysdeps/ia64/fpu/feholdexcpt.c: Likewise.
1236 * sysdeps/ia64/fpu/fesetround.c: Likewise.
1237 * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
1238 * sysdeps/powerpc/fpu/fesetround.c: Likewise.
1239 * sysdeps/s390/fpu/feholdexcpt.c: Likewise.
1240 * sysdeps/s390/fpu/fesetround.c: Likewise.
1241 * sysdeps/sh/sh4/fpu/feholdexcpt.c: Likewise.
1242 * sysdeps/sh/sh4/fpu/fesetround.c: Likewise.
1243 * sysdeps/sparc/fpu/feholdexcpt.c: Likewise.
1244 * sysdeps/sparc/fpu/fesetround.c: Likewise.
1245 * sysdeps/x86_64/fpu/feholdexcpt.c: Likewise.
1246 * sysdeps/x86_64/fpu/fesetround.c: Likewise.
1247 * sysdeps/generic/s_significand.c (__significand): Use __ilogb not
1248 ilogb.
1249 * sysdeps/generic/s_significandf.c (__significandf): Use __ilogbf
1250 not ilogbf.
1251 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use __sin and
1252 __cos, not sin and cos.
1253
1254 2005-07-07 Ulrich Drepper <drepper@redhat.com>
1255
1256 * resolv/res_send.c (send_dg): Recognize referral results and
1257 treat them as server errors.
1258 Based on a patch by Jason Vas Dias <jvdias@redhat.com>.
1259
1260 2005-07-08 Carlos O'Donell <carlos@systemhalted.org>
1261
1262 * sysdeps/hppa/setjmp.S (__sigsetjmp): Use %r1 not %r19.
1263
1264 * sysdeps/hppa/add_n.s (__mpn_add_n): Use sr0 or r0, not 0.
1265 * sysdeps/hppa/lshift.s (__mpn_lshift): Likewise.
1266 * sysdeps/hppa/rshift.s (__mpn_rshift): Likewise.
1267 * sysdeps/hppa/sub_n.s (__mpn_sub_n): Likewise.
1268 * sysdeps/hppa/udiv_qrnnd.s (__udiv_qrnnd): Likewise.
1269 * sysdeps/hppa/hppa1.1/udiv_qrnnd.s (__udiv_qrnnd): Likewise.
1270
1271 2005-07-07 Ulrich Drepper <drepper@redhat.com>
1272
1273 * sysdeps/generic/s_ctanh.c (__ctanh): Handle case of zero den better.
1274 * sysdeps/generic/s_ctanhf.c (__ctanhf): Likewise.
1275 * sysdeps/generic/s_ctanhl.c (__ctanhl): Likewise.
1276 * sysdeps/generic/s_ctan.c (__ctan): Likewise.
1277 * sysdeps/generic/s_ctanf.c (__ctanf): Likewise.
1278 * sysdeps/generic/s_ctanl.c (__ctanl): Likewise.
1279
1280 2005-04-13 H.J. Lu <hongjiu.lu@intel.com>
1281
1282 [BZ #974]
1283 * csu/elf-init.c (__preinit_array_start): Take int, char **, char **.
1284 (__preinit_array_end): Likewise.
1285 (__init_array_start): Likewise.
1286 (__init_array_end): Likewise.
1287 (__libc_csu_init): Take int argc, char **argv, char **envp.
1288 Call preinit_array and init_array with argc, argv, envp.
1289 * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Remove
1290 INIT_MAIN_ARGS.
1291 * sysdeps/powerpc/elf/libc-start.c (INIT_MAIN_ARGS): Removed.
1292 * elf/Makefile (distribute): Add tst-array5.c, tst-array5-static.c,
1293 tst-array5dep.c, and tst-array5.exp.
1294 (tests): Add tst-array5.
1295 (tests-static): Add tst-array5-static.
1296 ($(objpfx)tst-array5): New target.
1297 ($(objpfx)tst-array5.out): Likewise.
1298 ($(objpfx)tst-array5-static.out): Likewise.
1299 * elf/tst-array5-static.c: New file.
1300 * elf/tst-array5-static.exp: Likewise.
1301 * elf/tst-array5.c: Likewise.
1302 * elf/tst-array5.exp: Likewise.
1303 * elf/tst-array5dep.c: Likewise.
1304
1305 2005-07-07 Ulrich Drepper <drepper@redhat.com>
1306
1307 * sysdeps/unix/sysv/linux/bits/sched.h: Adjust clone prototype.
1308
1309 2005-07-05 Jakub Jelinek <jakub@redhat.com>
1310
1311 * elf/stackguard-macros.h (STACK_CHK_GUARD): Fix s390/s390x definition.
1312 Reported by Ulrich Weigand <uweigand@de.ibm.com>.
1313
1314 * elf/stackguard-macros.h (STACK_CHK_GUARD): Add ia64 definition.
1315
1316 2005-07-06 Ulrich Drepper <drepper@redhat.com>
1317
1318 * elf/dl-error.c (_dl_signal_error): When testing for executable
1319 being relocated, take into account that nothing might even be loaded.
1320
1321 * elf/dl-reloc.c [PROF] (_dl_relocate_object): Define
1322 consider_profiling always to zero. Don't count of compiler to
1323 remove unreached if block.
1324 * sysdeps/x86_64/dl-trampoline.S [PROF] (_dl_runtime_profile):
1325 Don't compile.
1326 * sysdeps/i386/dl-trampoline.S [PROF] (_dl_runtime_profile): Likewise.
1327 * sysdeps/ia64/dl-trampoline.S [PROF] (_dl_runtime_profile): Likewise.
1328 * sysdeps/s390/s390-64/dl-trampoline.S [PROF] (_dl_runtime_profile):
1329 Likewise.
1330 * sysdeps/s390/s390-32/dl-trampoline.S [PROF] (_dl_runtime_profile):
1331 Likewise.
1332 * sysdeps/powerpc/powerpc64/dl-trampoline.S [PROF]
1333 (_dl_profile_resolve): Likewise.
1334 * sysdeps/powerpc/powerpc32/dl-trampoline.S [PROF]
1335 (_dl_profile_resolve): Likewise.
1336 * gmon/Makefile: Add rules to build and run tst-profile-static.
1337 * gmon/tst-profile-static.c: New file.
1338 * Makeconfig (+link-static): Allow passing program-specific flags.
1339
1340 2005-07-05 Thorsten Kukuk <kukuk@suse.de>
1341
1342 [BZ #1111]
1343 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Check if NSS
1344 module provides getgrgid_r.
1345 (getgrnam_plusgroup): Preserve original return value.
1346 * nis/nss_compat/compat-pwd.c (getpwnam_plususer): Preserve
1347 original return value.
1348 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Likewise.
1349
1350 2005-07-05 Ulrich Drepper <drepper@redhat.com>
1351
1352 [BZ #1101]
1353 * posix/regex_internal.c (build_wcs_buffer): Use MB_LEN_MAX not
1354 MB_CUR_MAX.
1355 (build_wcs_upper_buffer): Likewise.
1356
1357 * csu/elf-init.c (__libc_csu_fini): Pretty printing.
1358
1359 2005-07-02 Roland McGrath <roland@redhat.com>
1360
1361 * NEWS: Note LinuxThreads removal.
1362 * manual/install.texi (Installation): Don't mention linuxthreads.
1363 (Configuring and compiling): Don't use linuxthreads as example.
1364
1365 * sysdeps/unix/sysv/linux/configure.in: Check for nptl add-on only,
1366 not linuxthreads.
1367 * sysdeps/unix/sysv/linux/configure: Regenerated.
1368 * resolv/Depend: Add nptl.
1369 * rt/Depend: Likewise.
1370
1371 * linuxthreads, linuxthreads_db: Directories removed (preserved in
1372 ports repository).
1373
1374 2005-06-27 Jakub Jelinek <jj@ultra.linux.cz>
1375
1376 [BZ #1037]
1377 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: -mv8 is deprecated,
1378 use -mcpu=v8.
1379
1380 2005-06-16 Jakub Jelinek <jakub@redhat.com>
1381
1382 [BZ #1016]
1383 * sysdeps/ia64/strlen.S (strlen): Change l2 into a local label.
1384
1385 2005-06-23 Thorsten Kukuk <kukuk@suse.de>
1386
1387 [BZ #1109]
1388 * nscd/nscd_stat.c (receive_print_stats): Replace YESSTR/NOSTR
1389 with own translation.
1390
1391 2005-06-25 Jakub Jelinek <jakub@redhat.com>
1392
1393 [BZ #1097]
1394 * sunrpc/xdr.c (xdr_hyper, xdr_u_hyper): When decoding, cast
1395 t2 to uint32_t instead of ulong.
1396 * sunrpc/Makefile (tests): Add tst-xdrmem.
1397 * sunrpc/tst-xdrmem.c: New test.
1398
1399 * Versions.def (ld): Add GLIBC_2.4.
1400 * configure.in: Add --enable-stackguard-randomization option.
1401 (ENABLE_STACKGUARD_RANDOMIZE): New define.
1402 * config.h.in (ENABLE_STACKGUARD_RANDOMIZE): Add.
1403 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include stdint.h.
1404 (_dl_setup_stack_chk_guard): New inline function.
1405 * sysdeps/generic/dl-osinfo.h: Include stdint.h.
1406 (_dl_setup_stack_chk_guard): New inline function.
1407 * elf/rtld.c (__stack_chk_guard): New variable.
1408 (dl_main): Remove all traces of TLS_INIT_TP_EXPENSIVE.
1409 Set __stack_chk_guard to _dl_setup_stack_chk_guard (),
1410 use THREAD_SET_STACK_GUARD if defined.
1411 * elf/Versions (ld): Export __stack_chk_guard@@GLIBC_2.4.
1412 * sysdeps/generic/libc-start.c (__stack_chk_guard): New variable.
1413 (__libc_start_main): Set __stack_chk_guard to
1414 _dl_setup_stack_chk_guard (), use THREAD_SET_STACK_GUARD if defined.
1415 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Remove all
1416 traces of TLS_INIT_TP_EXPENSIVE.
1417 * debug/Versions (libc): Export __stack_chk_fail@@GLIBC_2.4.
1418 * debug/Makefile (routines): Add stack_chk_fail.
1419 (static-only-routines): Add stack_chk_fail_local.
1420 * debug/stack_chk_fail_local.c: New file.
1421 * debug/stack_chk_fail.c: New file.
1422 * elf/Makefile: Add rules to build and run tst-stackguard1{,-static}
1423 tests.
1424 * elf/tst-stackguard1.c: New file.
1425 * elf/tst-stackguard1-static.c: New file.
1426 * elf/stackguard-macros.h: New file.
1427
1428 2005-06-21 Ulrich Drepper <drepper@redhat.com>
1429
1430 * resource/Makefile (tests): Add tst-getrlimit.
1431 * resource/tst-getrlimit.c: New file.
1432
1433 * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTPRIO): Fix typo.
1434 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1435 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1436
1437 2005-06-20 Ulrich Drepper <drepper@redhat.com>
1438
1439 * nscd/nscd.init: Get more in line with lsb3.
1440 * nscd/nscd.c: Adjust some error codes to fit in better with lsb3.
1441 * nscd/connections.c: Likewise.
1442
1443 2005-06-20 Jakub Jelinek <jakub@redhat.com>
1444
1445 [BZ #653]
1446 * sysdeps/unix/sysv/linux/sys/quota.h: Add definitions and types for
1447 _LINUX_QUOTA_VERSION >= 2.
1448 (_LINUX_QUOTA_VERSION): Define if not yet defined.
1449
1450 * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_NICE,
1451 RLIMIT_RTPRIO): Add.
1452 (RLIMIT_NLIMITS): Adjust.
1453 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_NICE,
1454 RLIMIT_RTPRIO): Add.
1455 (RLIMIT_NLIMITS): Adjust.
1456 * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_NICE,
1457 RLIMIT_RTPRIO): Add.
1458 (RLIMIT_NLIMITS): Adjust.
1459 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_NICE,
1460 RLIMIT_RTPRIO): Add.
1461 (RLIMIT_NLIMITS): Adjust.
1462
1463 2005-06-17 Ulrich Drepper <drepper@redhat.com>
1464
1465 [BZ #1106]
1466 * time/mktime.c: Always include <string.h> for prototype of
1467 implicitly used memcpy.
1468
1469 [BZ #1104]
1470 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
1471 (truncate64): Use __truncate, not truncate.
1472 (__have_no_truncate64): Renamed from have_no_truncate64.
1473 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
1474 (__have_no_truncate64): Renamed from have_no_truncate64.
1475
1476 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ulps for complex
1477 float functions for gcc 4.
1478
1479 2005-06-10 Jakub Jelinek <jakub@redhat.com>
1480
1481 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_runtime_setup):
1482 Handle prelinked libraries and binaries with new style PLT.
1483
1484 2005-06-07 Jakub Jelinek <jakub@redhat.com>
1485
1486 * elf/elf.h (R_PPC_REL16, R_PPC_REL16_LO, R_PPC_REL16_HI,
1487 R_PPC_REL16_HA): Define.
1488
1489 2005-06-14 Alan Modra <amodra@bigpond.net.au>
1490
1491 * config.h.in (HAVE_ASM_PPC_REL16): Add.
1492 * elf/elf.h (DT_PPC_GOT, DT_PPC_NUM): Define.
1493 * elf/tls-macros.h (PowerPC32): Include config.h. Add variants of
1494 TLS_IE, TLS_LD and TLS_GD for new PLT/GOT layout.
1495 * sysdeps/powerpc/powerpc32/configure.in: New file,
1496 * sysdeps/powerpc/powerpc32/dl-dtprocnum.h: New file.
1497 * sysdeps/powerpc/powerpc32/dl-machine.h (DT_PPC): Define.
1498 (ppc_got): New inline function.
1499 (elf_machine_dynamic): Use ppc_got. Add attribute const.
1500 (elf_machine_load_address): Add attribute const. Don't use int vars.
1501 Use bcl rather than bl to save trashing branch target stack. Use
1502 elf_machine_dynamic rather than duplicating code here.
1503 (elf_machine_runtime_setup): New inline function replacing define.
1504 Handle new PLT.
1505 (elf_machine_fixup_plt): Handle new PLT.
1506 (elf_machine_rela): Likewise.
1507 * sysdeps/powerpc/powerpc32/sysdep.h: Include config.h.
1508 (CALL_MCOUNT): Don't set up counter vars.
1509 * sysdeps/powerpc/powerpc32/ppc-mcount.S: Correct comment.
1510 * sysdeps/powerpc/powerpc32/elf/start.S (start_addressesp): Don't
1511 define when HAVE_ASM_PPC_REL16.
1512 (_start): Add HAVE_ASM_PPC_REL16 code.
1513 * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Don't bl
1514 into the GOT when HAVE_ASM_PPC_REL16.
1515 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
1516 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Ditto.
1517 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Likewise.
1518 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1519 * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1520 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1521 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Likewise.
1522 * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
1523 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
1524 * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
1525 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
1526 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1527 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1528 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp):
1529 Likewise.
1530 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S (__brk): Likewise.
1531 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1532 (__getcontext): Likewise.
1533 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1534 (__setcontext): Likewise.
1535 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1536 (__swapcontext): Likewise.
1537 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (stackblock):
1538 Comment.
1539 (__socket): Bomb if NARGS >= 7. Invoke CGOTSETUP and CGOTRESTORE.
1540
1541 2005-06-17 Ulrich Drepper <drepper@redhat.com>
1542
1543 [BZ #1106]
1544 * sysdeps/posix/sigignore.c: Include <string.h> to tell the compiler
1545 to use __GI_memset.
1546 * sysdeps/posix/signal.c: Likewise.
1547 * sysdeps/posix/sigset.c: Likewise.
1548 * sysdeps/posix/sysv_signal.c: Likewise.
1549 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
1550 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
1551 * sysdeps/unix/sysv/linux/system.c: Likewise.
1552
1553 2005-06-15 Jakub Jelinek <jakub@redhat.com>
1554
1555 [BZ #1088]
1556 * hesiod/hesiod.c (hesiod_init): Don't check for ctx->classes[0] == 0
1557 or both classes equal here.
1558 (parse_config_file): If both classes are equal, clear the second one.
1559
1560 2005-06-08 Karl Kelley <kekelley@iastate.edu>
1561
1562 [BZ #1088]
1563 * hesiod/hesiod_p.h (struct hesiod_p): Add classes array.
1564 * hesiod/hesiod.c (hesiod_init): Initialize classes. Fail if no
1565 valid classes were given or if both are equal.
1566 (hesiod_resolve): Use ctx->classes instead of hardcoded C_IN
1567 and C_HS order.
1568 (parse_config_file): Handle classes keyword.
1569 * hesiod/README.hesiod: Mention addition of the classes keyword.
1570
1571 2005-06-14 Ulrich Drepper <drepper@redhat.com>
1572
1573 [BZ #1085]
1574 * configure.in: Add test for availability of libaudit.
1575 * config.h.in: Define HAVE_LIBAUDIT.
1576 * config.make.in: Define have-libaudit.
1577 * nscd/Makefile: If libaudit is available, link nscd with it.
1578 * nscd/selinux.c: If HAVE_LIBAUDIT is defined, log using libaudit.
1579 Patch by Steve Grubb <sgrubb@redhat.com>.
1580
1581 * debug/pread64_chk.c: Use __libc_pread64 instead of __pread64.
1582 * sysdeps/posix/posix_fallocate64.c: Likewise.
1583 * include/string.h: Use libc_hidden_proto for strnlen.
1584 * sysdeps/generic/strnlen.c: Add libc_hidden_def.
1585 * include/libintl.h: Use libc_hidden_proto for __dcgettext.
1586 * intl/dcgettext.c: Add libc_hidden_def.
1587 * include/execinfo.h: Add libc_hidden_proto for __backtrace and
1588 __backtrace_symbols_fd.
1589 * sysdeps/generic/backtrace.c: Add libc_hidden_def.
1590 * sysdeps/generic/backtracesymsfd.c: Likewise.
1591 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
1592 * sysdeps/i386/backtrace.c: Likewise.
1593 * sysdeps/ia64/backtrace.c: Likewise.
1594 * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
1595 * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
1596 * sysdeps/s390/s390-32/backtrace.c: Likewise.
1597 * sysdeps/s390/s390-64/backtrace.c: Likewise.
1598
1599 2005-06-13 Ulrich Drepper <drepper@redhat.com>
1600
1601 * sysdeps/unix/clock_gettime.c (clock_gettime): Implement case
1602 where HANDLED_REALTIME is not defined. [BZ #966]
1603
1604 2005-06-13 Jakub Jelinek <jakub@redhat.com>
1605
1606 [BZ #1096]
1607 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_sendreq,
1608 __netlink_receive): Remove prototypes.
1609 (__netlink_request): New prototype.
1610 * sysdeps/unix/sysv/linux/ifaddrs.c: Include <alloca.h> and
1611 <stdint.h>.
1612 (__netlink_sendreq): Make static.
1613 (__netlink_receive): Rename to...
1614 (__netlink_request): ... this. Add type argument, call
1615 __netlink_sendreq. If MSG_TRUNC is set after recvmsg, retry
1616 with a bigger buffer. Don't record buffers that contain no
1617 messages we are expecting.
1618 (getifaddrs): Use __netlink_request instead of __netlink_sendreq
1619 and __netlink_receive pairs. Formatting.
1620 * sysdeps/unix/sysv/linux/if_index.c (if_nameindex_netlink): Use
1621 __netlink_request instead of __netlink_sendreq and __netlink_receive
1622 pair.
1623
1624 2005-06-13 Thorsten Kukuk <kukuk@suse.de>
1625
1626 * sysdeps/unix/sysv/linux/netinet/if_tr.h: Don't include kernel
1627 headers, instead copy important structs/defines.
1628
1629 2005-06-13 Jakub Jelinek <jakub@redhat.com>
1630
1631 * elf/rtld.c (dl_main): Move DT_DEBUG setup before first
1632 _dl_debug_state call.
1633
1634 2005-06-12 Ulrich Drepper <drepper@redhat.com>
1635
1636 * elf/dl-error.c (_dl_signal_error): Store information about use of
1637 real malloc in the catch object.
1638 (_dl_catch_error): Forward information about malloc use to caller
1639 in new parameter.
1640 (_dl_out_of_memory): Make static.
1641 * elf/dl-deps.c: Adjust callers of _dl_catch_error.
1642 * elf/dl-libc.c: Likewise.
1643 * elf/dl-open.c: Likewise.
1644 * elf/rtld.c: Likewise.
1645 Add new --audit option.
1646 * sysdeps/generic/ldsodefs.h: Remove _dl_out_of_memory declaration.
1647 (rtld_global_ro._dl_signal_error): Add new parameter.
1648 * include/dlfcn.h (_dl_catch_error): Add new parameter.
1649 * dlfcn/dlfcn.c (_dlerror_run): Pass additional parameter to
1650 _dl_catch_error. Only free if the returned newly value says so.
1651
1652 2005-06-01 Roland McGrath <roland@redhat.com>
1653
1654 [BZ #959]
1655 * posix/tst-mmap.c (main): Fill the test file with enough data for the
1656 page size.
1657
1658 2005-05-30 Jakub Jelinek <jakub@redhat.com>
1659
1660 * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): If
1661 GLRO(dl_osversion) has been already set to a value smaller than
1662 _dl_discover_osversion (), don't overwrite it here.
1663
1664 2005-05-24 Thomas Schwinge <schwinge@nic-nac-project.de>
1665
1666 * sysdeps/mach/i386/syscall.S (syscall): Call END.
1667
1668 2005-05-28 Richard Henderson <rth@redhat.com>
1669
1670 * elf/elf.h (DT_ALPHA_PLTRO, DT_ALPHA_NUM): New.
1671 * sysdeps/alpha/dl-dtprocnum.h: New file.
1672 * sysdeps/alpha/dl-machine.h (DT_ALPHA): New.
1673 (elf_machine_load_address): Simplify to rely on gprel relocations.
1674 (elf_machine_runtime_setup): Handle DT_ALPHA_PLTRO plt format.
1675 Remove thread safety workaround for binutils 2.6.
1676 (elf_machine_fixup_plt): Handle DT_ALPHA_PLTRO plt format.
1677 * sysdeps/alpha/dl-trampoline.S (_dl_runtime_resolve_new): New.
1678 (_dl_runtime_profile_new): New.
1679 (_dl_runtime_resolve_old): Rename from _dl_runtime_resolve.
1680 (_dl_runtime_profile_old): Rename from _dl_runtime_profile. Fix
1681 typo in _dl_call_pltexit argument loading.
1682
1683 * sysdeps/alpha/div_libc.h (funcnoplt): New.
1684 * sysdeps/alpha/divl.S: Use it.
1685 * sysdeps/alpha/divq.S: Likewise
1686 * sysdeps/alpha/divqu.S: Likewise.
1687 * sysdeps/alpha/reml.S: Likewise.
1688 * sysdeps/alpha/remq.S: Likewise.
1689 * sysdeps/alpha/remqu.S: Likewise.
1690
1691 2005-05-26 Andreas Schwab <schwab@suse.de>
1692
1693 * locale/Makefile (CFLAGS-loadlocale.c): Don't define.
1694
1695 2005-05-26 Ulrich Drepper <drepper@redhat.com>
1696
1697 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_DIRECT): Fix value.
1698 Reported by Colin Gibbs <colin@gibbsonline.net>. [BZ #954]
1699
1700 2005-05-17 Alan Modra <amodra@bigpond.net.au>
1701
1702 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Corrent
1703 _dl_hwcap access in PIC && !SHARED case.
1704 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
1705
1706 2005-05-25 Dwayne Grant McConnell <dgm69@us.ibm.com>
1707
1708 * gmon/gmon.c: Add space in weak_alias use.
1709 * linuxthreads/sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
1710 * sysdeps/alpha/htonl.S: Likewise.
1711 * sysdeps/alpha/htons.S: Likewise.
1712 * sysdeps/alpha/elf/start.S: Likewise.
1713 * sysdeps/i386/i386-mcount.S: Likewise.
1714 * sysdeps/ia64/strchr.S: Likewise.
1715 * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
1716 * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
1717 * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
1718 * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
1719 * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
1720 * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
1721 * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
1722 * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
1723 * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
1724 * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
1725 * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
1726 * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
1727 * sysdeps/mach/hurd/readdir64_r.c: Likewise.
1728 * sysdeps/mach/hurd/sigaltstack.c: Likewise.
1729 * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
1730 * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
1731 * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
1732 * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
1733 * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
1734 * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
1735 * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
1736 * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
1737 * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
1738 * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
1739 * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
1740 * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
1741 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
1742 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
1743 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
1744 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
1745 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
1746 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
1747 * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1748 * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1749 * sysdeps/sparc/sparc32/memset.S: Likewise.
1750 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
1751 * sysdeps/sparc/sparc32/strchr.S: Likewise.
1752 * sysdeps/sparc/sparc32/strchr.S: Likewise.
1753 * sysdeps/sparc/sparc64/memcmp.S: Likewise.
1754 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
1755 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
1756 * sysdeps/sparc/sparc64/memset.S: Likewise.
1757 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
1758 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
1759 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
1760 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
1761 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
1762 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1763 * sysdeps/unix/sysv/linux/alpha/getcontext.S: Likewise.
1764 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1765 * sysdeps/unix/sysv/linux/alpha/setcontext.S: Likewise.
1766 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
1767 * sysdeps/unix/sysv/linux/alpha/swapcontext.S: Likewise.
1768 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
1769 * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1770 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
1771 * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
1772 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1773 * sysdeps/unix/sysv/linux/i386/makecontext.S: Likewise.
1774 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1775 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
1776 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
1777 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
1778 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
1779 * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
1780 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
1781 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
1782 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
1783 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
1784 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
1785 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
1786 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
1787 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
1788 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
1789 * sysdeps/unix/sysv/linux/sparc/sparc64/getcontext.S: Likewise.
1790 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
1791 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
1792 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
1793 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
1794 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
1795 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Likewise.
1796 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
1797 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
1798 * sysdeps/x86_64/_mcount.S: Likewise.
1799
1800 2005-05-24 Roland McGrath <roland@redhat.com>
1801
1802 * sysdeps/unix/sysv/linux/i386/sysdep.h
1803 (SETUP_PIC_REG, LOAD_PIC_REG): Move these macros ...
1804 * sysdeps/i386/sysdep.h [PIC]: ... to here.
1805
1806 2005-05-23 Roland McGrath <roland@redhat.com>
1807
1808 * sysdeps/arm, sysdeps/unix/arm, sysdeps/unix/sysv/linux/arm:
1809 Subdirectories moved to ports repository.
1810 * configure.in (base_machine): Remove arm* and thumb* patterns.
1811 * shlib-versions (arm.*-.*-linux.*): Remove this pattern.
1812
1813 2005-05-23 Ulrich Drepper <drepper@redhat.com>
1814
1815 [BZ #1086]
1816 * sunrpc/bindrsvprt.c (LOWPORT): Apparently some mountd
1817 implementations are broken and don't accept ports < 512.
1818
1819 2005-05-22 Dmitry V. Levin <ldv@altlinux.org>
1820
1821 [BZ #961]
1822 * io/sys/sendfile.h: Remove __nonnull from sendfile and sendfile64
1823 declarations.
1824
1825 2005-05-23 Ulrich Drepper <drepper@redhat.com>
1826
1827 [BZ #1086]
1828 * sunrpc/pm_getport.c (__get_socket): New function.
1829 (pmap_getport): Use it to open a non-reserved socket to the portmapper
1830 for TCP.
1831 * include/rpc/pmap_clnt.h (__get_socket): Declare.
1832 * sunrpc/pm_getmaps.c (pmap_getmaps): Use __get_socket to get an
1833 non-reserved socket for the portmapper.
1834 Based on a patch by Steve Dickson <steved@redhat.com>.
1835
1836 [BZ #1086]
1837 * sunrpc/bindrsvprt.c (bindresvport): Try harder to find a port.
1838 If we tried looking at the usual range without success extend the
1839 range to even lower ports.
1840
1841 * sysdeps/unix/clock_gettime.c (clock_gettime): Revert last patch.
1842
1843 2005-05-22 Andreas Schwab <schwab@suse.de>
1844
1845 * elf/rtld.c: Include <dl-osinfo.h>.
1846
1847 2005-05-17 Alan Modra <amodra@bigpond.net.au>
1848
1849 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Don't use
1850 JUMPTARGET. Instead append @local to __syscall_error.
1851 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Delete all occurrences
1852 of JUMPTARGET. Instead append @local to labels.
1853 * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
1854 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
1855 * sysdeps/powerpc/powerpc32/ppc-mcount.S: Likewise.
1856 * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
1857 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
1858 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
1859 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
1860 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
1861 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
1862 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
1863 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
1864
1865 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Use float constants.
1866 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
1867 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
1868 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
1869 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise. Use one GOT
1870 slot to access both constants.
1871 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
1872 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
1873
1874 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (TWO52.0): Delete.
1875 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (TWO23.0): Delete.
1876 * sysdeps/powerpc/powerpc32/fpu/s_floor.S (TWO52.0): Delete.
1877 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (TWO23.0): Delete.
1878 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Comment typo.
1879 (NEGZERO.0, POINTFIVE.0): Delete.
1880 * sysdeps/powerpc/powerpc32/fpu/s_rint.S (TWO52.0): Delete.
1881 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (TWO23.0): Delete.
1882 * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Code in .text.
1883 (TWO52.0, POINTFIVE.0): Delete.
1884 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Code in .text.
1885 (TWO23.0, POINTFIVE.0): Delete.
1886 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Code in .text.
1887 (TWO52.0): Delete.
1888 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Code in .text.
1889 (TWO23.0): Delete.
1890 * sysdeps/powerpc/powerpc32/memset.S (memset): Formatting.
1891
1892 2005-05-19 Richard Henderson <rth@redhat.com>
1893
1894 * sysdeps/unix/clock_gettime.c (clock_gettime): Fix typo around
1895 CLOCK_REALTIME.
1896
1897 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_bool_32_acq,
1898 __arch_compare_and_exchange_bool_64_acq,
1899 __arch_compare_and_exchange_val_32_acq,
1900 __arch_compare_and_exchange_val_64_acq, atomic_exchange_and_add):
1901 Use __sync builtin without _si or _di suffix.
1902
1903 2005-05-19 Jakub Jelinek <jakub@redhat.com>
1904
1905 [BZ #955]
1906 * iconvdata/ibm939.c (BODY): Avoid segfaults with input characters
1907 <UFFFF> and above.
1908
1909 2005-05-17 Andreas Schwab <schwab@suse.de>
1910
1911 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1912 (clock_getcpuclockid): Always return a defined value.
1913
1914 2005-05-17 Neal H. Walfield <neal@gnu.org>
1915
1916 * sysdeps/posix/getaddrinfo.c (gaih_local): Check [_HAVE_SA_LEN]
1917 instead of [SALEN].
1918 (gaih_inet): Likewise.
1919
1920 2005-05-11 Ulrich Drepper <drepper@redhat.com>
1921
1922 * elf/elf.h (Elf32_auxv_t): Make cross-compile safe.
1923 (Elf64_auxv_t): Likewise.
1924 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
1925 removal of a_ptr element in ElfXX_auxv_t.
1926 * elf/dl-support.c (_dl_aux_init): Likewise.
1927
1928 2005-05-09 Daniel Jacobowitz <dan@codesourcery.com>
1929
1930 * sysdeps/unix/sysv/linux/clock_getres.c: Include <time.h>.
1931 * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
1932
1933 2005-05-09 Alan Modra <amodra@bigpond.net.au>
1934
1935 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
1936 .pushsection/.popsection in place of .section/.previous.
1937
1938 2005-05-08 Ulrich Drepper <drepper@redhat.com>
1939
1940 * MakeTAGS: Make xgettext not look into test cases.
1941
1942 * MakeTAGS: Make sure translations in error calls are marked with
1943 c-format by xgettext.
1944
1945 2005-05-07 Ulrich Drepper <drepper@redhat.com>
1946
1947 * intl/libintl.h: Always use __attribute_format_arg__ for gettext
1948 functions since gcc sometimes forgets the attribute for the
1949 standard functions.
1950
1951 2005-05-06 Jakub Jelinek <jakub@redhat.com>
1952
1953 [BZ #934]
1954 * posix/regex_internal.h: Include bits/libc-lock.h or define dummy
1955 __libc_lock_* macros if not _LIBC.
1956 (struct re_dfa_t): Add lock.
1957 * posix/regcomp.c (re_compile_internal): Add __libc_lock_init.
1958 * posix/regexec.c (regexec, re_search_stub): Add locking.
1959
1960 2005-05-04 Jakub Jelinek <jakub@redhat.com>
1961
1962 * intl/Makefile (tst-gettext[45].out): Pass also $(run-program-prefix)
1963 as argument to the scripts.
1964 * intl/tst-gettext2.sh: Use mkdir -p instead of test -d + mkdir.
1965 * intl/tst-gettext4.sh: Likewise. Use run_program_prefix argument.
1966 * intl/tst-gettext5.sh: Likewise.
1967
1968 * intl/tst-translit.sh: Add mkdir -p.
1969
1970 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Use
1971 .ifndef/.endif to allow use of this macro more than once per .S
1972 file.
1973 (LOAD_PIC_REG): New macro.
1974 * sysdeps/unix/sysv/linux/i386/makecontext.S: Add call frame
1975 information.
1976 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1977 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1978 * sysdeps/i386/fpu/s_asinh.S: Use LOAD_PIC_REG macro. Add call frame
1979 information.
1980 * sysdeps/i386/fpu/e_log10f.S: Likewise.
1981 * sysdeps/i386/fpu/s_expm1.S: Likewise.
1982 * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1983 * sysdeps/i386/fpu/e_log2l.S: Likewise.
1984 * sysdeps/i386/fpu/s_log1pf.S: Likewise.
1985 * sysdeps/i386/fpu/s_lrint.S: Likewise.
1986 * sysdeps/i386/fpu/s_llrint.S: Likewise.
1987 * sysdeps/i386/fpu/s_ilogbf.S: Likewise.
1988 * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1989 * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1990 * sysdeps/i386/fpu/e_log.S: Likewise.
1991 * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1992 * sysdeps/i386/fpu/s_lrintl.S: Likewise.
1993 * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1994 * sysdeps/i386/fpu/e_scalb.S: Likewise.
1995 * sysdeps/i386/fpu/s_log1p.S: Likewise.
1996 * sysdeps/i386/fpu/s_nearbyintl.S: Likewise.
1997 * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1998 * sysdeps/i386/fpu/s_log1pl.S: Likewise.
1999 * sysdeps/i386/fpu/s_nearbyintf.S: Likewise.
2000 * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2001 * sysdeps/i386/fpu/s_expm1l.S: Likewise.
2002 * sysdeps/i386/fpu/s_lrintf.S: Likewise.
2003 * sysdeps/i386/fpu/e_acosh.S: Likewise.
2004 * sysdeps/i386/fpu/s_cexp.S: Likewise.
2005 * sysdeps/i386/fpu/s_ilogbl.S: Likewise.
2006 * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2007 * sysdeps/i386/fpu/e_powl.S: Likewise.
2008 * sysdeps/i386/fpu/e_powf.S: Likewise.
2009 * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2010 * sysdeps/i386/fpu/e_logl.S: Likewise.
2011 * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2012 * sysdeps/i386/fpu/s_frexp.S: Likewise.
2013 * sysdeps/i386/fpu/e_pow.S: Likewise.
2014 * sysdeps/i386/fpu/e_logf.S: Likewise.
2015 * sysdeps/i386/fpu/e_log2.S: Likewise.
2016 * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2017 * sysdeps/i386/fpu/s_cexpl.S: Likewise.
2018 * sysdeps/i386/fpu/s_llrintf.S: Likewise.
2019 * sysdeps/i386/fpu/s_ilogb.S: Likewise.
2020 * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2021 * sysdeps/i386/fpu/e_atanh.S: Likewise.
2022 * sysdeps/i386/fpu/e_log10.S: Likewise.
2023 * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2024 * sysdeps/i386/fpu/s_cexpf.S: Likewise.
2025 * sysdeps/i386/fpu/s_llrintl.S: Likewise.
2026 * sysdeps/i386/fpu/e_log10l.S: Likewise.
2027 * sysdeps/i386/fpu/s_nearbyint.S: Likewise.
2028 * sysdeps/i386/fpu/s_asinhl.S: Likewise.
2029 * sysdeps/i386/fpu/e_log2f.S: Likewise.
2030 * sysdeps/i386/addmul_1.S: Various fixes to cfi handling.
2031 * sysdeps/i386/mul_1.S: Likewise.
2032 * sysdeps/i386/strtok.S: Likewise.
2033 * sysdeps/i386/sub_n.S: Likewise.
2034 * sysdeps/i386/submul_1.S: Likewise.
2035 * sysdeps/i386/i586/addmul_1.S: Likewise.
2036 * sysdeps/i386/i586/memcpy.S: Likewise.
2037 * sysdeps/i386/i586/mul_1.S: Likewise.
2038 * sysdeps/i386/i586/rshift.S: Likewise.
2039 * sysdeps/i386/i586/sub_n.S: Likewise.
2040 * sysdeps/i386/i586/submul_1.S: Likewise.
2041 * sysdeps/i386/i686/memcmp.S: Likewise.
2042 * sysdeps/i386/i686/memmove.S: Likewise.
2043 * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2044 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2045 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2046 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2047
2048 2005-05-03 Ulrich Drepper <drepper@redhat.com>
2049
2050 * sysdeps/i386/add_n.S: Add call frame information.
2051 * sysdeps/i386/addmul_1.S: Likewise.
2052 * sysdeps/i386/bsd-setjmp.S: Likewise.
2053 * sysdeps/i386/lshift.S: Likewise.
2054 * sysdeps/i386/memchr.S: Likewise.
2055 * sysdeps/i386/memcmp.S: Likewise.
2056 * sysdeps/i386/mul_1.S: Likewise.
2057 * sysdeps/i386/rawmemchr.S: Likewise.
2058 * sysdeps/i386/rshift.S: Likewise.
2059 * sysdeps/i386/stpncpy.S: Likewise.
2060 * sysdeps/i386/strchr.S: Likewise.
2061 * sysdeps/i386/strchrnul.S: Likewise.
2062 * sysdeps/i386/strcspn.S: Likewise.
2063 * sysdeps/i386/strpbrk.S: Likewise.
2064 * sysdeps/i386/strrchr.S: Likewise.
2065 * sysdeps/i386/strspn.S: Likewise.
2066 * sysdeps/i386/strtok.S: Likewise.
2067 * sysdeps/i386/sub_n.S: Likewise.
2068 * sysdeps/i386/submul_1.S: Likewise.
2069 * sysdeps/i386/elf/bsd-setjmp.S: Likewise.
2070 * sysdeps/i386/i486/strcat.S: Likewise.
2071 * sysdeps/i386/i586/add_n.S: Likewise.
2072 * sysdeps/i386/i586/addmul_1.S: Likewise.
2073 * sysdeps/i386/i586/lshift.S: Likewise.
2074 * sysdeps/i386/i586/memcpy.S: Likewise.
2075 * sysdeps/i386/i586/memset.S: Likewise.
2076 * sysdeps/i386/i586/mul_1.S: Likewise.
2077 * sysdeps/i386/i586/rshift.S: Likewise.
2078 * sysdeps/i386/i586/strchr.S: Likewise.
2079 * sysdeps/i386/i586/strcpy.S: Likewise.
2080 * sysdeps/i386/i586/sub_n.S: Likewise.
2081 * sysdeps/i386/i586/submul_1.S: Likewise.
2082 * sysdeps/i386/i686/add_n.S: Likewise.
2083 * sysdeps/i386/i686/memcmp.S: Likewise.
2084 * sysdeps/i386/i686/memmove.S: Likewise.
2085 * sysdeps/i386/i686/mempcpy.S: Likewise.
2086 * sysdeps/i386/i686/memset.S: Likewise.
2087 * sysdeps/i386/i686/strtok.S: Likewise.
2088 * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2089 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2090 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2091 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
2092 * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2093 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2094
2095 * sysdeps/i386/fpu/libm-test-ulps: Adjust for gcc 4.
2096
2097 * sysdeps/unix/sysv/linux/kernel-features.h: waitid is available
2098 on ppc in 2.6.12.
2099
2100 2005-04-29 Jakub Jelinek <jakub@redhat.com>
2101
2102 [BZ #1083]
2103 * sysdeps/posix/posix_fallocate.c (posix_fallocate): If len == 0,
2104 call ftruncate if offset is bigger than current size. Make sure
2105 the file is offset + len bytes long if that is more than current size.
2106 Don't overwrite previous content of the file.
2107 * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
2108 Likewise.
2109
2110 2005-05-02 Roland McGrath <roland@redhat.com>
2111
2112 [BZ #924]
2113 * crypt/md5.c [! HAVE_MEMCPY] (memcpy): Yield proper expression value.
2114
2115 2005-04-29 Roland McGrath <roland@redhat.com>
2116
2117 * timezone/africa: Update from tzdata2005i.
2118 * timezone/asia: Likewise.
2119 * timezone/northamerica: Likewise.
2120 * timezone/yearistype: Likewise.
2121
2122 * sysdeps/i386/sysdep.h (CALL_MCOUNT): Fix typo in last change.
2123
2124 2005-04-29 Ulrich Drepper <drepper@redhat.com>
2125
2126 [BZ #1093]
2127 * nis/nis_table.c: Fix realloc handling.
2128 * nis/nis_removemember.c: Likewise.
2129
2130 2005-04-28 Ulrich Drepper <drepper@redhat.com>
2131
2132 [BZ #798]
2133 * nscd/Makefile: Help losers who use --with-headers.
2134
2135 2005-04-28 Roland McGrath <roland@redhat.com>
2136
2137 [BZ #796]
2138 * sysdeps/unix/sysv/linux/dl-sysdep.h: New file.
2139 Define NEED_DL_SYSINFO_DSO for all platforms.
2140
2141 * sysdeps/generic/dl-sysdep.h: Remove multiple inclusion protection.
2142 * sysdeps/alpha/dl-sysdep.h: Likewise.
2143 Use #include_next instead of duplicating generic file's contents.
2144 * sysdeps/ia64/dl-sysdep.h: Likewise.
2145 * sysdeps/sparc/dl-sysdep.h: Likewise.
2146
2147 2005-03-22 Steven Munroe <sjmunroe@us.ibm.com>
2148
2149 * sysdeps/powerpc/powerpc64/memset.S (memset): Make ___memset local.
2150
2151 2005-03-07 Steven Munroe <sjmunroe@us.ibm.com>
2152
2153 [BZ #781]
2154 * sysdeps/unix/sysv/linux/kernel-features.h
2155 (__ASSUME_TGKILL): Define for powerpc32/64 starting with 2.6.1.
2156 (__ASSUME_UTIMES): Define for powerpc32/64 starting with 2.6.1.
2157 (__ASSUME_FADVISE64_64_SYSCALL): Define for powerpc32 only starting
2158 with 2.6.1.
2159 (__ASSUME_WAITID_SYSCALL): Don't define for powerpc32/64.
2160
2161 2005-04-28 Ulrich Drepper <drepper@redhat.com>
2162
2163 * sysdeps/i386/sysdep.h: Add cfi instrumentation to asm fragments.
2164 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
2165 * sysdeps/unix/sysv/linux/i386/socket.S: Remove now duplicate
2166 cfi_startproc and cfi_endproc.
2167
2168 * configure.in: Remove ultrasparc names.
2169
2170 * sysdeps/i386/i686/memcmp.S: Move misplaced END.
2171
2172 2005-03-27 Bruno Haible <bruno@clisp.org>
2173
2174 Make it possible for multiple threads to use gettext() in different
2175 locales.
2176 * intl/dcigettext.c (HAVE_PER_THREAD_LOCALE): New macro.
2177 (struct known_translation_t): If HAVE_PER_THREAD_LOCALE, add localename
2178 field.
2179 (transcmp): If HAVE_PER_THREAD_LOCALE, compare localename fields.
2180 (DCIGETTEXT): If HAVE_PER_THREAD_LOCALE, fill the localename field in
2181 search and newp.
2182
2183 * intl/tst-gettext4.c: New file.
2184 * intl/tst-gettext4.sh: New file.
2185 * intl/tst-gettext4-de.po: New file.
2186 * intl/tst-gettext4-fr.po: New file.
2187 * intl/tst-gettext5.c: New file.
2188 * intl/tst-gettext5.sh: New file.
2189 * intl/Makefile (distribute): Add tst-gettext4.sh, tst-gettext4-de.po,
2190 tst-gettext4-fr.po, tst-gettext5.sh.
2191 (multithread-test-srcs): New variable.
2192 (test-srcs): Add its contents.
2193 (tests): Depend on tst-gettext4.out, tst-gettext5.out.
2194 (tst-gettext4.out, tst-gettext5.out): New rules.
2195 (CFLAGS-tst-gettext4.c, CFLAGS-tst-gettext5.c): New variables.
2196 Add rule for linking the multithread-test-srcs with the appropriate
2197 thread-library.
2198
2199 2005-04-28 Ulrich Drepper <drepper@redhat.com>
2200
2201 * po/rw.po: New file. From translation team.
2202
2203 * scripts/config.guess: Update from upstream.
2204 * scripts/config.sub: Likewise.
2205
2206 2005-04-27 Ulrich Drepper <drepper@redhat.com>
2207
2208 [BZ #1094]
2209 * nscd/connections.c (nscd_run): Use time() value in prune_cache
2210 call, not timeout value, since the latter might be from another clock.
2211
2212 2005-04-27 Roland McGrath <roland@redhat.com>
2213
2214 [BZ #877]
2215 * posix/unistd.h: Remove __nonnull from acct decl.
2216
2217 * rt/tst-cpuclock1.c: New file.
2218 * rt/tst-cpuclock2.c: New file.
2219 * rt/tst-cputimer1.c: New file.
2220 * rt/tst-cputimer2.c: New file.
2221 * rt/tst-cputimer3.c: New file.
2222 * rt/Makefile (tests): Add them.
2223
2224 * sysdeps/unix/sysv/linux/kernel-posix-cpu-timers.h: New file.
2225 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: New file.
2226 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c
2227 (HAS_CPUCLOCK): New macro.
2228 (clock_getcpuclockid): Function removed.
2229 #include the new linux file to define it instead.
2230 * sysdeps/unix/clock_gettime.c [HP_TIMING_AVAIL] (hp_timing_gettime):
2231 New function, broken out of ...
2232 (clock_gettime) [HP_TIMING_AVAIL]: ... here. Call it.
2233 (realtime_gettime): New function, broken out of ...
2234 (clock_gettime) [! HANDLED_REALTIME]: ... here. Call it.
2235 (clock_gettime) [SYSDEP_GETTIME_CPU]: Use new macro in default case.
2236 * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): New macro.
2237 (SYSDEP_GETTIME_CPUTIME): New macro.
2238 (SYSDEP_GETTIME): Use both.
2239 [! __ASSUME_POSIX_TIMERS] (maybe_syscall_gettime): New function, broken
2240 out of ...
2241 (SYSDEP_GETTIME): ... here. Use it.
2242 [__NR_clock_gettime] (HANDLED_CPUTIME): Define it.
2243 (SYSDEP_GETTIME_CPUTIME): New macro. Handle CPU timers by trying
2244 kernel support and falling back to hp-timing code.
2245 * sysdeps/posix/clock_getres.c
2246 [HP_TIMING_AVAIL] (hp_timing_getres): New function, broken out of ...
2247 (clock_getres) [HP_TIMING_AVAIL]: ... here. Call it.
2248 (realtime_getres): New function, broken out of ...
2249 (clock_getres) [! HANDLED_REALTIME]: ... here. Call it.
2250 (clock_getres) [SYSDEP_GETRES_CPU]: Use new macro in default case.
2251 * sysdeps/unix/sysv/linux/clock_getres.c (SYSCALL_GETRES): New macro.
2252 (SYSDEP_GETRES_CPUTIME): New macro.
2253 (SYSDEP_GETRES): Use both.
2254 [! __ASSUME_POSIX_TIMERS] (maybe_syscall_getres): New function, broken
2255 out of ...
2256 (SYSDEP_GETRES): ... here. Use it.
2257 [__NR_clock_getres] (HANDLED_CPUTIME): Define it.
2258 (SYSDEP_GETRES_CPUTIME): New macro. Handle CPU timers by trying
2259 kernel support and falling back to hp-timing code.
2260 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Handle
2261 CLOCK_PROCESS_CPUTIME_ID and CLOCK_PROCESS_THREAD_ID specially,
2262 translating to the kernel clockid_t for our own process/thread clock.
2263
2264 2005-04-27 Ulrich Drepper <drepper@redhat.com>
2265
2266 * stdlib/test-canon.c: Make doesExist a directory and add more tests
2267 for the new error case.
2268
2269 2004-06-02 Dmitry V. Levin <ldv@altlinux.org>
2270 Ranjani Murthy <ranmur@gmail.com>
2271
2272 * stdlib/canonicalize.c (__realpath): Change realpath(3) to
2273 return NULL and set errno to ENOTDIR for such pathnames like
2274 "/path/to/existing-non-directory/".
2275
2276 2005-04-26 Ulrich Drepper <drepper@redhat.com>
2277
2278 [BZ #1105]
2279 * time/strptime_l.c (__strptime_internal): Handle 'z' to set
2280 tm_gmtoff.
2281 * time/Makefile (tests): Add tst-strptime2.
2282 * time/tst-strptime2.c: New file.
2283
2284 2005-04-26 Jakub Jelinek <jakub@redhat.com>
2285
2286 [BZ #1081]
2287 * elf/dl-close.c: Include stddef.h.
2288 (_dl_close): If called recursively, just remember GC needs to be rerun
2289 and decrease l_direct_opencount. Avoid GC if l_direct_opencount
2290 decreased to 1. Rerun GC at the end if any destructor unloaded some
2291 additional libraries.
2292 * elf/Makefile: Add rules to build and run unload6 test.
2293 * elf/unload6.c: New test.
2294 * elf/unload6mod1.c: New file.
2295 * elf/unload6mod2.c: New file.
2296 * elf/unload6mod3.c: New file.
2297
2298 * malloc/hooks.c (mem2chunk_check): Add magic_p argument, set *magic_p
2299 if magic_p is not NULL.
2300 (top_check): Invoke MALLOC_FAILURE_ACTION if MORECORE failed.
2301 (malloc_check): Fail if sz == -1.
2302 (free_check): Adjust mem2chunk_check caller.
2303 (realloc_check): Likewise. Fail if bytes == -1. If bytes == 0 and
2304 oldmem != NULL, call free_check and return NULL. If reallocating
2305 and returning NULL, invert magic byte again to make oldmem valid
2306 region for further checking.
2307 (memalign_check): Fail if bytes == -1.
2308 * malloc/Makefile: Add rules to build and run tst-mcheck.
2309 * malloc/tst-mcheck.c: New test.
2310
2311 2005-04-26 Ulrich Drepper <drepper@redhat.com>
2312
2313 [BZ #1110]
2314 * stdio-common/vfscanf.c: Correctly account for characters of
2315 decimal points right after +-.
2316
2317 2005-04-26 Roland McGrath <roland@redhat.com>
2318
2319 * elf/rtld-Rules (rtld-all): Test ifndef rtld-modules instead of
2320 ifeq ($(subdir),elf) to distinguish main driver from subdir runs.
2321
2322 2005-04-25 Roland McGrath <roland@redhat.com>
2323
2324 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
2325 (INTERNAL_SYSCALL_ERROR_P): Fix typo in last change.
2326
2327 * sunrpc/xdr.c (xdr_u_int): Use `long' for L and cast where needed.
2328
2329 * elf/dl-load.c: Revert last change.
2330
2331 2005-04-24 Ulrich Drepper <drepper@redhat.com>
2332
2333 [BZ #1110]
2334 * stdio-common/vfscanf.c: Fix parsing of decimal point after +-.
2335 Patch by Hamed Malek <hamed@bamdad.org>.
2336
2337 2005-04-21 Roland McGrath <roland@redhat.com>
2338
2339 * elf/dl-load.c (_dl_map_object_from_fd): Don't use MAP_DENYWRITE,
2340 since Linux ignores it in user mmap calls.
2341
2342 2005-04-17 David S. Miller <davem@davemloft.net>
2343
2344 * sysdeps/sparc/sparc32/elf/start.S: Define __data_start.
2345 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2346
2347 2005-04-15 Roland McGrath <roland@redhat.com>
2348
2349 * timezone/Makefile (zic-deps): New variable.
2350 ($(testdata)/America/New_York): Use it instead of explicit deps.
2351 ($(testdata)/Etc/UTC, $(testdata)/Australia/Melbourne): Likewise.
2352 ($(testdata)/America/Sao_Paulo, $(testdata)/Asia/Tokyo): Likewise.
2353 (%/UTC %/Universal): New pattern rule, replaces ...
2354 ($(testdata)/UTC, $(testdata)/Universal): ... these removed targets.
2355 ($(testdata)/%/Berlin $(testdata)/%/London): New pattern rule.
2356 ($(testdata)/Europe/London, $(testdata)/Europe/Berlin): Removed.
2357
2358 2005-04-14 Roland McGrath <roland@redhat.com>
2359
2360 * MakeTAGS ($P/$(domain).pot): Depend on distinfo file as well.
2361 (extract): Filter-out distinfo file name.
2362
2363 [BZ #253]
2364 * MakeTAGS (text-srcs): Match %.bash.in files too.
2365
2366 [BZ #253]
2367 * nscd/Makefile (all-nscd-modules): New variable, include selinux
2368 module regardless of configuration.
2369 (distribute): Use that instead of $(nscd-modules).
2370
2371 2005-04-13 David S. Miller <davem@davemloft.net>
2372
2373 Add sparc64 TLS and NPTL support.
2374 * elf/tls-macros.h: Add Sparc64 defines.
2375 * sysdeps/sparc/sparc64/dl-machine.h (sparc64_fixup_plt): Mark as
2376 always_inline.
2377 (elf_machine_fixup_plt): Likewise.
2378 (elf_machine_rela): Handle TLS relocations.
2379 (elf_machine_type_cleaa): Likewise.
2380 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2381 (SYSCALL_ERROR_HANDLER_ENTRY): Use sethi/or for GOT reloc.
2382 It does not always fit in R_SPARC_GOT13 when building -fPIC.
2383 Also, add TLS handling.
2384 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2385 Increase it to 2.4.21 for sparc64.
2386 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: NULL terminate
2387 backtrace by zero'ing out %fp. Store away flags, func_ptr,
2388 and func_arg in global registers not local registers.
2389 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Handle PTID, TLS,
2390 and CTID arguments properly. Add RESET_PID handling.
2391 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Rework so that we
2392 do not invoke __sigprocmask(). We can always assume rt signals
2393 are present on sparc64, so just do an inline syscall.
2394
2395 2005-04-13 Jakub Jelinek <jakub@redhat.com>
2396
2397 * sysdeps/sparc/sparc64/dl-machine.h: Add dl_machine_h multiple
2398 inclusion guard for the first half of the header.
2399 (elf_machine_type_class, ELF_MACHINE_JMP_SLOT, ELF_MACHINE_NO_REL,
2400 ELF_MACHINE_PLTREL_OVERLAP, elf_machine_runtime_setup,
2401 elf_machine_relplt, DL_STACK_END, RTLD_START): Move into the
2402 #ifndef dl_machine_h guarded part of the header.
2403
2404 2005-04-14 Ulrich Drepper <drepper@redhat.com>
2405
2406 [BZ #851]
2407 * posix/execvp.c (execvp): Use file name including path when
2408 trying to run it with shell.
2409 * posix/Makefile: Add rules to build and run tst-execvp3.
2410 * posix/tst-execvp3.c: New file.
2411
2412 2005-04-12 Ulrich Drepper <drepper@redhat.com>
2413
2414 [BZ #1090]
2415 * stdlib/random_r.c (__initstate_r): Don't use non-existing state.
2416 * string/tst-strfry.c: New file.
2417 * string/Makefile (tests): Add tst-strfry.
2418
2419 2005-04-11 James A. Morrison <ja2morri@uwaterloo.ca>
2420
2421 * manual/string.texi: Fix typo in wmemcpy decl.
2422
2423 2005-04-10 David S. Miller <davem@davemloft.net>
2424
2425 * sysdeps/sparc/sparc32/dl-trampoline.S: Use std not stx.
2426
2427 2005-04-08 Carlos O'Donell <carlos@baldric.uwo.ca>
2428
2429 * FAQ.in: Explain why `make' might fail running rpcgen.
2430 * FAQ: Regenerated.
2431
2432 2005-04-07 Roland McGrath <roland@redhat.com>
2433
2434 * po/libc.pot: Regenerated.
2435
2436 2005-04-07 Roland McGrath <roland@redhat.com>
2437
2438 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion)
2439 [(NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO) && SHARED]: Scan
2440 GLRO(dl_sysinfo_map) for PT_NOTE giving Linux kernel version,
2441 we can skip the uname call if it's there.
2442 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't use
2443 DL_SYSDEP_OSCHECK here.
2444 * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]: Do it here instead.
2445
2446 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro):
2447 Add _dl_sysinfo_map.
2448 * elf/rtld.c (dl_main): Don't call _dl_init_paths early in the
2449 rtld_is_main case. Call it unconditionally later.
2450 Move GLRO(dl_sysinfo_dso) handling earlier, before _dl_init_paths call.
2451 Initialize GLRO(dl_sysinfo_map).
2452 * elf/dl-load.c (open_path): Bail out if _dl_init_paths wasn't called.
2453 * sysdeps/generic/dl-sysdep.c (_DL_FIRST_EXTRA): New macro.
2454 (_dl_important_hwcaps)
2455 [(NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO) && SHARED]: Scan
2456 GLRO(dl_sysinfo_map) for PT_NOTE giving synthetic hwcap names
2457 and bit values.
2458 * elf/ldconfig.c (_DL_FIRST_EXTRA): New macro.
2459 (hwcap_extra): New static variable.
2460 (is_hwcap_platform): Check hwcap_extra for a matching name.
2461 Remove tls special case.
2462 (path_hwcap): Likewise.
2463 (parse_conf): Parse "hwcap" directive to define synthetic hwcap bits
2464 and their names, stored in hwcap_extra.
2465 (main) [USE_TLS]: Initialize final synthetic hwcap bit as "tls".
2466
2467 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Use uint64_t for
2468 _dl_hwcap and _dl_hwcap_mask.
2469 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Cast a_val for
2470 AT_HWCAP to unsigned long int.
2471 * elf/dl-support.c (_dl_aux_init): Likewise.
2472 (_dl_hwcap): Update defn.
2473
2474 * elf/cache.c (print_entry): Pad hwcap value with 0s in diagnostic.
2475 * elf/ldconfig.c (search_dir): Likewise.
2476
2477 2005-04-05 Roland McGrath <roland@redhat.com>
2478
2479 * NEWS: Copy 2.3.5 section from 2.3 branch.
2480
2481 * intl/tst-codeset.sh: Use mkdir -p. Put msgfmt output in temporary
2482 file and mv it into place.
2483 * intl/tst-gettext3.sh: Likewise.
2484
2485 * Makefile (glibc-%.tar rule): Use make -q to ensure configure scripts
2486 are up to date in srcdir. Touch all configure scripts after export.
2487
2488 * iconv/gconv_int.h: Include <ctype.h> and <string.h>.
2489
2490 2005-04-05 H.J. Lu <hongjiu.lu@intel.com>
2491
2492 [BZ #592]
2493 * sysdeps/ia64/fpu/e_acosh.S: Update from Intel libm 2005-04-05
2494 (comment changes only).
2495 * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
2496 * sysdeps/ia64/fpu/e_atanh.S: Likewise.
2497 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
2498 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
2499 * sysdeps/ia64/fpu/e_exp.S: Likewise.
2500 * sysdeps/ia64/fpu/e_exp10.S: Likewise.
2501 * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
2502 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
2503 * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
2504 * sysdeps/ia64/fpu/e_expf.S: Likewise.
2505 * sysdeps/ia64/fpu/e_log.S: Likewise.
2506 * sysdeps/ia64/fpu/e_logf.S: Likewise.
2507 * sysdeps/ia64/fpu/e_pow.S: Likewise.
2508 * sysdeps/ia64/fpu/e_powf.S: Likewise.
2509 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
2510 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
2511 * sysdeps/ia64/fpu/libm_error.c: Likewise.
2512 * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
2513 * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
2514 * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
2515 * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
2516 * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
2517 * sysdeps/ia64/fpu/s_asinh.S: Likewise.
2518 * sysdeps/ia64/fpu/s_atanl.S: Likewise.
2519 * sysdeps/ia64/fpu/s_cos.S: Likewise.
2520 * sysdeps/ia64/fpu/s_cosf.S: Likewise.
2521 * sysdeps/ia64/fpu/s_erf.S: Likewise.
2522 * sysdeps/ia64/fpu/s_erfc.S: Likewise.
2523 * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
2524 * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
2525 * sysdeps/ia64/fpu/s_erff.S: Likewise.
2526 * sysdeps/ia64/fpu/s_expm1.S: Likewise.
2527 * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
2528 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
2529 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
2530 * sysdeps/ia64/fpu/s_tanh.S: Likewise.
2531 * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
2532 * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
2533 * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
2534 * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
2535
2536 2005-04-05 Roland McGrath <roland@redhat.com>
2537
2538 * scripts/config.guess: Update from master, timestamp='2005-03-24'.
2539 * scripts/config.sub: Update from master, timestamp='2005-02-10'.
2540
2541 2005-04-04 David S. Miller <davem@davemloft.net>
2542
2543 * sysdeps/sparc/sparc32/dl-trampoline.S: New file.
2544 * sysdeps/sparc/sparc32/dl-machine.h: Move PLT trampolines there.
2545 Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
2546 (elf_machine_runtime_setup): Test for dl_profile non-null.
2547 * sysdeps/sparc/sparc64/dl-trampoline.S: New file.
2548 (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
2549 * sysdeps/sparc/sparc64/dl-machine.h: Move PLT trampolines there.
2550 Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
2551 (elf_machine_runtime_setup): Test for dl_profile non-null.
2552 * sysdeps/sparc/bits/link.h: New file.
2553 * sysdeps/generic/ldsodefs.h (La_sparc32_regs, La_sparc32_retval,
2554 La_sparc64_regs, La_sparc64_retval): New.
2555 (struct audit_ifaces): Add sparc entries.
2556 * elf/tst-auditmod1.c: Add sparc entries.
2557
2558 2005-03-27 Bruno Haible <bruno@clisp.org>
2559
2560 * intl/tst-gettext3.c: New file.
2561 * intl/tst-gettext3.sh: New file.
2562 * intl/Makefile (distribute): Add tst-gettext3.sh.
2563 (test-srcs): Add tst-gettext3.
2564 (tests): Depend on tst-gettext3.out.
2565 (tst-gettext3.out): New rule.
2566 (CFLAGS-tst-gettext3.c): New variable.
2567
2568 Fix bug exposed by tst-gettext3.
2569 * intl/gettextP.h (struct converted_domain): New type.
2570 (struct loaded_domain): Remove the conv, conv_tab fields. Add
2571 conversions, nconversions fields.
2572 (_nl_init_domain_conv): Remove declaration.
2573 (_nl_free_domain_conv): Remove declaration.
2574 (_nl_find_msg): Add convert argument.
2575 * intl/dcigettext.c (DCIGETTEXT): Call _nl_find_msg with convert=1.
2576 (_nl_find_msg): Add convert argument. When a conversion to a different
2577 charset is needed, create a new converted_domain element, instead of
2578 throwing away the old converted translations.
2579 (get_output_charset): New function.
2580 * intl/loadmsgcat.c (_nl_init_domain_conv): Remove function.
2581 (_nl_free_domain_conv): Remove function.
2582 (_nl_load_domain): Initialize the conversions array to empty. Use
2583 _nl_find_msg instead of _nl_init_domain_conv to retrieve the header
2584 entry.
2585 (_nl_unload_domain): Free the conversions array and its contents.
2586
2587 * intl/gettextP.h (struct loaded_domain): Remove codeset_cntr field.
2588 (struct binding): Likewise.
2589 * intl/bindtextdom.c (set_binding_values): Drop codeset_cntr
2590 modifications.
2591
2592 2005-04-04 Jakub Jelinek <jakub@redhat.com>
2593
2594 [BZ #1082]
2595 * sunrpc/pmap_rmt.c (xdr_rmtcall_args): Use a dummy arglen instead
2596 of trying to encode uninitialized arglen.
2597
2598 2005-04-04 Ulrich Drepper <drepper@redhat.com>
2599
2600 [BZ #825]
2601 * timezone/scheck.c: Update from tzcode2005h.
2602 * timezone/tzfile.h: Likewise.
2603 * timezone/zdump.c: Likewise.
2604 * timezone/zic.c: Likewise.
2605
2606 [BZ #825]
2607 * timezone/antarctica: Update from tzdata2005h.
2608 * timezone/asia: Likewise.
2609 * timezone/australasia: Likewise.
2610 * timezone/etcetera: Likewise.
2611 * timezone/europe: Likewise.
2612 * timezone/northamerica: Likewise.
2613 * timezone/southamerica: Likewise.
2614 * timezone/leapseconds: Likewise.
2615 * timezone/iso3166.tab: Likewise.
2616
2617 2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
2618
2619 [BZ #592]
2620 * sysdeps/ia64/fpu/libm_cpu_defs.h: Update copyright.
2621
2622 2005-04-01 Ulrich Drepper <drepper@redhat.com>
2623
2624 * wcsmbs/btowc.c (__btowc): Optimize parameters in ASCII range.
2625 * wcsmbs/wctob.c (wctob): Likewise.
2626 * wcsmbs/wchar.h (btowc): Add optimized inline function.
2627 (wctob): Likewise.
2628
2629 2005-03-31 Jakub Jelinek <jakub@redhat.com>
2630
2631 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Use functionally
2632 equivalent, but shorter instructions.
2633 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2634 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2635 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2636 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2637 * sysdeps/unix/x86_64/sysdep.S: Likewise.
2638 * sysdeps/x86_64/strchr.S: Likewise.
2639 * sysdeps/x86_64/memset.S: Likewise.
2640 * sysdeps/x86_64/strcspn.S: Likewise.
2641 * sysdeps/x86_64/strcmp.S: Likewise.
2642 * sysdeps/x86_64/elf/start.S: Likewise.
2643 * sysdeps/x86_64/strspn.S: Likewise.
2644 * sysdeps/x86_64/dl-machine.h: Likewise.
2645 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
2646 * sysdeps/x86_64/bsd-setjmp.S: Likewise.
2647 * sysdeps/x86_64/strtok.S: Likewise.
2648
2649 2005-03-30 H.J. Lu <hongjiu.lu@intel.com>
2650
2651 [BZ #592]
2652 * sysdeps/ia64/fpu/e_acosf.S: Update from Intel libm 2005-03-21.
2653 * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
2654 * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
2655 * sysdeps/ia64/fpu/e_acosh.S: Likewise.
2656 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
2657 * sysdeps/ia64/fpu/e_acos.S: Likewise.
2658 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
2659 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
2660 * sysdeps/ia64/fpu/e_asin.S: Likewise.
2661 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
2662 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
2663 * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
2664 * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
2665 * sysdeps/ia64/fpu/e_atanh.S: Likewise.
2666 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
2667 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
2668 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
2669 * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
2670 * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
2671 * sysdeps/ia64/fpu/e_exp10.S: Likewise.
2672 * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
2673 * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
2674 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
2675 * sysdeps/ia64/fpu/e_expf.S: Likewise.
2676 * sysdeps/ia64/fpu/e_exp.S: Likewise.
2677 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
2678 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
2679 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
2680 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
2681 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
2682 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
2683 * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
2684 * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
2685 * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
2686 * sysdeps/ia64/fpu/e_log2f.S: Likewise.
2687 * sysdeps/ia64/fpu/e_log2l.S: Likewise.
2688 * sysdeps/ia64/fpu/e_log2.S: Likewise.
2689 * sysdeps/ia64/fpu/e_logf.S: Likewise.
2690 * sysdeps/ia64/fpu/e_logl.S: Likewise.
2691 * sysdeps/ia64/fpu/e_log.S: Likewise.
2692 * sysdeps/ia64/fpu/e_powf.S: Likewise.
2693 * sysdeps/ia64/fpu/e_powl.S: Likewise.
2694 * sysdeps/ia64/fpu/e_pow.S: Likewise.
2695 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
2696 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
2697 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
2698 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
2699 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
2700 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
2701 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
2702 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
2703 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
2704 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
2705 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
2706 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
2707 * sysdeps/ia64/fpu/libm_error.c: Likewise.
2708 * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
2709 * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
2710 * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
2711 * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
2712 * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
2713 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
2714 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
2715 * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
2716 * sysdeps/ia64/fpu/libm_support.h: Likewise.
2717 * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
2718 * sysdeps/ia64/fpu/s_asinh.S: Likewise.
2719 * sysdeps/ia64/fpu/s_atanf.S: Likewise.
2720 * sysdeps/ia64/fpu/s_atanl.S: Likewise.
2721 * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
2722 * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
2723 * sysdeps/ia64/fpu/s_cosf.S: Likewise.
2724 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
2725 * sysdeps/ia64/fpu/s_cos.S: Likewise.
2726 * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
2727 * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
2728 * sysdeps/ia64/fpu/s_erfc.S: Likewise.
2729 * sysdeps/ia64/fpu/s_erfl.S: Likewise.
2730 * sysdeps/ia64/fpu/s_erf.S: Likewise.
2731 * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
2732 * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
2733 * sysdeps/ia64/fpu/s_expm1.S: Likewise.
2734 * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
2735 * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
2736 * sysdeps/ia64/fpu/s_fdim.S: Likewise.
2737 * sysdeps/ia64/fpu/s_frexp.c: Likewise.
2738 * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
2739 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
2740 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
2741 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
2742 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
2743 * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
2744 * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
2745 * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
2746 * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
2747 * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
2748 * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
2749 * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
2750 * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
2751 * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
2752 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
2753 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
2754 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
2755 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
2756 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
2757 * sysdeps/ia64/fpu/s_logb.S: Likewise.
2758 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
2759 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
2760 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
2761 * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
2762 * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
2763 * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
2764 * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
2765 * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
2766 * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
2767 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
2768 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
2769 * sysdeps/ia64/fpu/s_round.S: Likewise.
2770 * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
2771 * sysdeps/ia64/fpu/s_scalbn.c: Likewise.
2772 * sysdeps/ia64/fpu/s_scalbnf.c: Likewise.
2773 * sysdeps/ia64/fpu/s_scalbnl.c: Likewise.
2774 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
2775 * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
2776 * sysdeps/ia64/fpu/s_tanh.S: Likewise.
2777 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
2778 * sysdeps/ia64/fpu/s_tan.S: Likewise.
2779 * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
2780 * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
2781 * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
2782 * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
2783 * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
2784 * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
2785
2786 [BZ #592]
2787 * sysdeps/ia64/fpu/libm_cpu_defs.h: New file.
2788 * sysdeps/ia64/fpu/libm_error_codes.h: New file.
2789
2790 [BZ #592]
2791 * sysdeps/ia64/fpu/gen_import_file_list: Updated for Intel libm
2792 2005-03-21.
2793 * sysdeps/ia64/fpu/import_file.awk: Likewise.
2794 * sysdeps/ia64/fpu/import_intel_libm: Likewise.
2795 * sysdeps/ia64/fpu/Makefile: Likewise.
2796
2797 2005-03-29 Jakub Jelinek <jakub@redhat.com>
2798
2799 [BZ #1087]
2800 * posix/fnmatch.c (fnmatch): For short patterns or strings attempt to
2801 avoid calling mbsrtowcs twice.
2802
2803 2005-03-29 Roland McGrath <roland@redhat.com>
2804
2805 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): New
2806 function, inline broken out of ...
2807 (DL_SYSDEP_OSCHECK): ... here. Use that.
2808 Do the discovery and set GLRO(dl_osversion) if successful,
2809 if __LINUX_KERNEL_VERSION <= 0.
2810 * elf/dl-load.c: Don't include dl-osinfo.h here.
2811
2812 2005-03-29 Alfred M. Szmidt <ams@gnu.org>
2813
2814 * manual/install.texi (Tools for Compilation): GNU binutils 2.15
2815 is now needed.
2816
2817 2005-03-19 Bruno Haible <bruno@clisp.org>
2818
2819 * intl/dcigettext.c (struct known_translation_t): Change type of
2820 domainname field to 'const char *'.
2821 (DCIGETTEXT): Remove const-cast.
2822
2823 2005-03-29 Thorsten Kukuk <kukuk@suse.de>
2824
2825 [BZ #661]
2826 * grp/initgroups.c (internal_getgrouplist): Check if we have
2827 enough space before adding the primary group to the list.
2828
2829 * posix/tst-execle1.c (do_test): Fix execle arguments.
2830 * posix/tst-execle2.c (do_test): Likewise.
2831
2832 2005-03-28 Roland McGrath <roland@redhat.com>
2833
2834 * sysdeps/generic/w_exp2.c [NO_LONG_DOUBLE]: Fix typos in alias names.
2835 Reported by Mark Mitchell <mark@codesourcery.com>.
2836 * Versions.def (libm): Define GLIBC_2.4 set.
2837 * math/Versions (libm: GLIBC_2.4): Add this set, with exp2l.
2838 * sysdeps/i386/Versions (libm: GLIBC_2.1): Add this set, with exp2l.
2839 * sysdeps/ia64/Versions: Likewise.
2840 * sysdeps/m68k/Versions: Likewise.
2841 * sysdeps/sparc/sparc64/Versions: Likewise.
2842 * sysdeps/x86_64/Versions: New file.
2843 * sysdeps/mips/mips64/Versions: New file.
2844
2845 * locale/langinfo.h (_NL_LOCALE_NAME): New macro.
2846 [__USE_GNU] (NL_LOCALE_NAME): New macro.
2847 * locale/nl_langinfo.c: Grok special item value for _NL_LOCALE_NAME,
2848 return locale name string for the category.
2849
2850 2005-03-25 Jakub Jelinek <jakub@redhat.com>
2851
2852 * sysdeps/generic/wcstoul_l.c: Include "wcstol_l.c" rather than
2853 <wcstol_l.c>.
2854
2855 2005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
2856
2857 * sysdeps/mips/atomicity.h: Remove unused file.
2858 * sysdeps/mips/dl-machine.h (elf_machine_rel): Add TLS relocations.
2859 * sysdeps/mips/dl-tls.h: New file.
2860 * sysdeps/mips/libc-tls.c: New file.
2861 * sysdeps/mips/tls-macros.h: New file.
2862 * sysdeps/mips/bits/atomic.h: New file.
2863 * sysdeps/mips/bits/setjmp.h: Protect against multiple inclusion.
2864 * sysdeps/mips/elf/configure.in: New file.
2865 * sysdeps/mips/elf/configure: Generated.
2866 * sysdeps/mips/sys/asm.h: New file.
2867 * sysdeps/unix/sysv/linux/mips/vfork.S: New file.
2868 * sysdeps/unix/sysv/linux/mips/clone.S: Add NPTL and five-argument
2869 clone support.
2870 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
2871 (INTERNAL_SYSCALL_NCS): New.
2872 (INTERNAL_SYSCALL): Update for non-constant support.
2873 (internal_syscall0): Likewise.
2874 (internal_syscall1): Likewise.
2875 (internal_syscall2): Likewise.
2876 (internal_syscall3): Likewise.
2877 (internal_syscall4): Likewise.
2878 (internal_syscall5): Likewise.
2879 (internal_syscall6): Likewise.
2880 (internal_syscall7): Likewise.
2881 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (SIGEV_THREAD):
2882 Update to match the kernel.
2883 (SIGEV_CALLBACK): Likewise.
2884 (SIGEV_THREAD_ID): Likewise.
2885
2886 2005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
2887
2888 [BZ #783]
2889 * elf/tst-auditmod1.c: Add MIPS support.
2890 * sysdeps/generic/ldsodefs.h (La_mips_32_regs): New.
2891 (La_mips_32_retval): New.
2892 (La_mips_64_regs): New.
2893 (La_mips_64_retval): New.
2894 (struct audit_ifaces): Add MIPS entries.
2895 * sysdeps/mips/dl-machine.h: Check RESOLVE_MAP instead of RESOLVE.
2896 (elf_machine_runtime_link_map, ELF_DL_FRAME_SIZE,
2897 ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS,
2898 ELF_MACHINE_RUNTIME_TRAMPOLINE): Move to dl-trampoline.c.
2899 (RTLD_START): Align the stack before calling _dl_init_internal.
2900 Use .ent for _dl_start_user.
2901 (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): Define.
2902 (elf_machine_rel, elf_machine_rel_relative, elf_machine_lazy_rel)
2903 (elf_machine_runtime_setup): Use "auto inline".
2904 (elf_machine_rela, elf_machine_rela_relative): Provide empty versions.
2905 (elf_machine_got_rel): Likewise. Use RESOLVE_MAP.
2906 * sysdeps/mips/dl-trampoline.c: New file.
2907 * sysdeps/mips/bits/link.h: New file.
2908 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
2909 (internal_syscall5): Use register operands instead of non-lvalue
2910 memory operands.
2911 (internal_syscall6): Likewise.
2912 (internal_syscall7): Likewise.
2913
2914 2005-03-27 Andreas Jaeger <aj@suse.de>
2915
2916 * debug/warning-nop.c (__builtin___memcpy_chk): Define away to
2917 avoid warnings with older compiler.
2918 (__builtin___memcpy_chk): Likewise.
2919 (__builtin___memmove_chk: Likewise.
2920 (__builtin___mempcpy_chk): Likewise.
2921 (__builtin___memset_chk): Likewise.
2922 (__builtin___stpcpy_chk): Likewise.
2923 (__builtin___strcat_chk): Likewise.
2924 (__builtin___strcpy_chk): Likewise.
2925 (__builtin___strncat_chk): Likewise.
2926 (__builtin___strncpy_chk): Likewise.
2927 (__builtin_object_size): Likewise.
2928
2929 2005-03-27 Daniel Jacobowitz <dan@codesourcery.com>
2930
2931 * elf/tls-macros.h: Correct typo.
2932
2933 2005-03-23 Jakub Jelinek <jakub@redhat.com>
2934
2935 [BZ #822]
2936 * nis/ypclnt.c (yp_2_yperr): Revert 2004-11-30 patch.
2937 (ypprot_err): Use yp_2_yperr table also for YP_NODOM .. YP_NOMORE.
2938
2939 2005-03-22 Roland McGrath <roland@redhat.com>
2940
2941 * locale/setlocale.c: Comment typo.
2942
2943 * scripts/versions.awk: No errors for GLIBC_PRIVATE.
2944
2945 * Versions.def (libdl, librt): Add GLIBC_2.3.4 version.
2946
2947 * scripts/versions.awk: Print all errors and die at the end.
2948 Use library name in versions array keys.
2949
2950 2005-03-22 Daniel Jacobowitz <dan@codesourcery.com>
2951
2952 * elf/elf.h (PT_ARM_EXIDX): New macro.
2953
2954 2005-03-21 Thorsten Kukuk <kukuk@suse.de>
2955
2956 [BZ #1098]
2957 * sunrpc/xdr_stdio.c (xdrstdio_getlong, xdrstdio_putlong):
2958 Convert correctly between long/int on 64bit big-endian.
2959
2960 2005-03-21 David Mosberger <davidm@hpl.hp.com>
2961
2962 * sysdeps/ia64/_mcount.S: Newer kernels don't like register-frames
2963 with more than 8 output registers. Fix this by passing original
2964 ar.pfs to _mcount_ret_helper via r3.
2965
2966 2005-03-15 Jakub Jelinek <jakub@redhat.com>
2967
2968 [BZ #786]
2969 * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Handle
2970 GL(dl_tls_static_nelem) == GL(dl_tls_max_dtv_idx).
2971 * elf/Makefile: Add rules to build and run tst-tls15.
2972 * elf/tst-tls15.c: New test.
2973 * elf/tst-tlsmod15a.c: New file.
2974 * elf/tst-tlsmod15b.c: New file.
2975
2976 2005-03-20 Ulrich Drepper <drepper@redhat.com>
2977
2978 * elf/rtld.c (dl_main): Always call init_tls if we have audit modules.
2979
2980 2005-03-20 Alfred M. Szmidt <ams@gnu.org>
2981
2982 * elf/dl-open.c (dl_open_worker): Fix typo.
2983
2984 2005-03-20 Ulrich Drepper <drepper@redhat.com>
2985
2986 * malloc/malloc.c (public_cALLOc): We cannot skip the memory
2987 clearing if perturb_byte != 0.
2988
2989 2005-03-20 Jakub Jelinek <jakub@redhat.com>
2990
2991 * posix/bits/unistd.h (pread) [__USE_FILE_OFFSET64]: Use __off64_t
2992 instead of __off_t for last argument.
2993 * debug/Makefile (tests): Add tst-lfschk{1,2,3}.
2994 * debug/tst-lfschk1.c: New test.
2995 * debug/tst-lfschk2.c: New test.
2996 * debug/tst-lfschk3.c: New test.
2997
2998 2005-02-09 Jakub Jelinek <jakub@redhat.com>
2999
3000 * sysdeps/unix/sysv/linux/bits/termios.h (CMSPAR): Define.
3001 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Add __USE_MISC
3002 and __USE_XOPEN guards to match linux/bits/termios.h.
3003 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3004 (CMSPAR): Define.
3005 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3006
3007 2005-02-10 H.J. Lu <hongjiu.lu@intel.com>
3008
3009 * sysdeps/ia64/elf/initfini.c: Add local _init and _fini labels.
3010
3011 2005-02-27 Denis Barbier <barbier@debian.org>
3012
3013 [BZ #549]
3014 * locale/iso-4217.def: Add CSD currency.
3015
3016 2005-03-19 Ulrich Drepper <drepper@redhat.com>
3017
3018 * inet/test-ifaddrs.c: Use test-skeleton.
3019 * inet/test_ifindex.c: Likewise.
3020
3021 [BZ #821]
3022 * elf/dl-lookup.c (add_dependency): Always search l_initfini if
3023 the list exists.
3024
3025 [BZ #821]
3026 * elf/Makefile: Add rules to build and run order2.
3027 * elf/order2.c: New file.
3028 * elf/order2mod1.c: New file.
3029 * elf/order2mod2.c: New file.
3030 * elf/order2mod3.c: New file.
3031 * elf/order2mod4.c: New file.
3032
3033 2005-03-19 Jakub Jelinek <jakub@redhat.com>
3034
3035 [BZ #821]
3036 * elf/dl-open.c (dl_open_worker): Print exact l_direct_opencount value,
3037 it has been incremented before.
3038
3039 2005-03-18 Ulrich Drepper <drepper@redhat.com>
3040
3041 [BZ #821]
3042 * elf/dl-fini.c (_dl_fini): Split sorting of the maps in separate
3043 function _dl_sort_fini.
3044 (_dl_sort_fini): New function.
3045 * sysdeps/generic/ldsodefs.h: Declare _dl_sort_fini.
3046 * elf/dl-close.c (_dl_close): Call _dl_sort_fini before running
3047 destructors to call them in the right order.
3048
3049 2005-02-07 Steven Munroe <sjmunroe@us.ibm.com>
3050
3051 * sysdeps/powerpc/bits/link.h (La_ppc64_regs): Add lr_vrsave.
3052 (La_ppc64_retval): Correct size of lrc_fp.
3053 * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_profile_resolve):
3054 Fix up ABI problems and complete function.
3055
3056 2005-03-10 Jakub Jelinek <jakub@redhat.com>
3057
3058 * math/test-misc.c (main): Add some more tests.
3059
3060 2005-03-17 Jakub Jelinek <jakub@redhat.com>
3061
3062 * posix/regcomp.c (re_compile_fastmap_iter): Fix check for failed
3063 __wcrtomb. Check return values of other __wcrtomb calls.
3064 * posix/regex_internal.c (build_wcs_buffer, re_string_skip_chars):
3065 Change mbclen type to size_t.
3066 (build_wcs_upper_buffer): Change mbclen and mbcdlen type to size_t.
3067 Handle mb chars whose upper case doesn't have multibyte representation
3068 in locale's charset.
3069
3070 2005-03-15 Jakub Jelinek <jakub@redhat.com>
3071
3072 * malloc/malloc.c (_int_icalloc, _int_icomalloc, iALLOc,
3073 public_iCALLOc, public_iCALLOc, public_iCOMALLOc): Protect with
3074 #ifndef _LIBC.
3075
3076 [BZ #779]
3077 * malloc/malloc.c (public_mTRIm): Initialize malloc if not yet
3078 initialized.
3079
3080 2005-03-10 Jakub Jelinek <jakub@redhat.com>
3081
3082 * misc/sys/cdefs.h (__always_inline): Define.
3083 * posix/bits/unistd.h (read, pread, pread64, readlink, getcwd, getwd):
3084 Use __always_inline instead of __inline.
3085 * socket/bits/socket2.h (recv, recvfrom): Likewise.
3086 * libio/bits/stdio2.h (gets, fgets, fgets_unlocked): Likewise.
3087 * string/bits/string3.h (__memcpy_ichk, __memmove_ichk, __mempcpy_ichk,
3088 __memset_ichk, __strcpy_ichk, __stpcpy_ichk, __strncpy_ichk,
3089 __strcat_ichk, __strncat_ichk): Use __always_inline instead of
3090 __inline__ __attribute__ ((__always_inline__)).
3091
3092 2005-03-09 Jakub Jelinek <jakub@redhat.com>
3093
3094 * debug/tst-chk1.c: Include sys/socket.h and sys/un.h.
3095 (do_test): Add new tests for recv, recvfrom, getcwd, getwd and
3096 readlink. Add some more tests for read, pread, pread64, fgets and
3097 fgets_unlocked.
3098
3099 * posix/bits/unistd.h (read, pread, pread64, readlink,
3100 getcwd, getwd): Change macros into extern inline functions.
3101 (__read_alias, __pread_alias, __pread64_alias, __readlink_alias,
3102 __getcwd_alias, __getwd_alias): New prototypes.
3103 * socket/bits/socket2.h (recv, recvfrom): Change macros into
3104 extern inline functions.
3105 (__recv_alias, __recvfrom_alias): New prototypes.
3106 * libio/bits/stdio2.h (gets, fgets, fgets_unlocked): Change macros
3107 into extern inline functions.
3108 (__gets_alias, __fgets_alias, __fgets_unlocked_alias): New prototypes.
3109
3110 * debug/pread_chk.c (__pread_chk): Fix order of arguments passed
3111 to __pread.
3112 * debug/pread64_chk.c (__pread64_chk): Fix order of arguments passed
3113 to __pread64.
3114
3115 2005-03-18 Daniel Jacobowitz <dan@codesourcery.com>
3116
3117 * configure.in: Use %function instead of @function.
3118
3119 2005-03-18 Ulrich Drepper <drepper@redhat.com>
3120
3121 [BZ #821]
3122 * include/link.h (struct link_map): Remove l_opencount. Add l_removed.
3123 Change type of l_idx to int.
3124 * elf/dl-close.c: Basically rewrite. Do not use l_opencount to
3125 determine whether a DSO has to be unloaded. Instead compute this
3126 in this function.
3127 * elf/dl-deps.c: No need to manipulate l_opencount anymore.
3128 * elf/dl-lookup.c: Likewise.
3129 * elf/rtld.c: Likewise
3130 * elf/dl-open.c: Likewise. Use l_init_called to determine whether
3131 object was just loaded.
3132 * elf/dl-fini.c: Bump l_direct_opencount instead of l_opencount.
3133 * elf/dl-load.c (_dl_map_object_from_fd): Do not recognize DSO which
3134 is about to be unloaded as a match.
3135 (_dl_map_object): Likewise.
3136 * elf/do-lookup.h (do_lookup_x): Do not look into DSO which is about
3137 to be unloaded.
3138 * elf/circleload1.c: Don't use l_opencount anymore.
3139 * elf/neededtest.c: Likewise.
3140 * elf/neededtest2.c: Likewise.
3141 * elf/neededtest3.c: Likewise.
3142 * elf/neededtest4.c: Likewise.
3143 * elf/unload.c: Likewise.
3144 * elf/unload2.c: Likewise.
3145 * elf/loadtest.c: Likewise.
3146
3147 [BZ #821]
3148 * elf/rtld.c: Preloading errors are now never fatal.
3149
3150 2005-03-08 Jakub Jelinek <jakub@redhat.com>
3151
3152 [BZ #821]
3153 * elf/Makefile: Add rules to build and run unload5 test.
3154 * elf/unload5.c: New file.
3155
3156 [BZ #821]
3157 * elf/Makefile: Add rules to build and run unload4 test.
3158 * elf/unload4.c: New file.
3159 * elf/unload4mod1.c: New file.
3160 * elf/unload4mod2.c: New file.
3161 * elf/unload4mod3.c: New file.
3162 * elf/unload4mod4.c: New file.
3163
3164 2005-03-17 Roland McGrath <roland@redhat.com>
3165
3166 * nscd/aicache.c (addhstaiX): Tweak type to avoid warning.
3167
3168 2005-03-16 Richard Henderson <rth@redhat.com>
3169
3170 * include/libc-symbols.h (__hidden_proto): Remove bogus declaration
3171 of internal.
3172 (__hidden_def1, __hidden_dot_def1): Remove.
3173 (__hidden_def2, __hidden_def3): Remove.
3174 (__hidden_ver1): New.
3175 (hidden_ver, hidden_def, hidden_weak): Use it.
3176 (hidden_data_ver, hidden_data_ver, hidden_data_weak): Use non-data
3177 version of the macro.
3178
3179 * include/wchar.h (__wcscoll): Remove.
3180 * wcsmbs/wcscoll.c: Define wcscoll directly instead of via __wcscoll.
3181 * string/strcoll.c: Don't issue libc_hidden_def STRCOLL redefined.
3182
3183 2005-03-16 Daniel Jacobowitz <dan@codesourcery.com>
3184
3185 * elf/elf.h: Define MIPS TLS relocations.
3186
3187 2005-03-16 Ulrich Drepper <drepper@redhat.com>
3188
3189 * elf/circleload1.c (main): Pretty printing.
3190
3191 2005-03-15 Jakub Jelinek <jakub@redhat.com>
3192
3193 * sysdeps/generic/wordexp.c (exec_comm_child): Add inline keyword.
3194 Patch by Dan Kegel <dank@kegel.com>.
3195
3196 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rel_relative,
3197 elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel):
3198 Add inline keyword.
3199 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
3200 elf_machine_rela_relative, elf_machine_lazy_rel): Add always_inline
3201 attribute.
3202 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
3203 elf_machine_rela_relative, elf_machine_lazy_rel): Likewise. Change
3204 static inline into auto inline.
3205 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
3206 elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
3207 * sysdeps/generic/dl-machine.h (elf_machine_rel, elf_machine_rela):
3208 Likewise.
3209 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rel_relative,
3210 elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel):
3211 Likewise.
3212
3213 2005-03-15 Jakub Jelinek <jakub@redhat.com>
3214
3215 [BZ #789]
3216 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Fix asm constraints.
3217 Remove memory clobber.
3218
3219 * sysdeps/x86_64/hp-timing.h (HP_TIMING_ACCUM): Make the addition
3220 thread-safe. Subtract GLRO(dl_hp_timing_overhead) from Diff.
3221
3222 2005-03-14 Jakub Jelinek <jakub@redhat.com>
3223
3224 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Don't include
3225 asm/types.h.
3226
3227 2005-03-10 GOTO Masanori <gotom@debian.or.jp>
3228
3229 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Define MAP_POPULATE and
3230 MAP_NONBLOCK.
3231 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
3232 Correct MAP_GROWSDOWN value.
3233
3234 2005-03-13 Roland McGrath <roland@redhat.com>
3235
3236 * elf/tls-macros.h: #include_next <tls-macros.h> to get a sysdeps
3237 version if there is one. Only #error if macros are then undefined.
3238 * sysdeps/generic/tls-macros.h: New file.
3239
3240 2005-03-10 GOTO Masanori <gotom@debian.or.jp>
3241
3242 * sysdeps/hppa/configure.in: Remove old Makefile leftovers.
3243 * sysdeps/hppa/configure: Regenerated.
3244
3245 2005-03-08 Roland McGrath <roland@redhat.com>
3246
3247 * sysdeps/gnu/errlist-compat.awk: Use NERR in all array decls, so
3248 array types match exactly in C alias decls.
3249
3250 2005-03-07 Ulrich Drepper <drepper@redhat.com>
3251
3252 * malloc/arena.c (ptmalloc_init): Recognize MALLOC_PERTURB_ and call
3253 mallopt appropriately.
3254 * malloc/malloc.h: Define M_PERTURB.
3255 * malloc/malloc.c (perturb_byte): New variable.
3256 (alloc_perturb, free_perturb): New macros.
3257 (_int_malloc): Before returning, overwrite the memory if this is
3258 requested.
3259 (_int_free): Overwrite freed memory if requested.
3260 (mALLOPt): Handle M_PERTURB.
3261 * test-skeleton.c: Add call to mallopt with M_PERTURB command.
3262
3263 * elf/dl-close.c (_dl_close): Decrement l_opencount before
3264 printing debug message.
3265 * elf/dl-open.c (dl_open_worker): Always print the new opencount
3266 in debug messages.
3267
3268 2005-03-06 Ulrich Drepper <drepper@redhat.com>
3269
3270 * elf/dl-close.c (_dl_close): Unify debug message format.
3271
3272 * elf/dl-close.c (_dl_close): Print debug message just before
3273 destroying a link map.
3274
3275 * elf/do-lookup.h (do_lookup_x): Add namespace info to debug output.
3276 * elf/dl-version.c (match_symbol): Likewise.
3277
3278 * posix/bits/unistd.h (pread): Fix typo in __USE_FILE_OFFSET64 code.
3279
3280 * debug/recv_chk.c (__recv_chk): Always fail if request could
3281 overflow the buffer.
3282 * debug/recvfrom_chk.c (__recvfrom_chk): Likewise.
3283 * socket/bits/socket2.h (recv): Avoid calls to the _chk variant if
3284 we know the call succeeds.
3285 (recvfrom): Likewise.
3286
3287 2005-03-05 Ulrich Drepper <drepper@redhat.com>
3288
3289 * posix/regexec.c (check_node_accept_bytes): Correct cast to avoid
3290 warning.
3291 * posix/regex_internal.c (re_string_reconstruct): Add cast to
3292 avoid warning.
3293 (build_wcs_upper_buffer): Change type of bug to plain char.
3294 * locale/weightwc.h (findidx): Add casts to avoid warnings.
3295 * time/mktime.c (ranged_convert): Initialize tm to make the
3296 compiler happy.
3297 * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Add casts to avoid warnings.
3298 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Add casts to avoid warnings.
3299 * wcsmbs/mbsnrtowcs.c: Add casts to avoid warnings.
3300 * wcsmbs/wcsrtombs.c (__wcsrtombs): Add casts to avoid warnings.
3301 * wcsmbs/wcrtomb.c (__wcrtomb): Add casts to avoid warnings.
3302 * wcsmbs/mbrtowc.c (__mbrtowc): Use unsigned char for outbuf.
3303 * wcsmbs/wctob.c (wctob): Make buf array of unsigned char.
3304 * sysdeps/generic/strchrnul.c: Add cast to avoid warning.
3305 * libio/iofwide.c: Add casts to avoid warnings.
3306 * stdio-common/printf-prs.c (parse_printf_format): Introduce new
3307 variable f to avoid warnings.
3308 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3309 Fix a few casts to avoid warnings.
3310 * iconv/gconv_simple.c (internal_utf8_loop): Make start unsigned
3311 to avoid warning.
3312
3313 [BZ #1101]
3314 * posix/regex_internal.c [_LIBC] (build_wcs_buffer): Avoid using
3315 dynamically sized array.
3316 (build_wcs_upper_buffer): Likewise.
3317
3318 2005-03-05 Jakub Jelinek <jakub@redhat.com>
3319
3320 * include/bits/unistd.h: New file.
3321 * include/bits/socket2.h: New file.
3322
3323 2005-03-05 Ulrich Drepper <drepper@redhat.com>
3324
3325 * sunrpc/key_call.c: Remove doors support.
3326 * sunrpc/Makefile: Remove CPPFLAGS-key_call.c definition.
3327 * configure.in: Remove test for doors support which never existed.
3328 * config.make.in: Remove have_doors entry.
3329
3330 * configure.in: Make sure at least gcc 3.4 is used. Undo last change.
3331 * config.make.in: Undo last change.
3332
3333 * sysdeps/i386/Makefile (CFLAGS-initfini.s): Unconditionally use
3334 -mtune.
3335
3336 2005-03-05 Roland McGrath <roland@redhat.com>
3337
3338 * sysdeps/generic/ldsodefs.h (_dl_out_of_memory_internal): Remove decl.
3339 (_dl_out_of_memory): Use rtld_hidden_proto.
3340 * elf/dl-error.c (_dl_out_of_memory): Use rtld_hidden_data_def.
3341 (_dl_signal_error): Don't use INTUSE on _dl_out_of_memory.
3342 * elf/dl-open.c (_dl_open): Likewise.
3343 * elf/dl-deps.c (_dl_map_object_deps): Likewise.
3344
3345 * sunrpc/des_impl.c (des_set_key): Make first argument unsigned char *.
3346
3347 * elf/dl-addr.c (_dl_addr): Add a cast.
3348
3349 [BZ #821]
3350 * elf/unload3mod4.c: Declare foo.
3351 * elf/testobj2.c: Include <stdio.h>.
3352
3353 * sysdeps/gnu/errlist.awk: Emit NERR macro for _sys_nerr_internal
3354 value constant, and use it in the defn.
3355 * sysdeps/gnu/errlist-compat.awk: Use NERR in array decl.
3356 Use actual size for compat array decls.
3357
3358 * config.make.in (cc-mtune): New substituted variable.
3359 * configure.in (libc_cv_cc_mtune): New test for -mtune= switch,
3360 done only if libc_mtune_example is defined.
3361 * sysdeps/i386/configure.in (libc_mtune_example): Set it.
3362 * sysdeps/i386/Makefile (CFLAGS-initfini.s): Use $(cc-mtune).
3363
3364 2005-03-05 Jakub Jelinek <jakub@redhat.com>
3365
3366 * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define
3367 unconditionally to (defined RTLD_BOOTSTRAP).
3368 * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Likewise.
3369
3370 2005-03-05 Jakub Jelinek <jakub@redhat.com>
3371
3372 * Makerules ($(inst_libdir)/libc.so): Use $(slibdir) instead of
3373 $(inst_slibdir) in AS_NEEDED directive.
3374
3375 2005-03-03 Jakub Jelinek <jakub@redhat.com>
3376
3377 * posix/bits/unistd.h (pread, pread64): Don't swap function arguments.
3378
3379 2005-03-01 H.J. Lu <hongjiu.lu@intel.com>
3380
3381 [BZ #776]
3382 * iconv/iconvconfig.c: Fix comment for the output file.
3383 (write_output): Clear padding in header.
3384
3385 2005-03-03 Ulrich Drepper <drepper@redhat.com>
3386
3387 [BZ #821]
3388 * elf/dl-close.c (_dl_close): Don't try to set up new searchpath if the
3389 loader is closed. Fixes unload3.
3390 * elf/tst-global1.c: New file.
3391 * elf/Makefile (tests): Add tst-global1.
3392 * elf/testobj2.c (p): New function.
3393
3394 2005-03-03 Jakub Jelinek <jakub@redhat.com>
3395
3396 [BZ #821]
3397 * elf/Makefile: Add rules to build and run unload3 test.
3398 * elf/unload3.c: New test.
3399 * elf/unload3mod1.c: New file.
3400 * elf/unload3mod2.c: New file.
3401 * elf/unload3mod3.c: New file.
3402 * elf/unload3mod4.c: New file.
3403
3404 2005-02-21 Alan Modra <amodra@bigpond.net.au>
3405
3406 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Don't
3407 use __uint128_t.
3408
3409 2005-03-01 Jakub Jelinek <jakub@redhat.com>
3410
3411 * posix/bits/unistd.h (read, pread, pread64): Use __bos0 instead
3412 of __bos.
3413 * socket/bits/socket2.h (recv, recvfrom): Likewise.
3414
3415 2005-03-01 Roland McGrath <roland@redhat.com>
3416
3417 [BZ #721]
3418 * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
3419 of [RESOLVE_MAP].
3420
3421 2005-03-01 Alfred M. Szmidt <ams@gnu.org>
3422
3423 [BZ #777]
3424 * elf/dl-load.c (__stack_prot) [!PROT_GROWSUP && !PROT_GROWSDOWN]:
3425 Add missing initializer.
3426
3427 [BZ #777]
3428 * malloc/arena.c: #include <stdbool.h> outside of [SHARED &&
3429 USE_TLS && !USE___THREAD].
3430
3431 2005-02-26 GOTO Masanori <gotom@debian.or.jp>
3432
3433 * csu/Makefile: Use printf instead of echo for some shells.
3434
3435 2005-02-28 Roland McGrath <roland@redhat.com>
3436
3437 * debug/warning-nop.c (__nop): Rename to nop, make it static.
3438 (__warndecl): Use alias attribute directly, instead of strong_alias
3439 macro. Add attribute_hidden.
3440
3441 2005-02-28 Ulrich Drepper <drepper@redhat.com>
3442
3443 * posix/bits/unistd.h: Avoid calling __*_chk variants if we can
3444 determine the call will never trigger a failure.
3445 * debug/read_chk.c (__read_chk): Always fail if the buffer is too
3446 small.
3447 * debug/readlink_chk.c (__readlink_chk): Likewise.
3448 * debug/pread64_chk.c (__pread64_chk): Likewise.
3449 * debug/pread_chk.c (__pread_chk): Likewise.
3450
3451 * sysdeps/i386/i686/memset_chk.S: Remove alias and warning.
3452 * sysdeps/x86_64/memset_chk.S: Likewise.
3453
3454 2005-02-24 Roland McGrath <roland@redhat.com>
3455
3456 * debug/Versions (libc: GLIBC_2.4): Remove
3457 __memset_zero_constant_len_parameter.
3458 * sysdeps/generic/memset_chk.c: Remove alias and warning.
3459 * misc/sys/cdefs.h (__warndecl): New macro.
3460 * debug/warning-nop.c: New file.
3461 * string/bits/string3.h (memset): Call __warn_memset_zero_len with no
3462 arguments, instead of calling __memset_zero_constant_len_parameter.
3463 Use __warndecl for __warn_memset_zero_len.
3464 * debug/Makefile (routines): Add $(static-only-routines).
3465 (static-only-routines): New variable.
3466
3467 2005-02-27 Ulrich Drepper <drepper@redhat.com>
3468
3469 * po/tr.po: Update from translation team.
3470
3471 2005-02-26 Ulrich Drepper <drepper@redhat.com>
3472
3473 * elf/dl-addr.c: Cleanups. Move declaration next to first use.
3474
3475 * dlfcn/dlerror.c (check_free): New function. Extract common code
3476 from fini and free_key_mem. Check whether this is libdl in the
3477 base namespace.
3478
3479 2005-02-25 Ulrich Drepper <drepper@redhat.com>
3480
3481 * elf/dl-lookup.c (_dl_debug_bindings): Add namespace information
3482 to debug output.
3483
3484 2004-11-11 Richard Sandiford <rsandifo@redhat.com>
3485
3486 [BZ #758]
3487 * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h): Only
3488 preprocess <asm/unistd.h> if it defines ABI-prefixed syscall names
3489 like __NR_N32_open. Just include <asm/unistd.h> otherwise.
3490 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
3491 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: Delete
3492 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h (SYS_ify): Use the
3493 standard __NR prefix.
3494 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h (SYS_ify): Likewise.
3495 * sysdeps/unix/sysv/linux/mips/Makefile (syscall-%.h): Rework so that
3496 the output file is compatible with both pre-2.6 and 2.6 kernel headers.
3497 Extract separate syscall lists for each ABI.
3498
3499 2005-02-23 Ulrich Drepper <drepper@redhat.com>
3500
3501 * Makerules (libc.so): Add AS_NEEDED line for dynamic linker.
3502
3503 [BZ #719]
3504 * elf/Makefile: Run tst-tls9-static again.
3505
3506 2005-02-22 Ulrich Drepper <drepper@redhat.com>
3507
3508 [BZ #719]
3509 * sysdeps/generic/libc-tls.c (static_dtv): Size the same as the
3510 slotinfo array.
3511 (__libc_setup_tls): Initialize length of DTV based on array length.
3512 * elf/dl-load.c: Revert last change.
3513 * sysdeps/generic/dl-tls.c: Revert last change.
3514
3515 * posix/Makefile (tests): Add tst-execvp1, tst-execvp2, tst-execlp1,
3516 tst-execlp2, tst-execv1, tst-execv2, tst-execl1, tst-execl2,
3517 tst-execve1, tst-execve2, tst-execle1, and tst-execle2.
3518 * posix/tst-execl1.c: New file.
3519 * posix/tst-execl2.c: New file.
3520 * posix/tst-execle1.c: New file.
3521 * posix/tst-execle2.c: New file.
3522 * posix/tst-execlp1.c: New file.
3523 * posix/tst-execlp2.c: New file.
3524 * posix/tst-execv1.c: New file.
3525 * posix/tst-execv2.c: New file.
3526 * posix/tst-execve1.c: New file.
3527 * posix/tst-execve2.c: New file.
3528 * posix/tst-execvp1.c: New file.
3529 * posix/tst-execvp2.c: New file.
3530
3531 2005-02-22 Roland McGrath <roland@redhat.com>
3532
3533 * include/signal.h: Revert last change.
3534 (__sigemptyset): Use __builtin_memset instead of memset.
3535
3536 2005-02-22 Ulrich Drepper <drepper@redhat.com>
3537
3538 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Use
3539 non-cancelable I/O functions.
3540
3541 2005-02-22 Jakub Jelinek <jakub@redhat.com>
3542
3543 [BZ #769]
3544 * nscd/nscd-client.h: Include sys/uio.h.
3545 (__readall, __readvall, writeall): New prototypes.
3546 * nscd/connections.c (writeall): New function.
3547 (handle_request): Use it.
3548 * nscd/aicache.c (addhstaiX): Likewise.
3549 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3550 * nscd/hstcache.c (cache_addhst): Likewise.
3551 * nscd/grpcache.c (cache_addgr): Likewise.
3552 * nscd/pwdcache.c (cache_addpw): Likewise.
3553 * nscd/nscd_helper.c (__readall, __readvall): New functions.
3554 * nscd/nscd_getai.c (__nscd_getai): Use them.
3555 * nscd/nscd_getpw_r.c (__nscd_getpw_r): Likewise.
3556 * nscd/nscd_getgr_r.c (__nscd_getgr_r): Likewise.
3557 * nscd/nscd_gethst_r.c (__nscd_gethst_r): Likewise.
3558 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3559
3560 2005-02-22 Roland McGrath <roland@redhat.com>
3561
3562 * include/sys/socket.h: Declare __recv.
3563 * sysdeps/generic/recv.c (recv): Rename to __recv, and add weak alias.
3564 * sysdeps/mach/hurd/recv.c: Likewise.
3565
3566 * sysdeps/unix/sysv/linux/libc_fatal.c: Include <execinfo.h> for
3567 __backtrace_* decls.
3568
3569 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3570 (INTERNAL_SYSCALL_ERROR_P): Evalute VAL. Parenthesize ERR.
3571 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
3572
3573 * include/signal.h: Include <string.h> for memset decl.
3574
3575 2005-02-22 Andreas Schwab <schwab@suse.de>
3576
3577 * posix/execvp.c (execvp): Fix invalid free.
3578
3579 2005-02-22 Jakub Jelinek <jakub@redhat.com>
3580
3581 [BZ #1095]
3582 * malloc/Makefile (CFLAGS-mcheck-init.c): Add.
3583 * sunrpc/Makefile: Add $(PIC-ccflag) to CFLAGS-x* for
3584 librpcsvc.a objects.
3585
3586 2005-02-21 Ulrich Drepper <drepper@redhat.com>
3587
3588 [BZ #1107]
3589 * iconvdata/ibm930.h: Correct Yen mapping.
3590 * iconvdata/ibm939.h: Likewise.
3591 * iconvdata/testdata/IBM930..UTF8: Adjust test data.
3592 * iconvdata/testdata/IBM939..UTF8: Likewise.
3593 Patch by Jiro Sekiba <SEKIBA@jp.ibm.com>.
3594
3595 * iconvdata/Makefile (modules): Add IBM1025, IBM1122, IBM1137, IBM1153,
3596 IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
3597 (distribute): Add ibm1025.c, ibm1025.h, ibm1122.c, ibm1122.h,
3598 ibm1137.c, ibm1137.h, ibm1153.c, ibm1153.h, ibm1154.c, ibm1154.h,
3599 ibm1155.c, ibm1155.h, ibm1156.c, ibm1156.h, ibm1157.c, ibm1157.h,
3600 ibm1158.c, and ibm1158.h.
3601 * iconvdata/TESTS: Add IBM1025, IBM1122, IBM1137, IBM1153,
3602 IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
3603 * iconvdata/gconv-modules: Likewise.
3604 * iconvdata/ibm1025.c: New file.
3605 * iconvdata/ibm1025.h: New file.
3606 * iconvdata/ibm1122.c: New file.
3607 * iconvdata/ibm1122.h: New file.
3608 * iconvdata/ibm1137.c: New file.
3609 * iconvdata/ibm1137.h: New file.
3610 * iconvdata/ibm1153.c: New file.
3611 * iconvdata/ibm1153.h: New file.
3612 * iconvdata/ibm1154.c: New file.
3613 * iconvdata/ibm1154.h: New file.
3614 * iconvdata/ibm1155.c: New file.
3615 * iconvdata/ibm1155.h: New file.
3616 * iconvdata/ibm1156.c: New file.
3617 * iconvdata/ibm1156.h: New file.
3618 * iconvdata/ibm1157.c: New file.
3619 * iconvdata/ibm1157.h: New file.
3620 * iconvdata/ibm1158.c: New file.
3621 * iconvdata/ibm1158.h: New file.
3622 * iconvdata/testdata/IBM1025: New file.
3623 * iconvdata/testdata/IBM1025..UTF8: New file.
3624 * iconvdata/testdata/IBM1122: New file.
3625 * iconvdata/testdata/IBM1122..UTF8: New file.
3626 * iconvdata/testdata/IBM1137: New file.
3627 * iconvdata/testdata/IBM1137..UTF8: New file.
3628 * iconvdata/testdata/IBM1153: New file.
3629 * iconvdata/testdata/IBM1153..UTF8: New file.
3630 * iconvdata/testdata/IBM1154: New file.
3631 * iconvdata/testdata/IBM1154..UTF8: New file.
3632 * iconvdata/testdata/IBM1155: New file.
3633 * iconvdata/testdata/IBM1155..UTF8: New file.
3634 * iconvdata/testdata/IBM1156: New file.
3635 * iconvdata/testdata/IBM1156..UTF8: New file.
3636 * iconvdata/testdata/IBM1157: New file.
3637 * iconvdata/testdata/IBM1157..UTF8: New file.
3638 * iconvdata/testdata/IBM1158: New file.
3639 * iconvdata/testdata/IBM1158..UTF8: New file.
3640 Contributed by Jiro Sekiba <SEKIBA@jp.ibm.com>.
3641
3642 2005-02-10 Paolo Bonzini <bonzini@gnu.org>
3643
3644 * posix/regcomp.c (lower_subexp): Do not optimize empty
3645 subexpressions even with REG_NOSUB.
3646 * posix/rxspencer/tests: Add a previously failing testcase.
3647
3648 2005-02-21 Alan Modra <amodra@bigpond.net.au>
3649
3650 [BZ #719]
3651 * elf/dl-reloc.c (_dl_nothread_init_static_tls): Assert that dtv
3652 array index is within bounds.
3653
3654 2005-02-21 Ulrich Drepper <drepper@redhat.com>
3655
3656 [BZ #719]
3657 * elf/dl-load.c: Do not allow PT_TLS in modules loaded in statically
3658 linked code.
3659 * sysdeps/generic/dl-tls.c [!SHARED]: Don't build _dl_next_tls_modid.
3660 * elf/Makefile: Remove rules to build and run tst-tls9-static.
3661
3662 [BZ #719]
3663 * elf/dl-reloc.c (_dl_nothread_init_static_tls): Avoid using
3664 THREAD_DTV multiple times, this minimally reduces code size on
3665 some archs.
3666
3667 2005-02-21 Jakub Jelinek <jakub@redhat.com>
3668
3669 [BZ #768]
3670 * nscd/nscd_gethst_r.c (nscd_gethst_r): Set *h_errnop to
3671 NETDB_INTERNAL if buffer is too small.
3672
3673 [BZ #768]
3674 * nscd/hstcache.c (INCR): Remove.
3675 (addhstbyX): Double buflen in each iteration rather than add INCR.
3676 * nscd/grpcache.c: Likewise.
3677 * nscd/pwdcache.c: Likewise.
3678
3679 2005-02-21 Ulrich Drepper <drepper@redhat.com>
3680
3681 * sysdeps/unix/sysv/linux/libc_fatal.c: Print backtrace and memory
3682 map if requested.
3683 * debug/chk_fail.c: Request backtrace and memory map dump.
3684
3685 * Versions.def: Add GLIBC_2.4 for libc.
3686 * debug/fgets_chk.c: New file.
3687 * debug/fgets_u_chk.c: New file.
3688 * debug/getcwd_chk.c: New file.
3689 * debug/getwd_chk.c: New file.
3690 * debug/readlink_chk.c: New file.
3691 * debug/read_chk.c: New file.
3692 * debug/pread_chk.c: New file.
3693 * debug/pread64_chk.c: New file.
3694 * debug/recv_chk.c: New file.
3695 * debug/recvfrom_chk.c: New file.
3696 * debug/Versions: Add all new functions with version GLIBC_2.4.
3697 * debug/Makefile (routines): Add fgets_chk, fgets_u_chk, read_chk,
3698 pread_chk, pread64_chk, recv_chk, recvfrom_chk, readlink_chk,
3699 getwd_chk, and getcwd_chk. Plus appropriate CFLAGS definitions.
3700 * debug/tst-chk1.c: Add more tests.
3701 * libio/bits/stdio2.h: Add macros for fgets and fgets_unlocked.
3702 * include/stdio.h: Declare __fgets_chk and __fgets_unlocked_chk.
3703 * posix/unistd.h: Include <bits/unistd.h> for fortification.
3704 * posix/bits/unistd.h: New file.
3705 * posix/Makefile (headers): Add bits/unistd.h.
3706 * socket/sys/socket.h: Include <bits/socket2.h> for fortification.
3707 * socket/bits/socket2.h: New file.
3708 * socket/Makefile (headers): Add bits/socket2.h.
3709
3710 * string/bits/string3.h: Extend memset macro to check for zero 3rd
3711 parameter and use __memset_zero_constant_len_parameter in that case.
3712 * sysdeps/generic/memset_chk.c: Add
3713 __memset_zero_constant_len_parameter alias and linker warning.
3714 * debug/Versions: Add __memset_zero_constant_len_parameter to libc
3715 with version GLIBC_2.4.
3716
3717 * sysdeps/generic/bits/types.h: Don't unnecessarily use __extension__
3718 in __STD_TYPE definition.
3719
3720 2005-02-21 Jakub Jelinek <jakub@redhat.com>
3721
3722 * malloc/malloc.c (malloc_printerr): If MALLOC_CHECK_={5,7}, print
3723 the error message rather than program name.
3724
3725 2005-02-21 Ulrich Drepper <drepper@redhat.com>
3726
3727 [BZ #767]
3728 * posix/unistd.h: symlink and readlink are unconditionally
3729 available in the 2001 spec.
3730
3731 2005-02-16 Roland McGrath <roland@redhat.com>
3732
3733 * intl/dcigettext.c (_nl_find_msg): Add a cast.
3734
3735 * nis/nis_clone_dir.c (nis_clone_directory): Use char * for ADDR.
3736 * nis/nis_clone_obj.c (nis_clone_object): Likewise.
3737 * nis/nis_clone_res.c (nis_clone_result): Likewise.
3738
3739 * resolv/nss_dns/dns-network.c (getanswer_r): Use const unsigned char *
3740 for END_OF_MESSAGE and CP.
3741
3742 * resolv/res_send.c (send_dg): Add else branch for case impossible
3743 unless `poll' is buggy.
3744
3745 * crypt/crypt_util.c (__setkey_r): Add a cast.
3746
3747 * locale/programs/linereader.c (get_toplvl_escape): Use size_t for
3748 NBYTES, and unsigned char * for BYTES.
3749
3750 * locale/programs/charmap.c (charmap_new_char): Use size_t and
3751 unsighed char * for NBYTES, BYTES parameters.
3752
3753 * sysdeps/generic/dl-hash.h (_dl_elf_hash): Take const char * argument
3754 and cast it.
3755 * sysdeps/i386/i686/dl-hash.h (_dl_elf_hash): Likewise.
3756
3757 * sunrpc/create_xid.c (_create_xid): Don't use unsigned long for RES.
3758
3759 * sunrpc/svcauth_des.c (_svcauth_des): Fix cast type.
3760
3761 * sunrpc/auth_des.c (authdes_create): Don't use u_char for PKEY_DATA.
3762 (authdes_marshal): Don't use unsigned int for LEN.
3763 * sunrpc/xdr.c (xdr_hyper): Don't use unsigned long for T2.
3764 (xdr_u_hyper): Likewise.
3765 (xdr_u_short): Don't use u_long for L.
3766 * sunrpc/xdr_intXX_t.c (xdr_int64_t): Don't use uint32_t for T2.
3767
3768 * inet/rexec.c (rexec_af): Use socklen_t.
3769 * sunrpc/key_call.c (getkeyserv_handle): Likewise.
3770 * sunrpc/rtime.c (rtime): Likewise.
3771 * resolv/res_send.c (send_vc, send_dg): Likewise.
3772 * nis/nis_callback.c (__nis_create_callback): Likewise.
3773
3774 * sysdeps/generic/libc-start.c: Use unsigned int for nthreads ptr.
3775
3776 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix type of ADDR local.
3777
3778 * libio/libio.h (_IO_BE): Add parenthesis around EXPR.
3779
3780 * intl/dcigettext.c (INTVARDEF, INTUSE): Macros removed.
3781 (_nl_default_dirname): Use libc_hidden_data_def instead of INTVARDEF.
3782 (libc_freeres_fn, DCIGETTEXT): Don't use INTUSE.
3783 * intl/bindtextdom.c (INTUSE): Macro removed.
3784 (_nl_default_dirname): Use libc_hidden_proto.
3785 (set_binding_values): Don't use INTUSE.
3786 * include/libintl.h (_libc_intl_domainname_internal): Decl removed.
3787 (_libc_intl_domainname): Use libc_hidden_proto.
3788 * posix/regex_internal.h (gettext): Remove INTUSE on it.
3789 * locale/SYS_libc.c (_libc_intl_domainname): Use libc_hidden_data_def
3790 rather than INTDEF.
3791 * include/libintl.h (_): Don't use *_internal name.
3792
3793 * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Use int32_t,
3794 not uint32_t.
3795 * locale/lc-ctype.c (_nl_postload_ctype): Likewise for assignments.
3796
3797 * iconv/gconv_open.c (__gconv_open): Remove useless cast.
3798
3799 [BZ #721]
3800 * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
3801 of [RESOLVE_MAP].
3802 * sysdeps/sh/dl-machine.h (ELF_MACHINE_NO_REL): Likewise.
3803 * sysdeps/powerpc/powerpc32/dl-machine.h
3804 (elf_machine_rel, elf_machine_rel_relative): Removed.
3805 * sysdeps/powerpc/powerpc64/dl-machine.h
3806 (elf_machine_rel, elf_machine_rel_relative): Removed.
3807
3808 2005-02-03 Alexandre Oliva <aoliva@redhat.com>
3809
3810 [BZ #721]
3811 * elf/dynamic-link.h: Don't declare nested auto functions that are
3812 not going to be defined.
3813
3814 2004-07-23 Jakub Jelinek <jakub@redhat.com>
3815
3816 [BZ #284]
3817 * include/features.h (_POSIX_SOURCE, _POSIX_C_SOURCE): Define
3818 if _XOPEN_SOURCE >= 500 even if __STRICT_ANSI__ is defined.
3819
3820 2005-02-16 Roland McGrath <roland@redhat.com>
3821
3822 * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Move UBP_EV defn
3823 inside [! SHARED] where it's used.
3824
3825 2005-02-15 Ulrich Drepper <drepper@redhat.com>
3826
3827 * sysdeps/generic/bits/byteswap.h: Make sure result of all the
3828 functions and macros is unsigned.
3829
3830 2005-02-11 Barry deFrese <bddebian@comcast.net>
3831
3832 [BZ #722]
3833 * sysdeps/mach/hurd/setresgid.c: Use weak_alias.
3834 * sysdeps/mach/hurd/setresuid.c: Likewise.
3835
3836 2005-02-14 GOTO Masanori <gotom@debian.or.jp>
3837
3838 * misc/sys/syslog.h: Fix typo in comment.
3839
3840 2005-02-14 Roland McGrath <roland@redhat.com>
3841
3842 [BZ #720]
3843 * sysdeps/unix/sysv/linux/sys/kd.h: Don't leave _LINUX_TYPES_H defined
3844 if it wasn't originally.
3845
3846 2005-02-14 GOTO Masanori <gotom@debian.or.jp>
3847
3848 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove the duplicated
3849 getpeername entry.
3850 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3851 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3852
3853 2005-02-11 Jakub Jelinek <jakub@redhat.com>
3854
3855 * scripts/soversions.awk: Only record first WORDSIZE{32,64}
3856 matching line.
3857
3858 2005-02-14 Alan Modra <amodra@bigpond.net.au>
3859
3860 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Define
3861 with auto inline, and attribute always_inline.
3862 (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
3863 (elf_machine_rel, elf_machine_rel_relative): Likewise.
3864 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
3865 (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
3866 (elf_machine_rel, elf_machine_rel_relative): Likewise.
3867 (elf_machine_tprel): Likewise.
3868
3869 2005-02-14 Andreas Schwab <schwab@suse.de>
3870
3871 * manual/filesys.texi (Random Access Directory): Fix type of file
3872 position value for telldir and seekdir.
3873 (Attribute Meanings): Fix typo.
3874
3875 2005-02-14 H.J. Lu <hongjiu.lu@intel.com>
3876
3877 * csu/elf-init.c (__libc_csu_fini): Enable if LIBC_NONSHARED
3878 isn't defined.
3879 * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Call fini
3880 if SHARED isn't defined.
3881 * elf/Makefile (tests-static): Add tst-array1-static.
3882 ($(objpfx)tst-array1-static.out): New target.
3883 * elf/tst-array1-static.c: New file.
3884
3885 2005-02-11 Jakub Jelinek <jakub@redhat.com>
3886
3887 [BZ #1100]
3888 * debug/chk_fail.c (__chk_fail): Add a while (1) loop around
3889 __libc_message to kill GCC warning about noreturn function returning.
3890
3891 * elf/rtld.c (dlmain): If LD_TRACE_PRELINKING, clear l_relocated flag
3892 before relocating ld.so again.
3893
3894 * elf/rtld.c (_dl_start): Set bootstrap_map.l_relocated even
3895 for already prelinked ld.so.
3896
3897 2005-02-11 Roland McGrath <roland@redhat.com>
3898
3899 [BZ #715]
3900 * Makefile (installed-stubs): New variable.
3901 Set to $(inst_includedir)/gnu/stubs.h if $(biarch) is no,
3902 or to $(inst_includedir)/gnu/stubs-$(biarch).h if otherwise.
3903 [$(biarch) != no] (install-others-nosubdir): Add $(installed-stubs).
3904 ($(inst_includedir)/gnu/stubs.h): Use $(installed-stubs) for this
3905 rule's target.
3906 ($(inst_includedir)/gnu/stubs.h): New target, install from ...
3907 * include/stubs-biarch.h: New file.
3908
3909 * shlib-versions (i.86-.*-.*): Add WORDSIZE64 line mapping to x86_64.
3910
3911 * Makeconfig ($(common-objpfx)soversions.mk): Depend on Makeconfig.
3912 Emit defn for variable `biarch'.
3913
3914 * include/stub-tag.h: Update comment.
3915
3916 * scripts/soversions.awk: Fix default version set handling.
3917
3918 2005-02-10 Roland McGrath <roland@redhat.com>
3919
3920 [BZ #157]
3921 * include/libc-symbols.h (stub_warning): Emit a marker section called
3922 .gnu.glibc-stub.NAME.
3923 * Makerules ($(objpfx)stubs): Depend on object files, not dep files.
3924 Use objdump to collect those marker section names.
3925 ($(common-objpfx)shlib.lds): Discard .gnu.glibc-stub.* sections.
3926
3927 * Rules (subdir_objs, subdir_stubs): New phony targets.
3928 * Makefile (+subdir_targets): Add them.
3929
3930 * Makerules ($(common-objpfx)Versions.all): Grok new leading column in
3931 soversions.i.
3932
3933 * scripts/lib-names.awk: Consider [0-9].* a "number", not just [0-9]+.
3934 Reported by H.J. Lu <hongjiu.lu@intel.com>.
3935
3936 * scripts/lib-names.awk: Always print WORDSIZE32 section first when
3937 doing two.
3938
3939 2005-02-10 Jakub Jelinek <jakub@redhat.com>
3940
3941 * sysdeps/powerpc/powerpc32/bits/link.h: Removed.
3942 * sysdeps/powerpc/powerpc64/bits/link.h: Moved to...
3943 * sysdeps/powerpc/bits/link.h: ... here. New file.
3944
3945 2005-02-09 Jakub Jelinek <jakub@redhat.com>
3946
3947 [BZ #710]
3948 * stdlib/random_r.c (__initstate_r): Save old state.
3949 * stdlib/Makefile (tests): Add tst-random2.
3950 * stdlib/tst-random2.c: New test.
3951 Reported by Peter Bergner <bergner@vnet.ibm.com>.
3952
3953 2005-01-25 H.J. Lu <hongjiu.lu@intel.com>
3954
3955 * dlfcn/dlfcn.c (init): Put it in .init_array section.
3956
3957 2005-02-10 Roland McGrath <roland@redhat.com>
3958
3959 [BZ #632]
3960 * scripts/soversions.awk: Expect cpu, vendor, os as separate variables
3961 from command line.
3962 Grok shlib-versions lines with WORDSIZE* in second column.
3963 Add new leading column to output, DEFAULT for existing output lines.
3964 Also emit lines with WORDSIZE* for alternate configurations.
3965 * Makeconfig ($(common-objpfx)soversions.i): Pass those variables.
3966 ($(common-objpfx)soversions.mk): Grok new column, use only DEFAULT.
3967 ($(common-objpfx)gnu/lib-names.stmp): Depend on soversions.i instead
3968 of soversions.mk; replace inline shell script with use of ...
3969 * scripts/lib-names.awk: New file. If input has non-DEFAULT lines,
3970 emit multiple sets of macros under #if.
3971 * shlib-versions (x86_64-.*-.*): Add WORDSIZE32 line mapping to i686.
3972 (s390x-.*-.*): Likewise for s390.
3973 (powerpc64-.*-.*): Likewise for powerpc.
3974 (sparc64-.*-.*): Likewise for sparc.
3975 (s390-.*-.*, powerpc.*-.*-.*, sparc.*-.*-.*): Add WORDSIZE64 entries
3976 for these mapping back to the above.
3977
3978 2005-02-08 Jakub Jelinek <jakub@redhat.com>
3979
3980 * elf/dl-load.c (_dl_map_object_from_fd): Fix a typo.
3981
3982 2005-02-08 Andreas Schwab <schwab@suse.de>
3983
3984 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove use of
3985 RESOLVE.
3986
3987 2005-02-07 Richard Henderson <rth@redhat.com>
3988
3989 * iconvdata/jis0208.h (struct jisx0208_ucs_idx): Move before use.
3990
3991 2005-02-08 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3992
3993 * sysdeps/sh/dl-machine.h (elf_machine_rela): Remove code using
3994 RESOLVE.
3995
3996 2005-02-07 Ulrich Drepper <drepper@redhat.com>
3997
3998 * elf/dl-load.c (_dl_map_object_from_fd): Make sure registers are
3999 set correctly.
4000
4001 2005-01-07 Richard Henderson <rth@redhat.com>
4002
4003 * math/math_private.h (__copysign): Define as builtin for gcc 4.
4004 (__copysignf, __copysignl): Likewise.
4005 * sysdeps/alpha/fpu/bits/mathinline.h (copysign): Don't define
4006 for gcc 4.0.
4007 (copysignf, copysignl, fabsf, fabs): Likewise.
4008 (__copysign, __copysignf, __copysignl): Remove.
4009 (__fabs, __fabsf): Remove.
4010
4011 2005-01-07 Jakub Jelinek <jakub@redhat.com>
4012
4013 [BZ #738]
4014 * elf/dl-load.c (open_path): If rtld_search_dirs is in RELRO segment,
4015 avoid writing to it if none of the standard search directories exist.
4016
4017 2005-02-07 Steven Munroe <sjmunroe@us.ibm.com>
4018
4019 [BZ #700]
4020 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4021 (__novec_setcontext, __setcontext): Fix typo so CCR is restored.
4022 Load MSR as a doubleword.
4023 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4024 (__novec_swapcontext, __swapcontext): Likewise.
4025
4026 2005-02-07 Ulrich Drepper <drepper@redhat.com>
4027
4028 * iconv/iconv_prog.c (main): Provide more help in case on an error.
4029
4030 * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Define.
4031
4032 2005-02-07 Jakub Jelinek <jakub@redhat.com>
4033
4034 [BZ #741]
4035 * nscd/nscd.c (termination_handler): Avoid segfault if some database
4036 is not enabled.
4037
4038 [BZ #741]
4039 * nscd/nscd_getai.c (__nscd_getai): If ai_resp->found == -1, set
4040 __nss_not_use_nscd_hosts and return -1.
4041 * nscd/nscd_initgroups.c (__nscd_getgrouplist): If
4042 initgr_resp->found == -1, set __nss_not_use_nscd_group and return -1.
4043 Avoid leaking sockets.
4044
4045 2005-01-28 Andreas Schwab <schwab@suse.de>
4046 H.J. Lu <hongjiu.lu@intel.com>
4047
4048 [BZ #677]
4049 * elf/dl-runtime.c (fixup): Change return type to
4050 DL_FIXUP_VALUE_TYPE. Use DL_FIXUP_VALUE_TYPE,
4051 DL_FIXUP_MAKE_VALUE and DL_FIXUP_VALUE_CODE_ADDR for relocation
4052 values. Use DL_FIXUP_VALUE_ADDR and DL_FIXUP_ADDR_VALUE to
4053 store and retrieve relocation values.
4054 (profile_fixup): Likewise.
4055 * include/link.h (link_map): Use DL_FIXUP_VALUE_TYPE for
4056 l_reloc_result.
4057 * sysdeps/generic/dl-fptr.h (link_map): Forward declaration.
4058 * sysdeps/generic/dl-lookupcfg.h (DL_FIXUP_VALUE_TYPE): New.
4059 (DL_FIXUP_MAKE_VALUE): Likewise.
4060 (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
4061 (DL_FIXUP_VALUE_ADDR): Likewise.
4062 (DL_FIXUP_ADDR_VALUE): Likewise.
4063 * sysdeps/ia64/dl-lookupcfg.h: Include <dl-fptr.h> for "struct fdesc".
4064 (DL_FIXUP_VALUE_TYPE): New.
4065 (DL_FIXUP_MAKE_VALUE): Likewise.
4066 (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
4067 (DL_FIXUP_VALUE_ADDR): Likewise.
4068 (DL_FIXUP_ADDR_VALUE): Likewise.
4069 * sysdeps/ia64/dl-machine.h (elf_machine_profile_fixup_plt): Removed.
4070 (elf_machine_profile_plt): Removed.
4071 (elf_machine_fixup_plt): Change return type and type of value
4072 parameter to struct fdesc.
4073 (elf_machine_plt_value): Likewise.
4074 (elf_machine_rela): Use DL_FIXUP_MAKE_VALUE to construct
4075 argument for elf_machine_fixup_plt.
4076
4077 2005-02-07 Jakub Jelinek <jakub@redhat.com>
4078
4079 [BZ #742]
4080 * nscd/nscd.init (reload): Print Reloading nscd: before and a newline
4081 after the status string printed by killproc.
4082
4083 2004-11-18 Alexandre Oliva <aoliva@redhat.com>
4084
4085 * manual/.cvsignore: Add dir-add.texi.
4086
4087 2005-02-06 Richard Henderson <rth@redhat.com>
4088
4089 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Use RESOLVE_MAP
4090 all the time.
4091
4092 2004-11-03 Marcus Brinkmann <marcus@gnu.org>
4093
4094 * configure.in (sysnames): Append sysdeps/generic for each add-on.
4095 * configure: Regenerated.
4096
4097 2005-02-02 Alfred M. Szmidt <ams@gnu.org>
4098
4099 * sysdeps/mach/hurd/tls.h: Include <stdbool.h>
4100 (dtv_t): Change pointer type to be a struct which also contains
4101 information whether the memory pointed to is static TLS or not.
4102
4103 * sysdeps/generic/syslog.c (send_flags) [!send_flags]: Define it.
4104
4105 * shadow/sgetspent_r.c (FALSE): Macro renamed to ...
4106 (FALSEP): ... this. Updated all references.
4107
4108 [BZ #765]
4109 * libio/fmemopen.c: Include <stdint.h>.
4110
4111 2005-01-30 Ulrich Drepper <drepper@redhat.com>
4112
4113 [BZ #1103]
4114 * nscd/nscd_helper.c (get_mapping): Use MSG_NOSIGNAL if available.
4115 * nscd/connections.c (send_ro_fd): Likewise.
4116
4117 2005-01-28 H.J. Lu <hongjiu.lu@intel.com>
4118
4119 * elf/tst-auditmod1.c: Add ia64 entries.
4120 * sysdeps/generic/ldsodefs.h (La_ia64_regs): New.
4121 (La_ia64_retval): New.
4122 (audit_ifaces): Add ia64 entries.
4123 * sysdeps/ia64/bits/link.h: New file.
4124 * sysdeps/ia64/dl-machine.h (elf_machine_runtime_setup): Test
4125 for dl_profile non-null.
4126 (ARCH_LA_PLTENTER): New.
4127 (ARCH_LA_PLTEXIT): New.
4128 * sysdeps/ia64/dl-trampoline.S (_dl_runtime_resolve): Allocate
4129 only 2 output registers. Allocate stack to save/restore
4130 8 incoming fp registers. Call _dl_fixup instead of fixup.
4131 (_dl_runtime_profile): Rewrite.
4132
4133 2005-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
4134
4135 * sysdeps/s390/bits/link.h: New file.
4136 * sysdeps/s390/s390-32/dl-trampoline.S: New file.
4137 * sysdeps/s390/s390-64/dl-trampoline.S: New file.
4138 * sysdeps/s390/s390-32/dl-machine.h: Move PLT trampolines to
4139 dl-trampoline.S. Use RESOLVE_MAP instead of RESOLVE to protect
4140 relocation code.
4141 (elf_machine_runtime_setup): Test for dl_profile non-null.
4142 (elf_machine_rela): Remove code using RESOLVE.
4143 (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
4144 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4145 * sysdeps/generic/ldsodefs.h (La_s390_32_regs, La_s390_32_retval,
4146 La_s390_64_regs, La_s390_64_retval): New.
4147 * elf/tst-auditmod1.c: Add s390 entries.
4148
4149 [BZ #743]
4150 * sysdeps/s390/bits/string.h (strlen, strncpy, strcat, strncat,
4151 strncat, memchr, strcmp): Add missing memory clobber.
4152
4153 2005-01-27 Ulrich Drepper <drepper@redhat.com>
4154
4155 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_globfree): Also
4156 copy gl_offs. Patch by Sergey Tikhonov <tsv@solvo.ru>.
4157
4158 2005-01-27 Paolo Bonzini <bonzini@gnu.org>
4159
4160 [BZ #558]
4161 * posix/regcomp.c (calc_inveclosure): Return reg_errcode_t.
4162 Initialize the node sets in dfa->inveclosures.
4163 (analyze): Initialize inveclosures only if it is needed.
4164 Check errors from calc_inveclosure.
4165 * posix/regex_internal.c (re_dfa_add_node): Do not initialize
4166 the inveclosure node set.
4167 * posix/regexec.c (re_search_internal): If nmatch includes unused
4168 subexpressions, reset them to { rm_so: -1, rm_eo: -1 } here.
4169
4170 * posix/regcomp.c (parse_bracket_exp) [!RE_ENABLE_I18N]:
4171 Do build a SIMPLE_BRACKET token.
4172
4173 * posix/regexec.c (transit_state_mb): Do not examine nodes
4174 where ACCEPT_MB is not set.
4175
4176 2005-01-27 Jakub Jelinek <jakub@redhat.com>
4177
4178 * stdlib/tst-fmtmsg.c: Include stdlib.h.
4179 * stdio-common/tst-fmemopen2.c: Include string.h.
4180 * posix/execvp.c: Include stdbool.h.
4181
4182 2004-12-13 Paolo Bonzini <bonzini@gnu.org>
4183
4184 Separate parsing and creation of the NFA. Avoided recursion on
4185 the (very unbalanced) parse tree.
4186 [BZ #611]
4187 * posix/regcomp.c (struct subexp_optimize, analyze_tree, calc_epsdest,
4188 re_dfa_add_tree_node, mark_opt_subexp_iter): Removed.
4189 (optimize_subexps, duplicate_tree, calc_first, calc_next,
4190 mark_opt_subexp): Rewritten.
4191 (preorder, postorder, lower_subexps, lower_subexp, link_nfa_nodes,
4192 create_token_tree, free_tree, free_token): New.
4193 (analyze): Accept a regex_t *. Invoke the passes via the preorder and
4194 postorder generic visitors. Do not initialize the fields in the
4195 re_dfa_t that represent the transitions.
4196 (free_dfa_content): Use free_token.
4197 (re_compile_internal): Analyze before UTF-8 optimizations. Do not
4198 include optimization of subexpressions.
4199 (create_initial_state): Fetch the DFA node index from the first node's
4200 bin_tree_t *.
4201 (optimize_utf8): Abort on unexpected nodes, including OP_DUP_QUESTION.
4202 Return on COMPLEX_BRACKET.
4203 (duplicate_node_closure): Fix comment.
4204 (duplicate_node): Do not initialize the fields in the
4205 re_dfa_t that represent the transitions.
4206 (calc_eclosure, calc_inveclosure): Do not handle OP_DELETED_SUBEXP.
4207 (create_tree): Remove final argument. All callers adjusted. Rewritten
4208 to use create_token_tree.
4209 (parse_reg_exp, parse_branch, parse_expression, parse_bracket_exp,
4210 build_charclass_op): Use create_tree or create_token_tree instead
4211 of re_dfa_add_tree_node.
4212 (parse_dup_op): Likewise. Also free the tree using free_tree for
4213 "<re>{0}", and lower OP_DUP_QUESTION to OP_ALT: "a?" is equivalent
4214 to "a|". Adjust invocation of mark_opt_subexp.
4215 (parse_sub_exp): Create a single SUBEXP node.
4216 * posix/regex_internal.c (re_dfa_add_node): Remove last parameter,
4217 always perform as if it was 1. Do not initialize OPT_SUBEXP and
4218 DUPLICATED, and initialize the DFA fields representing the transitions.
4219 * posix/regex_internal.h (re_dfa_add_node): Adjust prototype.
4220 (re_token_type_t): Move OP_DUP_PLUS and OP_DUP_QUESTION to the tokens
4221 section. Add a tree-only code SUBEXP. Remove OP_DELETED_SUBEXP.
4222 (bin_tree_t): Include a full re_token_t for TOKEN. Turn FIRST and
4223 NEXT into pointers to trees. Remove ECLOSURE.
4224
4225 2004-12-28 Paolo Bonzini <bonzini@gnu.org >
4226
4227 [BZ #605]
4228 * posix/regcomp.c (parse_bracket_exp): Do not modify DFA nodes
4229 that were already created.
4230 * posix/regex_internal.c (re_dfa_add_node): Set accept_mb field
4231 in the token if needed.
4232 (create_ci_newstate, create_cd_newstate): Set accept_mb field
4233 from the tokens' field.
4234 * posix/regex_internal.h (re_token_t): Add accept_mb field.
4235 (ACCEPT_MB_NODE): Removed.
4236 * posix/regexec.c (proceed_next_node, transit_states_mb,
4237 build_sifted_states, check_arrival_add_next_nodes): Use
4238 accept_mb instead of ACCEPT_MB_NODE.
4239
4240 2005-01-26 Ulrich Drepper <drepper@redhat.com>
4241
4242 [BZ #1100]
4243 * debug/chk_fail.c (__chk_fail): Print program name in final message.
4244
4245 * sysdeps/unix/sysv/linux/kernel-features.h: Found reference to
4246 MSG_NOSIGNAL being in 2.2 kernels.
4247
4248 2005-01-26 Jakub Jelinek <jakub@redhat.com>
4249
4250 * sysdeps/unix/sysv/linux/i386/sysdep.h
4251 (SYSCALL_ERROR_HANDLER_TLS_STORE): Remove unnecessary 0 imm.
4252
4253 [BZ #693]
4254 * posix/regex_internal.h (DUMMY_CONSTRAINT): Rename to...
4255 (WORD_DELIM_CONSTRAINT): ...this.
4256 (NOT_WORD_DELIM_CONSTRAINT): Define.
4257 (re_context_type): Add INSIDE_NOTWORD and NOT_WORD_DELIM,
4258 change WORD_DELIM to use WORD_DELIM_CONSTRAINT.
4259 * posix/regcomp.c (peek_token): For \B create NOT_WORD_DELIM
4260 anchor instead of INSIDE_WORD.
4261 (parse_expression): Handle NOT_WORD_DELIM constraint.
4262 * posix/bug-regex19.c (tests): Adjust tests that relied on \B
4263 being inside word instead of not word delim.
4264 * posix/tst-rxspencer.c (mb_frob_pattern): Don't frob escaped
4265 characters.
4266 * posix/rxspencer/tests: Add some new tests.
4267
4268 2005-01-14 GOTO Masanori <gotom@debian.or.jp>
4269
4270 [BZ #1108]
4271 * sunrpc/rpc_main.c (s_output): Generate #include <rpc/pmap_clnt.h>
4272 irrespective of Cflag.
4273
4274 * manual/memory.texi (sbrk): Fix definition.
4275 * manual/string.texi (strcasestr): Fix example typo.
4276
4277 2005-01-25 Roland McGrath <roland@redhat.com>
4278
4279 * sysdeps/generic/syslog.c [NO_SIGPIPE]: Protect sigpipe_handler decl.
4280
4281 2005-01-23 Roland McGrath <roland@redhat.com>
4282
4283 [BZ #737]
4284 * sysdeps/i386/Makefile (defines): If -mno-tls-direct-seg-refs appears
4285 in $(CFLAGS), add -DNO_TLS_DIRECT_SEG_REFS.
4286 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]
4287 (SYSCALL_ERROR_HANDLER) [NO_TLS_DIRECT_SEG_REFS]: Load thread pointer
4288 from %gs:0 and add to that value, rather that direct %gs:OFFSET access.
4289 * sysdeps/unix/i386/sysdep.S [NO_TLS_DIRECT_SEG_REFS]: Likewise.
4290
4291 2005-01-25 Jakub Jelinek <jakub@redhat.com>
4292
4293 [BZ #731]
4294 * stdlib/fmtmsg.c (addseverity): Remove new_string variable.
4295 (free_mem): Don't free string.
4296 * stdlib/tst-fmtmsg.c: Include string.h.
4297 (main): Add some more tests.
4298
4299 2005-01-25 Andreas Schwab <schwab@suse.de>
4300
4301 [BZ #736]
4302 * timezone/asia: Update from tzdata2005c.
4303 * timezone/backward: Likewise.
4304 * timezone/europe: Likewise.
4305 * timezone/leapseconds: Likewise.
4306 * timezone/northamerica: Likewise.
4307 * timezone/southamerica: Likewise.
4308
4309 [BZ #736]
4310 * timezone/private.h: Update from tzcode2005c.
4311 * timezone/tzfile.h: Likewise.
4312 * timezone/zdump.c: Likewise.
4313 * timezone/zic.c: Likewise.
4314
4315 2005-01-25 Ulrich Drepper <drepper@redhat.com>
4316
4317 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove code using
4318 RESOLVE.
4319 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Remove code
4320 using RESOLVE.
4321 * elf/rtld.c (_dl_start): Remove RESOLVE definition.
4322
4323 2005-01-25 Alan Modra <amodra@bigpond.net.au>
4324
4325 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Test
4326 sym_map, not sym, against zero.
4327
4328 2005-01-24 Ulrich Drepper <drepper@redhat.com>
4329
4330 [BZ #671]
4331 * misc/syslog.c: Moved to...
4332 * sysdeps/generic/syslog.c: ...here.
4333 [NO_SIGIPE]: Don't install SIGPIPE handler.
4334 * sysdeps/unix/sysv/linux/syslog.c: New file.
4335 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4336 __ASSUME_MSG_NOSIGNAL.
4337
4338 2005-01-22 Richard Henderson <rth@redhat.com>
4339
4340 * sysdeps/alpha/dl-trampoline.S: New file.
4341 * sysdeps/alpha/dl-machine.h: Move PLT trampolines there.
4342 Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
4343 (elf_machine_runtime_setup): Test for dl_profile non-null.
4344 (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
4345 * sysdeps/alpha/bits/link.h: New file.
4346 * sysdeps/generic/ldsodefs.h (La_alpha_regs, La_alpha_retval): New.
4347 (struct audit_ifaces): Add alpha entries.
4348 * elf/tst-auditmod1.c: Add alpha entries.
4349
4350 2005-01-22 Ulrich Drepper <drepper@redhat.com>
4351
4352 * sysdeps/ia64/dl-machine.h: Remove PLT trampolines here.
4353 * sysdeps/ia64/dl-trampoline.S: New file.
4354
4355 * sysdeps/x86_64/bits/link.h: Use namespace-safe identifiers in
4356 La_x86_64_xmm definition.
4357
4358 * posix/Makefile: Use CFLAGS-*.os instead of CFLAGS-*.c for frame
4359 pointer option.
4360 * stdlib/Makefile (CFLAGS-system.os): Use this instead of
4361 CFLAGS-system.c for frame pointer option.
4362
4363 2005-01-21 Roland McGrath <roland@redhat.com>
4364
4365 * elf/dl-runtime.c (_dl_profile_fixup): Remove const from REGS.
4366 * sysdeps/i386/dl-machine.h: Update decl.
4367
4368 2005-01-21 Jakub Jelinek <jakub@redhat.com>
4369
4370 [BZ #735]
4371 * elf/Makefile: Add rules to build and run tst-align2.
4372 * elf/tst-align2.c: New test.
4373 * elf/tst-alignmod2.c: New file.
4374 * sysdeps/powerpc/tst-stack-align.h: New file.
4375 * sysdeps/i386/dl-machine.h (RTLD_START): Align stack and clear frame
4376 pointer before calling _dl_init.
4377 * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
4378
4379 2005-01-20 Ulrich Drepper <drepper@redhat.com>
4380
4381 * posix/execl.c: Do not allocate potentially large buffers on the
4382 stack.
4383 * posix/execle.c: Likewise.
4384 * posix/execlp.c: Likewise.
4385 * posix/execvp.c: Likewise.
4386 (script_execute): Removed.
4387 (allocate_scripts_argv): New function. Called at most once to
4388 allocate memory, not every time a script is run. Adjust caller.
4389
4390 * sysdeps/generic/wordexp.c (exec_comm): Add a few
4391 TEMP_FAILURE_RETRY. Reorganize code to avoid multiple calls to
4392 exec_comm_child.
4393 (exec_comm_child): Can now be inlined.
4394
4395 * posix/Makefile: Add -fomit-frame-pointer for a few more files.
4396 * stdlib/Makefile: Likewise.
4397
4398 2005-01-19 Roland McGrath <roland@redhat.com>
4399
4400 [BZ #681]
4401 * sunrpc/openchild.c (_openchild): Use NULL instead of 0 for trailing
4402 argument to execlp.
4403 Reported by Marcus Meissner <meissner@suse.de>.
4404
4405 2005-01-19 Jakub Jelinek <jakub@redhat.com>
4406
4407 * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Fix a typo
4408 in assert.
4409 * iconv/strtab.c (strtabfinalize): Likewise.
4410
4411 * libio/iofopncook.c (_IO_cookie_seekoff): Add prototype.
4412
4413 2005-01-17 Roland McGrath <roland@redhat.com>
4414
4415 [BZ #745]
4416 * nscd/Makefile (LDLIBS-nscd): New variable.
4417 ($(objpfx)nscd): Use that instead of selinux-LIBS.
4418
4419 * Makeconfig (link-extra-libs): Define just as $(LDLIBS-$(@F)).
4420 (link-extra-libs-static): Define to $(link-extra-libs).
4421 (link-extra-libs-bounded): Likewise.
4422
4423 2005-01-17 Ulrich Drepper <drepper@redhat.com>
4424
4425 * include/link.h: Remove stray definition of pltenter.
4426
4427 2005-01-16 GOTO Masanori <gotom@debian.or.jp>
4428
4429 [BZ #734]
4430 * sysdeps/unix/rewinddir.c: Reset filepos.
4431 * dirent/tst-seekdir.c: Check telldir value after calling rewinddir.
4432
4433 2005-01-15 Ulrich Drepper <drepper@redhat.com>
4434
4435 * elf/tst-auditmod1.c: Reduce duplication.
4436
4437 2005-01-16 Andreas Schwab <schwab@suse.de>
4438
4439 * sysdeps/m68k/dl-machine.h: Remove trampoline code. Define
4440 ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
4441 (elf_machine_runtime_setup): If profile != 0 does not anymore mean
4442 GLRO(dl_profile) != NULL.
4443 * sysdeps/m68k/dl-trampoline.S: New file.
4444 * sysdeps/m68k/bits/link.h: New file.
4445 * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add m68k
4446 variants.
4447 * elf/tst-auditmod1.c: Add m68k support.
4448
4449 2005-01-14 Ulrich Drepper <drepper@redhat.com>
4450
4451 * posix/regcomp.c [!_LIBC] (init_dfa): Fix determining of relevant
4452 LC_* variable. Patch by Aharon Robbins <arnold@skeeve.com>.
4453
4454 [BZ #731]
4455 * stdlib/fmtmsg.c (internal_addseverity): Remove incorrect free call.
4456 * stdlib/tst-fmtmsg.c (main): Add another addseverity test.
4457
4458 2005-01-12 Ulrich Drepper <drepper@redhat.com>
4459
4460 * elf/dl-load.c (_dl_map_object_from_fd): We don't have to allow
4461 callers from libc anymore.
4462
4463 * elf/dl-open.c (dl_open_worker): Pass __RTLD_AUDIT flag from caller
4464 to _dl_map_object_deps.
4465 * elf/dl-load.c (_dl_map_object_from_fd): Don't change memory
4466 protections when loading auditing modules.
4467
4468 * dlfcn/dlopen.c (dlopen_doit): Catch invalid mode arguments and fail.
4469
4470 * posix/getconf.c: Update copyright year.
4471 * nss/getent.c: Likewise.
4472 * nscd/nscd_nischeck.c: Likewise.
4473 * iconv/iconvconfig.c: Likewise.
4474 * iconv/iconv_prog.c: Likewise.
4475 * elf/ldconfig.c: Likewise.
4476 * catgets/gencat.c: Likewise.
4477 * csu/version.c: Likewise.
4478 * elf/ldd.bash.in: Likewise.
4479 * elf/sprof.c (print_version): Likewise.
4480 * locale/programs/locale.c: Likewise.
4481 * locale/programs/localedef.c: Likewise.
4482 * nscd/nscd.c (print_version): Likewise.
4483 * debug/xtrace.sh: Likewise.
4484 * malloc/memusage.sh: Likewise.
4485 * malloc/mtrace.pl: Likewise.
4486 * debug/catchsegv.sh: Likewise.
4487
4488 2005-01-11 Thorsten Kukuk <kukuk@suse.de>
4489
4490 [BZ #733]
4491 * sunrpc/svc_tcp.c (svctcp_create): Call listen with SOMAXCONN
4492 as backlog.
4493 * sunrpc/svc_unix.c (svcunix_create): Likewise.
4494
4495 [BZ #1099]
4496 * grp/putgrent.c (putgrent): Don't write 0 as group
4497 ID if groupname starts with + or -.
4498 * pwd/putpwent.c (putpwent): Don't write 0 as user or
4499 group ID if user name starts with + or -.
4500
4501 2005-01-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4502
4503 * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add sh variants.
4504 * sysdeps/elf/tst-auditmod1.c: Add sh support.
4505 * sysdeps/sh/bits/link.h: New.
4506 * sysdeps/sh/dl-machine.h: Remove trampoline code here. Define
4507 ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT. Remove obsolete comments.
4508 (RTLD_START): Define __fpscr_values.
4509 * sysdeps/sh/dl-trampoline.S: New file.
4510 * sysdeps/sh/sh4/dl-trampoline.S: New file.
4511 * sysdeps/sh/sh4/Versions [ld]: Add __fpscr_values.
4512 * sysdeps/sh/sh4/dl-machine.h: Remove.
4513
4514 2005-01-10 Jakub Jelinek <jakub@redhat.com>
4515
4516 [BZ #732]
4517 * time/tst-strptime.c (day_tests): Add 2 new tests.
4518 (test_tm, main): Issue an error instead of segfaulting if
4519 strptime returns NULL.
4520
4521 2005-01-10 H.J. Lu <hongjiu.lu@intel.com>
4522
4523 * sysdeps/alpha/libc-tls.c (__tls_get_addr): Updated for dtv_t union.
4524 * sysdeps/ia64/libc-tls.c (__tls_get_addr): Likewise.
4525
4526 2005-01-11 Ulrich Drepper <drepper@redhat.com>
4527
4528 * malloc/malloc.h: Remove no-glibc support.
4529
4530 2005-01-12 GOTO Masanori <gotom@debian.or.jp>
4531
4532 [BZ #650]
4533 * malloc/malloc.h: Always include features.h.
4534
4535 2005-01-10 Roland McGrath <roland@redhat.com>
4536
4537 * sysdeps/ia64/fpu/e_logl.c: File removed.
4538
4539 * dlfcn/dlfcn.c (init): Fix typo in attribute decl.
4540
4541 2005-01-10 Ulrich Drepper <drepper@redhat.com>
4542
4543 * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Fix assertion and
4544 recognition of last entry.
4545
4546 2005-01-09 Ulrich Drepper <drepper@redhat.com>
4547
4548 * elf/dl-runtime.c: Include <sys/param.h>.
4549
4550 * elf/Makefile (headers): Add bits/link.h.
4551
4552 2005-01-09 Andreas Schwab <schwab@suse.de>
4553
4554 * elf/rtld.c (dl_main): Create main_map with __RTLD_OPENEXEC.
4555
4556 2005-01-09 Andreas Jaeger <aj@suse.de>
4557
4558 [BZ #732]
4559 * time/strptime_l.c (__strptime_internal): Add braces to avoid
4560 warning.
4561
4562 * sysdeps/x86_64/bits/link.h: Use vector_size for GCC 4.0.
4563
4564 * elf/rtld.c (dl_main): Call _dl_add_to_slotinfo only if USE_TLS.
4565
4566 2005-01-08 Jakub Jelinek <jakub@redhat.com>
4567
4568 * elf/Makefile (generated): Add tst-pie1{,.out,.o}.
4569
4570 2005-01-09 Ulrich Drepper <drepper@redhat.com>
4571
4572 * elf/dl-fini.c (_dl_fini): Call destructors of audit DSOs after
4573 those of all the regular objects.
4574
4575 * elf/dl-debug.c (_dl_debug_initialize): Take extra parameter and
4576 use it to select the r_debug structure for that namespace.
4577 * elf/dl-close.c (_dl_close): Adjust call to _dl_debug_initialize.
4578 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
4579 * elf/dl-open.c (_dl_open): Likewise.
4580 * elf/rtld.c (dl_main): Likewise.
4581 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Add _ns_debug
4582 member.
4583 (_dl_debug_initialize): Add new parameter in declaration.
4584
4585 * elf/dl-close.c (_dl_close): Make sure auditing callbacks are not
4586 called for the auditing objects themselves.
4587 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
4588
4589 2005-01-07 Ulrich Drepper <drepper@redhat.com>
4590
4591 * sysdeps/powerpc/powerpc64/dl-machine.h
4592 (elf_machine_runtime_setup): If profile != 0 does not anymore mean
4593 GLRO(dl_profile) != NULL.
4594 * sysdeps/powerpc/powerpc64/bits/link.h (struct la_ppc64_regs): Add
4595 padding.
4596 * sysdeps/powerpc/powerpc64/dl-trampoline.S: (_dl_profile_resolve):
4597 Extend _dl_prof_resolve to add pass extra parameters to
4598 _dl_profile_fixup and set up structure with register content.
4599
4600 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_runtime_setup):
4601 If profile != 0 does not anymore mean GLRO(dl_profile) != NULL.
4602 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_prof_resolve):
4603 Extend _dl_prof_resolve to add pass extra parameters to
4604 _dl_profile_fixup and set up structure with register content.
4605 * sysdeps/powerpc/powerpc32/bits/link.h: Fix types of some fields in
4606 the register and result structures.
4607 * sysdeps/powerpc/powerpc64/bits/link.h: Fix types of some fields
4608 in the 32-bit register and result structures.
4609
4610 * sysdeps/powerpc/powerpc64/dl-trampoline.S: Use register names.
4611
4612 * sysdeps/powerpc/powerpc32/dl-trampoline.S: New file.
4613 * sysdeps/powerpc/powerpc32/dl-machine.h: Remove trampoline code here.
4614 Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
4615 * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc32 variants.
4616 * elf/tst-auditmod1.c: Add ppc32 support.
4617 * sysdeps/powerpc/powerpc32/bits/link.h: New file.
4618 * sysdeps/powerpc/powerpc64/bits/link.h: Add ppc32 definitions.
4619
4620 * malloc/malloc.c (malloc_printerr): Print program name as part of
4621 error message.
4622
4623 * misc/sys/cdefs.h (__attribute_warn_unused_result__): Define.
4624 * stdlib/stdlib.h: Make realloc with
4625 __attribute_warn_unused_result__ instead of __wur.
4626 * malloc/malloc.h: Add __wur and __attribute_warn_unused_result__
4627 markers as in <stdlib.h>.
4628
4629 * libio/stdio.h: Remove __wur from rename and remove.
4630 * posix/unistd.h: Remove __wur from dup2.
4631
4632 2005-01-03 Andreas Jaeger <aj@suse.de>
4633
4634 * elf/Makefile (tests): Revert patch from 2005-01-03.
4635
4636 2005-01-07 Ulrich Drepper <drepper@redhat.com>
4637
4638 * sysdeps/unix/sysv/linux/init-first.c (__libc_init_first): Don't
4639 make __libc_init_first hidden.
4640
4641 * elf/rtld.c [!DONT_USE_BOOTSTRAP_MAP] (_dl_start_final): Initialize
4642 l_relocated of rtld map.
4643 * sysdeps/powerpc/powerpc64/dl-trampoline.S: New file.
4644 * sysdeps/powerpc/powerpc64/dl-machine.h: Remove trampoline code here.
4645 Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
4646 * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc64 variants.
4647 * elf/tst-auditmod1.c: Add ppc64 support.
4648 * sysdeps/powerpc/powerpc64/bits/link.h: New file.
4649
4650 2005-01-06 Roland McGrath <roland@redhat.com>
4651
4652 [BZ #633]
4653 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Catch errno values
4654 indicating file-name lookup errors, and return ENOSYS or EBADF instead.
4655
4656 2005-01-06 Ulrich Drepper <drepper@redhat.com>
4657
4658 * csu/elf-init.c (__libc_csu_fini): Don't do anything here.
4659 * sysdeps/generic/libc-start.c: Don't register program destructor here.
4660
4661 * dlfcn/Makefile: Add rules to build dlfcn.c.
4662 (LDFLAGS-dl.so): Removed.
4663 * dlfcn/dlclose.c: _dl_close is now in ld.so, use function pointer
4664 table.
4665 * dlfcn/dlmopen.c: Likewise for _dl_open.
4666 * dlfcn/dlopen.c: Likewise.
4667 * dlfcn/dlopenold.c: Likewise.
4668 * elf/dl-libc.c: Likewise for _dl_open and _dl_close.
4669 * elf/Makefile (routines): Remove dl-open and dl-close.
4670 (dl-routines): Add dl-open, dl-close, and dl-trampoline.
4671 Add rules to build and run tst-audit1.
4672 * elf/tst-audit1.c: New file.
4673 * elf/tst-auditmod1.c: New file.
4674 * elf/Versions [libc]: Remove _dl_open and _dl_close.
4675 * elf/dl-close.c: Change for use inside ld.so instead of libc.so.
4676 * elf/dl-open.c: Likewise.
4677 * elf/dl-debug.c (_dl_debug_initialize): Allow reinitialization,
4678 signaled by nonzero parameter.
4679 * elf/dl-init.c: Fix use of r_state.
4680 * elf/dl-load.c: Likewise.
4681
4682 * elf/dl-close.c: Add auditing checkpoints.
4683 * elf/dl-open.c: Likewise.
4684 * elf/dl-fini.c: Likewise.
4685 * elf/dl-load.c: Likewise.
4686 * elf/dl-sym.c: Likewise.
4687 * sysdeps/generic/libc-start.c: Likewise.
4688 * elf/dl-object.c: Allocate memory for auditing information.
4689 * elf/dl-reloc.c: Remove RESOLV. We now always need the map.
4690 Correctly initialize slotinfo.
4691 * elf/dynamic-link.h: Adjust after removal of RESOLV.
4692 * sysdeps/hppa/dl-lookupcfg.h: Likewise.
4693 * sysdeps/ia64/dl-lookupcfg.h: Likewise.
4694 * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: Removed.
4695 * elf/dl-runtime.c (_dl_fixup): Little cleanup.
4696 (_dl_profile_fixup): New parameters to point to register struct and
4697 variable for frame size.
4698 Add auditing checkpoints.
4699 (_dl_call_pltexit): New function.
4700 Don't define trampoline code here.
4701 * elf/rtld.c: Recognize LD_AUDIT. Load modules on startup.
4702 Remove all the functions from _rtld_global_ro which only _dl_open
4703 and _dl_close needed.
4704 Add auditing checkpoints.
4705 * elf/link.h: Define symbols for auditing interfaces.
4706 * include/link.h: Likewise.
4707 * include/dlfcn.h: Define __RTLD_AUDIT.
4708 Remove prototypes for _dl_open and _dl_close.
4709 Adjust access to argc and argv in libdl.
4710 * dlfcn/dlfcn.c: New file.
4711 * sysdeps/generic/dl-lookupcfg.h: Remove all content now that RESOLVE
4712 is gone.
4713 * sysdeps/generic/ldsodefs.h: Add definitions for auditing interfaces.
4714 * sysdeps/generic/unsecvars.h: Add LD_AUDIT.
4715 * sysdeps/i386/dl-machine.h: Remove trampoline code here.
4716 Adjust for removal of RESOLVE.
4717 * sysdeps/x86_64/dl-machine.h: Likewise.
4718 * sysdeps/generic/dl-trampoline.c: New file.
4719 * sysdeps/i386/dl-trampoline.c: New file.
4720 * sysdeps/x86_64/dl-trampoline.c: New file.
4721
4722 * sysdeps/generic/dl-tls.c: Cleanups. Fixup for dtv_t change.
4723 Fix updating of DTV.
4724 * sysdeps/generic/libc-tls.c: Likewise.
4725
4726 * sysdeps/arm/bits/link.h: Renamed to ...
4727 * sysdeps/arm/bits/linkmap.h: ...this.
4728 * sysdeps/generic/bits/link.h: Renamed to...
4729 * sysdeps/generic/bits/linkmap.h: ...this.
4730 * sysdeps/hppa/bits/link.h: Renamed to...
4731 * sysdeps/hppa/bits/linkmap.h: ...this.
4732 * sysdeps/i386/bits/link.h: Renamed to...
4733 * sysdeps/i386/bits/linkmap.h: ...this.
4734 * sysdeps/ia64/bits/link.h: Renamed to...
4735 * sysdeps/ia64/bits/linkmap.h: ...this.
4736 * sysdeps/s390/bits/link.h: Renamed to...
4737 * sysdeps/s390/bits/linkmap.h: ...this.
4738 * sysdeps/sh/bits/link.h: Renamed to...
4739 * sysdeps/sh/bits/linkmap.h: ...this.
4740 * sysdeps/x86_64/bits/link.h: Renamed to...
4741 * sysdeps/x86_64/bits/linkmap.h: ...this.
4742
4743 * posix/unistd.h: Declare ftruncate for POSIX 2003. [BZ #640]
4744
4745 2004-12-22 Steven Munroe <sjmunroe@us.ibm.com>
4746
4747 [BZ #602]
4748 * math/libm-test.inc (rint_test_tonearest): New test.
4749 (rint_test_towardzero): New test.
4750 (rint_test_downward): New test.
4751 (rint_test_upward): New test.
4752 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Fix -0.0 case.
4753 Remove redundant const values.
4754 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Fix -0.0 case.
4755 Remove redundant const values. Use float const.
4756 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Fix -0.0 case.
4757 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Fix -0.0 case.
4758 Use float const.
4759 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Fix -0.0 case.
4760 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Fix -0.0 case.
4761 Use float const.
4762 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Fix -0.0 case.
4763 Remove redundant const values.
4764 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Fix -0.0 case.
4765 Remove redundant const values. Use float const.
4766 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Fix -0.0 case.
4767 Remove redundant const values.
4768 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Fix -0.0 case.
4769 Remove redundant const values. Use float const.
4770 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Use EALIGN for Quadword
4771 alignment. Fix -0.0 case. Remove redundant const values.
4772 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Use EALIGN for Quadword
4773 alignment. Fix -0.0 case. Remove redundant const values.
4774 Use float const.
4775 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Use EALIGN for Quadword
4776 alignment. Fix -0.0 case.
4777 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Use EALIGN for Quadword
4778 alignment. Fix -0.0 case. Use float const.
4779 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Use EALIGN for Quadword
4780 alignment. Fix -0.0 case.
4781 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Use EALIGN for Quadword
4782 alignment. Fix -0.0 case. Use float const.
4783 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Use EALIGN for Quadword
4784 alignment. Fix -0.0 case. Remove redundant const values.
4785 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Use EALIGN for Quadword
4786 alignment. Fix -0.0 case. Remove redundant const values.
4787 Use float const.
4788 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Use EALIGN for Quadword
4789 alignment. Fix -0.0 case.
4790 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Use EALIGN for Quadword
4791 alignment. Fix -0.0 case. Remove redundant const values.
4792 Use float const.
4793
4794 2005-01-06 Ulrich Drepper <drepper@redhat.com>
4795
4796 * misc/sys/cdefs.h: Define __wur.
4797 * libio/stdio.h: Use __wur for a number of interfaces.
4798 * posix/unistd.h: Likewise.
4799 * stdlib/stdlib.h: Likewise.
4800
4801 2004-12-29 Jakub Jelinek <jakub@redhat.com>
4802
4803 [BZ #592]
4804 * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Use
4805 libc_hidden_proto instead of HIDDEN_PROTO.
4806 * sysdeps/ia64/fpu/libm-symbols.h (HIDDEN_PROTO): Remove.
4807 (__libm_error_support): If ASSEMBLER and in libc, define to
4808 HIDDEN_JUMPTARGET(__libm_error_support).
4809
4810 2004-12-28 David Mosberger <davidm@hpl.hp.com>
4811
4812 [BZ #592]
4813 * sysdeps/ia64/fpu/Makefile (duplicated-routines): New macro.
4814 (sysdep_routines): Replace libm_ldexp{,f,l} and libm_scalbn{,f,l}
4815 with $(duplicated-routines).
4816 (libm-sysdep_routines): Likewise, but substitute "s_" prefix for
4817 "m_" prefix.
4818
4819 2004-12-27 David Mosberger <davidm@hpl.hp.com>
4820
4821 [BZ #592]
4822 * sysdeps/ia64/fpu/libm-symbols.h: Add include of <sysdep.h> and
4823 undefine "ret" macro. Add __libm_error_support hidden definitions.
4824
4825 [BZ #592]
4826 * sysdeps/ia64/fpu/e_lgamma_r.c: Remove CVS-id comment. Add
4827 missing portion of copyright statement.
4828 * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
4829 * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
4830
4831 [BZ #592]
4832 * sysdeps/ia64/fpu/w_lgamma.c: Remove CVS-id comment. Add
4833 missing portion of copyright statement.
4834 (__ieee754_lgamma): Rename from lgamma(). Make lgamma() a weak alias.
4835 (__ieee754_gamma): Likewise.
4836 * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
4837 * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
4838
4839 2004-12-09 H.J. Lu <hjl@lucon.org>
4840
4841 [BZ #592]
4842 * sysdeps/ia64/fpu/s_nextafterl.c: Remove.
4843 * sysdeps/ia64/fpu/s_nexttoward.c: Likewise.
4844 * sysdeps/ia64/fpu/s_nexttowardf.c: Likewise.
4845 * sysdeps/ia64/fpu/e_atan2l.S: Remove (duplicate of e_atan2l.c).
4846 * sysdeps/ia64/fpu/e_expl.S: Likewise.
4847 * sysdeps/ia64/fpu/e_logl.c: Remove (conflicts with e_logl.S).
4848
4849 2004-11-18 David Mosberger <davidm@hpl.hp.com>
4850
4851 [BZ #592]
4852 * sysdeps/ia64/fpu/README: New file.
4853 * sysdeps/ia64/fpu/gen_import_file_list: New file.
4854 * sysdeps/ia64/fpu/import_check: Likewise.
4855 * sysdeps/ia64/fpu/import_diffs: Likewise.
4856 * sysdeps/ia64/fpu/import_file.awk: Likewise.
4857 * sysdeps/ia64/fpu/import_intel_libm: Likewise.
4858 * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
4859
4860 [BZ #592]
4861 * sysdeps/ia64/fpu/e_acos.S: Update from Intel libm v2.1+.
4862 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
4863 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
4864 * sysdeps/ia64/fpu/e_asin.S: Likewise.
4865 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
4866 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
4867 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
4868 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
4869 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
4870 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
4871 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
4872 * sysdeps/ia64/fpu/e_exp.S: Likewise.
4873 * sysdeps/ia64/fpu/e_expf.S: Likewise.
4874 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
4875 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
4876 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
4877 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
4878 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
4879 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
4880 * sysdeps/ia64/fpu/e_log.S: Likewise.
4881 * sysdeps/ia64/fpu/e_log2.S: Likewise.
4882 * sysdeps/ia64/fpu/e_log2f.S: Likewise.
4883 * sysdeps/ia64/fpu/e_log2l.S: Likewise.
4884 * sysdeps/ia64/fpu/e_logf.S: Likewise.
4885 * sysdeps/ia64/fpu/e_pow.S: Likewise.
4886 * sysdeps/ia64/fpu/e_powf.S: Likewise.
4887 * sysdeps/ia64/fpu/e_powl.S: Likewise.
4888 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
4889 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
4890 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
4891 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
4892 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
4893 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
4894 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
4895 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
4896 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
4897 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
4898 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
4899 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
4900 * sysdeps/ia64/fpu/libm_error.c: Likewise.
4901 * sysdeps/ia64/fpu/libm_reduce.c: Likewise.
4902 * sysdeps/ia64/fpu/libm_support.h: Likewise.
4903 * sysdeps/ia64/fpu/s_atan.S: Likewise.
4904 * sysdeps/ia64/fpu/s_atanf.S: Likewise.
4905 * sysdeps/ia64/fpu/s_atanl.S: Likewise.
4906 * sysdeps/ia64/fpu/s_cbrt.S: Likewise.
4907 * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
4908 * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
4909 * sysdeps/ia64/fpu/s_ceil.S: Likewise.
4910 * sysdeps/ia64/fpu/s_ceilf.S: Likewise.
4911 * sysdeps/ia64/fpu/s_ceill.S: Likewise.
4912 * sysdeps/ia64/fpu/s_cos.S: Likewise.
4913 * sysdeps/ia64/fpu/s_cosf.S: Likewise.
4914 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
4915 * sysdeps/ia64/fpu/s_expm1.S: Likewise.
4916 * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
4917 * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
4918 * sysdeps/ia64/fpu/s_fabs.S: Likewise.
4919 * sysdeps/ia64/fpu/s_fabsf.S: Likewise.
4920 * sysdeps/ia64/fpu/s_fabsl.S: Likewise.
4921 * sysdeps/ia64/fpu/s_floor.S: Likewise.
4922 * sysdeps/ia64/fpu/s_floorf.S: Likewise.
4923 * sysdeps/ia64/fpu/s_floorl.S: Likewise.
4924 * sysdeps/ia64/fpu/s_frexp.c: Likewise.
4925 * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
4926 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
4927 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
4928 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
4929 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
4930 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
4931 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
4932 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
4933 * sysdeps/ia64/fpu/s_logb.S: Likewise.
4934 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
4935 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
4936 * sysdeps/ia64/fpu/s_modf.S: Likewise.
4937 * sysdeps/ia64/fpu/s_modff.S: Likewise.
4938 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
4939 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
4940 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
4941 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
4942 * sysdeps/ia64/fpu/s_rint.S: Likewise.
4943 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
4944 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
4945 * sysdeps/ia64/fpu/s_round.S: Likewise.
4946 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
4947 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
4948 * sysdeps/ia64/fpu/s_significand.S: Likewise.
4949 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
4950 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
4951 * sysdeps/ia64/fpu/s_tan.S: Likewise.
4952 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
4953 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
4954 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
4955 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
4956 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
4957
4958 [BZ #592]
4959 * sysdeps/ia64/fpu/e_acosh.S: New file from Intel libm v2.1+.
4960 * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
4961 * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
4962 * sysdeps/ia64/fpu/e_atanh.S: Likewise.
4963 * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
4964 * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
4965 * sysdeps/ia64/fpu/e_exp10.S: Likewise.
4966 * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
4967 * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
4968 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4969 * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
4970 * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
4971 * sysdeps/ia64/fpu/e_lgamma_r.S: Likewise.
4972 * sysdeps/ia64/fpu/e_lgammaf_r.S: Likewise.
4973 * sysdeps/ia64/fpu/e_lgammal_r.S: Likewise.
4974 * sysdeps/ia64/fpu/e_logl.S: Likewise.
4975 * sysdeps/ia64/fpu/libm_frexp.S: Likewise.
4976 * sysdeps/ia64/fpu/libm_frexpf.S: Likewise.
4977 * sysdeps/ia64/fpu/libm_frexpl.S: Likewise.
4978 * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
4979 * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
4980 * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
4981 * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
4982 * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
4983 * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
4984 * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
4985 * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
4986 * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
4987 * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
4988 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
4989 * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
4990 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
4991 * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
4992 * sysdeps/ia64/fpu/s_asinh.S: Likewise.
4993 * sysdeps/ia64/fpu/s_asinhf.S: Likewise.
4994 * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
4995 * sysdeps/ia64/fpu/s_erf.S: Likewise.
4996 * sysdeps/ia64/fpu/s_erfc.S: Likewise.
4997 * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
4998 * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
4999 * sysdeps/ia64/fpu/s_erff.S: Likewise.
5000 * sysdeps/ia64/fpu/s_erfl.S: Likewise.
5001 * sysdeps/ia64/fpu/s_fdim.S: Likewise.
5002 * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
5003 * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
5004 * sysdeps/ia64/fpu/s_fma.S: Likewise.
5005 * sysdeps/ia64/fpu/s_fmaf.S: Likewise.
5006 * sysdeps/ia64/fpu/s_fmal.S: Likewise.
5007 * sysdeps/ia64/fpu/s_fmax.S: Likewise.
5008 * sysdeps/ia64/fpu/s_fmaxf.S: Likewise.
5009 * sysdeps/ia64/fpu/s_fmaxl.S: Likewise.
5010 * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
5011 * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
5012 * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
5013 * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
5014 * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
5015 * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
5016 * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
5017 * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
5018 * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
5019 * sysdeps/ia64/fpu/s_tanh.S: Likewise.
5020 * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
5021 * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
5022 * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
5023 * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
5024 * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
5025 * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
5026 * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
5027 * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
5028 * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
5029
5030 [BZ #592]
5031 * sysdeps/ia64/fpu/e_gamma_r.c: New empty dummy-file.
5032 * sysdeps/ia64/fpu/e_gammaf_r.c: Likewise.
5033 * sysdeps/ia64/fpu/e_gammal_r.c: Likewise.
5034 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
5035 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
5036 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
5037 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
5038 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
5039 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
5040 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
5041 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
5042 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
5043 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
5044 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
5045 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
5046 * sysdeps/ia64/fpu/w_expl.c: Likewise.
5047 * sysdeps/ia64/fpu/e_expl.S: Likewise.
5048 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
5049 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
5050 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
5051 * sysdeps/ia64/fpu/w_log2.c: Likewise.
5052 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
5053 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
5054 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
5055 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
5056 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
5057
5058 [BZ #592]
5059 * sysdeps/ia64/fpu/libm_atan2_reg.S: Remove.
5060 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5061 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5062 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5063 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5064 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5065 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5066
5067 [BZ #592]
5068 * sysdeps/ia64/fpu/s_sincos.c: Make it an empty dummy-file.
5069 * sysdeps/ia64/fpu/s_sincosf.c: Likewise.
5070 * sysdeps/ia64/fpu/s_sincosl.c: Likewise.
5071
5072 [BZ #592]
5073 * sysdeps/ia64/fpu/e_atan2l.S: Add "Not needed" comment.
5074
5075 [BZ #592]
5076 * sysdeps/ia64/fpu/s_copysign.S: Add __libm_copysign{,f,l}
5077 alias for use by libm_error.c
5078
5079 [BZ #592]
5080 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove
5081 libm_atan2_reg, libm_tan, libm_frexp4{f,l}.
5082 Mention s_erfc{,f,l}, libm_frexp{,f,l}, libm_ldexp{,f,l},
5083 libm_sincos{,f,l}, libm_sincos_large, libm_lgamma{,f,l},
5084 libm_scalbn{,f,l}, libm_scalblnf.
5085 (sysdep_routines): Remove libm_frexp4{,f,l}.
5086 Mention libm_frexp{,f,l}, libm_ldexp{,f,l}, and libm_scalbn{,f,l}.
5087 (sysdep-CPPFLAGS): Add -include libm-symbols.h, -D__POSIX__,
5088 _D_LIB_VERSIONIMF=_LIB_VERSION, -DSIZE_LONG_INT_64, and
5089 -DSIZE_LONG_LONG_INT_64.
5090
5091 2005-01-05 Steven Munroe <sjmunroe@us.ibm.com>
5092
5093 [BZ #729]
5094 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO_DSO]: Insure l_map_end and
5095 l_text_end are set for a VDSO with a single PT_LOAD entry.
5096
5097 2005-01-05 Ulrich Drepper <drepper@redhat.com>
5098
5099 [BZ #730]
5100 * libio/iofopncook.c (_IO_cookie_seekoff): Define. Mark offset as
5101 invalid to disable optimizations in fileops which won't work here.
5102 (_IO_cookie_jumps): Use it.
5103 (_IO_old_cookie_jumps): Likewise.
5104 * libio/fmemopen.c (fmemopen_seek): Result must be returned in *P,
5105 not the return value.
5106 * stdio-common/Makefile (tests): Add tst-fmemopen2.
5107 * stdio-common/tst-fmemopen2.c: New file.
5108
5109 * sysdeps/unix/sysv/linux/bits/waitflags.h: Define __WNOTHREAD.
5110
5111 2005-01-05 Roland McGrath <roland@redhat.com>
5112
5113 * configure.in (libc_cv_cpp_asm_debuginfo): Checked moved ...
5114 * sysdeps/i386/configure.in: ... here. New file.
5115
5116 2005-01-03 Ulrich Drepper <drepper@redhat.com>
5117
5118 [BZ #727]
5119 * sysdeps/generic/libc-start.c [SHARED] (__libc_start_main): Don't
5120 initialize __environ again.
5121 * stdlib/Makefile: Add rules to build and run tst-putenv.
5122 * stdlib/tst-putenv.c: New file.
5123 * stdlib/tst-putenvmod.c: New file.
5124
5125 * sysdeps/unix/sysv/linux/init-first.c: Clean file up. Don't
5126 define unnecessary wrappers or aliases of static functions.
5127
5128 2005-01-03 Andreas Jaeger <aj@suse.de>
5129
5130 * csu/Makefile (generated): Add start.os and start.ob.
5131
5132 * elf/Makefile (tests): Change rule for tst-pie1 so that make
5133 clean works.
5134
5135 2004-12-29 Roland McGrath <roland@redhat.com>
5136
5137 [BZ #626]
5138 * sysdeps/unix/alarm.c (alarm): Round return value to nearest rather
5139 than always up; when nearest is zero, round up to one.
5140
5141 2004-12-28 Ulrich Drepper <drepper@redhat.com>
5142
5143 * po/es.po: Update from translation team.
5144
5145 [BZ #726]
5146 * sysdeps/generic/dl-tls.c (__tls_get_addr): Fix typo.
5147
5148 2004-12-27 Ulrich Drepper <drepper@redhat.com>
5149
5150 [BZ #744]
5151 * include/signal.h: Define __sigemptyset.
5152
5153 2004-04-27 Paolo Bonzini <bonzini@gnu.org>
5154
5155 * posix/regex_internal.h (struct re_dfastate_t): Make
5156 word_trtable a pointer to the 512-item transition table.
5157 * posix/regexec.c (build_trtable): Fill in either state->trtable
5158 or state->word_trtable. Return a boolean indicating success.
5159 (transit_state): Expect state->trtable to be a 256-item
5160 transition table. Reorganize code to have less tests in
5161 the common case, and to save an indentation level.
5162 * posix/regex_internal.c (free_state): Free word_trtable.
5163
5164 2004-12-21 Jakub Jelinek <jakub@redhat.com>
5165
5166 [BZ #723]
5167 * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Make sure %esp when
5168 calling fn is 16 byte aligned.
5169 * sysdeps/i386/tst-stack-align.h: New file.
5170
5171 [BZ #725]
5172 * misc/efgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
5173 (ecvt_r): Special case denormals.
5174 * misc/qefgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
5175 * misc/tst-efgcvt.c: Include float.h.
5176 (ecvt_tests): Add 2 new tests.
5177
5178 2004-12-20 Roland McGrath <roland@frob.com>
5179
5180 * version.h (RELEASE, VERSION): development, 2.3.90
5181 * include/features.h (__GLIBC_MINOR__): Now 4.
5182
5183
5184 See ChangeLog.15 for earlier changes.
This page took 0.235502 seconds and 6 git commands to generate.