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