d6f4740f6cf71a71ffe1204b42dac759dce94b7d
[platform/upstream/glibc.git] / ChangeLog
1 2003-05-29  Jim Meyering  <jim@meyering.net>
2
3         * time/strftime.c (my_strftime) [!defined _NL_CURRENT
4         && HAVE_STRFTIME]: Use underlying_strftime for %r.
5         Suggested by Daniel Yacob <locales@geez.org>.
6
7 2003-06-12  Steven Munroe  <sjmunroe@us.ibm.com>
8
9         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
10         @got notation with @toc.
11         * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
12         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
13
14 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
15
16         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date alse
17         if only PF_INET address is needed.
18
19         * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
20         case of an error.
21
22         * scripts/config.guess: Update from upstream version.
23         * scripts/config.sub: Likewise.
24
25 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
26
27         * locale/programs/ld-time.c (time_output): Also copy the era format,
28         not only the name.
29
30 2003-06-12  H.J. Lu  <hongjiu.lu@intel.com>
31
32         * posix/transbug.c (run_test): Return 1 for failure.
33         (do_test): Compare only if run_test is successful.
34
35 2003-06-12  Simon Josefsson  <jas@extundo.com>
36
37         * argp/argp.h [!__THROW]: Define if undefined.
38
39 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
40
41         * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
42         more than four parameters.
43         Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
44
45 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
46
47         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
48         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
49         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
50
51         * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
52
53 2003-06-12  Roland McGrath  <roland@redhat.com>
54
55         * Makerules ($(objpfx)stubs): Rewrite sed magic.
56
57 2003-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
58
59         * posix/regcomp.c (parse_expression): Deliver translation to
60         build_word_op, and build_charclass.
61         (build_charclass): Apply translation for character classes too.
62         (build_word_op): Deliver translation to build_charclass.
63         * posix/transbug.c: New file.
64         * posix/Makefile (tests): Add transbug.
65
66 2003-06-04  Paolo Bonzini  <bonzini@gnu.org>
67
68         * posix/regexec.c (group_nodes_into_DFAstates): Check for
69         NEXT_ENDBUF_CONSTRAINT.  Move check for constraints which do a
70         'continue' before the others.
71
72 2003-06-11  Ulrich Drepper  <drepper@redhat.com>
73
74         * dirent/scandir.c (SCANDIR): Reset errno after calling selector
75         function [PR libc/5045].
76
77         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
78         also for P4.
79
80         * time/tzfile.c: Add a couple of __builtin_expect.
81
82         Remove warnings gcc 3.3 shows.
83         * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
84         * elf/dl-load.c (fillin_rpath): Likewise.
85         (add_path): Likewise.
86         * elf/dl-version.c (find_needed): Always inline.
87         * elf/do-lookup.c (FCT): Don't inline.
88         * iconv/Makefile: Extend vpath to intl subdir.
89         (iconvconfig-modules): Add hash-string.
90         * iconv/gconv_charset.h (strip): Don't inline.
91         (upstr): Always inline.
92         Move __gconv_compare_alias prototype to...
93         * iconv/gconv_int.h: ...here.
94         * iconv/gconv_db.c: Don't include gconv_charset.h.
95         * iconv/gconv_conf.c (add_alias): Don't inline.
96         (insert_module): Likewise.
97         * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
98         (internal_ucs4_loop_unaligned): Likewise.
99         (internal_ucs4_loop_single): Likewise.
100         (ucs4_internal_loop): Likewise.
101         (ucs4_internal_loop_unaligned): Likewise.
102         (ucs4_internal_loop_single): Likewise.
103         (internal_ucs4le_loop): Always inline.
104         (internal_ucs4le_loop_unaligned): Likewise.
105         (internal_ucs4le_loop_single): Likewise.
106         (ucs4le_internal_loop): Likewise.
107         (ucs4le_internal_loop_unaligned): Likewise.
108         (ucs4le_internal_loop_single): Likewise.
109         * iconv/loop.c: Always inline the defined functions.
110         * iconvdata/cns11642.h: Likewise.
111         * iconvdata/cns11642l1.h: Likewise.
112         * iconvdata/euc-kr.c: Likewise.
113         * iconvdata/gb2312.h: Likewise.
114         * iconvdata/jis0201.h: Likewise.
115         * iconvdata/jis0208.h: Likewise.
116         * iconvdata/jis0212.h: Likewise.
117         * iconvdata/jisx0213.h: Likewise.
118         * iconvdata/ksc5601.h: Likewise.
119         * iconvdata/utf-7.c (base64): Don't inline.
120         * include/libc-symbols.h (symbol_set_first_element): Add cast
121         (symbol_set_end_p): Likewise.
122         * include/set-hooks (RUN_HOOK): Likewise.
123         * inet/Makefile (aux): Add ifreq.
124         * intl/Makefile (aux): Add some entries from routines.  Add
125         hash-string.
126         * intl/hash-string.c: New file.
127         * intl/hash-string.h: Remove hash_string definition.  Declare
128         __hash_string.
129         * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
130         * iconv/iconvconfig.c (new_name): Likewise.
131         * intl/dcigettext.c (_nl_find_msg): Likewise.
132         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
133         * io/ftw.c (open_dir_stream): Always inline.
134         (process_entry): Don't inline.
135         * locale/findlocale.c: Include gconv_int.h.
136         * locale/setlocale.c (new_composite_name): Don't inline.
137         * locale/weight.h (findidx): Always inline.
138         * locale/weightwc.h (findidx): Likewise.
139         * locale/programs/linereader.c (lr_ignore_rest): Define here.
140         * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
141         just declare it.
142         (lr_getc): Always inline.
143         (lr_ungetc): Likewise.
144         * nss/nss_files/files-parse.c (parse_list): Likewise.
145         * stdio-common/Makefile (aux): Add printf-parsemb and
146         printf-parsewc.
147         * stdio-common/_itoa.h (_itoa_word): Always inline.
148         (_fitoa_word, _fitoa): Don't define here, only declare.
149         * stdio-common/_itoa.c (_iftoa_word): Add here.
150         (_fitoa): Likewise.
151         * stdio-common/_itowa.h (_itowa_word): Always inline.
152         * stdio-common/printf-parse.h (read_int): Don't inline.
153         (find_spec): Don't define.
154         Declare __find_specmb and __find_specwc.
155         (parse_one_spec): Don't define.
156         Declare __parse_one_specmb and __parse_one_specwc.
157         * stdio-common/printf-parsemb.c: New file.
158         * stdio-common/printf-parsewc.c: New file.
159         * stdio-common/vfprintf.c: Update calls to find_spec and
160         parse_one_spec for new names.
161         * stdio-common/printf-prs.c: Likewise.  Define DONT_NEED_READ_INT.
162         * stdlib/Makefile (aux): Add grouping and groupingwc.
163         * stdlib/grouping.c: New file.
164         * stdlib/groupingwc.c: New file.
165         * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
166         Just prototype.
167         * stdlib/rpmatch.c (try): Don't inline.
168         * stdlib/strtod.c (round_and_return): Don't line.
169         (str_to_mpn): Likewise.
170         (__mpn_lshift_1): Always inline.  Optimize only for constant count.
171         Adjust for name change of correctly_grouped_prefix.
172         * sysdeps/generic/strtol.c: Adjust for name change of
173         correctly_grouped_prefix.
174         * string/strxfrm.c (utf8_encode): Don't inline.
175         * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
176         * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
177         * sysdeps/generic/ifreq.c: New file.
178         * sysdeps/unix/sysv/linux/ifreq.c: New file.
179         * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
180         * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
181         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
182         * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
183         (fde_split): Likewise.
184         (fde_merge): Likewise.
185         (end_fde_sort): Likewise.
186         (init_object): Likewise.
187         (binary_search_unencoded_fdes): Likewise.
188         (binary_search_single_encoding_fdes): Likewise.
189         (binary_search_mixed_encoding_fdes): Likewise.
190         * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
191         * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
192         * sysdeps/posix/sprofil.c (profil_count): Don't inline.
193         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
194         Add xstatconv.
195         * sysdeps/unix/sysv/linux/xstatconv.h: New file.
196         * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
197         Export them.  Prepend __ to name.
198         * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
199         * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
200         conversion functions.
201         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
202         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
203         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
204         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
205         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
206         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
207         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
208         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
209         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
210         __statfs_filesize_max, __statfs_symlinks): Define here.  __ prepended
211         to name.  Change callers.
212         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
213         __statfs_filesize_max, __statfs_symlinks): Don't define here, just
214         declare.
215         * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
216         * time/tzfile.c (decode): Always inline.
217         * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
218         Remove cast in tomb function call.
219         * wcsmbs/wcsrtombs.c Likewise.
220         * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
221         tomb function call.
222
223 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
224
225         * po/zh_CN.po: Update from translation team.
226
227 2003-06-10  Jakub Jelinek  <jakub@redhat.com>
228
229         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
230         IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
231
232 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
233
234         * inet/Makefile (aux): Add check_pf.
235         * include/ifaddrs.h: Add prototype for __check_pf.
236         * sysdeps/generic/check_pf.c: New file.
237         * sysdeps/unix/sysv/linux/check_pf.c: New file.
238         * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
239         from no_netlink_support.  Export.
240         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
241         call __check_pf.
242
243         * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
244
245         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
246         from getifaddr calls.
247
248 2003-06-09  Jakub Jelinek  <jakub@redhat.com>
249
250         * sysdeps/unix/sysv/linux/kernel-features.h
251         (__ASSUME_SETRESGID_SYSCALL): Define.
252         * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
253         instead of __ASSUME_SETRESUID_SYSCALL.
254         (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
255         defined.
256         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
257         inline syscall if __NR_setresuid32 is defined.
258         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
259         __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
260         * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
261         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
262         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
263         code handling non-existant setresgid32 syscall with
264         #if __ASSUME_SETRESGID_SYSCALL == 0.
265
266 2003-06-09  Andreas Schwab  <schwab@suse.de>
267
268         * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
269         ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
270         $(objpfx)rpc-proto.d.
271         (rpcsvc-dt-files, rpcsvc-depfiles): Define.  Include
272         $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
273         ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
274
275 2003-06-08  Ulrich Drepper  <drepper@redhat.com>
276
277         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
278         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
279         defined drop compatibility code.
280         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
281         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
282         defined drop compatibility code.
283         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
284         setresuid32 syscall directly if possible.
285         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
286         setresgid32 syscall directly if possible.
287         * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
288         compliant.  Don't change sgid.
289         * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
290         compliant.  Don't change suid.
291
292         * config.h.in: Add have-forced-unwind.
293         * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
294
295 2003-06-07  Ulrich Drepper  <drepper@redhat.com>
296
297         * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
298         returned status from child matches.
299
300         * Makeconfig (gnulib): Add -lgcc_eh once again.
301
302 2003-06-06  Ulrich Drepper  <drepper@redhat.com>
303
304         * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
305
306         * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
307         %edx for first parameter.  This means no pushl and therefore the
308         unwind info isn't screwed up.
309
310 2003-06-04  Richard Henderson  <rth@redhat.com>
311
312         * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
313         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
314         * sysdeps/alpha/elf/start.S: Likewise.  Remove pointless allocation.
315         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
316         entry sequence and explicit relocs.  Add unwind info for sigreturn
317         and rt_sigreturn.
318         * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
319
320         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
321         Annotate some parameters.
322         * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
323
324         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
325
326         * include/libc-symbols.h (symbol_set_declare): Use arrays
327         of unspecified size.
328
329 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
330
331         * config.make.in (ASFLAGS-config): New.
332         * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
333         * configure.in (libc_cv_as_noexecstack): New check.
334         (ASFLAGS_config): Substitute.
335
336 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
337
338         * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
339         hypot, logb): Protect with #ifdef __FAST_MATH__.
340
341 2003-06-04  Thorsten Kukuk  <kukuk@suse.de>
342
343         * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
344         #ifdef __FAST_MATH__.
345
346 2003-06-03  Ulrich Drepper  <drepper@redhat.com>
347
348         * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
349         DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
350         * posix/globtest.sh: Adjust for this change.
351
352         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
353         to get the actual PID value used in the records passed up.
354         (getifaddrs): Don't initialize nh.pid here.
355
356 2003-06-02  Ulrich Drepper  <drepper@redhat.com>
357
358         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
359         optimization.
360
361         * po/zh_CN.po: Update from translation team.
362
363         * posix/getconf.c (main): Also recognize names without the
364         _POSIX_ prefix.
365
366         * elf/Makefile (CFLAGS-dl-lookup.c): Define.
367
368 2003-06-02  Bernd Schmidt  <bernds@redhat.com>
369
370         * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
371         ldexpf, ldexpl): Only define if __FAST_MATH__.
372
373 2003-06-02  Richard C. Bilson  <rcbilson@plg.uwaterloo.ca>
374
375         Replace hard-coded offsets into struct sigcontext with generated file.
376         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
377         * sysdeps/unix/sysv/linux/ia64/Makefile
378         [$(subdir) = stdlib] (gen-as-const-headers): Add it.
379         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
380         defining SC_* macros here.
381
382 2003-06-02  Jakub Jelinek  <jakub@redhat.com>
383
384         * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
385
386 2003-06-01  Jakub Jelinek  <jakub@redhat.com>
387
388         * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
389
390 2003-06-01  Ulrich Drepper  <drepper@redhat.com>
391
392         * test-skeleton.c (main): Request getopt to not reorder the
393         command line.
394
395         * elf/Makefile (CFLAGS-dl-runtime.c): Define.
396
397         * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
398         stpncpy.
399
400 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
401
402         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
403
404 2003-05-31  Jakub Jelinek  <jakub@redhat.com>
405
406         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
407         New function.
408         (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
409         RESOLVE_CONFLICT_FIND_MAP.  If RESOLVE_CONFLICT_FIND_MAP is defined,
410         call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
411
412 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
413
414         * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
415         CFI directives.
416
417         * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
418
419         * libio/fileops.c (_IO_file_open): Don't mark as inline.
420
421         * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
422         attribute used.
423
424 2003-05-30  Ulrich Drepper  <drepper@redhat.com>
425
426         * scripts/config.guess: Update from master copy.
427         * scripts/config.sub: Likewise.
428
429 2003-05-30  Guido Guenther  <agx@sigxcpu.org>
430
431         * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
432         SETUP_GP64 and friends.
433         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
434         names in internal_syscall{6,7}.
435         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
436         * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
437         number of syscall arguments.
438         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
439         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
440         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
441
442 2003-05-30  Andreas Jaeger  <aj@suse.de>
443
444         * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
445         Add CFI directives.
446
447         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
448         directives.
449
450         * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
451
452         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
453         Add CFI directives.
454
455 2003-05-30  Jakub Jelinek  <jakub@redhat.com>
456
457         * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
458         SHARED.
459
460 2003-05-11  Andreas Schwab  <schwab@suse.de>
461
462         * Makerules: Always use -MP together with -MD.
463         (sed-remove-dotot): Substitute $(..) also at start of line.
464         ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
465         Generated defines with a single compiler call.
466         Use $(sed-remove-dotdot).
467         * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
468         of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
469         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
470         Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
471         * sysdeps/unix/sysv/linux/mips/Makefile
472         ($(objpfx)syscall-%.h): Likewise.
473
474 2003-05-28  Roland McGrath  <roland@redhat.com>
475
476         * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
477
478 2003-05-26  Aldy Hernandez  <aldyh@redhat.com>
479
480         * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
481
482 2003-05-28  Roland McGrath  <roland@redhat.com>
483
484         * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
485         rt_sigprocmask system call.
486         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
487         From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
488
489 2003-05-28  Ulrich Drepper  <drepper@redhat.com>
490
491         * include/libc-symbols.h: Define hidden attribute for real also if
492         LIBC_NONSHARED is defined.  Patch by Jakub Jelinek.
493
494         * csu/Makefile: Add rules to build Scrt1.o.
495         * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
496         * sysdeps/x86_64/elf/start.S: Likewise.
497
498 2003-05-27  Jakub Jelinek  <jakub@redhat.com>
499
500         * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
501         pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
502         * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
503         pa_short_int, pa_u_short_int and pa_float.
504
505 2003-05-26  Jakub Jelinek  <jakub@redhat.com>
506
507         * libio/strops.c (_IO_str_init_static): Change into a wrapper around
508         _IO_str_init_static_internal.
509         (_IO_str_init_static_internal): Moved from _IO_str_init_static,
510         change size argument to _IO_size_t, don't limit sprintf to 64M.
511         (_IO_str_init_readonly): Call _IO_str_init_static_internal.
512         * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
513         _IO_size_t, don't limit swprintf to 256M.
514         (_IO_wstr_init_readonly): Remove.
515         * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
516         Adjust prototypes.
517         (_IO_wstr_init_readonly): Remove prototype.
518         * libio/iovsprintf.c (_IO_vsprintf): Use
519         _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
520         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
521         * libio/memstream.c (open_memstream): Likewise.
522         * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
523         * libio/vasprintf.c (_IO_vasprintf): Likewise.
524         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
525         * stdio-common/tst-sprintf.c (main): Add new test.
526
527 2003-05-26  Ulrich Drepper  <drepper@redhat.com>
528
529         * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
530         other implementation in respect of multiple uses of parameter with
531         different types.
532
533 2003-05-25  Ulrich Drepper  <drepper@redhat.com>
534
535         * sysdeps/unix/sysv/linux/kernel-features.h: Define
536         __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
537
538 2003-05-22  Andreas Jaeger  <aj@suse.de>
539
540         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
541         directives.
542         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
543         * sysdeps/x86_64/strtok.S: Likewise.
544
545 2003-05-20  Guido Guenther  <agx@sigxcpu.org>
546
547         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
548         to -60 and define SI_TKILL.
549
550 2003-05-21  H.J. Lu  <hongjiu.lu@intel.com>
551
552         * math/test-fenv.c (feexcp_nomask_test): Fix comment.
553         (feexcp_mask_test): Likewise.
554
555 2003-05-21  Ulrich Drepper  <drepper@redhat.com>
556
557         * locale/programs/locale.c (main): Fix typo in last patch.
558
559         * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
560         __init_array_start, __init_array_end, __fini_array_start, and
561         __fini_array_end as hidden.
562
563 2003-05-21  Petter Reinholdtsen  <pere@hungry.com>
564
565         * locale/programs/locale.c (main): Report an error if setlocale()
566         fails [PR libc/2254].
567
568 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
569
570         * sysdeps/unix/sysv/linux/s390/system.c: New file.
571
572 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
573
574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
575         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
576         LOADARGS_6): Don't error if syscall argument is a string literal.
577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
578         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
579         LOADARGS_6): Likewise.
580
581 2003-05-21  Andreas Jaeger  <aj@suse.de>
582
583         * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
584         cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
585         cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
586
587         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
588         (ENTRY): Likewise.
589         (END): Likewise.
590
591         * configure.in: Test for asm cfi directives.
592
593         * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
594
595 2003-05-17  Andreas Jaeger  <aj@suse.de>
596
597         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
598
599         * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
600
601 2003-05-16  Ulrich Drepper  <drepper@redhat.com>
602
603         * rt/Makefile (tests): Add tst-clock_nanosleep.
604         * rt/tst-clock_nanosleep.c: New file.
605         * posix/Makefile (tests): Add tst-nanosleep.
606         * posix/tst-nanosleep.c: New file.
607
608         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
609
610         * include/features.h (__USE_XOPEN2K): Define also for
611         _POSIX_C_SOURCE>=200112L.
612
613         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
614         SI_TKILL code into SI_USER.
615         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
616
617         * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
618
619 2003-05-15  Jakub Jelinek  <jakub@redhat.com>
620
621         * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
622         Remove sym argument, always use refsym.
623         (__process_machine_rela): Adjust callers.
624         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
625         Likewise.
626         * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
627         Adjust prototype.
628         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
629
630 2003-05-15  Ulrich Drepper  <drepper@redhat.com>
631
632         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
633         (DL_NEED_SYSINFO -> NEED_DL_SYSINFO).  If aux value is not known
634         print numeric values.
635
636 2003-05-12  Thorsten Kukuk  <kukuk@suse.de>
637
638         * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
639
640 2003-05-14  Andreas Schwab  <schwab@suse.de>
641
642         * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
643
644 2003-05-14  Jakub Jelinek  <jakub@redhat.com>
645
646         * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
647         even if no DT_NEEDED is present.
648
649 2003-05-13  David Mosberger  <davidm@hpl.hp.com>
650
651         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
652         2003-03-27: setjmp is NOT a leaf-routine (due to the call to
653         __sigjmp_save) so we can't keep the saved unat value in a scratch
654         register (r16).  Use loc2 instead.
655
656 2003-05-13  Ulrich Drepper  <drepper@redhat.com>
657
658         * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
659         binaries it has to be relocatable.
660
661         * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
662
663 2003-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
664
665         * sysdeps/powerpc/bits/atomic.h
666         (__arch_compare_and_exchange_bool_8_rel): Define.
667         (__arch_compare_and_exchange_bool_16_rel): Define.
668         (__ARCH_REL_INSTR): Define if not already defined.
669         (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
670         (__arch_atomic_decrement_if_positive_32):
671         Add "memory" to clobber list.
672         (__arch_compare_and_exchange_val_32_acq): Remove release sync.
673         (__arch_compare_and_exchange_val_32_rel): Define.
674         (__arch_atomic_exchange_32): Remove.
675         (__arch_atomic_exchange_32_acq): Define.
676         (__arch_atomic_exchange_32_rel): Define.
677         (atomic_compare_and_exchange_val_rel): Define.
678         (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
679         (atomic_exchange_rel): Define.
680         * sysdeps/powerpc/powerpc32/bits/atomic.h
681         (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
682         (__arch_compare_and_exchange_bool_32_rel): Define.
683         (__arch_compare_and_exchange_bool_64_rel): Define.
684         (__arch_compare_and_exchange_val_64_rel): Define.
685         (__arch_atomic_exchange_64): Remove.
686         (__arch_atomic_exchange_64_acq): Define.
687         (__arch_atomic_exchange_64_rel): Define.
688         * sysdeps/powerpc/powerpc64/bits/atomic.h
689         (__arch_compare_and_exchange_bool_32_rel): Define.
690         (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
691         (__arch_compare_and_exchange_bool_64_rel): Define.
692         (__arch_compare_and_exchange_val_64_acq): Remove release sync.
693         (__arch_compare_and_exchange_val_64_rel): Define.
694         (__arch_atomic_exchange_64): Remove.
695         (__arch_atomic_exchange_64_acq): Define.
696         (__arch_atomic_exchange_64_rel): Define.
697         (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
698         (__arch_atomic_decrement_if_positive_64):
699         Add "memory" to clobber list.
700         [!UP](__ARCH_REL_INSTR): Define as lwsync.
701
702 2003-05-11  Andreas Schwab  <schwab@suse.de>
703
704         * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
705
706 2003-05-11  Ulrich Drepper  <drepper@redhat.com>
707
708         * time/tst-strftime.c (do_test): Add tests for - flag.
709
710 2003-05-11  Jim Meyering  <jim@meyering.net>
711
712         * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
713         the space-padded-by-default conversion specifiers, %e, %k, %l.
714
715 2003-05-11  Andreas Schwab  <schwab@suse.de>
716
717         * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
718
719 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
720
721         * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
722         already defined and when really needed.
723         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
724
725 2003-05-09  Thorsten Kukuk  <kukuk@suse.de>
726
727         * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
728         headers, add defines from kernel header, move it from here...
729         * inet/netinet/igmp.h: ... to here.
730         * inet/Makefile (headers): Add netinet/igmp.h.
731         * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
732         * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
733
734 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
735
736         * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
737         use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
738
739 2003-05-09  Thorsten Kukuk <kukuk@suse.de>
740
741         * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
742         (remove __THROW from possible cancellation points).
743
744 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
745
746         * posix/sched.h (CPU_SETSIZE): Define.
747
748 2003-05-09  Ulrich Drepper  <drepper@redhat.com>
749
750         * Makeconfig (gnulib): Remove -lgcc_eh again.
751
752         * posix/sched.h: Change prototypes of sched_getaffinity and
753         sched_setaffinity.  Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
754         * sysdeps/generic/sched_getaffinity.c: Adjust definition.
755         * sysdeps/generic/sched_setaffinity.c: Likewise.
756         * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
757         __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
758         __CPU_CLR, and __CPU_ISSET.
759         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
760         * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
761         * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
762
763         * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
764         (atomic_exchange_rel): New #define.
765         * sysdeps/ia64/bits/atomic.h: Likewise.
766         * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
767         atomic_exchange.
768         * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
769         * sysdeps/powerpc/bits/atomic.h: Likewise.
770         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
771         * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
772         * sysdeps/x86_64/bits/atomic.h: Likewise.
773         * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
774
775         * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
776
777 2003-05-08  Ulrich Drepper  <drepper@redhat.com>
778
779         * malloc/thread-m.h: Remove special handling of thread_atfork if
780         HAVE_register_atfork_malloc is defined.
781
782 2003-05-07  Andreas Jaeger  <aj@suse.de>
783
784         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
785         information.
786
787 2003-05-06  Ulrich Drepper  <drepper@redhat.com>
788
789         * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
790         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
791         * libio/libioP.h: Declare _IO_old_init.
792         * libio/genops.c (_IO_no_init): Split in two.  New function
793         _IO_old_init.
794
795 2003-05-05  Ulrich Drepper  <drepper@redhat.com>
796
797         * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
798         variable.
799         (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
800         is nonzero.
801         * include/unistd.h: Declare __libc_enable_secure_decided.
802         * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
803         and AT_EGID.  If all found, set __libc_enable_secure and
804         __libc_enable_secure_decided.
805
806         * sysdeps/generic/libc-start.c [!SHARED]: Call
807         __libc_check_standard_fds after __libc_init_first.
808
809 2003-05-05  Roland McGrath  <roland@redhat.com>
810
811         * Makerules (common-before-compile): New variable.
812         ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
813         ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.  Move this rule
814         to after all setting of before-compile.
815
816 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
817
818         * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
819         __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
820         * sysdeps/powerpc/powerpc32/bits/atomic.h
821         (__arch_compare_and_exchange_val_64_acq): Likewise.
822         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
823         (__arch_compare_and_exchange_val_8_acq,
824         __arch_compare_and_exchange_val_16_acq,
825         __arch_compare_and_exchange_val_64_acq): Likewise.
826         * sysdeps/sparc/sparc64/bits/atomic.h
827         (__arch_compare_and_exchange_val_8_acq,
828         __arch_compare_and_exchange_val_16_acq): Likewise.
829         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
830         __arch_compare_and_exchange_val_16_acq,
831         __arch_compare_and_exchange_val_64_acq): Likewise.
832         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
833         (__arch_compare_and_exchange_val_64_acq): Likewise.
834         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
835         up warning.
836         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
837
838         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
839         (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
840         Return long instead of int.
841         (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
842         0xfffff001u with -4095UL.
843
844 2003-05-05  Andreas Jaeger  <aj@suse.de>
845
846         * sysdeps/x86_64/fpu_control.h: New from i386.
847
848         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
849         Define if not defined.
850
851         * sunrpc/Makefile (generated-dirs): New variable.
852         * resolv/Makefile (generated): New variable.
853
854 2003-05-04  Roland McGrath  <roland@redhat.com>
855
856         * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
857         Depend on $(before-compile).
858
859         * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
860         pattern rule.  The implicit rule could be ruled out when $(objpfx)
861         didn't exist at the time of its consideration (ugh!).
862
863         * Makerules (+make-deps): Fix target matching.
864         Use $(sed-remove-dotdot).
865
866 2003-05-03  Ulrich Drepper  <drepper@redhat.com>
867
868         * nscd/nscd.c (main): Parse config file right after parsing
869         parameters.  Then, if get_stats is true, call receive_print_stats.
870         Drop parameter from nscd_init call.
871         (get_stats): New variable.
872         (parse_opt): Set get_stats, don't call receive_print_stats here.
873         * nscd/nscd.h: Declare dbs, stat_user, and stat_uid.  Adjust nscd_init
874         prototype.
875         * nscd/connections.c (stat_user, stat_uid): New variables.
876         (dbs): Make global.
877         (nscd_init): Don't read configuration file here.  Drop parameter.
878         (handle_request): Cleanup handling of non-database lookup requests.
879         * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
880         Get UID of the specified user.  Use xstrdup instead of strdup.
881         * nscd/nscd_stat.c (receive_print_stats): Check UID.  If not zero,
882         check stat_user.
883         * nscd/Makefile (nscd-modules): Add xstrdup.
884         * nscd/nscd.conf: Document stat-user entry.
885
886 2003-05-03  H.J. Lu  <hongjiu.lu@intel.com>
887
888         * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
889         if not defined.
890
891 2003-04-22  Roland McGrath  <roland@redhat.com>
892
893         * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
894         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
895         dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
896         * elf/dl-support.c: Update defn.
897         * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
898         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
899         Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
900         (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
901         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
902         set, set up a link_map for the preloaded, prelinked object.
903
904 2003-05-03  Roland McGrath  <roland@redhat.com>
905
906         * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
907         * stdio-common/Makefile: ... not here.
908
909         * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
910         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
911
912 2003-05-02  Ulrich Drepper  <drepper@redhat.com>
913
914         * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
915
916         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
917
918         * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
919         comparing ftab elements.
920         (_dl_unmap): Fix typo in test.
921         (_dl_make_fptr): Fix typos introduced in last change.
922
923         * sysdeps/generic/dl-fptr.c: Put back one optimization from the
924         original patch.  Use non-exported symbols.  Mark translatable
925         strings.  Pretty printing.
926
927 2003-05-02  Roland McGrath  <roland@redhat.com>
928
929         * Makerules (do-stamp): Do $(make-target-directory).
930
931 2003-04-07  H.J. Lu  <hjl@gnu.org>
932
933         * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
934
935 2003-04-03  H.J. Lu  <hjl@gnu.org>
936
937         * sysdeps/ia64/dl-fptr.c: Moved to ...
938         * sysdeps/generic/dl-fptr.c: Here.
939
940         * sysdeps/generic/dl-fptr.h: New.
941         * sysdeps/ia64/dl-fptr.h: New.
942
943         * sysdeps/ia64/dl-symaddr.c: Moved to ...
944         * sysdeps/generic/dl-symaddr.c: here.
945
946         * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
947         (IA64_BOOT_FPTR_TABLE_LEN): Removed.
948         (ia64_fdesc): Likewise.
949         (ia64_fdesc_table): Likewise.
950         (__ia64_make_fptr): Likewise.
951         (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
952         with _dl_boot_fptr_table.
953         (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
954         `struct fdesc'.
955         (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
956
957 2003-05-01  Roland McGrath  <roland@redhat.com>
958
959         * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
960         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
961
962         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
963         Use $(make-target-directory).
964         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
965
966         * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
967         (compile-command.S): Don't use ifndef.  Append $(compile-mkdep-flags).
968         (compile-command.s, compile-command.c): Likewise.
969         ($(objpfx)%.d): All such pattern rules removed.
970         ($(+sysdir_pfx)sysd-rules): Don't generate them.
971         ($(common-objpfx)dummy.d): Target removed.
972         (make-dummy-dep): Variable removed.
973         (generate-md5): Likewise.
974         (%.d: %.dt): New pattern rule.
975         (+depfiles): Use $(wildcard) function to get just existing *.d files
976         and .d files for existing *.dt files.
977         (common-clean): Remove all *.d and *.dt files.
978         (before-compile): Add $(objpfx). when it doesn't exist,
979         regardless of $(no_deps).
980         * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
981         (rtld-depfiles): Use .os.d instead of .d names.
982         Include existing *.d files and .d files for existing *.dt files.
983
984         * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
985         Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
986
987         * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
988         Do s-*.d includes only if we have some syscall routines in this subdir.
989
990         * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
991         @nobits.  The former is accepted by gas on any ELF platform.
992
993 2003-05-01  Ulrich Drepper  <drepper@redhat.com>
994
995         * sysdeps/unix/sysv/linux/semtimedop.c: New file.
996
997         * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
998
999 2003-04-29  Andreas Schwab  <schwab@suse.de>
1000
1001         * string/test-strcat.c (do_one_test): Fix attribute name.
1002
1003 2003-04-30  Alexandre Oliva  <aoliva@redhat.com>
1004
1005         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
1006         uc_flags long for all ABIs.
1007
1008 2003-04-30  Andreas Jaeger  <aj@suse.de>
1009
1010         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
1011         (DR_CONTROL_RESERVED): Use correct value for 64-bit.
1012         Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
1013         Add bi-arch support.
1014
1015 2003-04-30  Ulrich Drepper  <drepper@redhat.com>
1016
1017         * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
1018         (__posix_memalign): Use __memalign_internal instead of memalign.
1019
1020 2003-04-29  Roland McGrath  <roland@redhat.com>
1021
1022         * configure.in: Search for AUTOCONF unconditionally.
1023         Just don't complain about missing it under --without-cvs.
1024
1025         * include/libc-symbols.h (__symbol_set_attribute): New macro,
1026         give hidden for [SHARED] and weak for [! SHARED].
1027         (symbol_set_declare): Use that.  Never need weak_extern these days.
1028         * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
1029         Depend on $(..)Makerules.
1030
1031 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
1032
1033         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
1034         variants of socket, bind, recvmsg, and sendto.
1035
1036         * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
1037
1038         * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
1039         * signal/sigaddset.c: Add libc_hidden_def.
1040         * signal/sigdelset.c: Likewise.
1041
1042 2003-04-29  Jakub Jelinek  <jakub@redhat.com>
1043
1044         * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
1045         to the end of the file.
1046
1047         * configure.in: Change __oline__ to $LINENO.
1048         (HAVE_BUILTIN_REDIRECTION): New check.
1049         * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
1050         * include/libc-symbols.h (libc_hidden_builtin_proto,
1051         libc_hidden_builtin_def, libc_hidden_builtin_weak,
1052         libc_hidden_builtin_ver): Define.
1053         * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
1054         strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
1055         strspn, strstr): Add libc_hidden_builtin_proto.
1056         * intl/plural.y: Include string.h.
1057         * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
1058         libc_hidden_builtin_def.
1059         * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
1060         * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
1061         * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
1062         * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
1063         * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
1064         * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
1065         * sysdeps/alpha/memchr.S (memchr): Likewise.
1066         * sysdeps/alpha/memset.S (memset): Likewise.
1067         * sysdeps/alpha/strcat.S (strcat): Likewise.
1068         * sysdeps/alpha/strchr.S (strchr): Likewise.
1069         * sysdeps/alpha/strcmp.S (strcmp): Likewise.
1070         * sysdeps/alpha/strcpy.S (strcpy): Likewise.
1071         * sysdeps/alpha/strlen.S (strlen): Likewise.
1072         * sysdeps/alpha/strncmp.S (strncmp): Likewise.
1073         * sysdeps/alpha/strncpy.S (strncpy): Likewise.
1074         * sysdeps/alpha/strrchr.S (strrchr): Likewise.
1075         * sysdeps/arm/memset.S (memset): Likewise.
1076         * sysdeps/arm/strlen.S (strlen): Likewise.
1077         * sysdeps/generic/memchr.c (memchr): Likewise.
1078         * sysdeps/generic/memcpy.c (memcpy): Likewise.
1079         * sysdeps/generic/memmove.c (memmove): Likewise.
1080         * sysdeps/generic/memset.c (memset): Likewise.
1081         * sysdeps/generic/strcat.c (strcat): Likewise.
1082         * sysdeps/generic/strchr.c (strchr): Likewise.
1083         * sysdeps/generic/strcmp.c (strcmp): Likewise.
1084         * sysdeps/generic/strcpy.c (strcpy): Likewise.
1085         * sysdeps/generic/strcspn.c (strcspn): Likewise.
1086         * sysdeps/generic/strlen.c (strlen): Likewise.
1087         * sysdeps/generic/strncmp.c (strncmp): Likewise.
1088         * sysdeps/generic/strncpy.c (strncpy): Likewise.
1089         * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
1090         * sysdeps/generic/strrchr.c (strrchr): Likewise.
1091         * sysdeps/generic/strspn.c (strspn): Likewise.
1092         * sysdeps/generic/strstr.c (strstr): Likewise.
1093         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
1094         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
1095         * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
1096         * sysdeps/i386/i586/memset.S (memset): Likewise.
1097         * sysdeps/i386/i586/strchr.S (strchr): Likewise.
1098         * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
1099         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
1100         * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
1101         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
1102         * sysdeps/i386/i686/memset.S (memset): Likewise.
1103         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
1104         * sysdeps/i386/memchr.S (memchr): Likewise.
1105         * sysdeps/i386/memset.c (memset): Likewise.
1106         * sysdeps/i386/strchr.S (strchr): Likewise.
1107         * sysdeps/i386/strcspn.S (strcspn): Likewise.
1108         * sysdeps/i386/strlen.c (strlen): Likewise.
1109         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
1110         * sysdeps/i386/strrchr.S (strrchr): Likewise.
1111         * sysdeps/i386/strspn.S (strspn): Likewise.
1112         * sysdeps/ia64/memchr.S (memchr): Likewise.
1113         * sysdeps/ia64/memcpy.S (memcpy): Likewise.
1114         * sysdeps/ia64/memmove.S (memmove): Likewise.
1115         * sysdeps/ia64/memset.S (memset): Likewise.
1116         * sysdeps/ia64/strcat.S (strcat): Likewise.
1117         * sysdeps/ia64/strchr.S (strchr): Likewise.
1118         * sysdeps/ia64/strcmp.S (strcmp): Likewise.
1119         * sysdeps/ia64/strcpy.S (strcpy): Likewise.
1120         * sysdeps/ia64/strlen.S (strlen): Likewise.
1121         * sysdeps/ia64/strncmp.S (strncmp): Likewise.
1122         * sysdeps/ia64/strncpy.S (strncpy): Likewise.
1123         * sysdeps/m68k/memchr.S (memchr): Likewise.
1124         * sysdeps/m68k/strchr.S (strchr): Likewise.
1125         * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
1126         * sysdeps/mips/mips64/memset.S (memset): Likewise.
1127         * sysdeps/mips/memcpy.S (memcpy): Likewise.
1128         * sysdeps/mips/memset.S (memset): Likewise.
1129         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
1130         * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
1131         * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
1132         * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
1133         * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
1134         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
1135         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
1136         * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
1137         * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
1138         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
1139         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
1140         * sysdeps/powerpc/strcat.c (strcat): Likewise.
1141         * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
1142         * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
1143         * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
1144         * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
1145         * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
1146         * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
1147         * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
1148         * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
1149         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
1150         * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
1151         * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
1152         * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
1153         * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
1154         * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
1155         * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
1156         * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
1157         * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
1158         * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
1159         * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
1160         * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
1161         * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
1162         * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
1163         * sysdeps/sh/memcpy.S (memcpy): Likewise.
1164         * sysdeps/sh/memset.S (memset): Likewise.
1165         * sysdeps/sh/strlen.S (strlen): Likewise.
1166         * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
1167         * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
1168         * sysdeps/s390/s390-32/memset.S (memset): Likewise.
1169         * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
1170         * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
1171         * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
1172         * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
1173         * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
1174         * sysdeps/s390/s390-64/memset.S (memset): Likewise.
1175         * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
1176         * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
1177         * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
1178         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
1179         * sysdeps/x86_64/memset.S (memset): Likewise.
1180         * sysdeps/x86_64/strcat.S (strcat): Likewise.
1181         * sysdeps/x86_64/strchr.S (strchr): Likewise.
1182         * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
1183         * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
1184         * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
1185         * sysdeps/x86_64/strlen.S (strlen): Likewise.
1186         * sysdeps/x86_64/strspn.S (strspn): Likewise.
1187         * string/string-inlines.c: Move...
1188         * sysdeps/generic/string-inlines.c: ...here.
1189         (__memcpy_g, __strchr_g): Remove.
1190         (__NO_INLINE__): Define before including <string.h>,
1191         undefine after.  Include bits/string.h and bits/string2.h.
1192         * sysdeps/i386/i486/string-inlines.c: New file.
1193         * sysdeps/i386/string-inlines.c: New file.
1194         * sysdeps/i386/i486/Versions: Remove.
1195         All GLIBC_2.1.1 symbols moved...
1196         * sysdeps/i386/Versions (libc): ...here.
1197
1198 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
1199
1200         * sysdeps/i386/fpu/Makefile: New file.
1201         * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
1202         * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1203         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1204         * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
1205         [PR libc/4987].
1206
1207 2003-04-28  Ulrich Drepper  <drepper@redhat.com>
1208
1209         * nscd/nscd_getgr_r.c: Compact code a bit.  Add some __builtin_expect.
1210         * nscd/nscd_getpw_r.c: Likewise.
1211         * nscd/nscd_gethst_r.c: Likewise.
1212
1213 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
1214
1215         * nscd/pwdcache.c: Initialize .version element in result.
1216         * nscd/grpcache.c: Likewise.
1217         * nscd/pwdcache.c: Likewise.
1218
1219 2003-04-27  Andreas Schwab  <schwab@suse.de>
1220
1221         * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
1222         subdirectory.
1223
1224 2003-04-27  Andreas Schwab  <schwab@suse.de>
1225
1226         * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
1227
1228 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
1229
1230         * nscd/connections.c (client_queued): New variable.
1231         (nscd_run): Revamp the loop.  Don't call poll except for cleanup
1232         threads.  Keep track of the number of delays caused because of busy
1233         worker threads.
1234         * nscd/nscd.h: Declare client_queued.
1235         * nscd/nscd_stat.c: Transmit and print client_queued information.
1236
1237         * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
1238
1239         * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
1240         define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
1241
1242 2003-04-26  Ulrich Drepper  <drepper@redhat.com>
1243
1244         * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
1245         tracking of freed memory in static TLS block.
1246         * elf/Makefile: Add rules to build and run tst-tls13.
1247         * elf/tst-tls13.c: New file.
1248         * elf/tst-tlsmod13.c: New file.
1249         * elf/tst-tlsmod13a.c: New file.
1250
1251         * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
1252
1253         * elf/dl-reloc.c: Pretty printing.
1254
1255 2003-04-26  Roland McGrath  <roland@redhat.com>
1256
1257         * Makerules ($(common-objpfx)shlib.lds): New target.
1258         (common-generated): Add it.
1259         (build-shlib, build-module): Use that instead of generating every time.
1260         ($(common-objpfx)libc.so): Depend on it.
1261         (lib%.so rule): Likewise.
1262         (build-module-helper-objlist): Remove %.lds.
1263         (LDSEDCMD-c.so): Variable removed.
1264         * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
1265         Depend on $(common-objpfx)shlib.lds.
1266         * dlfcn/Makefile ($(test-modules)): Likewise.
1267
1268 2003-04-26  Roland McGrath  <roland@frob.com>
1269
1270         * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
1271
1272 2003-04-26  Andreas Schwab  <schwab@suse.de>
1273
1274         * elf/dl-close.c (remove_slotinfo): Fix missing parens.
1275
1276 2003-04-25  Ulrich Drepper  <drepper@redhat.com>
1277
1278         * nscd/cache.c (cache_search): Keep track of how many chain links
1279         we searched and update table statistics.
1280         (cache_add): Keep track of how many values are in the table.
1281         (prune_cache): Likewise.  Keep track of locking success.
1282         Print messages about removed entries in separate pass.
1283         * nscd/connections.c (handle_request): Don't print debug message here.
1284         The caller will do it.  Keep track of locking success.
1285         (nscd_run): Print debug message.  Also print PID of the client process.
1286         * nscd/nscd.c (start_time): New variable.
1287         (main): Remember start time.
1288         * nscd/nscd.h: Declare start_time.
1289         (struct database): Add more members for new statistics.
1290         * nscd/nscd_stat.c: Add support for sending, receiving, and printing
1291         of new statistics.
1292
1293         * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
1294
1295 2003-04-22  Jakub Jelinek  <jakub@redhat.com>
1296
1297         * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
1298         * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
1299         * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
1300         NO_TLS_OFFSET.
1301         * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
1302         * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
1303         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
1304         * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
1305         TLS_TCB_SIZE.
1306
1307 2003-04-24  Ulrich Drepper  <drepper@redhat.com>
1308
1309         * nss/getent.c: Implement alternative host database lookup via
1310         getaddrinfo.
1311
1312         * include/ifaddrs.h: New file.
1313         * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
1314         AI_ADDRCONFIG...
1315         * resolv/netdb.h: ...here.
1316         * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
1317         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
1318         * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
1319         AI_ADDRCONFIG.
1320
1321 2003-04-24  Roland McGrath  <roland@redhat.com>
1322
1323         * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
1324
1325 2003-04-24  Jakub Jelinek  <jakub@redhat.com>
1326
1327         * elf/dl-reloc.c (allocate_static_tls): Rename to...
1328         (_dl_allocate_static_tls): ... this function.  No longer static.
1329         (CHECK_STATIC_TLS): Adjust.
1330         * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
1331         * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
1332         Add SYM_MAP argument.
1333         (elf_machine_rela): Adjust caller.  Declare SYM_MAP unconditionally.
1334         Check if SYM_MAP != NULL for R_PPC_DTPREL32.  Only handle 32-bit
1335         TLS relocs here.  #ifdef out relocs which never appear in
1336         .gnu.conflict section from dl-conflict.c processing.
1337         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
1338         Add SYM_MAP argument.  Handle 16-bit TLS relocs here.
1339
1340         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
1341         out relocs which never appear in .gnu.conflict section from
1342         dl-conflict.c processing.
1343         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
1344         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1345         * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
1346         Use r_type in RESOLVE macro.
1347
1348 2003-04-23  Ulrich Drepper  <drepper@redhat.com>
1349
1350         * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
1351         NULL.  Remove code made redundant by this assumption.
1352         (__yp_unbind): Add call to free.  Adjust all callers.
1353
1354         * nis/ypclnt.c (yp_all): Free the dom_binding object after
1355         unbinding it.
1356
1357         * grp/initgroups.c (getgrouplist): Don't copy too much into the
1358         user buffer if more groups are found than fit into it.
1359
1360         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
1361         extend_alloca.
1362
1363 2003-04-23  Jakub Jelinek  <jakub@redhat.com>
1364
1365         * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
1366         not rc == errno.  Use extend_alloca.
1367
1368         * elf/tst-tls12.c (main): Fix declaration.
1369         * elf/tst-tls10.c (dummy): Make hidden instead of static.
1370         * elf/tst-tlsmod7.c (dummy): Likewise.
1371         * elf/tst-tlsmod8.c (dummy): Likewise.
1372         * elf/tst-tlsmod9.c (dummy): Likewise.
1373
1374 2003-04-22  Roland McGrath  <roland@redhat.com>
1375
1376         * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
1377         (open_not_cancel): Make last argument non-optional.
1378         * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
1379         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
1380         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
1381
1382         * include/tls.h: Protect against multiple inclusion.
1383
1384 2003-04-22  Ulrich Drepper  <drepper@redhat.com>
1385
1386         * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
1387         * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
1388         open_socket.  Not static anymore.
1389         (nscd_gethst_r): Use __nscd_open_socket.
1390         * nscd/nscd_getgr_r.c (open_socket): Removed.
1391         (nscd_getgr_r): Use __nscd_open_socket.
1392         * nscd/nscd_getpw_r.c (open_socket): Removed.
1393         (nscd_getpw_r): Use __nscd_open_socket.
1394
1395         * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
1396         * nscd/connections.c (handle_request): Add cast to avoid warning.
1397
1398 2003-04-21  Ulrich Drepper  <drepper@redhat.com>
1399
1400         * signal/sigfillset.c: Moved to...
1401         * sysdeps/generic/sigfillset.c: ...here.  If SIGCANCEL is defined
1402         do not set the corresponding bit.
1403
1404         * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
1405         SIGCANCEL.
1406         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
1407         * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
1408         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
1409         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
1410         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
1411
1412 2003-04-20  Ulrich Drepper  <drepper@redhat.com>
1413
1414         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
1415         first syscall parameter to const char*.
1416
1417 2003-04-19  Ulrich Drepper  <drepper@redhat.com>
1418
1419         * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
1420
1421         * configure.in: Add AC_PROG_CXX.
1422         * config.make.in (CXX): Define.
1423
1424         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
1425         __len to size_t to avoid warnings.
1426
1427 2003-04-18  Jes Sorensen  <jes@wildopensource.com>
1428
1429         * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
1430         2.5.67.
1431         * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1432
1433 2003-04-19  Ulrich Drepper  <drepper@redhat.com>
1434
1435         * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
1436         UNREGISTER_ATFORK if d == NULL.
1437
1438         * catgets/nl_types.h: Remove __THROW marker from cancellation points.
1439         * dirent/dirent.h: Likewise.
1440         * dlfcn/dlfcn.h: Likewise.
1441         * grp/grp.h: Likewise.
1442         * iconv/iconv.h: Likewise.
1443         * io/fcntl.h: Likewise.
1444         * io/ftw.h: Likewise.
1445         * libio/stdio.h: Likewise.
1446         * misc/sys/mman.h: Likewise.
1447         * misc/sys/select.h: Likewise.
1448         * misc/sys/syslog.h: Likewise.
1449         * misc/sys/uio.h: Likewise.
1450         * posix/spawn.h: Likewise.
1451         * posix/unistd.h: Likewise.
1452         * posix/sys/wait.h: Likewise.
1453         * pwd/pwd.h: Likewise.
1454         * resolv/netdb.h: Likewise.
1455         * rt/aio.h: Likewise.
1456         * shadow/shadow.h: Likewise.
1457         * signal/signal.h: Likewise.
1458         * socket/sys/socket.h: Likewise.
1459         * stdlib/stdlib.h: Likewise.
1460         * streams/stropts.h: Likewise.
1461         * string/string.h: Likewise.
1462         * sysdeps/gnu/utmpx.h: Likewise.
1463         * sysvipc/sys/msg.h: Likewise.
1464         * termios/termios.h: Likewise.
1465         * time/time.h: Likewise.
1466         * wcsmbs/wchar.h: Likewise.
1467         * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
1468         functions.
1469         * misc/daemon.c: Likewise.
1470         * sysdeps/generic/backtracesymsfd.c: Likewise.
1471         * sysdeps/generic/check_fds.c: Likewise.
1472         * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
1473         * sysdeps/unix/sysv/linux/not-cancel.h: New file.
1474         * sysdeps/generic/not-cancel.h: New file.
1475         * csu/Makefile (distribute): Add not-cancel.h.
1476         * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
1477         * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
1478         for assert.c and assert-perr.c to include <fatal-prepare.h>.
1479         * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
1480
1481         * sysdeps/posix/remove.c (remove): Rewrite.  No need to restore
1482         errno and unlink first.
1483
1484         * io/ftw.c (ftw_dir): In all places assume fchdir is available.
1485
1486 2003-04-18  Ulrich Drepper  <drepper@redhat.com>
1487
1488         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
1489         INTERNAL_SYSCALL instead of INLINE_SYSCALL.
1490
1491 2003-04-17  Ulrich Drepper  <drepper@redhat.com>
1492
1493         * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
1494
1495         * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
1496         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
1497         replace.
1498
1499         * signal/Makefile (tests): Add tst-sigsimple.
1500         * signal/tst-sigsimple.c: New file.
1501
1502 2003-04-16  Jakub Jelinek  <jakub@redhat.com>
1503
1504         * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
1505         tst-tls10.h.
1506         (tests): Add tst-tls1[0-2].
1507         (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
1508         ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
1509         ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
1510         ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
1511         ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
1512         ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
1513         ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
1514         * elf/tst-tls10.c: New test.
1515         * elf/tst-tls11.c: New test.
1516         * elf/tst-tls12.c: New test.
1517         * elf/tst-tls10.h: New file.
1518         * elf/tst-tlsmod7.c: New file.
1519         * elf/tst-tlsmod8.c: New file.
1520         * elf/tst-tlsmod9.c: New file.
1521         * elf/tst-tlsmod10.c: New file.
1522         * elf/tst-tlsmod11.c: New file.
1523         * elf/tst-tlsmod12.c: New file.
1524
1525 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
1526
1527         * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
1528         * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
1529         * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
1530
1531 2003-04-17  Ulrich Drepper  <drepper@redhat.com>
1532
1533         * posix/regex.h: Include <sys/types.h>.
1534
1535         * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
1536         The signal number must be checked.
1537         * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
1538         The signal number must be checked [PR libc/5004].
1539
1540         * sysdeps/unix/sysv/linux/system.c: If compiled without threads
1541         don't do anything fancy.
1542
1543         * sysdeps/generic/bits/libc-lock.h: Define
1544         __rtld_lock_define_initialized_recursive.
1545
1546         * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
1547         contacting nscd if NOT_USENSCD_NAME > 0.
1548         * nss/nsswitch.c (__nss_disable_nscd): New function.
1549         * nss/nsswitch.h: Declare it.
1550         * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
1551         * nscd/nscd.c (main): Call __nss_disable_nscd.
1552
1553 2003-04-16  Ulrich Drepper  <drepper@redhat.com>
1554
1555         * stdio-common/perror.c (perror): We don't need to set the offset
1556         to _IO_pos_bad, this is how streams are initialized.
1557
1558         * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
1559         (time_output): If necessary, allocate new buffer for .name string if
1560         padding is required.
1561
1562         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
1563         before copying.  This might leave holes in the list.  Adjust
1564         pointers if necessary.
1565         (netlink_receive): Allocate only one block.
1566         (free_netlink_handle): Adjust appropriately.
1567         (getifaddrs): Lots of cleanups.
1568
1569         * string/test-strncpy.c (do_one_test): Mark start and stop as
1570         possibly unused.
1571         * string/test-memchr.c: Likewise.
1572         * string/test-memcmp.c: Likewise.
1573         * string/test-memcpy.c: Likewise.
1574         * string/test-memmove.c: Likewise.
1575         * string/test-memset.c: Likewise.
1576         * string/test-strcat.c: Likewise.
1577         * string/test-strchr.c: Likewise.
1578         * string/test-strcmp.c: Likewise.
1579         * string/test-strcpy.c: Likewise.
1580         * string/test-strlen.c: Likewise.
1581         * string/test-strncmp.c: Likewise.
1582         * string/test-strpbrk.c: Likewise.
1583         * string/test-strrchr.c: Likewise.
1584         * string/test-strspn.c: Likewise.
1585
1586 2003-04-15  Roland McGrath  <roland@redhat.com>
1587
1588         * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
1589
1590         * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
1591         INTUSE(__register_frame_info_bases).
1592
1593 2003-04-15  Ulrich Drepper  <drepper@redhat.com>
1594
1595         * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
1596         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
1597         AT_SYSINFO_EH_FRAME.  Adjust string width.
1598         (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
1599         * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
1600         Add _dl_sysinfo_eh_frame field.
1601         * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
1602         * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
1603         variable.
1604         [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
1605         if _dl_sysinfo_eh_frame is non-NULL.
1606
1607         * Makeconfig (gnulib): Add -lgcc_eh.
1608
1609         * config.h.in: Define HAVE_FORCED_UNWIND.
1610
1611 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
1612
1613         * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
1614         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
1615
1616 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
1617
1618         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
1619         checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
1620         against local symbol in conflict processing.
1621
1622 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
1623
1624         * sysdeps/powerpc/bits/atomic.h
1625         [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
1626         [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
1627         as abort stub.
1628         (__arch_compare_and_exchange_val_32_acq): Define.
1629         (atomic_compare_and_exchange_val_acq): Define.
1630
1631 2003-04-15  Ulrich Drepper  <drepper@redhat.com>
1632
1633         * include/atomic.h: Pretty printing.
1634
1635 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
1636
1637         * stdio-common/vfscanf.c: Add casts to avoid warnings.
1638
1639 2003-04-14  Jakub Jelinek  <jakub@redhat.com>
1640
1641         * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
1642         * sysdeps/x86_64/bits/atomic.h: Likewise.
1643
1644 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
1645
1646         * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
1647         POPARGS_1 to emit labels for the mov instructions.
1648
1649 2003-04-14  Jakub Jelinek  <jakub@redhat.com>
1650
1651         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
1652
1653 2003-04-14  Roland McGrath  <roland@redhat.com>
1654
1655         * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
1656         compiler warning.
1657
1658         * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
1659
1660 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
1661
1662         * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
1663         position.  Reported by jreiser@BitWagon.com.
1664
1665 2003-04-13  Ulrich Drepper  <drepper@redhat.com>
1666
1667         * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
1668         * sysdeps/generic/unwind-dw2-fde.h: Likewise.
1669         * sysdeps/generic/unwind-dw2.c: Likewise.
1670         * sysdeps/generic/unwind-pe.h: Likewise.
1671
1672 2003-04-13  Alexandre Oliva  <aoliva@redhat.com>
1673
1674         * sysdeps/unix/sysv/linux/mips/profil-counter: New.
1675         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
1676         * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
1677         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
1678         (mcontext_t): Make it match the 32-bit mips kernel in o32.
1679         * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
1680         the mips and mips64 headers.
1681         (struct user): Port to n32/n64.
1682
1683 2003-04-12  Ulrich Drepper  <drepper@redhat.com>
1684
1685         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
1686         avoid warning.
1687
1688         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
1689         __ASSUME_VSYSCALL is defined don't add restorer.
1690         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1691         __ASSUME_VSYSCALL for 2.5.53.
1692
1693 2003-04-11  Ulrich Drepper  <drepper@redhat.com>
1694
1695         * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
1696         Remove HAVE_CANCELBUF code.  Replace with code using the new
1697         initializers for unwind-based cleanup handling.
1698         * sysdeps/generic/unwind.h: Update from latest gcc version.
1699         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
1700         places to allow unwind data generation.
1701         * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
1702         * sysdeps/x86_64/bits/setjmp.h: Likewise.
1703         * sysdeps/sh/bits/setjmp.h: Likewise.
1704         * sysdeps/powerpc/bits/setjmp.h: Likewise.
1705         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
1706         * sysdeps/alpha/bits/setjmp.h: Likewise.
1707
1708 2003-04-11  Roland McGrath  <roland@redhat.com>
1709
1710         * csu/tst-empty.c: New file.
1711         * csu/Makefile (tests, tests-static): Add it.
1712
1713 2003-04-11  Jakub Jelinek  <jakub@redhat.com>
1714
1715         * string/test-strcmp.c (do_random_tests): Test whether return value
1716         has been promoted to wordsize if the ABI requires caller to do so.
1717         * string/test-strncmp.c (do_random_tests): Likewise.
1718         * string/test-memcmp.c (do_random_tests): Likewise.
1719
1720         * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
1721         before returning.
1722
1723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1724         (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
1725         is not defined, but the prctl constants are.
1726
1727         * string/tester.c (test_strcmp): Fix a typo.
1728
1729 2003-04-09  Ulrich Drepper  <drepper@redhat.com>
1730
1731         * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
1732         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
1733
1734 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
1735
1736         * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
1737         NewABI.
1738         (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
1739         NewABI.
1740         * sysdeps/mips/mips64/memcpy.S: Adjust register naming
1741         conventions.
1742         * sysdeps/mips/mips64/memset.S: Likewise.
1743         * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
1744         Use t0 instead of t4 as temporary.
1745
1746 2003-04-07  Ulrich Drepper  <drepper@redhat.com>
1747
1748         * elf/ldconfig.c (parse_conf): Ignore leading whitespace.  Use
1749         feof_unlocked instead of feof.
1750         (add_dir): Ignore trailing whitespace.
1751
1752 2003-04-07  Jakub Jelinek  <jakub@redhat.com>
1753
1754         * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
1755         sum of SIZE1 and SIZE2 arguments.
1756
1757 2003-04-06  Ulrich Drepper  <drepper@redhat.com>
1758
1759         * iconv/iconv_prog.c (process_block): Don't print message about
1760         invalid input if the -c option is used.
1761         (main): Correctly append IGNORE string for -c option.
1762
1763 2002-04-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1764
1765         * sysdeps/sh/bits/atomic.h: Moved to ...
1766         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here.  Add comments.
1767         (__arch_compare_and_exchange_val_*_acq): Add parens around macro
1768         arguments.
1769         (atomic_bit_set, atomic_bit_test_set): Likewise.
1770         (atomic_exchange_and_add): Likewise.  Don't evaluate VALUE argument
1771         twice.
1772         (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
1773
1774 2003-04-06  Roland McGrath  <roland@redhat.com>
1775
1776         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
1777         restoration as done for setcontext yesterday.
1778
1779 2003-04-06  Jakub Jelinek  <jakub@redhat.com>
1780
1781         * elf/rtld.c: Revert 2003-03-14 change.
1782         * elf/dl-conflict.c (_dl_resolve_conflicts): Move
1783         #if ! ELF_MACHINE_NO_RELA conditional into the routine.
1784
1785 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
1786
1787         * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
1788
1789         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
1790         Always initialize *signgamp before returning an error.
1791
1792 2003-04-05  Roland McGrath  <roland@redhat.com>
1793
1794         * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
1795         below the stack pointer even if switching to the same context we are
1796         running right now.
1797
1798 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
1799
1800         * catgets/gencat.c (read_input_file): Make sure that \n is not
1801         alone on the line before testing for continuation.
1802
1803         * math/test-tgmath.c (compile_test): Initialize c.
1804
1805 2003-04-05  Alexandre Oliva  <aoliva@redhat.com>
1806
1807         * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
1808         * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
1809         * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
1810         on mips n32.
1811         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
1812         XSTAT_IS_XSTAT64 must not be used for mips n64.  Use 64-bit data
1813         structure on n32 as well.
1814         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
1815         data types on n32 and n64.
1816
1817 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
1818
1819         * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
1820         after getting them.
1821
1822         * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
1823         HAVE_register_atfork_malloc is defined use __register_atfork_malloc
1824         instead of __register_atfork.
1825
1826 2003-04-05  Jakub Jelinek  <jakub@redhat.com>
1827
1828         * stdio-common/reg-printf.c (__register_printf_function): Calloc
1829         instead of malloc __printf_arginfo_table and __printf_function_table.
1830         Reported by John Reiser <jreiser@BitWagon.com>.
1831
1832 2003-04-04  Steven Munroe  <sjmunroe@us.ibm.com>
1833
1834         * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
1835         * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
1836
1837         * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
1838         defining.
1839
1840 2003-04-04  Alexandre Oliva  <aoliva@redhat.com>
1841
1842         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
1843         for n64 abi.
1844
1845 2003-04-03  Roland McGrath  <roland@redhat.com>
1846
1847         * configure.in: Fix up use of compilation flags to match the build:
1848         For .s files, $ASFLAGS;
1849         For .S files, $CPPFLAGS $ASFLAGS;
1850         For .c files, $CFLAGS $CPPFLAGS;
1851         when linking, add $LDFLAGS.
1852         * configure: Regenerated.
1853
1854 2003-04-03  Jakub Jelinek  <jakub@redhat.com>
1855
1856         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
1857         for atomic_compare_and_exchange_bool_acq failure.
1858
1859 2003-04-03  Ulrich Drepper  <drepper@redhat.com>
1860
1861         * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
1862         _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
1863         _POSXI2_LOCALEDEF to 200112L.  Remove _POSIX2_C_VERSION.
1864         Remove declaration of pthread_atfork.
1865
1866 2003-04-02  Ulrich Drepper  <drepper@redhat.com>
1867
1868         * locale/iso-639.def: Add many more languages from the current ISO 639.
1869
1870         * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
1871         * sysdeps/generic/semtimedop.c: New file.
1872         * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
1873         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
1874         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1875         * sysvipc/Makefile (routines): Add semtimedop.
1876         * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
1877         * sysvipc/sys/sem.h: Declare semtimedop.
1878
1879 2003-04-02  Daniel Jacobowitz  <drow@mvista.com>
1880
1881         * configure.in: Check for __register_frame_info in both
1882         -lgcc and -lgcc_eh.
1883         * configure: Regenerated.
1884
1885 2003-04-01  Roland McGrath  <roland@redhat.com>
1886
1887         * scripts/abilist.awk: Allow dots in soname suffix.
1888
1889         * scripts/abilist.awk (emit): Fix bailout condition.
1890
1891 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
1892
1893         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
1894         IA-64 version.
1895
1896         * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
1897         register as input to asm.
1898
1899 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
1900
1901         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
1902
1903 2003-04-01  Andreas Jaeger  <aj@suse.de>
1904
1905         * configure.in: Output as/ld as name if version is too old.
1906
1907 2003-03-31  Daniel Jacobowitz  <drow@mvista.com>
1908
1909         * configure.in: Don't require an installed C library in the test
1910         for ".set" assembler support.
1911
1912 2003-03-31  Roland McGrath  <roland@redhat.com>
1913
1914         * signal/tst-sigset.c: New file.
1915         * signal/Makefile (tests): Add it.
1916
1917 2003-03-31  Ulrich Drepper  <drepper@redhat.com>
1918
1919         * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
1920         * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
1921         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
1922         * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
1923         (__SIGRTMAX): Adjust accordingly.
1924         * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
1925         second compatibility symbol set.
1926         * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
1927
1928 2003-03-31  Andreas Schwab  <schwab@suse.de>
1929
1930         * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
1931         Define.
1932         (atomic_decrement_and_test): Fix test.
1933
1934 2003-03-31  Jakub Jelinek  <jakub@redhat.com>
1935
1936         * sysdeps/sparc/sparc32/bits/atomic.h: New file.
1937         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
1938         * sysdeps/sparc/sparc64/bits/atomic.h: New file.
1939         * sysdeps/sparc/sparc32/atomicity.h: Removed.
1940         * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
1941         * sysdeps/sparc/sparc64/atomicity.h: Removed.
1942
1943 2003-03-30  Roland McGrath  <roland@redhat.com>
1944
1945         * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
1946
1947         * intl/po2test.sed: Anchor substitution regexps to fix last change.
1948
1949 2003-03-29  Paolo Bonzini  <bonzini@gnu.org>
1950
1951         * intl/po2test.sed: Unify the transformations for msgid and msgstr
1952         and remove a useless s/// command.
1953
1954 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
1955
1956         * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
1957         directive into empty .prologue region to ensure that call-chain
1958         is terminated even for the first instruction.
1959
1960         * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
1961         to terminate call-chain right from the get-go.
1962
1963         * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
1964         stop bit between compare & branch.
1965
1966 2003-03-29  Ulrich Drepper  <drepper@redhat.com>
1967
1968         * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
1969         point correctly [PR libc/4993].
1970
1971         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
1972         netlink_open calls if netlink is known to not be available.
1973
1974 2003-03-29  Alexandre Oliva  <aoliva@redhat.com>
1975
1976         * configure.in: Add mips64* support.
1977         * sysdeps/mips/bits/endian.h: Make it bi-endian.
1978         * sysdeps/mips/mipsel/bits/endian.h: Removed.
1979         * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
1980         * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
1981         * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
1982         * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
1983         * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
1984         * sysdeps/mips/Implies: Moved wordsize-32 to...
1985         * sysdeps/mips/mips32/Implies: New file.
1986         * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
1987         ret_NOERRNO): New.
1988         (ret, PSEUDO_END): Moved past END.
1989         (PSEUDO): Moved to...
1990         * sysdeps/unix/mips/mips32/sysdep.h: New file.
1991         * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
1992         * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
1993         * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
1994         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
1995         * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
1996
1997         * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
1998         Re-introduce ENTRY.
1999
2000 2003-03-28  Thorsten Kukuk  <kukuk@suse.de>
2001
2002         * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
2003         * inet/test-ifaddrs.c: Allow AF_PACKET.
2004         * sysdeps/unix/sysv/linux/kernel-features.h: Add
2005         __ASSUME_NETLINK_SUPPORT.
2006
2007 2003-03-28  Ulrich Drepper  <drepper@redhat.com>
2008
2009         * elf/vismain.c (do_test): Comment out tests which fail in the moment.
2010
2011 2003-03-26  H.J. Lu  <hjl@gnu.org>
2012
2013         * elf/vismod.h (getvarlocal1): Return const char **.
2014         (getvarinmod1): Likewise.
2015         (getvaritcpt1): Likewise.
2016         (getvarlocal2): Likewise.
2017         (getvarinmod2): Likewise.
2018         (getvaritcpt2): Likewise.
2019         (getvaritcpt3): Likewise.
2020         * elf/vismain.c (do_test): Adjusted.
2021         * elf/vismod1.c (getvarlocal1): Return address.
2022         (getvarinmod1): Likewise.
2023         (getvaritcpt1): Likewise.
2024         * elf/vismod2.c (getvarlocal2): Likewise.
2025         (getvarinmod2): Likewise.
2026         (getvaritcpt2): Likewise.
2027         * elf/vismod3.c (getvaritcpt3): Likewise.
2028
2029 2003-03-28  Roland McGrath  <roland@redhat.com>
2030
2031         * elf/vismain.c (do_test): Print both addresses when they don't match.
2032
2033         * scripts/abilist.awk: If given -v filename_regexp and/or -v
2034         libname_regexp when parsing names, then produce output only
2035         for those matching the given regexps.  In combine mode, save all
2036         stanzas for a final sorting by stanza header at the end.
2037         Emit a blank line between stanzas.
2038
2039         * scripts/abilist.awk: When given -v combine=1, do parse_names and
2040         emit a single output stream with lib name in stanza header lines.
2041
2042         * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
2043
2044 2003-03-27  Roland McGrath  <roland@redhat.com>
2045
2046         * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
2047         (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
2048
2049 2003-03-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2050
2051         * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
2052         Return old value. Make asm output reg constraint earlyclobber.
2053         Renamed from...
2054         (__arch_compare_and_exchange_8_acq): ... this.
2055         (__arch_compare_and_exchange_val_16_acq):
2056         Return old value. Make asm output reg constraint earlyclobber.
2057         Renamed from...
2058         (__arch_compare_and_exchange_16_acq): ... this.
2059         (__arch_compare_and_exchange_val_32_acq):
2060         Return old value. Make asm output reg constraint earlyclobber.
2061         Renamed from...
2062         (__arch_compare_and_exchange_32_acq): ... this.
2063         (__arch_compare_and_exchange_val_64_acq):
2064         Renamed from...
2065         (__arch_compare_and_exchange_64_acq): ... this.
2066         (atomic_exchange_and_add): Use local variables and
2067         __arch_compare_and_exchange_val_64_acq.
2068         (atomic_add): Likewise.
2069         (atomic_add_negative, atomic_add_zero): Use local variables.
2070
2071 2003-03-28  Alexandre Oliva  <aoliva@redhat.com>
2072
2073         * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
2074
2075 2003-03-27  Ulrich Drepper  <drepper@redhat.com>
2076
2077         * Makefile: Remove libmd5crypt goal.
2078
2079 2003-03-25  Jakub Jelinek  <jakub@redhat.com>
2080
2081         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
2082         special handling of relocations against local symbols.
2083
2084 2003-03-27  Steven Munroe  <sjmunroe@us.ibm.com>
2085
2086         * sysdeps/powerpc/bits/atomic.h
2087         (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
2088         [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
2089         Define PPC64 specific version.
2090         [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
2091         Change (mem) constraint to "b".
2092         [__powerpc64__] (__arch_atomic_exchange_and add_64):
2093         Replace addi with add. Change (value) contraint to "r".
2094         Change (mem) constraint to "b".
2095         [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
2096         (__arch_atomic_exchange_32): Change (mem) constraint to "b".
2097         (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
2098         (__arch_atomic_decrement_if_positive_32): New macro.
2099         (atomic_decrement_if_positive): Use __arch* macros.
2100
2101 2003-03-27  Jakub Jelinek  <jakub@redhat.com>
2102
2103         * sysdeps/ia64/fpu/libm-test-ulps: Update.
2104
2105 2003-03-27  Roland McGrath  <roland@redhat.com>
2106
2107         * scripts/rpm2dynsym.sh: New file.
2108         * Makefile (distribute): Add it.
2109
2110 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
2111
2112         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
2113         ar.unat before returning.  Add missing .mem.offset directives
2114         to ensure file gets assembled without warnings.
2115         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
2116
2117 2003-03-27  Jakub Jelinek  <jakub@redhat.com>
2118
2119         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
2120         Return -1 instead of 0 if clock_getres failed.
2121
2122 2003-03-27  Roland McGrath  <roland@redhat.com>
2123
2124         * scripts/abilist.awk: If variable `parse_names' is set, grok the file
2125         header lines and write out foo.symlist files for each foo.so.NN listed.
2126
2127         * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
2128         This symbol is exported, and we don't want to hide it.
2129         Add libc_hidden_proto instead.
2130         (_IO_file_jumps): Add libc_hidden_proto.
2131         * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
2132         Remove INTVARDEF.
2133         * libio/fileops.c (_IO_file_jumps): Likewise.
2134         * libio/stdfiles.c: Don't use INTUSE on them.
2135         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
2136         * libio/iofopen.c (__fopen_internal): Likewise.
2137         * libio/freopen.c (freopen): Likewise.
2138         * libio/freopen64.c (freopen64): Likewise.
2139         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
2140
2141         * Makerules (check-abi) [$(enable-check-abi) = warn]:
2142         Ignore exit status from diff.
2143         * configure.in (enable_check_abi): Document possible value "warn".
2144         Change default to no for now.
2145         * configure: Regenerated.
2146
2147         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
2148         macro calls and a #include <stub-tag.h> at the end.
2149         * Makerules ($(objpfx)stubs): Tweak sed commands.
2150
2151         * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
2152         caller column for *xattr syscalls, since they are in sysdeps/generic.
2153
2154         * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
2155         * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
2156
2157 2003-03-26  Roland McGrath  <roland@redhat.com>
2158
2159         * Makerules (check-abi-config): Use /thread instead of /tls when
2160         use-thread and not just use-tls is set.
2161
2162         * Makerules (update-abi): Put quotes around $(update-abi-config).
2163
2164         * elf/Makefile (check-abi): Depend on check-abi-ld.
2165         (update-abi): Depend on update-abi-ld.
2166
2167 2003-03-26  GOTO Masanori  <gotom@debian.or.jp>
2168
2169         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
2170         do not check for errors (unless testing for 32bit variant).
2171         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
2172
2173 2003-03-27  Philip Blundell  <philb@gnu.org>
2174
2175         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
2176         unconditional mov.  Remove nop.
2177
2178         * sysdeps/unix/sysv/linux/kernel-features.h
2179         (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
2180         * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
2181         when __ASSUME_VFORK_SYSCALL is defined.
2182         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
2183         __ASSUME_MMAP2_SYSCALL.
2184         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
2185         __ASSUME_REALTIME_SIGNALS.
2186
2187 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
2188
2189         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
2190         only if DL_NO_COPY_RELOCS is not defined.
2191         * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
2192
2193 2003-03-26  Roland McGrath  <roland@redhat.com>
2194
2195         * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
2196         SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
2197         * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
2198         (sysdep_routines): Add stub-syscalls.
2199         ($(objpfx)stub-syscalls.c): New target.
2200         (generated): Add stub-syscalls.c.
2201
2202         * tls.make.c: Also define use-tls according to USE_TLS macro.
2203
2204 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
2205
2206         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
2207         no-op padding element.
2208         * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
2209         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
2210         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
2211         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2212
2213 2003-03-26  GOTO Masanori  <gotom@debian.or.jp>
2214
2215         * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
2216         condition check for the return value of getgroups32.
2217
2218 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
2219
2220         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
2221         Fix a typo.
2222         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
2223         PSEUDO_END_NOERRNO): Define.
2224         * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
2225         Define to PSEUDO_END.
2226
2227 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
2228
2229         * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
2230
2231 2003-03-25  Jiro SEKIBA  <jir@yamato.ibm.com>
2232
2233         * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
2234         * iconvdata/bug-iconv4.c: New file.
2235         * iconvdata/Makefile (tests): Add bug-iconv4.
2236
2237 2003-03-25  H.J. Lu  <hjl@gnu.org>
2238
2239         * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
2240         symbols twice.
2241         (_dl_lookup_versioned_symbol): Likewise.
2242
2243 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
2244
2245         * csu/tst-atomic.c (do_test): Add some new
2246         atomic_compare_and_exchange_val_acq, atomic_add_zero,
2247         atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
2248         * include/atomic.h (atomic_add_negative, atomic_add_zero):
2249         Prefix local variable so that it doesn't clash with the one
2250         in atomic_exchange_and_add.
2251         * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
2252         pointers.
2253         (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
2254         * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
2255         value into register.
2256         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
2257         Cast newval to long.
2258         * sysdeps/x86_64/bits/atomic.h
2259         (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
2260         long.
2261         (atomic_exchange): Cast newvalue to long if sizeof == 8.
2262         (atomic_exchange_and_add): Cast value to long if sizeof == 8.
2263         (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
2264         (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
2265
2266 2003-03-21  Martin Schwidefsky  <schwidefskyde.ibm.com>
2267
2268         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
2269         bit from backtrace addresses.
2270
2271 2003-03-21  Andreas Schwab  <schwab@suse.de>
2272
2273         * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
2274         __chown symbols.
2275
2276 2003-03-25  Roland McGrath  <roland@redhat.com>
2277
2278         * config.make.in (enable-check-abi): New variable from configure.
2279         * configure.in (enable_check_abi): New substituted variable,
2280         controlled by --{enable,disable}-check-abi (default yes).
2281         * configure: Regenerated.
2282         * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
2283         on check-abi dependency.
2284
2285 2003-03-26  Andreas Schwab  <schwab@suse.de>
2286
2287         * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
2288         * include/atomic.h: Likewise.
2289
2290         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
2291
2292 2003-03-25  Roland McGrath  <roland@redhat.com>
2293
2294         * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
2295         (__arch_atomic_exchange_64): New macro.
2296         (atomic_exchange): Use them.
2297         (__arch_atomic_exchange_and_add_32): New macro.
2298         (__arch_atomic_exchange_and_add_64): New macro.
2299         (atomic_exchange_and_add): Use them.
2300         Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
2301
2302 2003-03-25  Alexandre Oliva  <aoliva@redhat.com>
2303
2304         * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
2305         Define.
2306         * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
2307         ISA tests.
2308         (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
2309         (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
2310         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
2311         to decide whether to add padding.
2312         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
2313         to decide whether to add padding.
2314         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
2315         old_kernel_sigaction): Likewise.
2316
2317 2003-03-25  Ulrich Drepper  <drepper@redhat.com>
2318
2319         * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
2320         atomic_add_zero were supposed to do.
2321         * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
2322         to x86 behavior.
2323
2324         * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
2325         This matches the new timer implementation.
2326         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
2327         Likewise.
2328         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
2329         Likewise.
2330         * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
2331         timer info for what the kernel provides these days.
2332         (struct sigevent): Add _tid field.
2333         Define SIGEV_THREAD_ID.
2334         Remove struct __pthread_attr_s forward declaration.
2335         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
2336         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
2337         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
2338         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2339
2340         * Versions.def (librt): Add GLIBC_2.3.3.
2341
2342         * abilist/libpthread.abilist: Update for nptl.
2343
2344 2003-03-24  Jon Grimm  <jgrimm@us.ibm.com>
2345
2346         * inet/netinet/in.h: Add IPPROTO_SCTP.
2347
2348 2003-03-24  Ulrich Drepper  <drepper@redhat.com>
2349
2350         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
2351
2352 2003-03-24  Philip Blundell  <philb@gnu.org>
2353
2354         * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
2355         Remove a1 from clobber list.
2356
2357 2003-03-24  Ulrich Drepper  <drepper@redhat.com>
2358
2359         * timezone/antarctica: Update from tzdata2003a.
2360         * timezone/asia: Likewise.
2361         * timezone/australasia: Likewise.
2362         * timezone/europe: Likewise.
2363         * timezone/iso3166.tab: Likewise.
2364         * timezone/northamerica: Likewise.
2365         * timezone/southamerica: Likewise.
2366         * timezone/zone.tab: Likewise.
2367
2368 2003-03-24  Steven Munroe  <sjmunroe@us.ibm.com>
2369
2370         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
2371
2372 2003-03-23  Ulrich Drepper  <drepper@redhat.com>
2373
2374         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
2375         unwanted expansion by definining to ret.  Patch by Ian Wienand.
2376
2377         * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
2378         the parameter description to denote no error checking.  Generate
2379         appropriate pseudo asm code.
2380         * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
2381         * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
2382         getpgrp, and getppid with 'E'.
2383         * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
2384         PSEUDO_END_NOERRNO, and ret_NOERRNO.
2385         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
2386         * sysdeps/unix/sysdep.h: Likewise.
2387         * sysdeps/unix/alpha/sysdep.h: Likewise.
2388         * sysdeps/unix/sparc/sysdep.h: Likewise.
2389         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
2390         * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
2391         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
2392         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
2393         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
2394         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
2395         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
2396         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2397         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
2398         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
2399         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2400
2401 2003-03-23  Roland McGrath  <roland@redhat.com>
2402
2403         * Makeconfig (+includes): Don't use $(last-includes).
2404
2405 2003-03-22  Alexandre Oliva  <aoliva@redhat.com>
2406
2407         * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
2408         * sysdeps/unix/sysv/linux/configure: Rebuilt.
2409
2410 2003-03-23  Jakub Jelinek  <jakub@redhat.com>
2411
2412         * sysdeps/alpha/fpu/libm-test-ulps: Update.
2413         * sysdeps/arm/libm-test-ulps: Update.
2414         * sysdeps/hppa/fpu/libm-test-ulps: Update.
2415         * sysdeps/ia64/fpu/libm-test-ulps: Update.
2416         * sysdeps/mips/fpu/libm-test-ulps: Update.
2417         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2418         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2419         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2420         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
2421         * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
2422         * sysdeps/s390/fpu/libm-test-ulps: Update.
2423         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2424
2425 2003-03-22  Roland McGrath  <roland@redhat.com>
2426
2427         * include/atomic.h: Put parens around all macro arguments.
2428         (__atomic_val_bysize, __atomic_bool_bysize): New macros.
2429         (atomic_compare_and_exchange_val_acq): Use it.
2430         (atomic_compare_and_exchange_bool_acq): Likewise.
2431         (atomic_increment_and_test): Invert sense of test.
2432         (atomic_decrement_and_test): Likewise.
2433         * csu/tst-atomic.c: Update those tests to match.
2434
2435 2003-03-22  Jakub Jelinek  <jakub@redhat.com>
2436
2437         * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
2438         Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
2439         (atomic_compare_and_exchange_bool_acq): Add comment.  Don't use
2440         __oldval variable in the macro, since it might be macro argument.
2441         (atomic_decrement_if_positive): Initialize __memp, remove setting
2442         of non-existent variable.
2443         (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
2444         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
2445         using atomic_compare_and_exchange_val_acq.
2446         (atomic_decrement_if_positive, atomic_bit_test_set): Define.
2447         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
2448         Renamed from...
2449         (__arch_compare_and_exchange_bool_8_acq): ... this.
2450         (__arch_compare_and_exchange_val_16_acq): Renamed from...
2451         (__arch_compare_and_exchange_bool_16_acq): ... this.
2452         (__arch_compare_and_exchange_val_32_acq): Return old value.  Renamed
2453         from...
2454         (__arch_compare_and_exchange_bool_32_acq): ... this.
2455         (__arch_compare_and_exchange_val_64_acq): Return old value.  Renamed
2456         from...
2457         (__arch_compare_and_exchange_bool_64_acq): ... this.
2458         (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
2459         variables types instead of assuming int.
2460         Change prefix of local variables to __arch.
2461         * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
2462         Remove.
2463         (atomic_compare_and_exchange_val_acq,
2464         atomic_compare_and_exchange_bool_acq): Define.
2465
2466         * csu/tst-atomic.c: New test.
2467         * csu/tst-atomic-long.c: New test.
2468         * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
2469
2470         * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
2471
2472         * sysdeps/s390/Versions: Add trailing newline.
2473
2474         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
2475         if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
2476
2477 2003-03-22  Andreas Schwab  <schwab@suse.de>
2478
2479         * sysdeps/m68k/fpu/libm-test-ulps: Update.
2480
2481         * sysdeps/m68k/m68020/bits/atomic.h: New file.
2482         * sysdeps/m68k/m68020/atomicity.h: Removed.
2483
2484 2003-03-22  Alexandre Oliva  <aoliva@redhat.com>
2485
2486         * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
2487         data structures and macros.  Protect from multiple inclusion.
2488
2489         * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
2490         typo in #if test.
2491
2492 2003-03-21  Andreas Jaeger  <aj@suse.de>
2493
2494         * sysdeps/i386/fpu/libm-test-ulps: Update.
2495
2496         * math/libm-test.inc (tgamma_test): Recompute some constants with
2497         36 digits precision.
2498         (lgamma_test): Likewise.
2499         (ccos_test): Likewise.
2500         (ccosh_test): Likewise.
2501         (clog10_test): Likewise.
2502         (csin_test): Likewise.
2503         (csinh_test): Likewise.
2504         (ctan_test): Likewise.
2505         (ctanh_test): Likewise.
2506
2507 2003-03-19  Jakub Jelinek  <jakub@redhat.com>
2508
2509         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
2510
2511 2003-03-21  Roland McGrath  <roland@redhat.com>
2512
2513         * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
2514         constraint to permit non-constant BIT argument.
2515         (atomic_bit_test_set): Likewise.
2516         * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
2517         (atomic_bit_set): Likewise.  Use 1UL in case that BIT might be >= 32.
2518         For quadword case, use "i" constraint if __builtin_constant_p and < 32
2519         or "r" constraint otherwise.
2520
2521         * configure.in: Move AC_PROG_CC and other program-finding before all
2522         the version checks.
2523         * configure: Regenerated.
2524
2525 2003-03-21  Alexandre Oliva  <aoliva@redhat.com>
2526
2527         * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
2528         unaligned copying of 8-15 bytes.  From Chris Demetriou
2529         <cgd@broadcom.com>.  Fix label names.
2530         * sysdeps/mips/mips64/memset.S: Fix label names.  Make similar
2531         change as to memcpy.S.
2532         * sysdeps/mips/memcpy.S: Formatting changes.
2533         * sysdeps/mips/memset.S: Likewise.
2534
2535 2003-03-21  Roland McGrath  <roland@redhat.com>
2536
2537         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
2538
2539 2003-03-21  Alexandre Oliva  <aoliva@redhat.com>
2540
2541         * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
2542         * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
2543
2544 2003-03-21  Roland McGrath  <roland@redhat.com>
2545
2546         * sysdeps/i386/i486/bits/atomic.h
2547         (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
2548         version of the macro to avoid compile-time warnings.
2549         [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
2550         (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
2551         (atomic_increment, atomic_decrement): Likewise.
2552
2553 2003-03-21  Ulrich Drepper  <drepper@redhat.com>
2554
2555         * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
2556         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2557
2558 2003-03-21  Roland McGrath  <roland@redhat.com>
2559
2560         * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
2561
2562 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
2563
2564         * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
2565         atomic_compare_and_exchange_val_rel,
2566         atomic_compare_and_exchange_bool_acq, and
2567         atomic_compare_and_exchange_bool_rel instead of
2568         atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
2569         * sysdeps/i386/i486/bits/atomic.h: Define
2570         __arch_compare_and_exchange_val_*_acq instead of
2571         __arch_compare_and_exchange_*_acq.
2572         * sysdeps/x86_64/bits/atomic.h: Likewise.
2573         * sysdeps/ia64/bits/atomic.h: Define
2574         __arch_compare_and_exchange_bool_*_acq instead of
2575         __arch_compare_and_exchange_*_acq.
2576         * sysdeps/powerpc/bits/atomic.h: Likewise.
2577         * sysdeps/s390/bits/atomic.h: Likewise.
2578         * gmon/mcount.c: Adjust for new form of compare&exchange macros.
2579         * malloc/set-freeres.c: Likewise.
2580         * nscd/cache.c: Likewise.
2581         * stdlib/cxa_finalize.c: Likewise.
2582         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
2583
2584 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
2585
2586         * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
2587         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
2588         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
2589
2590         * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
2591         into high and low halves on n64.
2592         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2593         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2594         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2595
2596 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
2597
2598         * include/atomic.h (atomic_decrement_if_positive): Adjust for the
2599         correct atomic_compare_and_exchange_acq semantics.
2600
2601 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
2602
2603         * sysdeps/mips/ieee754.h: Remove excess #endif.
2604
2605 2003-03-20  Roland McGrath  <roland@redhat.com>
2606
2607         * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
2608         variable.  Remove superfluous memory clobber.
2609
2610         * include/atomic.h: Syntax braino fix.
2611
2612         * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
2613         in decimal.  Don't bail if niced at start.  Just check that nice call
2614         bumps the total at all.
2615
2616 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
2617
2618         * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
2619         including pc, gp, sp and fp, as long long.
2620         * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
2621         * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
2622         Add gp argument, and set gp in the jmpbuf to it.
2623         * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
2624
2625 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
2626
2627         * include/atomic.h: Define atomic_exchange and
2628         atomic_decrement_if_positive if not already defined.  Add some
2629         __builtin_expect.
2630         * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
2631         * sysdeps/x86_64/bits/atomic.h: Likewise.
2632         * sysdeps/ia64/bits/atomic.h: Pretty printing.  Define atomic_exchange.
2633         * sysdeps/powerpc/bits/atomic.h: Pretty printing.  Define
2634         atomic_exchange, atomic_exchange_and_add, and
2635         atomic_decrement_if_positive
2636
2637 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
2638
2639         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
2640         with a single instruction.
2641
2642         * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
2643         properly for n64.
2644         (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
2645         type.
2646         (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
2647         Word before comparing with gotsym.  Take reloc_addr argument as
2648         void*.  Remove the code added for the compiler to drop any
2649         alignment assumptions.
2650
2651 2003-03-19  Ulrich Drepper  <drepper@redhat.com>
2652
2653         * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
2654         * include/atomic.h: New file.
2655         * sysdeps/i386/i486/bits/atomic.h: New file.
2656         * sysdeps/x86_64/bits/atomic.h: New file.
2657         * sysdeps/s390/bits/atomic.h: New file.
2658         * sysdeps/sh/bits/atomic.h: New file.
2659         * sysdeps/ia64/bits/atomic.h: New file.
2660         * sysdeps/powerpc/bits/atomic.h: New file.
2661         * sysdeps/generic/bits/atomic.h: New file.
2662         * sysdeps/i386/i486/atomicity.h: Removed.
2663         * sysdeps/x86_64/atomicity.h: Removed.
2664         * sysdeps/s390/s390-32/atomicity.h: Removed.
2665         * sysdeps/s390/s390-64/atomicity.h: Removed.
2666         * sysdeps/ia64/atomicity.h: Removed.
2667         * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
2668         * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
2669         * elf/dl-profile.c: Use atomic.h instead of atomicity.h.  Adjust
2670         use of macros from atomicity.h to new names and semantics.
2671         * gmon_mcount.c: Likewise.
2672         * malloc/set-freeres.c: Likewise.
2673         * nscd/cache.c: Likewise.
2674         * stdlib/cxa_finalize.c: Likewise.
2675         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
2676
2677 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
2678
2679         * sysdeps/mips/ieee754.h: New file, suitable to replace both
2680         ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
2681         mips-specific for now.
2682
2683 2003-03-19  Ulrich Drepper  <drepper@redhat.com>
2684
2685         * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
2686         hexdigits correctly.  Reported by Fred Tydeman <tydeman@tybor.com>.
2687         * stdlib/tst-strtod.c: Add test for the bug.
2688
2689         * posix/tst-nice.c (do_test): Remove invalid of return value.
2690         Don't run test if initial level != 0.
2691
2692 2003-03-19  Amos Waterland  <apw@us.ibm.com>
2693
2694         * posix/tst-nice.c: New file.
2695         * posix/Makefile (tests): Add tst-nice.
2696
2697 2003-03-18  Roland McGrath  <roland@redhat.com>
2698
2699         * abilist: New directory of libfoo.abilist files maintained using
2700         scripts/merge-abilist.awk and "make update-abi" rules.
2701         * Makefile (distribute): Add abilist/*.abilist.
2702         * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
2703         Depend on check-abi.
2704
2705         * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
2706         * configure: Regenerated.
2707
2708         * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
2709
2710 2003-03-18  Ulrich Drepper  <drepper@redhat.com>
2711
2712         * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
2713         correctly.
2714
2715 2003-03-18  Steven Munroe  <sjmunroe@us.ibm.com>
2716
2717         * sysdeps/powerpc/powerpc64/memcpy.S: New file.
2718
2719 2003-03-18  Ulrich Drepper  <drepper@redhat.com>
2720
2721         * Versions.def: Add GLIBC_2.3.3 for libpthread.
2722
2723 2003-03-17  Ulrich Drepper  <drepper@redhat.com>
2724
2725         * sysdeps/generic/libc-start.c [!SHARED &&
2726         !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
2727
2728 2003-03-17  Roland McGrath  <roland@redhat.com>
2729
2730         * include/ctype.h: Revert last change.
2731
2732 2003-03-17  Ulrich Drepper  <drepper@redhat.com>
2733
2734         * argp/tst-argp1.c: Use test-skeleton.c.
2735         * locale/tst-C-locale.c: Likewise.
2736
2737 2003-03-17  Alexandre Oliva  <aoliva@redhat.com>
2738
2739         * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
2740         * sysdeps/mips/mips64/n64/Implies: New file.
2741         * sysdeps/mips/mips64/n64/Makefile: New file.
2742         * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
2743         * sysdeps/mips/mips64/n32/Implies: New file.
2744         * sysdeps/mips/mips64/n32/Makefile: New file.
2745         * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
2746         * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
2747         * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
2748         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
2749         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
2750         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
2751         * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
2752         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
2753         * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
2754         * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
2755         * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
2756         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
2757         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
2758         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
2759
2760         * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
2761         lib64 for mips64/n64 and lib32 for mips64/n32.
2762         (ldd_rewrite_script): Needed for all mips64 configurations.
2763         * sysdeps/unix/sysv/linux/configure: Rebuilt.
2764         * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
2765         * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
2766
2767         * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
2768         well.
2769
2770         * sysdeps/unix/sysv/linux/mips/configure.in: New.  Pre-process
2771         asm/unistd.h into asm-unistd.h.
2772         * sysdeps/unix/sysv/linux/mips/configure: Generated.
2773         * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
2774         of syscall list.
2775         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
2776         * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
2777         asm/unistd.h.
2778
2779         * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
2780         * sysdeps/unix/sysv/linux/mips/ptrace.c: New file.  Use long
2781         long type for registers on n32.
2782
2783         * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
2784         3 ABIs.
2785         * sysdeps/mips/mips64/gmp-mparam.h: New file.  Define
2786         BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
2787         * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
2788         (__sigsetjmp_aux): Use them.  Adjust for all 3 ABIs.
2789         * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
2790         * sysdeps/unix/mips/brk.S: Likewise.
2791         * sysdeps/unix/mips/sysdep.S: Likewise.
2792         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
2793         * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
2794         * sysdeps/mips/sys/ucontext.h: Likewise.
2795         * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
2796         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
2797         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
2798         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
2799         * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
2800         * sysdeps/mips/mips64/setjmp.S: Likewise.
2801         * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
2802         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
2803         64-bit types.
2804
2805 2003-03-16  Ulrich Drepper  <drepper@redhat.com>
2806
2807         * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
2808         not at function level.
2809         * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
2810
2811 2003-03-15  Roland McGrath  <roland@redhat.com>
2812
2813         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
2814         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
2815         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
2816         * nis/nis_table.c (__create_ib_request): Likewise.
2817
2818         * posix/fnmatch_loop.c: Add casts for signedness.
2819         * nss/nss_files/files-hosts.c: Likewise.
2820         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2821         * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
2822         * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
2823
2824         * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
2825         get errors into the log file.
2826         (libc_cv_broken_visibility_attribute): Likewise.
2827         (libc_cv_broken_alias_attribute): Likewise.
2828         (libc_cv_asm_weak_directive): Likewise.
2829         (libc_cv_need_minus_P): Likewise.
2830         (libc_cv_dot_text): Likewise.
2831         (libc_cv_asm_global_directive): Likewise.
2832         (libc_cv_asm_type_prefix): Likewise.
2833         * configure: Regenerated.
2834
2835         * nscd/cache.c (cache_search): Give first arg type `request_type'.
2836         * nscd/nscd.h: Update decl.
2837
2838         * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
2839         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2840         * elf/dl-close.c (_dl_close): Likewise.
2841         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
2842         * io/fts.c (fts_build): Likewise.
2843         * elf/cache.c (add_to_cache): Likewise.
2844         * locale/programs/locarchive.c (show_archive_content): Likewise.
2845
2846         * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
2847
2848         * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
2849         happy.
2850         (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
2851
2852 2003-03-15  Ulrich Drepper  <drepper@redhat.com>
2853
2854         * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
2855         code for most parts.
2856
2857 2003-03-15  Roland McGrath  <roland@redhat.com>
2858
2859         * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
2860         * sysdeps/unix/sysv/linux/system.c: ... here.
2861         (FORK): Don't #define if already #define'd.
2862         * sysdeps/unix/sysv/linux/s390/system.c: File removed.
2863         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
2864         (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
2865
2866         * dlfcn/tst-dlinfo.c: New file.
2867         * dlfcn/Makefile (tests): Add tst-dlinfo.
2868         ($(objpfx)tst-dlinfo): New target.
2869
2870         * dlfcn/dlinfo.c: New file.
2871         * dlfcn/Makefile (libdl-routines): Add it.
2872         * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
2873         * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
2874         [__USE_GNU] (RTLD_DI_*): New enum constants.
2875         [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
2876         * elf/dl-load.c (cache_rpath): New inline function.
2877         (_dl_map_object): Use it.
2878         (_dl_rtld_di_serinfo): New function.
2879         * sysdeps/generic/ldsodefs.h: Declare it.
2880         * elf/Versions (ld: GLIBC_PRIVATE): Add it.
2881
2882         * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
2883         (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
2884         (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
2885         (__libc_start_main): Just call the generic one for most of the work.
2886
2887         * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
2888         static function by that name instead of BP_SYM (__libc_start_main).
2889         [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
2890         [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
2891         [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
2892
2893         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
2894         Use this macro for extra AT_* cases.
2895         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
2896         New macro, guts from ...
2897         (__aux_init_cache): ... here, function removed.
2898         (DL_PLATFORM_INIT): Don't define this.
2899
2900         * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
2901         * sysdeps/powerpc/powerpc64/memset.S: Likewise.
2902
2903         * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
2904
2905 2003-03-14  Roland McGrath  <roland@redhat.com>
2906
2907         * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
2908
2909 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
2910
2911         * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
2912
2913         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
2914         sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
2915
2916 2003-03-14  Alexandre Oliva  <aoliva@redhat.com>
2917
2918         * sysdeps/mips/fpu/bits/mathdef.h: New.
2919         (__NO_LONG_DOUBLE_MATH): Define for o32.
2920
2921         * sysdeps/mips/sys/asm.h: Formatting changes.
2922         (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
2923         (CPADD): Define for all of them.
2924         (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
2925         SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
2926         NARGSAVE): Define per ABI spec.
2927         (END): Don't redefine.
2928         (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
2929         LONG_SRAV): Remove duplicate definitions.
2930         (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
2931         PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
2932         PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
2933         (PTR_LA): Define for all 3 ABIs.
2934
2935         * sysdeps/mips/dl-machine.h: Include sys/asm.h.
2936         (elf_machine_matches_host): Prevent linking of o32 and n32
2937         together.
2938         (elf_machine_dynamic): Document assumption on $gp.
2939         (STRINGXP, STRINGXV, STRINGV_): New macros.
2940         (elf_machine_load_address): Use them to stringize PTR_LA and
2941         PTR_SUBU.
2942         (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
2943         ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
2944         (_dl_runtime_resolve): Adjust it for all 3 ABIs.
2945         (__dl_runtime_resolve): Cast the symtab initializer to the
2946         right type.
2947         (RTLD_START): Use it.  Adjust it for all 3 ABIs.
2948         (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
2949         Handle 64-bit R_MIPS_REL composite relocation and accept
2950         R_MIPS_64 relocations to shift addend size to 64 bits.
2951         Document assumption regarding local GOT entries.  Document
2952         backward-compatibility departing from the ABI behavior in
2953         applying relocations that reference section symbols, no longer
2954         used.  Support relocations to mis-aligned offsets.
2955         * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
2956
2957         * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
2958
2959         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
2960         (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
2961         * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
2962         restore_rt functions.  Use them.
2963
2964         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
2965         .set mips2 on new abis.
2966
2967 2003-03-13  Ulrich Drepper  <drepper@redhat.com>
2968
2969         * posix/getconf.c: Recognize POSIX2_SYMLINKS.
2970         * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
2971         * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
2972         * sysdeps/posix/pathconf.c: Likewise.
2973         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
2974         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2975         * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
2976
2977         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
2978         words.
2979
2980 2003-03-14  Alexandre Oliva  <aoliva@redhat.com>
2981
2982         * include/gmp.h: Include/gmp-mparam.h.
2983         * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
2984         gmp-impl.h.
2985
2986         * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
2987         ELF_MACHINE_NO_RELA is set.
2988         * elf/rtld.c (dl_main): No prelink support for REL-only.
2989
2990         * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
2991         FLAG_MIPS64_LIBN64): Define.
2992         * elf/cache.c (print_entry): Handle mips64 n32 and n64.
2993
2994         * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
2995         * sysdeps/mips/memset.S: Likewise.
2996         * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
2997         depending on the ABI.
2998
2999         * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
3000         Don't .set mips2 on new abi.
3001         (compare_and_swap): Likewise.  Support 64-bit longs on n64.
3002
3003         * stdlib/fpioconst.h: Include gmp.h with angle brackets.
3004
3005 2003-03-13  Roland McGrath  <roland@redhat.com>
3006
3007         * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
3008         found.  Reported by Alexandre Oliva <aoliva@redhat.com>.
3009
3010 2003-03-13  Alexandre Oliva  <aoliva@redhat.com>
3011
3012         * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
3013         literals long long.
3014         * stdlib/fpioconst.c: Likewise.
3015         * stdlib/strtod.c: Likewise.
3016
3017         * sysdeps/mips/add_n.S: Use L macro for local labels.
3018         * sysdeps/mips/addmul_1.S: Likewise.
3019         * sysdeps/mips/lshift.S: Likewise.
3020         * sysdeps/mips/memcpy.S: Likewise.
3021         * sysdeps/mips/memset.S: Likewise.
3022         * sysdeps/mips/mul_1.S: Likewise.
3023         * sysdeps/mips/rshift.S: Likewise.
3024         * sysdeps/mips/sub_n.S: Likewise.
3025         * sysdeps/mips/submul_1.S: Likewise.
3026         * sysdeps/mips/mips64/add_n.S: Likewise.
3027         * sysdeps/mips/mips64/addmul_1.S: Likewise.
3028         * sysdeps/mips/mips64/lshift.S: Likewise.
3029         * sysdeps/mips/mips64/mul_1.S: Likewise.
3030         * sysdeps/mips/mips64/rshift.S: Likewise.
3031         * sysdeps/mips/mips64/sub_n.S: Likewise.
3032         * sysdeps/mips/mips64/submul_1.S: Likewise.
3033         * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
3034         conventions.  Define END as in sys/asm.h.
3035         * sysdeps/unix/mips/sysdep.S: Likewise.
3036         * sysdeps/unix/mips/wait.S: Likewise.
3037         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
3038
3039         * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
3040         Cast shifted values that may be too narrow to mp_limb_t.
3041         * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
3042         Likewise.
3043         * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
3044         Likewise.
3045         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
3046         (__mpn_extract_long_double): Likewise.
3047         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
3048         (__mpn_construct_long_double): Likewise.
3049         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
3050         (__mpn_extract_long_double): Likewise.
3051         * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
3052         (__mpn_construct_long_double): Likewise.
3053
3054 2003-03-13  Roland McGrath  <roland@redhat.com>
3055
3056         * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
3057         entries in the map file match too.
3058
3059 2003-03-13  Guido Guenther  <agx@sigxcpu.org>
3060
3061         * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
3062         label .Lthread_start since current binutils don't allow branches
3063         to globally visible symbols.
3064
3065 2003-03-13  Jakub Jelinek  <jakub@redhat.com>
3066
3067         * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
3068         ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
3069         ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
3070         (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it.  Make syscall arguments
3071         clobbered by the syscall.
3072         (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
3073         ASM_ARGS_6): Change constraints from r to index of corresponding
3074         output register.
3075         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
3076         ptid and ctid to match kernel.
3077         * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
3078
3079 2003-03-12  Steven Munroe  <sjmunroe@us.ibm.com>
3080
3081         * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
3082         AC_DEFINE(PI_STATIC_AND_HIDDEN).  Not supported for PowerPC64.
3083         * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
3084
3085 2003-03-11  Roland McGrath  <roland@redhat.com>
3086
3087         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
3088         Check SYM_MAP rather than SYM as definedness check.
3089         Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
3090         Don't handle R_PPC64_REL24 reloc.
3091         Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
3092
3093         * sysdeps/powerpc/powerpc64/dl-machine.h
3094         [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
3095         block, so we cover all the TPREL16* flavors without 6 ||s.
3096         [USE_TLS] (elf_machine_tprel): New function.
3097         (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
3098         and handle TPREL16 relocs too.  Return rather than break for DTPREL64.
3099         Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
3100
3101 2003-03-11  Ralf Baechle  <ralf@linux-mips.org>
3102
3103         * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
3104         instead of jalr to invoke subroutine so restoring the $gp register
3105         will work properly.
3106
3107 2003-03-11  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3108
3109         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
3110         to __NR_pread if not defined.
3111         (__NR_pwrite64): Define to __NR_pwrite if not defined.
3112
3113 2003-03-11  Jakub Jelinek  <jakub@redhat.com>
3114
3115         * sysdeps/unix/sysv/linux/ia64/system.c: New file.
3116         * sysdeps/unix/sysv/linux/kernel-features.h
3117         (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
3118         kernel >= 2.5.64.
3119
3120 2003-03-11  Jakub Jelinek  <jakub@redhat.com>
3121
3122         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
3123         allocate space even for the trailing '/'.
3124         Reported by John Reiser <jreiser@BitWagon.com>.
3125
3126         * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
3127         ASM_CLOBBERS_6): Define.
3128         (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
3129         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
3130         to match IA-32 order.
3131         * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
3132
3133 2003-03-10  Steven Munroe  <sjmunroe@us.ibm.com>
3134
3135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
3136         Copy extra params for NPTL to registers used in clone syscall.
3137
3138 2003-03-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3139
3140         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
3141         call names for pread and pwrite.
3142
3143 2003-03-10  Roland McGrath  <roland@redhat.com>
3144
3145         * dlfcn/Makefile (libdl-routines): Add dladdr1.
3146         * dlfcn/dladdr1.c: New file.
3147         * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
3148         [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
3149         * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
3150         a const ElfNN_Sym ** to fill in.
3151         * include/dlfcn.h: Update decl.  Include <link.h>.
3152         * dlfcn/dladdr.c (dladdr): Update caller.
3153         * malloc/mtrace.c (tr_where): Likewise.
3154         * sysdeps/generic/elf/backtracesyms.c: Likewise.
3155         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
3156         * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
3157         * Versions.def (libdl): Define GLIBC_2.3.3 set.
3158
3159         * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
3160         assembler command.
3161         * sysdeps/unix/Makefile (compile-syscall): New variable.
3162         Pass -g0 to compiler for assembling syscall stubs from stdin.
3163
3164         * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
3165         (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
3166         Define these to do nothing.
3167
3168         * configure.in: New check for -g on .S files.
3169         * configure: Regenerated.
3170         * config.make.in (have-cpp-asm-debuginfo): New variable.
3171         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
3172         * Makeconfig (ASFLAGS): New variable, if undefined and
3173         $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
3174         * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
3175
3176 2003-03-09  Roland McGrath  <roland@redhat.com>
3177
3178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
3179         used by NPTL on new kernels.  From Paul Mackerras <paulus@samba.org>.
3180
3181 2003-03-09  Ulrich Drepper  <drepper@redhat.com>
3182
3183         * po/fi.po: Update from translation team.
3184         * po/ca.po: Likewise.
3185         * po/da.po: Likewise.
3186
3187 2003-03-08  Ulrich Drepper  <drepper@redhat.com>
3188
3189         * rt/tst-aio7.c (do_test): Change BYTES into a #define.
3190
3191 2003-03-07  Ulrich Drepper  <drepper@redhat.com>
3192
3193         * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
3194
3195         * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
3196
3197 2003-03-07  Roland McGrath  <roland@redhat.com>
3198
3199         * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
3200         * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
3201
3202 2003-03-04  Guido Guenther  <agx@sigxcpu.org>
3203
3204         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
3205         stubs, we have INLINE_SYSCALL.
3206         * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
3207         MAP_NONBLOCK.
3208
3209 2003-03-06  Roland McGrath  <roland@redhat.com>
3210
3211         * rt/tst-aio7.c (do_test): Revert last change.  Instead, give CB1
3212         permanent extent and add a comment about testing its implicit teardown.
3213
3214 2003-03-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3215
3216         * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
3217
3218 2003-03-05  Ulrich Drepper  <drepper@redhat.com>
3219
3220         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
3221         reversed __builtin_expect expectation.
3222
3223 2003-03-05  Roland McGrath  <roland@redhat.com>
3224
3225         * stdio-common/sscanf.c: Use prototype defn with ... syntax.
3226         * libio/swscanf.c: Likewise.
3227         * libio/swprintf.c: Likewise.
3228
3229 2003-03-04  Roland McGrath  <roland@redhat.com>
3230
3231         * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
3232         (elf_machine_rela): Always use RESOLVE_MAP, needed for
3233         R_PPC64_JMP_SLOT as well as TLS cases.
3234         (BIT_INSERT): Move parenthesis where it ought to have been.
3235         Reported by Steven Munroe <sjmunroe@us.ibm.com>.
3236
3237         * posix/confstr.c (confstr): Correct STRING_LEN values for
3238         _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
3239         break.  Reported by Alexandre Julliard <julliard@winehq.com>.
3240
3241 2003-03-04  Jakub Jelinek  <jakub@redhat.com>
3242
3243         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
3244
3245 2003-03-04  Ulrich Drepper  <drepper@redhat.com>
3246
3247         * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
3248         clone parameters.
3249
3250         * po/sv.po: Update from translation team.
3251
3252 2003-03-04  Andreas Jaeger  <aj@suse.de>
3253             Ulrich Drepper  <drepper@redhat.com>
3254
3255         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
3256
3257 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
3258
3259         * sysdeps/generic/dl-sysdep.h: Add double include protection.
3260
3261         * po/tr.po: Update from translation team.
3262
3263         * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
3264         are holes between the segments.  Only call mprotect to set
3265         proection to PROT_NONE if there are some.
3266
3267         * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
3268         Update comment.
3269
3270         * include/sched.h (__clone2): Use ... instead of adding all the
3271         new parameters.
3272
3273 2003-03-03  Roland McGrath  <roland@redhat.com>
3274
3275         * elf/dl-load.c (struct filebuf): Fix typo in last change.
3276
3277         * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
3278         PI_STATIC_AND_HIDDEN.
3279
3280 2003-03-03  Ian Wienand  <ianw@gelato.unsw.edu.au>
3281
3282         * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
3283         flags.
3284         * include/sched.h: Update clone2 prototype.
3285
3286 2003-03-03  Andreas Jaeger  <aj@suse.de>
3287
3288         * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
3289         (llrint): Use it to correct return type.
3290         (lrint): Likewise.
3291         (lround): Likewise.
3292         (llround): Likewise.
3293
3294 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
3295
3296         * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
3297         byte filebuf size.
3298
3299         * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
3300         if ccs parameter isn't valid.  Reported by Andreas Schwab.
3301
3302 2003-03-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3303
3304         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
3305         for system call numbers > 255.
3306         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
3307         INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
3308         INTERNAL_SYSCALL): Likewise.
3309         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
3310         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
3311         INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
3312         INTERNAL_SYSCALL): Likewise.
3313
3314 2003-03-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3315
3316         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
3317         array if it is the initial dtv.
3318
3319 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
3320
3321         * po/es.po: Update from translation team.
3322         * po/fr.po: Likewise.
3323         * po/gl.po: Likewise.
3324         * po/sk.po: Likewise.
3325         * po/sv.po: Likewise.
3326
3327         * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
3328         * misc/sys/mman.h: Add prototype for remap_file_pages.
3329         * sysdeps/generic/remap_file_pages.c: New file.
3330         * misc/Makefile (routines): Add remap_file_pages.
3331         * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
3332
3333         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
3334         and MAP_NONBLOCK.
3335         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
3336         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
3337         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
3338         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
3339         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
3340         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
3341         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
3342         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3343
3344 2003-03-03  Roland McGrath  <roland@redhat.com>
3345
3346         * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
3347         * sysdeps/ia64/dl-machine.h: Likewise.
3348         * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
3349         argument type.
3350         * sysdeps/ia64/dl-lookupcfg.h: Update decl.
3351
3352         * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
3353         * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
3354         * locale/Versions (libc: GLIBC_2.3): Move those to ...
3355         * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
3356         * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
3357         * Versions.def (libc): Add GLIBC_2.3.3 set.
3358
3359         * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
3360         * sysdeps/ia64/dl-machine.h: Update decl.
3361
3362 2003-03-03  Andreas Jaeger  <aj@suse.de>
3363
3364         * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
3365
3366 2003-03-02  Roland McGrath  <roland@redhat.com>
3367
3368         * scripts/abilist.awk: Reject data items with apparent 0 size.
3369
3370         * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
3371         after foo.* as if it were a duplicate.
3372
3373         * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
3374
3375 2003-03-02  Ulrich Drepper  <drepper@redhat.com>
3376
3377         * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
3378
3379         * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
3380         * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
3381         if not already defined.  Use SYSDEP_GETRES to allow other files to
3382         provide alternative implementations.
3383         * sysdeps/unix/sysv/linux/clock_getres.c: New file
3384         * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
3385         if not already defined.  Use SYSDEP_GETTIME to allow other files to
3386         provide alternative implementations.
3387         * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
3388         * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
3389         if not already defined.  Use SYSDEP_GETTIME to allow other files to
3390         provide alternative implementations.
3391         * sysdeps/unix/sysv/linux/clock_settime.c: New file.
3392         * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
3393         other files to provide alternative implementations.  Rearrange
3394         tests for invalid parameters.
3395         * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
3396         * sysdeps/unix/sysv/linux/sysconf.c: New file.
3397         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3398         __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
3399         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
3400         _POSIX_MONOTONIC_CLOCK.
3401
3402 2003-03-02  Roland McGrath  <roland@redhat.com>
3403
3404         * scripts/merge-abilist.awk: More checks for bogus input.
3405         Uniquify duplicate config names.
3406
3407         * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
3408
3409         * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
3410         from dl_reloc_overflow, make global.
3411         (__process_machine_rela): Update callers.
3412         * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
3413         Add attribute_hidden to __process_machine_rela decl.
3414         (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
3415
3416         * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
3417         variable.
3418
3419         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
3420         Don't use weak_extern for dl_rtld_map.  Instead check only if [SHARED].
3421         (elf_machine_rela): Clean up.
3422
3423         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
3424
3425         PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
3426         * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
3427         * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
3428         * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
3429         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
3430         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
3431         new relocs for TLS.
3432
3433         * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
3434         macros out of [SHARED].
3435         (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
3436
3437         * elf/elf.h: Define R_PPC_* relocs for TLS support.
3438         Clean up R_PPC64_* macro definition comments.
3439
3440         * configure.in: In "running configure fragment for" message,
3441         omit $srcdir from the name if we prepended it.
3442         * configure: Regenerated.
3443
3444         * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
3445         From Jakub Jelinek <jakub@redhat.com>.
3446
3447         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
3448         which duplicated the O_DIRECT defn.
3449
3450 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
3451
3452         * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
3453         random functions.
3454
3455 2003-03-01  Andreas Schwab  <schwab@suse.de>
3456
3457         * resolv/Makefile (tests): Don't depend on
3458         $(objpfx)mtrace-tst-leaks when cross compiling.
3459
3460         * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
3461         __libc_stack_end through GOT since it is a global symbol.
3462
3463 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
3464
3465         * argp/argp.h: Fix a typo.
3466         Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
3467
3468         * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
3469
3470 2003-02-27  Pat Rankin  <rankin@pactechdata.com>
3471
3472         * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
3473         char *.
3474         (get_subexp): Likewise.
3475
3476 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
3477
3478         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
3479
3480 2003-02-26  Steven Munroe  <sjmunroe@us.ibm.com>
3481
3482         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
3483
3484 2003-02-27  Roland McGrath  <roland@redhat.com>
3485
3486         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
3487         special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
3488         repeat it and avoids the test for the common case.
3489         Clean up and fix calculations for TLS relocs.
3490
3491         * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
3492         * sysdeps/powerpc/dl-tls.h: ... here.
3493         (TLS_TP_OFFSET): New macro.
3494
3495         * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
3496
3497 2003-02-27  Ulrich Drepper  <drepper@redhat.com>
3498
3499         * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
3500         code generation changes in recent gcc.
3501
3502 2003-02-26  Steven Munroe  <sjmunroe@us.ibm.com>
3503
3504         * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
3505         Rename argument to avoid symbol conflict.
3506
3507         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
3508         [__USE_GNU] (O_DIRECT): New macro.
3509
3510 2003-02-24  David Mosberger  <davidm@hpl.hp.com>
3511
3512         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
3513         unwind info.
3514
3515 2003-02-27  Ulrich Drepper  <drepper@redhat.com>
3516
3517         * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
3518         initializer anymore now that res_thread_freeres is more careful.
3519
3520         * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
3521         except the PKTINFO.  Reset interface in PKTINFO.
3522         Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
3523
3524 2003-02-25  Steven Munroe  <sjmunroe@us.ibm.com>
3525
3526         * elf/elf.h: Add new R_PPC64_* relocs for TLS.
3527         * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
3528         Define.
3529         * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
3530         * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
3531         * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
3532         * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
3533
3534         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
3535         Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
3536
3537 2003-02-25  Andreas Jaeger  <aj@suse.de>
3538
3539         * manual/memory.texi (Malloc Tunable Parameters): Clarify
3540         behaviour of M_MMAP_THRESHOLD.
3541
3542 2003-02-25  Roland McGrath  <roland@redhat.com>
3543
3544         * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
3545         zero, inidicating _res was not initialized yet.
3546
3547 2003-02-24  Ulrich Drepper  <drepper@redhat.com>
3548
3549         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
3550         test.
3551
3552 2003-02-24  Roland McGrath  <roland@redhat.com>
3553
3554         * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
3555
3556 2003-02-23  Roland McGrath  <roland@redhat.com>
3557
3558         * sysdeps/posix/pause.c: New file.
3559         * sysdeps/unix/common/pause.c: File removed.
3560
3561 2003-02-23  Ulrich Drepper  <drepper@redhat.com>
3562
3563         * sysdeps/generic/bits/confname.h: Remove #ifs.
3564
3565         * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
3566         * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
3567
3568         * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
3569         element to -1.
3570
3571 2003-02-22  Ulrich Drepper  <drepper@redhat.com>
3572
3573         * sysdeps/generic/dl-sysdep.c: Avoid warning.
3574
3575 2003-02-22  Roland McGrath  <roland@redhat.com>
3576
3577         * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
3578         * resolv/Makefile (tests): Add tst-leaks.
3579         ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
3580         (tst-leaks-ENV): New variable.
3581         ($(objpfx)mtrace-tst-leaks): New target.
3582         (tests): Depend on it.
3583
3584         * include/libc-internal.h: Declare __libc_thread_freeres.
3585
3586         * Makerules: Fix last change to use $($(subdir)-version) when set.
3587
3588         * Makerules (install-lib-nosubdir): Depend on installed
3589         libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
3590         regardless of the libfoo.so target's dependencies.
3591
3592         * MakeTAGS (sub-make-vars): New variable, includes generating=t.
3593         Use that in $(MAKE) calls.
3594
3595 2003-02-22  Ulrich Drepper  <drepper@redhat.com>
3596
3597         * catgets/gencat.c (read_input_file): Collision between
3598         auto-assigned numbers and user-defined nubmers is not fatal.
3599         Handle it.
3600         Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
3601         * catgets/Makefile: Add rules to run test2.msg test.
3602         * catgets/test2.msg: New file.
3603
3604         * catgets/gencat.c (main): Return 1 if messages have been printed.
3605
3606         * iconv/iconv_prog.c (main): Unify messages.
3607
3608         * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
3609         when shifting retval.
3610         * stdlib/tst-strtod.c (main): Add strtold test case.
3611         Reported by Fred J. Tydeman <tydeman@tybor.com>.
3612
3613 2003-02-21  Roland McGrath  <roland@redhat.com>
3614
3615         * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
3616         * sunrpc/rpc_thread.c: Likewise for text_set_element use.
3617         (__rpc_thread_destroy): Add it to __libc_subfreeres too.
3618
3619         * include/resolv.h: Add libc_hidden_proto for __res_nclose.
3620         * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
3621         (res_thread_freeres): New function, on __libc_thread_subfreeres and
3622         __libc_subfreeres.
3623
3624         * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
3625         * malloc/thread-freeres.c: New file.
3626         * malloc/Makefile (aux): Add it.
3627         * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
3628         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
3629         "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
3630
3631         * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
3632         * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
3633
3634 2003-02-21  Roland McGrath  <roland@frob.com>
3635
3636         * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
3637
3638         * iconvdata/Makefile (tests): Add bug-iconv3 only if
3639         [$(have-thread-library) = yes].
3640
3641 2003-02-21  Ulrich Drepper  <drepper@redhat.com>
3642
3643         * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
3644
3645         * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
3646         not chechk for errors (unless testing for 32bit variant).
3647         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
3648         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
3649         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
3650
3651 2003-02-21  Jakub Jelinek  <jakub@redhat.com>
3652
3653         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
3654         Check for signed overflow, not unsigned.
3655
3656         * sysdeps/sparc/sparc64/elf/configure.in: New file.
3657         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
3658         Use -fcall-used-g6, not -fcall-used-g7.
3659
3660 2003-02-21  Andreas Jaeger  <aj@suse.de>
3661
3662         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
3663         mode.
3664
3665         * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
3666         clear whole mxcsr but only exceptions.
3667
3668 2003-02-21  Roland McGrath  <roland@redhat.com>
3669
3670         * Makerules: Filter $(install-lib-ldscripts) out of list of targets
3671         for libfoo.so that need $(make-link) rules.
3672
3673 2003-02-21  Roland McGrath  <roland@frob.com>
3674
3675         * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
3676         to match existing struct stat layout in mig protocols.
3677
3678 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
3679
3680         * version.h (VERSION): Bump to 2.3.2.
3681
3682         * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
3683         tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
3684         and dl-sysdep.h.
3685         * sysdeps/generic/Dist: Add sysdep-cancel.h.
3686         * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
3687         * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
3688         * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
3689         * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
3690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
3691         ucontext_i.h.
3692         * Makefile (distribute): Add include/stubs-prologue.h,
3693         include/gnu/stubs.h, scripts/merge-abilist.awk, and
3694         scripts/extract-abilist.awk.
3695
3696 2003-02-20  Roland McGrath  <roland@redhat.com>
3697
3698         * math/Makefile (distribute): Don't add generated files.
3699
3700 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
3701
3702         * math/Makefile: Rearrange variable definitions slightly to get
3703         definition in the right order.
3704
3705 2003-02-20  Roland McGrath  <roland@redhat.com>
3706
3707         * Makerules: Clean up conditional around include of tls.make.
3708         * Make-dist: Export generating=t to prevent using that.
3709         (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
3710
3711 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
3712
3713         * inet/rcmd.c (rresvport_af): Avoid using invliad values.  Wrap
3714         around in search if port IPPORT_RESERVED/2 has been test.
3715
3716 2002-02-20  Paolo Bonzini  <bonzini@gnu.org>
3717
3718         * posix/regcomp.c: Remove inclusions.
3719         * posix/regexec.c: Likewise.
3720         * posix/regex_internal.c: Likewise.
3721         * posix/regex_internal.h: Add inclusions here.
3722         * posix/regex.c: Only include sys/types.h before regex.h.  Include
3723         regex_internal.h here.  Include regex_internal.c before regcomp.c
3724         and regexec.c (might expose more opportunities to the C compiler).
3725
3726         * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
3727
3728         * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
3729         [!_LIBC] (__wcrtomb): New definition.
3730         [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
3731         HAVE_LOCALE_H as well.
3732
3733 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
3734
3735         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
3736         patch to check for system call errors.
3737
3738 2002-07-24  Philip Blundell  <philb@gnu.org>
3739
3740         * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
3741         on unknown systems.
3742
3743 2003-02-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3744
3745         * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
3746         * sysdeps/unix/sysv/linux/kernel-features.h
3747         (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
3748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
3749         if possible.
3750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
3751         interprocedure branches.
3752         * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
3753         * sysdeps/powerpc/nofpu/Dist: ...here.
3754         * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
3755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
3756         * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
3757         * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
3758         * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
3759
3760 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
3761
3762         * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
3763
3764 2003-02-20  Philip Blundell  <philb@gnu.org>
3765
3766         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
3767         missing arguments to INTERNAL_SYSCALL_ERROR_P and
3768         INTERNAL_SYSCALL_ERRNO.
3769
3770 2003-02-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3771
3772         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
3773         for __ASSUME_32BITUIDS.
3774
3775 2003-02-20  Andreas Schwab  <schwab@suse.de>
3776
3777         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
3778         POSIX_MADV_* constants.
3779
3780 2003-02-20  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3781
3782         * sysdeps/unix/sysv/linux/sh/pread.c: New file.
3783         * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
3784         * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
3785         * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
3786
3787 2003-02-19  Jiro Sekiba  <jir@yamato.ibm.com>
3788
3789         * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
3790
3791 2003-02-16  Roland McGrath  <roland@redhat.com>
3792
3793         * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
3794
3795 2003-02-19  Ulrich Drepper  <drepper@redhat.com>
3796
3797         * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
3798         decimal input digits.
3799         * stdlib/tst-strtod.c (main): Add test for strtof bug.
3800
3801 2003-02-18  Ulrich Drepper  <drepper@redhat.com>
3802
3803         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
3804         invalid file descriptors and missing access permissions.
3805
3806 2003-02-17  Ulrich Drepper  <drepper@redhat.com>
3807
3808         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
3809         been found.
3810
3811         * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
3812         TTY_NAME_MAX and not the _POSIX_* minimal value macros.
3813         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
3814         and LOGIN_NAME_MAX.
3815
3816 2003-02-17  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
3817             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3818
3819         * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
3820         * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
3821         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
3822         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
3823         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
3824
3825 2003-02-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3826
3827         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
3828         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
3829         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
3830         * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
3831         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
3832         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
3833
3834         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
3835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
3836         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
3837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
3838
3839         * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
3840         * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
3841         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
3842         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
3843
3844 2003-02-14  Thorsten Kukuk  <kukuk@suse.de>
3845
3846         * nss/getent.c (print_hosts): Print all IP addresses of one host.
3847
3848 2003-02-15  Roland McGrath  <roland@frob.com>
3849
3850         * sysdeps/mach/hurd/tls.h: New file.
3851         * sysdeps/mach/hurd/i386/tls.h: New file.
3852
3853         * mach/errsystems.awk: Include <errno.h> in generated output.
3854
3855         * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
3856         use target mach-before-compile instead of generated.
3857         (mach-before-compile): New target.
3858         * Makerules: Disable use of tls.make if $(generating) is set.
3859         * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
3860         * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
3861         mach-shortcuts.h so mach/ generation happens before hurd/.
3862
3863 2003-02-14  Ulrich Drepper  <drepper@redhat.com>
3864
3865         * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
3866         of demorm correctly if low word is zero.
3867         Reported by Fred J. Tydeman <tydeman@tybor.com>.
3868         * math/libm-test.inc (nextafter_test): New test, but disabled due
3869         to gcc bug.
3870
3871         * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
3872         counter and only call __exit_thread if this is not the last thread.
3873
3874 2003-02-13  Jakub Jelinek  <jakub@redhat.com>
3875
3876         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
3877         subtracting map->l_tls_offset.
3878
3879 2003-02-12  Ulrich Drepper  <drepper@redhat.com>
3880
3881         * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
3882         _CS_GNU_LIBPTHREAD_VERSION.
3883         * posix/conststr.c: Handle these new values.
3884         * posix/getconf.c: Likewise.
3885
3886         * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
3887         masking of version index.
3888         Patch by Lance Larsh <Lance.Larsh@oracle.com>.
3889
3890 2003-02-11  Ulrich Drepper  <drepper@redhat.com>
3891
3892         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
3893         correctly.  Reported by Thorsten Kukuk.
3894
3895 2003-02-10  Ulrich Drepper  <drepper@redhat.com>
3896
3897         * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
3898         _BSD_SOURCE to compiler.
3899         * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
3900         Patches by Alan Modra.
3901
3902 2003-02-08  Ulrich Drepper  <drepper@redhat.com>
3903
3904         * io/ftwtest.c: Get current working directory before and after the
3905         nftw call and make sure they match.
3906
3907 2003-02-08  Jim Meyering  <jim@meyering.net>
3908
3909         * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
3910         the current directory, not just when DIR contains a slash.
3911         Reported by Manoj Srivastava.
3912
3913 2003-02-07  Jim Meyering  <jim@meyering.net>
3914
3915         * io/ftw.c: Add autoconf-recommended block of alloca-related code.
3916         Include autoconf-recommended block of dirent/NAMELEN-related
3917         definitions and includes.  Use NAMELEN throughout, rather than
3918         _D_EXACT_NAMLEN.
3919         [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
3920         [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
3921         (stpcpy): Declare, if necessary.
3922         (mempcpy): Define, if necessary.
3923         [!_LIBC] (__stpcpy, __mempcpy): Define.
3924         [!_LIBC] (LXSTAT, XSTAT): Define.
3925         (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
3926         (find_object): Don't use c99-style struct initializer.
3927         Tweak wording in a couple comments.
3928
3929 2003-02-07  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3930
3931         * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
3932         for SH.
3933         * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
3934         after the trapa instruction.
3935         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
3936         parameters.
3937         * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
3938         (NEED_SYSCALL_INST_PAD): Define.
3939         * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
3940         avoid to use definition for the kernel.
3941         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3942         Save and restore the frame pointer.
3943         (SYSCALL_INST_PAD): Define.
3944         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
3945         (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
3946         after trapa instruction.
3947         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
3948         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
3949
3950 2003-02-07  Jakub Jelinek  <jakub@redhat.com>
3951
3952         * resolv/res_libc.c (_res): Ensure _res is not common symbol,
3953         so that it can have aliases.
3954         * inet/herrno.c (h_errno): Put it into .bss not .data section.
3955
3956 2003-02-07  Ulrich Drepper  <drepper@redhat.com>
3957
3958         * elf/dl-runtime.c (fixup): Correct typo in version index computation.
3959         (profile_fixup): Likewise.
3960         Patch by Lance Larsh <Lance.Larsh@oracle.com>.
3961
3962 2002-11-24  Robert Love  <rml@tech9.net>
3963
3964         * posix/sched.h: Second parameter of sched_setaffinity and
3965         sched_getaffinity is `unsigned int', not `unsigned long'.
3966         * sysdeps/generic/sched_setaffinity.c: Likewise.
3967         * sysdeps/generic/sched_getaffinity.c: Likewise.
3968
3969 2003-02-05  Ulrich Drepper  <drepper@redhat.com>
3970
3971         * debug/catchsegv.sh: Fix typo in error messsage.
3972         Reported by John Levon <levon@movementarian.org>.
3973
3974         * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
3975         * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
3976         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3977         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3979         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3980         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3981
3982         * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
3983         Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
3984
3985 2003-02-05  Jim Meyering  <jim@meyering.net>
3986
3987         Fix a heap-corrupting bug.
3988         * io/ftw.c: Include <limits.h>.
3989         (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
3990         (process_entry): Allocate enough space to hold the resulting
3991         file name.  Don't presume that 2*dirbufsize is enough.
3992         (ftw_startup): Always use PATH_MAX to compute buffer size, now that
3993         it is guaranteed to be defined.
3994
3995 2003-02-04  Ulrich Drepper  <drepper@redhat.com>
3996
3997         * iconvdata/Makefile: Add rules to build and run bug-iconv3.
3998         * iconvdata/bug-iconv3.c: New file.
3999
4000 2003-02-04  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4001
4002         * sysdeps/unix/sysv/linux/s390/system.c: New file.
4003
4004 2003-02-03  Jakub Jelinek  <jakub@redhat.com>
4005
4006         * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
4007         check.
4008         * config.h.in (BROKEN_SPARC_WDISP22): Add.
4009
4010 2003-02-03  Ulrich Drepper  <drepper@redhat.com>
4011
4012         * sysdeps/i386/i686/memmove.S: New file.
4013
4014 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
4015
4016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
4017         Include kernel-features.h
4018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
4019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
4020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
4021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4022
4023 2003-02-02  Jakub Jelinek  <jakub@redhat.com>
4024
4025         * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
4026
4027 2003-01-25  Jim Meyering  <jim@meyering.net>
4028
4029         * io/ftw.c (object_compare): Compare inode numbers before device
4030         numbers, since the former are much more likely to differ.
4031
4032 2003-02-01  Ulrich Drepper  <drepper@redhat.com>
4033
4034         * time/tzfile.c (__tzfile_compute): Change return value type to
4035         void.  Adjust return statements.
4036         * include/time.h (__tzfile_compute): Adjust prototype.
4037
4038 2003-02-01  Jim Meyering  <jim@meyering.net>
4039
4040         * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
4041         always returns 1.
4042
4043 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
4044
4045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4046         [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
4047
4048 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
4049
4050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4051         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
4052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4053         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
4054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4055         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
4056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4057         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
4058
4059 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
4060
4061         * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
4062         back to 2.4.19 for powerpc64.
4063         * sysdeps/unix/sysv/linux/kernel-features.h
4064         (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
4065         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
4066
4067 2003-02-01  Ulrich Drepper  <drepper@redhat.com>
4068
4069         * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
4070         platforms with strange alignment requirements on wchar_t.
4071
4072 2003-01-31  Andreas Schwab  <schwab@suse.de>
4073
4074         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
4075         aliases, already added by make-syscalls.sh.
4076         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4077         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4078         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4079         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4080         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4081         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4082         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4083         * sysdeps/unix/inet/syscalls.list: Likewise.
4084         * sysdeps/unix/syscalls.list: Likewise.
4085
4086 2003-01-31  Andreas Schwab  <schwab@suse.de>
4087
4088         * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
4089         any more.
4090
4091 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
4092
4093         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
4094         not l to load tls from stack.
4095
4096 2003-01-30  Roland McGrath  <roland@redhat.com>
4097
4098         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
4099         null argument before all else.
4100         Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
4101
4102 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
4103
4104         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
4105         Move to RESOLVE protected part of the header.
4106         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
4107         Likewise.
4108
4109 2003-01-30  Ulrich Drepper  <drepper@redhat.com>
4110
4111         * stdio-common/Makefile (tests): Add bug15.
4112         (bug15-ENV): Define.
4113         * stdio-common/bug15.c: New file.
4114
4115 2002-10-07  Wolfram Gloger  <wg@malloc.de>
4116
4117         * malloc/malloc.c (sYSMALLOc): Only check for breakage due
4118         to foreign sbrk()'s if arena is contiguous.  Bug report from
4119         Bruno Haible <bruno@clisp.org>.
4120
4121 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
4122
4123         * sysdeps/s390/libc-tls.c: Include stdlib.h.
4124
4125 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
4126
4127         * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
4128         ps.__count.
4129
4130 2003-01-30  Ulrich Drepper  <drepper@redhat.com>
4131
4132         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
4133         restoring of %r6.
4134         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.  Use
4135         64-bit load.
4136         Patch by Martin Schwidefsky  <schwidefsky@de.ibm.com>.
4137
4138 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
4139
4140         * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
4141         (allocate_static_tls): ...here.  Add __attribute_noinline__.
4142         Don't return on failure.
4143         (_dl_reloc_bad_type): Add __attribute_noinline__.
4144         * elf/do-rel.h (elf_dynamic_do_rel): Add
4145         __attribute__((always_inline)).
4146         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
4147         elf_machine_rel_relative, elf_machine_rela_relative,
4148         elf_machine_lazy_rel): Add prototypes with
4149         __attribute__((always_inline)).
4150
4151 2003-01-29  David Mosberger  <davidm@hpl.hp.com>
4152
4153         * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
4154
4155 2003-01-29  Roland McGrath  <roland@redhat.com>
4156
4157         * configure.in: Barf if configured in $srcdir.
4158
4159 2003-01-28  Steven Munroe  <sjmunroe@us.ibm.com>
4160
4161         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4162         (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
4163
4164 2003-01-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4165
4166         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
4167         clone parameters to match the order used on ia32.
4168         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
4169
4170 2003-01-27  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4171
4172         * elf/elf.h: Add new s390 relocs.
4173         * elf/tls-macros.h: Add s390 versions.
4174         * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
4175         * sysdeps/s390/dl-tls.h: New file.
4176         * sysdeps/s390/libc-tls.c: New file.
4177         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
4178         relocs for class PLT.
4179         (elf_machine_rela): Handle TLS relocs.
4180         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4181         * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
4182         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
4183         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
4184         CLONE_CHILD_*TID flags.
4185         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
4186         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
4187         bit offset.
4188         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4189         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
4190         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
4191         Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
4192         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
4193         Likewise.
4194         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
4195         (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
4196         (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
4197         variants.
4198         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
4199         (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
4200         direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
4201         (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
4202         variants.
4203
4204 2003-01-28  Ulrich Drepper  <drepper@redhat.com>
4205
4206         * sysdeps/unix/common/pause.c (do_pause): New function.  Split
4207         from __libc_pause.  Implement using sigsuspend.
4208         (__libc_pause): Call do_pause to do the real work.
4209
4210         * sysdeps/posix/sigpause.c (do_sigpause): Check range of
4211         sig_or_mask parameter is is_sig != 0.
4212
4213 2003-01-21  Philip Blundell  <philb@gnu.org>
4214
4215         * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
4216
4217 2003-01-27  Steven Munroe  <sjmunroe@us.ibm.com>
4218
4219         * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
4220
4221 2003-01-27  Ulrich Drepper  <drepper@redhat.com>
4222
4223         * stdio-common/bug14.c: Use official name for the locale.
4224
4225         * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
4226         instead of __libc_cleanup_region_start and _IO_cleanup_region_end
4227         instead of __libc_cleanup_region_end.
4228
4229         * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
4230         as first parameter to __libc_cleanup_region_start.
4231
4232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4233         (__fe_nomask_env): Use __prctl not prctl.
4234         * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
4235         prctl syscall.
4236
4237         * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
4238
4239         * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
4240
4241         * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
4242         wrap-around in test.
4243
4244 2003-01-26  Andreas Schwab  <schwab@suse.de>
4245
4246         * sysdeps/wordsize-32/divdi3.c: Export the functions only as
4247         compatibility symbols.  Remove INTDEF for __divdi3.
4248         * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
4249         * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
4250         * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
4251         define.
4252         * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
4253
4254 2003-01-24  Jakub Jelinek  <jakub@redhat.com>
4255
4256         * elf/tls-macros.h: Add SPARC 32-bit definitions.
4257         * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
4258         * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
4259         for the first half of the header.  Include tls.h.
4260         (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
4261         relocs too.
4262         (elf_machine_rela): Handle TLS relocs.
4263         * sysdeps/sparc/dl-tls.h: New file.
4264
4265         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
4266         support.
4267
4268         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
4269         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4270         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
4271         * sysdeps/sparc/sparc32/strcat.S: Likewise.
4272         * sysdeps/sparc/sparc32/strchr.S: Likewise.
4273         * sysdeps/sparc/sparc32/strcmp.S: Likewise.
4274         * sysdeps/sparc/sparc32/strcpy.S: Likewise.
4275         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
4276         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4277         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
4278         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
4279         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
4280         * sysdeps/sparc/sparc64/strcat.S: Likewise.
4281         * sysdeps/sparc/sparc64/strchr.S: Likewise.
4282         * sysdeps/sparc/sparc64/strcmp.S: Likewise.
4283         * sysdeps/sparc/sparc64/strcpy.S: Likewise.
4284         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
4285         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
4286         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4287         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4288
4289 2003-01-24  Andreas Schwab  <schwab@suse.de>
4290
4291         * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
4292         elements, and process them backwards.
4293         * elf/Makefile ($(objpfx)tst-array4): New target.
4294         ($(objpfx)tst-array4.out): Likewise.
4295         (tests) [$(have-initfini-array) = yes]: Add tst-array4.
4296         * elf/tst-array4.c: New file.
4297         * elf/tst-array4.exp: Likewise.
4298
4299 2003-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
4300
4301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
4302
4303 2003-01-27  Guido Guenther  <agx@sigxcpu.org>
4304
4305         * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
4306         * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
4307         cancellation handling and handle both __NR_pread64 and __NR_pread.
4308         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4309         * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
4310         cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
4311         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4312         * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
4313         case, use register names consistently.
4314
4315 2003-01-27  Wolfram Gloger  <wg@malloc.de>
4316
4317         * malloc/hooks.c (mem2chunk_check): Check alignment of mem
4318         pointer, not of the computed chunk.  Bug report from Carlos
4319         O'Donell <carlos@baldric.uwo.ca>.
4320
4321 2003-01-25  Andreas Schwab  <schwab@suse.de>
4322
4323         * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
4324         addressing to save GOT entries.
4325
4326 2003-01-21  Jakub Jelinek  <jakub@redhat.com>
4327
4328         * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
4329         inline_syscall1, inline_syscall2, inline_syscall3,
4330         inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
4331         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
4332         __attribute__((unused)) to ChEcK.
4333
4334 2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4335
4336         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
4337         Fix inline assembler constraints.
4338         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
4339         Likewise.
4340
4341         * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
4342         -fPIC.
4343
4344 2003-01-20  Segher Boessenkool  <segher@koffie.nl>
4345
4346         * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
4347         compute the cosine, not the sine, even if x > 0.8.
4348
4349 2003-01-19  Ulrich Drepper  <drepper@redhat.com>
4350
4351         * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
4352         _nss_nis_setspent.  Work around the different prototypes.
4353         * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
4354         internal_nis_endrpcent.
4355         (internal_nis_endrpcent): Change return type to void.  Change callers.
4356         * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
4357         _nss_nis_setpwent.  Work around the different prototypes.
4358         * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
4359         of the function to...
4360         (internal_nis_endprotoent): ... here.  New function.
4361         (internal_nis_setprotoent): Use internal_nis_endprotoent.
4362         * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
4363         _nss_nis_setnetent.  Work around the different prototypes.
4364         * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
4365         of the function to...
4366         (internal_nis_endnetgrent): ... here.  New function.
4367         (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
4368
4369 2003-01-19  Jim Meyering  <jim@meyering.net>
4370
4371         * time/strftime.c: (widen): Merge nearly-identical definitions.
4372         (nl_get_alt_digit) [! defined my_strftime]: Define.
4373         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
4374         _nl_get_alt_digit and _nl_get_walt_digit.
4375
4376 2003-01-19  Ulrich Drepper  <drepper@redhat.com>
4377
4378         * time/strftime.c (my_strftime): Handle very large width
4379         specifications for numeric values correctly.  Improve checks for
4380         overflow.
4381         * time/Makefile (tests): Add tst-strftime.
4382         * time/tst-strftime.c: New file.
4383
4384 2003-01-18  Ulrich Drepper  <drepper@redhat.com>
4385
4386         * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
4387         _nss_nis_sethostent.  Work around the different prototypes.
4388         * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
4389         _nss_nis_setgrent.  Work around the different prototypes.
4390         * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
4391         function.  Split out from _nss_nis_endetherent.
4392         (internal_nis_setetherent): Use internal_nis_endetherent instead of
4393         duplicating the code.
4394         * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
4395         of _nss_nis_setaliasent.
4396         * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
4397         internal_nis_endservent code, don't duplicate it.
4398
4399         * inet/rexec.c (rexec_af): Protect socket operations with
4400         TEMP_FAILURE_RETRY.  Use writev instead of multiple write.
4401         * inet/rcmd.c (rcmd_af): Likewise.
4402
4403 2003-01-17  Roland McGrath  <roland@redhat.com>
4404
4405         * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
4406         Add test of value 0.80190127184058835.
4407
4408         * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
4409
4410 2003-01-17  Richard Henderson  <rth@redhat.com>
4411
4412         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
4413         relocs for class PLT.
4414         * sysdeps/alpha/libc-tls.c: New file.
4415         * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
4416         (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
4417
4418 2003-01-17  Jakub Jelinek  <jakub@redhat.com>
4419
4420         * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
4421         __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
4422         on _dl_static_lock.
4423
4424 2003-01-17  Andreas Jaeger  <aj@suse.de>
4425
4426         * stdio-common/bug14.c: Include stdlib.h for exit prototype.
4427
4428 2003-01-16  Steven Munroe  <sjmunroe@us.ibm.com>
4429
4430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
4431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
4432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
4433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
4434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
4435         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
4436         * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
4437         is 2.4.21.
4438
4439 2003-01-16  Ulrich Drepper  <drepper@redhat.com>
4440
4441         * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
4442         values != -1 for _LIBC.  Use extend_alloca to reallocate alloca'ed
4443         buffers.
4444
4445         * sysdeps/generic/sysconf.c: Unconditionally implement
4446         _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
4447         * sysdeps/posix/sysconf.c: Likewise.
4448
4449 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
4450
4451         * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
4452         set *err to the returned error, not to REG_ESPACE unconditionally.
4453         (build_word_op): Likewise.
4454         * posix/Makefile (tests): Add bug-regex16.
4455         * posix/bug-regex16.c: New test.
4456
4457 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
4458
4459         * elf/dl-load.c (_dl_map_object_from_fd): Use
4460         GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
4461         been already initialized.
4462
4463 2003-01-15  Dmitry V. Levin  <ldv@altlinux.org>
4464
4465         * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
4466
4467 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
4468
4469         * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
4470         allocated too.  Reported by Al Viro <aviro@redhat.com>.
4471
4472 2003-01-16  Roland McGrath  <roland@redhat.com>
4473
4474         Tweak merged .abilist file format to merge duplicate symbols in
4475         different sets into multi-version stanzas with new "| SET regexp..."
4476         header continuation lines.
4477         * scripts/merge-abilist.awk: Rewritten for new format.
4478         * scripts/extract-abilist.awk: Likewise.
4479
4480 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
4481
4482         * nscd/connections.c (nscd_run): Remove bogus return which isn't
4483         necessary with gcc 3.2+.
4484         (nscd_init): Don't use error() to print message, use dbg_log.
4485
4486         * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
4487         expected size into state.
4488         (UNPACK_BYTES): Do the reverse.
4489         * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
4490         * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
4491         Reported by Al Viro <aviro@redhat.com>.
4492
4493         * stdio-common/Makefile (tests): Add bug14.
4494         * stdio-common/bug14.c: New file.
4495
4496         * stdio-common/vfscanf.c: When recognizing multibyte characters in
4497         string reset the byte counter after mbrtowc reported it is not a
4498         partial character.  Reported by Al Viro <aviro@redhat.com>.
4499
4500 2003-01-15  Steven Munroe  <sjmunroe@us.ibm.com>
4501
4502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
4503         sysdep-cancel.h, not sysdep.h.
4504
4505 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
4506
4507         * nscd/connections.c (nscd_run): Protect accept call with
4508         TEMP_FAILURE_RETRY.
4509
4510 2003-01-15  Andreas Schwab  <schwab@suse.de>
4511
4512         * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
4513         (common-generated): Add s-proto-bp.d.
4514         * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
4515         of bp thunks.
4516         * sysdeps/unix/s-proto-bp.S: New file.
4517         * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
4518         Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
4519         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
4520
4521 2003-01-15  Roland McGrath  <roland@redhat.com>
4522
4523         * Makerules: Use -include for tls.make, suppresses warning.
4524         Move gen-as-const-headers rules up so before-compile is set in time.
4525         (sed-remove-dotdot): Fix to work right for subdirs or top dir.
4526
4527 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
4528
4529         * nscd/nscd.c (main): Make code to close all file descriptors
4530         faster and more robust.
4531
4532         * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
4533         request with one writev call.  Protect all read calls with
4534         TEMP_FAILURE_RETRY.
4535         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4536         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4537
4538         * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
4539         Protect writev calls with TEMP_FAILURE_RETRY.
4540         * nscd/grpcache.c: Likewise.
4541         * nscd/pwdcache.c: Likewise.
4542
4543         * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
4544         IPv6 address in debug output.
4545
4546 2003-01-14  Roland McGrath  <roland@redhat.com>
4547
4548         * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
4549         $(objpfx) directories, and get rid of vpath directives.  The previous
4550         arrangement resulted in files being written to the source directories
4551         when run in a clean build.  Find all .abilist files in $(..)abilist/.
4552         (update-abi-%): Likewise.
4553         (generated): Don't add .symlist files, they'll be intermediates.
4554
4555         * sysdeps/generic/init-first.c: Add a comment.
4556
4557         * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
4558
4559         * scripts/gen-as-const.awk: Grok lone "--" as a separator between
4560         #includes and expressions.
4561
4562         * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
4563         config list when it already contains cpu-.*-os.* without / part.
4564
4565         * Makerules (sed-remove-dotdot): New variable.
4566         ($(common-objpfx)%.make): Use it.  Depend on $(before-compile).
4567         ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
4568         (check-abi-config): New variable, append /tls or /notls to the tuple.
4569         (check-abi-%): Use that for -v config value.
4570         Find .abilist files in abilist/libfoo.abilist, not in subdir.
4571         * Rules: Move bits/stdio_lim.h generation rules to Makerules.
4572
4573 2003-01-14  Ulrich Drepper  <drepper@redhat.com>
4574
4575         * manual/install.texi: Correct description of header preparation for
4576         Linux build.  Patch by mhwood@Ameritech.Net [PR libc/4941].
4577
4578 2003-01-14  Guido Guenther  <agx@sigxcpu.org>
4579
4580         * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
4581         INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4582         INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
4583
4584 2003-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
4585
4586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
4587         (INTERNAL_SYSCALL): Make use of ERR parameter.
4588         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4589         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
4590         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
4591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
4592
4593 2003-01-14  Ulrich Drepper  <drepper@redhat.com>
4594
4595         * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
4596         == IPPROTO_TCP.
4597         Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
4598
4599         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
4600         Fix entry for bit 31.
4601
4602         * iconvdata/Makefile: Add rules to build IBM866NAV.
4603         * iconvdata/ibm866nav.c: New file.
4604         * iconvdata/tst-tables.sh: Add IBM866NAV.
4605         * iconvdata/gconv-modules: Add entries for IBM866NAV.
4606
4607 2003-01-13  Ulrich Drepper  <drepper@redhat.com>
4608
4609         * string/tester.c (test_strcpy): Use the previously #if 0'ed code
4610         to test void* parameters.
4611
4612         * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
4613         source pointer before dereferencing.
4614         (__STRING_SMALLL_GET32): Likewise.
4615         (__memset_gc): Add missing parenthesis around macro arguments.
4616         Patch by Denis Zaitsev <zzz@cd-club.ru>.
4617
4618         * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
4619         that %eax is modified.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
4620
4621 2003-01-14  Jakub Jelinek  <jakub@redhat.com>
4622
4623         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
4624         defining.
4625
4626 2003-01-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4627
4628         * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
4629         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
4630         here.
4631         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
4632
4633 2003-01-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4634
4635         * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
4636         from here...
4637         (PSEUDO): ... to here.
4638         * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
4639         from here...
4640         (PSEUDO): ... to here.
4641
4642 2003-01-13  Ulrich Drepper  <drepper@redhat.com>
4643
4644         * locale/programs/charmap-dir.c (charmap_readdir): Use struct
4645         dirent64 instead of struct dirent for dirent.  Call readdir64
4646         instead of readdir.
4647
4648         * locale/programs/locfile.c (siblings_uncached): Use struct
4649         dirent64 instead of struct dirent for other_dentry.  Call
4650         readdir64 instead of readdir.
4651
4652         * elf/ldconfig.c (direntry): Change type to struct dirent64.
4653         (search_dir): Use readdir64 instead of readdir.
4654         Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
4655
4656 2003-01-12  Roland McGrath  <roland@redhat.com>
4657
4658         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
4659         not strtol.  The former is usable in ld.so, the latter not.
4660
4661         * include/fcntl.h: Declare __libc_creat.
4662
4663         * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
4664         libhurduser-link.so-no-z-defs): New variables.
4665
4666         * malloc/malloc.c: Revert last change.
4667         * malloc/malloc.h (_int_*): Move these decls to ...
4668         * include/malloc.h: ... here.  Add attribute_hidden.
4669         (_int_valloc): Declare it too.
4670
4671 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
4672
4673         * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
4674         search for removed searchlist.  Reported by Roland McGrath.
4675
4676         * io/ftwtest-sh: Add test for case of symlink to nonexisting file
4677         given as start file.
4678
4679         * io/ftw.c (ftw_startup): Use correct name in check for symlink
4680         without existing target.  Patch by Jim Meyering.
4681
4682         * Makerules (build-shlib-helper): Don't use -z defs linker option
4683         if no-z-defs is defined either.
4684
4685 2003-01-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4686
4687         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
4688         file.
4689
4690 2003-01-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4691
4692         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
4693         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4694
4695 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
4696
4697         * io/ftwtest-sh: Add test case for relative path with /. at the end.
4698
4699 2003-01-12  Jim Meyering  <jim@meyering.net>
4700
4701         * io/ftw.c (ftw_startup): When trying to stat the starting directory,
4702         use the basename if we've already chdir'd into its parent directory.
4703
4704 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
4705
4706         * io/ftw.c (process_entry): Use relative path when using chdir()
4707         to change directory after call to ftw_dir.
4708         * io/ftwtest-sh: Add test for relative path argument to nftw()
4709         with FTW_CHDIR option.
4710
4711 2002-01-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4712
4713         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
4714         Define for powerpc.
4715         * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
4716         into account.
4717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4718         (INTERNAL_SYSCALL): Make use of ERR parameter.
4719         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4720         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
4721         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
4722         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
4723
4724 2002-01-09  Richard Henderson  <rth@redhat.com>
4725
4726         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
4727         DTPREL64 and TPREL64 without loadbase applied.
4728
4729 2002-01-09  Richard Henderson  <rth@redhat.com>
4730
4731         * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
4732         for NOT_IN_libc.
4733
4734         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
4735         * sysdeps/unix/alpha/sysdep.h: ... here.
4736         (PSEUDO_LOADGP): Remove.
4737         (PSEUDO_PROLOGUE): Load GP in non-pic case.
4738         (SYSCALL_ERROR_LABEL): New.
4739         (PSEUDO): Use it in error branch.
4740         (PSEUDO_END): Add $syscall_error label.
4741
4742 2003-01-12  Andreas Jaeger  <aj@suse.de>
4743
4744         * math/bits/mathcalls.h: Round is a const function.
4745
4746 2003-01-11  Jim Meyering  <jim@meyering.net>
4747
4748         * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
4749         [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
4750         Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
4751         [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
4752         [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
4753         [!_LIBC] (internal_function, dirent64, MAX): Define.
4754         (__set_errno): Define if not already defined.
4755         (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
4756         the basename, not the entire file name.
4757         (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
4758         the basename, not the entire file name.
4759
4760 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
4761
4762         * string/tester.c (test_strcpy): Disable last added strcpy until
4763         it is fixed.
4764
4765 2003-01-11  Philip Blundell  <philb@gnu.org>
4766
4767         * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
4768
4769 2003-01-11  Andreas Schwab  <schwab@suse.de>
4770
4771         * Makerules: Add vpath for %.dynsym and %.so so that the
4772         implicit rule chaining for check-abi works.
4773
4774 2003-01-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4775
4776         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4777         Add non-PIC case.
4778
4779 2003-01-11  Jakub Jelinek  <jakub@redhat.com>
4780
4781         * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
4782         [__ia64__] (TLS_LE, TLS_IE): Fix typos.  Add ;; at start of asm if
4783         gp is used early.
4784         [__ia64__] (TLS_LD, TLS_GD): Likewise.  Use __TLS_CALL_CLOBBERS.
4785         * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
4786         Ensure libc.so in DT_NEEDED.
4787         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
4788         CHECK_STATIC_TLS before l_tls_offset use.
4789         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
4790         Likewise.
4791         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4792         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
4793         Allocate TLS_PRE_TCB_SIZE bytes below result.
4794         (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
4795         * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
4796         TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
4797         segment has been found.  If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
4798         bytes below result and add tcb_offset to memsz.
4799         * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
4800         * sysdeps/ia64/dl-machine.h: Include tls.h.
4801         (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
4802         too.
4803         (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
4804         Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
4805         * sysdeps/ia64/libc-tls.c: New file.
4806
4807 2003-01-10  Steven Munroe  <sjmunroe@us.ibm.com>
4808
4809         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
4810         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
4811         Fix type.  Move definition out of #if.
4812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
4813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
4814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
4815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
4816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
4817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
4818         support.
4819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
4820         ftruncate64, pread64, pwrite64, truncate64 entries.
4821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
4822         (INLINE_SYSCALL): New version that supports function call like
4823         syscalls.  Add __builtin_expect.
4824         (LOADARGS_n): Add argument size safety checks.
4825         (INTERNAL_SYSCALL): New Macro.
4826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
4827         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
4828         redefinition of elf_fpreg_t and elf_fpregset_t.
4829
4830 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
4831
4832         * elf/dl-close.c (_dl_close): Add several asserts.  Correct and
4833         simplify test for unloading.  If loader of a DSO is unloaded do not
4834         use its scope anymore.  Fall back to own scope and adjust opencounts.
4835         Fix several comments.
4836         * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
4837         the l_searchlist, not only for l_initfini.
4838
4839         * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
4840         dependencies if objects cannot be removed.  Remove object with the
4841         definition as not unloadable if necessary.
4842
4843         * elf/reldep6.c: Create relocation dependency before closing the first
4844         module.
4845
4846 2003-01-10  Guido Günther  <agx@sigxcpu.org>
4847
4848         * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
4849         * sysdeps/unix/mips/brk.S: Likewise.
4850         * sysdeps/unix/mips/pipe.S: Likewise.
4851
4852 2003-01-10  Andreas Schwab  <schwab@suse.de>
4853
4854         * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
4855
4856         * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
4857         are known to have the vfork syscall.
4858
4859         * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
4860
4861         * sysdeps/unix/sysv/linux/kernel-features.h
4862         (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
4863         (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
4864         (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
4865
4866 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
4867
4868         * elf/Makefile: Add rules to build and run reldep9 test.
4869         * elf/reldep9.c: New file.
4870         * elf/reldep9mod1.c: New file.
4871         * elf/reldep9mod2.c: New file.
4872         * elf/reldep9mod3.c: New file.
4873
4874 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
4875
4876         * elf/Makefile: Add rules to build and run nodelete2 test.
4877         * elf/nodelete2.c: New file.
4878         * elf/nodel2mod1.c: New file.
4879         * elf/nodel2mod2.c: New file.
4880         * elf/nodel2mod3.c: New file.
4881
4882 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
4883
4884         * posix/test-vfork.c (noop): Add __attribute_noinline__.
4885         * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
4886         * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
4887         defining it.
4888         * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
4889         * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
4890         * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
4891         * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
4892         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
4893
4894 2003-01-09  Andreas Schwab  <schwab@suse.de>
4895
4896         * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
4897
4898 2003-01-08  Ulrich Drepper  <drepper@redhat.com>
4899
4900         * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
4901         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
4902         argument.
4903         (INTERNAL_SYSCALL_DECL): Define.
4904
4905 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
4906
4907         * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
4908         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
4909         argument.
4910         (INTERNAL_SYSCALL_DECL): Define.
4911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
4912         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
4913         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
4914         (INLINE_SYSCALL): Adjust.
4915         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
4916         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4917         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
4918         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4919         * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
4920         add err argument to INTERNAL_SYSCALL* macros.
4921         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
4922         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
4923         * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
4924         * sysdeps/unix/sysv/linux/m68k/getpagesize.c  (__getpagesize):
4925         Likewise.
4926         * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
4927         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
4928         INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
4929
4930 2003-01-07  Ulrich Drepper  <drepper@redhat.com>
4931
4932         Unify symbols in user namespace exported by libc.so and libc.a.
4933         * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
4934         argp_fmtstream_free, and argp_fmtstream_printf.
4935         * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
4936         argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
4937         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
4938         argp_fmtstream_point.
4939         * gmon/gmon.c: Don't define write_profiling.
4940         * libio/genops.c: Don't define _cleanup.
4941
4942         * intl/explodename.c (_nl_find_language.c): Mark as static.
4943         * intl/loadinfo.h: Remove _nl_find_language prototype.
4944
4945         * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
4946         * libio/libioP.h: Remove declaration.
4947
4948         * libio/iopopen.c (_IO_proc_jumps): Mark as static.
4949         * libio/libioP.h: Remove declaration.
4950
4951         * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
4952         * sysdeps/generic/framestate.c: Define STATIC before including
4953         unwind-dw2.c.
4954
4955         * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
4956
4957 2003-01-06  Philip Blundell  <philb@gnu.org>
4958
4959         * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
4960         [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
4961
4962         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
4963         directive.
4964         (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
4965         (SYSCALL_ERROR): New.
4966         (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
4967         handling code.
4968         (INTERNAL_SYSCALL): Define.
4969         (INLINE_SYSCALL): Use it.
4970         (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
4971         * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
4972         SYSCALL_ERROR in place of __syscall_error.
4973
4974 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
4975
4976         * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
4977         __bswap_32, __bswap_64): Put x into temporary variable
4978         to avoid warnings.
4979         [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
4980         (inline) functions.
4981         * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
4982         __bswap_32, __bswap_64): Put x into temporary variable
4983         to avoid warnings.
4984         [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
4985         (inline) functions.
4986         * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
4987         Likewise.
4988
4989 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
4990
4991         * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
4992         alias.
4993
4994 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
4995
4996         * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
4997         * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
4998
4999 2003-01-07  Ulrich Drepper  <drepper@redhat.com>
5000
5001         * math/libm-test.inc (significand_test): New function.
5002         (main): Call it.
5003
5004 2003-01-06  Roland McGrath  <roland@redhat.com>
5005
5006         * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
5007         arguments.
5008         (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
5009         (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
5010         (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
5011
5012         * string/tester.c (test_strcpy): Add test with `void *' arguments.
5013
5014 2003-01-06  Ulrich Drepper  <drepper@redhat.com>
5015
5016         * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
5017         return significand and not the exponent.
5018         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5019
5020         * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
5021         taking address of iov in INTERNAL_SYSCALL call.  Patch by Franz Sirl.
5022
5023         * malloc/malloc.c: Mark all _int_* functions as static.
5024
5025 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
5026
5027         * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
5028         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
5029         handling.
5030         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
5031
5032 2003-01-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5033
5034         * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
5035         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
5036         support.
5037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
5038         ftruncate64, truncate64, pread64 and pwrite64 entries.
5039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5040         (INLINE_SYSCALL): Add __builtin_expect.
5041         (LOADARGS_n): Add argument size safety checks.
5042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
5043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
5044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
5045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
5046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
5047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
5048
5049 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
5050
5051         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
5052         * sysdeps/generic/creat.c: Include sysdep-cancel.h.
5053         (LIBC_CANCEL_HANDLED): Add.
5054
5055         * sysdeps/unix/sysv/linux/alpha/sysdep.h
5056         (inline_syscall_r0_constraint): Rename to...
5057         (inline_syscall_r0_out_constraint): ... this.  Add =.
5058         (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
5059
5060 2003-01-06  Andreas Schwab  <schwab@suse.de>
5061
5062         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
5063         sure this is always inlined.
5064         (elf_machine_rela): Likewise.
5065
5066         * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
5067
5068 2003-01-04  Roland McGrath  <roland@redhat.com>
5069
5070         * Makeconfig (+mkdep): Add -MP flag.
5071         Suggested by Art Haas <ahaas@airmail.net>.
5072
5073 2003-01-05  Andreas Schwab  <schwab@suse.de>
5074
5075         * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
5076
5077 2003-01-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5078
5079         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
5080         SYSCALL_ERROR_HANDLER.
5081         * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
5082         * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
5083         Add support for cancellation handling.
5084         * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
5085         SYSCALL_ERROR_HANDLER.
5086         * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
5087         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
5088         Add support for cancellation handling.
5089         (SYSCALL_ERROR_HANDLER): Define PIC variants.
5090
5091 2003-01-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5092
5093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
5094         __syscall_pread64 and __syscall_pwrite64 cancelable.
5095         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5096         (INTERNAL_SYSCALL): New macro.
5097         (LOADARGS_0, LOADARGS_1): Fix.
5098
5099 2003-01-05  Ulrich Drepper  <drepper@redhat.com>
5100
5101         * Makerules (build-shlip-helper): Unless told otherwise, add
5102         -Wl,-z,defs to linker command line.
5103         * rt/Makefile (librt.so): Link with ld.so.
5104         * dlfcn/Makefile (libdl.so): Likewise.
5105
5106 2003-01-05  Jakub Jelinek  <jakub@redhat.com>
5107
5108         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
5109         cancellation handling.
5110         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5111         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
5112
5113 2003-01-04  Ulrich Drepper  <drepper@redhat.com>
5114
5115         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
5116         order of parameters passed to kill.
5117
5118 2003-01-04  Andreas Schwab  <schwab@suse.de>
5119
5120         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
5121
5122 2002-01-03  Paul Eggert  <eggert@twinsun.com>
5123
5124         * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
5125         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
5126         when compiling Bison 1.875's `bitset bset = obstack_alloc
5127         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
5128
5129 2003-01-04  Ulrich Drepper  <drepper@redhat.com>
5130
5131         * sysdeps/posix/system.c (do_system): Minor optimizations.  Remove
5132         unnecessary code.
5133         Correct reference counter in case SIGQUIT handler installation failed.
5134
5135 2003-01-03  Ulrich Drepper  <drepper@redhat.com>
5136
5137         * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
5138         Define using _Pragma(weak ...).
5139
5140 2003-01-03  Andreas Jaeger  <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
5141
5142         * resolv/res_libc.c: Provide declaration for __res_init_weak and
5143         reorder declarations.
5144
5145 2003-01-03  Art Haas  <ahaas@airmail.net>
5146
5147         * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
5148         initializer syntax to C99.
5149         * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
5150         * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
5151         * localedata/tests-mbwc/dat_iswctype.c: Likewise.
5152         * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
5153         * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
5154         * localedata/tests-mbwc/dat_iswlower.c: Likewise.
5155         * localedata/tests-mbwc/dat_iswprint.c: Likewise.
5156         * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
5157         * localedata/tests-mbwc/dat_iswspace.c: Likewise.
5158         * localedata/tests-mbwc/dat_iswupper.c: Likewise.
5159         * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
5160         * localedata/tests-mbwc/dat_mblen.c: Likewise.
5161         * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
5162         * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
5163         * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
5164         * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
5165         * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
5166         * localedata/tests-mbwc/dat_strcoll.c: Likewise.
5167         * localedata/tests-mbwc/dat_strfmon.c: Likewise.
5168         * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
5169         * localedata/tests-mbwc/dat_swscanf.c: Likewise.
5170         * localedata/tests-mbwc/dat_towctrans.c: Likewise.
5171         * localedata/tests-mbwc/dat_towlower.c: Likewise.
5172         * localedata/tests-mbwc/dat_towupper.c: Likewise.
5173         * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
5174         * localedata/tests-mbwc/dat_wcscat.c: Likewise.
5175         * localedata/tests-mbwc/dat_wcschr.c: Likewise.
5176         * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
5177         * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
5178         * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
5179         * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
5180         * localedata/tests-mbwc/dat_wcslen.c: Likewise.
5181         * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
5182         * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
5183         * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
5184         * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
5185         * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
5186         * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
5187         * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
5188         * localedata/tests-mbwc/dat_wcstod.c: Likewise.
5189         * localedata/tests-mbwc/dat_wcstok.c: Likewise.
5190         * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
5191         * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
5192         * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
5193         * localedata/tests-mbwc/dat_wctob.c: Likewise.
5194         * localedata/tests-mbwc/dat_wctomb.c: Likewise.
5195         * localedata/tests-mbwc/dat_wctrans.c: Likewise.
5196         * localedata/tests-mbwc/dat_wctype.c: Likewise.
5197         * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
5198
5199 2003-01-03  Richard Henderson  <rth@redhat.com>
5200
5201         * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
5202         (inline_syscall_r0_constraint): New.
5203         (inline_syscall[0-6]): Use them.
5204
5205 2003-01-03  Jakub Jelinek  <jakub@redhat.com>
5206
5207         * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
5208         Add rtld_hidden_proto.
5209         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
5210         (_dl_allocate_tls): Likewise.  Remove INTDEF.
5211
5212 2002-07-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5213
5214         * sysdeps/sh/memcpy.S: Optimize.  Based on a patch by Toshiyasu
5215         Morita <toshiyasu.morita@hsa.hitachi.com>.
5216         * sysdeps/sh/memcpy.S: Likewise.
5217
5218 2003-01-02  Ulrich Drepper  <drepper@redhat.com>
5219
5220         * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
5221         any, but unify the test.
5222
5223 2003-01-02  Jakub Jelinek  <jakub@redhat.com>
5224
5225         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
5226         sigaction): Protect weak_alias and libc_hidden_weak with
5227         #ifndef LIBC_SIGACTION.
5228         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
5229         sigaction): Likewise.
5230         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
5231         sigaction): Likewise.
5232         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
5233         sigaction): Likewise.
5234         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
5235         sigaction): Likewise.
5236         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
5237         sigaction): Likewise.
5238         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
5239         sigaction): Likewise.
5240         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
5241         sigaction): Likewise.  Remove SIGCANCEL handling here.
5242         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
5243         Likewise.
5244
5245 2003-01-02  Art Haas  <ahaas@airmail.net>
5246
5247         * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
5248
5249 2003-01-02  Ulrich Drepper  <drepper@redhat.com>
5250
5251         * posix/getconf.c: Update copyright year.
5252         * nss/getent.c: Likewise.
5253         * nscd/nscd_nischeck.c: Likewise.
5254         * iconv/iconvconfig.c: Likewise.
5255         * iconv/iconv_prog.c: Likewise.
5256         * elf/ldconfig.c: Likewise.
5257         * catgets/gencat.c: Likewise.
5258         * csu/version.c: Likewise.
5259         * elf/ldd.bash.in: Likewise.
5260         * elf/sprof.c (print_version): Likewise.
5261         * locale/programs/locale.c: Likewise.
5262         * locale/programs/localedef.c: Likewise.
5263         * nscd/nscd.c (print_version): Likewise.
5264         * debug/xtrace.sh: Likewise.
5265         * malloc/memusage.sh: Likewise.
5266         * malloc/mtrace.pl: Likewise.
5267
5268 2003-01-01  Jakub Jelinek  <jakub@redhat.com>
5269
5270         * io/sys/stat.h: Include time.h with __need_timespec even if
5271         __USE_MISC is defined but __USE_XOPEN is not.
5272
5273 2003-01-01  Andreas Jaeger  <aj@suse.de>
5274
5275         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
5276         type to avoid strict aliasing problem.
5277         (_nss_dns_gethostbyname2_r): Likewise.
5278         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5279         (_nss_dns_getnetbyname_r): Likewise.
5280         * resolv/gethnamaddr.c (_gethtent): Likewise.
5281         (gethostbyname2): Likewise.
5282
5283 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
5284
5285         * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
5286         to avoid using the exported symbols.  Define aliases with the
5287         original names separately.
5288
5289         * include/time.h: Add libc_hidden_proto for __strftime_l.
5290         * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
5291         * time/strftime.c: Always use libc_hidden_def if _LIBC.
5292
5293         * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
5294         * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
5295
5296         * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
5297         tr_break.
5298
5299         * csu/Makefile (routines): Add dso_handle.
5300         * csu/dso_handle.c: New file.
5301
5302 2002-12-31  Roland McGrath  <roland@redhat.com>
5303
5304         * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
5305         Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
5306         (S-CPPFLAGS): Add -DASSEMBLER here instead.
5307         (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
5308
5309 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
5310
5311         * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
5312         is available.
5313
5314 2002-12-31  Andreas Jaeger  <aj@suse.de>
5315
5316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
5317         with Linux kernel.
5318         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
5319         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
5320         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
5321
5322         * sysdeps/unix/sysv/linux/kernel_stat.h
5323         (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
5324
5325         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
5326         __unused[1-3] since they're needed by some platforms.  Handle
5327         _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
5328
5329         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
5330         for structs stat and stat64.
5331         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5332         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
5333         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
5334         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
5335
5336         * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
5337
5338         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
5339         nsec resolution changes.
5340         (xstat64_conv): Likewise.
5341         (xstat32_conv): Likewise.
5342
5343         * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
5344         struct kernel_stat.
5345
5346         * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
5347         structs stat and stat64.
5348
5349         * time/time.h (__timespec_defined): Define for __USE_MISC.
5350
5351 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
5352
5353         * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
5354         and __libc_current_sigrtmax.
5355
5356 2002-12-31  Jakub Jelinek  <jakub@redhat.com>
5357
5358         * include/errno.h (__errno_location): Add prototype.
5359         Use libc_hidden_proto unconditionally.
5360         * include/netdb.h (__h_errno_location): Use libc_hidden_proto
5361         unconditionally.
5362         * include/resolv.h (__res_state): Likewise.
5363
5364         * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
5365         * include/sys/socket.h (accept): Add libc_hidden_proto.
5366         * include/errno.h (__errno_location): Likewise.
5367         * include/netdb.h (__h_errno_location): Likewise.
5368         * include/resolv.h (__res_state): Likewise.
5369         * include/unistd.h (__lseek): Likewise.
5370         * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
5371         * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
5372         * sysdeps/generic/res-state.c (__res_state): Likewise.
5373         * sysdeps/generic/accept.c (accept): Likewise.
5374         * sysdeps/generic/lseek.c (__lseek): Likewise.
5375         * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
5376         __libc_current_sigrtmax): Likewise.
5377         * sysdeps/mach/hurd/accept.c (accept): Likewise.
5378         * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
5379         * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
5380         * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
5381         * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
5382         * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
5383         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
5384         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
5385         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
5386         alias to llseek.
5387         (__GI_accept): New alias to accept.
5388         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
5389         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
5390         New alias to llseek.
5391         (__GI_accept): New alias to accept.
5392         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
5393         Likewise.
5394         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
5395         Likewise.
5396         * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
5397
5398         * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
5399         strong_alias (name, __GI_name).
5400         * sysdeps/arm/bsd-_setjmp.S : Likewise.
5401         * sysdeps/hppa/bsd-_setjmp.S : Likewise.
5402         * sysdeps/i386/bsd-_setjmp.S : Likewise.
5403         * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
5404         * sysdeps/mips/bsd-_setjmp.S : Likewise.
5405         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
5406         * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
5407         * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
5408         * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
5409         * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
5410         * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
5411         * sysdeps/sh/bsd-_setjmp.S : Likewise.
5412         * sysdeps/sparc/sparc32/setjmp.S : Likewise.
5413         * sysdeps/unix/arm/fork.S : Likewise.
5414         * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
5415         * sysdeps/unix/bsd/i386/vfork.S : Likewise.
5416         * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
5417         * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
5418         * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
5419         * sysdeps/unix/bsd/vax/vfork.S : Likewise.
5420         * sysdeps/unix/i386/fork.S : Likewise.
5421         * sysdeps/unix/mips/fork.S : Likewise.
5422         * sysdeps/unix/sparc/fork.S : Likewise.
5423         * sysdeps/unix/sparc/vfork.S : Likewise.
5424         * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
5425         * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
5426         * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
5427         * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
5428         * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
5429         * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
5430         * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
5431         * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
5432         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
5433         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
5434         * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
5435         * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
5436         * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
5437         * sysdeps/unix/fork.S : Likewise.
5438         * sysdeps/vax/bsd-_setjmp.S : Likewise.
5439         * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
5440
5441         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
5442         inclusion.
5443
5444 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
5445
5446         * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
5447         * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
5448         * sysdeps/mach/hurd/fork.c: Likewise.
5449         * sysdeps/unix/sysv/aix/fork.c: Likewise.
5450         * sysdeps/unix/fork.S: Add __GI___fork alias.
5451         * sysdeps/unix/arm/fork.S: Likewise.
5452         * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
5453         * sysdeps/unix/i386/fork.S: Likewise.
5454         * sysdeps/unix/mips/fork.S: Likewise.
5455         * sysdeps/unix/sparc/fork.S: Likewise.
5456         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
5457         * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
5458         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5459         * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
5460         * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
5461         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
5462         * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
5463         * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
5464         * sysdeps/unix/bsd/vax/vfork.S: Likewise.
5465         * sysdeps/unix/sparc/vfork.S: Likewise.
5466         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
5467         * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
5468         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5469         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
5470         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
5471         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
5472         * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
5473         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5474
5475         * include/time.h: Add libc_hidden_proto for __nanosleep.
5476         * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
5477         * sysdeps/mach/nanosleep.c: Likewise.
5478         * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
5479         * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
5480
5481         * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
5482         _IO_list_unlock, and _IO_list_resetlock.
5483         * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
5484         _IO_list_unlock, and _IO_list_resetlock.
5485
5486         * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
5487         _IO_iter_end, _IO_iter_next, and _IO_iter_file.
5488         * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
5489         _IO_iter_end, _IO_iter_next, and _IO_iter_file.
5490
5491         * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
5492         * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
5493         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
5494         __GI___longjmp alias.
5495
5496         * include/setjmp.h: Add libc_hidden_proto for _setjmp.
5497         * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
5498         * sysdeps/arm/bsd-_setjmp.S: Likewise.
5499         * sysdeps/generic/bsd-_setjmp.c: Likewise.
5500         * sysdeps/hppa/bsd-_setjmp.S: Likewise.
5501         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5502         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
5503         * sysdeps/mips/bsd-_setjmp.S: Likewise.
5504         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
5505         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
5506         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
5507         * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
5508         * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
5509         * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
5510         * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
5511         * sysdeps/sh/bsd-_setjmp.S: Likewise.
5512         * sysdeps/sparc/sparc32/setjmp.S: Likewise.
5513         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
5514         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
5515         * sysdeps/vax/bsd-_setjmp.S: Likewise.
5516         * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
5517
5518 2002-12-30  Ulrich Drepper  <drepper@redhat.com>
5519
5520         * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
5521
5522 2002-12-30  Roland McGrath  <roland@redhat.com>
5523
5524         * Rules (generated): Target removed.
5525         * mach/Makefile (generated): Define it here instead.
5526
5527         * math/Makefile (generated): Add m_*l and m_*f variants too.
5528
5529 2002-12-30  Ulrich Drepper  <drepper@redhat.com>
5530
5531         * elf/dl-close.c (_dl_close): Handle relocation dependencies among
5532         the to-be-deleted objects right away instead of later separately.
5533         The latter fails because the scope data structures of the DSO
5534         might already be gone.
5535
5536         * elf/Makefile: Add rules to build and run reldep8 test.
5537         * elf/reldep8.c: New file.
5538         * elf/reldep8mod1.c: New file.
5539         * elf/reldep8mod2.c: New file.
5540         * elf/reldep8mod3.c: New file.
5541         Contributed by Jakub Jelinek.
5542
5543 2002-12-24  GOTO Masanori  <gotom@debian.or.jp>
5544
5545         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
5546         checking of return value ENOSYS from getdents64.
5547
5548 2002-12-28  Andreas Schwab  <schwab@suse.de>
5549
5550         * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
5551         ($(common-objpfx)s-%.d): Generalized from
5552         $(common-objpfx)s-proto.d rule.
5553         (common-generated): Add s-proto-cancel.d.
5554         * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
5555         cancellable syscalls.
5556         * sysdeps/unix/s-proto-cancel.S: New file.
5557
5558 2002-12-29  Roland McGrath  <roland@redhat.com>
5559
5560         * resolv/res_libc.c: Move _res defn magic after res_init defn
5561         so _res macro is in effect for that code.
5562
5563         * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
5564         pattern for prepending $(..) so it doesn't affect $(foo).
5565
5566         * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
5567
5568 2002-12-29  Jakub Jelinek  <jakub@redhat.com>
5569
5570         * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
5571         in hwcap.
5572
5573 2002-12-28  Ulrich Drepper  <drepper@redhat.com>
5574
5575         * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
5576
5577 2002-12-28  Andreas Jaeger  <aj@suse.de>
5578
5579         * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
5580         avoid warning.
5581         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
5582
5583 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
5584
5585         * inet/herrno.c (__h_errno_location): Remove.
5586         * inet/Makefile (routines): Add herrno-loc.
5587         * resolv/res_libc.c (__res_state): Remove.
5588         * resolv/Makefile (routines): Add res-state.
5589         * sysdeps/generic/herrno-loc.c: New file.
5590         * sysdeps/generic/res-state.c: New file.
5591
5592 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
5593
5594         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
5595         Only define if USE_DL_SYSINFO is defined.
5596
5597 2002-12-22  Jakub Jelinek  <jakub@redhat.com>
5598
5599         * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
5600         INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
5601         Define. Patch by Richard Henderson and Jes Sorensen.
5602         (PSEUDO): Remove unnecessary ;;.
5603         * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
5604         are found unless TLS_INIT_TP_EXPENSIVE.  Use NONTLS_INIT_TP.
5605         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
5606         if not initializing thread pointer.
5607         [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
5608         * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
5609         make it weak also if NONTLS_INIT_TP.
5610         * sysdeps/unix/common/pause.c: Handle cancellation.
5611         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
5612         (LOADSYSCALL): Remove.
5613         (SYSCALL_ERROR_HANDLER_ENTRY): Define.
5614         (SYSCALL_ERROR_HANDLER): Use it.
5615         (PSEUDO): Don't jump around error handler.
5616         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
5617         jump around error handler.
5618         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
5619         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
5620         to __syscall_error_handler on failure.
5621         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
5622         (LOADSYSCALL): Remove.
5623         (SYSCALL_ERROR_HANDLER_ENTRY): Define.
5624         (SYSCALL_ERROR_HANDLER): Use it.
5625         (PSEUDO): Don't jump around error handler.
5626         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
5627         jump around error handler.
5628         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
5629         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
5630         to __syscall_error_handler on failure.
5631
5632 2002-12-27  Roland McGrath  <roland@redhat.com>
5633
5634         * scripts/gen-as-const.awk: New file.
5635         * Makefile (distribute): Add it.
5636         * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
5637         (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
5638         to the list.
5639         (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
5640
5641 2002-12-27  Andreas Schwab  <schwab@suse.de>
5642
5643         * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
5644
5645 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
5646
5647         * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
5648         _environ is NULL.
5649
5650 2002-12-27  Andreas Schwab  <schwab@suse.de>
5651
5652         * Makerules ($(common-objpfx)%.make): Filter through
5653         $(sed-remove-objpfx).
5654
5655 2002-12-23  Roland McGrath  <roland@redhat.com>
5656
5657         * scripts/abilist.awk: Produce a more compact format, divided into
5658         stanzas for each version set, the set name listed only once.
5659         * scripts/extract-abilist.awk: New file.
5660         * scripts/merge-abilist.awk: New file.
5661         * Makerules (check-abi-%, update-abi-%): New pattern rules.
5662         (update-abi, check-abi): New targets.
5663         * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
5664
5665 2002-12-19  Roland McGrath  <roland@redhat.com>
5666
5667         * Makerules (%.symlist): Use LC_ALL=C when running awk script.
5668
5669         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
5670         INTERNAL_SYSCALL.
5671
5672 2002-12-21  Andreas Schwab  <schwab@suse.de>
5673
5674         * elf/check-textrel.c (handle_file): Swap p_type.
5675
5676 2002-12-21  Andreas Schwab  <schwab@suse.de>
5677
5678         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
5679         (INLINE_SYSCALL): Use it.
5680         (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
5681         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
5682
5683         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
5684         * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
5685
5686 2002-12-20  Art Haas  <ahaas@airmail.net>
5687
5688         * sysdeps/gnu/siglist.c: Convert GCC extension initializer
5689         syntax to C99.
5690
5691 2002-12-21  Philip Blundell  <philb@gnu.org>
5692
5693         * sysdeps/arm/elf/start.S (_start): Optimise a little.  Push stack
5694         top as seventh arg to __libc_start_main.
5695         Reported by paulnash@wildseed.com.
5696
5697         * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
5698
5699         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
5700         compatibility cruft when new enough kernel is assumed.
5701
5702 2002-12-20  Jakub Jelinek  <jakub@redhat.com>
5703
5704         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
5705         instead of INLINE_SYSCALL.
5706
5707 2002-12-20  Ulrich Drepper  <drepper@redhat.com>
5708
5709         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
5710         typo.
5711
5712         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
5713         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5714         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
5715         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5716         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5717         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5718         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5719         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5720         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5721         Patch by William Lee Irwin <wli@holomorphy.com>.
5722
5723 2002-12-20  Andreas Schwab  <schwab@suse.de>
5724
5725         * locale/programs/ld-measurement.c (measurement_output): Fix
5726         index calculation.
5727
5728 2002-12-20  Ulrich Drepper  <drepper@redhat.com>
5729
5730         * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
5731         Redefine _IO_flockifle and _IO_funlockfile as inlines.
5732
5733         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
5734         builds add "tls" in the search path.
5735         * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
5736         (path_hwcap): Recognize "tls".
5737
5738 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
5739
5740         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
5741         __waitpid instead of waitpid.
5742
5743         * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
5744         int $0x80.
5745         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
5746         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
5747         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
5748
5749         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
5750         information for system calls.
5751
5752         * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
5753         for ld.so.
5754
5755         * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
5756
5757 2002-12-19  Roland McGrath  <roland@redhat.com>
5758
5759         * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
5760         * iconvdata/ibm922.h: Likewise.
5761         * iconvdata/ibm930.h: Likewise.
5762         * iconvdata/ibm932.h: Likewise.
5763         * iconvdata/ibm933.h: Likewise.
5764         * iconvdata/ibm935.h: Likewise.
5765         * iconvdata/ibm937.h: Likewise.
5766         * iconvdata/ibm939.h: Likewise.
5767         * iconvdata/ibm943.h: Likewise.
5768         * iconvdata/isiri-3342.h: Likewise.
5769
5770 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
5771
5772         * test-skeleton.c (main): Make sure correct value is seen as
5773         argv[0] after adjustment of argv, and argc.
5774
5775         * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
5776         RTLD_CORRECT_DYNAMIC_WEAK is defined.
5777
5778 2002-12-19  Jakub Jelinek  <jakub@redhat.com>
5779
5780         * nscd/connections.c (nscd_run): Shut up warning.
5781         * tst-ungetc.c (assert): Undefined before redefining.
5782
5783 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
5784
5785         * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
5786         is used.
5787
5788 2002-12-17  Art Haas  <ahaas@airmail.net>
5789
5790         * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
5791         * iconvdata/cp775.h: Likewise.
5792         * iconvdata/ibm1046.h: Likewise.
5793         * iconvdata/ibm1124.h: Likewise.
5794         * iconvdata/ibm1129.h: Likewise.
5795         * iconvdata/ibm1132.h: Likewise.
5796         * iconvdata/ibm1133.h: Likewise.
5797         * iconvdata/ibm1160.h: Likewise.
5798         * iconvdata/ibm1161.h: Likewise.
5799         * iconvdata/ibm1162.h: Likewise.
5800         * iconvdata/ibm1163.h: Likewise.
5801         * iconvdata/ibm1164.h: Likewise.
5802
5803 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
5804
5805         * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
5806         __ASSUME_CLONE_THREAD_FLAGS is defined.
5807         * sysdeps/unix/sysv/linux/kernel-features.h
5808         (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
5809
5810 2002-12-18  Ulrich Drepper  <drepper@redhat.com>
5811
5812         * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
5813         of asm.
5814         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5815
5816         * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
5817         _dl_sysinfo.
5818         [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
5819         code.
5820         * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
5821         _rtld_global.
5822         [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
5823         code.
5824         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
5825         Check for AT_SYSINFO and set _dl_sysinfo appropriately.
5826         * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
5827         Add _dl_sysinfo.
5828
5829 2002-12-18  Jakub Jelinek  <jakub@redhat.com>
5830
5831         * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
5832         __libc_writev to...
5833         [libc: GLIBC_PRIVATE]: ...here.
5834         * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
5835         __libc_msgsnd to...
5836         [libc: GLIBC_PRIVATE]: ...here.
5837
5838 2002-12-18  Ulrich Drepper  <drepper@redhat.com>
5839
5840         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
5841         Use it instead of directly int $0x80.
5842         * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
5843         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
5844         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
5845         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5846         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
5847         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
5848
5849 2002-12-17  Ulrich Drepper  <drepper@redhat.com>
5850
5851         * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
5852
5853         * elf/elf.h (AT_SYSINFO): New define.
5854         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
5855         AT_SYSINFO.
5856
5857 2002-12-17  Jakub Jelinek  <jakub@redhat.com>
5858
5859         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
5860         Make cancelable.
5861         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
5862         Likewise.
5863         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
5864         Likewise.
5865         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
5866         Likewise.
5867         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
5868         Likewise.
5869         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
5870
5871         * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
5872         mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
5873         available, otherwise __libc_maybe_call.
5874         * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
5875         cancellation handling.
5876         * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
5877
5878 2002-12-17  Isamu Hasegawa  <isamu@yamato.ibm.com>
5879
5880         * posix/regcomp.c (free_workarea_compile): Free the new member
5881         ORG_INDICES.
5882         (analyze): Initialize ORG_INDICES.
5883         (duplicate_node_closure): Search for a existing node, which is
5884         duplicated from the node ORG_DEST and satisfies the constraint
5885         CONSTRAINT.  And use it to avoid inifimite loop.
5886         (search_duplicated_node): New function.
5887         (duplicate_node): Store the index of the original node.
5888         * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
5889         if needed.
5890         * posix/regex_internal.h (re_dfa_t): Add new members.
5891
5892 2002-12-17  Ulrich Drepper  <drepper@redhat.com>
5893
5894         * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
5895
5896 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
5897
5898         * sysdeps/posix/system.c (do_system): Add support for installation
5899         of cancellation handlers.
5900         * sysdeps/unix/sysv/linux/i386/system.c: New file.
5901
5902         * stdlib/Makefile (tests): Add tst-system.
5903         * stdlib/tst-system.c: New file.
5904
5905         * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
5906         CENABLE]: Don't lose content of %ebx.
5907
5908 2002-12-17  Jakub Jelinek  <jakub@redhat.com>
5909
5910         * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
5911         macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
5912
5913 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
5914
5915         * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
5916         fails to return a function pointer don't use it.
5917
5918 2002-12-16  Art Haas  <ahaas@airmail.net>
5919
5920         * io/ftw.c: Convert GCC extension initializer syntax to C99.
5921         * iconvdata/iso-ir-165.c: Likewise.
5922         * iconvdata/jis0208.c: Likewise.
5923         * iconvdata/jis0212.c: Likewise.
5924
5925 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
5926
5927         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
5928         epoll_ctl, and epoll_wait.
5929         * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
5930         epoll_create, epoll_ctl, and epoll_wait.
5931         * sysdeps/unix/sysv/linux/sys/epoll.h: New file.  Written by
5932         Davide Libenzi <davidel@xmailserver.org>.
5933         * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
5934         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
5935         Add sys/epoll.h.
5936
5937 2002-12-16  Art Haas  <ahaas@airmail.net>
5938
5939         * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
5940         syntax to C99
5941         * sysdeps/unix/sysv/aix/settimer.c: Likewise.
5942         * sysdeps/unix/sysv/aix/sleep.c: Likewise.
5943         * sysdeps/unix/sysv/aix/usleep.c: Likewise.
5944
5945 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
5946
5947         * stdio-common/Makefile (routines): Remove lockfile.  Add
5948         flockfile, ftrylockfile, and funlockfile.
5949         * sysdeps/generic/lockfile.c: Removed.  Each function has its own file.
5950         * sysdeps/generic/flockfile.c: New file.
5951         * sysdeps/generic/ftrylockfile.c: New file.
5952         * sysdeps/generic/funlockfile.c: New file.
5953
5954 2002-12-16  Jakub Jelinek  <jakub@redhat.com>
5955
5956         * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
5957         macros instead of doing the calls directly.
5958         * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
5959         * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
5960         targets.
5961
5962 2002-12-16  Jakub Jelinek  <jakub@redhat.com>
5963
5964         * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
5965         * sysdeps/ieee754/bits/nan.h: Likewise.
5966
5967         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
5968         __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
5969
5970 2002-12-16  Roland McGrath  <roland@redhat.com>
5971
5972         * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
5973         * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
5974         * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
5975
5976         * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
5977         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
5978         s_putpmsg.
5979         * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
5980         * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
5981         * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
5982         * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
5983         * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
5984         * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
5985         * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
5986         * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
5987
5988 2002-12-13  Paul Eggert  <eggert@twinsun.com>
5989
5990         * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
5991         is now u_int, not int.
5992         (struct XDR.x_handy): Now u_int, not int.
5993         * sunrpc/xdr_mem.c: Include <limits.h>.
5994         (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
5995         xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
5996         x_handy is now unsigned, not signed.
5997         Do not decrement x_handy if no change is made.
5998         (xdrmem_setpos): Check for int overflow.
5999         * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
6000         (xdr_sizeof): Remove cast that is now unnecessary, now that
6001         x_handy is unsigned.
6002
6003 2002-12-15  Art Haas  <ahaas@airmail.net>
6004
6005         * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
6006         * iconvdata/gap.awk: Likewise.
6007         * iconvdata/gen-8bit-gap-1.sh: Likewise.
6008         * iconvdata/gen-8bit-gap.sh: Likewise.
6009         * locale/C-address.c: Likewise.
6010         * locale/C-collate.c: Likewise.
6011         * locale/C-ctype.c: Likewise.
6012         * locale/C-identification.c: Likewise.
6013         * locale/C-measurement.c: Likewise.
6014         * locale/C-messages.c: Likewise.
6015         * locale/C-monetary.c: Likewise.
6016         * locale/C-name.c: Likewise.
6017         * locale/C-numeric.c: Likewise.
6018         * locale/C-paper.c: Likewise.
6019         * locale/C-telephone.c: Likewise.
6020         * locale/C-time.c: Likewise.
6021         * nscd/connections.c: Likewise.
6022         * nscd/grpcache.c: Likewise.
6023         * nscd/hstcache.c: Likewise.
6024         * nscd/pwdcache.c: Likewise.
6025         * stdio-common/vfprintf.c: Likewise.
6026         * stdlib/random.c: Likewise.
6027         * sysdeps/generic/siglist.c: Likewise.
6028         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6029         * sysdeps/ieee754/bits/nan.h: Likewise.
6030         * sysdeps/posix/sprofil.c: Likewise.
6031         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
6032         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
6033         * sysdeps/unix/sysv/linux/usleep.c: Likewise.
6034
6035 2002-12-15  Roland McGrath  <roland@redhat.com>
6036
6037         * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
6038
6039         * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
6040         <tls.h> here, no need for it.
6041         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
6042
6043         * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
6044         parameter, not varargs parameter.
6045
6046         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
6047         argument so it's not an unused variable.
6048
6049         * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
6050         __p_type_syms, __p_rcode_syms): Remove decls, never really intended
6051         for users.
6052
6053         * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
6054
6055 2002-12-15  Ulrich Drepper  <drepper@redhat.com>
6056
6057         * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
6058         original __libc_fcntl code.  Just renamed.
6059
6060 2002-12-15  Andreas Schwab  <schwab@suse.de>
6061
6062         * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
6063
6064 2002-12-14  Olaf Hering  <olh@suse.de>
6065
6066         * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
6067         * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
6068
6069 2002-12-15  Ulrich Drepper  <drepper@redhat.com>
6070
6071         * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
6072
6073         * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
6074         SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
6075
6076         * sysdeps/unix/sysv/linux/open64.c: New file.
6077
6078         * sysdeps/generic/pselect.c: Add support for cancellation handling.
6079         * sysdeps/posix/open64.c: Likewise.
6080         * sysdeps/posix/sigpause.c: Likewise.
6081         * sysdeps/posix/sigwait.c: Likewise.
6082         * sysdeps/posix/system.c: Likewise.
6083         * sysdeps/posix/waitid.c: Likewise.
6084         * sysdeps/unix/sysv/linux/accept.S: Likewise.
6085         * sysdeps/unix/sysv/linux/connect.S: Likewise.
6086         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
6087         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
6088         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
6089         * sysdeps/unix/sysv/linux/poll.c: Likewise.
6090         * sysdeps/unix/sysv/linux/pread.c: Likewise.
6091         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
6092         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
6093         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
6094         * sysdeps/unix/sysv/linux/readv.c: Likewise.
6095         * sysdeps/unix/sysv/linux/recv.S: Likewise.
6096         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
6097         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
6098         * sysdeps/unix/sysv/linux/send.S: Likewise.
6099         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
6100         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
6101         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
6102         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
6103         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
6104         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
6105         * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
6106         * sysdeps/unix/sysv/linux/wait.c: Likewise.
6107         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
6108         * sysdeps/unix/sysv/linux/writev.c: Likewise.
6109         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6110         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
6111
6112 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
6113
6114         * sysdeps/generic/sysdep-cancel.h: New file.
6115         * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
6116         cancelable syscall.
6117         * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
6118         recvmsg, send, sendmsg, sendto): Make cancelable.
6119         * sysdeps/unix/mman/syscalls.list (msync): Likewise.
6120         * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
6121         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6122         sendto, osf_select): Likewise.
6123         * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
6124         recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
6125         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
6126         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6127         sendto): Likewise.
6128         * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
6129         recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
6130         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
6131         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6132         sendto): Likewise.
6133         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
6134         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6135         sendto, select): Likewise.
6136         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
6137         pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
6138         Likewise.
6139         * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
6140         select, fcntl): Likewise.
6141         * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
6142         * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
6143         read, readv, select, sigsuspend, write, writev): Likewise.
6144
6145 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
6146
6147         * dirent/bug-readdir1.c: Include unistd.h.
6148
6149 2002-12-13  Jakub Jelinek  <jakub@redhat.com>
6150
6151         * locale/programs/locale.c: Include locarchive.h.
6152         (ARCHIVE_NAME): Define.
6153         (write_archive_locales): New function.
6154         (write_locales): Use it.  Ensure the same locale is not printed
6155         multiple times in verbose mode.
6156         Mode LC_IDENTIFICATION and LC_CTYPE printing into...
6157         (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
6158         functions.
6159         (struct nameent): New type.
6160         (nameentcmp): New function.
6161
6162 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
6163
6164         * posix/regex_internal.c (re_string_context_at): Guard wide char
6165         code with #ifdef RE_ENABLE_I18N.
6166
6167 2002-11-22  Paolo Bonzini  <bonzini@gnu.org>
6168
6169         * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
6170
6171 2002-12-13  Roland McGrath  <roland@redhat.com>
6172
6173         * posix/bug-regex15.c: New file.
6174         * posix/Makefile (tests): Add it.
6175
6176         * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
6177         (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
6178
6179 2002-12-13  Ulrich Drepper  <drepper@redhat.com>
6180
6181         * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
6182
6183         * misc/syslog.c (log_cleanup): Don't use parameter in
6184         __libc_lock_unlock call, use syslog_lock directly.  Adjust callers to
6185         pass NULL instead of a pointer to syslog_lock.
6186
6187 2002-12-12  Ulrich Drepper  <drepper@redhat.com>
6188
6189         * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
6190         linker map for all iconv modules.
6191         (distribute): Add gconv.map.
6192         * iconvdata/gconv.map: New file.
6193
6194         * elf/Makefile: Also check all iconv modules for text relocations.
6195
6196         * stdlib/Makefile: Remove code to automatically import GMP.
6197
6198         * elf/Makefile (tests): Add rules to build and run check-textrel.
6199         * elf/check-textrel.c: New file.
6200
6201         * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
6202         directive.
6203
6204 2002-12-11  Jakub Jelinek  <jakub@redhat.com>
6205
6206         * io/test-utime (main): If stnow.st[am]time is wrong, print it and
6207         not st.st[am]time.
6208
6209 2002-04-30  Bruno Haible  <bruno@clisp.org>
6210
6211         * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
6212         the encoding if it already has slashes.
6213         Reported by Perry Rapp <prapp@erols.com>.
6214
6215 2002-12-11  Roland McGrath  <roland@redhat.com>
6216
6217         * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
6218         (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
6219         Turn off PIC for compiling this file.
6220
6221 2002-12-11  Ulrich Drepper  <drepper@redhat.com>
6222
6223         * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
6224         definitions.  Not needed.
6225         [_LIBC]: Use definitions from libc-lock.h instead of referencing
6226         pthread routines directly.
6227         * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
6228         mutex_init calls.
6229         (arena_get2): Don't look at return value of mutex_lock.
6230
6231 2002-12-11  Roland McGrath  <roland@redhat.com>
6232
6233         * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
6234         elf-init.o instead of compiling a PIC version.
6235
6236 2002-12-11  Bruno Haible  <bruno@clisp.org>
6237
6238         * intl/gettext.h: Renamed to ...
6239         * intl/gmo.h: ... here.
6240         * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
6241         * intl/gettextP.h: Update.
6242         * intl/loadmsgcat.c: Update.
6243
6244         * intl/gettextP.h (PARAMS): Make more portable.
6245         (attribute_hidden): Define as empty macro if not already defined.
6246         * intl/hash-string.h (PARAMS): Make more portable.
6247         * intl/loadinfo.h (PARAMS): Likewise.
6248         * intl/plural-exp.h (PARAMS): Likewise.
6249         (attribute_hidden): Move definition near the definition of
6250         internal_function.
6251
6252         * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
6253         * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
6254
6255 2002-07-13  Bruno Haible  <bruno@clisp.org>
6256
6257         * intl/dcigettext.c (freea): New macro.
6258         (FREE_BLOCKS): Free also the registered blocks.
6259         (DCIGETTEXT): Free the 'search' variable.
6260         Reported by Andreas Fischer <a.fischer@asentics.de>.
6261
6262 2002-04-27  Bruno Haible  <bruno@clisp.org>
6263
6264         * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
6265         * intl/dcigettext.c: Likewise.
6266         * intl/dcgettext.c: Likewise.
6267         * intl/dgettext.c: Likewise.
6268         * intl/gettext.c: Likewise.
6269         * intl/dcngettext.c: Likewise.
6270         * intl/dngettext.c: Likewise.
6271         * intl/ngettext.c: Likewise.
6272         * intl/textdomain.c: Likewise.
6273         * intl/bindtextdom.c: Likewise.
6274         * intl/plural-exp.h: Likewise.
6275
6276 2002-01-02  Bruno Haible  <bruno@clisp.org>
6277
6278         * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
6279
6280 2001-04-30  Bruno Haible  <bruno@clisp.org>
6281
6282         * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
6283         default macro definitions.  Needed for mingw32.
6284
6285 2002-12-10  Ulrich Drepper  <drepper@redhat.com>
6286
6287         * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
6288         __builtin_constant_p to macro parameter.
6289
6290         * sysdeps/generic/sigpause.c: Define all functions as weak.
6291         * sysdeps/posix/sigpause.c: Likewise.
6292
6293         * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
6294         type size_t.
6295
6296 2002-12-10  Jakub Jelinek  <jakub@redhat.com>
6297
6298         * elf/tst-array1.c (preinit_array, init_array, fini_array):
6299         Explicitly align the array to sizeof (void *).
6300         * elf/tst-array2dep.c (init_array, fini_array): Likewise.
6301
6302         * include/libc-symbols.h: Fix a comment typo.
6303
6304         * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
6305         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
6306         Likewise.
6307         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
6308         Likewise.
6309         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
6310         (__libc_sigsuspend): Likewise.
6311         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
6312         (__libc_sigsuspend): Likewise.
6313         * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
6314         (creat): New weak alias.
6315
6316 2002-12-10  Roland McGrath  <roland@redhat.com>
6317
6318         * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
6319         contributes a manual chapter.
6320         * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
6321         around xref to it.
6322
6323         * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
6324         and move contents to ...
6325         (EXTRA_LD_ENVVARS_LINUX): ... this new macro.  Add break for nonmatch.
6326         * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
6327         it instead of duplicating its contents.
6328         (EXTRA_LD_ENVVARS): Likewise.  Add break for nonmatch.
6329
6330 2002-12-09  Jakub Jelinek  <jakub@redhat.com>
6331
6332         * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
6333         defined.
6334         * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
6335         function.
6336         (EXTRA_LD_ENVVARS): Use it.
6337         (DL_OSVERSION_INIT): Define.
6338         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
6339         dl-librecon.h.
6340         (EXTRA_LD_ENVVARS): Undef before defining.  Use _dl_osversion_init.
6341
6342 2002-12-10  Ulrich Drepper  <drepper@redhat.com>
6343
6344         * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
6345
6346         * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
6347         call.  It is not allowed to destroy pthread mutexes which are
6348         still in use even though it is safe for our implementations.  If
6349         somebody still uses the descriptor it is a bug.
6350
6351 2002-12-09  Richard Henderson  <rth@redhat.com>
6352
6353         * csu/abi-note.S: Use .p2align, not .align.
6354
6355 2002-12-09  Ulrich Drepper  <drepper@redhat.com>
6356
6357         * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
6358         __libc_select aliases.
6359
6360         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
6361         alias.
6362
6363         * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
6364
6365         * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
6366
6367         * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
6368
6369         * sysdeps/unix/syscalls.list: Define __libc_select alias.
6370
6371         * sysdeps/posix/waitid.c: Define __libc_waitid alias.
6372
6373         * sysdeps/posix/sigpause.c: Define __libc_sigpause and
6374         __libc___xpg_sigpause aliases.
6375
6376         * sysdeps/generic/pselect.c: Define __libc_pselect alias.
6377
6378         * misc/error.c: Remove use of USE_IN_LIBIO.
6379
6380 2002-12-08  Roland McGrath  <roland@redhat.com>
6381
6382         * elf/Makefile (tests): Uncomment tst-array[123].
6383         * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
6384         * csu/elf-init.c: New file.
6385         * csu/Makefile (routines, static-only-routines): Add elf-init.
6386         * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
6387         and __libc_csu_fini in place of _fini.
6388         * sysdeps/arm/elf/start.S: Likewise.
6389         * sysdeps/cris/elf/start.S: Likewise.
6390         * sysdeps/hppa/elf/start.S: Likewise.
6391         * sysdeps/i386/elf/start.S: Likewise.
6392         * sysdeps/ia64/elf/start.S: Likewise.
6393         * sysdeps/m68k/elf/start.S: Likewise.
6394         * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
6395         * sysdeps/mips/elf/start.S: Likewise.
6396         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
6397         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
6398         * sysdeps/s390/s390-32/elf/start.S: Likewise.
6399         * sysdeps/s390/s390-64/elf/start.S: Likewise.
6400         * sysdeps/sh/elf/start.S: Likewise.
6401         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6402         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6403         * sysdeps/x86_64/elf/start.S: Likewise.
6404
6405         * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
6406         struct containing function ptr and value, free it.
6407         (__aio_notify_only): Allocate that and copy values from SIGEV into it.
6408         It's not safe to let the new thread use the SIGEV pointer.
6409
6410 2001-10-20  Paul Eggert  <eggert@twinsun.com>
6411
6412         * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
6413         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
6414         Use strerror_r that is only a macro, even if it is not a function.
6415         (strerror): Check for HAVE_DECL_STRERROR before declaring.
6416         (private_strerror): Use prototypes, not old-style function definition.
6417         (print_errno_message): New function.
6418         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
6419         char*-flavored one.
6420         (error_tail, error, error_at_line): Use it.
6421
6422 2002-12-07  Carlos O'Donell  <carlos@baldric.uwo.ca>
6423
6424         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
6425
6426 2002-12-08  Ulrich Drepper  <drepper@redhat.com>
6427
6428         * scripts/output-format.sed: Fix bug in one of the s expressions
6429         which used / for one too many things.
6430
6431         * include/unistd.h: Declare __libc_close.
6432
6433 2002-12-07  Ulrich Drepper  <drepper@redhat.com>
6434
6435         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
6436
6437 2002-12-07  Roland McGrath  <roland@redhat.com>
6438
6439         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
6440         from 2002-12-06, but remove unnecessary memset call without removing
6441         necessary copy of initialization image.
6442
6443         * Makerules ($(common-objpfx)format.lds): New target.
6444         (common-generated): Add it.
6445         ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
6446         * scripts/output-format.sed: New file.
6447         * Makefile (distribute): Add it.
6448
6449 2002-12-07  Ulrich Drepper  <drepper@redhat.com>
6450
6451         * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
6452         Reported by Art Haas <ahaas@airmail.net>.
6453
6454 2002-12-07  Kenneth W. Chen  <kenneth.w.chen@intel.com>
6455
6456         * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec.  Fix .recovery4.
6457
6458 2002-12-07  Jakub Jelinek  <jakub@redhat.com>
6459
6460         * string/test-strncpy.c (do_random_tests): Improve test coverage.
6461
6462 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
6463
6464         * test-skeleton.c (timeout_handler): Allow expected signal to be
6465         SIGALRM.
6466
6467         * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
6468
6469         * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
6470
6471 2002-12-07  Jakub Jelinek  <jakub@redhat.com>
6472
6473         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
6474         (SYSCALL_ERROR_HANDLER): Fix a pasto.
6475         Reported by Jeff Bailey <jbailey@nisa.net>.
6476
6477 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
6478
6479         * sysdeps/generic/libc-tls.c: Undo last patch.
6480
6481         * include/wctype.h: Define iswalnum with libc_hidden_proto.
6482
6483         * include/signal.h: Define raise with libc_hidden_proto.
6484
6485         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
6486         __execve instead of snprintf and execve.
6487
6488         * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
6489         again a bit.
6490
6491 2002-12-06  Jakub Jelinek  <jakub@redhat.com>
6492
6493         * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
6494         * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
6495
6496 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
6497
6498         * misc/syslog.c (log_cleanup): New function.
6499         (openlog): Use log_cleanup instead of __libc_mutex_unlock.
6500         (closelog): Likewise.
6501
6502         * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
6503         * elf/dl-iteratephdr.c: Likewise.
6504         * elf/dl-lookup.c: Likewise.
6505         * elf/dl-misc.c: Likewise.
6506         * elf/dl-open.c: Likewise.
6507         * elf/dl-support.c: Likewise.
6508         * elf/rtld.c: Likewise.
6509         * sysdeps/generic/ldsodefs.h: Likewise.
6510         * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
6511         * sysdeps/mach/bits/libc-lock.h: Likewise.
6512         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6513
6514 2002-12-06  Roland McGrath  <roland@redhat.com>
6515
6516         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
6517
6518         * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
6519         (malloc_starter, memalign_starter, free_starter): Don't define these.
6520         * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
6521         Don't declare them either.
6522         * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
6523         __pthread_initialize, so no need to set hooks to *_starter.
6524         (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
6525         [_LIBC && SHARED && USE_TLS && !USE___THREAD]
6526         (__libc_malloc_pthread_startup): New function.
6527         * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
6528
6529         * malloc/hooks.c (memalign_starter): New function.
6530         * malloc/malloc.c: Declare it.
6531         * malloc/arena.c (save_memalign_hook): New variable.
6532         (ptmalloc_init): Set __memalign_hook to memalign_starter.
6533
6534         * elf/dl-minimal.c (free): Clear the memory.
6535         (calloc): Just call malloc, knowing all memory it returns is cleared.
6536
6537         * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
6538         malloc and memset; calloc can avoid the zeroing when redundant.
6539         (_dl_tls_setup): Likewise.
6540         * elf/dl-load.c (decompose_rpath): Likewise.
6541         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
6542         call, since memory from sbrk at startup is already zero.
6543
6544         * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
6545         error string for failure, null for success.  Update callers.
6546         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
6547         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
6548
6549 2002-12-05  Jakub Jelinek  <jakub@redhat.com>
6550
6551         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
6552         args to i:iipi.
6553         (readahead): Change args to i:iii.
6554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
6555         Change args to i:iii.
6556         * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
6557         args to i:iiii.
6558
6559 2002-12-05  Roland McGrath  <roland@redhat.com>
6560
6561         * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
6562         call all functions rather than none.
6563         Reported by Mark P. Mitchell <mark@codesourcery.com>.
6564
6565 2002-12-04  Roland McGrath  <roland@redhat.com>
6566
6567         * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
6568         on _nl_current_LC_* variables.
6569
6570 2002-12-05  Ulrich Drepper  <drepper@redhat.com>
6571
6572         * dirent/bug-readdir1.c (main): Don't call closedir, just close
6573         the file descriptor.  This is testing what the bug report was about.
6574
6575 2002-12-04  Ulrich Drepper  <drepper@redhat.com>
6576
6577         * po/be.po: New file.
6578
6579         * argp/Makefile (tests): Add tst-argp1.
6580
6581         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
6582         Change type of _attribute to void*.
6583         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
6584         * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
6585         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
6586         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6587         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6588
6589 2002-12-04  Roland McGrath  <roland@redhat.com>
6590
6591         * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
6592         members to the end, so a libpthread compiled with !USE_TLS will still
6593         find other members properly.
6594
6595         * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
6596         operand for DEST memory.  Fix dummy input operand to use SRC.
6597         Reported by Davin McCall <davmac@ozonline.com.au>.
6598
6599         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
6600         alignment when initializing the DTV entry.
6601
6602         * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
6603         when TLS has not been set up, try to set it up if we can.
6604         * elf/tst-tls4.c: Revert last change.
6605         * elf/tst-tls5.c: Likewise.
6606         * elf/tst-tls6.c: Likewise.
6607         * elf/tst-tls7.c: Likewise.
6608         * elf/tst-tls8.c: Likewise.
6609         * elf/tst-tls9.c: Likewise.
6610
6611         * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
6612         * sysdeps/generic/ldsodefs.h: Declare it.
6613         * elf/Versions (ld: GLIBC_PRIVATE): Add it.
6614         * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
6615         function, broken out of __libc_setup_tls.
6616         (init_static_tls): Likewise.
6617         (__libc_setup_tls): Call them.
6618         (_dl_tls_setup): New function, uses new subroutines.
6619
6620         * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
6621         Clear the pointer when returning true.
6622         (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
6623         first element of the slotinfo list too.
6624
6625         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
6626         [SHARED].
6627
6628         * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
6629         (_dl_determine_tlsoffset): Likewise.
6630
6631         * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
6632         startup_error_tsd, made global.
6633         (dl_main): Update initialization.
6634         * elf/dl-tsd.c: Likewise.
6635         * sysdeps/generic/ldsodefs.h: Declare it.
6636
6637 2002-12-03  Ulrich Drepper  <drepper@redhat.com>
6638
6639         * manual/texinfo.tex: Update from latest upstream version.
6640
6641 2002-12-03  Roland McGrath  <roland@redhat.com>
6642
6643         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
6644         area surplus in calculation for sbrk call.
6645
6646         * iconvdata/cp1125.c: New file.
6647         * iconvdata/Makefile (distribute): Add it.
6648         (modules): Add CP1125.
6649         (gen-8bit-gap-modules): Add cp1125.
6650         * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
6651         * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
6652
6653 2002-12-03  Andreas Jaeger  <aj@suse.de>
6654
6655         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
6656
6657 2002-12-03  Ulrich Drepper  <drepper@redhat.com>
6658
6659         * sysdeps/posix/system.c (do_system): Make signal handler
6660         installation thread safe.
6661
6662 2002-12-02  Roland McGrath  <roland@redhat.com>
6663
6664         * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
6665         caller from EXTRA to -.
6666         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6667         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6668         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6669
6670 2002-12-02  Carlos O'Donell  <carlos@baldric.uwo.ca>
6671
6672         * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
6673         bits of RM are cleared.
6674
6675 2002-12-02  Roland McGrath  <roland@redhat.com>
6676
6677         * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
6678         TLS setup is required.
6679         * elf/tst-tls5.c: Likewise.
6680         * elf/tst-tls6.c: Likewise.
6681         * elf/tst-tls7.c: Likewise.
6682         * elf/tst-tls8.c: Likewise.
6683         * elf/tst-tls9.c: Likewise.
6684
6685         * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
6686         `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
6687         * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
6688         for being null before calling free_slotinfo.
6689         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
6690         dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
6691
6692 2002-11-30  Bruno Haible  <bruno@clisp.org>
6693
6694         * iconv/gconv.h (__gconv_btowc_fct): New typedef.
6695         (struct __gconv_step): New field __btowc_fct.
6696         * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
6697         * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
6698         __BUILTIN_TRANS.
6699         (__gconv_btwoc_ascii): New declaration.
6700         * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
6701         (__gconv_btwoc_ascii): New function.
6702         * iconv/gconv_builtin.h: Add BtowcFct argument to all
6703         BUILTIN_TRANSFORMATION invocations.
6704         * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
6705         * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
6706         * iconv/gconv_builtin.c (map): New field btowc_fct.
6707         (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
6708         btowc_fct field.
6709         (__gconv_get_builtin_trans): Initialize __btowc_fct field.
6710         * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
6711         * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
6712         * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
6713         * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
6714         (gconv_init): Initialize __btowc_fct field.
6715         Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
6716         * iconv/loop.c: Document ONEBYTE_BODY.
6717         (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
6718         Undefine ONEBYTE_BODY at the end.
6719         * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
6720         * iconvdata/8bit-gap.c (NONNUL): New macro.
6721         (BODY for FROM_LOOP): Use it.
6722         (ONEBYTE_BODY): New macro.
6723         * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
6724         (NONNUL): New macro.
6725         * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
6726         * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
6727         * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
6728         * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
6729         * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
6730         * iconvdata/big5.c (ONEBYTE_BODY): New macro.
6731         * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
6732         * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
6733         * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
6734         * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
6735         * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
6736         * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
6737         * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
6738         * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
6739         * iconvdata/ibm932.c: Include <stdbool.h>.
6740         (TRUE, FALSE): Remove macros.
6741         (BODY for FROM_LOOP): Remove unused variable rp1.
6742         (ONEBYTE_BODY): New macro.
6743         (BODY for TO_LOOP): Use bool.
6744         * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
6745         * iconvdata/ibm943.c: Include <stdbool.h>.
6746         (TRUE, FALSE): Remove macros.
6747         (BODY for FROM_LOOP): Remove unused variable rp1.
6748         (ONEBYTE_BODY): New macro.
6749         (BODY for TO_LOOP): Use bool.
6750         * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
6751         * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
6752         * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
6753         * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
6754         * iconvdata/johab.c (ONEBYTE_BODY): New macro.
6755         * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
6756         * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
6757         * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
6758         * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
6759         * iconvdata/gbbig5.c: Tweak comment.
6760
6761 2002-12-02  Ulrich Drepper  <drepper@redhat.com>
6762
6763         * po/fi.po: Update from translation team.
6764
6765 2002-12-01  Roland McGrath  <roland@redhat.com>
6766
6767         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
6768         testing getdents64 return value.
6769
6770         * scripts/versions.awk: Don't pass -n flag to sort command.
6771
6772         * posix/bug-regex13.c: Include <string.h>.
6773
6774         * sysdeps/generic/libc-start.c (__libc_start_main): Do
6775         DL_SYSDEP_OSCHECK here.
6776         * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
6777         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
6778
6779         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
6780         argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
6781
6782         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
6783         instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
6784
6785         * include/link.h: Comment typo fix.
6786
6787 2002-12-01  Roland McGrath  <roland@frob.com>
6788
6789         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
6790         (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
6791         _POSIX_MEMORY_PROTECTION): Likewise.
6792         (_POSIX_POLL, _POSIX_SELECT): Removed.
6793
6794 2002-11-28  Ulrich Drepper  <drepper@redhat.com>
6795
6796         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
6797         require it to 200112L.  Remove _POSIX_POLL and _POSIX_SELECT.
6798
6799 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
6800
6801         * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
6802         USE___THREAD.
6803         * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
6804         "=v" constraints.
6805
6806 2002-11-28  Ulrich Drepper  <drepper@redhat.com>
6807
6808         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
6809         branch prediction buffers by using unpaired call/ret.
6810
6811 2002-11-27  Ulrich Drepper  <drepper@redhat.com>
6812
6813         * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
6814         first parameters constraint string.
6815         (ASMFMT_3): Likewise.  Patch by stefan.lauterbach@mincom.de.
6816
6817 2002-11-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
6818
6819         * posix/regcomp.c (parse_expression): Set the bit since the back
6820         reference is used in the regular expression.
6821         * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
6822         of malloc failure.
6823         (re_node_set_init_copy): Likewise.
6824         * posix/regex_internal.h (state_array_t): New structure.
6825         (re_sub_match_last_t): Likewise.
6826         (re_sub_match_top_t): Likewise.
6827         (re_match_context_t): Add new members.
6828         (re_dfa_t): Likewise.
6829         * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
6830         to check the matching is really correct, and retry if failed.
6831         Move the routin pruning the impossible nodes from here, ...
6832         (prune_impossible_nodes): To this function.
6833         (check_matching): Invoke check_subexp_matching_top, and replace
6834         redundant checking with transit_state_bkref invocation.
6835         (proceed_next_node): Replace strncmp with memcmp.  Reported by
6836         Paolo Bonzini  <bonzini@gnu.org>.
6837         (update_cur_sifted_state): Remove search_subexp invocation.
6838         (search_subexp): Remove this function.
6839         (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
6840         optimization.
6841         (sift_states_bkref): Use search_cur_bkref_entry for optimization.
6842         Remove unused invocation of match_ctx_add_entry.
6843         (transit_state): Invoke check_subexp_matching_top.
6844         (check_subexp_matching_top): New function.
6845         (transit_state_bkref): Remove unused array.
6846         Merge transit_state_bkref_loop.
6847         (transit_state_bkref_loop): Use get_subexp instead of
6848         sift_states_backward.  Use search_cur_bkref_entry for optimization.
6849         Merge this function to transit_state_bkref.
6850         (get_subexp): New function.
6851         (get_subexp_sub): Likewise.
6852         (find_subexp_node): Likewise.
6853         (check_arrival): Likewise.
6854         (check_arrival_expand_ecl): Likewise.
6855         (check_arrival_expand_ecl_sub): Likewise.
6856         (expand_bkref_cache): Likewise.
6857         (match_ctx_init): Initialize new members.
6858         (match_ctx_clean): New function.
6859         (match_ctx_free): Release new members.
6860         (match_ctx_free_subtops): New function.
6861         (match_ctx_add_entry): Fix indent.
6862         (search_cur_bkref_entry): New function.
6863         (match_ctx_add_subtop): Likewise.
6864         (match_ctx_add_sublast): Likewise.
6865
6866 2002-11-25  Ulrich Drepper  <drepper@redhat.com>
6867
6868         * iconv/Makefile (tests): Remove tst-iconv4.c
6869         * iconv/tst-iconv4.c: Moved to...
6870         * iconvdata/tst-iconv4.c: ...here.  New file.
6871         * iconvdata/Makefile (tests): Add tst-iconv4.  Add dependencies.
6872
6873 2002-11-25  Roland McGrath  <roland@redhat.com>
6874
6875         * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
6876         Grok AF_LINK if defined.
6877         From Momchil Velikov <velco@fadata.bg>.
6878
6879         * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
6880         brdaddr, or dstaddr, just set those pointers to null and don't fail.
6881         Reported by Momchil Velikov <velco@fadata.bg>.
6882
6883         * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
6884         is > sizeof IFR->ifa_addr, advance past the whole longer length.
6885         (__ifreq): Count up NIFS that way too.
6886         Reported by Momchil Velikov <velco@fadata.bg>.
6887
6888         * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
6889
6890         * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
6891         and <fpu_control.h>.
6892
6893 2002-11-24  Ulrich Drepper  <drepper@redhat.com>
6894
6895         * elf/elf.h (EM_ST19): Fix typo.
6896
6897 2002-11-25  Jakub Jelinek  <jakub@redhat.com>
6898
6899         * include/errno.h (__set_errno): Define as errno = val
6900         unconditionally.
6901
6902 2002-11-24  Roland McGrath  <roland@redhat.com>
6903
6904         * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
6905         * sysdeps/posix/writev.c: Likewise.
6906         From Momchil Velikov <velco@fadata.bg>.
6907
6908         * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
6909         calling *GL(dl_error_catch_tsd) for a thread-local location.
6910         * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
6911         (dl_main): Same for GL(dl_error_catch_tsd) initialization.
6912         * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
6913
6914         * libio/iofflush.c: Add libc_hidden_def.
6915         * libio/iofwrite.c: Likewise.
6916         * sysdeps/generic/sigtimedwait.c: Likewise.
6917         * sysdeps/generic/sigwaitinfo.c: Likewise.
6918         * sysdeps/posix/sigwait.c: Likewise.
6919         Reported by Momchil Velikov <velco@fadata.bg>.
6920
6921         * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
6922         to match <arpa/inet.h> declaration.
6923         * inet/inet_netof.c (inet_netof): Likewise.
6924         * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
6925         Reported by Momchil Velikov <velco@fadata.bg>.
6926
6927         * configure.in: Skip AUTOCONF check under --without-cvs.
6928         * configure: Regenerated.
6929
6930         * posix/Makefile (headers): Add bits/pthreadtypes.h.
6931         * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
6932         * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
6933
6934 2002-11-24  Andreas Schwab  <schwab@suse.de>
6935
6936         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
6937         with six arguments.
6938
6939 2002-11-19  Jim Meyering  <jim@meyering.net>
6940
6941         * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
6942         as `static'.
6943         * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
6944
6945 2002-11-23  Roland McGrath  <roland@redhat.com>
6946
6947         * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
6948         Just produce hex output for datum sizes.
6949
6950         * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
6951         Reported by Luca Barbieri <ldb@ldb.ods.org>.
6952
6953 2002-11-20  Steven Munroe  <sjmunroe@us.ibm.com>
6954
6955         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
6956         [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
6957         and __unused3 fields.
6958         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
6959         [__WORDSIZE == 32]: Only PPC32 requires __unused1
6960         and __unused2 fields.
6961         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
6962         [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
6963         __unused3, and __unused4 fields.
6964
6965         * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
6966         obtain lowest address for profiling in __monstartup call.
6967
6968 2002-11-21  Roland McGrath  <roland@redhat.com>
6969
6970         * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
6971         $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
6972
6973         * locale/localeinfo.h (struct locale_data): Revert last change.
6974
6975         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
6976         From Ian Wienand <ianw@gelato.unsw.edu.au>.
6977
6978         * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
6979         __NR_pread64 if not defined.
6980         (__NR_pwrite): Define to __NR_pwrite64 if not defined.
6981         From Ian Wienand <ianw@gelato.unsw.edu.au>.
6982
6983 2002-11-21  Roland McGrath  <roland@frob.com>
6984
6985         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
6986         __libc_multiple_libcs here.  Call __setfpucw.
6987
6988 2002-11-21  Ulrich Drepper  <drepper@redhat.com>
6989
6990         * elf/Makefile (tests): Don't run test-arrayX tests for now.
6991
6992         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
6993         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
6994         CLONE_CHILD_*TID flags.
6995
6996 2002-11-20  Andreas Jaeger  <aj@suse.de>
6997
6998         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
6999         We pass struct ucontext on x86-64.
7000         (GET_PC): Adjust.
7001         (GET_FRAME): Adjust.
7002         (GET_STACK): Adjust.
7003
7004 2002-11-20  Roland McGrath  <roland@redhat.com>
7005
7006         * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
7007         conditionalize [! DO_VERSIONING] #error.
7008
7009         * scripts/abilist.awk: Grok function descriptor symbols.
7010
7011         * intl/tst-gettext.c (main): Check return values from setlocale.
7012         Add necessary unsetenv's to make LANG=existing-locale check work.
7013
7014         * intl/tst-gettext.sh: Use mkdir -p.  Copy test files unconditionally,
7015         so aborted prior runs don't confuse things.
7016
7017         * locale/localeinfo.h (struct locale_data: union locale_data_value):
7018         Use uintptr_t instead of unsigned int for `word' member.
7019         (_NL_CURRENT_WORD): Cast to uint32_t.
7020
7021         * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
7022         value.
7023
7024 2002-11-20  Ulrich Drepper  <drepper@redhat.com>
7025
7026         * elf/tls-macros.h: Add IA-64 definitions.
7027         Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
7028
7029         * iconv/Makefile (tests): Add tst-iconv4.
7030         * iconv/tst-iconv4.c: New file.
7031
7032         * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
7033         __GCONV_EMPTY_INPUT only if input is really empty.  Otherwise
7034         __GCONV_INCOMPLETE_INPUT.
7035         (ucs4le_internal_loop): Likewise.
7036         (ucs4le_internal_loop_unaligned): Likewise.
7037         * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
7038         * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
7039         * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
7040
7041         * iconv/loop.c (LOOPFCT): First test for empty input then for full
7042         output buffer.
7043
7044         * inet/getnameinfo.c: Use extend_alloca where appropriate.
7045         * sysdeps/posix/getaddrinfo.c: Likewise.
7046
7047         * include/alloca.h (extend_alloca): New define.  Based on stack
7048         direction it'll try to append to the previouls allocated buffer.
7049
7050 2002-11-07  Thorsten Kukuk  <kukuk@suse.de>
7051
7052         * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
7053         use the same service for AF_INET and AF_INET6.
7054
7055 2002-11-19  Ulrich Drepper  <drepper@redhat.com>
7056
7057         * intl/localealias.c (read_alias_file): Use only about 400 bytes
7058         of stack space instead of 16k.
7059
7060 2002-11-18  Wolfram Gloger  <wg@malloc.de>
7061
7062         * malloc/arena.c
7063         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
7064         nothing if not initialized.  Bug report from Marcus Brinkmann
7065         <Marcus.Brinkmann@ruhr-uni-bochum.de>.
7066
7067 2002-11-19  Roland McGrath  <roland@redhat.com>
7068
7069         * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
7070         sched_setaffinity.
7071
7072         * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
7073         `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
7074         test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
7075         * configure: Regenerated.
7076
7077 2002-11-19  Ulrich Drepper  <drepper@redhat.com>
7078
7079         * include/dlfcn.h: __libc_dlopen is now a macro calling
7080         __libc_dlopen_mode with the extra parameter RTLD_LAZY.
7081         (__libc_dlopen_mode): New prototype.
7082         * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen.  Add
7083         new parameter.  Store new parameter in mode field of structure passed
7084         to do_dlopen.
7085         (struct do_dlopen_args): Add new field mode.
7086         (do_dlopen): Pass mode from parameter structure to _dl_open.
7087
7088 2002-11-11  Randolf Chung  <tausq@debian.org>
7089
7090         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
7091         (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
7092         * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
7093
7094         * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
7095
7096         * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
7097         Set -mdisable-fpregs for this file.
7098
7099 2002-11-11  Carlos O'Donell  <carlos@baldric.uwo.ca>
7100
7101         * sysdeps/unix/sysv/linux/configure.in:
7102         Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
7103         from gcc-3.0 era for backwards compatibility.
7104         * sysdeps/unix/sysv/linux/configure: Regenerate.
7105
7106         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
7107         Define mcontext_t as a sigcontext.
7108
7109 2002-11-18  Roland McGrath  <roland@redhat.com>
7110
7111         * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
7112         Free memory in `last_result' if it was used.
7113
7114         * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
7115         all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
7116         Do the parsing inline instead of copying strings and calling
7117         inet_network, and properly skip all alias names not matching the form.
7118
7119         * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
7120
7121 2002-11-17  Ulrich Drepper  <drepper@redhat.com>
7122
7123         * manual/pattern.texi (Wordexp Example): Fix sample code.
7124
7125         * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
7126         childs stack which will be loaded into the %esi register.
7127
7128 2002-11-14  Paul Eggert  <eggert@twinsun.com>
7129
7130         * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
7131         overflow when skipping the question part and when unpacking aliases.
7132
7133 2002-11-15  Roland McGrath  <roland@redhat.com>
7134
7135         * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
7136         s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
7137         Instead add $(calls:s_%=m_%) to get m_* versions of them all.
7138
7139 2002-11-15  Jakub Jelinek  <jakub@redhat.com>
7140
7141         * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
7142         * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
7143
7144 2002-11-15  Roland McGrath  <roland@redhat.com>
7145
7146         * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
7147         * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
7148         from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
7149         (+make-include-of-dep): New canned sequence.
7150
7151         * stdlib/canonicalize.c (__realpath): Check for malloc failure.
7152         From Dmitry V. Levin <ldv@altlinux.org>.
7153
7154 2002-11-14  Roland McGrath  <roland@redhat.com>
7155
7156         * sysdeps/generic/errno.c (__libc_errno): Remove alias.
7157         * inet/herrno.c (__libc_h_errno): Likewise.
7158         * resolv/res_libc.c (__libc_res): Likewise.
7159         [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
7160         (__res_state) [! USE___THREAD]: Don't define as weak.
7161         * csu/Versions: Revert last change.
7162         * resolv/Versions: Revert last change.
7163
7164         * Makerules ($(common-objpfx)%.make): New pattern rule.
7165         * tls.make.c: New file.
7166         * Makefile (distribute): Add it.
7167
7168         * sysdeps/generic/errno.c [! USE___THREAD]
7169         [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
7170         with compat_symbol so they are not link-time visible.
7171         [! USE___THREAD] (__libc_errno): New alias for errno.
7172         * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
7173         Add __libc_errno here.
7174         * inet/herrno.c [USE___THREAD]: Use this conditional
7175         in place of [USE_TLS && HAVE___THREAD].
7176         [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
7177         (h_errno, _h_errno): Declare these with compat_symbol so they are not
7178         link-time visible.
7179         [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
7180         * resolv/res_libc.c [! USE___THREAD]
7181         [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
7182         (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
7183         (__libc_res): Define as alias for _res.
7184         * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
7185         Add __libc_h_errno and __libc_res here.
7186
7187 2002-11-14  Jakub Jelinek  <jakub@redhat.com>
7188
7189         * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
7190         * resolv/Versions (h_errno, _res): Likewise.
7191
7192 2002-11-14  Roland McGrath  <roland@redhat.com>
7193
7194         * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
7195         (%.symlist): Likewise.
7196
7197 2002-11-13  Roland McGrath  <roland@redhat.com>
7198
7199         * scripts/abilist.awk: New file.
7200         * Makefile (distribute): Add it.
7201         * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
7202         (tests): Depend on .symlist file for each $(install-lib.so-versioned).
7203         [$(subdir) = elf] (tests): Depend on libc.symlist.
7204         (generated, common-generated): Add those files.
7205
7206         * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
7207         * configure: Regenerated.
7208         * config.make.in (OBJDUMP): New variable, substituted by configure.
7209
7210         * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
7211         (mallochook, reallochook): Set them up.
7212         (checkhdr): Check HDR->magic2 value.
7213         (freehook): Reset HDR->magic2.
7214         (memalignhook): New static function.
7215         (old_memalign_hook): New static variable.
7216         (mcheck, reallochook): Set __memalign_hook to memalignhook.
7217
7218         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
7219         for the new TCB.
7220
7221 2002-11-13  Andreas Jaeger  <aj@suse.de>
7222
7223         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
7224         attribute.
7225         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7226
7227 2002-11-11  Paul Eggert  <eggert@twinsun.com>
7228
7229         * manual/crypt.texi (Cryptographic Functions): Mention that
7230         the MD5 one-way algorithm is compatible with BSD's.
7231
7232 2002-11-11  Isamu Hasegawa  <isamu@yamato.ibm.com>
7233
7234         * posix/regex_internal.c (re_string_skip_chars): Also return the last
7235         wide character.
7236         (re_string_reconstruct): Calculate the context by itself when the
7237         offset points out of the valid range.
7238         (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
7239         * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
7240         (IS_WIDE_WORD_CHAR): New macro.
7241         (IS_WIDE_NEWLINE): New macro.
7242
7243 2002-11-12  Andreas Jaeger  <aj@suse.de>
7244
7245         * sysdeps/x86_64/strchr.S: Don't use one register for two
7246         purposes, this fixes a bug noticed by test-strchr.c.
7247
7248         * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
7249         correctly.
7250
7251 2002-11-12  Roland McGrath  <roland@redhat.com>
7252
7253         * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
7254         (_G_IO_NO_BACKWARD_COMPAT): Define it.
7255
7256         * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
7257         instead of <pt-machine.h>.
7258         [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
7259         testandset.
7260         From Ian Wienand <ianw@gelato.unsw.edu.au>.
7261
7262 2002-11-10  Roland McGrath  <roland@redhat.com>
7263
7264         * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
7265         Call fputs instead of fwprintf (simpler to follow in debugger).
7266
7267         * crypt/md5-crypt.c: Doc fix.
7268
7269         * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
7270         the beginning of generated target commands.
7271
7272         * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
7273         dependencies for these in case implicit rule search skipped the
7274         nonexistent source directory.
7275         * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
7276         files with $(object-suffixes) as targets too.
7277         * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
7278         and a target for it using $(make-target-directory).
7279
7280         * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
7281
7282 2002-11-10  Roland McGrath  <roland@frob.com>
7283
7284         * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
7285         * sysdeps/generic/bits/pthreadtypes.h: ... here.
7286
7287         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
7288         l_start == 0 and l_len == 1 as we do l_len == 0.
7289
7290 2002-11-10  Ulrich Drepper  <drepper@redhat.com>
7291
7292         * po/da.po: Update from translation team.
7293
7294 2002-11-10  Roland McGrath  <roland@redhat.com>
7295
7296         * config.make.in (includedir): New variable, substituted by configure.
7297         Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
7298         * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
7299
7300 2002-11-10  Andreas Jaeger  <aj@suse.de>
7301
7302         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
7303         REG_OLDMASK and REG_CR2 to synch with kernel header.
7304         (NGREG): Increase.
7305
7306         * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
7307         aliasing problem.
7308         * nss/getXXbyYY_r.c (INTERNAL): Likewise.
7309         * nss/getnssent_r.c (__nss_getent_r): Likewise.
7310         (__nss_setent): Likewise.
7311         (__nss_getent_r): Likewise.
7312         * inet/getnetgrent_r.c (innetgr): Likewise.
7313         (__internal_setnetgrent_reuse): Likewise.
7314         (internal_getnetgrent_r): Likewise.
7315         * inet/ether_hton.c (ether_hostton): Likewise.
7316         * inet/ether_ntoh.c (ether_ntohost): Likewise.
7317         * sunrpc/netname.c (netname2user): Likewise.
7318         * sunrpc/publickey.c (getpublickey): Likewise.
7319         (getsecretkey): Likewise.
7320
7321 2002-11-09  Marcus Brinkmann  <marcus@gnu.org>
7322
7323         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
7324         error in range calculation.
7325
7326 2002-10-09  Jakub Jelinek  <jakub@redhat.com>
7327
7328         * string/test-strspn.c (do_test): Ensure zero termination.
7329         * string/test-strpbrk.c (do_test): Likewise.
7330         * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
7331         * string/test-strncpy.c (stupid_strncpy): Likewise.
7332         * string/test-stpncpy.c (stupid_stpncpy): Likewise.
7333
7334 2002-10-08  Roland McGrath  <roland@redhat.com>
7335
7336         * string/test-string.h (test_init): Fill BUF1 and BUF2 with
7337         nonzero characters.
7338
7339 2002-09-22  H.J. Lu  <hjl@gnu.org>
7340
7341         * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
7342         from PAGE_SHIFT.  Define if not defined.  Check MMAP2_PAGE_SHIFT
7343         only if __NR_mmap2 is defined.
7344
7345         * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
7346         * sysdeps/unix/sysv/linux/mmap64.c: ... here.
7347         * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
7348         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
7349
7350 2002-11-08  Jakub Jelinek  <jakub@redhat.com>
7351
7352         * posix/bug-regex13.c (tests): Add new test.
7353
7354         * string/test-strchr.c (stupid_strchr): New function.
7355         (do_random_tests): Make sure the string is zero terminated.
7356         * string/test-strpbrk.c (stupid_strpbrk): New function.
7357         (do_random_tests): Make sure the string is zero terminated.
7358         * string/test-strcmp.c (stupid_strcmp): New function.
7359         (do_random_tests): Make sure the strings are zero terminated.
7360         * string/test-strspn.c (stupid_strspn): New function.
7361         (simple_strspn): Rename rej argument to acc.
7362         (do_random_tests): Make sure the string is zero terminated.
7363         * string/test-strcspn.c (stupid_strcspn): New function.
7364         * string/test-strncpy.c (stupid_strncpy): New function.
7365         * string/test-stpncpy.c (stupid_stpncpy): New function.
7366         * string/test-strncmp.c (stupid_strncmp): New function.
7367         (do_random_tests): Make sure the strings are zero terminated.
7368         * string/test-string.h (impl_t): Change test into long.
7369         (IMPL): Add __attribute__((aligned (sizeof (void *)))).
7370
7371 2002-11-08  Roland McGrath  <roland@redhat.com>
7372
7373         * sysdeps/ia64/elf/configure.in: Add TLS check.
7374         From Ian Wienand <ianw@cse.unsw.edu.au>.
7375         * sysdeps/ia64/elf/configure: Regenerated.
7376
7377 2002-11-07  Roland McGrath  <roland@redhat.com>
7378
7379         * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
7380         place of _IO_new_do_write.
7381         [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
7382         #undef before versioned_symbol use.
7383
7384 2002-11-07  Richard Henderson  <rth@redhat.com>
7385
7386         * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
7387         * configure: Regenerated.
7388         * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
7389         * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
7390         (RTLD_START): Likewise.  Access _dl_skip_args, _rtld_local, and
7391         _dl_fini via gp-relative relocations.
7392         * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
7393
7394         * elf/tls-macros.h: Add alpha versions.
7395         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
7396         * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
7397         * sysdeps/unix/alpha/sysdep.h: Likewise.  Add SYSCALL_ERROR_HANDLER.
7398         * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
7399         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
7400         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
7401         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
7402         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7403         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
7404         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
7405         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
7406         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
7407         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
7408         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
7409         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
7410         * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
7411         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
7412         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
7413
7414         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
7415         Kill argument registers across the inline syscall.
7416
7417         * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
7418
7419         * linuxthreads/sysdeps/alpha/tls.h: New file.
7420         * sysdeps/alpha/dl-tls.h: New file.
7421
7422 2002-10-29  David Mosberger  <davidm@hpl.hp.com>
7423
7424         * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
7425         (gmon_initializer): New function.
7426         (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
7427         __gmon_start__ here.  Call it from gmon_initializer() instead.
7428
7429 2002-03-12  H.J. Lu  <hjl@gnu.org>
7430
7431         * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
7432         tst-array2, and tst-array3.
7433         [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
7434         [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
7435         ($(objpfx)tst-array1.out): New target.
7436         ($(objpfx)tst-array2): Likewise.
7437         ($(objpfx)tst-array2.out): Likewise.
7438         ($(objpfx)tst-array3.out): Likewise.
7439         * elf/tst-array1.c: New file.
7440         * elf/tst-array1.exp: Likewise.
7441         * elf/tst-array2.c: Likewise.
7442         * elf/tst-array2dep.c: Likewise.
7443         * elf/tst-array2.exp: Likewise.
7444         * elf/tst-array3.c: Likewise.
7445
7446 2002-10-28  David Mosberger  <davidm@hpl.hp.com>
7447
7448         * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
7449         Don't add L->l_addr to array entry values.
7450
7451 2002-11-07  Jakub Jelinek  <jakub@redhat.com>
7452
7453         * string/test-string.h: New file.
7454         * string/test-strlen.c: New file.
7455         * string/test-string.h: New file.
7456         * string/test-strcmp.c: New file.
7457         * string/test-strchr.c: New file.
7458         * string/test-strrchr.c: New file.
7459         * string/test-strcpy.c: New file.
7460         * string/test-stpcpy.c: New file.
7461         * string/test-strncpy.c: New file.
7462         * string/test-stpncpy.c: New file.
7463         * string/test-strpbrk.c: New file.
7464         * string/test-strcspn.c: New file.
7465         * string/test-strspn.c: New file.
7466         * string/test-strcat.c: New file.
7467         * string/test-strncmp.c: New file.
7468         * string/test-memchr.c: New file.
7469         * string/test-memcmp.c: New file.
7470         * string/test-memset.c: New file.
7471         * string/test-memcpy.c: New file.
7472         * string/test-mempcpy.c: New file.
7473         * string/test-memmove.c: New file.
7474         * string/Makefile (strop-tests): New variable.
7475         (tests): Add strop-tests.
7476         (distribute): Add test-string.h.
7477
7478 2002-11-06  Ulrich Drepper  <drepper@redhat.com>
7479
7480         * posix/regcomp.c: Use tabs instead of spaces.
7481         * posix/regexec.c: Likewise.
7482         * posix/regex_internal.h: Likewise.
7483
7484         * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
7485
7486 2002-11-06  Jakub Jelinek  <jakub@redhat.com>
7487
7488         * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
7489         here.
7490         (regcomp): Don't set can_be_null here.
7491         (re_comp): Clear whole re_comp_buf with the exception of fastmap.
7492         (re_compile_internal): Clear can_be_null, set regs_allocated.
7493
7494         * posix/regcomp.c (re_set_fastmap): New function.
7495         (re_compile_fastmap_iter): Use it.  Remove redundant type ==
7496         COMPLEX_BRACKET check.
7497         * posix/regexec.c (re_search_internal): Optimize searching with
7498         fastmap.  Call re_string_reconstruct even if match_first is
7499         smaller than raw_mbs_idx.
7500
7501 2002-11-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
7502
7503         * posix/regcomp (free_dfa_content): Use free_state.
7504         * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
7505         pointers in case that realloc failed.
7506         (re_node_set_merge): Likewise.
7507         (register_state): Likewise.
7508         (create_newstate_common): Invoke memory release functions in case of
7509         error conditions.
7510         (create_ci_newstate): Likewise.
7511         (create_cd_newstate): Likewise.
7512         (free_state): New function.
7513         * posix/regexec.c (re_search_internal): Invoke memory release
7514         functions in case of error conditions.
7515         (sift_states_backward): Likewise.
7516         (merge_state_array): Likewise.
7517         (add_epsilon_src_nodes): Likewise.
7518         (sub_epsilon_src_nodes): Likewise.
7519         (search_subexp): Likewise.
7520         (sift_states_bkref): Likewise.
7521         (transit_state_sb): Likewise.
7522         (transit_state_mb): Likewise.
7523         (transit_state_bkref_loop): Likewise.
7524         (group_nodes_into_DFAstates): Likewise.
7525         (push_fail_stack): Don't edit pointers in case that realloc failed.
7526         (extend_buffers): Likewise.
7527         (match_ctx_add_entry): Likewise.
7528
7529 2002-11-06  Roland McGrath  <roland@redhat.com>
7530
7531         * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
7532         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
7533
7534         * configure.in: Add checks on as and ld for binutils 2.13 or later.
7535         * configure: Regenerated.
7536
7537 2002-11-06  Ulrich Drepper  <drepper@redhat.com>
7538
7539         * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
7540         If re_compile_internal failed free fastmap buffer.
7541         (free_dfa_content): Broken out of regfree function.  Frees all dfa
7542         related data.
7543         (regfree): Add free_dfa_content.
7544         (re_compile_internal): If any of the called functions fails free
7545         all dfa related memory.
7546
7547 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
7548
7549         * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
7550         warnings from the kernel headers.
7551
7552 2002-11-05  Roland McGrath  <roland@redhat.com>
7553
7554         * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
7555         From Johannes Stezenbach <js@convergence.de>.
7556
7557         * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
7558         #errlist-compat magic comment to give 123 as size.
7559         (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
7560         (libc: GLIBC_2.2): ... here.
7561         (libc: GLIBC_2.3): Likewise.
7562
7563 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
7564
7565         * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
7566         which happens at the beginning so that we can unload modules in
7567         __libc_freeres.
7568
7569 2002-11-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7570
7571         * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
7572         under [__USE_MISC || _ASM].
7573
7574         * elf/elf.h: Remove the obsolete SH TLS relocations.
7575
7576 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
7577
7578         * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
7579
7580 2002-11-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7581
7582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
7583         __NR_pread64 and __NR_pwrite64.
7584         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
7585         * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
7586         and __NR_pwrite64.
7587         Revert change to use INLINE_SYSCALL.
7588         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7589         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
7590         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7591         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
7592         INLINE_SYSCALL.
7593         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
7594
7595         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
7596         Update clobber list and add a comment about the syscall ABI.
7597
7598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
7599         s_pwrite64, s_ftruncate, s_truncate): Re-add.
7600
7601 2002-11-05  Jakub Jelinek  <jakub@redhat.com>
7602
7603         * iconv/gconv_dl.c (free_mem): Clear loaded.
7604         * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
7605         cleanup if any.
7606
7607 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
7608
7609         * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
7610
7611         * libio/ioseekoff.c: Remove INTDEF.  Define _IO_seekoff_unlocked.  Same
7612         as old code without locking.  _IO_seekoff calls this function after
7613         locking the stream.
7614         * libio/ioseekpos.c: Likewise for _IO_seekpos.
7615         * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
7616         prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
7617         prototypes.
7618         * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
7619         of _IO_seekoff_internal.
7620         (_IO_rewind): Likewise.
7621         * libio/ioftell.c: Likewise.
7622         * libio/ftello.c: Likewise.
7623         * libio/ftello64.c: Likewise.
7624         * libio/iofgetpos.c: Likewise.
7625         * libio/iofgetpos64.c: Likewise.
7626         * libio/oldiofgetpos.c: Likewise.
7627         * libio/oldiofgetpos64.c: Likewise.
7628         * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
7629         _IO_seekpos_internal.
7630         * libio/iofsetpos64.c: Likewise.
7631         * libio/oldiofsetpos.c: Likewise.
7632         * libio/oldiofsetpos64.c: Likewise.
7633
7634 2002-11-04  Roland McGrath  <roland@redhat.com>
7635
7636         * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
7637         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
7638         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
7639         * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
7640         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7641         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
7642         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7643         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
7644         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
7645         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
7646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
7647         s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
7648         sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
7649         Remove these, no longer used.
7650
7651 2002-11-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7652
7653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
7654         s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
7655         s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
7656         s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
7657         s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
7658         s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
7659         syscall stubs.
7660
7661         * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
7662         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
7663         * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
7664         and __NR_pread.
7665         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7666         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
7667         and __NR_pwrite.
7668         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7669
7670 2002-11-03  Roland McGrath  <roland@redhat.com>
7671
7672         * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
7673         `_dl_tls_static_used'.
7674         * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
7675         (__libc_setup_tls): Initialize it.  Let the initial value of
7676         _dl_tls_static_size indicate some surplus space in the computed value.
7677         * elf/dl-open.c (_dl_tls_static_size): New variable.
7678         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
7679         _dl_tls_static_used.  Add some surplus space into _dl_tls_static_size.
7680         * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
7681         (CHECK_STATIC_TLS): Use it.
7682         * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
7683         closed objects occupied a trailing contiguous chunk of static TLS area.
7684
7685 2002-10-18  Bruno Haible  <bruno@clisp.org>
7686
7687         * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
7688
7689 2002-11-04  Ulrich Drepper  <drepper@redhat.com>
7690
7691         * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
7692         _wide_data->_IO_read_end if adjustment can be made in the current
7693         buffer.
7694
7695         * sysdeps/unix/sysv/linux/fexecve.c: New file.
7696
7697         * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
7698         wide oriented streams are used.
7699
7700         * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
7701         service hasn't been used [PR libc/4744].
7702
7703         * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
7704         Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
7705
7706         * manual/examples/dir.c: Don't include <stddef.h>.
7707         * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
7708         Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
7709
7710 2002-11-02  H.J. Lu  <hjl@gnu.org>
7711
7712         * stdio-common/reg-printf.c: Include <stddef.h>.
7713
7714 2002-11-03  Ulrich Drepper  <drepper@redhat.com>
7715
7716         * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
7717
7718         * po/ca.po: Update from translation team.
7719         * po/es.po: Likewise.
7720
7721         * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
7722         is defined write out memory map.
7723         * sysdeps/unix/sysv/linux/segfault.c: New file.
7724
7725 2002-11-02  Roland McGrath  <roland@redhat.com>
7726
7727         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
7728         pointers that can alias.
7729         Reported by Daniel Jacobowitz <drow@mvista.com>.
7730
7731         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
7732
7733 2002-11-02  Roland McGrath  <roland@redhat.com>
7734
7735         * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
7736         description to be clearer and to say that *RESULT is set to ENTRY.
7737
7738 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
7739
7740         * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
7741         dests_ch arrays together.  Alloca or malloc dest_states,
7742         dest_states_word and dest_states_nl arrays together.  Free memory on
7743         error exit.
7744
7745 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
7746
7747         * crypt/crypt_util.c (__init_des_r): Initialize current_salt
7748         and current_saltbits.
7749
7750 2002-11-02  Roland McGrath  <roland@redhat.com>
7751
7752         * stdio-common/reg-printf.c: Include <stdlib.h>.
7753
7754 2002-11-02  H.J. Lu  <hjl@gnu.org>
7755
7756         * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
7757         caller to EXTRA instead of execve.
7758
7759 2002-11-01  Roland McGrath  <roland@redhat.com>
7760
7761         * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
7762         in place of [!(USE_TLS && HAVE___THREAD)].
7763         (__errno_location) [! USE___THREAD]: Define as strong, not weak.
7764
7765 2002-10-31  Roger Sayle  <roger@eyesopen.com>
7766
7767         * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
7768         New macros.
7769         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7770
7771         * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
7772         without defining FP_ROUNDMODE.
7773
7774 2002-10-29  Jakub Jelinek  <jakub@redhat.com>
7775
7776         * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
7777         (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
7778         declare_symbol.
7779         * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
7780         (OLD_SIGLIST_SIZE): Define.
7781         * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
7782         (OLD_SIGLIST_SIZE): Define.
7783         * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
7784
7785 2002-11-01  Jakub Jelinek  <jakub@redhat.com>
7786
7787         * sysdeps/ia64/strncpy.S: Fix recovery code.
7788
7789 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
7790
7791         * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
7792         New macros.
7793         * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
7794         text_set_element.
7795         * elf/dl-libc.c (free_mem): Likewise.
7796         * iconv/gconv_conf.c (free_mem): Likewise.
7797         * iconv/gconv_db.c (free_mem): Likewise.
7798         * iconv/gconv_dl.c (free_mem): Likewise.
7799         * iconv/gconv_cache.c (free_mem): Likewise.
7800         * intl/finddomain.c (free_mem): Likewise.
7801         * intl/dcigettext.c (free_mem): Likewise.
7802         * locale/setlocale.c (free_mem): Likewise.
7803         * misc/fstab.c (fstab_free): Likewise.
7804         * nss/nsswitch.c (free_mem): Likewise.
7805         * posix/regcomp.c (free_mem): Likewise.
7806         * resolv/gai_misc.c (free_res): Likewise.
7807         * stdlib/fmtmsg.c (free_mem): Likewise.
7808         * sunrpc/clnt_perr.c (free_mem): Likewise.
7809         * sysdeps/generic/setenv.c (free_mem): Likewise.
7810         * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
7811         * sysdeps/pthread/aio_misc.c (free_res): Likewise.
7812         * time/tzset.c (free_mem): Likewise.
7813         * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
7814         * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
7815         * malloc/set-freeres.c (__libc_freeres): Likewise.
7816
7817         * login/getutent.c: Include stdlib.h instead of stddef.h.
7818         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
7819         (__getutent): Allocate buffer the first time it is run.
7820         * login/getutid.c: Include stdlib.h instead of stddef.h.
7821         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
7822         (__getutid): Allocate buffer the first time it is run.
7823         * login/getutline.c: Include stdlib.h instead of stddef.h.
7824         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
7825         (__getutline): Allocate buffer the first time it is run.
7826         * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
7827         (mtrace): Allocate malloc_trace_buffer.
7828         * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
7829         * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
7830         * string/strerror.c: Include libintl.h and errno.h.
7831         (buf): New variable.
7832         (strerror): Only allocate buffer if actually needed (unknown error).
7833         * time/tzfile.c (transitions): Add libc_freeres_ptr.
7834         (freeres): Remove.
7835
7836 2002-10-25  Jakub Jelinek  <jakub@redhat.com>
7837
7838         * include/libc-symbols.h (libc_freeres_ptr): New macro.
7839         * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
7840         symbol_set_define.
7841         (__libc_freeres): Free all pointers in that section.
7842         * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
7843         commands when creating .lds script.
7844         (LDSEDCMD-c.so): New variable.
7845         * inet/rcmd.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
7846         (rcmd_af): Use strdup to allocate ahostbuf.
7847         * inet/rexec.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
7848         (rexec_af): Use strdup to allocate ahostbuf.
7849         * stdio-common/reg-printf.c (printf_funcs): Remove.
7850         (__printf_arginfo_table): Change into printf_arginfo_function **.
7851         Add libc_freeres_ptr.
7852         (__register_printf_function): Allocate __printf_arginfo_table
7853         and __printf_function_table the first time it is called.
7854         * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
7855         printf_arginfo_function **.
7856         (parse_one_spec): Add __builtin_expect.
7857         * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
7858         (free_mem): Remove.
7859         * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
7860         (free_mem): Remove.
7861         * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
7862         (string_space, map): Add libc_freeres_ptr.
7863         (free_mem): Remove.
7864         * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
7865         (free_mem): Remove.
7866         * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
7867         (free_mem): Remove.
7868         * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
7869         (buffer): Add libc_freeres_ptr.
7870         (free_mem): Remove for _LIBC.
7871         * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
7872         (free_mem): Remove.
7873         * nss/getXXent.c (buffer): Add libc_freeres_ptr.
7874         (free_mem): Remove.
7875         * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
7876         (free_mem): Remove.
7877         * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
7878         (free_mem): Remove.
7879         * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
7880         (free_mem): Remove.
7881         * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
7882         (free_mem): Remove.
7883         * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
7884         libc_freeres_ptr.
7885         (free_mem): Remove.
7886         * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
7887         libc_freeres_ptr.
7888         (free_mem): Remove.
7889
7890 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
7891
7892         * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
7893         instead of duplicating the whole function in libc.
7894
7895 2002-10-31  Roland McGrath  <roland@redhat.com>
7896
7897         * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
7898         Renamed from __bswap_16 (typo fix).  Reported by <dens@stl.sarov.ru>.
7899
7900 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
7901
7902         * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
7903         32bit-predefine when creating .new32 list and -U for each
7904         32bit-predefine when creating .new64 list.
7905         * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
7906
7907 2002-10-29  Andreas Schwab  <schwab@suse.de>
7908
7909         * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
7910         "testrtsig.h".  Reported by Daniel Jacobowitz <dan@debian.org>.
7911
7912 2002-10-25  Roland McGrath  <roland@redhat.com>
7913
7914         * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
7915         * sysdeps/unix/sysv/linux/configure: Regenerated.
7916
7917         * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
7918         _dl_starting_up decl.
7919
7920 2002-10-20  H.J. Lu  <hjl@gnu.org>
7921
7922         * sysdeps/unix/sysv/linux/configure.in: Don't check
7923         /lib/modules/`uname -r`/build/include for kernel headers if
7924         cross compiling.
7925         * sysdeps/unix/sysv/linux/configure: Regenerated.
7926
7927 2002-10-25  Roland McGrath  <roland@redhat.com>
7928
7929         * math/math.h (M_LOG2El): Correct the value.
7930         From Stephen L Moshier <steve@moshier.net>.
7931
7932         * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
7933         conditional from __libc_multiple_libcs access.  Remove kludge for weak
7934         symbol access with old compilers we no longer support.
7935         * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
7936         * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
7937
7938 2002-10-25  Roland McGrath  <roland@redhat.com>
7939
7940         * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
7941         implement SV_RESETHAND by translating it to SA_RESETHAND.
7942
7943 2002-10-23  Alexandre Oliva  <aoliva@redhat.com>
7944
7945         * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
7946         type on ELF64 platforms.
7947
7948 2002-10-24  Ulrich Drepper  <drepper@redhat.com>
7949
7950         * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
7951
7952         * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
7953
7954 2002-10-24  Jakub Jelinek  <jakub@redhat.com>
7955
7956         * elf/dl-misc.c: Include <sysdep.h>.
7957         (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
7958
7959         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
7960         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
7961         (INLINE_SYSCALL): Use that.
7962         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
7963         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
7964         (INLINE_SYSCALL): Use that.
7965         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
7966         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
7967         (INLINE_SYSCALL): Use that.
7968         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
7969         dl-sysdep.h.
7970         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
7971         (__INTERNAL_SYSCALL_STRING): Define.
7972         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
7973         dl-sysdep.h.
7974         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
7975         (__INTERNAL_SYSCALL_STRING): Define.
7976         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
7977         __SYSCALL_STRING to inline_syscall*.
7978         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
7979         New macros.
7980         (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
7981         inline_syscall4, inline_syscall5, inline_syscall6): Add string
7982         argument.
7983
7984 2002-10-24  Roland McGrath  <roland@redhat.com>
7985
7986         * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
7987         * sysdeps/unix/sysv/linux/init-first.c: Not here.
7988         * sysdeps/powerpc/elf/libc-start.c: Or here.
7989         * sysdeps/unix/sysv/aix/libc-start.c: Or here.
7990         * sysdeps/unix/sysv/aix/start-libc.c: Or here.
7991         * sysdeps/unix/sysv/aix/init-first.c: Or here.
7992         * sysdeps/generic/libc-start.c: Or here.
7993         * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
7994         access with [! SHARED].
7995         * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
7996
7997         * libio/bug-wfflush.c: New file.
7998         * libio/Makefile (tests): Add bug-wfflush.
7999
8000 2002-10-23  Roland McGrath  <roland@redhat.com>
8001
8002         * stdio-common/tst-fphex.c: New file.
8003         * stdio-common/Makefile (tests): Add tst-fphex.
8004         * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
8005         of WNUMEND.  Fix counting of decimal point in WIDTH.  Print '0' pad
8006         chars always before the value digits.
8007         Reported by James Antill <james.antill@redhat.com>.
8008
8009 2002-10-24  Jakub Jelinek  <jakub@redhat.com>
8010
8011         * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
8012         (free_mem): New function.
8013         * posix/Makefile (tests): Add bug-regex14.  Add bug-regex14-mem
8014         if not cross compiling.
8015         (generated): Add bug-regex14-mem and bug-regex14.mtrace.
8016         (bug-regex14-ENV): Set.
8017         (bug-regex14-mem): New target.
8018         * posix/bug-regex14.c: New file.
8019
8020 2002-10-23  Roland McGrath  <roland@redhat.com>
8021
8022         * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
8023         target, so we don't touch it when the link fails.
8024
8025         * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
8026         Check for the result overflowing off_t and fail with EOVERFLOW.
8027         * libio/ioftell.c (_IO_ftell): Likewise.
8028         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
8029
8030         * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
8031         use a temporary timeval on the stack for gettimeofday and copy it.
8032         * login/logout.c (logout): Likewise.
8033         Reported by Steven Munroe <sjmunroe@us.ibm.com>.
8034
8035         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
8036         Use __SWORD_TYPE instead of int for member types.
8037         (struct statfs64): Likewise.
8038         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
8039         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
8040         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
8041         * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
8042         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
8043
8044         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
8045         * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
8046         (ST_NODIRATIME): Restore fixed value of 2048.
8047         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
8048         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
8049
8050         Rearranged <bits/types.h> definitions to reduce duplication.
8051         * sysdeps/generic/bits/types.h: Rewritten, using macros from
8052         <bits/wordsize.h> and new header <bits/typesizes.h>.
8053         * posix/Makefile (headers): Add bits/typesizes.h here.
8054         * sysdeps/generic/bits/typesizes.h: New file.
8055         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
8056         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
8057         * sysdeps/mach/hurd/bits/typesizes.h: New file.
8058         * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
8059         * sysdeps/unix/sysv/linux/bits/types.h: File removed.
8060         * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
8061         * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
8062         * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
8063         * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
8064         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
8065         * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
8066         <bits/pthreadtypes.h> here, not in <bits/types.h>.
8067         * signal/signal.h: Likewise.
8068
8069         * streams/stropts.h: Include <bits/xtitypes.h>.
8070         * streams/Makefile (headers): Add bits/xtitypes.h here.
8071         * sysdeps/generic/bits/xtitypes.h: New file.
8072         * sysdeps/s390/bits/xtitypes.h: New file.
8073         * sysdeps/ia64/bits/xtitypes.h: New file.
8074         * sysdeps/x86_64/bits/xtitypes.h: New file.
8075
8076         * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
8077         * sysdeps/generic/bits/ipctypes.h: New file.
8078         * sysdeps/mips/bits/ipctypes.h: New file.
8079         * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
8080         * sysdeps/gnu/bits/msq.h: Likewise.
8081         * sysvipc/sys/ipc.h: Likewise.
8082
8083 2002-10-22  Ulrich Drepper  <drepper@redhat.com>
8084
8085         * elf/dl-load.c (struct filebuf): For buf element to have the
8086         alignment of ElfXX_Ehdr since this is what will be stored in it.
8087
8088 2002-10-22  Jakub Jelinek  <jakub@redhat.com>
8089
8090         * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
8091         into pointer to locrec_offset.
8092         (add_locale_to_archive): Adjust callers.  Free normalized_name right
8093         before returning, not immediately after add_locale, pass it to
8094         add_alias if not NULL instead of name.  Rename second normalized_name
8095         occurence to nnormalized_codeset_name.
8096
8097         * locale/programs/locarchive.c (enlarge_archive): Make sure
8098         string_size is always a multiple of 4.
8099         Reported by Andreas Schwab <schwab@suse.de>.
8100
8101 2002-10-21  Andreas Schwab  <schwab@suse.de>
8102
8103         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
8104         caller to EXTRA instead of execve, since the latter has a
8105         higher-priority implementation in linuxthreads.
8106
8107 2002-10-21  Roland McGrath  <roland@redhat.com>
8108
8109         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
8110         slotinfo list's len member to the proper size, not just 1.
8111         Initialize static_map.l_tls_initimage.
8112
8113         * elf/dl-open.c (dl_open_worker): Fix loop searching for
8114         dtv_slotinfo_list element containing new modules' l_tls_modid.
8115
8116         * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
8117         * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
8118         * elf/Makefile (tests): Add tst-tls9.
8119         (tests-static): Add tst-tls9-static.
8120         (tst-tls9-static-ENV): New variable.
8121         ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
8122
8123         * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
8124         modids used by partially loaded modules being closed can't be known.
8125
8126 2002-10-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
8127
8128         * posix/Makefile: Add a test case for the bug reported by Aharon
8129         Robbins <arnold@skeeve.com>.
8130         * posix/bug-regex13.c: New file.
8131         * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
8132
8133 2002-10-21  Ulrich Drepper  <drepper@redhat.com>
8134
8135         * csu/gmon-start.c: Pretty printing.
8136
8137 2002-10-19  Art Haas  <ahaas@neosoft.com>
8138
8139         * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
8140         add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
8141         add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
8142         * configure: Regenerated.
8143
8144 2002-10-19  Roland McGrath  <roland@redhat.com>
8145
8146         * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
8147         and then set $subdirs directly, because the new Autoconf breaks
8148         compatibility in every way imaginable and insists on whining
8149         about usage that worked since the dawn of time.
8150         * configure: Regenerated.
8151
8152         * configure: Regenerated (using Autoconf 2.54).
8153         * sysdeps/alpha/elf/configure: Likewise.
8154         * sysdeps/generic/configure: Likewise.
8155         * sysdeps/i386/elf/configure: Likewise.
8156         * sysdeps/ia64/elf/configure: Likewise.
8157         * sysdeps/mach/hurd/configure: Likewise.
8158         * sysdeps/mach/configure: Likewise.
8159         * sysdeps/unix/configure: Likewise.
8160         * sysdeps/unix/common/configure: Likewise.
8161         * sysdeps/unix/sysv/aix/configure: Likewise.
8162         * sysdeps/unix/sysv/linux/configure: Likewise.
8163         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
8164         * sysdeps/x86_64/elf/configure: Likewise.
8165
8166         * config.make.in: Nix completely-soft nonsense.
8167         * configure.in: Likewise.  Under --without-fp, use nofpu subdirectory
8168         of machine directories instead of fpu subdirectory.
8169         * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
8170         * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
8171         * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
8172         * sysdeps/powerpc/nofpu/sim-full.c: ... here.
8173         * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
8174         * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
8175         * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
8176         * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
8177         * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
8178         * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
8179         * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
8180         * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
8181         * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
8182         * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
8183         * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
8184         * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
8185         * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
8186         * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
8187         * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
8188         * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
8189         * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
8190         * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
8191         * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
8192         * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
8193         * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
8194         * sysdeps/powerpc/nofpu/fegetround.c: ... here.
8195         * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
8196         * sysdeps/powerpc/nofpu/fesetround.c: ... here.
8197         * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
8198         * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
8199         * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
8200         * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
8201         * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
8202         * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
8203         * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
8204         * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
8205         * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
8206         * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
8207         * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
8208         * sysdeps/powerpc/nofpu/Versions: ... here, new file.
8209
8210 2002-10-19  Bruno Haible  <bruno@clisp.org>
8211
8212         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
8213
8214 2002-10-18  Roland McGrath  <roland@redhat.com>
8215
8216         * io/Makefile (routines): Add lchmod.
8217         * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
8218         * sysdeps/generic/lchmod.c: New file.
8219         * sysdeps/mach/hurd/lchmod.c: New file.
8220         * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
8221
8222 2002-10-18  Art Haas  <ahaas@neosoft.com>
8223
8224         * configure.in: Remove remaining AC_FD_CC macros, and replace
8225         AC_FD_MSG with AS_MESSAGE_FD.
8226
8227 2002-10-18  Roland McGrath  <roland@redhat.com>
8228
8229         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
8230         typos: VALUE -> FINALADDR.
8231
8232         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
8233         (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
8234         (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
8235         (inline_syscall6): Move these macros ...
8236         * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
8237
8238         * configure.in (libc_link_dests, libc_link_sources): Remove these
8239         variables and the AC_LINK_FILES call.
8240
8241         * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
8242         change to put new symbols here instead of in GLIBC_2.2.
8243         * sysdeps/powerpc/Subdirs: Move this file ...
8244         * sysdeps/powerpc/soft-fp/Subdirs: ... here.
8245
8246 2002-10-07  Roland McGrath  <roland@redhat.com>
8247
8248         * sysdeps/generic/bits/time.h: Replaced with contents of the
8249         sysdeps/unix/sysv/linux/i386/bits/time.h file.  All the following
8250         files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
8251         and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
8252         macros is ok even for architectures that don't now implement them.
8253         * sysdeps/mach/hurd/bits/time.h: File removed.
8254         * sysdeps/unix/sysv/linux/bits/time.h: File removed.
8255         * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
8256         * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
8257         * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
8258         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
8259
8260 2002-10-18  Jeff Bailey  <jbailey@gnu.org>
8261
8262         * configure.in: Replace obsolete AC_OUTPUT syntax with
8263         AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
8264
8265         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
8266         _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
8267
8268         * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
8269         * sysdeps/alpha/elf/configure.in: Likewise.
8270         * sysdeps/i386/elf/configure.in: Likewise.
8271         * sysdeps/mach/hurd/configure.in: Likewise.
8272         * sysdeps/x86_64/elf/configure.in: Likewise.
8273
8274         * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
8275
8276         * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
8277         * sysdeps/generic/configure.in: Likewise.
8278         * sysdeps/i386/elf/configure.in: Likewise.
8279         * sysdeps/ia64/elf/configure.in: Likewise.
8280         * sysdeps/mach/configure.in: Likewise.
8281         * sysdeps/mach/hurd/configure.in: Likewise.
8282         * sysdeps/unix/configure.in: Likewise.
8283         * sysdeps/unix/common/configure.in: Likewise.
8284         * sysdeps/unix/sysv/aix/configure.in: Likewise.
8285         * sysdeps/unix/sysv/linux/configure.in: Likewise.
8286         * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
8287         * sysdeps/x86_64/elf/configure.in: Likewise.
8288
8289         * aclocal.m4: Use just the bits from AS_INIT that are needed for the
8290         GLIBC_PROVIDES.  Use plain comment instead of HEADER-COMMENT so
8291         that it's obvious when extra autoconf machinery is being dragged in.
8292
8293 2002-10-18  Roland McGrath  <roland@redhat.com>
8294
8295         * configure.in: Remove bogus echo included in
8296         2002-10-08  Aldy Hernandez  <aldyh@redhat.com> change.
8297         * configure: Regenerated.
8298
8299 2002-10-18  Jakub Jelinek  <jakub@redhat.com>
8300
8301         * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
8302         (statfs_filesize_max): New function.
8303         * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
8304         JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
8305         ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
8306         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
8307         statfs_filesize_max.
8308         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
8309         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
8310         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
8311
8312 2002-10-17  Roland McGrath  <roland@redhat.com>
8313
8314         * configure.in (MIG): Just AC_SUBST it here.
8315         * configure: Regenerated.
8316         * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
8317         Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
8318         * sysdeps/mach/configure: Regenerated.
8319
8320         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
8321         and AC_PROVIDE([_AS_CR_PREPARE]).
8322
8323         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
8324         Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
8325
8326         * elf/dl-support.c: Move _dl_tls_* variables to ...
8327         * sysdeps/generic/libc-tls.c: ... here.
8328
8329         * elf/dl-close.c (remove_slotinfo): Take new argument.  If false,
8330         allow IDX to be one past the current last slotinfo entry.
8331         (_dl_close): Pass IMAP->l_init_called for that parameter.
8332
8333 2002-10-07  Andreas Schwab  <schwab@suse.de>
8334
8335         * aclocal.m4: Fix for autoconf 2.53.
8336         * configure.in: Likewise.  Require autoconf 2.53.
8337
8338 2002-10-08  Richard Henderson  <rth@redhat.com>
8339
8340         * soft-fp/op-4.h: Handle carry correctly in
8341         __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
8342         __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
8343         * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
8344
8345 2002-10-08  Aldy Hernandez  <aldyh@redhat.com>
8346
8347         * configure.in: Compute completely-soft.
8348         * config.make.in: Make completely-soft available to sub-makes.
8349         * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
8350         gcc-double-routines.  Add sim-full.c.  Add fenv_const and
8351         fe_nomask to libm-support.
8352         * sysdeps/powerpc/soft-fp/sim-full.c: New file.
8353         * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
8354         * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
8355         * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
8356         * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
8357         * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
8358         * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
8359         * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
8360         * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
8361         * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
8362         * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
8363         * sysdeps/powerpc/soft-fp/fegetround.c: New file.
8364         * sysdeps/powerpc/soft-fp/fesetround.c: New file.
8365         * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
8366         * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
8367         * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
8368         * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
8369         * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
8370         * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
8371         symbols.  Add __sim_disabled_exceptions, __sim_exceptions,
8372         __sim_round_mode.
8373         * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
8374         * sysdeps/powerpc/soft-float/sfp-machine.h: Define
8375         FP_HANDLE_EXCEPTIONS.
8376         Define FP_ROUNDMODE.
8377         Redefine FP_* macros to correspond to the FE_* bit positions.
8378         Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
8379         Define externs for __sim_exceptions, __sim_disabled_exceptions,
8380         __sim_round_mode, __simulate_exceptions.
8381         * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
8382         * sysdeps/powerpc/bits/fenv.h: ...to here.
8383
8384 2002-10-06  Jakub Jelinek  <jakub@redhat.com>
8385
8386         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
8387         Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
8388         Use __builtin_expect for R_PPC_ADDR24 overflow check.  Fix
8389         R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
8390         __builtin_expect.
8391
8392 2002-10-15  Jakub Jelinek  <jakub@redhat.com>
8393
8394         * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
8395         __libc_res_nsend): New prototypes.
8396         * resolv/res_query.c (QUERYSIZE): Define.
8397         (__libc_res_nquery): Renamed from res_nquery.  Added answerp
8398         argument.  Allocate only QUERYSIZE bytes first, if res_nmkquery
8399         fails use MAXPACKET buffer.  Call __libc_res_nsend instead of
8400         res_nsend, pass answerp.
8401         (res_nquery): Changed into wrapper around __libc_res_nquery.
8402         (__libc_res_nsearch): Renamed from res_nsearch.  Added answerp
8403         argument.  Call __libc_res_nquerydomain and __libc_res_nquery
8404         instead of the non-__libc_ variants, pass them answerp.
8405         (res_nsearch): Changed into wrapper around __libc_res_nsearch.
8406         (__libc_res_nquerydomain): Renamed from res_nquerydomain.
8407         Added answerp argument.  Call __libc_res_nquery instead of
8408         res_nquery, pass answerp.
8409         (res_nquerydomain): Changed into wrapper around
8410         __libc_res_nquerydomain.
8411         * resolv/res_send.c: Include sys/ioctl.h.
8412         (MAXPACKET): Define.
8413         (send_vc): Change arguments.  Reallocate answer buffer if it is
8414         too small.
8415         (send_dg): Likewise.
8416         (__libc_res_nsend): Renamed from res_nsend.  Added ansp argument.
8417         Reallocate answer buffer if it is too small and hooks are in use.
8418         Adjust calls to send_vc and send_dg.
8419         (res_nsend): Changed into wrapper around __libc_res_nsend.
8420         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
8421         just 1K answer buffer on the stack, use __libc_res_nsearch instead
8422         of res_nsearch.
8423         (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
8424         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
8425         (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
8426         * resolv/gethnamaddr.c (gethostbyname2): Likewise.
8427         (gethostbyaddr): Similarly with __libc_res_nquery.
8428         * resolv/Versions (libresolv): Export __libc_res_nquery and
8429         __libc_res_nsearch at GLIBC_PRIVATE.
8430
8431 2002-10-17  Roland McGrath  <roland@redhat.com>
8432
8433         * configure.in: Grok --without-__thread and disable HAVE___THREAD.
8434         * configure: Regenerated.
8435
8436         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
8437         before performing the reloc, not after.
8438         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
8439
8440 2002-10-17  Ulrich Drepper  <drepper@redhat.com>
8441
8442         * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
8443         * locale/programs/linereader.c (lr_open): Likewise.
8444         * locale/programs/charmap-dir.c (charmap_open): Likewise.
8445         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8446
8447 2002-10-17  Isamu Hasegawa  <isamu@yamato.ibm.com>
8448
8449         * posix/bug-regex11.c: Add a test case for the bug reported by
8450         Paolo Bonzini <bonzini@gnu.org>.
8451         * posix/regexec.c (sift_states_bkref): Use correct destination of
8452         the back reference.
8453
8454 2002-10-17  Roland McGrath  <roland@redhat.com>
8455
8456         * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
8457         * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
8458         to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
8459         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
8460         Call it after performing TPOFF relocs.
8461         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8462         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8463         * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
8464
8465         * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
8466         when closing a partially-initialized object.
8467
8468         * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
8469         instead of _dl_fatal_printf when we see PT_TLS.
8470
8471         * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
8472         instead of $(libof-$<).
8473
8474 2002-10-16  Roland McGrath  <roland@redhat.com>
8475
8476         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
8477         instead of += to append, to be sure $(lib) gets expanded at defn time.
8478         (libof-$(cpp-src)): New variable, define this instead.
8479         * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
8480         (lib): Don't use override.
8481         (CPPFLAGS-$(lib)): New variable, put -D's here.
8482         * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
8483         Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
8484         LIB found by $(libof-*) for basename, target, or source.
8485         * Makerules (CPPFLAGS-nonlib): New variable.
8486         * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
8487         * locale/Makefile (lib): Likewise.
8488         * sunrpc/Makefile (lib): Likewise.
8489
8490         * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
8491         * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
8492         * sysdeps/unix/sysv/linux/pathconf.h: New file.
8493         (statfs_link_max): New function, guts from fpathconf.c.
8494         * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
8495         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
8496         * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
8497         to use the linux/pathconf.c code by #include rather than duplication.
8498         * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
8499
8500 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
8501
8502         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
8503         Use __libc_errno only for libc itself.
8504
8505 2002-10-16  Andreas Jaeger  <aj@suse.de>
8506
8507         * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
8508
8509 2002-10-16  Ulrich Drepper  <drepper@redhat.com>
8510
8511         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
8512         Use __libc_errno only for libc itself.
8513
8514 2002-10-15  Roland McGrath  <roland@redhat.com>
8515             Jakub Jelinek  <jakub@redhat.com>
8516
8517         * sysdeps/unix/sysv/linux/Makefile
8518         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
8519         sparc/Makefile to produce a bi-arch file as needed.
8520         That's now parameterized by the variable $(64bit-predefine).
8521         Use LC_ALL=C for `comm' commands in that rule.
8522         No longer conditional on [$(no_syscall_list_h)].
8523         * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
8524         (64bit-predefine): New variable.
8525         * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
8526         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
8527         * sysdeps/unix/sysv/linux/powerpc/Makefile
8528         (64bit-predefine): New variable.
8529
8530 2002-10-15  Roland McGrath  <roland@redhat.com>
8531
8532         * sysdeps/unix/sysv/linux/Makefile
8533         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
8534
8535         * login/utmp-private.h: Declare __libc_utmp_lock.
8536         * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
8537         and call __libc_utmp_jump_table functions directly, instead of using
8538         __setutent et al.
8539
8540         * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
8541         * sysdeps/unix/sysv/linux/configure: Regenerated.
8542
8543         * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
8544         (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
8545         Use int32_t for ll_time.
8546         (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
8547         Use int32_t instead of long int for ut_session.
8548         Use an anonymous struct with 32-bit fields for ut_tv.
8549         * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
8550         (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
8551         here as in utmp.h for `struct utmp'.
8552         * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
8553         * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
8554         * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
8555         * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
8556         * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
8557         * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
8558
8559         * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
8560         of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
8561         All the following files were identical or equivalent to it.
8562         * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
8563         * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
8564         * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
8565         * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
8566         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
8567         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
8568         * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
8569         * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
8570         * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
8571         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
8572
8573         * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
8574         instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
8575         Other than the previously incorrect sign of msg_iovlen, this is a
8576         no-op on 32-bit platforms.  On 64-bit platforms it makes this header
8577         match their layouts as well, so the following are now identical to it.
8578         * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
8579         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
8580         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
8581         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
8582         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
8583
8584 2002-10-15  Ulrich Drepper  <drepper@redhat.com>
8585
8586         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
8587         Define for 2.4+ kernels.
8588
8589         * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
8590         are known to have the vfork syscall.  Don't confuse the CPUs
8591         branch prediction unit by jumping to the return address.
8592
8593         * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
8594         support for reiserfs and xfs.
8595
8596         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
8597         XFS link count.
8598         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
8599         and XFS_LINK_MAX.
8600         Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
8601
8602 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
8603
8604         * include/libc-symbols.h (attribute_tls_model_ie): Define.
8605         * include/errno.h (errno): Define to __libc_errno in libc.so.
8606         Add attribute_tls_model_ie.
8607         * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
8608         Add attribute_tls_model_ie.
8609         * include/resolv.h (_res): Define to __libc_res in libc.so.  Add
8610         attribute_tls_model_ie.
8611         * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
8612         (h_errno): Define.
8613         * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
8614         (_res): Define.
8615         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
8616         attribute_tls_model_ie.
8617         * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
8618         __thread.
8619         * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
8620         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
8621         __libc_errno in USE___THREAD case.
8622         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
8623         Likewise.
8624         * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
8625         __attribute__((tls_model (""))).
8626         * configure: Rebuilt.
8627         * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
8628
8629 2002-10-15  Ulrich Drepper  <drepper@redhat.com>
8630
8631         * timezone/asia: Update from tzdata2002d.
8632         * timezone/australasia: Likewise.
8633         * timezone/iso3166.tab: Likewise.
8634         * timezone/southamerica: Likewise.
8635         * timezone/zone-tab: Likewise.
8636
8637 2002-10-15  Roland McGrath  <roland@redhat.com>
8638
8639         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
8640         Adjust TCB pointer before calling free, so we get the whole block.
8641
8642 2002-10-14  Roland McGrath  <roland@redhat.com>
8643
8644         * sysdeps/unix/sysv/linux/x86_64/sigaction.c
8645         [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
8646         extern using attribute_hidden instead of static, avoids warning.
8647
8648 2002-10-09  Jakub Jelinek  <jakub@redhat.com>
8649
8650         * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
8651         * sysdeps/unix/sysv/linux/configure: Rebuilt.
8652
8653 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
8654
8655         * po/sv.po: Update from translation team.
8656
8657 2002-10-12  H.J. Lu  <hjl@gnu.org>
8658
8659         * sunrpc/thrsvc.c (PROCQUIT): New.
8660         (struct rpc_arg): New.
8661         (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
8662         (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
8663         (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
8664         (main): Modified for struct rpc_arg *.
8665
8666 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
8667
8668         * dirent/scandir.c: Rearrange code a bit to reduce binary size.
8669
8670 2002-10-14  Jakub Jelinek  <jakub@redhat.com>
8671
8672         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
8673         (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
8674         in ld.so even if __thread is supported.
8675
8676 2002-10-13  Jakub Jelinek  <jakub@redhat.com>
8677
8678         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
8679         Add hack to prevent the compiler from clobbering the signal context.
8680         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
8681         Likewise.
8682         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
8683         Likewise.
8684
8685 2002-10-14  Andreas Jaeger  <aj@suse.de>
8686
8687         * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
8688         Guido Guenther <agx@sigxcpu.org>.
8689
8690 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
8691
8692         * po/sk.po: Update from translation team.
8693
8694 2002-09-26  Roland McGrath  <roland@redhat.com>
8695
8696         * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
8697         dynamic string tag.
8698         * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
8699         DL_DST_LIB based on $(slibdir).
8700
8701 2002-10-13  Roland McGrath  <roland@frob.com>
8702
8703         * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
8704
8705         * sysdeps/mach/hurd/getresuid.c: New file.
8706         * sysdeps/mach/hurd/getresgid.c: New file.
8707         * sysdeps/mach/hurd/setresuid.c: New file.
8708         * sysdeps/mach/hurd/setresgid.c: New file.
8709
8710         * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
8711         setresgid): Declare them.
8712         * NEWS: Mention it.
8713         * include/unistd.h
8714         (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
8715         add libc_hidden_proto.
8716         * posix/Versions (libc: GLIBC_2.3.2): New set.  Add
8717         getresuid, getresgid, setresuid, setresgid here.
8718         * Versions.def (libc): Define GLIBC_2.3.2 set.
8719         * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
8720         Add libc_hidden_def.
8721         * sysdeps/generic/getresgid.c (__getresgid): Likewise.
8722         * sysdeps/generic/setresgid.c: New file.
8723         * sysdeps/generic/setresuid.c: New file.
8724         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8725         (sysdep_routines): Don't add getresuid and getresgid here.
8726         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
8727         (sysdep_routines): Don't add setresuid and setresgid here.
8728         * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
8729         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
8730         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8731         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
8732         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8733         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8734         * posix/Makefile (routines): Add them all here instead.
8735         * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
8736         __getresuid.  Add libc_hidden_def for that, and weak alias to old name.
8737         * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
8738         __getresgid.  Add libc_hidden_def for that, and weak alias to old name.
8739         * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
8740         [! __NR_setresuid]: Include generic file.
8741         * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
8742         __setresgid.  Add libc_hidden_def for that, and weak alias to old name.
8743         [! __NR_setresuid]: Include generic file.
8744         * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
8745         Caller is - now, not EXTRA.
8746         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
8747         (setresuid, setresgid, getresuid, getresgid): Likewise.
8748         * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
8749         Add these calls here.
8750         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
8751         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
8752         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
8753         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
8754         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
8756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
8757         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
8758         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
8759
8760         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8761         (sysdep_routines): Add setfsuid and setfsgid here.
8762         * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
8763         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
8764         * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
8765         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
8766         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8767         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
8768         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8769         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8770
8771         * hurd/errno.c: Renamed to ...
8772         * hurd/errno-loc.c: ... this.
8773         * hurd/Makefile (routines): errno -> errno-loc
8774
8775 2002-10-13  Ulrich Drepper  <drepper@redhat.com>
8776
8777         * po/de.po: Update from translation team.
8778
8779         * MakeTAGS: Add -E flag to xgettext runs.
8780
8781 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
8782
8783         * po/fr.po: Update from translation team.
8784
8785         * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
8786         Optimize a bit for use in glibc.
8787
8788 2002-10-12  Roland McGrath  <roland@redhat.com>
8789
8790         * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
8791         Some machines are slow.  Guido Guenther <agx@sigxcpu.org> has one.
8792
8793 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
8794
8795         * po/sv.po: Update from translation team.
8796
8797 2002-10-11  Isamu Hasegawa  <isamu@yamato.ibm.com>
8798
8799         * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
8800         OP_CONTEXT_NODE.
8801         (regfree): Likewise.
8802         (create_initial_state): Likewise.
8803         (analyze): Remove the substitutions which became useless.
8804         (calc_first): Likewise.
8805         (calc_epsdest): Use edests of OP_BACK_REF in case that it has
8806         epsilon destination.
8807         (duplicate_node_closure): New function.
8808         (duplicate_node): Remove the handling OP_CONTEXT_NODE.
8809         (calc_inveclosure): Likewise.
8810         (calc_eclosure): Likewise.
8811         (calc_eclosure_iter): Invoke duplicate_node_closure instead of
8812         direct invocation of duplicate_node.
8813         (parse): Don't use comma operator in the return to avoid compiler
8814         warning.
8815         (parse_reg_exp): Likewise.
8816         (parse_branch): Likewise.
8817         (parse_expression): Likewise.
8818         (parse_sub_exp): Likewise.
8819         (parse_dup_op): Likewise.
8820         * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
8821         which became useless.
8822         (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
8823         (create_cd_newstate): Likewise.
8824         * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
8825         (re_token_t): Likewise.
8826         (re_dfa_t): Likewise.
8827         (re_node_set_remove): New macro.
8828         * posix/regexec.c (check_matching): Remove the handling
8829         OP_CONTEXT_NODE.
8830         (check_halt_node_context): Likewise.
8831         (proceed_next_node): Likewise.
8832         (pop_fail_stack): Fix the memory leak.
8833         (set_regs): Likewise.
8834         (free_fail_stack_return): New function.
8835         (sift_states_backward): Fix the memory leak.  Remove the handling
8836         OP_CONTEXT_NODE.
8837         (update_cur_sifted_state): Append some if clause to avoid redundant
8838         call.
8839         (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
8840         back reference.
8841         (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
8842         (check_subexp_limits): Likewise.
8843         (search_subexp): Likewise.
8844         (sift_states_bkref): Likewise.
8845         (transit_state_mb): Likewise.
8846         (transit_state_bkref_loop): Likewise.
8847         (transit_state_bkref_loop): Likewise.
8848         (group_nodes_into_DFAstates): Likewise.
8849         (check_node_accept): Likewise.
8850         (sift_ctx_init): Add initializing.
8851
8852 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
8853
8854         * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
8855         __builtin_expect.
8856
8857 2002-10-11  Ulrich Drepper  <drepper@redhat.com>
8858
8859         * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
8860         duplicated variable c.
8861
8862         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
8863         if possible.
8864
8865         * sysdeps/unix/sysv/linux/i386/sysdep.h
8866         (INTERNAL_SYSCALL_ERROR_P): New define.
8867         (INTERNAL_SYSCALL_ERRNO): Likewise.
8868
8869         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
8870         Add hack to prevent the compiler from clobbering the signal context.
8871
8872 2002-10-11  Roland McGrath  <roland@redhat.com>
8873
8874         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
8875         Fix typos.
8876
8877         * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
8878         * sysdeps/sh/dl-lookupcfg.h: File removed.
8879         * sysdeps/i386/dl-lookupcfg.h: File removed.
8880
8881         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
8882         missing labels and ; from last change.
8883
8884         * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
8885         number literals, so they are doubles instead of ints.
8886
8887 2002-10-09  Roland McGrath  <roland@redhat.com>
8888
8889         * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
8890         changed from [USE_TLS && HAVE___THREAD].
8891
8892         * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
8893         Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
8894         * sysdeps/x86_64/dl-machine.h
8895         (elf_machine_type_class, elf_machine_rela): Likewise.
8896         * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
8897         Likewise.
8898
8899         * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
8900         * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
8901         (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
8902
8903         * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
8904         instead of ___tls_get_addr.
8905         (___tls_get_addr_internal): Add attribute_hidden to decl.
8906
8907         * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
8908         _dl_error_catch_tsd.
8909         * elf/rtld.c (startup_error_tsd): New function.
8910         (dl_main): Point _dl_error_catch_tsd at that.
8911         * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
8912         use new function pointer instead.
8913         * elf/dl-tsd.c: New file.
8914         * elf/Makefile (routines): Add it.
8915
8916 2002-10-07  Roland McGrath  <roland@redhat.com>
8917
8918         * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
8919         writev if it's available.  Otherwise if [RTLD_PRIVATE_ERRNO] then
8920         take _dl_load_lock around calling __writev.
8921
8922         * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
8923         (INLINE_SYSCALL): Use that.
8924
8925         * sysdeps/generic/dl-sysdep.h: New file.
8926         * sysdeps/mach/hurd/dl-sysdep.h: New file.
8927         * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
8928         * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
8929         [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
8930         access it directly.
8931         * elf/dl-minimal.c (__errno_location): Removed.
8932         * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
8933         Use GOTOFF access for errno.
8934         * sysdeps/unix/sysv/linux/i386/sysdep.h
8935         [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
8936
8937         * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
8938         Use PC-relative access for errno.
8939         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8940         [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
8941
8942         * include/tls.h: New file.
8943         (USE___THREAD): New macro.
8944         Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
8945         libc or libpthread.
8946         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
8947         changed from [USE_TLS && HAVE___THREAD].
8948         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8949         * sysdeps/unix/i386/sysdep.S: Likewise.
8950         * sysdeps/unix/x86_64/sysdep.S: Likewise.
8951         * include/errno.h: Likewise.
8952         * include/netdb.h: Likewise.
8953         * include/resolv.h: Likewise.
8954
8955         * sysdeps/generic/errno.c: New file.
8956         * csu/Makefile (aux): New variable, list errno.
8957         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
8958         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
8959         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
8960         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
8961         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
8962         * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
8963         * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
8964         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
8965         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
8966         * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
8967         * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
8968         * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
8969         * sysdeps/unix/alpha/sysdep.S: Likewise.
8970         * sysdeps/generic/start.c: Likewise.
8971         * sysdeps/unix/start.c: Likewise.
8972         * sysdeps/unix/arm/start.c: Likewise.
8973         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
8974         * sysdeps/unix/sparc/start.c: Likewise.
8975         * sysdeps/unix/sysv/irix4/start.c: Likewise.
8976         * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
8977
8978         * manual/search.texi (Tree Search Function, Hash Search Function):
8979         Mention search.h clearly.
8980
8981 2002-10-05  Roland McGrath  <roland@redhat.com>
8982
8983         * elf/dl-fxstat64.c: File removed.
8984         * elf/dl-xstat64.c: File removed.
8985         * elf/Makefile (rtld-routines): Remove them.
8986         * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
8987         Instead, use strong_alias instead of versioned_symbol in the
8988         !SHLIB_COMPAT case.
8989         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
8990         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
8991
8992         * include/shlib-compat.h
8993         (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
8994         [! NOT_IN_libc] (IS_IN_libc): Define it.
8995         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
8996         * elf/Makefile (CPPFLAGS-.os): Likewise.
8997
8998         * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
8999         Return the status instead of calling exit.
9000
9001         * Makeconfig (CFLAGS): Prepend -std=gnu99.
9002         * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
9003         Remove superfluous rm command, whose @ plus make bugs hid
9004         all these commands from the make output.
9005
9006         * include/stubs-prologue.h: New file.  Give #error under #ifdef _LIBC.
9007         * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
9008         Use that file's contents instead of literal echo's for the prologue.
9009         * include/features.h: Include <gnu/stubs.h> unconditionally.
9010         * include/gnu/stubs.h: New file.
9011
9012 2002-09-30  Roland McGrath  <roland@redhat.com>
9013
9014         * elf/rtld-Rules: New file.
9015         * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
9016         $(objpfx)rtld-libc.a): New targets.
9017         (generated): Add them.
9018         (reloc-link): Remove -o $@ from the variable.
9019         ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
9020         (distribute): Add rtld-Rules.
9021         (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
9022         * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
9023         (common-mostlyclean, common-clean): Clean up rtld-* files.
9024         * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
9025
9026 2003-05-20  Jakub Jelinek  <jakub@redhat.com>
9027
9028         * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
9029         If temp != NULL, copy dynamic entries which need relocation to temp
9030         array before relocating.
9031         (DL_RO_DYN_TEMP_CNT): Define.
9032         * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
9033         * elf/rtld.c (_dl_start): Likewise.
9034         (dl_main): Likewise.  Add dyn_temp static variable.
9035
9036 2002-10-11  Roland McGrath  <roland@redhat.com>
9037
9038         * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
9039         now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
9040
9041         * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
9042         proper set of no-op insn prefixes.
9043
9044         * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
9045
9046 2002-10-11  Ulrich Drepper  <drepper@redhat.com>
9047
9048         * sysdeps/unix/sysv/linux/execve.c: Don't try calling
9049         __pthread_kill_other_threads_np.
9050
9051         * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
9052
9053 2002-10-08  Roland McGrath  <roland@redhat.com>
9054
9055         * locale/newlocale.c (__newlocale): If setting all categories to "C",
9056         just return &_nl_C_locobj instead of copying it.
9057         * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
9058         * locale/duplocale.c (__duplocale): Likewise.
9059
9060 2002-10-07  Roland McGrath  <roland@frob.com>
9061
9062         * config.h.in (HAVE_I386_SET_GDT): New #undef.
9063         * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
9064         * sysdeps/mach/configure: Regenerated.
9065
9066 2002-10-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9067
9068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
9069         Add all necessary register outputs for syscall-clobbered registers.
9070
9071 2002-10-02  David Mosberger  <davidm@hpl.hp.com>
9072
9073         * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
9074         Itanium 2 (and Itanium).
9075         Fix unwind directives and make it fit in 80 columns.
9076         * sysdeps/ia64/memset.S: Likewise.
9077         * sysdeps/ia64/memcpy.S: Likewise.
9078         Move jump table to .rodata section.
9079
9080 2002-10-03  Roland McGrath  <roland@frob.com>
9081
9082         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
9083         clobbers to asm.
9084
9085 2002-10-10  Andreas Jaeger  <aj@suse.de>
9086
9087         * sysdeps/x86_64/_mcount.S: Restore correct registers.
9088
9089 2002-10-10  Ulrich Drepper  <drepper@redhat.com>
9090
9091         * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
9092
9093 2002-10-09  Ulrich Drepper  <drepper@redhat.com>
9094
9095         * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
9096         _dl_allocate_tls_init.  Add rtld_hidden_proto.
9097         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
9098         rtld_hidden_def.
9099         * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
9100
9101         * version.h (VERSION): Bump to 2.3.1.
9102
9103         * Make-dist: Add back one of the tar invocations removed before.
9104
9105         * stdlib/Makefile (distribute): Add allocalim.h.
9106
9107         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
9108         (__libc_tsd_address): Use correct variable name.
9109         Patch by Stefan Jones <stefan.jones@multigig.com>.
9110
9111         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
9112         Reported by edwardsg@sgi.com [PR libc/4678].
9113
9114         * Versions.def (libc): Add GLIBC_2.3.1.
9115         (libpthread): Add GLIBC_2.3.1.
9116
9117         * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
9118         and __sigtimedwait.
9119         * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
9120         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
9121         libc_hidden_def.
9122         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
9123         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
9124
9125         * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
9126         * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
9127         and make old name an alias.
9128         * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
9129         and make old name an alias.
9130         * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
9131         __libc_msgsnd.
9132
9133         * include/sys/uio.h: Declare __libc_readv and __libc_writev.
9134         * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
9135         __libc_writev.
9136         * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
9137         old name an alias.
9138         * sysdeps/posix/readv.c: Likewise
9139         * sysdeps/unix/sysv/aix/readv.c: Likewise.
9140         * sysdeps/unix/sysv/linux/readv.c: Likewise.
9141         * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
9142         old name an alias.
9143         * sysdeps/posix/writev.c: Likewise
9144         * sysdeps/unix/sysv/aix/writev.c: Likewise.
9145         * sysdeps/unix/sysv/linux/writev.c: Likewise.
9146
9147         * include/sys/wait.h: Declare __waitid.
9148         * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
9149         * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
9150         name an alias.
9151         * sysdeps/posix/waitid.c: Likewise.
9152         * sysdeps/unix/sysv/aix/waitid.c: Likewise.
9153
9154         * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
9155
9156 2002-10-07  Jakub Jelinek  <jakub@redhat.com>
9157
9158         * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
9159         prototypes.
9160         (__MAX_ALLOCA_CUTOFF): Define.
9161         Include allocalim.h.
9162         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
9163         _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
9164         host_buffer depending on __libc_use_alloca.
9165         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
9166         _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
9167         net_buffer depending on __libc_use_alloca.
9168         * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
9169         buf depending on __libc_use_alloca.
9170         * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
9171         * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
9172         instead of hardcoded constants.
9173         Pass proper size argument to alloca and compute end for wide char
9174         version.
9175         * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
9176         instead of hardcoded constants.
9177         * string/strcoll.c (strcoll): Likewise.
9178         * string/strxfrm.c (strxfrm): Likewise.
9179         * sysdeps/posix/readv.c (__readv): Likewise.
9180         * sysdeps/posix/writev.c (__writev): Likewise.
9181         * sysdeps/generic/allocalim.h: New file.
9182
9183 2002-10-08  Roland McGrath  <roland@redhat.com>
9184
9185         * configure.in (aux_missing warning): Change "too old" to
9186         "incompatible versions", since for autoconf it's "too new" right now.
9187         * configure: Regenerated.
9188
9189         * configure.in (AUTOCONF): New check to set it.  Set to "no" if the
9190         one found doesn't work on our configure.in.
9191         * configure: Regenerated.
9192         * config.make.in (AUTOCONF): New substituted variable.
9193         * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
9194         (autoconf-it): ... here, use that instead of defining conditionally.
9195         Use $(AUTOCONF) instead of literal autoconf.
9196         [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
9197         with this condition.
9198         * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
9199
9200 2002-10-08  Ulrich Drepper  <drepper@redhat.com>
9201
9202         * Make-dist (dist): Cleanup a bit.  We are not interested in the
9203         14 char filename limit anymore.  Remove intermediate files and
9204         symlinks.
9205
9206 2002-10-05  Ulrich Drepper  <drepper@redhat.com>
9207
9208         * po/sk.po: Update from translation team.
9209         * po/tr.po: Likewise.
9210         * po/gl.po: Likewise.
9211
9212 2002-10-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9213
9214         * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
9215
9216 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
9217
9218         * version.h (RELEASE): Change to stable.
9219
9220 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
9221
9222         * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
9223         __syscall_exit_group): New prototypes.
9224
9225 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
9226
9227         * glibc 2.3 released.
9228
9229
9230 See ChangeLog.13 for earlier changes.