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