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