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