(_int_realloc): Make error message clearer.
[kopensolaris-gnu/glibc.git] / ChangeLog
1 2005-09-26  Ulrich Drepper  <drepper@redhat.com>
2
3         [BZ #713]
4         * libio/iofgets.c: Treat N==1 correctly.
5         * libio/iofgets_u.c: Likewise.
6         * libio/iofgetws.c: Likewise.
7         * libio/iofgetws_u.c: Likewise.
8         * stdio-common/Makefile (tests): Add tst-fgets.
9         * stdio-common/tst-fgets.c: New file.
10
11 2005-01-11  Thorsten Kukuk  <kukuk@suse.de>
12
13         [BZ #652]
14         * posix/getconf.c: Add new option -a to print the names of
15         the current system configuration variables to stdout.
16         Based on patch from Josh Aas <josha@sgi.com>.
17
18 2005-09-26  Ulrich Drepper  <drepper@redhat.com>
19
20         [BZ #644]
21         * sysdeps/posix/getaddrinfo.c (fls): New function.
22         (gaih_inet): Don't use ffs, use fls.  Convert address to native byte
23         order first.
24         * posix/Makefile (tests): Add tst-rfc3484.
25         * posix/tst-rfc3484.c: New file.
26
27         [BZ #627]
28         * libio/iofclose.c (_IO_new_fclose): Unlock the internal lock
29         before destroying it as part of the _IO_FINISH call.
30         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
31
32         [BZ #524]
33         * sysdeps/posix/getaddrinfo.c (match_prefix): Fix matching loop if
34         number of bits is multiple of 8.
35         Patch by Fredrik Tolf <fredrik@dolda2000.com>.
36
37         [BZ #516]
38         * elf/dl-load.c: Report failed loading due to ELF class mismatch
39         with better words.
40
41         [BZ #162]
42         * manual/llio.texi (Waiting for I/O): Correct description of read
43         conditions reported by select.
44
45 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
46
47         * inet/getnetgrent_r.c (innetgr): Call endfct even if result != 0.
48         Return 1 only if result == 1.  Patch by Benoit Capelle.
49
50 2005-09-25  Ulrich Drepper  <drepper@redhat.com>
51
52         [BZ #278]
53         * manual/stdio.texi (Hook Functions): Correct type of position
54         parameter of seeker and fix fallout of the change in the text.
55
56         [BZ #714]
57         * iconv/loop.c [!STORE_REST] (SINGLE): Correctly record number of
58         left-over bytes and store them correctly.
59         * wcsmbs/tst-mbrtowc2.c: New file.
60         * wcsmbs/Makefile (tests): Add tst-mbrtowc2.
61
62 2005-09-24  Roland McGrath  <roland@redhat.com>
63
64         * sysdeps/unix/sysv/i386/signal.S: Removed, saved in ports repository.
65         * sysdeps/unix/sysv/i386/sigreturn.S: Likewise.
66
67 2005-09-24  Ulrich Drepper  <drepper@redhat.com>
68
69         [BZ #545]
70         * locale/iso-639.def: More updates from the current spec.
71
72         * locale/programs/ld-address.c (address_finish): Produce better
73         error messages for invalid lang_ab use.
74
75         * locale/iso-639.def: Add a few updates from current spec.
76
77 2005-09-23  Ulrich Drepper  <drepper@redhat.com>
78
79         [BZ #704]
80         * locale/iso-4217.def: Replace MGF with MGA.
81
82         * iconvdata/jis0208.c (__jisx0208_from_ucs4_lat1): Reduce size of
83         array.
84         * iconvdata/jis0208.h (ucs4_to_jisx0208): Adjust access.
85
86 2004-08-13  GOTO Masanori  <gotom@debian.or.jp>
87
88         [BZ #395]
89         * iconvdata/jis0208.c: Remove 0x005C mapping from
90         __jisx0208_from_ucs4_lat1.
91         Reported by Fumitoshi UKAI <ukai@debian.or.jp>
92
93 2005-09-23  Ulrich Drepper  <drepper@redhat.com>
94
95         [BZ #394]
96         * libio/fmemopen.c (fmemopen_write): Return 0 instead of -1 if
97         nothing can be written.
98         * libio/iofopncook.c (_IO_cookie_write): If something went wrong,
99         set error bit.
100
101 2005-09-22  Ulrich Drepper  <drepper@redhat.com>
102
103         [BZ #281]
104         * posix/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
105         * posix/regcomp.c: Remove unnecessary uses of
106         unsigned RE_TRANSLATE_TYPE.
107         * posix/regex_internal.h: Likewise.
108         * posix/regex_internal.c: Likewise.
109         * posix/regexexec.c: Likewise.
110         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
111
112         [BZ #1035]
113         * locale/iso-4217.def: Replace TRL entry with TRY for new Turkish Lira.
114
115         [BZ #1363]
116         * nscd/nscd_getpw_r.c (nscd_getpw_r): Remove incorrectly C&Ped
117         free call in code handling detection of GC runs.
118
119 2005-09-22  Roland McGrath  <roland@redhat.com>
120
121         * elf/dl-tsd.c (__libc_dl_error_tsd): Use attribute_tls_model_ie for
122         static __thread variable.
123         From Alexandre Oliva <aoliva@redhat.com>
124
125         * Makefile ($(objpfx)c++-types-check.out): Use $<, not $^, in command.
126         Reported by Alexandre Oliva <aoliva@redhat.com>.
127
128 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
129
130         * nscd/dbg_log.c (init_logfile): Use fopen64 rather than fopen.
131
132 2005-09-20  Roland McGrath  <roland@redhat.com>
133
134         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use execv, not execl.
135
136         [BZ #1346]
137         * elf/dl-load.c (_dl_map_object_from_fd) [HAVE_Z_RELRO]: Do relro
138         magic on __stack_prot only if [SHARED].  Skip mprotect if __stack_prot
139         lies outside the page-rounded-down relro region.
140
141 2005-09-19  Richard Henderson  <rth@redhat.com>
142
143         [BZ #1358]
144         * sysdeps/unix/alpha/sysdep.h (inline_syscall1): Copy argument(s)
145         to a temporary first.
146         (inline_syscall2, inline_syscall3, inline_syscall4): Likewise.
147         (inline_syscall5, inline_syscall6): Likewise.
148
149         * sysdeps/alpha/ldiv.S (lldiv): Add alias.
150
151 2005-09-17  Ulrich Drepper  <drepper@redhat.com>
152
153         [BZ #1010]
154         * sysdeps/unix/sockatmark.c (sockatmark): Use SIOCATMARK correctly.
155
156         [BZ #1053]
157         * debug/xtrace.sh: Add missing escape character in -? match.
158         Patch by Peter Breitenlohner <peb@mppmu.mpg.de>.
159
160         [BZ #1051]
161         * wctype/wctype.h: Remove stray __END_NAMESPACE_C99.
162         * stdlib/stdlib.h: Use __END_NAMESPACE_STD instead of
163         __END_NAMESPACE_C99 in one place.
164         * scripts/begin-end-check.pl: New file.
165         Patch by Ralph Loader <suckfish@ihug.co.nz>.
166         * Makefile: Add rules to run scripts/begin-end-check.pl.
167
168 2005-09-17  Andreas Jaeger  <aj@suse.de>
169
170         * timezone/zdump.c: Include ctype.h.
171
172 2005-09-16  Andreas Jaeger  <aj@suse.de>
173
174         [BZ #1047]
175         * sysdeps/unix/sysv/linux/mips/getpagesize.c: New file.
176
177 2005-09-16  Maciej W. Rozycki  <macro@linux-mips.org>
178
179         [BZ #933]
180         * sysdeps/unix/sysv/linux/mips/brk.c (__brk): Load the number of
181         the syscall immediately before invocation.
182         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl): Likewise.
183         * sysdeps/unix/sysv/linux/mips/mips64/syscall.S (syscall): Likewise.
184
185         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl): Use
186         macros to handle GP.
187         * sysdeps/unix/sysv/linux/mips/mips64/syscall.S (syscall):
188         Likewise.  Update inaccurate comments.
189
190 2005-09-13  Ulrich Drepper  <drepper@redhat.com>
191
192         * sysdeps/posix/spawni.c (__spawni): Automatically recognize some
193         more cases when we can use vfork.
194
195 2005-08-29  Thomas Schwinge  <schwinge@nic-nac-project.de>
196
197         [BZ #1261]
198         * manual/memory.texi (Hooks for Malloc): Correct prototype of
199         my_init_hook and definition of my_free_hook.
200
201 2005-09-12  Roland McGrath  <roland@redhat.com>
202
203         [BZ #1331]
204         * malloc/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
205         macro argument.
206         Reported by Matej Vela <vela@debian.org>.
207
208 2005-09-12  Jakub Jelinek  <jakub@redhat.com>
209
210         * malloc/malloc.c (struct malloc_chunk): Fix comment typo.
211         (public_cALLOc): For mmapped chunks and perturb_byte != 0,
212         don't clear SIZE_SZ bytes more than should be cleared.
213
214 2005-09-09  Jakub Jelinek  <jakub@redhat.com>
215
216         * inet/getnetgrent_r.c: Include assert.
217         (setup): Remove FUNC_NAME and ALL arguments, assume they are always
218         "setnetgrent" and 1.
219         (endnetgrent_hook): New function.
220         (internal_endnetgrent): Use it.
221         (__internal_setnetgrent_reuse): Use it.  Adjust setup caller.
222         If status is NSS_STATUS_SUCCESS, yet action is continue, call
223         endnetgrent hook.
224         (internal_getnetgrent_r): Use __nss_lookup_function rather than
225         setup.  Recompute getfct pointer after successful
226         __internal_setnetgrent_reuse.  Don't use __nss_next.
227         (innetgr): Use __nss_lookup_function instead of __nss_lookup.
228         Adjust setup caller.
229         * nss/nss_files/files-netgrp.c (_nss_files_endnetgrent): Always clear
230         data_size and cursor.  Add libnss_files_hidden_proto and
231         libnss_files_hidden_def.
232         (_nss_files_setnetgrent): Call _nss_files_endnetgrent on failure.
233         * nis/nss_nis/nis-netgrp.c (internal_endnetgrent): Always clear
234         data_size and cursor.
235         (_nss_nis_setnetgrent): Don't call internal_endnetgrent.
236         (_nss_nis_getnetgrent_r): Remove result->cursor == NULL handling.
237         * nis/nss_nisplus/nisplus-netgrp.c (internal_endnetgrent): Always clear
238         data_size and position.
239         (_nss_nisplus_setnetgrent): Don't call internal_endnetgrent.
240
241 2005-09-09  Ulrich Drepper  <drepper@redhat.com>
242
243         * nss/getent.c (netgroup_keys): Call endnetgrent.
244         (main): Call mtrace.
245
246         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): We don't
247         need locking for the stream.  Use feof_unlocked.
248
249 2005-09-09  Jakub Jelinek  <jakub@redhat.com>
250
251         [BZ #1318]
252         * locale/loadarchive.c (_nl_load_locale_from_archive): Free
253         normalized_codeset even if p was already normalized.
254         Reported by Jaroslav Snajdr <jsnajdr@kerio.com>.
255
256 2005-09-08  Roland McGrath  <roland@redhat.com>
257
258         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Decode DSOCAPS
259         properly, first byte is bit number in mask.  Skip disabled caps.
260
261 2005-07-11  Derek R. Price  <derek@ximbiot.com>
262
263         [BZ #1061]
264         * sysdeps/generic/glob.c (glob): Only a 0 return from
265         getlogin_r means success, according to POSIX 1003.2.
266
267 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
268
269         [BZ #1033]
270         * time/mktime.c: Import from gnulib.
271         The following macros are now consistent with other gnulib code.
272         This does not change mktime's behavior.
273         (TYPE_IS_INTEGER): New macro.
274         (time_t_is_integer): Use it.
275         (TYPE_TWOS_COMPLEMENT): New macro.
276         (twos_complement_arithmetic): Use it.
277         (TYPE_ONES_COMPLEMENT): New macro.
278         (TYPE_MINIMUM, TYPE_MAXIMUM): Now supports signed-magnitude.
279         mktime doesn't use this, but the code now matches other gnulib code.
280         (ranged_convert): Pacify GCC 4.0 in a different way, which
281         generates a few bytes less code.
282         (ranged_convert, __mktime_internal): When calling a function via a
283         pointer P, use P () rather than (*P) (), as we now assume C89 or
284         better.
285
286 2005-09-07  Alexandre Oliva  <aoliva@redhat.com>
287
288         * timezone/test-tz.c: Update to match tzdata2005m.
289         * timezone/tst-timezone.c: Likewise.
290
291 2005-09-07  Ulrich Drepper  <drepper@redhat.com>
292
293         * posix/regexec.c (find_recover_state): Remove unnecessary
294         initialization.
295         (transit_state_bkref): Make DFA a const pointer.
296         (get_subexp): Likewise.
297         (check_arrival): Likewise.
298         (update_cur_sifted_state): Likewise.
299         (re_search_internal): Likewise.
300         (prune_impossible_nodes): Likewise.
301         (acquire_init_state_context): Likewise.
302         (proceed_next_node): Likewise.
303         (set_regs): Likewise.
304         (free_fail_stack_return): Likewise.
305         (check_arrival_expand_ecl): Mark DFA parameter as const.
306         (check_arrival_expand_ecl_sub): Likewise.
307         (check_subexp_limits): Likewise.
308         (sub_epsilon_src_nodes):  Likewise.
309         (add_epsilon_src_nodes):  Likewise.
310         (merge_state_array): Likewise.
311         (update_regs): Likewise.
312         (build_trtable): Likewise.
313         (sift_states_backward): Mark MCTX parameter as const.
314         (build_sifted_states): Likewise.
315         (update_cur_sifted_state): Likewise.
316         (sift_states_mkref): Likewise.
317         (check_arrival_expand_ecl): Mark eclosure as const.
318         (check_dst_limits_calc_pos_1): Likewise.
319         * posix/regex_internal.h (re_match_context_t): Make dfa a const
320         pointer.
321
322 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
323
324         * timezone/africa: Update from tzdata2005m.
325         * timezone/asia: Likewise.
326         * timezone/australasia: Likewise.
327         * timezone/backward: Likewise.
328         * timezone/europe: Likewise.
329         * timezone/northamerica: Likewise.
330         * timezone/southamerica: Likewise.
331         * timezone/zone.tab: Likewise.
332         * timezone/zdump.c: Update from tzcode2005m.
333
334         * posix/regexec.c (merge_state_with_log): Define dfa as const pointer.
335         (transit_state_sb): Likewise.
336         (transit_state_mb): Likewise.
337         (sift_states_iter_mb): Likewise.
338         (check_arrival_add_next_nodes): Likewise.
339         (check_node_accept_bytes): Change first parameter to pointer-to-const.
340         [_LIBC] (re_search_2_stub): Use mempcpy.
341
342         * posix/regex_internal.c (re_string_reconstruct): Avoid calling
343         mbrtowc for very simple UTF-8 case.
344
345 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
346
347         * posix/regex_internal.c (build_wcs_upper_buffer): Fix portability
348         bugs in int versus size_t comparisons.
349
350 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
351
352         * posix/regex_internal.c (re_acquire_state): Make DFA pointer arg
353         a pointer-to-const.
354         (re_acquire_state_context): Likewise.
355         * posix/regex_internal.h: Adjust prototypes.
356
357 2005-08-31  Jim Meyering  <jim@meyering.net>
358
359         * posix/regcomp.c (search_duplicated_node): Make first pointer arg
360         a pointer-to-const.
361         * posix/regex_internal.c (create_ci_newstate, create_cd_newstate,
362         register_state): Likewise.
363         * posix/regexec.c (search_cur_bkref_entry, check_dst_limits):
364         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
365         (group_nodes_into_DFAstates): Likewise.
366
367 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
368
369         * posix/regexec.c (re_search_internal): Simplify update of
370         rm_so and rm_eo by replacing "if (A == B) A += C - B;"
371         with the equivalent of "if (A == B) A = C;".
372
373 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
374
375         * posix/regcomp.c (re_compile_internal): Change third parameter type
376         to size_t.
377         (init_dfa): Likewise.  Make sure that arithmetic on pat_len doesn't
378         overflow.
379         * posix/regex_internal.h (struct re_dfa_t): Change type of nodes_alloc
380         and nodes_len to size_t.
381         * posix/regex_internal.c (re_dfa_add_node): Use size_t as type for
382         new_nodes_alloc.  Check for overflow.
383
384 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
385
386         * posix/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
387         (optimize_subexps, lower_subexp):
388         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
389         since the signed shift might overflow.  Use 1u<<31 instead.
390         * posix/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
391         Likewise.
392         * posix/regexec.c (check_dst_limits_calc_pos_1): Likewise.
393         (check_subexp_matching_top): Likewise.
394         * posix/regcomp.c (optimize_subexps, lower_subexp):
395         Use CHAR_BIT rather than 8, for clarity.
396         * posix/regexec.c (check_dst_limits_calc_pos_1):
397         (check_subexp_matching_top): Likewise.
398         * posix/regcomp.c (init_dfa): Make table_size unsigned, so that we
399         don't have to worry about portability issues when shifting it left.
400         Remove no-longer-needed test for table_size > 0.
401         * posix/regcomp.c (parse_sub_exp): Do not shift more bits than there
402         are in a word, as the resulting behavior is undefined.
403         * posix/regexec.c (check_dst_limits_calc_pos_1): Likewise;
404         in one case, a <= should have been an <, and in another case the
405         whole test was missing.
406         * posix/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
407         the standard name CHAR_BIT.
408
409         * posix/regex_internal.h (re_sub_match_top_t): Remove unused member
410         next_last_offset.
411         (struct re_dfa_t): Remove unused member states_alloc.
412         * posix/regcomp.c (init_dfa): Don't initialize unused members.
413
414 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
415
416         * posix/regexec.c (set_regs): Don't alloca with an unbounded size.
417
418         alloca modernization/simplification for regex.
419         * posix/regex.c: Remove portability cruft for alloca.  This no longer
420         needs to be at the start of the file, and can be moved into
421         regex_internal.h and simplified.
422         * posix/regex_internal.h: Include <alloca.h>.
423         (__libc_use_alloca) [!defined _LIBC]: New macro.
424         * posix/regexec.c (build_trtable): Remove "#ifdef _LIBC",
425         since the code now works outside glibc.
426
427 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
428
429         * include/regex.h: Remove use of _RE_ARGS.
430
431 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
432
433         * posix/regexec.c (find_recover_state): Change "err" to "*err".
434
435 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
436
437         * posix/regcomp.c (regerror): Pointer args are 'restrict',
438         as per POSIX.
439         * posix/regex.h (regerror): Likewise.
440         * manual/pattern.texi (POSIX Regexp Compilation): Likewise.
441         Similarly for regcomp and regexec.  Also, first 2 args of regexec
442         and 2nd arg of regerror are const.
443
444         * posix/regex.c: Do not include <sys/types.h>, as POSIX no longer
445         requires this.  (The code never needed it.)
446
447 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
448
449         * posix/regexec.c (sift_states_bkref): re_node_set_insert returns
450         int, not reg_errcode_t.
451
452         * posix/regex_internal.c (calc_state_hash): Put 'inline' before type,
453         since some broken compilers warn about it otherwise.
454
455         * posix/regcomp.c (create_initial_state): Remove duplicate decl.
456
457 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
458
459         * posix/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
460         C89 or better.  All uses removed.
461
462 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
463
464         * posix/regex.c: Prevent using C++ compilers.
465
466 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
467
468         * posix/regcomp.c (duplicate_node): Return new index, not an error
469         code, and let the caller return REG_ESPACE if out of space.  This
470         removes an uninitialied-variable warning with GCC 4.0.1, and also
471         avoids taking the address of a local variable.  All callers
472         changed.
473
474 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
475
476         * include/time.h (__strptime_internal): Rename parameter to avoid
477         bogus compiler warning.
478
479 2005-08-19  Jim Meyering  <jim@meyering.net>
480
481         * posix/regexec.c (proceed_next_node): Redo local variables to
482         avoid GCC shadowing warnings.
483
484 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
485
486         * posix/regex_internal.c (re_acquire_state): Minor code rearrangement.
487         (re_acquire_state_context): Likewise.
488
489 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
490
491         * posix/regex_internal.c (re_string_realloc_buffers):
492         (re_node_set_insert, re_node_set_insert_last, re_dfa_add_node):
493         Rename local variables to avoid GCC shadowing warnings.
494
495 2005-07-08  Eric Blake  <ebb9@byu.net>
496             Paul Eggert  <eggert@cs.ucla.edu>
497
498         * posix/regcomp.c (init_dfa): Store __btowc value in wint_t, not
499         wchar_t.  Remove now-unnecessary cast.
500         (build_range_exp): Likewise.
501
502 2005-08-31  Bob Wilson  <bob.wilson@acm.org>
503
504         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf):  Remove the
505         exponent bias from the increment value for scaling by 2^60.
506
507 2005-09-05  Alexandre Oliva  <aoliva@redhat.com>
508
509         * configure.in: Compile source test file with -fPIC for -shared.
510
511 2005-09-04  Ulrich Drepper  <drepper@redhat.com>
512
513         * iconv/skeleton.c: Eliminate DEFINE_DIRECTION_OBJECTS macro use,
514         it wasn't used.  Remove use of from_object and to_object variable,
515         replace with some constants.  Adjust users.
516
517         * sysdeps/i386/bits/string.h: Removed.
518
519         * stdio-common/Makefile (tests): Add tst-put-error.
520         * stdio-common/tst-put-error.c: New file.
521         * libio/fileops.c (_IO_new_file_xsputn): If overflow fails and no more
522         data would have to be written signal error.
523         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
524
525         * libio/fileops.c (_IO_new_file_overflow): Use NULL not 0.
526
527 2005-09-02  Ulrich Drepper  <drepper@redhat.com>
528
529         * elf/dl-load.c (_dl_map_object_from_fd): No need to change
530         protection of memory used for the last segment.
531
532 2005-08-22  Robert Millan  <robertmh@gnu.org>
533
534         * sysdeps/mach/hurd/nfs/nfs.h: Move to ...
535         * sysdeps/generic/nfs/nfs.h: ... here.
536
537 2005-09-01  Ulrich Drepper  <drepper@redhat.com>
538
539         * libio/stdio.h: Remove __wur from ungetc, sscanf, and vsscanf.
540         Add __wur to feof{,_unlocked}, ferror{,_unlocked},
541         fileno{,_unlocked}, and popen.
542
543 2005-08-30  Ulrich Drepper  <drepper@redhat.com>
544
545         * sysdeps/ieee754/flt-32/e_hypotf.c [!__STDC__]: Fix function name.
546
547 2005-08-01  Bob Wilson  <bob.wilson@acm.org>
548             Richard Sandiford  <richard@codesourcery.com>
549
550         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Add missing
551         exponent bias to the value for 2^126.
552
553 2005-08-30  Jakub Jelinek  <jakub@redhat.com>
554             Alan Modra  <amodra@bigpond.net.au>
555
556         * elf/dl-addr.c (_dl_addr): Use DL_ADDR_SYM_MATCH macro.
557         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): Define.
558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h: New file.
559
560 2005-08-23  Ulrich Drepper  <drepper@redhat.com>
561
562         * nscd/nscd.c (main): Use error while process isn't running in the
563         background, not dbg_log.
564         * nscd/nscd_conf.c (nscd_parse_file): Likewise.
565         Mark messages with _().  Unify testing for database name.
566
567         * nscd/connection.c (DEFAULT_DATASIZE_PER_BUCKET): Move to nscd.h.
568         (dbs): Initialize max_db_size fields.
569         (nscd_init): When mapping the database, use max_db_size as the
570         mapping size even if it is bigger than the file size.
571         * nscd/mem.c (mempool_alloc): When resizing the file make sure the
572         limit in max_db_size is not exceeded.  Don't use mremap, just
573         posix_fallocate is enough (according to Linus).  Use posix_fallocate
574         correctly.
575         * nscd/nscd.conf: Add max-db-size parameters.
576         * nscd/nscd.h (struct database_dyn): Add max_db_size field.
577         Define DEFAULT_MAX_DB_SIZE and DEFAULT_DATASIZE_PER_BUCKET.
578         Temporarily define TEMP_FAILURE_RETRY_VAL here.
579         * nscd/nscd_conf.c (nscd_parse_file): Parse max-db-size parameter
580         and add sanity checks for it.
581
582         * nscd/aicache.c (addhstaiX): Use send with MSG_NOSIGNAL not write to
583         send reply.
584         * nscd/connection.c (writeall): Likewise.
585         (handle_request): Likewise.
586         * nscd/grpcache.c (cache_addgr): Likewise.
587         * nscd/hstcache.c (cache_addhst): Likewise.
588         * nscd/initgrcache.c (addinitgroupsX): Likewise.
589         * nscd/nscd.c (parse_opt): Likewise.
590         * nscd/nscd_stat.c (send_stats): Likewise.
591         (receive_print_stats): Likewise.
592         * nscd/pwdcache.c (cache_addpw): Likewise.
593
594         * sysdeps/unix/sysv/linux/Versions: Export inotify_* syscalls.
595
596 2005-08-22  Jakub Jelinek  <jakub@redhat.com>
597
598         * stdlib/bits/stdlib.h (mbstowcs): Divide __bos (__dst) by
599         sizeof (wchar_t) rather than multiplying __len by sizeof (wchar_t).
600         Pass __bos (__dst) / sizeof (wchar_t) to the *_chk routine.
601         * wcsmbs/bits/wchar2.h (mbsrtowcs, mbsnrtowcs): Likewise.
602         * debug/mbsnrtowcs_chk.c (__mbsnrtowcs_chk): Don't multiply
603         len by sizeof (wchar_t).
604         * debug/mbsrtowcs_chk.c (__mbsrtowcs_chk): Likewise.
605         * debug/mbstowcs_chk.c (__mbstowcs_chk): Likewise.
606         Fix type of SRC argument.  Pass &SRC rather than SRC to
607         __mbsrtowcs.
608         * debug/wcstombs_chk.c (__wcstombs_chk): Pass &SRC rather than SRC
609         to __wcsrtombs.
610         * debug/tst-chk1.c: Include assert.h.
611         (do_test): Change enough array from VLA into a fixed size array.
612         Assert that MB_CUR_MAX is <= sizeof (enough).  Use FAIL () macro
613         instead of print error details.  Add several new tests.
614         Kill some unused variable warnings.
615
616 2005-08-21  Ulrich Drepper  <drepper@redhat.com>
617
618         * resolv/res_send.c (Aerror): Fix printing IP address.
619
620         * resolv/res_send.c (send_vc): Pass correct sockaddr size to connect.
621
622 2005-08-19  H.J. Lu  <hongjiu.lu@intel.com>
623
624         * sysdeps/ia64/fpu/libm_error.c (__libm_error_support): Don't abort.
625
626 2005-08-17  Robert Love  <rml@novell.com>
627
628         * sysdeps/unix/sysv/linux/sys/inotify.h: Add IN_MOVE_SELF event.
629
630 2005-08-19  Bruno Haible  <bruno@clisp.org>
631
632         * intl/localealias.c (read_alias_file): In case of failure, close the
633         file descriptor and sort the array before returning.
634
635 2005-08-19  Ulrich Drepper  <drepper@redhat.com>
636
637         * malloc/Makefile: Link libmemusage.so with ld.so.
638         * malloc/memusage.c: Use atomic operations for all counter and size
639          computations.  Handle thread stacks.
640         * sysdeps/generic/memusage.h: Define memusage_cntr_t and
641         memusage_size_t.
642         * sysdeps/i386/i686/memusage.h: New file.
643         * include/atomic.h: Define atomic_max and atomic_min.
644
645         * debug/tst-chk1.c: Add tests for mbstowcs and wcstombs.
646
647 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
648
649         [BZ #1207]
650         * posix/regex.h: Remove spurious space-before-tab.  From gnulib.
651
652 2005-08-16  Ulrich Drepper  <drepper@redhat.com>
653
654         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
655         sys/inotify.h.
656         * sysdeps/unix/sysv/linux/sys/inotify.h: New file.
657         * sysdeps/unix/sysv/linux/syscalls.list: Add inotify syscalls.
658
659         * nscd/cache.c (prune_cache): Add more debug output.  Only for
660         debug level 3 and higher and very verbose.
661
662         * nscd/cache.c (prune_cache): Use stat64 not stat.
663         * nscd/connections.c (nscd_init): Likewise.
664
665 2005-08-10  Sergio Gelato  <Sergio.Gelato@astro.su.se>
666
667         [BZ #1188]
668         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Change assert check
669         from (len > 0) to (len >= 0).
670
671 2005-08-16  Ulrich Drepper  <drepper@redhat.com>
672
673         * nis/nis_xdr.c (_xdr_nis_result): Fix type of res variable.
674         Reported by Thomas Schwinge.
675
676 2005-08-15  Jakub Jelinek  <jakub@redhat.com>
677
678         * nis/nis_subr.c (nis_leaf_of_r): Handle buflen == 0 correctly.
679
680 2005-08-16  Ulrich Drepper  <drepper@redhat.com>
681
682         * nss/getent.c (more_help): Use open_memstream instead of handling
683         memory allocation ourselves.
684
685 2005-08-16  Jay Fenlason  <fenlason@redhat.com>
686
687         * nss/getent.c (parse_options): change the -s option to support
688         {database}:{search} to override /etc/resolv.conf for only the
689         specified database.
690
691 2005-08-08  Ulrich Drepper  <drepper@redhat.com>
692
693         * nscd/connections.c (main_loop_epoll): Pass NULL as event
694         argument for epoll_ctl(EPOLL_CTL_DEL) calls.
695
696         * nscd/nscd_stat.c (receive_print_stats): Really print values of
697         thread number, paranoia, and restart interval the server is using.
698
699         * argp/argp-help.c: Use _IO_vasprintf instead of vasprintf.
700         * include/stdio.h: Add libc_hidden_proto for __vfprintf_chk.
701         * debug/vfprintf_chk.c: Add libc_hidden_def.
702
703 2005-08-08  Roland McGrath  <roland@redhat.com>
704
705         * argp/argp-help.c (__argp_error): __asprintf -> vasprintf.
706         (__argp_failure): Likewise.
707
708 2005-08-08  Ulrich Drepper  <drepper@redhat.com>
709
710         * nscd/cache.c (cache_add): Commit hash table and header to disk.
711
712         * nscd/mem.c (mempool_alloc): Use posix_fallocate instead of ftruncate.
713         * nscd/connections.c (nscd_init): Likewise.
714
715 2005-08-08  Jakub Jelinek  <jakub@redhat.com>
716
717         * stdio-common/fxprintf.c: Include libioP.h.
718
719         * posix/bits/unistd.h (confstr, getgroups, ttyname_r, gethostname,
720         getdomainname): Add __NTH.
721         * stdlib/bits/stdlib.h (ptsname_r, wctomb, mbstowcs, wcstombs):
722         Likewise.
723         (realpath): Likewise.  Use __const instead of const.  Add __restrict
724         keywords.
725         * socket/bits/socket2.h (recvfrom): Add __restrict keyword to __buf.
726         * wcsmbs/bits/wchar2.h (wmemcpy, wmemmove, wmempcpy, wmemset,
727         wcscpy, wcpcpy, wcsncpy, wcpncpy, wcscat, wcsncat, vswprintf, wcrtomb,
728         mbsrtowcs, wcsrtombs, mbsnrtowcs, wcsnrtombs): Add __NTH.
729         * string/bits/string3.h (__memset_ichk): Likewise.
730         (__memcpy_ichk, __memmove_ichk, __mempcpy_ichk, __strcpy_ichk,
731         __stpcpy_ichk, __strncpy_ichk, stpncpy, __strcat_ichk,
732         __strncat_ichk): Likewise.  Use __const instead of const.
733         (__stpncpy_chk): Use __const instead of const.
734         (__stpncpy_alias): Use __REDIRECT_NTH instead of __REDIRECT.
735
736 2005-08-08  Ulrich Drepper  <drepper@redhat.com>
737             Jakub Jelinek  <jakub@redhat.com>
738
739         * nscd/mem.c (BLOCK_ALIGN_LOG, BLOCK_ALIGN, BLOCK_ALIGN_M1): Move
740         definitions to...
741         * nscd/nscd.h (BLOCK_ALIGN_LOG, BLOCK_ALIGN, BLOCK_ALIGN_M1): ...here.
742         * nscd/connections.c (usekey): New enum.
743         (check_use, verify_persistent_db): New functions.
744         (nscd_init): If persistent database is corrupted, unlink it and
745         recreate rather than falling back to non-persistent database.
746         Call verify_persistent_db.  Avoid overflows in total computation.
747
748 2005-08-08  Ulrich Drepper  <drepper@redhat.com>
749
750         * iconvdata/utf-16.c (PREPARE_LOOP): Minor cleanups to make code
751         better readable.  Avoid passing var to loop function, it's not
752         necessary at all.
753
754 2005-08-07  Ulrich Drepper  <drepper@redhat.com>
755
756         * elf/elf.h (DT_ALPHA_PLTRO): Use symbolic name in DT_ALPHA_PLTRO
757         definition.
758
759 2005-08-05  Ulrich Drepper  <drepper@redhat.com>
760
761         * timezone/checktab.awk: Update from tzcode2005k.
762         * timezone/private.h: Likewise.
763         * timezone/scheck.c: Likewise.
764         * timezone/tzselect.ksh: Likewise.
765         * timezone/zdump.c: Likewise.
766         * timezone/zic.c: Likewise.
767         * timezone/africa: Update from tzdata2005k.
768         * timezone/antarctica: Likewise.
769         * timezone/asia: Likewise.
770         * timezone/australasia: Likewise.
771         * timezone/europe: Likewise.
772         * timezone/iso3166.tab: Likewise.
773         * timezone/leapseconds: Likewise.
774         * timezone/northamerica: Likewise.
775         * timezone/solar87: Likewise.
776         * timezone/solar88: Likewise.
777         * timezone/solar89: Likewise.
778         * timezone/southamerica: Likewise.
779         * timezone/zone.tab: Likewise.
780
781 2005-08-05  Roland McGrath  <roland@redhat.com>
782
783         * mach/shortcut.awk: Ignore `weak_alias' lines.
784         Reported by Alfred M. Szmidt <ams@gnu.org>.
785
786         * sysdeps/mach/hurd/mig-reply.c (reply_port): Don't use ?: as lvalue.
787         Reported by Alfred M. Szmidt <ams@gnu.org>.
788
789 2005-08-03  Dwayne Grant McConnell  <dgm69@us.ibm.com>
790
791         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s):
792         Use +=, not =, to append.  Remove duplicate flags.
793         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
794         Likewise.  Fix comments.
795
796 2005-08-01  Ulrich Drepper  <drepper@redhat.com>
797
798         * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Restart system
799         call if it returned EINTR.
800
801 2005-07-31  Ulrich Drepper  <drepper@redhat.com>
802
803         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Move
804         helper variable into .data.rel.ro.  Simplify the code.  Extend
805         comment to explain prelinking.
806
807 2005-07-31  Andreas Jaeger  <aj@suse.de>
808
809         * include/bits/syslog.h: New file.
810
811 2005-07-30  Ulrich Drepper  <drepper@redhat.com>
812
813         * elf/dl-load.c [__WORDSIZE==64] (FILEBUF_SIZE): Adjust the value
814         up.  We have more program header entries now and the note section
815         was normally not loaded.
816
817         * nis/nis_subr.c: Some minor code cleanups.
818
819 2005-07-29  Ulrich Drepper  <drepper@redhat.com>
820
821         * misc/bits/syslog.h: New file.
822         * misc/sys/syslog.h: Include <bits/syslog.h> for fortification.
823         * misc/Makefile (headers): Add bits/syslog.h.
824         * include/sys/syslog.h: Add __vsyslog_chk prototype and hidden_proto.
825         * sysdeps/generic/syslog.c: Change vsyslog function to __vsyslog_chk.
826         Call __vfprintf_chk if necessary.  Make vsyslog a wrapper.  Add
827         __syslog_chk.
828         * misc/Versions: Export __syslog_chk and __vsyslog_chk.
829
830 2005-07-28  Thomas Schwinge  <schwinge@nic-nac-project.de>
831
832         [BZ #1137]
833         * misc/error.c [_LIBC]: Include <stdbool.h> and <stdint.h>.
834
835 2005-07-28  Ulrich Drepper  <drepper@redhat.com>
836
837         * nis/nis_xdr.c: Help gcc to avoid generating unnecessary wrapper
838         functions.
839
840 2005-07-28  Jakub Jelinek  <jakub@redhat.com>
841
842         * stdio-common/fxprintf.c (__fxprintf): Add INTUSE to _IO_vfprintf
843         call.
844         * gmon/gmon.c (write_gmon): Use __snprintf rather than snprintf.
845
846 2005-07-28  Ulrich Drepper  <drepper@redhat.com>
847
848         * nis/nis_file.c: Rewrite the two pairs of functions into wrappers
849         around a pair of new, generalized functions.  22% size reduction.
850
851 2005-07-27  Ulrich Drepper  <drepper@redhat.com>
852
853         * nis/nis_xdr.c: Remove unnecessary cast which might hide bugs.
854         Rearrange code.  This reduces the code size 10%.
855
856 2005-07-26  Jakub Jelinek  <jakub@redhat.com>
857
858         * misc/error.c (error_tail): Fix a comment typo.
859
860 2005-07-25  Ulrich Drepper  <drepper@redhat.com>
861
862         * po/zh_TW.po: Update from translation team.
863
864         * debug/mbstowcs_chk.c: New file.
865         * debug/wcstombs_chk.c: New file.
866         * debug/Makefile (routines): Add mbstowcs_chk and wcstombs_chk.
867         * debug/Versions: Add __mbstowcs_chk and __wcstombs_chk.
868         * stdlib/bits/stdlib.h: Add definitions for mbstowcs and wcstombs.
869
870         * wcsmbs/bits/wchar2.h (mbsrtowcs): Pretty printing.
871
872 2005-07-24  Ulrich Drepper  <drepper@redhat.com>
873
874         * string/test-memset.c (test_main): Use negative byte value in
875         test.
876
877         * string/test-memset.c (do_one_test): Compare effect of call, not
878         only return value.
879         Add a few casts to avoid warnings.
880
881 2005-07-24  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
882
883         * sysdeps/sh/memset.S (memset): Correct 2nd argument handling.
884
885 2005-07-24  Ulrich Drepper  <drepper@redhat.com>
886
887         [BZ #1125]
888         * posix/Makefile (tests): Add tst-execvp4.
889         * posix/tst-execvp4.c: New file.
890
891 2005-07-24  Jakub Jelinek  <jakub@redhat.com>
892
893         [BZ #1125]
894         * posix/execvp.c (execvp): Change path_malloc to
895         char *, free that pointer on failure.
896
897 2005-07-24  Ulrich Drepper  <drepper@redhat.com>
898
899         * wcsmbs/bits/wchar2.h: Use __FILE not FILE.
900         * wcsmbs/Makefile: Add rules to build and run tst-wchar-h.
901         * wcsmbs/tst-wchar-h.c: New file.
902
903 2005-07-22  Ulrich Drepper  <drepper@redhat.com>
904
905         * stdio-common/fxprintf.c (__fxprintf): Define variable more local.
906
907 2005-07-22  Jakub Jelinek  <jakub@redhat.com>
908
909         * wcsmbs/bits/wchar2.h (__vfwprintf_chk, __vwprintf_chk): Use
910         __gnuc_va_list rather than _G_va_list.
911
912 2005-07-22  Roland McGrath  <roland@redhat.com>
913
914         [BZ #869]
915         * Makerules ($(objpfx)stubs): Fix last change.
916
917 2005-07-21  Roland McGrath  <roland@redhat.com>
918
919         * nscd/Makefile ($(objpfx)nscd): Pass $(nscd-cflags) to $(LINK.o).
920
921         * stdlib/Makefile (headers): Move bits/wchar.h to ...
922         * wcsmbs/Makefile (headers): ... here.  Add bits/wchar2.h too.
923
924 2005-07-21  Jakub Jelinek  <jakub@redhat.com>
925
926         * wcsmbs/bits/wchar2.h (swprintf): Remove format argument.
927         * debug/tst-chk1.c (do_test): Add test for swprintf with format
928         being the last argument.
929
930 2005-07-21  Thorsten Kukuk  <kukuk@suse.de>
931
932         * debug/getgroups_chk.c (__getgroups_chk): Fix return value.
933
934         * stdio-common/fxprintf.c: Include string.h.
935
936 2005-07-20  Ulrich Drepper  <drepper@redhat.com>
937
938         [BZ #1138]
939         * sysdeps/x86_64/fpu/libm-test-ulps: Adjust expected atan2f results.
940         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
941         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
942
943 2005-07-20  Bob Wilson  <bob.wilson@acm.org>
944             Darin Petkov  <darin@tensilica.com>
945
946         [BZ #1138]
947         * sysdeps/ieee754/flt-32/e_atan2f.c (pi_lo): Correct exponent value.
948
949 2005-07-20  Jakub Jelinek  <jakub@redhat.com>
950
951         * include/stdio.h (__fxprintf): Remove wfmt argument.
952         * stdio-common/fxprintf.c: Include assert.h, ctype.h and wchar.h.
953         (__fxprintf): Remove wfmt argument, create wfmt format string on
954         the fly from fmt.
955         * argp/argp-fmtstream.c: Adjust all __fxprintf callers.
956         * argp/argp-help.c: Likewise.
957         * assert/assert-perr.c: Likewise.
958         * assert/assert.c: Likewise.
959         * gmon/gmon.c: Likewise.
960         * inet/rcmd.c: Likewise.
961         * malloc/obstack.c: Likewise.
962         * misc/error.c: Likewise.
963         * misc/getpass.c: Likewise.
964         * posix/getopt.c: Likewise.
965         * resolv/res_hconf.c: Likewise.
966         * stdio-common/perror.c: Likewise.
967         * stdio-common/psignal.c: Likewise.
968         * stdlib/fmtmsg.c: Likewise.
969         * sunrpc/auth_unix.c: Likewise.
970         * sunrpc/clnt_perr.c: Likewise.
971         * sunrpc/clnt_tcp.c: Likewise.
972         * sunrpc/clnt_udp.c: Likewise.
973         * sunrpc/clnt_unix.c: Likewise.
974         * sunrpc/svc_simple.c: Likewise.
975         * sunrpc/svc_tcp.c: Likewise.
976         * sunrpc/svc_udp.c: Likewise.
977         * sunrpc/svc_unix.c: Likewise.
978         * sunrpc/xdr.c: Likewise.
979         * sunrpc/xdr_array.c: Likewise.
980         * sunrpc/xdr_rec.c: Likewise.
981         * sunrpc/xdr_ref.c: Likewise.
982         * sysdeps/generic/wordexp.c: Likewise.
983
984 2005-07-20  Ulrich Drepper  <drepper@redhat.com>
985
986         * wcsmbs/bits/wchar2.h: Add definitions for wcrtomb, mbsrtowcs,
987         wcsrtombs, mbsnrtowcs, and wcsnrtombs.
988         * debug/Makefile (routines): Add wcrtomb_chk, mbsrtowcs_chk,
989         wcsrtombs_chk, mbsnrtowcs_chk, and wcsnrtombs_chk.
990         * debug/Versions: Add __wcrtomb_chk, __mbsrtowcs_chk,
991         __wcsrtombs_chk, __mbsnrtowcs_chk, and __wcsnrtombs_chk.
992         * debug/tst-chk1.c: Add tests for new functions.
993         * debug/mbsnrtowcs_chk.c: New file.
994         * debug/mbsrtowcs_chk.c: New file.
995         * debug/wcrtomb_chk.c: New file.
996         * debug/wcsnrtombs_chk.c: New file.
997         * debug/wcsrtombs_chk.c: New file.
998
999 2005-07-19  Ulrich Drepper  <drepper@redhat.com>
1000
1001         * stdio-common/Makefile (aux): Add fxprintf.
1002         * stdio-common/fxprintf.c: New file.
1003         * include/stdio.h: Add declaration for __fxprintf.
1004         * argp/argp-fmtstream.c: Use __fxprintf instead of inline stream
1005         orientation test and two separate function calls.
1006         * argp/argp-help.c: Likewise.
1007         * assert/assert-perr.c: Likewise.
1008         * assert/assert.c: Likewise.
1009         * gmon/gmon.c: Likewise.
1010         * inet/rcmd.c: Likewise.
1011         * malloc/obstack.c: Likewise.
1012         * misc/error.c: Likewise.
1013         * misc/getpass.c: Likewise.
1014         * posix/getopt.c: Likewise.
1015         * resolv/res_hconf.c: Likewise.
1016         * stdio-common/perror.c: Likewise.
1017         * stdio-common/psignal.c: Likewise.
1018         * stdlib/fmtmsg.c: Likewise.
1019         * sunrpc/auth_unix.c: Likewise.
1020         * sunrpc/clnt_perr.c: Likewise.
1021         * sunrpc/clnt_tcp.c: Likewise.
1022         * sunrpc/clnt_udp.c: Likewise.
1023         * sunrpc/clnt_unix.c: Likewise.
1024         * sunrpc/svc_simple.c: Likewise.
1025         * sunrpc/svc_tcp.c: Likewise.
1026         * sunrpc/svc_udp.c: Likewise.
1027         * sunrpc/svc_unix.c: Likewise.
1028         * sunrpc/xdr.c: Likewise.
1029         * sunrpc/xdr_array.c: Likewise.
1030         * sunrpc/xdr_rec.c: Likewise.
1031         * sunrpc/xdr_ref.c: Likewise.
1032         * sysdeps/generic/wordexp.c: Likewise.
1033
1034         [BZ #1137]
1035         * misc/Makefile: Add rules to build and run tst-error1.
1036         * misc/tst-error1.c: New file.
1037         * misc/error.c: Fix memory leak and possibly endless loop.
1038
1039         * configure.in: Check for -fstack-protector gcc option.
1040         * config.make.in (have-ssp): Add template.
1041         * nscd/Makefile (nscd-cflags): Add -fstack-protector if supported.
1042
1043         * nscd/nscd.c (main): Don't ignore result of chdir call.
1044
1045 2005-07-18  Roland McGrath  <roland@redhat.com>
1046
1047         [BZ #869]
1048         * Makerules ($(objpfx)stubs): Do cd into $(objdir) to reduce size of
1049         objdump command line.
1050
1051 2005-07-18  Ulrich Drepper  <drepper@redhat.com>
1052
1053         * nscd/Makefile (nscd-cflags): Add _FORTIFY_SOURCE.
1054
1055         * nscd/connections.c: Fix a few wur warnings.
1056
1057         [BZ #1113]
1058         * nscd/grpcache.c (cache_addgr): Use correct maximum for group ID
1059         length.  Patch by Ivan Gyurdiev <ivg2@cornell.edu>.
1060
1061         * debug/confstr_chk.c: New file.
1062         * debug/getdomainname_chk.c: New file.
1063         * debug/getgroups_chk.c: New file.
1064         * debug/gethostname_chk.c: New file.
1065         * debug/getlogin_r_chk.c: New file.
1066         * debug/ttyname_r_chk.c: New file.
1067         * posix/bits/unistd.h: Add definitions for new debug versions.
1068         * debug/tst-chk1.c: Add tests for new functions.
1069         * debug/Versions: Export new functions.
1070         * debug/Makefile (routines): Add new files.
1071
1072         * stdlib/bits/stdlib.h: Fix typo.
1073
1074 2005-07-13  Thorsten Kukuk  <kukuk@suse.de>
1075
1076         * manual/Makefile (libc/index.html): Depend on dir-add.texi.
1077
1078 2005-07-15  Ulrich Drepper  <drepper@redhat.com>
1079
1080         * stdlib/bits/stdlib.h: Use __REDIRECT_NTH instead of __REDIRECT
1081         where necessary.
1082         * wcsmbs/bits/wchar2.h: Likewise.
1083
1084 2005-07-15  Andreas Jaeger  <aj@suse.de>
1085
1086         * debug/Makefile (tst-lfschk3-ENV): New, set locale.
1087         (tst-lfschk2-ENV): New.
1088         (tst-lfschk1-ENV): New.
1089         (tst-chk3-ENV): New.
1090         (tst-chk2-ENV): New.
1091         (tst-chk1-ENV): New.
1092
1093         [BZ #1079]
1094         * include/stdlib.h: Remove malloc attribute from __posix_memalign.
1095         * stdlib/stdlib.h: Likewise.
1096
1097 2005-07-15  Ulrich Drepper  <drepper@redhat.com>
1098
1099         * wcsmbs/bits/wchar2.h: New file.
1100         * include/bits/wchar2.h: New file.
1101         * wcsmbs/wchar.h: Include <bits/wchar2.h> if fortification is
1102         requested.
1103         * wcsmbs/wcsncpy.c: Add __wcsncpy alias.
1104         * string/bits/string3.h: Add fortified stpncpy definitions.
1105         * sysdeps/generic/stpncpy_chk.c: New file.
1106         * libio/vswprintf.c: Move _IO_wstrnfile definition to strfile.h.
1107         Export _IO_wstrn_jumps.
1108         * libio/strfile.h: Define _IO_wstrnfile and declare _IO_wstrn_jumps.
1109         * include/wchar.h: Declare __wcsncpy and __vswprintf_chk.
1110         * debug/fgetws_chk.c: New file.
1111         * debug/fgetws_u_chk.c: New file.
1112         * debug/fwprintf_chk.c: New file.
1113         * debug/swprintf_chk.c: New file.
1114         * debug/vfwprintf_chk.c: New file.
1115         * debug/vswprintf_chk.c: New file.
1116         * debug/vwprintf_chk.c: New file.
1117         * debug/wcpcpy_chk.c: New file.
1118         * debug/wcpncpy_chk.c: New file.
1119         * debug/wcscat_chk.c: New file.
1120         * debug/wcscpy_chk.c: New file.
1121         * debug/wcsncat_chk.c: New file.
1122         * debug/wcsncpy_chk.c: New file.
1123         * debug/wmemcpy_chk.c: New file.
1124         * debug/wmemmove_chk.c: New file.
1125         * debug/wmempcpy_chk.c: New file.
1126         * debug/wmemset_chk.c: New file.
1127         * debug/wprintf_chk.c: New file.
1128         * debug/tst-chk1.c: Add tests for new functions.
1129         * debug/Versions: Export new functions.
1130         * debug/Makefile (routines): Add new functions.
1131
1132 2005-07-13  Ulrich Drepper  <drepper@redhat.com>
1133
1134         * nscd/nscd_helper.c: Add a few __builtin_expect.
1135
1136         [BZ #1080]
1137         * nscd/connections.c (send_ro_fd): Make sure BUF is aligned correctly.
1138         * nscd/nscd_helper.c (wait_on_socket): New function.
1139         (get_mapping): Use wait_on_socket instead of poll.  The former handles
1140         EINTR of poll correctly.
1141         (__nscd_open_socket): Likewise.
1142         (get_mapping): Make sure BUF is aligned correctly.
1143         (get_mapping): Use munmap on correct pointer.
1144
1145 2005-07-12  Ulrich Drepper  <drepper@redhat.com>
1146
1147         * include/libc-symbols.h: Define macros for librt hidden symbols.
1148         * include/time.h: Add librt_hidden_proto definition for clock_gettime.
1149         * sysdeps/generic/clock_gettime.c: Add librt_hidden_def.
1150         * sysdeps/unix/clock_gettime.c: Likewise.
1151
1152         * stdlib/bits/stdlib.h: New file.
1153         * stdlib/stdlib.h: Include <bits/stdlib.h> if fortification is
1154         requested.
1155         * Makefile (headers): Add bits/stdlib.h.
1156         * include/bits/stdlib.h: New file.
1157         * debug/Depend: New file.
1158         * debug/ptsname_r_chk.c: New file.
1159         * debug/realpath_chk.c: New file.
1160         * debug/wctomb_chk.c: New file.
1161         * debug/Makefile (routines): Add ptsname_r_chk, realpath_chk, and
1162         wctomb_chk.
1163         * debug/Versions: Export __ptsname_r_chk, __realpath_chk, and
1164         __wctomb_chk.
1165         * debug/tst-chk1.c: Add tests for __ptsname_r_chk, __realpath_chk, and
1166         __wctomb_chk.
1167
1168 2005-07-12  Jakub Jelinek  <jakub@redhat.com>
1169
1170         [BZ #1106]
1171         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Include not-cancel.h.
1172         (has_cpuclock): Use open_not_cancel_2 instead of open, read_not_cancel
1173         instead of read and close_not_cancel_no_status instead of close.
1174
1175         [BZ #1106]
1176         * sysdeps/s390/s390-64/bcopy.S (__bcopy): Use
1177         HIDDEN_BUILTIN_JUMPTARGET to jump to memmove.
1178
1179 2005-06-27  Carlos O'Donell  <carlos@systemhalted.org>
1180
1181         * posix/regcomp.c (re_compile_internal): Call __libc_lock_init
1182         after init_dfa.
1183
1184 2005-07-08  Ulrich Drepper  <drepper@redhat.com>
1185
1186         * sysdeps/x86_64/fpu/s_sincosl.S: Use retq not ret.  Remove
1187         alignment.
1188         * sysdeps/x86_64/fpu/s_sincos.S: New file.
1189
1190         * include/fenv.h: Add libm_hidden_proto for fesetround and
1191         feholdexcept.
1192         * sysdeps/alpha/fpu/feholdexcpt.c: Add libm_hidden_def.
1193         * sysdeps/alpha/fpu/fesetround.c: Likewise.
1194         * sysdeps/generic/feholdexcpt.c: Likewise.
1195         * sysdeps/generic/fesetround.c: Likewise.
1196         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1197         * sysdeps/i386/fpu/fesetround.c: Likewise.
1198         * sysdeps/ia64/fpu/feholdexcpt.c: Likewise.
1199         * sysdeps/ia64/fpu/fesetround.c: Likewise.
1200         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
1201         * sysdeps/powerpc/fpu/fesetround.c: Likewise.
1202         * sysdeps/s390/fpu/feholdexcpt.c: Likewise.
1203         * sysdeps/s390/fpu/fesetround.c: Likewise.
1204         * sysdeps/sh/sh4/fpu/feholdexcpt.c: Likewise.
1205         * sysdeps/sh/sh4/fpu/fesetround.c: Likewise.
1206         * sysdeps/sparc/fpu/feholdexcpt.c: Likewise.
1207         * sysdeps/sparc/fpu/fesetround.c: Likewise.
1208         * sysdeps/x86_64/fpu/feholdexcpt.c: Likewise.
1209         * sysdeps/x86_64/fpu/fesetround.c: Likewise.
1210         * sysdeps/generic/s_significand.c (__significand): Use __ilogb not
1211         ilogb.
1212         * sysdeps/generic/s_significandf.c (__significandf): Use __ilogbf
1213         not ilogbf.
1214         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use __sin and
1215         __cos, not sin and cos.
1216
1217 2005-07-07  Ulrich Drepper  <drepper@redhat.com>
1218
1219         * resolv/res_send.c (send_dg): Recognize referral results and
1220         treat them as server errors.
1221         Based on a patch by Jason Vas Dias <jvdias@redhat.com>.
1222
1223 2005-07-08  Carlos O'Donell  <carlos@systemhalted.org>
1224
1225         * sysdeps/hppa/setjmp.S (__sigsetjmp): Use %r1 not %r19.
1226
1227         * sysdeps/hppa/add_n.s (__mpn_add_n): Use sr0 or r0, not 0.
1228         * sysdeps/hppa/lshift.s (__mpn_lshift): Likewise.
1229         * sysdeps/hppa/rshift.s (__mpn_rshift): Likewise.
1230         * sysdeps/hppa/sub_n.s (__mpn_sub_n): Likewise.
1231         * sysdeps/hppa/udiv_qrnnd.s (__udiv_qrnnd): Likewise.
1232         * sysdeps/hppa/hppa1.1/udiv_qrnnd.s (__udiv_qrnnd): Likewise.
1233
1234 2005-07-07  Ulrich Drepper  <drepper@redhat.com>
1235
1236         * sysdeps/generic/s_ctanh.c (__ctanh): Handle case of zero den better.
1237         * sysdeps/generic/s_ctanhf.c (__ctanhf): Likewise.
1238         * sysdeps/generic/s_ctanhl.c (__ctanhl): Likewise.
1239         * sysdeps/generic/s_ctan.c (__ctan): Likewise.
1240         * sysdeps/generic/s_ctanf.c (__ctanf): Likewise.
1241         * sysdeps/generic/s_ctanl.c (__ctanl): Likewise.
1242
1243 2005-04-13  H.J. Lu  <hongjiu.lu@intel.com>
1244
1245         [BZ #974]
1246         * csu/elf-init.c (__preinit_array_start): Take int, char **, char **.
1247         (__preinit_array_end): Likewise.
1248         (__init_array_start): Likewise.
1249         (__init_array_end): Likewise.
1250         (__libc_csu_init): Take int argc, char **argv, char **envp.
1251         Call preinit_array and init_array with argc, argv, envp.
1252         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Remove
1253         INIT_MAIN_ARGS.
1254         * sysdeps/powerpc/elf/libc-start.c (INIT_MAIN_ARGS): Removed.
1255         * elf/Makefile (distribute): Add tst-array5.c, tst-array5-static.c,
1256         tst-array5dep.c, and tst-array5.exp.
1257         (tests): Add tst-array5.
1258         (tests-static): Add tst-array5-static.
1259         ($(objpfx)tst-array5): New target.
1260         ($(objpfx)tst-array5.out): Likewise.
1261         ($(objpfx)tst-array5-static.out): Likewise.
1262         * elf/tst-array5-static.c: New file.
1263         * elf/tst-array5-static.exp: Likewise.
1264         * elf/tst-array5.c: Likewise.
1265         * elf/tst-array5.exp: Likewise.
1266         * elf/tst-array5dep.c: Likewise.
1267
1268 2005-07-07  Ulrich Drepper  <drepper@redhat.com>
1269
1270         * sysdeps/unix/sysv/linux/bits/sched.h: Adjust clone prototype.
1271
1272 2005-07-05  Jakub Jelinek  <jakub@redhat.com>
1273
1274         * elf/stackguard-macros.h (STACK_CHK_GUARD): Fix s390/s390x definition.
1275         Reported by Ulrich Weigand <uweigand@de.ibm.com>.
1276
1277         * elf/stackguard-macros.h (STACK_CHK_GUARD): Add ia64 definition.
1278
1279 2005-07-06  Ulrich Drepper  <drepper@redhat.com>
1280
1281         * elf/dl-error.c (_dl_signal_error): When testing for executable
1282         being relocated, take into account that nothing might even be loaded.
1283
1284         * elf/dl-reloc.c [PROF] (_dl_relocate_object): Define
1285         consider_profiling always to zero.  Don't count of compiler to
1286         remove unreached if block.
1287         * sysdeps/x86_64/dl-trampoline.S [PROF] (_dl_runtime_profile):
1288         Don't compile.
1289         * sysdeps/i386/dl-trampoline.S [PROF] (_dl_runtime_profile): Likewise.
1290         * sysdeps/ia64/dl-trampoline.S [PROF] (_dl_runtime_profile): Likewise.
1291         * sysdeps/s390/s390-64/dl-trampoline.S [PROF] (_dl_runtime_profile):
1292         Likewise.
1293         * sysdeps/s390/s390-32/dl-trampoline.S [PROF] (_dl_runtime_profile):
1294         Likewise.
1295         * sysdeps/powerpc/powerpc64/dl-trampoline.S [PROF]
1296         (_dl_profile_resolve): Likewise.
1297         * sysdeps/powerpc/powerpc32/dl-trampoline.S [PROF]
1298         (_dl_profile_resolve): Likewise.
1299         * gmon/Makefile: Add rules to build and run tst-profile-static.
1300         * gmon/tst-profile-static.c: New file.
1301         * Makeconfig (+link-static): Allow passing program-specific flags.
1302
1303 2005-07-05  Thorsten Kukuk  <kukuk@suse.de>
1304
1305         [BZ #1111]
1306         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Check if NSS
1307         module provides getgrgid_r.
1308         (getgrnam_plusgroup): Preserve original return value.
1309         * nis/nss_compat/compat-pwd.c (getpwnam_plususer): Preserve
1310         original return value.
1311         * nis/nss_compat/compat-spwd.c (getspnam_plususer): Likewise.
1312
1313 2005-07-05  Ulrich Drepper  <drepper@redhat.com>
1314
1315         [BZ #1101]
1316         * posix/regex_internal.c (build_wcs_buffer): Use MB_LEN_MAX not
1317         MB_CUR_MAX.
1318         (build_wcs_upper_buffer): Likewise.
1319
1320         * csu/elf-init.c (__libc_csu_fini): Pretty printing.
1321
1322 2005-07-02  Roland McGrath  <roland@redhat.com>
1323
1324         * NEWS: Note LinuxThreads removal.
1325         * manual/install.texi (Installation): Don't mention linuxthreads.
1326         (Configuring and compiling): Don't use linuxthreads as example.
1327
1328         * sysdeps/unix/sysv/linux/configure.in: Check for nptl add-on only,
1329         not linuxthreads.
1330         * sysdeps/unix/sysv/linux/configure: Regenerated.
1331         * resolv/Depend: Add nptl.
1332         * rt/Depend: Likewise.
1333
1334         * linuxthreads, linuxthreads_db: Directories removed (preserved in
1335         ports repository).
1336
1337 2005-06-27  Jakub Jelinek  <jj@ultra.linux.cz>
1338
1339         [BZ #1037]
1340         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: -mv8 is deprecated,
1341         use -mcpu=v8.
1342
1343 2005-06-16  Jakub Jelinek  <jakub@redhat.com>
1344
1345         [BZ #1016]
1346         * sysdeps/ia64/strlen.S (strlen): Change l2 into a local label.
1347
1348 2005-06-23  Thorsten Kukuk  <kukuk@suse.de>
1349
1350         [BZ #1109]
1351         * nscd/nscd_stat.c (receive_print_stats): Replace YESSTR/NOSTR
1352         with own translation.
1353
1354 2005-06-25  Jakub Jelinek  <jakub@redhat.com>
1355
1356         [BZ #1097]
1357         * sunrpc/xdr.c (xdr_hyper, xdr_u_hyper): When decoding, cast
1358         t2 to uint32_t instead of ulong.
1359         * sunrpc/Makefile (tests): Add tst-xdrmem.
1360         * sunrpc/tst-xdrmem.c: New test.
1361
1362         * Versions.def (ld): Add GLIBC_2.4.
1363         * configure.in: Add --enable-stackguard-randomization option.
1364         (ENABLE_STACKGUARD_RANDOMIZE): New define.
1365         * config.h.in (ENABLE_STACKGUARD_RANDOMIZE): Add.
1366         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include stdint.h.
1367         (_dl_setup_stack_chk_guard): New inline function.
1368         * sysdeps/generic/dl-osinfo.h: Include stdint.h.
1369         (_dl_setup_stack_chk_guard): New inline function.
1370         * elf/rtld.c (__stack_chk_guard): New variable.
1371         (dl_main): Remove all traces of TLS_INIT_TP_EXPENSIVE.
1372         Set __stack_chk_guard to _dl_setup_stack_chk_guard (),
1373         use THREAD_SET_STACK_GUARD if defined.
1374         * elf/Versions (ld): Export __stack_chk_guard@@GLIBC_2.4.
1375         * sysdeps/generic/libc-start.c (__stack_chk_guard): New variable.
1376         (__libc_start_main): Set __stack_chk_guard to
1377         _dl_setup_stack_chk_guard (), use THREAD_SET_STACK_GUARD if defined.
1378         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Remove all
1379         traces of TLS_INIT_TP_EXPENSIVE.
1380         * debug/Versions (libc): Export __stack_chk_fail@@GLIBC_2.4.
1381         * debug/Makefile (routines): Add stack_chk_fail.
1382         (static-only-routines): Add stack_chk_fail_local.
1383         * debug/stack_chk_fail_local.c: New file.
1384         * debug/stack_chk_fail.c: New file.
1385         * elf/Makefile: Add rules to build and run tst-stackguard1{,-static}
1386         tests.
1387         * elf/tst-stackguard1.c: New file.
1388         * elf/tst-stackguard1-static.c: New file.
1389         * elf/stackguard-macros.h: New file.
1390
1391 2005-06-21  Ulrich Drepper  <drepper@redhat.com>
1392
1393         * resource/Makefile (tests): Add tst-getrlimit.
1394         * resource/tst-getrlimit.c: New file.
1395
1396         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTPRIO): Fix typo.
1397         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1398         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1399
1400 2005-06-20  Ulrich Drepper  <drepper@redhat.com>
1401
1402         * nscd/nscd.init: Get more in line with lsb3.
1403         * nscd/nscd.c: Adjust some error codes to fit in better with lsb3.
1404         * nscd/connections.c: Likewise.
1405
1406 2005-06-20  Jakub Jelinek  <jakub@redhat.com>
1407
1408         [BZ #653]
1409         * sysdeps/unix/sysv/linux/sys/quota.h: Add definitions and types for
1410         _LINUX_QUOTA_VERSION >= 2.
1411         (_LINUX_QUOTA_VERSION): Define if not yet defined.
1412
1413         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_NICE,
1414         RLIMIT_RTPRIO): Add.
1415         (RLIMIT_NLIMITS): Adjust.
1416         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_NICE,
1417         RLIMIT_RTPRIO): Add.
1418         (RLIMIT_NLIMITS): Adjust.
1419         * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_NICE,
1420         RLIMIT_RTPRIO): Add.
1421         (RLIMIT_NLIMITS): Adjust.
1422         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_NICE,
1423         RLIMIT_RTPRIO): Add.
1424         (RLIMIT_NLIMITS): Adjust.
1425
1426 2005-06-17  Ulrich Drepper  <drepper@redhat.com>
1427
1428         [BZ #1106]
1429         * time/mktime.c: Always include <string.h> for prototype of
1430         implicitly used memcpy.
1431
1432         [BZ #1104]
1433         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
1434         (truncate64): Use __truncate, not truncate.
1435         (__have_no_truncate64): Renamed from have_no_truncate64.
1436         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
1437         (__have_no_truncate64): Renamed from have_no_truncate64.
1438
1439         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ulps for complex
1440         float functions for gcc 4.
1441
1442 2005-06-10  Jakub Jelinek  <jakub@redhat.com>
1443
1444         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_runtime_setup):
1445         Handle prelinked libraries and binaries with new style PLT.
1446
1447 2005-06-07  Jakub Jelinek  <jakub@redhat.com>
1448
1449         * elf/elf.h (R_PPC_REL16, R_PPC_REL16_LO, R_PPC_REL16_HI,
1450         R_PPC_REL16_HA): Define.
1451
1452 2005-06-14  Alan Modra  <amodra@bigpond.net.au>
1453
1454         * config.h.in (HAVE_ASM_PPC_REL16): Add.
1455         * elf/elf.h (DT_PPC_GOT, DT_PPC_NUM): Define.
1456         * elf/tls-macros.h (PowerPC32): Include config.h.  Add variants of
1457         TLS_IE, TLS_LD and TLS_GD for new PLT/GOT layout.
1458         * sysdeps/powerpc/powerpc32/configure.in: New file,
1459         * sysdeps/powerpc/powerpc32/dl-dtprocnum.h: New file.
1460         * sysdeps/powerpc/powerpc32/dl-machine.h (DT_PPC): Define.
1461         (ppc_got): New inline function.
1462         (elf_machine_dynamic): Use ppc_got.  Add attribute const.
1463         (elf_machine_load_address): Add attribute const.  Don't use int vars.
1464         Use bcl rather than bl to save trashing branch target stack.  Use
1465         elf_machine_dynamic rather than duplicating code here.
1466         (elf_machine_runtime_setup): New inline function replacing define.
1467         Handle new PLT.
1468         (elf_machine_fixup_plt): Handle new PLT.
1469         (elf_machine_rela): Likewise.
1470         * sysdeps/powerpc/powerpc32/sysdep.h: Include config.h.
1471         (CALL_MCOUNT): Don't set up counter vars.
1472         * sysdeps/powerpc/powerpc32/ppc-mcount.S: Correct comment.
1473         * sysdeps/powerpc/powerpc32/elf/start.S (start_addressesp): Don't
1474         define when HAVE_ASM_PPC_REL16.
1475         (_start): Add HAVE_ASM_PPC_REL16 code.
1476         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Don't bl
1477         into the GOT when HAVE_ASM_PPC_REL16.
1478         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
1479         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Ditto.
1480         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Likewise.
1481         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1482         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1483         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1484         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Likewise.
1485         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
1486         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
1487         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
1488         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
1489         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1490         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1491         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp):
1492         Likewise.
1493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S (__brk): Likewise.
1494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1495         (__getcontext): Likewise.
1496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1497         (__setcontext): Likewise.
1498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1499         (__swapcontext): Likewise.
1500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (stackblock):
1501         Comment.
1502         (__socket): Bomb if NARGS >= 7.  Invoke CGOTSETUP and CGOTRESTORE.
1503
1504 2005-06-17  Ulrich Drepper  <drepper@redhat.com>
1505
1506         [BZ #1106]
1507         * sysdeps/posix/sigignore.c: Include <string.h> to tell the compiler
1508         to use __GI_memset.
1509         * sysdeps/posix/signal.c: Likewise.
1510         * sysdeps/posix/sigset.c: Likewise.
1511         * sysdeps/posix/sysv_signal.c: Likewise.
1512         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
1513         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
1514         * sysdeps/unix/sysv/linux/system.c: Likewise.
1515
1516 2005-06-15  Jakub Jelinek  <jakub@redhat.com>
1517
1518         [BZ #1088]
1519         * hesiod/hesiod.c (hesiod_init): Don't check for ctx->classes[0] == 0
1520         or both classes equal here.
1521         (parse_config_file): If both classes are equal, clear the second one.
1522
1523 2005-06-08  Karl Kelley  <kekelley@iastate.edu>
1524
1525         [BZ #1088]
1526         * hesiod/hesiod_p.h (struct hesiod_p): Add classes array.
1527         * hesiod/hesiod.c (hesiod_init): Initialize classes.  Fail if no
1528         valid classes were given or if both are equal.
1529         (hesiod_resolve): Use ctx->classes instead of hardcoded C_IN
1530         and C_HS order.
1531         (parse_config_file): Handle classes keyword.
1532         * hesiod/README.hesiod: Mention addition of the classes keyword.
1533
1534 2005-06-14  Ulrich Drepper  <drepper@redhat.com>
1535
1536         [BZ #1085]
1537         * configure.in: Add test for availability of libaudit.
1538         * config.h.in: Define HAVE_LIBAUDIT.
1539         * config.make.in: Define have-libaudit.
1540         * nscd/Makefile: If libaudit is available, link nscd with it.
1541         * nscd/selinux.c: If HAVE_LIBAUDIT is defined, log using libaudit.
1542         Patch by Steve Grubb <sgrubb@redhat.com>.
1543
1544         * debug/pread64_chk.c: Use __libc_pread64 instead of __pread64.
1545         * sysdeps/posix/posix_fallocate64.c: Likewise.
1546         * include/string.h: Use libc_hidden_proto for strnlen.
1547         * sysdeps/generic/strnlen.c: Add libc_hidden_def.
1548         * include/libintl.h: Use libc_hidden_proto for __dcgettext.
1549         * intl/dcgettext.c: Add libc_hidden_def.
1550         * include/execinfo.h: Add libc_hidden_proto for __backtrace and
1551         __backtrace_symbols_fd.
1552         * sysdeps/generic/backtrace.c: Add libc_hidden_def.
1553         * sysdeps/generic/backtracesymsfd.c: Likewise.
1554         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
1555         * sysdeps/i386/backtrace.c: Likewise.
1556         * sysdeps/ia64/backtrace.c: Likewise.
1557         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
1558         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
1559         * sysdeps/s390/s390-32/backtrace.c: Likewise.
1560         * sysdeps/s390/s390-64/backtrace.c: Likewise.
1561
1562 2005-06-13  Ulrich Drepper  <drepper@redhat.com>
1563
1564         * sysdeps/unix/clock_gettime.c (clock_gettime): Implement case
1565         where HANDLED_REALTIME is not defined.  [BZ #966]
1566
1567 2005-06-13  Jakub Jelinek  <jakub@redhat.com>
1568
1569         [BZ #1096]
1570         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_sendreq,
1571         __netlink_receive): Remove prototypes.
1572         (__netlink_request): New prototype.
1573         * sysdeps/unix/sysv/linux/ifaddrs.c: Include <alloca.h> and
1574         <stdint.h>.
1575         (__netlink_sendreq): Make static.
1576         (__netlink_receive): Rename to...
1577         (__netlink_request): ... this.  Add type argument, call
1578         __netlink_sendreq.  If MSG_TRUNC is set after recvmsg, retry
1579         with a bigger buffer.  Don't record buffers that contain no
1580         messages we are expecting.
1581         (getifaddrs): Use __netlink_request instead of __netlink_sendreq
1582         and __netlink_receive pairs.  Formatting.
1583         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex_netlink): Use
1584         __netlink_request instead of __netlink_sendreq and __netlink_receive
1585         pair.
1586
1587 2005-06-13  Thorsten Kukuk  <kukuk@suse.de>
1588
1589         * sysdeps/unix/sysv/linux/netinet/if_tr.h: Don't include kernel
1590         headers, instead copy important structs/defines.
1591
1592 2005-06-13  Jakub Jelinek  <jakub@redhat.com>
1593
1594         * elf/rtld.c (dl_main): Move DT_DEBUG setup before first
1595         _dl_debug_state call.
1596
1597 2005-06-12  Ulrich Drepper  <drepper@redhat.com>
1598
1599         * elf/dl-error.c (_dl_signal_error): Store information about use of
1600         real malloc in the catch object.
1601         (_dl_catch_error): Forward information about malloc use to caller
1602         in new parameter.
1603         (_dl_out_of_memory): Make static.
1604         * elf/dl-deps.c: Adjust callers of _dl_catch_error.
1605         * elf/dl-libc.c: Likewise.
1606         * elf/dl-open.c: Likewise.
1607         * elf/rtld.c: Likewise.
1608         Add new --audit option.
1609         * sysdeps/generic/ldsodefs.h: Remove _dl_out_of_memory declaration.
1610         (rtld_global_ro._dl_signal_error): Add new parameter.
1611         * include/dlfcn.h (_dl_catch_error): Add new parameter.
1612         * dlfcn/dlfcn.c (_dlerror_run): Pass additional parameter to
1613         _dl_catch_error.  Only free if the returned newly value says so.
1614
1615 2005-06-01  Roland McGrath  <roland@redhat.com>
1616
1617         [BZ #959]
1618         * posix/tst-mmap.c (main): Fill the test file with enough data for the
1619         page size.
1620
1621 2005-05-30  Jakub Jelinek  <jakub@redhat.com>
1622
1623         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): If
1624         GLRO(dl_osversion) has been already set to a value smaller than
1625         _dl_discover_osversion (), don't overwrite it here.
1626
1627 2005-05-24  Thomas Schwinge  <schwinge@nic-nac-project.de>
1628
1629         * sysdeps/mach/i386/syscall.S (syscall): Call END.
1630
1631 2005-05-28  Richard Henderson  <rth@redhat.com>
1632
1633         * elf/elf.h (DT_ALPHA_PLTRO, DT_ALPHA_NUM): New.
1634         * sysdeps/alpha/dl-dtprocnum.h: New file.
1635         * sysdeps/alpha/dl-machine.h (DT_ALPHA): New.
1636         (elf_machine_load_address): Simplify to rely on gprel relocations.
1637         (elf_machine_runtime_setup): Handle DT_ALPHA_PLTRO plt format.
1638         Remove thread safety workaround for binutils 2.6.
1639         (elf_machine_fixup_plt): Handle DT_ALPHA_PLTRO plt format.
1640         * sysdeps/alpha/dl-trampoline.S (_dl_runtime_resolve_new): New.
1641         (_dl_runtime_profile_new): New.
1642         (_dl_runtime_resolve_old): Rename from _dl_runtime_resolve.
1643         (_dl_runtime_profile_old): Rename from _dl_runtime_profile.  Fix
1644         typo in _dl_call_pltexit argument loading.
1645
1646         * sysdeps/alpha/div_libc.h (funcnoplt): New.
1647         * sysdeps/alpha/divl.S: Use it.
1648         * sysdeps/alpha/divq.S: Likewise
1649         * sysdeps/alpha/divqu.S: Likewise.
1650         * sysdeps/alpha/reml.S: Likewise.
1651         * sysdeps/alpha/remq.S: Likewise.
1652         * sysdeps/alpha/remqu.S: Likewise.
1653
1654 2005-05-26  Andreas Schwab  <schwab@suse.de>
1655
1656         * locale/Makefile (CFLAGS-loadlocale.c): Don't define.
1657
1658 2005-05-26  Ulrich Drepper  <drepper@redhat.com>
1659
1660         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_DIRECT): Fix value.
1661         Reported by Colin Gibbs <colin@gibbsonline.net>.  [BZ #954]
1662
1663 2005-05-17  Alan Modra  <amodra@bigpond.net.au>
1664
1665         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Corrent
1666         _dl_hwcap access in PIC && !SHARED case.
1667         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
1668
1669 2005-05-25  Dwayne Grant McConnell  <dgm69@us.ibm.com>
1670
1671         * gmon/gmon.c: Add space in weak_alias use.
1672         * linuxthreads/sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
1673         * sysdeps/alpha/htonl.S: Likewise.
1674         * sysdeps/alpha/htons.S: Likewise.
1675         * sysdeps/alpha/elf/start.S: Likewise.
1676         * sysdeps/i386/i386-mcount.S: Likewise.
1677         * sysdeps/ia64/strchr.S: Likewise.
1678         * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
1679         * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
1680         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
1681         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
1682         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
1683         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
1684         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
1685         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
1686         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
1687         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
1688         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
1689         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
1690         * sysdeps/mach/hurd/readdir64_r.c: Likewise.
1691         * sysdeps/mach/hurd/sigaltstack.c: Likewise.
1692         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
1693         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
1694         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
1695         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
1696         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
1697         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
1698         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
1699         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
1700         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
1701         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
1702         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
1703         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
1704         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
1705         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
1706         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
1707         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
1708         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
1709         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
1710         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1711         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1712         * sysdeps/sparc/sparc32/memset.S: Likewise.
1713         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
1714         * sysdeps/sparc/sparc32/strchr.S: Likewise.
1715         * sysdeps/sparc/sparc32/strchr.S: Likewise.
1716         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
1717         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
1718         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
1719         * sysdeps/sparc/sparc64/memset.S: Likewise.
1720         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
1721         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
1722         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
1723         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
1724         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
1725         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1726         * sysdeps/unix/sysv/linux/alpha/getcontext.S: Likewise.
1727         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1728         * sysdeps/unix/sysv/linux/alpha/setcontext.S: Likewise.
1729         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
1730         * sysdeps/unix/sysv/linux/alpha/swapcontext.S: Likewise.
1731         * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
1732         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1733         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
1734         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
1735         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1736         * sysdeps/unix/sysv/linux/i386/makecontext.S: Likewise.
1737         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1738         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
1739         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
1740         * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
1741         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
1742         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
1743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
1744         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
1745         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
1746         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
1747         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
1748         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
1749         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
1750         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
1751         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
1752         * sysdeps/unix/sysv/linux/sparc/sparc64/getcontext.S: Likewise.
1753         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
1754         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
1755         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
1756         * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
1757         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
1758         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Likewise.
1759         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
1760         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
1761         * sysdeps/x86_64/_mcount.S: Likewise.
1762
1763 2005-05-24  Roland McGrath  <roland@redhat.com>
1764
1765         * sysdeps/unix/sysv/linux/i386/sysdep.h
1766         (SETUP_PIC_REG, LOAD_PIC_REG): Move these macros ...
1767         * sysdeps/i386/sysdep.h [PIC]: ... to here.
1768
1769 2005-05-23  Roland McGrath  <roland@redhat.com>
1770
1771         * sysdeps/arm, sysdeps/unix/arm, sysdeps/unix/sysv/linux/arm:
1772         Subdirectories moved to ports repository.
1773         * configure.in (base_machine): Remove arm* and thumb* patterns.
1774         * shlib-versions (arm.*-.*-linux.*): Remove this pattern.
1775
1776 2005-05-23  Ulrich Drepper  <drepper@redhat.com>
1777
1778         [BZ #1086]
1779         * sunrpc/bindrsvprt.c (LOWPORT): Apparently some mountd
1780         implementations are broken and don't accept ports < 512.
1781
1782 2005-05-22  Dmitry V. Levin  <ldv@altlinux.org>
1783
1784         [BZ #961]
1785         * io/sys/sendfile.h: Remove __nonnull from sendfile and sendfile64
1786         declarations.
1787
1788 2005-05-23  Ulrich Drepper  <drepper@redhat.com>
1789
1790         [BZ #1086]
1791         * sunrpc/pm_getport.c (__get_socket): New function.
1792         (pmap_getport): Use it to open a non-reserved socket to the portmapper
1793         for TCP.
1794         * include/rpc/pmap_clnt.h (__get_socket): Declare.
1795         * sunrpc/pm_getmaps.c (pmap_getmaps): Use __get_socket to get an
1796         non-reserved socket for the portmapper.
1797         Based on a patch by Steve Dickson <steved@redhat.com>.
1798
1799         [BZ #1086]
1800         * sunrpc/bindrsvprt.c (bindresvport): Try harder to find a port.
1801         If we tried looking at the usual range without success extend the
1802         range to even lower ports.
1803
1804         * sysdeps/unix/clock_gettime.c (clock_gettime): Revert last patch.
1805
1806 2005-05-22  Andreas Schwab  <schwab@suse.de>
1807
1808         * elf/rtld.c: Include <dl-osinfo.h>.
1809
1810 2005-05-17  Alan Modra  <amodra@bigpond.net.au>
1811
1812         * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Don't use
1813         JUMPTARGET.  Instead append @local to __syscall_error.
1814         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Delete all occurrences
1815         of JUMPTARGET.  Instead append @local to labels.
1816         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
1817         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
1818         * sysdeps/powerpc/powerpc32/ppc-mcount.S: Likewise.
1819         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
1820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
1821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
1822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
1823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
1824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
1825         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
1826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
1827
1828         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Use float constants.
1829         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
1830         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
1831         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
1832         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.  Use one GOT
1833         slot to access both constants.
1834         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
1835         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
1836
1837         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (TWO52.0): Delete.
1838         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (TWO23.0): Delete.
1839         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (TWO52.0): Delete.
1840         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (TWO23.0): Delete.
1841         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Comment typo.
1842         (NEGZERO.0, POINTFIVE.0): Delete.
1843         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (TWO52.0): Delete.
1844         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (TWO23.0): Delete.
1845         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Code in .text.
1846         (TWO52.0, POINTFIVE.0): Delete.
1847         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Code in .text.
1848         (TWO23.0, POINTFIVE.0): Delete.
1849         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Code in .text.
1850         (TWO52.0): Delete.
1851         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Code in .text.
1852         (TWO23.0): Delete.
1853         * sysdeps/powerpc/powerpc32/memset.S (memset): Formatting.
1854
1855 2005-05-19  Richard Henderson  <rth@redhat.com>
1856
1857         * sysdeps/unix/clock_gettime.c (clock_gettime): Fix typo around
1858         CLOCK_REALTIME.
1859
1860         * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_bool_32_acq,
1861         __arch_compare_and_exchange_bool_64_acq,
1862         __arch_compare_and_exchange_val_32_acq,
1863         __arch_compare_and_exchange_val_64_acq, atomic_exchange_and_add):
1864         Use __sync builtin without _si or _di suffix.
1865
1866 2005-05-19  Jakub Jelinek  <jakub@redhat.com>
1867
1868         [BZ #955]
1869         * iconvdata/ibm939.c (BODY): Avoid segfaults with input characters
1870         <UFFFF> and above.
1871
1872 2005-05-17  Andreas Schwab  <schwab@suse.de>
1873
1874         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1875         (clock_getcpuclockid): Always return a defined value.
1876
1877 2005-05-17  Neal H. Walfield  <neal@gnu.org>
1878
1879         * sysdeps/posix/getaddrinfo.c (gaih_local): Check [_HAVE_SA_LEN]
1880         instead of [SALEN].
1881         (gaih_inet): Likewise.
1882
1883 2005-05-11  Ulrich Drepper  <drepper@redhat.com>
1884
1885         * elf/elf.h (Elf32_auxv_t): Make cross-compile safe.
1886         (Elf64_auxv_t): Likewise.
1887         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
1888         removal of a_ptr element in ElfXX_auxv_t.
1889         * elf/dl-support.c (_dl_aux_init): Likewise.
1890
1891 2005-05-09  Daniel Jacobowitz  <dan@codesourcery.com>
1892
1893         * sysdeps/unix/sysv/linux/clock_getres.c: Include <time.h>.
1894         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
1895
1896 2005-05-09  Alan Modra  <amodra@bigpond.net.au>
1897
1898         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
1899         .pushsection/.popsection in place of .section/.previous.
1900
1901 2005-05-08  Ulrich Drepper  <drepper@redhat.com>
1902
1903         * MakeTAGS: Make xgettext not look into test cases.
1904
1905         * MakeTAGS: Make sure translations in error calls are marked with
1906         c-format by xgettext.
1907
1908 2005-05-07  Ulrich Drepper  <drepper@redhat.com>
1909
1910         * intl/libintl.h: Always use __attribute_format_arg__ for gettext
1911         functions since gcc sometimes forgets the attribute for the
1912         standard functions.
1913
1914 2005-05-06  Jakub Jelinek  <jakub@redhat.com>
1915
1916         [BZ #934]
1917         * posix/regex_internal.h: Include bits/libc-lock.h or define dummy
1918         __libc_lock_* macros if not _LIBC.
1919         (struct re_dfa_t): Add lock.
1920         * posix/regcomp.c (re_compile_internal): Add __libc_lock_init.
1921         * posix/regexec.c (regexec, re_search_stub): Add locking.
1922
1923 2005-05-04  Jakub Jelinek  <jakub@redhat.com>
1924
1925         * intl/Makefile (tst-gettext[45].out): Pass also $(run-program-prefix)
1926         as argument to the scripts.
1927         * intl/tst-gettext2.sh: Use mkdir -p instead of test -d + mkdir.
1928         * intl/tst-gettext4.sh: Likewise.  Use run_program_prefix argument.
1929         * intl/tst-gettext5.sh: Likewise.
1930
1931         * intl/tst-translit.sh: Add mkdir -p.
1932
1933         * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Use
1934         .ifndef/.endif to allow use of this macro more than once per .S
1935         file.
1936         (LOAD_PIC_REG): New macro.
1937         * sysdeps/unix/sysv/linux/i386/makecontext.S: Add call frame
1938         information.
1939         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1940         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1941         * sysdeps/i386/fpu/s_asinh.S: Use LOAD_PIC_REG macro.  Add call frame
1942         information.
1943         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1944         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1945         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1946         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1947         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
1948         * sysdeps/i386/fpu/s_lrint.S: Likewise.
1949         * sysdeps/i386/fpu/s_llrint.S: Likewise.
1950         * sysdeps/i386/fpu/s_ilogbf.S: Likewise.
1951         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1952         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1953         * sysdeps/i386/fpu/e_log.S: Likewise.
1954         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1955         * sysdeps/i386/fpu/s_lrintl.S: Likewise.
1956         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1957         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1958         * sysdeps/i386/fpu/s_log1p.S: Likewise.
1959         * sysdeps/i386/fpu/s_nearbyintl.S: Likewise.
1960         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1961         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
1962         * sysdeps/i386/fpu/s_nearbyintf.S: Likewise.
1963         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1964         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
1965         * sysdeps/i386/fpu/s_lrintf.S: Likewise.
1966         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1967         * sysdeps/i386/fpu/s_cexp.S: Likewise.
1968         * sysdeps/i386/fpu/s_ilogbl.S: Likewise.
1969         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1970         * sysdeps/i386/fpu/e_powl.S: Likewise.
1971         * sysdeps/i386/fpu/e_powf.S: Likewise.
1972         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1973         * sysdeps/i386/fpu/e_logl.S: Likewise.
1974         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1975         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1976         * sysdeps/i386/fpu/e_pow.S: Likewise.
1977         * sysdeps/i386/fpu/e_logf.S: Likewise.
1978         * sysdeps/i386/fpu/e_log2.S: Likewise.
1979         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1980         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
1981         * sysdeps/i386/fpu/s_llrintf.S: Likewise.
1982         * sysdeps/i386/fpu/s_ilogb.S: Likewise.
1983         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1984         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1985         * sysdeps/i386/fpu/e_log10.S: Likewise.
1986         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1987         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
1988         * sysdeps/i386/fpu/s_llrintl.S: Likewise.
1989         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1990         * sysdeps/i386/fpu/s_nearbyint.S: Likewise.
1991         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1992         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1993         * sysdeps/i386/addmul_1.S: Various fixes to cfi handling.
1994         * sysdeps/i386/mul_1.S: Likewise.
1995         * sysdeps/i386/strtok.S: Likewise.
1996         * sysdeps/i386/sub_n.S: Likewise.
1997         * sysdeps/i386/submul_1.S: Likewise.
1998         * sysdeps/i386/i586/addmul_1.S: Likewise.
1999         * sysdeps/i386/i586/memcpy.S: Likewise.
2000         * sysdeps/i386/i586/mul_1.S: Likewise.
2001         * sysdeps/i386/i586/rshift.S: Likewise.
2002         * sysdeps/i386/i586/sub_n.S: Likewise.
2003         * sysdeps/i386/i586/submul_1.S: Likewise.
2004         * sysdeps/i386/i686/memcmp.S: Likewise.
2005         * sysdeps/i386/i686/memmove.S: Likewise.
2006         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2007         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2008         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2009         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2010
2011 2005-05-03  Ulrich Drepper  <drepper@redhat.com>
2012
2013         * sysdeps/i386/add_n.S: Add call frame information.
2014         * sysdeps/i386/addmul_1.S: Likewise.
2015         * sysdeps/i386/bsd-setjmp.S: Likewise.
2016         * sysdeps/i386/lshift.S: Likewise.
2017         * sysdeps/i386/memchr.S: Likewise.
2018         * sysdeps/i386/memcmp.S: Likewise.
2019         * sysdeps/i386/mul_1.S: Likewise.
2020         * sysdeps/i386/rawmemchr.S: Likewise.
2021         * sysdeps/i386/rshift.S: Likewise.
2022         * sysdeps/i386/stpncpy.S: Likewise.
2023         * sysdeps/i386/strchr.S: Likewise.
2024         * sysdeps/i386/strchrnul.S: Likewise.
2025         * sysdeps/i386/strcspn.S: Likewise.
2026         * sysdeps/i386/strpbrk.S: Likewise.
2027         * sysdeps/i386/strrchr.S: Likewise.
2028         * sysdeps/i386/strspn.S: Likewise.
2029         * sysdeps/i386/strtok.S: Likewise.
2030         * sysdeps/i386/sub_n.S: Likewise.
2031         * sysdeps/i386/submul_1.S: Likewise.
2032         * sysdeps/i386/elf/bsd-setjmp.S: Likewise.
2033         * sysdeps/i386/i486/strcat.S: Likewise.
2034         * sysdeps/i386/i586/add_n.S: Likewise.
2035         * sysdeps/i386/i586/addmul_1.S: Likewise.
2036         * sysdeps/i386/i586/lshift.S: Likewise.
2037         * sysdeps/i386/i586/memcpy.S: Likewise.
2038         * sysdeps/i386/i586/memset.S: Likewise.
2039         * sysdeps/i386/i586/mul_1.S: Likewise.
2040         * sysdeps/i386/i586/rshift.S: Likewise.
2041         * sysdeps/i386/i586/strchr.S: Likewise.
2042         * sysdeps/i386/i586/strcpy.S: Likewise.
2043         * sysdeps/i386/i586/sub_n.S: Likewise.
2044         * sysdeps/i386/i586/submul_1.S: Likewise.
2045         * sysdeps/i386/i686/add_n.S: Likewise.
2046         * sysdeps/i386/i686/memcmp.S: Likewise.
2047         * sysdeps/i386/i686/memmove.S: Likewise.
2048         * sysdeps/i386/i686/mempcpy.S: Likewise.
2049         * sysdeps/i386/i686/memset.S: Likewise.
2050         * sysdeps/i386/i686/strtok.S: Likewise.
2051         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2052         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2053         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2054         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
2055         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2056         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2057
2058         * sysdeps/i386/fpu/libm-test-ulps: Adjust for gcc 4.
2059
2060         * sysdeps/unix/sysv/linux/kernel-features.h: waitid is available
2061         on ppc in 2.6.12.
2062
2063 2005-04-29  Jakub Jelinek  <jakub@redhat.com>
2064
2065         [BZ #1083]
2066         * sysdeps/posix/posix_fallocate.c (posix_fallocate): If len == 0,
2067         call ftruncate if offset is bigger than current size.  Make sure
2068         the file is offset + len bytes long if that is more than current size.
2069         Don't overwrite previous content of the file.
2070         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
2071         Likewise.
2072
2073 2005-05-02  Roland McGrath  <roland@redhat.com>
2074
2075         [BZ #924]
2076         * crypt/md5.c [! HAVE_MEMCPY] (memcpy): Yield proper expression value.
2077
2078 2005-04-29  Roland McGrath  <roland@redhat.com>
2079
2080         * timezone/africa: Update from tzdata2005i.
2081         * timezone/asia: Likewise.
2082         * timezone/northamerica: Likewise.
2083         * timezone/yearistype: Likewise.
2084
2085         * sysdeps/i386/sysdep.h (CALL_MCOUNT): Fix typo in last change.
2086
2087 2005-04-29  Ulrich Drepper  <drepper@redhat.com>
2088
2089         [BZ #1093]
2090         * nis/nis_table.c: Fix realloc handling.
2091         * nis/nis_removemember.c: Likewise.
2092
2093 2005-04-28  Ulrich Drepper  <drepper@redhat.com>
2094
2095         [BZ #798]
2096         * nscd/Makefile: Help losers who use --with-headers.
2097
2098 2005-04-28  Roland McGrath  <roland@redhat.com>
2099
2100         [BZ #796]
2101         * sysdeps/unix/sysv/linux/dl-sysdep.h: New file.
2102         Define NEED_DL_SYSINFO_DSO for all platforms.
2103
2104         * sysdeps/generic/dl-sysdep.h: Remove multiple inclusion protection.
2105         * sysdeps/alpha/dl-sysdep.h: Likewise.
2106         Use #include_next instead of duplicating generic file's contents.
2107         * sysdeps/ia64/dl-sysdep.h: Likewise.
2108         * sysdeps/sparc/dl-sysdep.h: Likewise.
2109
2110 2005-03-22  Steven Munroe  <sjmunroe@us.ibm.com>
2111
2112         * sysdeps/powerpc/powerpc64/memset.S (memset): Make ___memset local.
2113
2114 2005-03-07  Steven Munroe  <sjmunroe@us.ibm.com>
2115
2116         [BZ #781]
2117         * sysdeps/unix/sysv/linux/kernel-features.h
2118         (__ASSUME_TGKILL): Define for powerpc32/64 starting with 2.6.1.
2119         (__ASSUME_UTIMES): Define for powerpc32/64 starting with 2.6.1.
2120         (__ASSUME_FADVISE64_64_SYSCALL): Define for powerpc32 only starting
2121         with 2.6.1.
2122         (__ASSUME_WAITID_SYSCALL): Don't define for powerpc32/64.
2123
2124 2005-04-28  Ulrich Drepper  <drepper@redhat.com>
2125
2126         * sysdeps/i386/sysdep.h: Add cfi instrumentation to asm fragments.
2127         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
2128         * sysdeps/unix/sysv/linux/i386/socket.S: Remove now duplicate
2129         cfi_startproc and cfi_endproc.
2130
2131         * configure.in: Remove ultrasparc names.
2132
2133         * sysdeps/i386/i686/memcmp.S: Move misplaced END.
2134
2135 2005-03-27  Bruno Haible  <bruno@clisp.org>
2136
2137         Make it possible for multiple threads to use gettext() in different
2138         locales.
2139         * intl/dcigettext.c (HAVE_PER_THREAD_LOCALE): New macro.
2140         (struct known_translation_t): If HAVE_PER_THREAD_LOCALE, add localename
2141         field.
2142         (transcmp): If HAVE_PER_THREAD_LOCALE, compare localename fields.
2143         (DCIGETTEXT): If HAVE_PER_THREAD_LOCALE, fill the localename field in
2144         search and newp.
2145
2146         * intl/tst-gettext4.c: New file.
2147         * intl/tst-gettext4.sh: New file.
2148         * intl/tst-gettext4-de.po: New file.
2149         * intl/tst-gettext4-fr.po: New file.
2150         * intl/tst-gettext5.c: New file.
2151         * intl/tst-gettext5.sh: New file.
2152         * intl/Makefile (distribute): Add tst-gettext4.sh, tst-gettext4-de.po,
2153         tst-gettext4-fr.po, tst-gettext5.sh.
2154         (multithread-test-srcs): New variable.
2155         (test-srcs): Add its contents.
2156         (tests): Depend on tst-gettext4.out, tst-gettext5.out.
2157         (tst-gettext4.out, tst-gettext5.out): New rules.
2158         (CFLAGS-tst-gettext4.c, CFLAGS-tst-gettext5.c): New variables.
2159         Add rule for linking the multithread-test-srcs with the appropriate
2160         thread-library.
2161
2162 2005-04-28  Ulrich Drepper  <drepper@redhat.com>
2163
2164         * po/rw.po: New file.  From translation team.
2165
2166         * scripts/config.guess: Update from upstream.
2167         * scripts/config.sub: Likewise.
2168
2169 2005-04-27  Ulrich Drepper  <drepper@redhat.com>
2170
2171         [BZ #1094]
2172         * nscd/connections.c (nscd_run): Use time() value in prune_cache
2173         call, not timeout value, since the latter might be from another clock.
2174
2175 2005-04-27  Roland McGrath  <roland@redhat.com>
2176
2177         [BZ #877]
2178         * posix/unistd.h: Remove __nonnull from acct decl.
2179
2180         * rt/tst-cpuclock1.c: New file.
2181         * rt/tst-cpuclock2.c: New file.
2182         * rt/tst-cputimer1.c: New file.
2183         * rt/tst-cputimer2.c: New file.
2184         * rt/tst-cputimer3.c: New file.
2185         * rt/Makefile (tests): Add them.
2186
2187         * sysdeps/unix/sysv/linux/kernel-posix-cpu-timers.h: New file.
2188         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: New file.
2189         * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c
2190         (HAS_CPUCLOCK): New macro.
2191         (clock_getcpuclockid): Function removed.
2192         #include the new linux file to define it instead.
2193         * sysdeps/unix/clock_gettime.c [HP_TIMING_AVAIL] (hp_timing_gettime):
2194         New function, broken out of ...
2195         (clock_gettime) [HP_TIMING_AVAIL]: ... here.  Call it.
2196         (realtime_gettime): New function, broken out of ...
2197         (clock_gettime) [! HANDLED_REALTIME]: ... here.  Call it.
2198         (clock_gettime) [SYSDEP_GETTIME_CPU]: Use new macro in default case.
2199         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): New macro.
2200         (SYSDEP_GETTIME_CPUTIME): New macro.
2201         (SYSDEP_GETTIME): Use both.
2202         [! __ASSUME_POSIX_TIMERS] (maybe_syscall_gettime): New function, broken
2203         out of ...
2204         (SYSDEP_GETTIME): ... here.  Use it.
2205         [__NR_clock_gettime] (HANDLED_CPUTIME): Define it.
2206         (SYSDEP_GETTIME_CPUTIME): New macro.  Handle CPU timers by trying
2207         kernel support and falling back to hp-timing code.
2208         * sysdeps/posix/clock_getres.c
2209         [HP_TIMING_AVAIL] (hp_timing_getres): New function, broken out of ...
2210         (clock_getres) [HP_TIMING_AVAIL]: ... here.  Call it.
2211         (realtime_getres): New function, broken out of ...
2212         (clock_getres) [! HANDLED_REALTIME]: ... here.  Call it.
2213         (clock_getres) [SYSDEP_GETRES_CPU]: Use new macro in default case.
2214         * sysdeps/unix/sysv/linux/clock_getres.c (SYSCALL_GETRES): New macro.
2215         (SYSDEP_GETRES_CPUTIME): New macro.
2216         (SYSDEP_GETRES): Use both.
2217         [! __ASSUME_POSIX_TIMERS] (maybe_syscall_getres): New function, broken
2218         out of ...
2219         (SYSDEP_GETRES): ... here.  Use it.
2220         [__NR_clock_getres] (HANDLED_CPUTIME): Define it.
2221         (SYSDEP_GETRES_CPUTIME): New macro.  Handle CPU timers by trying
2222         kernel support and falling back to hp-timing code.
2223         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Handle
2224         CLOCK_PROCESS_CPUTIME_ID and CLOCK_PROCESS_THREAD_ID specially,
2225         translating to the kernel clockid_t for our own process/thread clock.
2226
2227 2005-04-27  Ulrich Drepper  <drepper@redhat.com>
2228
2229         * stdlib/test-canon.c: Make doesExist a directory and add more tests
2230         for the new error case.
2231
2232 2004-06-02  Dmitry V. Levin  <ldv@altlinux.org>
2233             Ranjani Murthy <ranmur@gmail.com>
2234
2235         * stdlib/canonicalize.c (__realpath): Change realpath(3) to
2236         return NULL and set errno to ENOTDIR for such pathnames like
2237         "/path/to/existing-non-directory/".
2238
2239 2005-04-26  Ulrich Drepper  <drepper@redhat.com>
2240
2241         [BZ #1105]
2242         * time/strptime_l.c (__strptime_internal): Handle 'z' to set
2243         tm_gmtoff.
2244         * time/Makefile (tests): Add tst-strptime2.
2245         * time/tst-strptime2.c: New file.
2246
2247 2005-04-26  Jakub Jelinek  <jakub@redhat.com>
2248
2249         [BZ #1081]
2250         * elf/dl-close.c: Include stddef.h.
2251         (_dl_close): If called recursively, just remember GC needs to be rerun
2252         and decrease l_direct_opencount.  Avoid GC if l_direct_opencount
2253         decreased to 1.  Rerun GC at the end if any destructor unloaded some
2254         additional libraries.
2255         * elf/Makefile: Add rules to build and run unload6 test.
2256         * elf/unload6.c: New test.
2257         * elf/unload6mod1.c: New file.
2258         * elf/unload6mod2.c: New file.
2259         * elf/unload6mod3.c: New file.
2260
2261         * malloc/hooks.c (mem2chunk_check): Add magic_p argument, set *magic_p
2262         if magic_p is not NULL.
2263         (top_check): Invoke MALLOC_FAILURE_ACTION if MORECORE failed.
2264         (malloc_check): Fail if sz == -1.
2265         (free_check): Adjust mem2chunk_check caller.
2266         (realloc_check): Likewise.  Fail if bytes == -1.  If bytes == 0 and
2267         oldmem != NULL, call free_check and return NULL.  If reallocating
2268         and returning NULL, invert magic byte again to make oldmem valid
2269         region for further checking.
2270         (memalign_check): Fail if bytes == -1.
2271         * malloc/Makefile: Add rules to build and run tst-mcheck.
2272         * malloc/tst-mcheck.c: New test.
2273
2274 2005-04-26  Ulrich Drepper  <drepper@redhat.com>
2275
2276         [BZ #1110]
2277         * stdio-common/vfscanf.c: Correctly account for characters of
2278         decimal points right after +-.
2279
2280 2005-04-26  Roland McGrath  <roland@redhat.com>
2281
2282         * elf/rtld-Rules (rtld-all): Test ifndef rtld-modules instead of
2283         ifeq ($(subdir),elf) to distinguish main driver from subdir runs.
2284
2285 2005-04-25  Roland McGrath  <roland@redhat.com>
2286
2287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
2288         (INTERNAL_SYSCALL_ERROR_P): Fix typo in last change.
2289
2290         * sunrpc/xdr.c (xdr_u_int): Use `long' for L and cast where needed.
2291
2292         * elf/dl-load.c: Revert last change.
2293
2294 2005-04-24  Ulrich Drepper  <drepper@redhat.com>
2295
2296         [BZ #1110]
2297         * stdio-common/vfscanf.c: Fix parsing of decimal point after +-.
2298         Patch by Hamed Malek <hamed@bamdad.org>.
2299
2300 2005-04-21  Roland McGrath  <roland@redhat.com>
2301
2302         * elf/dl-load.c (_dl_map_object_from_fd): Don't use MAP_DENYWRITE,
2303         since Linux ignores it in user mmap calls.
2304
2305 2005-04-17  David S. Miller  <davem@davemloft.net>
2306
2307         * sysdeps/sparc/sparc32/elf/start.S: Define __data_start.
2308         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2309
2310 2005-04-15  Roland McGrath  <roland@redhat.com>
2311
2312         * timezone/Makefile (zic-deps): New variable.
2313         ($(testdata)/America/New_York): Use it instead of explicit deps.
2314         ($(testdata)/Etc/UTC, $(testdata)/Australia/Melbourne): Likewise.
2315         ($(testdata)/America/Sao_Paulo, $(testdata)/Asia/Tokyo): Likewise.
2316         (%/UTC %/Universal): New pattern rule, replaces ...
2317         ($(testdata)/UTC, $(testdata)/Universal): ... these removed targets.
2318         ($(testdata)/%/Berlin $(testdata)/%/London): New pattern rule.
2319         ($(testdata)/Europe/London, $(testdata)/Europe/Berlin): Removed.
2320
2321 2005-04-14  Roland McGrath  <roland@redhat.com>
2322
2323         * MakeTAGS ($P/$(domain).pot): Depend on distinfo file as well.
2324         (extract): Filter-out distinfo file name.
2325
2326         [BZ #253]
2327         * MakeTAGS (text-srcs): Match %.bash.in files too.
2328
2329         [BZ #253]
2330         * nscd/Makefile (all-nscd-modules): New variable, include selinux
2331         module regardless of configuration.
2332         (distribute): Use that instead of $(nscd-modules).
2333
2334 2005-04-13  David S. Miller  <davem@davemloft.net>
2335
2336         Add sparc64 TLS and NPTL support.
2337         * elf/tls-macros.h: Add Sparc64 defines.
2338         * sysdeps/sparc/sparc64/dl-machine.h (sparc64_fixup_plt): Mark as
2339         always_inline.
2340         (elf_machine_fixup_plt): Likewise.
2341         (elf_machine_rela): Handle TLS relocations.
2342         (elf_machine_type_cleaa): Likewise.
2343         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2344         (SYSCALL_ERROR_HANDLER_ENTRY): Use sethi/or for GOT reloc.
2345         It does not always fit in R_SPARC_GOT13 when building -fPIC.
2346         Also, add TLS handling.
2347         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2348         Increase it to 2.4.21 for sparc64.
2349         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: NULL terminate
2350         backtrace by zero'ing out %fp.  Store away flags, func_ptr,
2351         and func_arg in global registers not local registers.
2352         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Handle PTID, TLS,
2353         and CTID arguments properly.  Add RESET_PID handling.
2354         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Rework so that we
2355         do not invoke __sigprocmask().  We can always assume rt signals
2356         are present on sparc64, so just do an inline syscall.
2357
2358 2005-04-13  Jakub Jelinek  <jakub@redhat.com>
2359
2360         * sysdeps/sparc/sparc64/dl-machine.h: Add dl_machine_h multiple
2361         inclusion guard for the first half of the header.
2362         (elf_machine_type_class, ELF_MACHINE_JMP_SLOT, ELF_MACHINE_NO_REL,
2363         ELF_MACHINE_PLTREL_OVERLAP, elf_machine_runtime_setup,
2364         elf_machine_relplt, DL_STACK_END, RTLD_START): Move into the
2365         #ifndef dl_machine_h guarded part of the header.
2366
2367 2005-04-14  Ulrich Drepper  <drepper@redhat.com>
2368
2369         [BZ #851]
2370         * posix/execvp.c (execvp): Use file name including path when
2371         trying to run it with shell.
2372         * posix/Makefile: Add rules to build and run tst-execvp3.
2373         * posix/tst-execvp3.c: New file.
2374
2375 2005-04-12  Ulrich Drepper  <drepper@redhat.com>
2376
2377         [BZ #1090]
2378         * stdlib/random_r.c (__initstate_r): Don't use non-existing state.
2379         * string/tst-strfry.c: New file.
2380         * string/Makefile (tests): Add tst-strfry.
2381
2382 2005-04-11  James A. Morrison  <ja2morri@uwaterloo.ca>
2383
2384         * manual/string.texi: Fix typo in wmemcpy decl.
2385
2386 2005-04-10  David S. Miller  <davem@davemloft.net>
2387
2388         * sysdeps/sparc/sparc32/dl-trampoline.S: Use std not stx.
2389
2390 2005-04-08  Carlos O'Donell <carlos@baldric.uwo.ca>
2391
2392         * FAQ.in: Explain why `make' might fail running rpcgen.
2393         * FAQ: Regenerated.
2394
2395 2005-04-07  Roland McGrath  <roland@redhat.com>
2396
2397         * po/libc.pot: Regenerated.
2398
2399 2005-04-07  Roland McGrath  <roland@redhat.com>
2400
2401         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion)
2402         [(NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO) && SHARED]: Scan
2403         GLRO(dl_sysinfo_map) for PT_NOTE giving Linux kernel version,
2404         we can skip the uname call if it's there.
2405         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't use
2406         DL_SYSDEP_OSCHECK here.
2407         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]: Do it here instead.
2408
2409         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro):
2410         Add _dl_sysinfo_map.
2411         * elf/rtld.c (dl_main): Don't call _dl_init_paths early in the
2412         rtld_is_main case.  Call it unconditionally later.
2413         Move GLRO(dl_sysinfo_dso) handling earlier, before _dl_init_paths call.
2414         Initialize GLRO(dl_sysinfo_map).
2415         * elf/dl-load.c (open_path): Bail out if _dl_init_paths wasn't called.
2416         * sysdeps/generic/dl-sysdep.c (_DL_FIRST_EXTRA): New macro.
2417         (_dl_important_hwcaps)
2418         [(NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO) && SHARED]: Scan
2419         GLRO(dl_sysinfo_map) for PT_NOTE giving synthetic hwcap names
2420         and bit values.
2421         * elf/ldconfig.c (_DL_FIRST_EXTRA): New macro.
2422         (hwcap_extra): New static variable.
2423         (is_hwcap_platform): Check hwcap_extra for a matching name.
2424         Remove tls special case.
2425         (path_hwcap): Likewise.
2426         (parse_conf): Parse "hwcap" directive to define synthetic hwcap bits
2427         and their names, stored in hwcap_extra.
2428         (main) [USE_TLS]: Initialize final synthetic hwcap bit as "tls".
2429
2430         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Use uint64_t for
2431         _dl_hwcap and _dl_hwcap_mask.
2432         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Cast a_val for
2433         AT_HWCAP to unsigned long int.
2434         * elf/dl-support.c (_dl_aux_init): Likewise.
2435         (_dl_hwcap): Update defn.
2436
2437         * elf/cache.c (print_entry): Pad hwcap value with 0s in diagnostic.
2438         * elf/ldconfig.c (search_dir): Likewise.
2439
2440 2005-04-05  Roland McGrath  <roland@redhat.com>
2441
2442         * NEWS: Copy 2.3.5 section from 2.3 branch.
2443
2444         * intl/tst-codeset.sh: Use mkdir -p.  Put msgfmt output in temporary
2445         file and mv it into place.
2446         * intl/tst-gettext3.sh: Likewise.
2447
2448         * Makefile (glibc-%.tar rule): Use make -q to ensure configure scripts
2449         are up to date in srcdir.  Touch all configure scripts after export.
2450
2451         * iconv/gconv_int.h: Include <ctype.h> and <string.h>.
2452
2453 2005-04-05  H.J. Lu  <hongjiu.lu@intel.com>
2454
2455         [BZ #592]
2456         * sysdeps/ia64/fpu/e_acosh.S: Update from Intel libm 2005-04-05
2457         (comment changes only).
2458         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
2459         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
2460         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
2461         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
2462         * sysdeps/ia64/fpu/e_exp.S: Likewise.
2463         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
2464         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
2465         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
2466         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
2467         * sysdeps/ia64/fpu/e_expf.S: Likewise.
2468         * sysdeps/ia64/fpu/e_log.S: Likewise.
2469         * sysdeps/ia64/fpu/e_logf.S: Likewise.
2470         * sysdeps/ia64/fpu/e_pow.S: Likewise.
2471         * sysdeps/ia64/fpu/e_powf.S: Likewise.
2472         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
2473         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
2474         * sysdeps/ia64/fpu/libm_error.c: Likewise.
2475         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
2476         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
2477         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
2478         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
2479         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
2480         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
2481         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
2482         * sysdeps/ia64/fpu/s_cos.S: Likewise.
2483         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
2484         * sysdeps/ia64/fpu/s_erf.S: Likewise.
2485         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
2486         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
2487         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
2488         * sysdeps/ia64/fpu/s_erff.S: Likewise.
2489         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
2490         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
2491         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
2492         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
2493         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
2494         * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
2495         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
2496         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
2497         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
2498
2499 2005-04-05  Roland McGrath  <roland@redhat.com>
2500
2501         * scripts/config.guess: Update from master, timestamp='2005-03-24'.
2502         * scripts/config.sub: Update from master, timestamp='2005-02-10'.
2503
2504 2005-04-04  David S. Miller  <davem@davemloft.net>
2505
2506         * sysdeps/sparc/sparc32/dl-trampoline.S: New file.
2507         * sysdeps/sparc/sparc32/dl-machine.h: Move PLT trampolines there.
2508         Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
2509         (elf_machine_runtime_setup): Test for dl_profile non-null.
2510         * sysdeps/sparc/sparc64/dl-trampoline.S: New file.
2511         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
2512         * sysdeps/sparc/sparc64/dl-machine.h: Move PLT trampolines there.
2513         Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
2514         (elf_machine_runtime_setup): Test for dl_profile non-null.
2515         * sysdeps/sparc/bits/link.h: New file.
2516         * sysdeps/generic/ldsodefs.h (La_sparc32_regs, La_sparc32_retval,
2517         La_sparc64_regs, La_sparc64_retval): New.
2518         (struct audit_ifaces): Add sparc entries.
2519         * elf/tst-auditmod1.c: Add sparc entries.
2520
2521 2005-03-27  Bruno Haible  <bruno@clisp.org>
2522
2523         * intl/tst-gettext3.c: New file.
2524         * intl/tst-gettext3.sh: New file.
2525         * intl/Makefile (distribute): Add tst-gettext3.sh.
2526         (test-srcs): Add tst-gettext3.
2527         (tests): Depend on tst-gettext3.out.
2528         (tst-gettext3.out): New rule.
2529         (CFLAGS-tst-gettext3.c): New variable.
2530
2531         Fix bug exposed by tst-gettext3.
2532         * intl/gettextP.h (struct converted_domain): New type.
2533         (struct loaded_domain): Remove the conv, conv_tab fields. Add
2534         conversions, nconversions fields.
2535         (_nl_init_domain_conv): Remove declaration.
2536         (_nl_free_domain_conv): Remove declaration.
2537         (_nl_find_msg): Add convert argument.
2538         * intl/dcigettext.c (DCIGETTEXT): Call _nl_find_msg with convert=1.
2539         (_nl_find_msg): Add convert argument. When a conversion to a different
2540         charset is needed, create a new converted_domain element, instead of
2541         throwing away the old converted translations.
2542         (get_output_charset): New function.
2543         * intl/loadmsgcat.c (_nl_init_domain_conv): Remove function.
2544         (_nl_free_domain_conv): Remove function.
2545         (_nl_load_domain): Initialize the conversions array to empty. Use
2546         _nl_find_msg instead of _nl_init_domain_conv to retrieve the header
2547         entry.
2548         (_nl_unload_domain): Free the conversions array and its contents.
2549
2550         * intl/gettextP.h (struct loaded_domain): Remove codeset_cntr field.
2551         (struct binding): Likewise.
2552         * intl/bindtextdom.c (set_binding_values): Drop codeset_cntr
2553         modifications.
2554
2555 2005-04-04  Jakub Jelinek  <jakub@redhat.com>
2556
2557         [BZ #1082]
2558         * sunrpc/pmap_rmt.c (xdr_rmtcall_args): Use a dummy arglen instead
2559         of trying to encode uninitialized arglen.
2560
2561 2005-04-04  Ulrich Drepper  <drepper@redhat.com>
2562
2563         [BZ #825]
2564         * timezone/scheck.c: Update from tzcode2005h.
2565         * timezone/tzfile.h: Likewise.
2566         * timezone/zdump.c: Likewise.
2567         * timezone/zic.c: Likewise.
2568
2569         [BZ #825]
2570         * timezone/antarctica: Update from tzdata2005h.
2571         * timezone/asia: Likewise.
2572         * timezone/australasia: Likewise.
2573         * timezone/etcetera: Likewise.
2574         * timezone/europe: Likewise.
2575         * timezone/northamerica: Likewise.
2576         * timezone/southamerica: Likewise.
2577         * timezone/leapseconds: Likewise.
2578         * timezone/iso3166.tab: Likewise.
2579
2580 2005-03-31  H.J. Lu  <hongjiu.lu@intel.com>
2581
2582         [BZ #592]
2583         * sysdeps/ia64/fpu/libm_cpu_defs.h: Update copyright.
2584
2585 2005-04-01  Ulrich Drepper  <drepper@redhat.com>
2586
2587         * wcsmbs/btowc.c (__btowc): Optimize parameters in ASCII range.
2588         * wcsmbs/wctob.c (wctob): Likewise.
2589         * wcsmbs/wchar.h (btowc): Add optimized inline function.
2590         (wctob): Likewise.
2591
2592 2005-03-31  Jakub Jelinek  <jakub@redhat.com>
2593
2594         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Use functionally
2595         equivalent, but shorter instructions.
2596         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2597         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2598         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2599         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2600         * sysdeps/unix/x86_64/sysdep.S: Likewise.
2601         * sysdeps/x86_64/strchr.S: Likewise.
2602         * sysdeps/x86_64/memset.S: Likewise.
2603         * sysdeps/x86_64/strcspn.S: Likewise.
2604         * sysdeps/x86_64/strcmp.S: Likewise.
2605         * sysdeps/x86_64/elf/start.S: Likewise.
2606         * sysdeps/x86_64/strspn.S: Likewise.
2607         * sysdeps/x86_64/dl-machine.h: Likewise.
2608         * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
2609         * sysdeps/x86_64/bsd-setjmp.S: Likewise.
2610         * sysdeps/x86_64/strtok.S: Likewise.
2611
2612 2005-03-30  H.J. Lu  <hongjiu.lu@intel.com>
2613
2614         [BZ #592]
2615         * sysdeps/ia64/fpu/e_acosf.S: Update from Intel libm 2005-03-21.
2616         * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
2617         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
2618         * sysdeps/ia64/fpu/e_acosh.S: Likewise.
2619         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
2620         * sysdeps/ia64/fpu/e_acos.S: Likewise.
2621         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
2622         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
2623         * sysdeps/ia64/fpu/e_asin.S: Likewise.
2624         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
2625         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
2626         * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
2627         * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
2628         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
2629         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
2630         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
2631         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
2632         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
2633         * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
2634         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
2635         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
2636         * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
2637         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
2638         * sysdeps/ia64/fpu/e_expf.S: Likewise.
2639         * sysdeps/ia64/fpu/e_exp.S: Likewise.
2640         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
2641         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
2642         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
2643         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
2644         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
2645         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
2646         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
2647         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
2648         * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
2649         * sysdeps/ia64/fpu/e_log2f.S: Likewise.
2650         * sysdeps/ia64/fpu/e_log2l.S: Likewise.
2651         * sysdeps/ia64/fpu/e_log2.S: Likewise.
2652         * sysdeps/ia64/fpu/e_logf.S: Likewise.
2653         * sysdeps/ia64/fpu/e_logl.S: Likewise.
2654         * sysdeps/ia64/fpu/e_log.S: Likewise.
2655         * sysdeps/ia64/fpu/e_powf.S: Likewise.
2656         * sysdeps/ia64/fpu/e_powl.S: Likewise.
2657         * sysdeps/ia64/fpu/e_pow.S: Likewise.
2658         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
2659         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
2660         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
2661         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
2662         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
2663         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
2664         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
2665         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
2666         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
2667         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
2668         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
2669         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
2670         * sysdeps/ia64/fpu/libm_error.c: Likewise.
2671         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
2672         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
2673         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
2674         * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
2675         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
2676         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
2677         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
2678         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
2679         * sysdeps/ia64/fpu/libm_support.h: Likewise.
2680         * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
2681         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
2682         * sysdeps/ia64/fpu/s_atanf.S: Likewise.
2683         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
2684         * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
2685         * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
2686         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
2687         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
2688         * sysdeps/ia64/fpu/s_cos.S: Likewise.
2689         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
2690         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
2691         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
2692         * sysdeps/ia64/fpu/s_erfl.S: Likewise.
2693         * sysdeps/ia64/fpu/s_erf.S: Likewise.
2694         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
2695         * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
2696         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
2697         * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
2698         * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
2699         * sysdeps/ia64/fpu/s_fdim.S: Likewise.
2700         * sysdeps/ia64/fpu/s_frexp.c: Likewise.
2701         * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
2702         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
2703         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
2704         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
2705         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
2706         * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
2707         * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
2708         * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
2709         * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
2710         * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
2711         * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
2712         * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
2713         * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
2714         * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
2715         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
2716         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
2717         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
2718         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
2719         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
2720         * sysdeps/ia64/fpu/s_logb.S: Likewise.
2721         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
2722         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
2723         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
2724         * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
2725         * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
2726         * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
2727         * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
2728         * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
2729         * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
2730         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
2731         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
2732         * sysdeps/ia64/fpu/s_round.S: Likewise.
2733         * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
2734         * sysdeps/ia64/fpu/s_scalbn.c: Likewise.
2735         * sysdeps/ia64/fpu/s_scalbnf.c: Likewise.
2736         * sysdeps/ia64/fpu/s_scalbnl.c: Likewise.
2737         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
2738         * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
2739         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
2740         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
2741         * sysdeps/ia64/fpu/s_tan.S: Likewise.
2742         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
2743         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
2744         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
2745         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
2746         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
2747         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
2748
2749         [BZ #592]
2750         * sysdeps/ia64/fpu/libm_cpu_defs.h: New file.
2751         * sysdeps/ia64/fpu/libm_error_codes.h: New file.
2752
2753         [BZ #592]
2754         * sysdeps/ia64/fpu/gen_import_file_list: Updated for Intel libm
2755         2005-03-21.
2756         * sysdeps/ia64/fpu/import_file.awk: Likewise.
2757         * sysdeps/ia64/fpu/import_intel_libm: Likewise.
2758         * sysdeps/ia64/fpu/Makefile: Likewise.
2759
2760 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
2761
2762         [BZ #1087]
2763         * posix/fnmatch.c (fnmatch): For short patterns or strings attempt to
2764         avoid calling mbsrtowcs twice.
2765
2766 2005-03-29  Roland McGrath  <roland@redhat.com>
2767
2768         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): New
2769         function, inline broken out of ...
2770         (DL_SYSDEP_OSCHECK): ... here.  Use that.
2771         Do the discovery and set GLRO(dl_osversion) if successful,
2772         if __LINUX_KERNEL_VERSION <= 0.
2773         * elf/dl-load.c: Don't include dl-osinfo.h here.
2774
2775 2005-03-29  Alfred M. Szmidt  <ams@gnu.org>
2776
2777         * manual/install.texi (Tools for Compilation): GNU binutils 2.15
2778         is now needed.
2779
2780 2005-03-19  Bruno Haible  <bruno@clisp.org>
2781
2782         * intl/dcigettext.c (struct known_translation_t): Change type of
2783         domainname field to 'const char *'.
2784         (DCIGETTEXT): Remove const-cast.
2785
2786 2005-03-29  Thorsten Kukuk  <kukuk@suse.de>
2787
2788         [BZ #661]
2789         * grp/initgroups.c (internal_getgrouplist): Check if we have
2790         enough space before adding the primary group to the list.
2791
2792         * posix/tst-execle1.c (do_test): Fix execle arguments.
2793         * posix/tst-execle2.c (do_test): Likewise.
2794
2795 2005-03-28  Roland McGrath  <roland@redhat.com>
2796
2797         * sysdeps/generic/w_exp2.c [NO_LONG_DOUBLE]: Fix typos in alias names.
2798         Reported by Mark Mitchell <mark@codesourcery.com>.
2799         * Versions.def (libm): Define GLIBC_2.4 set.
2800         * math/Versions (libm: GLIBC_2.4): Add this set, with exp2l.
2801         * sysdeps/i386/Versions (libm: GLIBC_2.1): Add this set, with exp2l.
2802         * sysdeps/ia64/Versions: Likewise.
2803         * sysdeps/m68k/Versions: Likewise.
2804         * sysdeps/sparc/sparc64/Versions: Likewise.
2805         * sysdeps/x86_64/Versions: New file.
2806         * sysdeps/mips/mips64/Versions: New file.
2807
2808         * locale/langinfo.h (_NL_LOCALE_NAME): New macro.
2809         [__USE_GNU] (NL_LOCALE_NAME): New macro.
2810         * locale/nl_langinfo.c: Grok special item value for _NL_LOCALE_NAME,
2811         return locale name string for the category.
2812
2813 2005-03-25  Jakub Jelinek  <jakub@redhat.com>
2814
2815         * sysdeps/generic/wcstoul_l.c: Include "wcstol_l.c" rather than
2816         <wcstol_l.c>.
2817
2818 2005-03-28  Daniel Jacobowitz  <dan@codesourcery.com>
2819
2820         * sysdeps/mips/atomicity.h: Remove unused file.
2821         * sysdeps/mips/dl-machine.h (elf_machine_rel): Add TLS relocations.
2822         * sysdeps/mips/dl-tls.h: New file.
2823         * sysdeps/mips/libc-tls.c: New file.
2824         * sysdeps/mips/tls-macros.h: New file.
2825         * sysdeps/mips/bits/atomic.h: New file.
2826         * sysdeps/mips/bits/setjmp.h: Protect against multiple inclusion.
2827         * sysdeps/mips/elf/configure.in: New file.
2828         * sysdeps/mips/elf/configure: Generated.
2829         * sysdeps/mips/sys/asm.h: New file.
2830         * sysdeps/unix/sysv/linux/mips/vfork.S: New file.
2831         * sysdeps/unix/sysv/linux/mips/clone.S: Add NPTL and five-argument
2832         clone support.
2833         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
2834         (INTERNAL_SYSCALL_NCS): New.
2835         (INTERNAL_SYSCALL): Update for non-constant support.
2836         (internal_syscall0): Likewise.
2837         (internal_syscall1): Likewise.
2838         (internal_syscall2): Likewise.
2839         (internal_syscall3): Likewise.
2840         (internal_syscall4): Likewise.
2841         (internal_syscall5): Likewise.
2842         (internal_syscall6): Likewise.
2843         (internal_syscall7): Likewise.
2844         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (SIGEV_THREAD):
2845         Update to match the kernel.
2846         (SIGEV_CALLBACK): Likewise.
2847         (SIGEV_THREAD_ID): Likewise.
2848
2849 2005-03-28  Daniel Jacobowitz  <dan@codesourcery.com>
2850
2851         [BZ #783]
2852         * elf/tst-auditmod1.c: Add MIPS support.
2853         * sysdeps/generic/ldsodefs.h (La_mips_32_regs): New.
2854         (La_mips_32_retval): New.
2855         (La_mips_64_regs): New.
2856         (La_mips_64_retval): New.
2857         (struct audit_ifaces): Add MIPS entries.
2858         * sysdeps/mips/dl-machine.h: Check RESOLVE_MAP instead of RESOLVE.
2859         (elf_machine_runtime_link_map, ELF_DL_FRAME_SIZE,
2860         ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS,
2861         ELF_MACHINE_RUNTIME_TRAMPOLINE): Move to dl-trampoline.c.
2862         (RTLD_START): Align the stack before calling _dl_init_internal.
2863         Use .ent for _dl_start_user.
2864         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): Define.
2865         (elf_machine_rel, elf_machine_rel_relative, elf_machine_lazy_rel)
2866         (elf_machine_runtime_setup): Use "auto inline".
2867         (elf_machine_rela, elf_machine_rela_relative): Provide empty versions.
2868         (elf_machine_got_rel): Likewise.  Use RESOLVE_MAP.
2869         * sysdeps/mips/dl-trampoline.c: New file.
2870         * sysdeps/mips/bits/link.h: New file.
2871         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
2872         (internal_syscall5): Use register operands instead of non-lvalue
2873         memory operands.
2874         (internal_syscall6): Likewise.
2875         (internal_syscall7): Likewise.
2876
2877 2005-03-27  Andreas Jaeger  <aj@suse.de>
2878
2879         * debug/warning-nop.c (__builtin___memcpy_chk): Define away to
2880         avoid warnings with older compiler.
2881         (__builtin___memcpy_chk): Likewise.
2882         (__builtin___memmove_chk: Likewise.
2883         (__builtin___mempcpy_chk): Likewise.
2884         (__builtin___memset_chk): Likewise.
2885         (__builtin___stpcpy_chk): Likewise.
2886         (__builtin___strcat_chk): Likewise.
2887         (__builtin___strcpy_chk): Likewise.
2888         (__builtin___strncat_chk): Likewise.
2889         (__builtin___strncpy_chk): Likewise.
2890         (__builtin_object_size): Likewise.
2891
2892 2005-03-27  Daniel Jacobowitz  <dan@codesourcery.com>
2893
2894         * elf/tls-macros.h: Correct typo.
2895
2896 2005-03-23  Jakub Jelinek  <jakub@redhat.com>
2897
2898         [BZ #822]
2899         * nis/ypclnt.c (yp_2_yperr): Revert 2004-11-30 patch.
2900         (ypprot_err): Use yp_2_yperr table also for YP_NODOM .. YP_NOMORE.
2901
2902 2005-03-22  Roland McGrath  <roland@redhat.com>
2903
2904         * locale/setlocale.c: Comment typo.
2905
2906         * scripts/versions.awk: No errors for GLIBC_PRIVATE.
2907
2908         * Versions.def (libdl, librt): Add GLIBC_2.3.4 version.
2909
2910         * scripts/versions.awk: Print all errors and die at the end.
2911         Use library name in versions array keys.
2912
2913 2005-03-22  Daniel Jacobowitz  <dan@codesourcery.com>
2914
2915         * elf/elf.h (PT_ARM_EXIDX): New macro.
2916
2917 2005-03-21  Thorsten Kukuk  <kukuk@suse.de>
2918
2919         [BZ #1098]
2920         * sunrpc/xdr_stdio.c (xdrstdio_getlong, xdrstdio_putlong):
2921         Convert correctly between long/int on 64bit big-endian.
2922
2923 2005-03-21  David Mosberger  <davidm@hpl.hp.com>
2924
2925         * sysdeps/ia64/_mcount.S: Newer kernels don't like register-frames
2926         with more than 8 output registers.  Fix this by passing original
2927         ar.pfs to _mcount_ret_helper via r3.
2928
2929 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
2930
2931         [BZ #786]
2932         * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Handle
2933         GL(dl_tls_static_nelem) == GL(dl_tls_max_dtv_idx).
2934         * elf/Makefile: Add rules to build and run tst-tls15.
2935         * elf/tst-tls15.c: New test.
2936         * elf/tst-tlsmod15a.c: New file.
2937         * elf/tst-tlsmod15b.c: New file.
2938
2939 2005-03-20  Ulrich Drepper  <drepper@redhat.com>
2940
2941         * elf/rtld.c (dl_main): Always call init_tls if we have audit modules.
2942
2943 2005-03-20  Alfred M. Szmidt  <ams@gnu.org>
2944
2945         * elf/dl-open.c (dl_open_worker): Fix typo.
2946
2947 2005-03-20  Ulrich Drepper  <drepper@redhat.com>
2948
2949         * malloc/malloc.c (public_cALLOc): We cannot skip the memory
2950         clearing if perturb_byte != 0.
2951
2952 2005-03-20  Jakub Jelinek  <jakub@redhat.com>
2953
2954         * posix/bits/unistd.h (pread) [__USE_FILE_OFFSET64]: Use __off64_t
2955         instead of __off_t for last argument.
2956         * debug/Makefile (tests): Add tst-lfschk{1,2,3}.
2957         * debug/tst-lfschk1.c: New test.
2958         * debug/tst-lfschk2.c: New test.
2959         * debug/tst-lfschk3.c: New test.
2960
2961 2005-02-09  Jakub Jelinek  <jakub@redhat.com>
2962
2963         * sysdeps/unix/sysv/linux/bits/termios.h (CMSPAR): Define.
2964         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Add __USE_MISC
2965         and __USE_XOPEN guards to match linux/bits/termios.h.
2966         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2967         (CMSPAR): Define.
2968         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2969
2970 2005-02-10  H.J. Lu  <hongjiu.lu@intel.com>
2971
2972         * sysdeps/ia64/elf/initfini.c: Add local _init and _fini labels.
2973
2974 2005-02-27  Denis Barbier  <barbier@debian.org>
2975
2976         [BZ #549]
2977         * locale/iso-4217.def: Add CSD currency.
2978
2979 2005-03-19  Ulrich Drepper  <drepper@redhat.com>
2980
2981         * inet/test-ifaddrs.c: Use test-skeleton.
2982         * inet/test_ifindex.c: Likewise.
2983
2984         [BZ #821]
2985         * elf/dl-lookup.c (add_dependency): Always search l_initfini if
2986         the list exists.
2987
2988         [BZ #821]
2989         * elf/Makefile: Add rules to build and run order2.
2990         * elf/order2.c: New file.
2991         * elf/order2mod1.c: New file.
2992         * elf/order2mod2.c: New file.
2993         * elf/order2mod3.c: New file.
2994         * elf/order2mod4.c: New file.
2995
2996 2005-03-19  Jakub Jelinek  <jakub@redhat.com>
2997
2998         [BZ #821]
2999         * elf/dl-open.c (dl_open_worker): Print exact l_direct_opencount value,
3000         it has been incremented before.
3001
3002 2005-03-18  Ulrich Drepper  <drepper@redhat.com>
3003
3004         [BZ #821]
3005         * elf/dl-fini.c (_dl_fini): Split sorting of the maps in separate
3006         function _dl_sort_fini.
3007         (_dl_sort_fini): New function.
3008         * sysdeps/generic/ldsodefs.h: Declare _dl_sort_fini.
3009         * elf/dl-close.c (_dl_close): Call _dl_sort_fini before running
3010         destructors to call them in the right order.
3011
3012 2005-02-07  Steven Munroe  <sjmunroe@us.ibm.com>
3013
3014         * sysdeps/powerpc/bits/link.h (La_ppc64_regs): Add lr_vrsave.
3015         (La_ppc64_retval): Correct size of lrc_fp.
3016         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_profile_resolve):
3017         Fix up ABI problems and complete function.
3018
3019 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
3020
3021         * math/test-misc.c (main): Add some more tests.
3022
3023 2005-03-17  Jakub Jelinek  <jakub@redhat.com>
3024
3025         * posix/regcomp.c (re_compile_fastmap_iter): Fix check for failed
3026         __wcrtomb.  Check return values of other __wcrtomb calls.
3027         * posix/regex_internal.c (build_wcs_buffer, re_string_skip_chars):
3028         Change mbclen type to size_t.
3029         (build_wcs_upper_buffer): Change mbclen and mbcdlen type to size_t.
3030         Handle mb chars whose upper case doesn't have multibyte representation
3031         in locale's charset.
3032
3033 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
3034
3035         * malloc/malloc.c (_int_icalloc, _int_icomalloc, iALLOc,
3036         public_iCALLOc, public_iCALLOc, public_iCOMALLOc): Protect with
3037         #ifndef _LIBC.
3038
3039         [BZ #779]
3040         * malloc/malloc.c (public_mTRIm): Initialize malloc if not yet
3041         initialized.
3042
3043 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
3044
3045         * misc/sys/cdefs.h (__always_inline): Define.
3046         * posix/bits/unistd.h (read, pread, pread64, readlink, getcwd, getwd):
3047         Use __always_inline instead of __inline.
3048         * socket/bits/socket2.h (recv, recvfrom): Likewise.
3049         * libio/bits/stdio2.h (gets, fgets, fgets_unlocked): Likewise.
3050         * string/bits/string3.h (__memcpy_ichk, __memmove_ichk, __mempcpy_ichk,
3051         __memset_ichk, __strcpy_ichk, __stpcpy_ichk, __strncpy_ichk,
3052         __strcat_ichk, __strncat_ichk): Use __always_inline instead of
3053         __inline__ __attribute__ ((__always_inline__)).
3054
3055 2005-03-09  Jakub Jelinek  <jakub@redhat.com>
3056
3057         * debug/tst-chk1.c: Include sys/socket.h and sys/un.h.
3058         (do_test): Add new tests for recv, recvfrom, getcwd, getwd and
3059         readlink.  Add some more tests for read, pread, pread64, fgets and
3060         fgets_unlocked.
3061
3062         * posix/bits/unistd.h (read, pread, pread64, readlink,
3063         getcwd, getwd): Change macros into extern inline functions.
3064         (__read_alias, __pread_alias, __pread64_alias, __readlink_alias,
3065         __getcwd_alias, __getwd_alias): New prototypes.
3066         * socket/bits/socket2.h (recv, recvfrom): Change macros into
3067         extern inline functions.
3068         (__recv_alias, __recvfrom_alias): New prototypes.
3069         * libio/bits/stdio2.h (gets, fgets, fgets_unlocked): Change macros
3070         into extern inline functions.
3071         (__gets_alias, __fgets_alias, __fgets_unlocked_alias): New prototypes.
3072
3073         * debug/pread_chk.c (__pread_chk): Fix order of arguments passed
3074         to __pread.
3075         * debug/pread64_chk.c (__pread64_chk): Fix order of arguments passed
3076         to __pread64.
3077
3078 2005-03-18  Daniel Jacobowitz  <dan@codesourcery.com>
3079
3080         * configure.in: Use %function instead of @function.
3081
3082 2005-03-18  Ulrich Drepper  <drepper@redhat.com>
3083
3084         [BZ #821]
3085         * include/link.h (struct link_map): Remove l_opencount.  Add l_removed.
3086         Change type of l_idx to int.
3087         * elf/dl-close.c: Basically rewrite.  Do not use l_opencount to
3088         determine whether a DSO has to be unloaded.  Instead compute this
3089         in this function.
3090         * elf/dl-deps.c: No need to manipulate l_opencount anymore.
3091         * elf/dl-lookup.c: Likewise.
3092         * elf/rtld.c: Likewise
3093         * elf/dl-open.c: Likewise.  Use l_init_called to determine whether
3094         object was just loaded.
3095         * elf/dl-fini.c: Bump l_direct_opencount instead of l_opencount.
3096         * elf/dl-load.c (_dl_map_object_from_fd): Do not recognize DSO which
3097         is about to be unloaded as a match.
3098         (_dl_map_object): Likewise.
3099         * elf/do-lookup.h (do_lookup_x): Do not look into DSO which is about
3100         to be unloaded.
3101         * elf/circleload1.c: Don't use l_opencount anymore.
3102         * elf/neededtest.c: Likewise.
3103         * elf/neededtest2.c: Likewise.
3104         * elf/neededtest3.c: Likewise.
3105         * elf/neededtest4.c: Likewise.
3106         * elf/unload.c: Likewise.
3107         * elf/unload2.c: Likewise.
3108         * elf/loadtest.c: Likewise.
3109
3110         [BZ #821]
3111         * elf/rtld.c: Preloading errors are now never fatal.
3112
3113 2005-03-08  Jakub Jelinek  <jakub@redhat.com>
3114
3115         [BZ #821]
3116         * elf/Makefile: Add rules to build and run unload5 test.
3117         * elf/unload5.c: New file.
3118
3119         [BZ #821]
3120         * elf/Makefile: Add rules to build and run unload4 test.
3121         * elf/unload4.c: New file.
3122         * elf/unload4mod1.c: New file.
3123         * elf/unload4mod2.c: New file.
3124         * elf/unload4mod3.c: New file.
3125         * elf/unload4mod4.c: New file.
3126
3127 2005-03-17  Roland McGrath  <roland@redhat.com>
3128
3129         * nscd/aicache.c (addhstaiX): Tweak type to avoid warning.
3130
3131 2005-03-16  Richard Henderson  <rth@redhat.com>
3132
3133         * include/libc-symbols.h (__hidden_proto): Remove bogus declaration
3134         of internal.
3135         (__hidden_def1, __hidden_dot_def1): Remove.
3136         (__hidden_def2, __hidden_def3): Remove.
3137         (__hidden_ver1): New.
3138         (hidden_ver, hidden_def, hidden_weak): Use it.
3139         (hidden_data_ver, hidden_data_ver, hidden_data_weak): Use non-data
3140         version of the macro.
3141
3142         * include/wchar.h (__wcscoll): Remove.
3143         * wcsmbs/wcscoll.c: Define wcscoll directly instead of via __wcscoll.
3144         * string/strcoll.c: Don't issue libc_hidden_def STRCOLL redefined.
3145
3146 2005-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
3147
3148         * elf/elf.h: Define MIPS TLS relocations.
3149
3150 2005-03-16  Ulrich Drepper  <drepper@redhat.com>
3151
3152         * elf/circleload1.c (main): Pretty printing.
3153
3154 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
3155
3156         * sysdeps/generic/wordexp.c (exec_comm_child): Add inline keyword.
3157         Patch by Dan Kegel <dank@kegel.com>.
3158
3159         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rel_relative,
3160         elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel):
3161         Add inline keyword.
3162         * sysdeps/alpha/dl-machine.h (elf_machine_rela,
3163         elf_machine_rela_relative, elf_machine_lazy_rel): Add always_inline
3164         attribute.
3165         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
3166         elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.  Change
3167         static inline into auto inline.
3168         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
3169         elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
3170         * sysdeps/generic/dl-machine.h (elf_machine_rel, elf_machine_rela):
3171         Likewise.
3172         * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rel_relative,
3173         elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel):
3174         Likewise.
3175
3176 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
3177
3178         [BZ #789]
3179         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Fix asm constraints.
3180         Remove memory clobber.
3181
3182         * sysdeps/x86_64/hp-timing.h (HP_TIMING_ACCUM): Make the addition
3183         thread-safe.  Subtract GLRO(dl_hp_timing_overhead) from Diff.
3184
3185 2005-03-14  Jakub Jelinek  <jakub@redhat.com>
3186
3187         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Don't include
3188         asm/types.h.
3189
3190 2005-03-10  GOTO Masanori  <gotom@debian.or.jp>
3191
3192         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Define MAP_POPULATE and
3193         MAP_NONBLOCK.
3194         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
3195         Correct MAP_GROWSDOWN value.
3196
3197 2005-03-13  Roland McGrath  <roland@redhat.com>
3198
3199         * elf/tls-macros.h: #include_next <tls-macros.h> to get a sysdeps
3200         version if there is one.  Only #error if macros are then undefined.
3201         * sysdeps/generic/tls-macros.h: New file.
3202
3203 2005-03-10  GOTO Masanori  <gotom@debian.or.jp>
3204
3205         * sysdeps/hppa/configure.in: Remove old Makefile leftovers.
3206         * sysdeps/hppa/configure: Regenerated.
3207
3208 2005-03-08  Roland McGrath  <roland@redhat.com>
3209
3210         * sysdeps/gnu/errlist-compat.awk: Use NERR in all array decls, so
3211         array types match exactly in C alias decls.
3212
3213 2005-03-07  Ulrich Drepper  <drepper@redhat.com>
3214
3215         * malloc/arena.c (ptmalloc_init): Recognize MALLOC_PERTURB_ and call
3216         mallopt appropriately.
3217         * malloc/malloc.h: Define M_PERTURB.
3218         * malloc/malloc.c (perturb_byte): New variable.
3219         (alloc_perturb, free_perturb): New macros.
3220         (_int_malloc): Before returning, overwrite the memory if this is
3221         requested.
3222         (_int_free): Overwrite freed memory if requested.
3223         (mALLOPt): Handle M_PERTURB.
3224         * test-skeleton.c: Add call to mallopt with M_PERTURB command.
3225
3226         * elf/dl-close.c (_dl_close): Decrement l_opencount before
3227         printing debug message.
3228         * elf/dl-open.c (dl_open_worker): Always print the new opencount
3229         in debug messages.
3230
3231 2005-03-06  Ulrich Drepper  <drepper@redhat.com>
3232
3233         * elf/dl-close.c (_dl_close): Unify debug message format.
3234
3235         * elf/dl-close.c (_dl_close): Print debug message just before
3236         destroying a link map.
3237
3238         * elf/do-lookup.h (do_lookup_x): Add namespace info to debug output.
3239         * elf/dl-version.c (match_symbol): Likewise.
3240
3241         * posix/bits/unistd.h (pread): Fix typo in __USE_FILE_OFFSET64 code.
3242
3243         * debug/recv_chk.c (__recv_chk): Always fail if request could
3244         overflow the buffer.
3245         * debug/recvfrom_chk.c (__recvfrom_chk): Likewise.
3246         * socket/bits/socket2.h (recv): Avoid calls to the _chk variant if
3247         we know the call succeeds.
3248         (recvfrom): Likewise.
3249
3250 2005-03-05  Ulrich Drepper  <drepper@redhat.com>
3251
3252         * posix/regexec.c (check_node_accept_bytes): Correct cast to avoid
3253         warning.
3254         * posix/regex_internal.c (re_string_reconstruct): Add cast to
3255         avoid warning.
3256         (build_wcs_upper_buffer): Change type of bug to plain char.
3257         * locale/weightwc.h (findidx): Add casts to avoid warnings.
3258         * time/mktime.c (ranged_convert): Initialize tm to make the
3259         compiler happy.
3260         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Add casts to avoid warnings.
3261         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Add casts to avoid warnings.
3262         * wcsmbs/mbsnrtowcs.c: Add casts to avoid warnings.
3263         * wcsmbs/wcsrtombs.c (__wcsrtombs): Add casts to avoid warnings.
3264         * wcsmbs/wcrtomb.c (__wcrtomb): Add casts to avoid warnings.
3265         * wcsmbs/mbrtowc.c (__mbrtowc): Use unsigned char for outbuf.
3266         * wcsmbs/wctob.c (wctob): Make buf array of unsigned char.
3267         * sysdeps/generic/strchrnul.c: Add cast to avoid warning.
3268         * libio/iofwide.c: Add casts to avoid warnings.
3269         * stdio-common/printf-prs.c (parse_printf_format): Introduce new
3270         variable f to avoid warnings.
3271         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3272         Fix a few casts to avoid warnings.
3273         * iconv/gconv_simple.c (internal_utf8_loop): Make start unsigned
3274         to avoid warning.
3275
3276         [BZ #1101]
3277         * posix/regex_internal.c [_LIBC] (build_wcs_buffer): Avoid using
3278         dynamically sized array.
3279         (build_wcs_upper_buffer): Likewise.
3280
3281 2005-03-05  Jakub Jelinek  <jakub@redhat.com>
3282
3283         * include/bits/unistd.h: New file.
3284         * include/bits/socket2.h: New file.
3285
3286 2005-03-05  Ulrich Drepper  <drepper@redhat.com>
3287
3288         * sunrpc/key_call.c: Remove doors support.
3289         * sunrpc/Makefile: Remove CPPFLAGS-key_call.c definition.
3290         * configure.in: Remove test for doors support which never existed.
3291         * config.make.in: Remove have_doors entry.
3292
3293         * configure.in: Make sure at least gcc 3.4 is used.  Undo last change.
3294         * config.make.in: Undo last change.
3295
3296         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Unconditionally use
3297         -mtune.
3298
3299 2005-03-05  Roland McGrath  <roland@redhat.com>
3300
3301         * sysdeps/generic/ldsodefs.h (_dl_out_of_memory_internal): Remove decl.
3302         (_dl_out_of_memory): Use rtld_hidden_proto.
3303         * elf/dl-error.c (_dl_out_of_memory): Use rtld_hidden_data_def.
3304         (_dl_signal_error): Don't use INTUSE on _dl_out_of_memory.
3305         * elf/dl-open.c (_dl_open): Likewise.
3306         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
3307
3308         * sunrpc/des_impl.c (des_set_key): Make first argument unsigned char *.
3309
3310         * elf/dl-addr.c (_dl_addr): Add a cast.
3311
3312         [BZ #821]
3313         * elf/unload3mod4.c: Declare foo.
3314         * elf/testobj2.c: Include <stdio.h>.
3315
3316         * sysdeps/gnu/errlist.awk: Emit NERR macro for _sys_nerr_internal
3317         value constant, and use it in the defn.
3318         * sysdeps/gnu/errlist-compat.awk: Use NERR in array decl.
3319         Use actual size for compat array decls.
3320
3321         * config.make.in (cc-mtune): New substituted variable.
3322         * configure.in (libc_cv_cc_mtune): New test for -mtune= switch,
3323         done only if libc_mtune_example is defined.
3324         * sysdeps/i386/configure.in (libc_mtune_example): Set it.
3325         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Use $(cc-mtune).
3326
3327 2005-03-05  Jakub Jelinek  <jakub@redhat.com>
3328
3329         * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define
3330         unconditionally to (defined RTLD_BOOTSTRAP).
3331         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Likewise.
3332
3333 2005-03-05  Jakub Jelinek  <jakub@redhat.com>
3334
3335         * Makerules ($(inst_libdir)/libc.so): Use $(slibdir) instead of
3336         $(inst_slibdir) in AS_NEEDED directive.
3337
3338 2005-03-03  Jakub Jelinek  <jakub@redhat.com>
3339
3340         * posix/bits/unistd.h (pread, pread64): Don't swap function arguments.
3341
3342 2005-03-01  H.J. Lu  <hongjiu.lu@intel.com>
3343
3344         [BZ #776]
3345         * iconv/iconvconfig.c: Fix comment for the output file.
3346         (write_output): Clear padding in header.
3347
3348 2005-03-03  Ulrich Drepper  <drepper@redhat.com>
3349
3350         [BZ #821]
3351         * elf/dl-close.c (_dl_close): Don't try to set up new searchpath if the
3352         loader is closed.  Fixes unload3.
3353         * elf/tst-global1.c: New file.
3354         * elf/Makefile (tests): Add tst-global1.
3355         * elf/testobj2.c (p): New function.
3356
3357 2005-03-03  Jakub Jelinek  <jakub@redhat.com>
3358
3359         [BZ #821]
3360         * elf/Makefile: Add rules to build and run unload3 test.
3361         * elf/unload3.c: New test.
3362         * elf/unload3mod1.c: New file.
3363         * elf/unload3mod2.c: New file.
3364         * elf/unload3mod3.c: New file.
3365         * elf/unload3mod4.c: New file.
3366
3367 2005-02-21  Alan Modra <amodra@bigpond.net.au>
3368
3369         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Don't
3370         use __uint128_t.
3371
3372 2005-03-01  Jakub Jelinek  <jakub@redhat.com>
3373
3374         * posix/bits/unistd.h (read, pread, pread64): Use __bos0 instead
3375         of __bos.
3376         * socket/bits/socket2.h (recv, recvfrom): Likewise.
3377
3378 2005-03-01  Roland McGrath  <roland@redhat.com>
3379
3380         [BZ #721]
3381         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
3382         of [RESOLVE_MAP].
3383
3384 2005-03-01  Alfred M. Szmidt  <ams@gnu.org>
3385
3386         [BZ #777]
3387         * elf/dl-load.c (__stack_prot) [!PROT_GROWSUP && !PROT_GROWSDOWN]:
3388         Add missing initializer.
3389
3390         [BZ #777]
3391         * malloc/arena.c: #include <stdbool.h> outside of [SHARED &&
3392         USE_TLS && !USE___THREAD].
3393
3394 2005-02-26  GOTO Masanori  <gotom@debian.or.jp>
3395
3396         * csu/Makefile: Use printf instead of echo for some shells.
3397
3398 2005-02-28  Roland McGrath  <roland@redhat.com>
3399
3400         * debug/warning-nop.c (__nop): Rename to nop, make it static.
3401         (__warndecl): Use alias attribute directly, instead of strong_alias
3402         macro.  Add attribute_hidden.
3403
3404 2005-02-28  Ulrich Drepper  <drepper@redhat.com>
3405
3406         * posix/bits/unistd.h: Avoid calling __*_chk variants if we can
3407         determine the call will never trigger a failure.
3408         * debug/read_chk.c (__read_chk): Always fail if the buffer is too
3409         small.
3410         * debug/readlink_chk.c (__readlink_chk): Likewise.
3411         * debug/pread64_chk.c (__pread64_chk): Likewise.
3412         * debug/pread_chk.c (__pread_chk): Likewise.
3413
3414         * sysdeps/i386/i686/memset_chk.S: Remove alias and warning.
3415         * sysdeps/x86_64/memset_chk.S: Likewise.
3416
3417 2005-02-24  Roland McGrath  <roland@redhat.com>
3418
3419         * debug/Versions (libc: GLIBC_2.4): Remove
3420         __memset_zero_constant_len_parameter.
3421         * sysdeps/generic/memset_chk.c: Remove alias and warning.
3422         * misc/sys/cdefs.h (__warndecl): New macro.
3423         * debug/warning-nop.c: New file.
3424         * string/bits/string3.h (memset): Call __warn_memset_zero_len with no
3425         arguments, instead of calling __memset_zero_constant_len_parameter.
3426         Use __warndecl for __warn_memset_zero_len.
3427         * debug/Makefile (routines): Add $(static-only-routines).
3428         (static-only-routines): New variable.
3429
3430 2005-02-27  Ulrich Drepper  <drepper@redhat.com>
3431
3432         * po/tr.po: Update from translation team.
3433
3434 2005-02-26  Ulrich Drepper  <drepper@redhat.com>
3435
3436         * elf/dl-addr.c: Cleanups.  Move declaration next to first use.
3437
3438         * dlfcn/dlerror.c (check_free): New function.  Extract common code
3439         from fini and free_key_mem.  Check whether this is libdl in the
3440         base namespace.
3441
3442 2005-02-25  Ulrich Drepper  <drepper@redhat.com>
3443
3444         * elf/dl-lookup.c (_dl_debug_bindings): Add namespace information
3445         to debug output.
3446
3447 2004-11-11  Richard Sandiford  <rsandifo@redhat.com>
3448
3449         [BZ #758]
3450         * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h): Only
3451         preprocess <asm/unistd.h> if it defines ABI-prefixed syscall names
3452         like __NR_N32_open.  Just include <asm/unistd.h> otherwise.
3453         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
3454         * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: Delete
3455         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h (SYS_ify): Use the
3456         standard __NR prefix.
3457         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h (SYS_ify): Likewise.
3458         * sysdeps/unix/sysv/linux/mips/Makefile (syscall-%.h): Rework so that
3459         the output file is compatible with both pre-2.6 and 2.6 kernel headers.
3460         Extract separate syscall lists for each ABI.
3461
3462 2005-02-23  Ulrich Drepper  <drepper@redhat.com>
3463
3464         * Makerules (libc.so): Add AS_NEEDED line for dynamic linker.
3465
3466         [BZ #719]
3467         * elf/Makefile: Run tst-tls9-static again.
3468
3469 2005-02-22  Ulrich Drepper  <drepper@redhat.com>
3470
3471         [BZ #719]
3472         * sysdeps/generic/libc-tls.c (static_dtv): Size the same as the
3473         slotinfo array.
3474         (__libc_setup_tls): Initialize length of DTV based on array length.
3475         * elf/dl-load.c: Revert last change.
3476         * sysdeps/generic/dl-tls.c: Revert last change.
3477
3478         * posix/Makefile (tests): Add tst-execvp1, tst-execvp2, tst-execlp1,
3479         tst-execlp2, tst-execv1, tst-execv2, tst-execl1, tst-execl2,
3480         tst-execve1, tst-execve2, tst-execle1, and tst-execle2.
3481         * posix/tst-execl1.c: New file.
3482         * posix/tst-execl2.c: New file.
3483         * posix/tst-execle1.c: New file.
3484         * posix/tst-execle2.c: New file.
3485         * posix/tst-execlp1.c: New file.
3486         * posix/tst-execlp2.c: New file.
3487         * posix/tst-execv1.c: New file.
3488         * posix/tst-execv2.c: New file.
3489         * posix/tst-execve1.c: New file.
3490         * posix/tst-execve2.c: New file.
3491         * posix/tst-execvp1.c: New file.
3492         * posix/tst-execvp2.c: New file.
3493
3494 2005-02-22  Roland McGrath  <roland@redhat.com>
3495
3496         * include/signal.h: Revert last change.
3497         (__sigemptyset): Use __builtin_memset instead of memset.
3498
3499 2005-02-22  Ulrich Drepper  <drepper@redhat.com>
3500
3501         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Use
3502         non-cancelable I/O functions.
3503
3504 2005-02-22  Jakub Jelinek  <jakub@redhat.com>
3505
3506         [BZ #769]
3507         * nscd/nscd-client.h: Include sys/uio.h.
3508         (__readall, __readvall, writeall): New prototypes.
3509         * nscd/connections.c (writeall): New function.
3510         (handle_request): Use it.
3511         * nscd/aicache.c (addhstaiX): Likewise.
3512         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3513         * nscd/hstcache.c (cache_addhst): Likewise.
3514         * nscd/grpcache.c (cache_addgr): Likewise.
3515         * nscd/pwdcache.c (cache_addpw): Likewise.
3516         * nscd/nscd_helper.c (__readall, __readvall): New functions.
3517         * nscd/nscd_getai.c (__nscd_getai): Use them.
3518         * nscd/nscd_getpw_r.c (__nscd_getpw_r): Likewise.
3519         * nscd/nscd_getgr_r.c (__nscd_getgr_r): Likewise.
3520         * nscd/nscd_gethst_r.c (__nscd_gethst_r): Likewise.
3521         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3522
3523 2005-02-22  Roland McGrath  <roland@redhat.com>
3524
3525         * include/sys/socket.h: Declare __recv.
3526         * sysdeps/generic/recv.c (recv): Rename to __recv, and add weak alias.
3527         * sysdeps/mach/hurd/recv.c: Likewise.
3528
3529         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <execinfo.h> for
3530         __backtrace_* decls.