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