* sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
[platform/upstream/glibc.git] / ChangeLog
1 2002-09-24  Roland McGrath  <roland@redhat.com>
2
3         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
4         __libc_write, __libc_lseek64, to ...
5         (ld: GLIBC_PRIVATE): ... here.
6
7         * csu/Versions: Use %include <tls.h> to get USE_TLS defined.
8         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
9         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
10         * resolv/Versions: Use %include <tls.h> to get USE_TLS defined.
11         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno,
12         and _res.
13         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here.
14
15         * elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
16         New macros for x86-64.
17
18         * sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
19         It was indentical to the linux/bits/time.h file.
20
21         * nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning.
22
23         * resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.
24
25 2002-09-23  Ulrich Drepper  <drepper@redhat.com>
26
27         * po/zh_CN.po: New file.
28
29 2002-09-23  Roland McGrath  <roland@redhat.com>
30
31         * posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K]
32         for gethostname declaration.
33
34         * catgets/open_catalog.c (__open_catalog): Don't use a value type
35         as the __builtin_expect expression, just the Boolean value.
36
37         * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
38         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
39         * resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
40         * iconvdata/tst-loading.c (main): Likewise.
41         * catgets/tst-catgets.c (main): Likewise.
42         * stdlib/tst-xpg-basename.c (main): Likewise.
43         * stdlib/tst-bsearch.c (main): Likewise.
44         * stdio-common/test-vfprintf.c (main): Likewise.
45         * stdio-common/tst-rndseek.c (do_test): Likewise.
46         * libio/tst_swprintf.c (main): Likewise.
47         * libio/tst-fgetws.c (main): Likewise.
48         * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
49         * time/tst-posixtz.c (main): Likewise.
50         * time/tst-strptime.c (test_tm): Likewise.
51         * time/tst-strptime.c (main): Likewise.
52         * time/tst-getdate.c (main): Likewise.
53         * posix/tst-mmap.c (main): Likewise.
54         * posix/tst-getaddrinfo.c (do_test): Likewise.
55         * io/tst-getcwd.c (do_test): Likewise.
56         * resolv/tst-aton.c (main): Likewise.
57         * inet/tst-network.c (main): Likewise.
58         * libio/tst-fgetws.c (main): Likewise.
59         * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
60         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
61         for PTYNO.
62
63         * stdlib/msort.c (qsort): Add a cast to silence warning.
64         * stdio-common/vfprintf.c (process_string_arg): Likewise.
65         * libio/oldfileops.c (_IO_old_do_write): Likewise.
66         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
67         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
68         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
69         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
70         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
71         * sysdeps/unix/grantpt.c (grantpt): Likewise.
72         * libio/tst-widetext.c (main): Likewise.
73         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
74         * rt/tst-aio.c (test_file): Likewise.
75         * rt/tst-aio64.c (test_file): Likewise.
76         * resolv/tst-aton.c (main): Likewise.
77
78         * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.
79
80         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
81         instead of uint32_t in these macros.
82
83 2002-09-22  Bruno Haible  <bruno@clisp.org>
84
85         * iconv/iconv_prog.c (main): Provide an error message that identifies
86         the wrong encoding.
87
88         * iconvdata/tscii.c: New file.
89         * iconvdata/testdata/TSCII: New file.
90         * iconvdata/testdata/TSCII..UTF8: New file.
91         * iconvdata/TSCII.precomposed: New file.
92         * iconvdata/TSCII.irreversible: New file.
93         * iconvdata/gconv-modules (TSCII): New module.
94         * iconvdata/Makefile (modules): Add TSCII.
95         (distribute): Add tscii.c.
96         * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
97         buffer size.
98         * iconvdata/tst-tables.sh: Add TSCII.
99         * iconvdata/TESTS: Add TSCII.
100
101         Revert 2002-04-18 patch.
102         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
103         FROM_DIRECTION): Make the FROM direction stateful again.
104         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
105         FROM_DIRECTION): Likewise.
106
107         * iconvdata/tst-e2big.c: New file.
108         * iconvdata/Makefile (tests): Add tst-e2big.
109
110 2002-09-23  Roland McGrath  <roland@redhat.com>
111
112         * elf/Makefile (test-extras): Define this instead of test-srcs.
113         * Makerules (all-nonlib): Include $(test-extras) too.
114
115 2002-09-21  Carlos O'Donell  <carlos@baldric.uwo.ca>
116
117         * sysdeps/hppa/abort-instr.h: New file.
118
119 2002-09-22  Roland McGrath  <roland@frob.com>
120
121         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
122
123         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
124
125 2002-09-22  Andreas Schwab  <schwab@suse.de>
126
127         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
128
129         * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
130         (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
131         Use GCC builtins.
132
133 2002-09-21  Roland McGrath  <roland@redhat.com>
134
135         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
136         Correct the value so it covers all platforms, and is computed
137         from _DL_PLATFORMS_COUNT rather than hard-wired.
138         From Andrew Suffield <asuffield@debian.org>.
139
140 2002-09-20  Ulrich Drepper  <drepper@redhat.com>
141
142         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
143         locking when using mount tab file.
144         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
145         * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
146         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
147
148         * elf/dl-init.c (_dl_init): Fix test of the size of the
149         preinit_array section.
150         (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
151         Reported by Brian Cabral <cabral@ikuni.com>.
152
153 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
154
155         * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
156         * sysdeps/powerpc/powerpc32/sysdep.h: New file.  Define powerpc32
157         specific macros copied from sysdeps/powerpc/sysdep.h.
158         * sysdeps/powerpc/powerpc64/sysdep.h: New file.  Define powerpc64
159         specific macros.
160         * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
161         [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
162         [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
163
164 2002-09-19  Bruno Haible  <bruno@clisp.org>
165
166         * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
167         returning.
168
169 2002-09-17  Bruno Haible  <bruno@clisp.org>
170
171         * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
172         * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
173         also on platforms with !HAVE_UT_TYPE.
174         (proc_utmp_eq): Remove function.
175         (internal_getut_r, pututline_file): Call __utmp_equal instead.
176
177 2002-09-20  Bruno Haible  <bruno@clisp.org>
178
179         * abi-tags: Add support for FreeBSD with ABI OS value 3.
180         * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
181
182 2002-09-20  Roland McGrath  <roland@redhat.com>
183
184         * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
185         (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
186         terms of __WORDSIZE.
187         * sysdeps/x86_64/gmp-mparam.h: File removed.
188         * sysdeps/sparc/gmp-mparam.h: File removed.
189         * sysdeps/mips/mips64/gmp-mparam.h: File removed.
190         * sysdeps/ia64/gmp-mparam.h: File removed.
191         * sysdeps/alpha/gmp-mparam.h: File removed.
192
193 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
194
195         * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
196         load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
197         casts.  Align __libc_stack_end to 8 bytes.
198
199 2002-09-20  Roland McGrath  <roland@redhat.com>
200
201         * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
202         instead of asm for lrintf, __lrintf aliases.
203
204         * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
205         int array for 32-/64-bit compatibility.
206         From Steven Munroe  <sjmunroe@us.ibm.com>.
207
208 2002-09-17  Bruno Haible  <bruno@clisp.org>
209
210         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
211         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
212         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
213         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
214         for iterating through the list of interfaces.
215         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
216
217 2002-09-20  Roland McGrath  <roland@redhat.com>
218
219         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
220         Reported by Bruno Haible <bruno@clisp.org>.
221
222         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
223
224         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
225         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
226         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
227
228 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
229
230         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
231         * sysdeps/powerpc/bits/wordsize.h: New file.
232         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
233         array to int array for 32-/64-bit compatibility.
234
235 2002-09-20  Roland McGrath  <roland@redhat.com>
236
237         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
238
239         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
240         Reported by Bruno Haible <bruno@clisp.org>.
241
242         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
243         before doubling RQ_LEN.
244         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
245         Reported by Bruno Haible <bruno@clisp.org>.
246
247 2002-09-18  Bruno Haible  <bruno@clisp.org>
248
249         * login/logout.c (logout): Don't assume ut_time has the same size as
250         a time_t.
251         * login/logwtmp.c (logwtmp): Likewise.
252
253         * sysdeps/pthread/configure: New file, moved here from
254         linuxthreads/sysdeps/unix/sysv/linux/configure.
255
256 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
257
258         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
259         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
260         Reported by Glen Nakamura <glen@imodulo.com>.
261
262 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
263
264         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
265         thread's sigstate data structure if it has been allocated.
266
267 2002-09-19  Roland McGrath  <roland@redhat.com>
268
269         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
270         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
271
272 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
273
274         * version.h (VERSION): Bump to 2.2.94.
275
276         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
277         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
278         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
280
281         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
282
283         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
284
285         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
286
287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
288
289 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
290
291         * sysdeps/wordsize-32/Makefile: New file.
292         * sysdeps/arm/Makefile: Removed.
293         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
294         Don't add divdi3 here.
295         * sysdeps/m68k/Makefile: Likewise.
296         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
297         * sysdeps/sh/Makefile: Likewise.
298         * sysdeps/s390/s390-32/Makefile: Likewise.
299
300 2002-09-18  Roland McGrath  <roland@redhat.com>
301
302         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
303         the __ctype_* compat symbols, so the relocs generated bind to the
304         right versioned global symbol in the shared object.
305
306         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
307         from the value taken from the DT_VERSYM table.
308         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
309         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
310         (RESOLVE_GOTSYM): Likewise.
311
312         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
313         Add libc_hidden_def.
314         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
315         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
316         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
317         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
318         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
319         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
320         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
321         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
322
323 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
324
325         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
326
327         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
328         define sigaction and __sigaction as wrappers around
329         __libc_sigaction which rejects changing SIGCANCEL.
330         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
331
332         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
333         SETTID/CLEARTID.
334
335         * signal/allocrtsig.c: Move to...
336         * sysdeps/generic/allocrtsig.c: ...here.  New file.
337
338 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
339
340         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
341
342         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
343         R_386_TLS_LE): Define.
344         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
345         comments.
346         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
347         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
348         (elf_machine_rel): Handle R_386_TLS_TPOFF.
349         (elf_machine_rela): Likewise.
350         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
351
352 2002-09-17  Roland McGrath  <roland@redhat.com>
353
354         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
355         file-specific variable override so it compiles properly when using
356         --with-headers.
357
358 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
359
360         Ported to PowerPC64 running Linux.
361         * sysdeps/powerpc/powerpc64/Dist: New file.
362         * sysdeps/powerpc/powerpc64/Implies: New file.
363         * sysdeps/powerpc/powerpc64/Makefile: New file.
364         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
365         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
366         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
367         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
368         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
369         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
370         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
371         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
372         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
373         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
374         * sysdeps/powerpc/powerpc64/memset.S: New file.
375         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
376         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
377         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
378         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
379         * sysdeps/powerpc/powerpc64/strchr.S: New file.
380         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
381         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
382         * sysdeps/powerpc/powerpc64/strlen.S: New file.
383         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
384         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
385         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
386         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
394
395         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
396         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
397         various gcc versions.  Dot names required for powerpc64.
398         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
399         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
400         C_SYMBOL_DOT_NAME(alias).
401         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
402         original strong_alias macro.
403         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
404         C_SYMBOL_DOT_NAME(alias).
405         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
406         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
407         '.'ed name.
408         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
409         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
410         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
411         (hidden_def): Append hidden_dot_def1 macro to definition.
412         (hidden_ver): Append hidden_dot_def1 macro to definition.
413         (hidden_data_def): New macro.  Same as original hidden_def macro.
414         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
415         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
416         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
417         (hidden_weak): Append hidden_dot_weak1 macro to definition.
418         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
419         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
420         Otherwise defined as __GI_name.
421         (libc_hidden_data_def): New macro.  Use hidden_data_def.
422         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
423         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
424         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
425         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
426         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
427         (libm_hidden_data_def): New macro.  Use hidden_data_def.
428         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
429         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
430         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
431
432 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
433
434         * include/libc-symbols.h: Change *hidden_proto macros to accept
435         option parameters and pass those to the attribute definition.
436         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
437
438         * include/unistd.h: Declare __libc_pause.
439
440         * include/sys/socket.h: Declare __libc_send, __libc_recv,
441         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
442
443         * include/unistd.h: Declare __libc_fork.
444
445 2002-09-17  Roland McGrath  <roland@redhat.com>
446
447         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
448         (passwd2des): Define it as an alias.
449         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
450
451 2002-09-12  Bruno Haible  <bruno@clisp.org>
452
453         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
454         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
455
456         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
457         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
458
459 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
460
461         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
462         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
463         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
464         PowerPC64 does not have separate 64-bit syscalls.
465
466 2002-09-16  Roland McGrath  <roland@redhat.com>
467
468         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
469
470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
471         New macro.
472
473         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
474
475         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
476         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
477         * sysdeps/generic/_exit.c: Likewise.
478
479 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
480
481         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
482
483         * elf/rtld.c (struct dl_start_final_info): New.
484         (_dl_start_final): Change second argument to struct
485         dl_start_final_info *.  Set start_time from info.
486         (_dl_start): Remove bootstrap_map variable, add info.
487         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
488         store HP_TIMING_NOW result into info.start_time.
489
490 2002-09-16  Andreas Jaeger  <aj@suse.de>
491
492         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
493         to _Exit.
494         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
495
496 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
497
498         * sysdeps/powerpc/abort-instr.h: New file.
499
500 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
501
502         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
503         comment.
504
505         * test-skeleton.c (main): Provide more information in case waitpid
506         fails.
507
508         * include/unistd.h: Declare __exit_thread.
509         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
510         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
511         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
512         * sysdeps/unix/sysv/linux/_exit.c: New file.
513         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
514         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
515         Add exit-thread.
516
517         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
518
519 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
520
521         * sysdeps/i386/dl-machine.h (elf_machine_rel)
522         (case R_386_TLS_DTPMOD32): Don't use addend.
523         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
524         (elf_machine_rela): Add support for TLS relocs.
525
526 2002-09-14  Roland McGrath  <roland@redhat.com>
527
528         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
529
530 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
531
532         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
533         specific asm macros for multiple percision integer math.
534
535 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
536
537         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
538         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
539         Remove per-machine conditionals for FLAG_* cases.
540         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
541         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
543
544 2002-09-10  Alan Modra <amodra@bigpond.net.au>
545
546         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
547         defined in entry.h.
548         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
549         lowest address for profiling in  __monstartup call.
550         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
551
552 2002-09-14  Roland McGrath  <roland@redhat.com>
553
554         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
555         instead of __NR_pread.
556         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
557         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
558         instead of __NR_pwrite.
559         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
560
561 2002-09-13  Roland McGrath  <roland@redhat.com>
562
563         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
564
565 2002-09-13  Andreas Jaeger  <aj@suse.de>
566
567         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
568         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
569
570 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
571
572         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
573
574 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
575
576         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
577         reading the headers.
578
579 2002-09-12  Roland McGrath  <roland@redhat.com>
580
581         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
582         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
583         find the ELF header.
584
585         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
586         executable if needed, in case it's actually a shared object.
587
588 2002-09-11  Roland McGrath  <roland@redhat.com>
589
590         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
591         l_map_start to adjust l_tls_initimage.
592
593         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
594         when using h_errno and it's not set to NETDB_INTERNAL.
595         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
596
597         * Makefile ($(common-objpfx)testrun.sh): New target.
598         (others): Depend on it.
599         (postclean-generated): Append it.
600
601         * nss/bug-erange.c: New file.
602         * nss/Makefile (tests): Add it.
603
604         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
605         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
606
607         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
608         strncmp, keeps the code smaller for a non-performance-critical case.
609
610         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
611         no longer wrongly matches arbitrary prefixes of NAME.
612         Reported by Jakub Jelinek <jakub@redhat.com>.
613
614 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
615
616         * posix/bug-regex11.c (tests): New array.
617         (main): Rewritten to run more different tests.
618
619 2002-09-10  Roland McGrath  <roland@redhat.com>
620
621         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
622         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
623         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
624
625         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
626         well so we don't get it declared by include/math.h's hidden_proto.
627         Then do hidden_proto for __isnanf locally so hidden_def works right.
628
629         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
630         a cast to turn nl_langinfo return value into an integer.
631
632 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
633
634         * posix/regexec.c (build_trtable): Fix the destination of
635         newline to prevent wrong states from overwriting.
636         Append break statements to optimization.
637
638 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
639
640         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
641         (build_range_exp): Add castings to strlen invocations.
642         (build_collating_symbol): Restore the type of characters from "char"
643         to "unsigned char", and supplement castings.
644         (build_collating_symbol): Likewise.
645         (build_equiv_class): Likewise.
646         (build_charclass): Likewise.
647         (seek_collating_symbol_entry): Likewise.
648         (parse_bracket_exp): Likewise.
649         (build_word_op): Supplement a casting.
650         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
651         (re_string_allocate): Fix castings.
652         (re_string_construct): Likewise.
653         (re_string_construct_common): Likewise.
654         (re_string_realloc_buffers): Likewise.
655         (build_wcs_buffer): Likewise.
656         (build_wcs_upper_buffer): Likewise.
657         (re_string_skip_chars): Likewise.
658         (re_string_reconstruct): Likewise.
659         * posix/regex_internal.h: Restore the type of characters in
660         re_string_t and bracket_elem_t from "char" to "unsigned char".
661         (re_string_elem_size_at): Fix castings.
662         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
663         (transit_state_bkref_loop): Restore the type of characters from
664         "char" to "unsigned char", and append a cast to "char*" pointer in
665         array subscript.
666         (check_node_accept_bytes): Likewise.
667         (find_collation_sequence_value): Likewise.
668
669 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
670
671         * sysdeps/mips/memcpy.S: New file.
672         * sysdeps/mips/memset.S: New file.
673         * sysdeps/mips/fpu/e_sqrt.c:  New file.
674         * sysdeps/mips/fpu/e_sqrtf.c: New file.
675
676         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
677         functional before. Also removed all SHLIB_COMPAT stuff.
678         * fpu/fegetenv.c: Likewise.
679         * fpu/fesetenv.c:: Likewise.
680         * fpu/feupdateenv.c: Likewise.
681         * fpu/fgetexcptflg.c: Likewise.
682         * fpu/fraiseexcpt.c: Likewise.
683
684         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
685
686 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
687
688         * include/math.h (__finite_internal, __finitef_internal,
689         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
690         (isfinite): Remove.
691         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
692         __isinfl, __isnanl): Add hidden_proto.
693         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
694         libm_hidden_proto.
695         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
696         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
697         __is{inf,nan} calls.
698         * stdio-common/printf_size.c (printf_size): Likewise.
699         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
700         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
701         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
702         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
703         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
704         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
705         (__finite): Add hidden_def.
706         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
707         (__finitef): Add hidden_def.
708         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
709         (__finitel): Add hidden_def.
710         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
711         hidden_def.
712         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
713         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
714         libm_hidden_def.
715         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
716         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
717         hidden_def.
718         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
719         (__isinfl): Remove INTDEF.
720         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
721         hidden_def.
722         (__isnanl): Remove INTDEF.
723         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
724         libm_hidden_def.
725         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
726         instead of sin and cos.
727         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
728         Add hidden_def.
729         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
730         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
731         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
732         libm_hidden_def.
733         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
734         Add hidden_def.
735         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
736         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
737         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
738         libm_hidden_def.
739         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
740         libm_hidden_def.
741         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
742         Add hidden_def.
743         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
744         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
745         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
746         libm_hidden_def.
747         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
748         __finitel_internal): Remove aliases.
749         (__finite, __finitef, __finitel): Add hidden_def.
750         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
751         __isnanl_internal): Remove aliases.
752         (__isnan, __isnanf, __isnanl): Add hidden_def.
753         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
754         __isinfl_internal): Remove aliases.
755         (__isinf, __isinff, __isinfl): Add hidden_def.
756         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
757         __fpclassifyl): Add libm_hidden_def.
758         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
759         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
760         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
761         (hidden_defx): Define and use.
762         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
763         libm_hidden_def.
764         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
765         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
766         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
767         Remove INTDEF.
768         (__isnan, __isnanf): Add hidden_def.
769         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
770         (__finitel): Add libm_hidden_def.
771         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
772
773         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
774         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
775         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
776         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
777         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
778         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
779         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
780         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
781         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
782         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
783         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
784         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
785         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
786         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
787         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
788         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
789         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
790         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
791         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
792         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
793         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
794         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
795         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
796         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
797         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
798         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
799         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
800
801 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
802
803         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
804
805 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
806
807         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
808         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
809
810 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
811
812         * string/stratcliff.c: Some more strncpy tests.
813         Patch by Daniel Jacobowitz <drow@mvista.com>.
814
815 2002-09-08  Roland McGrath  <roland@redhat.com>
816
817         * resolv/resolv.h: Include <sys/types.h> for u_long even in
818         the [__need_res_state] case.
819         Reported by Bruno Haible <bruno@clisp.org>.
820
821 2002-09-04  Bruno Haible  <bruno@clisp.org>
822
823         * sysdeps/generic/bits/ustat.h: Comment fix.
824         * io/sys/sendfile.h: Comment fix.
825         * sysdeps/posix/pread.c: Comment fix.
826         * sysdeps/posix/pread64.c: Comment fix.
827         * sysdeps/posix/pwrite.c: Comment fix.
828         * sysdeps/posix/pwrite64.c: Comment fix.
829
830 2002-09-06  Roland McGrath  <roland@redhat.com>
831
832         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
833         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
834         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
835         (_UTSNAME_MACHINE_LENGTH): Likewise.
836         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
837
838 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
839
840         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
841         test for filesystem type name of mount points.
842
843         * include/errno.h: Use errno definition with __thread for now only
844         in libc and ld.so.
845
846         * test-skeleton.c (main): Improve error message for unexpected
847         signal case.
848
849 2002-09-05  Roland McGrath  <roland@redhat.com>
850
851         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
852         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
853
854 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
855
856         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
857         case of failure.
858
859 2002-09-04  Bruno Haible  <bruno@clisp.org>
860
861         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
862         sigset_get_old_mask): Turn into inline functions.
863         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
864         sigset_get_old_mask): Likewise.
865         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
866         sigset_get_old_mask): Likewise.
867         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
868         syntax.
869
870         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
871
872         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
873         default definitions.
874         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
875         _sys_nerr_internal instead of _sys_nerr.
876
877         * nscd/connections.c (handle_request): Declare CALLER inside #if.
878
879 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
880
881         * sysdeps/powerpc/__longjmp.S: Moved to...
882         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
883         * sysdeps/powerpc/add_n.S: Moved to...
884         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
885         * sysdeps/powerpc/addmul_1.S: Moved to...
886         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
887         * sysdeps/powerpc/atomicity.h: Moved to...
888         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
889         * sysdeps/powerpc/backtrace.c: Moved to...
890         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
891         * sysdeps/powerpc/bp-asm.h: Moved to...
892         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
893         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
894         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
895         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
896         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
897         * sysdeps/powerpc/dl-machine.c: Moved to...
898         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
899         * sysdeps/powerpc/dl-machine.h: Moved to...
900         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
901         * sysdeps/powerpc/dl-start.S: Moved to...
902         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
903         * sysdeps/powerpc/gprrest0.S: Moved to...
904         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
905         * sysdeps/powerpc/gprrest1.S: Moved to...
906         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
907         * sysdeps/powerpc/gprsave0.S: Moved to...
908         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
909         * sysdeps/powerpc/gprsave1.S: Moved to...
910         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
911         * sysdeps/powerpc/lshift.S: Moved to...
912         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
913         * sysdeps/powerpc/memset.S: Moved to...
914         * sysdeps/powerpc/powerpc32/memset.S: ...here.
915         * sysdeps/powerpc/mul_1.S: Moved to...
916         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
917         * sysdeps/powerpc/ppc-mcount.S: Moved to...
918         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
919         * sysdeps/powerpc/register-dump.h: Moved to...
920         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
921         * sysdeps/powerpc/rshift.S: Moved to...
922         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
923         * sysdeps/powerpc/setjmp.S: Moved to...
924         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
925         * sysdeps/powerpc/stpcpy.S: Moved to...
926         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
927         * sysdeps/powerpc/strchr.S: Moved to...
928         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
929         * sysdeps/powerpc/strcmp.S: Moved to...
930         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
931         * sysdeps/powerpc/strcpy.S: Moved to...
932         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
933         * sysdeps/powerpc/strlen.S: Moved to...
934         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
935         * sysdeps/powerpc/sub_n.S: Moved to...
936         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
937         * sysdeps/powerpc/submul_1.S: Moved to...
938         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
939         * sysdeps/powerpc/elf/bzero.S: Moved to...
940         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
941         * sysdeps/powerpc/elf/start.S: Moved to...
942         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
943         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
944         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
945         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
946         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
947         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
948         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
949         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
950         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
951         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
952         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
953         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
954         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
955         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
957         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
958         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
959         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
960         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
961         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
962         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
963         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
965         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
967         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
969         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
970         powerpc/powerpc64.
971
972 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
973
974         * FAQ.in: Add powerpc64 to supported targets list. Also state the
975         minimum gcc version is 3.2
976         * README: Add powerpc64 to supported targets list.
977         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
978         Add powerpc64 and machine=powerpc/powerpc64.
979         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
980         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
981         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
982         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
983         * sysdeps/powerpc/powerpc32/Dist: New file.
984         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
985         * sysdeps/powerpc/powerpc32/Implies: New file.
986         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
987         ($(with-fp) = no): Move test to powerpc32/Makefile.
988         ($(subdir) = misc): Move to powerpc32/Makefile.
989         ($(build-shared) = yes): Move to powerpc32/Makefile.
990         ($(subdir) = csu): Move to powerpc32/Makefile.
991         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
992         * sysdeps/powerpc/powerpc32/Makefile: New file.
993         * sysdeps/powerpc/Versions: Remove libgcc functions.
994         * sysdeps/powerpc/powerpc32/Versions: New file.
995         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
996         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
997         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
998         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
999         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
1000         ($machine): Add powerpc/powerpc64 to if ... | for
1001         libc_cv_slibdir=/libc64.
1002         (powerpc*): Set ldd_rewrite_script.
1003         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
1004         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
1005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
1006         Add clone.S.
1007         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
1008         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
1009         functions.  Remove GLIBC_2.2 functions except getrlimit and
1010         setrlimit.  Moved them to ...
1011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
1012
1013 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1014
1015         * libio/tst-atime.c: Include <errno.h>.
1016         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
1017
1018 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
1019
1020         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
1021         warnings of some compilers.
1022         (build_collating_symbol): Change the type of characters from
1023         "unsigned char" to "char", and append a cast to "char*" pointer in
1024         array subscript.
1025         (build_collating_symbol): Likewise.
1026         (build_equiv_class): Likewise.
1027         (build_charclass): Likewise.
1028         (re_compile_pattern): Remove incorrect cast.
1029         (re_compile_fastmap_iter): Change the type of characters from
1030         "unsigned char" to "char", and append a cast to "char*" pointer
1031         in array subscript.
1032         (parse_bracket_exp): Likewise.
1033         * posix/regex_internal.c (re_string_construct_common): Likewise.
1034         (re_string_allocate): Likewise.
1035         (re_string_construct): Likewise.
1036         (re_string_realloc_buffers): Likewise.
1037         (build_wcs_buffer): Likewise.
1038         (re_string_reconstruct): Likewise.
1039         * posix/regex_internal.h: Change the type of characters in
1040         re_string_t and bracket_elem_t from "unsigned char" to "char".
1041         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
1042         warnings of some compilers.
1043         (transit_state_bkref_loop): Change the type of characters from
1044         "unsigned char" to "char", and append a cast to "char*" pointer in
1045         array subscript.
1046         (check_node_accept_bytes): Likewise.
1047         (find_collation_sequence_value): Likewise.
1048
1049 2002-09-04  Roland McGrath  <roland@redhat.com>
1050
1051         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
1052         from 1024 to 65536, to avoid buffer overrun.
1053
1054 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
1055
1056         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
1057
1058 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1059
1060         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
1061         for filesystem.
1062
1063 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
1064
1065         * posix/bug-regex11.c: New test.
1066         * posix/Makefile (tests): Add bug-regex11.
1067
1068 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
1069
1070         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
1071         newlocale.
1072
1073 2002-09-02  Roland McGrath  <roland@redhat.com>
1074
1075         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
1076         __pthread_initialize_minimal and __libc_check_standard_fds to
1077         match the generic version.
1078
1079         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
1080         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
1081
1082         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
1083         warnings on platorms where char is unsigned.
1084
1085 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
1086
1087         * version.h (VERSION): Bump to 2.2.93.
1088
1089         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
1090
1091 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1092
1093         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
1094         as relocated.
1095
1096 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
1097
1098         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1099
1100 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1101
1102         * locale/localeinfo.h (struct locale_data): Add private.ctype.
1103         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
1104         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
1105         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
1106         (__wcsmbs_load_conv): Remove const from argument.
1107         (_nl_cleanup_ctype): New proto.
1108         (get_gconv_fcts): New function.
1109         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1110         (__wcsmbs_to_wc): Rename back to...
1111         (to_wc): ... this.
1112         (__wcsmbs_gconv_fcts): Rename to...
1113         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
1114         (lock): Removed.
1115         (__libc_setlocale_lock): New extern.
1116         (__wcsmbs_load_conv): Remove const from argument.
1117         Initialize new_category->private.ctype instead of a global
1118         variable.
1119         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1120         update_function_ptrs.  No locking is necessary.
1121         (_nl_cleanup_ctype): New function.
1122         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1123         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1124         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1125         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1126         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1127         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1128         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1129         * wcsmbs/wctob.c (wctob): Likewise.
1130         * stdlib/mblen.c (mblen): Likewise.
1131         * stdlib/mbtowc.c (mbtowc): Likewise.
1132         * stdlib/wctomb.c (wctomb): Likewise.
1133         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1134         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1135         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1136         Removed.
1137
1138 2002-09-02  Roland McGrath  <roland@frob.com>
1139
1140         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1141
1142 2002-09-01  Roland McGrath  <roland@redhat.com>
1143
1144         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1145         Variable declarations removed.
1146         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1147         these functions to replace them.
1148         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1149         functions plus an indirection rather than the old global variables.
1150         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1151         Macros removed.
1152         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1153         inline functions.
1154         * ctype/ctype-info.c: Revert last reversion back the other way.
1155         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1156         Define real function versions of include/ctype.h inlines here.
1157         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1158         __ctype_tolower_loc, __ctype_toupper_loc.
1159         * locale/lc-ctype.c: Revert last reversion back the other way.
1160         (_nl_postload_ctype): If current thread uses the global locale,
1161         update its tsd vars.
1162         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1163         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1164         CTYPE_TOLOWER, CTYPE_TOUPPER.
1165
1166         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1167         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1168         from __libc_tsd_threadvar_location.
1169         (__libc_tsd_set, __libc_tsd_get): Update uses.
1170
1171 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
1172
1173         * ctype/ctype.h: Undo the patch before the last one.  Put back the
1174         macro definitions for the standard functions to access the
1175         classification and mapping arrays.
1176         * include/ctype.h: Partly revert last patch.  Move the macro
1177         definitions for the exported functions back to the public header.
1178         #undef all the macros defined here before redefining.
1179         * ctype/ctype-info.c: Revert last patch.
1180         * locale/lc-ctype.c: Revert last patch.
1181
1182         * ctype/Makefile (routines): Add isctype.
1183         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1184         * ctype/ctype.h: Add declaration of isctype.
1185         * include/ctype.h: Declare __isctype.
1186         * ctype/isctype.c: New file.
1187
1188 2002-09-01  Roland McGrath  <roland@redhat.com>
1189
1190         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1191         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1192
1193         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1194
1195         * locale/findlocale.c (_nl_remove_locale): Don't search in
1196         _nl_locale_file_list if DATA->alloc is ld_archive.
1197         Use _nl_unload_locale to do the rest of the work.
1198
1199         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1200         of new structure to UNDELETABLE.
1201
1202         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1203         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1204         towlower, towupper): Macros removed.
1205         * ctype/ctype.h (__tobody): Put parens around macro argument.
1206         (__isctype): Macro removed.
1207         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1208         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1209         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1210         tolower, toupper): Macros and inlines removed.
1211         * include/ctype.h [! NOT_IN_libc]
1212         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1213         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1214         tolower, toupper): Define here instead, using _NL_CURRENT.
1215         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1216         using _NL_CURRENT.
1217         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1218         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1219         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1220         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1221         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1222         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1223         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
1224         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1225         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1226         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1227         (ISSORTMASK): Update use.
1228         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1229         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1230         (_nss_files_getENTNAME_r): Likewise.
1231         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1232         Likewise.
1233
1234         * Makerules (all-nonlib): Renamed from all-tests.
1235         Include $(others) here too.
1236         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1237         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1238         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1239         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1240         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1241         the program modules via cppflags-iterator.mk.
1242         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1243         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1244
1245 2002-08-31  Roland McGrath  <roland@redhat.com>
1246
1247         * posix/tst-getconf.sh: If no third arg, work with static linking.
1248
1249         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1250
1251         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1252         [_NL_CURRENT_INDIRECT].
1253
1254 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1255
1256         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1257
1258 2002-08-31  Roland McGrath  <roland@redhat.com>
1259
1260         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1261         Instead, make the single allocation of the structure larger to hold
1262         the name strings.
1263         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1264         Instead, calculate size for a single allocation and copy into it.
1265         * locale/freelocale.c (__freelocale): Don't free names individually.
1266
1267         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1268
1269         * locale/xlocale.h (__locale_struct): Move __names member last,
1270         for binary compatibility.
1271
1272         * locale/duplocale.c (__duplocale): Free names from the right array.
1273
1274         * locale/uselocale.c (__uselocale): Return previous locale when
1275         setting a new one.
1276
1277         * locale/newlocale.c: Commit changes from 2002-08-30
1278         batch where I failed to commit this file:
1279         (__newlocale): Fill in __names array.
1280
1281 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1282
1283         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1284         errlist-compat.c if versioning==yes.
1285
1286 2002-08-31  Andreas Jaeger  <aj@suse.de>
1287
1288         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1289         external functions with hidden attribute.
1290         (elf_machine_rela): Optimize.
1291
1292         * sysdeps/x86_64/memset.S: New file.
1293         * sysdeps/x86_64/bzero.S: New file.
1294         * sysdeps/x86_64/stpcpy.S: New file.
1295         * sysdeps/x86_64/strcat.S: New file.
1296         * sysdeps/x86_64/strchr.S: New file.
1297         * sysdeps/x86_64/strcpy.S: New file.
1298         * sysdeps/x86_64/strcspn.S: New file.
1299         * sysdeps/x86_64/strlen.S: New file.
1300         * sysdeps/x86_64/strpbrk.S: New file.
1301         * sysdeps/x86_64/strspn.S: New file.
1302         * sysdeps/x86_64/strcmp.S: New file.
1303         * sysdeps/x86_64/strtok_r.S: New file.
1304         * sysdeps/x86_64/strtok.S: New file.
1305         * sysdeps/x86_64/memcpy.S: New file.
1306         * sysdeps/x86_64/mempcpy.S: New file.
1307
1308         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1309
1310         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1311
1312 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1313
1314         * stdio-common/Makefile (generated): Add errlist-compat.c.
1315
1316         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1317
1318         * locale/localeinfo.h: Pretty printing.
1319
1320         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1321         form_number handling.
1322
1323 2002-08-31  Andreas Jaeger  <aj@suse.de>
1324
1325         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1326         double tests.
1327
1328         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1329         __start_context.
1330
1331         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1332
1333         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1334
1335         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1336         registers used for passing args.
1337
1338         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1339         all needed registers.
1340
1341         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1342         registers.
1343
1344         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1345         registers.
1346
1347 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1348
1349         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1350         always_inline attribute.
1351
1352 2002-08-30  Roland McGrath  <roland@redhat.com>
1353
1354         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1355         presume it's the stub and bail without error.
1356
1357         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1358         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1359
1360         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1361
1362         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1363         macros replace the i686 versions for 64-bit mode.
1364
1365         * locale/duplocale.c: Include <string.h>.
1366
1367         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1368         [_LIBC] (category_to_name): Don't define the function.  Instead
1369         define a macro using _nl_category_names.
1370
1371         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1372         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1373         * locale/global-locale.c (_nl_global_locale): Likewise.
1374         * locale/duplocale.c (__duplocale): strdup __names elements.
1375         * locale/freelocale.c (__freelocale): Free __names elements.
1376         * locale/localename.c (_nl_current_names): Variable removed.
1377         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1378         * locale/localeinfo.h (_nl_current_names): Removed decl.
1379         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1380         _nl_current_names throughout.
1381
1382         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1383
1384         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1385         and sys_nerr in the output file.
1386
1387         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1388         * scripts/cpp: Just use the environment variable.
1389
1390         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1391         * libio/tst-mmap-offend.c (do_test): Likewise.
1392         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1393         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1394         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1395
1396         * locale/localename.c: If the current locale is the global locale, use
1397         _nl_current_names; otherwise use the locale object.
1398
1399 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1400
1401         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1402         'm' to enable mmap I/O.
1403         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1404         former wasn't used (anymore?).
1405         (_IO_FLAGS2_MMAP): New define.
1406         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1407         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1408         _IO_FLAGS2_MMAP bit is set.
1409         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1410         Enable mmap-using mode only if 'm' was set.
1411
1412 2002-08-29  Roland McGrath  <roland@frob.com>
1413
1414         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1415
1416         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1417         Change argument type from int to intptr_t.
1418
1419         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1420         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1421         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1422         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1423         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1424
1425         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1426
1427         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1428
1429         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1430
1431         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1432         * assert/assert-perr.c: Add libc_hidden_def.
1433         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1434
1435         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1436         found at all.
1437         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1438         sys_errlist stuff to ...
1439         * sysdeps/unix/sysv/linux/Versions: ... here.
1440
1441         * mach/mach.h: Include <features.h>.
1442
1443 2002-08-29  Roland McGrath  <roland@redhat.com>
1444
1445         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1446         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1447         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1448
1449         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1450
1451         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1452         (norm_add_slashes): alloca -> __alloca
1453
1454 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1455
1456         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1457         string_malloced, it is unlikely to be set.
1458         Only call free with non-NULL workspace.
1459         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1460         -mcpu=ultrasparc, not only tune for it.
1461         (ASFLAGS*): Set unconditionally.
1462
1463         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1464         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1465         p_vaddr/p_offset when computing LOADADDR.
1466
1467 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1468
1469         * version.h (VERSION): Bump to 2.2.92.
1470
1471         * time/Makefile (tst-ftime_l-ENV): New variable.
1472
1473         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1474
1475         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1476         <U017A>, <U017D> and <U0179>. Add missing mappings.
1477         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1478
1479         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1480         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1481         (struct tostruct): Use ACRINDEX as type for link field.
1482         (statuc gmonparam): Likewise for froms.
1483         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1484         kcount and froms.
1485         (write_call_graph): Use correct type for from_index and to_index.
1486         * gmon/mcount.c: Use correct types for frompcindex and toindex
1487         variables.
1488         Patches by Dan Kegel <dank@kegel.com>.
1489
1490         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1491         canonical name.
1492
1493         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1494         __isspace_l.  Replace calls to isspace.
1495         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1496
1497 2002-08-29  Roland McGrath  <roland@redhat.com>
1498
1499         * string/tst-strxfrm.c: Remove __ from function names.
1500
1501 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1502
1503         * include/wchar.h: Declare __mbsrtowcs_l.
1504         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1505         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1506         USE_IN_EXTENDED_LOCALE_MODEL.
1507         * wcsmbs/mbsrtowcs_l: New file.
1508         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1509         define as static.  Change all uses.
1510         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1511         Change all callers.
1512         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1513         * time/strftime.c: When translating for the extended locale model
1514         use the _l functions.
1515         * time/Makefile (tests): Add tst-ftime_l.
1516         * time/tst-ftime_l.c: New file.
1517
1518 2002-08-28  Roland McGrath  <roland@redhat.com>
1519
1520         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1521         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1522         from _nl_find_locale ok if for _nl_C_name.
1523
1524         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1525         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1526         we know they are all linked in.
1527
1528         * NEWS: Added 2.2.6 text from 2.2 branch version.
1529
1530         * time/strptime.c (strptime_internal): Remove spurious const.
1531
1532         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1533         _nl_select_era_entry): Moved to ...
1534         * time/era.c: ... here, new file.
1535         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1536         Add internal_function to definitions.  Take an additional argument
1537         giving the `struct locale_data *' to use.
1538         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1539         _nl_parse_alt_digit): Moved to ...
1540         * time/alt_digit.c: ... here, new file.
1541         * time/lc-time-cleanup.c: New file.
1542         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1543         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1544         (_nl_cleanup_time): Declare it.
1545         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1546         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1547         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1548         * time/strftime.c: Pass locale data to helper functions.
1549         * time/strptime.c: Likewise.
1550
1551         * locale/localeinfo.h (struct locale_data): New member `private'
1552         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1553         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1554         * locale/C-collate.c: Update initializer.
1555         * locale/C-identification.c: Likewise.
1556         * locale/C-measurement.c: Likewise.
1557         * locale/C-telephone.c: Likewise.
1558         * locale/C-address.c: Likewise.
1559         * locale/C-name.c: Likewise.
1560         * locale/C-paper.c: Likewise.
1561         * locale/C-time.c: Likewise.
1562         * locale/C-numeric.c: Likewise.
1563         * locale/C-monetary.c: Likewise.
1564         * locale/C-messages.c : Likewise.
1565         * locale/C-ctype.c: Likewise.
1566
1567         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1568         Redefine this too.
1569
1570 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1571
1572         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1573         (_rtld_global): Use it.
1574
1575         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1576         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1577         object directory.  Pass all Versions files to the awk script.
1578         * sysdeps/gnu/errlist-compat.c: Removed.
1579         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1580         first Versions file in the search path which has them.
1581         Allow multiple errlist symbol versions to have the same count of
1582         errors.
1583         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1584         of "errlist-compat.c".
1585         * sysdeps/gnu/errlist.c: Regenerated.
1586         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1587         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1588         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1589         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1590         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1591         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1592         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1593         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1594         ECANCELLED if not defined by kernel headers.
1595         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1596         already defined by kernel headers.
1597         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1598         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1599         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1600         is a macro.
1601         * Versions.def (GLIBC_2.3) [librt]: Add.
1602
1603         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1604
1605 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1606
1607         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1608         missing comma to .type directive.
1609
1610 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1611
1612         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1613         unconditionally.
1614         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1615         check.
1616         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1617
1618 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1619
1620         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1621         check to close_and_out close.  Replace return NULL statements where
1622         fd might be >= 0 with goto close_and_out.  Close the file descriptor
1623         when it is no longer needed.
1624
1625 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1626
1627         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1628         string constants.
1629         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1630         * sysdeps/arm/dl-machine.h: Likewise.
1631         * sysdeps/cris/dl-machine.h: Likewise.
1632         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1633         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1634
1635 2002-08-28  Roland McGrath  <roland@redhat.com>
1636
1637         * Makeconfig (default_cflags): Revert unintended change.
1638
1639 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1640
1641         * version.h (VERSION): Bump to 2.2.91.
1642
1643         * configure.in: Disable TLS support by default for now.
1644
1645         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1646
1647         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1648         warnings.
1649
1650         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1651
1652         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1653         fprintf/fwprintf calls.
1654
1655 2002-08-28  Roland McGrath  <roland@redhat.com>
1656
1657         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1658         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
1659
1660         * locale/setlocale.c: Declare postload functions weak.
1661
1662         * elf/tst-tls1-static.c: New file.
1663         * elf/tst-tls2-static.c: New file.
1664         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1665
1666         Make uselocale support static linking.
1667         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1668         This file again just defines _nl_C_locobj.
1669         (_nl_C_locobj): Use a categories.def iterator in the initializer.
1670         * locale/global-locale.c: New file.  Define _nl_global_locale here,
1671         using all weak references in the initializer.
1672         * locale/Makefile (aux): Add global-locale.
1673         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1674         these unconditional, along with the tsd decl.
1675         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1676         Define it under these conditions.
1677         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1678         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
1679         `extern __thread struct locale_data *const *'.
1680         [NL_CURRENT_INDIRECT]
1681         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1682         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
1683         the thread variable _nl_current_LC_FOO and also a special absolute
1684         symbol _nl_current_LC_FOO_used.
1685         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1686         Set each _nl_current_LC_FOO symbol to point into the new locale,
1687         using weak references to test if _nl_current_LC_FOO_used was linked in.
1688         * locale/setlocale.c [! SHARED]: Replace this conditional ...
1689         [NL_CURRENT_INDIRECT]: ... with this one.
1690         (_nl_current, _nl_C): Variables removed.
1691         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1692         weak references to _nl_current_LC_FOO_used.
1693         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1694         (free_category): New function, broken out of ...
1695         (free_mem): ... here.  Call that.
1696         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1697         instead of a loop.
1698
1699         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1700         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1701         it is already absolute.
1702
1703         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1704         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1705         [$(build-static) = yes] (tests-static): New variable.
1706         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1707
1708 2002-08-26  Christoph Hellwig  <hch@lst.de>
1709
1710         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1711         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1712
1713 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1714
1715         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1716
1717         * sysdeps/s390/Dist: Add bits/link.h.
1718
1719         * sysdeps/sh/Dist: New file.
1720
1721         * sysdeps/ia64/Dist: Add ia64libgcc.S.
1722
1723         * sysdeps/wordsize-32/Dist: New file.
1724
1725         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1726         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1727         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1728
1729         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1730         sys/personality.h.
1731
1732         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1733         sparc/dl-brk.S.
1734
1735         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1736
1737         * sysdeps/unix/bsd/sun/Dist: New file.
1738
1739         * sysdeps/unix/bsd/osf/Dist: New file.
1740
1741         * sysdeps/unix/bsd/hp/Dist: New file.
1742
1743         * sysdeps/unix/arm/Dist: New file.
1744
1745         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1746
1747         * sysdeps/mach/hurd/Dist: Add set-init.c.
1748
1749         * sysdeps/i386/Dist: Add bits/link.h.
1750
1751         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1752
1753         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1754
1755         * locale/Makefile (distribute): Add hashval.h.
1756
1757         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1758
1759         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1760
1761         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1762         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1763         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1764         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1765         implementations.
1766         * libio/stdio.h: Likewise.
1767         * locale/locale.h: Likewise.
1768         * math/math.h: Likewise.
1769         * math/bits/mathcalls.h: Likewise.
1770         * setjmp/setjmp.h: Likewise.
1771         * signal/signal.h: Likewise.
1772         * stdlib/stdlib.h: Likewise.
1773         * string/string.h: Likewise.
1774         * time/time.h: Likewise.
1775         * wcsmbs/wchar.h: Likewise.
1776         * wctype/wctype.h: Likewise.
1777
1778 2002-08-28  Roland McGrath  <roland@redhat.com>
1779
1780         * locale/tst-C-locale.c (run_test): Remove __ from function names.
1781
1782 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1783             Roland McGrath <roland@redhat.com>
1784
1785         * locale/hashval.h (compute_hashval): Use prototype defn.
1786         (hashval_t): New macro, defined to unsigned long int
1787         if not already defined.
1788         (compute_hashval): Return hashval_t instead of unsigned long int.
1789         * locale/loadarchive.c (hashval_t): New macro.
1790         * locale/programs/locarchive.c: Include hashval.h directly instead
1791         of simple-hash.h.
1792         (compute_hashval, hashval_t): Define these macros first.
1793         (insert_name): Use archive_hashval instead of compute_hashval.
1794         (add_locale, delete_locales_from_archive): Likewise.
1795
1796 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1797
1798         * locale/programs/locarchive.c (insert_name): Suppress warnings about
1799         hash collisions if be_quiet.
1800
1801 2002-08-27  Roland McGrath  <roland@redhat.com>
1802
1803         * locale/locale.h (__newlocale, __duplocale, __freelocale,
1804         __uselocale): Don't declare these any more.
1805         * include/locale.h (__uselocale): Declare here instead, using __typeof.
1806
1807         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1808         and treat it as an EOF return.
1809         * sysdeps/unix/readdir_r.c: Likewise.
1810
1811         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1812         From Alexandre Oliva <aoliva@redhat.com>.
1813         * sysdeps/gnu/errlist-compat.c: Regenerated.
1814
1815 2002-08-27  Brian Youmans  <3diff@gnu.org>
1816
1817         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1818         wording at request of copyright holder Stephen Moshier.
1819         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1820         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1821         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1822         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1823         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1824         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1825         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1826         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1827         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1828         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1829         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1830         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1831         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1832         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1833
1834 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1835
1836         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1837         * ctype/ctype-extn.c (isblank_l): Add weak alias.
1838         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1839         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1840         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1841         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1842         * wctype/iswctype_l.c (iswctype_l): Likewise.
1843
1844 2002-08-27  Roland McGrath  <roland@redhat.com>
1845
1846         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1847
1848         * ctype/ctype.h (__exctype_l): Don't declare __ name.
1849         * stdlib/stdlib.h: Don't declare __*_l names.
1850         * include/stdlib.h: Declare them here instead.
1851         * include/string.h: Don't declare __*_l names.
1852         * string/string.h: Declare them here instead.
1853         * time/time.h: Don't declare __*_l names.
1854         * include/time.h: Declare them here instead.
1855         * wcsmbs/wchar.h: Don't declare __*_l names.
1856         * include/wchar.h: Declare them here instead.
1857         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1858         Don't declare __*_l names.
1859         * include/wctype.h: Declare them here instead.
1860         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1861         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1862         * locale/langinfo.h: Don't declare __nl_langinfo_l.
1863         * include/langinfo.h: Declare it here with __typeof.
1864
1865         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1866         instead, taking an extra __locale_t argument.
1867         * time/Makefile (routines): Add strptime_l.
1868         * time/time.h (__strptime_l, strptime_l): Declare them.
1869         * time/strptime_l.c: New file.
1870
1871         * time/time.h (__strftime_l, strftime_l): Declare them.
1872         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1873         * time/strftime_l.c: New file.
1874         * time/wcsftime_l.c: New file.
1875         * time/Makefile (routines): Add strftime_l, wcsftime_l.
1876         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1877         strftime_l, wcsftime_l.
1878         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1879         or __wcsftime_l instead, taking an extra __locale_t argument.
1880
1881         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1882         (libc: GLIBC_2.3): ... here.
1883
1884 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1885
1886         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1887
1888         * Makefile (distribute): Add LICENSES.
1889
1890         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1891         sys/debugreg.h.
1892
1893         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1894
1895         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1896
1897         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1898
1899         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1900
1901         * sysdeps/mach/hurd/alpha/Dist: New file.
1902
1903         * sysdeps/arm/Dist: Add bits/link.h.
1904
1905         * sunrpc/Makefile: Distribute thrsvc.
1906
1907         * stdio-common/Makefile: Remove more left-overs from old stdio.
1908
1909         * include/linewrap.h: Removed.
1910
1911         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1912
1913         * intl/Makefile (distribute): Add plural-eval.c.
1914
1915 2002-08-27  Roland McGrath  <roland@redhat.com>
1916
1917         * manual/sysinfo.texi (Mount Information): Correct file name to macro
1918         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1919         Say mtab is in either /var/run or /etc.
1920
1921 2002-08-26  Roland McGrath  <roland@redhat.com>
1922
1923         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1924         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1925
1926         * sysdeps/gnu/Versions: New file.
1927         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1928         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1929         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1930         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1931         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1932         and _sys_nerr_internal instead of anything else.  Make it include
1933         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1934         Make it emit some asm magic if [EMIT_ERR_MAX].
1935         * sysdeps/gnu/errlist.c: Regenerated.
1936         * sysdeps/gnu/errlist-compat.awk: New file.
1937         * sysdeps/gnu/errlist-compat.c: New file (generated).
1938         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1939         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1940         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1941         (SYS_ERRLIST, SYS_NERR): Macros removed.
1942         (sys_nerr, _sys_nerr): Remove these weak aliases.
1943         * sysdeps/unix/sysv/linux/errlist.c: File removed.
1944         * sysdeps/unix/sysv/linux/errlist.h: File removed.
1945         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1946
1947         * include/libc-symbols.h (declare_symbol): New macro.
1948         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1949         * configure.in: New check to define it.
1950         * configure: Regenerated.
1951
1952 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1953
1954         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
1955         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
1956
1957         * Make-dist: Remove traces of old stdio.
1958         * Makeconfig: Likewise.
1959
1960         * locale/Makefile (localedef-aux): New variable.  Only md5
1961         assigned to it.  These files are not ddistributed in this directory.
1962
1963         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1964         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1965         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1966
1967         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1968
1969         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1970         set h_errno to NO_RECOVERY [PR libc/4360].
1971
1972 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1973
1974         * libio/Makefile (tests): Add bug-fopena+.
1975         * libio/bug-fopena+.c: New file.
1976         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1977         file for _IO_IS_APPENDING if file isn't opened for reading, too.
1978
1979         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1980
1981         * locale/xlocale.c: Fix the last change.  The variable still has
1982         to end in _data.
1983         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1984         (__libc_tsd_set): Add _data prefix to variable name.
1985
1986 2002-08-26  Roland McGrath  <roland@redhat.com>
1987
1988         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1989         macro with inline function.
1990         (sigset_get_old_mask): Likewise.
1991         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1992         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1993         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1994         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1995         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1996         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1997         values.
1998         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1999         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
2000
2001 2002-07-06  Bruno Haible  <bruno@clisp.org>
2002
2003         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
2004         sigset_get_old_mask): Make it work with larger sigset_t.
2005         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
2006         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2007         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2008
2009 2002-08-26  Roland McGrath  <roland@redhat.com>
2010
2011         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
2012         * manual/filesys.texi (File Times): Document lutimes and futimes.
2013         * misc/Makefile (routines): Add them.
2014         * misc/Versions (libc: GLIBC_2.3): Likewise.
2015         * sysdeps/generic/lutimes.c: New file.
2016         * sysdeps/generic/futimes.c: New file.
2017         * sysdeps/mach/hurd/lutimes.c: New file.
2018         * sysdeps/mach/hurd/futimes.c: New file.
2019
2020         * manual/filesys.texi (File Times): Add explicit note about null
2021         pointer argument to utimes.
2022
2023 2002-08-26  Roland McGrath  <roland@frob.com>
2024
2025         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
2026         (__ifreq): Add a cast.  Remove an unused variable.
2027
2028         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
2029         _HURD_THREADVAR_LOCALE.
2030
2031 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
2032
2033         * posix/regexec.c (re_search_stub): Return correct match length
2034         if start != 0.
2035         * posix/bug-regex10.c: New test.
2036         * posix/Makefile (tests): Add bug-regex10.
2037
2038 2002-08-26  Brian Youmans  <3diff@gnu.org>
2039
2040         * COPYING.LIB: Replaced with fresh copy from
2041         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
2042         suggested copying permission notice now says version 2.1 instead
2043         of version 2.
2044
2045         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
2046         from Library GPL.
2047         * crypt/crypt_util.c: Likewise.
2048         * crypt/ufc.c: Likewise.
2049         * elf/dl-conflict.c: Likewise.
2050         * elf/dl-iteratephdr.c: Likewise.
2051         * iconv/iconvconfig.h: Likewise.
2052         * malloc/arena.c: Likewise.
2053         * malloc/hooks.c: Likewise.
2054         * malloc/malloc.c: Likewise.
2055         * posix/glob/Makefile.ami: Likewise.
2056         * posix/glob/Makefile.in: Likewise.
2057         * stdlib/gmp-impl.h: Likewise.
2058         * stdlib/gmp.h: Likewise.
2059         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
2060         * sysdeps/generic/strnlen.c: Likewise.
2061         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2062         * sysdeps/mach/hurd/recvmsg.c: Likewise.
2063         * sysdeps/mach/hurd/sendmsg.c: Likewise.
2064         * sysdeps/mach/hurd/spawni.c: Likewise.
2065         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
2066         * sysdeps/mach/powerpc/sysdep.h: Likewise.
2067         * sysdeps/mach/powerpc/thread_state.h: Likewise.
2068         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2069         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
2070         * sysdeps/x86_64/gmp-mparam.h: Likewise.
2071
2072         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
2073         Lesser GPL copying permission notice from 2 to 2.1.
2074         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
2075         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
2076         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2077         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2078         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2079         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2080         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2081         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2082         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2083         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2084         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2085         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2086         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2087         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2088         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2089         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2090         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2091         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2092         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2093         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2094         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2095         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2096         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2097         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2098         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2099         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2100         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2101         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2102         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2103         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2104         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2105         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2106         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2107         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2108         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2109         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2110         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2111         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2112         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2113         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2114         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2115         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2116         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2117         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2118         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2119         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2120         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2121         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2122         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2123         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2124         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2125         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2126         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2127         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2128         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2129
2130         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2131         Moshier and Lesser GPL copying permission notice, per license from
2132         Moshier.
2133         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2134         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2135         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2136         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2137         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2138         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2139         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2140         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2141         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2142         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2143         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2144         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2145         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2146         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2147
2148         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2149         notice, per license from copyright holder Stephen Moshier.
2150         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2151         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2152         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2153         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2154         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2155         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2156         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2157         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2158         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2159
2160 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2161
2162         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2163         (shared-only-routines): Likewise.
2164
2165 2002-08-26  Roland McGrath  <roland@redhat.com>
2166
2167         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2168         name of "", store a null pointer instead.
2169
2170         * configure.in (elf): Set to yes for freebsd*, netbsd*.
2171         * configure: Regenerated.
2172
2173         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2174         Initialize this instead of __libc_tsd_LOCALE_data.
2175
2176         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2177         ptsname_r to EINVAL.
2178
2179         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2180
2181         * rt/Makefile: Revert last change, it was inappropriate to presume aio
2182         implementations depend on pthreads.
2183         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2184         * rt/tst-aio64.c (do_test): Likewise.
2185         * rt/tst-aio2.c (do_test): Likewise.
2186         * rt/tst-aio3.c (do_test): Likewise.
2187         * rt/tst-aio4.c (do_test): Likewise.
2188         * rt/tst-aio5.c (do_test): Likewise.
2189         * rt/tst-aio6.c (do_test): Likewise.
2190         * rt/tst-aio7.c (do_test): Likewise.
2191
2192         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2193         void so as to avoid compiler warnings.
2194
2195         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2196         _IO_wide_data_FD, which is never used here.
2197
2198         * libio/iofread.c
2199         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2200         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2201         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2202
2203         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2204         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2205
2206         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2207         (closelog): Likewise.
2208
2209 2002-07-06  Bruno Haible  <bruno@clisp.org>
2210
2211         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2212
2213         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2214         * sysdeps/unix/alpha/pipe.S: ... here.
2215         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2216
2217         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2218
2219         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2220         * sysdeps/unix/i386/fork.S: Likewise.
2221         * sysdeps/unix/i386/pipe.S: Likewise.
2222         * sysdeps/unix/i386/wait.S: Likewise.
2223
2224         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2225         * sysdeps/unix/arm/fork.S: Likewise.
2226
2227         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2228         arguments.
2229         (DO_CALL): Swap argument order.
2230         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2231         arguments.
2232         (DO_CALL): Swap argument order.
2233         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2234         arguments.
2235         (DO_CALL): Swap argument order.
2236         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2237         arguments.
2238         (DO_CALL): Swap argument order.
2239         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2240         arguments.
2241         (DO_CALL): Swap argument order.
2242         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2243         arguments.
2244         (DO_CALL): Swap argument order.
2245         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2246         arguments.
2247         (DO_CALL): Swap argument order.
2248
2249         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2250         (L): Define right for ELF.
2251         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2252         Now defined in sysdeps/i386/sysdep.h.
2253
2254         * sysdeps/posix/readv.c: Ansify function definition.
2255         * sysdeps/posix/writev.c: Likewise.
2256
2257         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2258         have the same size. Avoid direct cast from size_t to off_t.
2259
2260         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2261         nul byte in entry[n].ut_user.
2262         (simulate_logout): Likewise.
2263
2264         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2265         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2266         existence of corresponding members of 'struct utmp'.
2267         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2268         !_HAVE_UT_TYPE.
2269
2270         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2271         allocate a buffer of at least BUFSIZ bytes, not just of
2272         sizeof (struct dirent).
2273
2274         * sysdeps/generic/glob.c: Include <limits.h>.
2275         (NAME_MAX): Define a fallback.
2276         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2277         stack.
2278         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2279         (main): Allocate enough room for a 'struct dirent64' on the stack.
2280         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2281         'struct dirent'.
2282
2283         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2284         kernel-features.h.
2285
2286         * inet/htontest.c: Include <sys/types.h>.
2287
2288         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2289
2290         * include/sys/sysctl.h: Comment fix.
2291
2292         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2293         _dl_load_lock.
2294         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2295
2296         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2297
2298         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2299         (__getpeername): New alias.
2300         (__getsockname): New alias.
2301         (__socket): New alias.
2302
2303         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2304
2305         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2306         (__fcntl_internal): New alias.
2307         (__profil): New alias.
2308
2309 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2310
2311         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2312         entry was for getaddr* lookup or not.  Add only matching cache
2313         entry.  Change all callers [PR libc/4317].
2314
2315         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2316         finding the read position [PR libc/4265].
2317         * libio/Makefile (tests): Add bug-rewind2.
2318         * libio/bug-rewind2.c: New file.
2319
2320         * libio/bug-rewind.c: Fix creation of temp file.
2321
2322 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2323
2324         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2325         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2326         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2327         to ENOENT if no entry is found.
2328         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2329         failure.
2330         * nis/nss_compat/compat-initgroups.c: Likewise.
2331         * nis/nss_compat/compat-pwd.c: Likewise.
2332         * nis/nss_compat/compat-spwd.c: Likewise.
2333         * nis/nss_nis/nis-alias.c: Likewise.
2334         * nis/nss_nis/nis-ethers.c: Likewise.
2335         * nis/nss_nis/nis-grp.c: Likewise.
2336         * nis/nss_nis/nis-hosts.c: Likewise.
2337         * nis/nss_nis/nis-initgroups.c: Likewise.
2338         * nis/nss_nis/nis-netgrp.c: Likewise.
2339         * nis/nss_nis/nis-network.c: Likewise.
2340         * nis/nss_nis/nis-proto.c: Likewise.
2341         * nis/nss_nis/nis-publickey.c: Likewise.
2342         * nis/nss_nis/nis-pwd.c: Likewise.
2343         * nis/nss_nis/nis-rpc.c: Likewise.
2344         * nis/nss_nis/nis-service.c: Likewise.
2345         * nis/nss_nis/nis-spwd.c: Likewise.
2346         * resolv/nss_dns/dns-host.c: Likewise.
2347         * resolv/nss_dns/dns-network.c: Likewise.
2348         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2349         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2350         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2351         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2352         * nis/nss_nisplus/nisplus-network.c: Likewise.
2353         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2354         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2355         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2356         * nis/nss_nisplus/nisplus-service.c: Likewise.
2357         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2358         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2359         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2360         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2361         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2362
2363         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2364         declaring __restore and __restore_rt as hidden (if possible).
2365
2366 2002-08-25  Roland McGrath  <roland@redhat.com>
2367
2368         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2369
2370         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2371         (getutent_r_file, internal_getut_r): Updated all callers.
2372         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2373
2374 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2375
2376         * locale/programs/locale.c: Don't print aliases for non-existing
2377         locales for 'locale -a'.
2378         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2379
2380 2002-07-19  H.J. Lu  <hjl@gnu.org>
2381
2382         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2383
2384 2002-07-16  H.J. Lu  <hjl@gnu.org>
2385
2386         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2387         sys/personality.h.
2388         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2389
2390 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2391
2392         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2393         not moved ahead of the fputs call.
2394         * elf/tst-tlsmod2.c (in_dso): Likewise.
2395         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2396         * elf/tst-tlsmod4.c (in_dso): Likewise.
2397
2398 2002-08-25  Andreas Schwab  <schwab@suse.de>
2399
2400         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2401
2402 2002-08-25  Roland McGrath  <roland@redhat.com>
2403
2404         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2405         resetting handler, to avoid the possibility of a spurious SIGALRM
2406         delivered to the user's handler.
2407         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2408
2409         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2410         set -fkeep-inline-functions, which is not needed for the current file.
2411
2412         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2413         (_dl_setup_hash): Add attribute_hidden.
2414         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2415         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2416         (_dl_new_object, _dl_map_object_deps): Likewise.
2417         (_dl_map_object_deps_internal): Remove decl.
2418         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2419
2420         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2421         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2422         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2423         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2424         instead relying on the compiler to produce only GOTOFF variable refs.
2425
2426 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2427
2428         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2429
2430         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2431         inline to avoid defining it in every file which includes this header.
2432
2433         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2434         defining DONT_USE_BOOTSTRAP_MAP.
2435
2436         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2437         * libio/tst-mmap-setvbuf.c (main): Likewise.
2438         * libio/tst-widetext.c (main): Likewise.
2439
2440         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2441         message.
2442         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2443         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2444
2445         * sysdeps/i386/elf/configure.in: Unconditionally define
2446         PI_STATIC_AND_HIDDEN.
2447         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2448         PI_STATIC_AND_HIDDEN is defined as well.
2449         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2450
2451 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2452
2453         * sysdeps/ia64/bzero.S: Define __bzero as well.
2454
2455         * locale/programs/charmap.c (charmap_new_char): Don't use
2456         ULONG_MAX as maximum UCS4 value.
2457
2458         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2459
2460         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2461
2462         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2463         * malloc/malloc.c (mALLINFo): Likewise.
2464
2465         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2466
2467         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2468         examining result of _IO_do_flush call.
2469
2470         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2471         Use prec not spec when sizing buffers.
2472
2473         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2474         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2475         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2476         * stdio-common/vfscanf.c (inchar): Likewise.
2477         * misc/efgcvt_r.c (fcvt_r): Likewise.
2478         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2479         * elf/readlib.c (process_file): Likewise.
2480         * elf/sprof.c (load_profdata): Likewise.
2481         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2482         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2483         * locale/programs/charmap.c (charmap_read): Likewise.
2484         * libio/fileops.c: Likewise.
2485         * libio/fmemopen.c: Likewise.
2486         * stdlib/strtod.c: Likewise.
2487         * elf/dl-load.c: Likewise.
2488         * iconv/iconvconfig.c: Likewise.
2489         * iconv/iconv_prog.c (process_block): Likewise.
2490         * elf/rtld.c (dl_main): Likewise.
2491
2492         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2493         macro to calm down the compiler.
2494
2495         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2496
2497         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2498
2499         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2500         placement of errno definition.
2501         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2502         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2503         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2504         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2505         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2506
2507         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2508         from 1024 to 65536, to avoid buffer overrun.
2509
2510 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2511
2512         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2513         from 1024 to 65536, to avoid buffer overrun.
2514         * resolv/res_query.c (MAXPACKET): Likewise.
2515
2516 2002-08-24  Andreas Jaeger  <aj@suse.de>
2517
2518         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2519
2520 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2521
2522         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2523         two52 locally.
2524         (log2): Likewise.
2525         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2526         Patch by Simon Gee <simong@agile.tv>.
2527
2528         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2529         Prefer reading /proc/stat since it is more uniform across
2530         architectures.
2531
2532         * manual/texinfo.tex: Update to latest official version.
2533
2534         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2535         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2536         * sysdeps/gnu/bits/shm.h: Likewise.
2537         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2538         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2539         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2540         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2541         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2542         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2543         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2544         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2545         since this is what the kernel says.
2546
2547         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2548         since ssize_t is needed as well.  Replace const with __const.
2549
2550 2002-08-23  Roland McGrath  <roland@redhat.com>
2551
2552         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2553         __malloc_hook, __realloc_hook, __memalign_hook,
2554         __after_morecore_hook): Variable definitions moved to ...
2555         * malloc/malloc.c: ... here, so as to be before all references.
2556
2557         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2558         global variable reference in an unused asm parameter, to ensure the
2559         compiler has set up the GOT register before we use it.
2560
2561         * malloc/hooks.c: Move variable definitions ahead of uses.
2562         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2563         initializers that make reference to variables they define.
2564
2565 2002-08-23  Andreas Jaeger  <aj@suse.de>
2566
2567         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2568         alloca, free, qsort.
2569
2570         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2571
2572         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2573         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2574
2575         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2576         <hch@lst.de>.
2577         * sysdeps/generic/fgetxattr.c: New file.
2578         * sysdeps/generic/flistxattr.c: New file.
2579         * sysdeps/generic/fremovexattr.c: New file.
2580         * sysdeps/generic/fsetxattr.c: New file.
2581         * sysdeps/generic/getxattr.c: New file.
2582         * sysdeps/generic/listxattr.c: New file.
2583         * sysdeps/generic/lgetxattr.c: New file.
2584         * sysdeps/generic/llistxattr.c: New file.
2585         * sysdeps/generic/lremovexattr.c: New file.
2586         * sysdeps/generic/lsetxattr.c: New file.
2587         * sysdeps/generic/removexattr.c: New file.
2588         * sysdeps/generic/setxattr.c: New file.
2589         * misc/Makefile (headers): Add sys/xattr.h.
2590         (routines): Add *xattr calls.
2591         * misc/Versions: Add *xattr calls with version 2.3.
2592         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2593         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2594         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2595         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2596         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2597         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2598         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2599         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2600
2601 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2602
2603         * sysdeps/powerpc/elf/libc-start.c
2604         (__cache_line_size): Declare.
2605         (__aux_init_cache): New function.
2606         (__libc_start_main): Change type of `auxvec' parameter to
2607         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2608         __aux_init_cache.
2609         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2610         (__cache_line_size): Declare.
2611         (__aux_init_cache): New function.
2612         (DL_PLATFORM_INIT): Define.
2613         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2614         value to select the correct stride for dcbz.
2615
2616 2002-08-22  Andreas Jaeger  <aj@suse.de>
2617
2618         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2619         shmat.
2620
2621 2002-08-22  Roland McGrath  <roland@redhat.com>
2622
2623         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2624         position indicated by locrectab against file bounds before rounding to
2625         page size.  In mapping loop, always set TO before breaking out of
2626         contiguous range coalescing loop.
2627
2628         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2629         (or MAP_COPY if available) instead of MAP_SHARED.
2630
2631         * scripts/firstversions.awk: When encountering a version newer than
2632         the specified earliest version, be sure to emit the specified earliest
2633         version first if any renaming of an older version to that has been.
2634
2635 2002-08-21  Roland McGrath  <roland@redhat.com>
2636
2637         * configure.in: Make GCC version check require 3.[2-9]* and no others.
2638         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2639         (Configuring and compiling): Don't mention older GCC versions any more.
2640         * INSTALL: Regenerated.
2641
2642         * manual/install.texi (Configuring and compiling, Installation,
2643         Running make install, Linux): Linux -> GNU/Linux where appropriate.
2644
2645         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2646         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2647         and with noinline otherwise.  Remove hack alloca use to prevent
2648         inlining, we can ask for it explicitly nowadays.
2649
2650         * dlfcn/bug-dlsym1.c: New file.
2651         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2652         * dlfcn/Makefile (distribute): Add them.
2653         (tests): Add bug-dlsym1 here.
2654         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2655         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2656         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2657
2658 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
2659
2660         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
2661         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2662         before relocation.
2663         (_dl_start): Don't use local bootstrap_map variable if
2664         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
2665         pass bootstrap_map to _dl_start_final in this case either.  Don't
2666         pass start_time to _dl_start_final ever.
2667         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2668
2669         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2670         This cripples the scope lists necessary to search for symbols in
2671         dependencies which are not in the global scope.
2672
2673         * include/setjmp.h (__libc_longjmp): Add declaration.
2674
2675 2002-08-21  Andreas Jaeger  <aj@suse.de>
2676
2677         * sysdeps/x86_64/_mcount.S: Fix assembler.
2678
2679         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2680         with biarch support.
2681
2682 2002-08-21  Andreas Jaeger  <aj@suse.de>
2683
2684         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2685
2686         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2687
2688         * sysdeps/x86_64/machine-gmon.h: New file.
2689         * sysdeps/x86_64/_mcount.S: New file.
2690
2691 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2692
2693         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
2694         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2695         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2696         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2697         to TL_INIT_TP.  Otherwise pass 1.
2698         * include/link.h (struct link_map): Add l_tls_tp_initialized.
2699         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2700
2701 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
2702
2703         * locale/programs/localedef.c (add_to_readlist): Error about
2704         circular dependencies only if the locale in question hasn't
2705         been finished.
2706         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2707         CTYPE_LOCALE to load_locale.
2708         * locale/programs/locfile.c (locfile_read): Don't include
2709         unneeded but available locales in locale_mask.
2710
2711         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2712         print any messages about enlarging archive.
2713
2714 2002-08-20  Brian Youmans  <3diff@gnu.org>
2715
2716         * manual/contrib.texi: Removed licenses, added acknowledgements
2717         for contributions by Intel, IBM, Craig Metz.
2718         * LICENSES: New file, contains the text of all non-FSF licenses in the
2719         distribution that require putting the notice in the accompanying
2720         documentation.
2721         * README.template, README: Mention LICENSES.
2722
2723         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2724         new one modelled on the modern BSD license, per recent letter
2725         of permission from CMU.
2726         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2727
2728         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2729         from IBM to FSF, per the recent Software Letter.  Changed the
2730         distribution terms from GPL to LGPL.
2731
2732         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2733         copying permission notice (Lesser GPL), per recent IBM Software Letter.
2734         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2735         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2736         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2737         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2738         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2739         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2740         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2741         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2742
2743         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2744         from IBM to FSF, per the recent Software Letter.  Corrected the
2745         text of the copying permission notice to say Lesser GPL instead
2746         of GPL in warranty disclaimer paragraph.
2747         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2748         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2749         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2750         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2751         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2752         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2753         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2754         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2755         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2756         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2757         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2758         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2759         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2760         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2761         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2762         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2763         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2764         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2765         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2766         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2767         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2768
2769         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2770         permission notice to say Lesser GPL instead of GPL in warranty
2771         disclaimer paragraph.
2772         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2773         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2774         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2775         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2776         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2777         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2778         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2779         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2780         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2781         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2782         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2783         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2784         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2785         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2786         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2787         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2788         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2789         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2790         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2791         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2792         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2793         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2794         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
2795
2796 2002-08-20  Roland McGrath  <roland@redhat.com>
2797
2798         Fix ABI compatibility with libc compiled with old tools on powerpc.
2799         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2800         and Jack Howarth <howarth@bromo.med.uc.edu>.
2801         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2802         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2803         pass -DHAVE_DOT_HIDDEN for these files.
2804         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2805         __floatdisf.
2806         * sysdeps/powerpc/divdi3.c: New file.
2807         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2808         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2809
2810 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
2811
2812         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2813         partially overlapping mappings.  Remove unneeded (char *) casts.
2814         Never allow duplication of ranges in mapped areas.
2815
2816 2002-08-20  Roland McGrath  <roland@redhat.com>
2817
2818         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2819         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
2820
2821 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2822
2823         * include/unistd.h: Don't hide _exit.
2824
2825         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2826         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2827         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2828         argument 1 to TLS_INIT_TP.
2829         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2830
2831         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2832
2833         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2834         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2835         memory allocation to...
2836         (allocate_dtv): ...here.  New function.
2837         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
2838         call allocate_dtv instead of _dl_allocate_tls_storage.
2839         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
2840         (_dl_get_tls_static_info): New function.
2841         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2842         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
2843
2844 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
2845
2846         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2847         immediately if result == NULL.
2848
2849 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2850
2851         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2852
2853 2002-08-18  Roland McGrath  <roland@frob.com>
2854
2855         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2856         instead of __file_name_split.
2857         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2858
2859         * sysdeps/mach/hurd/dl-sysdep.c
2860         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2861         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2862
2863 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2864
2865         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2866         in change before last: MAX -> MIN.
2867
2868 2002-08-15  Roland McGrath  <roland@redhat.com>
2869
2870         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2871         if seek would go past it.
2872         (mmap_remap_check): If file position is at or past EOF after check,
2873         leave read pointers at EOF and don't seek.
2874
2875         * libio/tst-mmap-offend.c: New file.
2876         * libio/Makefile (tests): Add it.
2877
2878         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2879         the name as passed, rather than the name in the archive dictionary.
2880
2881 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
2882
2883         * csu/Makefile: Define elide-routines.os not static-only-routines.
2884
2885         * include/sched.h (__clone): Add varargs at the end.
2886
2887         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2888         case.
2889         (TLS_INIT_HELPER): If defined, use it.
2890         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2891
2892 2002-08-15  Roland McGrath  <roland@redhat.com>
2893
2894         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2895         on L->l_prev; it can happen under rtld --verify too.
2896
2897         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2898         header separately, just map an initial window of 2MB from the file
2899         and remap if that is not large enough to cover the whole header.
2900
2901 2002-08-15  Andreas Jaeger  <aj@suse.de>
2902
2903         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2904         version 2.3.
2905         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2906         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2907         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2908         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2909         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2910         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2911         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2912         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2913         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2914         Patch by Andreas Gruenbacher <agruen@suse.de>.
2915
2916         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2917
2918 2002-08-14  Roland McGrath  <roland@redhat.com>
2919
2920         * locale/locarchive.h (struct locale_category_data): Give this name to
2921         the type of locale_data_t's elements.
2922         * locale/programs/locarchive.c (cmpcategorysize): New static function.
2923         (add_locale): Use that to sort the categories by size and put all
2924         those that fit into two pages into the LC_ALL block, instead of
2925         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2926         (show_archive_content): Detect categories inside LC_ALL block
2927         directly, instead of hard-coding.
2928         (oldlocrecentcmp): Compare just on file locations used.
2929
2930 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
2931
2932         * locale/programs/locarchive.c (struct oldlocrecent): New type.
2933         (oldlocrecentcmp): New function.
2934         (enlarge_archive): Re-add locales in the order they were added
2935         to the archive.
2936         (add_locale): Put all the small locale files together, if the small
2937         locale file block would occupy less pages if page size aligned, align
2938         it.
2939         (show_archive_content): Adjust for locale archives optimized for speed.
2940
2941 2002-08-14  Roland McGrath  <roland@frob.com>
2942
2943         * configure.in: Use "MISSING" as not-found value for MIG.
2944         * sysdeps/mach/configure.in: Fatal if mig not found.
2945         * configure, sysdeps/mach/configure: Regenerated.
2946
2947 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2948
2949         * locale/loadarchive.c (archfname): Add missing slash.
2950
2951         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2952         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2953
2954 2002-08-12  Roland McGrath  <roland@redhat.com>
2955
2956         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2957         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2958         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2959         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2960         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2961         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2962         * sysdeps/generic/waitpid.c: Likewise.
2963
2964         * include/net/if.h: New file.  Use libc_hidden_proto
2965         for if_nametoindex and if_indextoname.
2966         * sysdeps/generic/if_index.c: Add libc_hidden_def.
2967         * sysdeps/mach/hurd/if_index.c: Likewise.
2968         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2969
2970         * include/grp.h (setgroups): Add libc_hidden_proto.
2971         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2972         * sysdeps/mach/hurd/setgroups.c: Likewise.
2973         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2974         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2975
2976 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2977
2978         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2979         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2980         * sysdeps/generic/setegid.c (setegid): Likewise.
2981         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2982         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2983         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2984         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2985         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2986         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2987         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2988         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2989         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2990         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2991         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2992         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2993         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2994
2995         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2996         __lxstat_internal, __lxstat64_internal): Remove.
2997         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2998         Add hidden_proto.
2999         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
3000         Remove INTDEF where present, remove #undef at the beginning.
3001         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
3002         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
3003         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
3004         * sysdeps/generic/xstat.c (__xstat): Likewise.
3005         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
3006         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
3007         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3008         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3009         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3010         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3011         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
3012         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
3013         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
3014         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
3015         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
3016         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
3017         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
3018         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
3019         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
3020         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
3021         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
3022         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
3023         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
3024         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
3025         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
3026         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
3027         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3028         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3029         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3030         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3031         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3032         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3033         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
3034         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3035         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3036         * sysdeps/unix/xstat.c (__xstat): Likewise.
3037
3038         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
3039         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
3040         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
3041         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
3042         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
3043         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
3044         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
3045
3046         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
3047         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
3048         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
3049         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
3050         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
3051         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
3052         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
3053         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
3054         Likewise.
3055         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
3056         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
3057         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
3058         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
3059         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
3060         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
3061         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
3062         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
3063
3064         * include/string.h (strcoll): Add libc_hidden_proto.
3065         * string/strcoll.c (strcoll): Add libc_hidden_def.
3066
3067         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
3068
3069 2002-08-11  Philip Blundell  <philb@gnu.org>
3070
3071         * sysdeps/arm/Makefile: New file.
3072
3073 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3074
3075         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
3076         by another '|', end of regex or enclosing ')', clear branch.
3077         * posix/bug-regex9.c: New test.
3078         * posix/Makefile (tests): Add bug-regex9.
3079
3080 2002-08-12  Roland McGrath  <roland@redhat.com>
3081
3082         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
3083         start count condition, use TOTAL instead of variable that was never
3084         set.  Fix outer loop termination condition to TOTAL >= after update.
3085
3086         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
3087         dl_tls_static_align and dl_tls_static_nelem.
3088
3089 2002-08-11  Roland McGrath  <roland@redhat.com>
3090
3091         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
3092         of the TLS macros, otherwise the compiler might not have initialized
3093         the PIC register yet when we use the PLT via asm.
3094         * elf/tst-tlsmod3.c (in_dso2): Likewise.
3095         * elf/tst-tlsmod2.c (in_dso): Likewise.
3096
3097         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
3098
3099         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
3100         Evaluate argument exactly once.  Remove __volatile__ from asm's.
3101
3102         * include/unistd.h: Use libc_hidden_proto for getdomainname
3103         and getlogin_r.
3104         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
3105         * sysdeps/mach/hurd/getdomain.c: Likewise.
3106         * sysdeps/unix/getlogin_r.c: Likewise.
3107         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
3108         * sysdeps/generic/getlogin_r.c: Likewise.
3109
3110         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
3111         * sunrpc/rtime.c: Add libc_hidden_def.
3112
3113         * include/string.h: Use libc_hidden_proto for basename.
3114         * string/basename.c [_LIBC]: Add libc_hidden_def.
3115
3116         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3117
3118         * locale/loadarchive.c: munmap -> __munmap throughout.
3119
3120         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3121         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3122         * sysdeps/generic/gai_strerror.c: Likewise.
3123
3124         * include/sys/errno.h: New file.
3125
3126         * include/signal.h: No libc_hidden_proto for raise,
3127         __libc_current_sigrtmin, __libc_current_sigrtmax.
3128         These need to be overridden by linuxthreads.
3129         * sysdeps/posix/raise.c: Reverted.
3130         * sysdeps/generic/raise.c: Reverted.
3131         * signal/allocrtsig.c: Reverted.
3132
3133         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
3134
3135 2002-08-10  Roland McGrath  <roland@redhat.com>
3136
3137         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3138         * locale/localeinfo.h: Declare it.
3139         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3140         current locale if it's not in the file list.
3141         Call _nl_archive_subfreeres.
3142
3143 2002-08-10  Andreas Jaeger  <aj@suse.de>
3144
3145         * sysdeps/i386/strchr.S: Add comment.
3146
3147 2002-08-10  Roland McGrath  <roland@redhat.com>
3148
3149         * include/wchar.h (putwc): Use libc_hidden_proto.
3150         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3151         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3152         * stdio-common/dprintf.c: Add libc_hidden_def.
3153         * stdio-common/fprintf.c: Likewise.
3154         * stdio-common/sprintf.c: Likewise.
3155         * stdio-common/sscanf.c: Likewise.
3156         * libio/iofwrite.c: Likewise.
3157         * libio/memstream.c: Likewise.
3158         * libio/putwc.c: Likewise.
3159         * stdio-common/perror.c: Likewise.
3160         * sysdeps/posix/remove.c: Likewise.
3161         * sysdeps/generic/remove.c: Likewise.
3162         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
3163         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
3164
3165 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
3166
3167         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3168         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
3169         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3170         towlower, towupper): Add libc_hidden_weak.
3171
3172         * include/bits/dlfcn.h: New file.
3173         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3174
3175         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3176         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3177         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3178         * include/pwd.h (_nss_files_parse_pwent): Likewise.
3179         * include/shadow.h (_nss_files_parse_spent): Likewise.
3180         * include/netdb.h (_nss_files_parse_protoent,
3181         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3182         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3183         (LINE_PARSER): Use it.
3184         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3185         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3186
3187         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3188         #endif.
3189
3190         * manual/debug.texi (%MENU%): Remove trailing dot.
3191         Reported by <hayastan132@hotmail.com>.
3192
3193         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3194         aliases.
3195         (lseek): Dummy.
3196         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3197         Likewise.
3198
3199 2002-08-09  Roland McGrath  <roland@redhat.com>
3200
3201         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3202         name to find codeset name (if any) and normalize it.  If the
3203         normalized name differs, look up only that in the archive.
3204         * locale/programs/locarchive.c (add_locale_to_archive): If the name
3205         contains a codeset, normalize the codeset store only the normalized
3206         name in the archive.  If not, add an alias containing the locale's
3207         normalized codeset name.  Apply codeset name normalization when
3208         matching entries in the alias file.
3209
3210         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3211         decrement HEAD->namehash_used here.
3212         (add_locale): Only need to insert name string when name_offset != 0.
3213
3214         * locale/programs/localedef.c (options): Add -A/--alias-file.
3215         (alias_file): New variable.
3216         (parse_opt): Grok -A, set that.
3217         * locale/programs/localedef.h: Declare it.
3218
3219         * locale/locarchive.h (struct locrecent): Add `refs' member.
3220         * locale/programs/locarchive.c (insert_name): New function, broken out
3221         of ...
3222         (add_locale_to_archive): ... here.  Call that.
3223         (add_alias): New function.
3224         (add_locale): New static function, add_locale_to_archive renamed.
3225         (add_locale_to_archive): Call that and use add_alias to add an alias
3226         for the name with codeset if the given name lacks it.
3227         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3228
3229         * locale/Makefile (routines): Add loadarchive.
3230         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3231         (_nl_load_locale_from_archive): New function.
3232         * locale/localeinfo.h: Declare it.
3233         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3234         try _nl_load_locale_from_archive first.
3235
3236         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3237         broken out of _nl_load_locale.
3238         (_nl_load_locale): Call that.
3239         * locale/localeinfo.h: Declare it.
3240         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3241         (struct locale_data): Remove unused member `options'.
3242         * locale/findlocale.c (_nl_remove_locale): Update uses.
3243         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3244         * locale/C-collate.c: Update initializer.
3245         * locale/C-identification.c: Likewise.
3246         * locale/C-measurement.c: Likewise.
3247         * locale/C-telephone.c: Likewise.
3248         * locale/C-address.c: Likewise.
3249         * locale/C-name.c: Likewise.
3250         * locale/C-paper.c: Likewise.
3251         * locale/C-time.c: Likewise.
3252         * locale/C-numeric.c: Likewise.
3253         * locale/C-monetary.c: Likewise.
3254         * locale/C-messages.c : Likewise.
3255         * locale/C-ctype.c: Likewise.
3256
3257         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3258         use CHAR_BIT instead of BITSPERBYTE.
3259
3260         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3261         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3262         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3263         (_nl_remove_locale): Likewise.
3264         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3265
3266         * locale/findlocale.c (_nl_default_locale_path): New variable.
3267         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3268         * locale/localeinfo.h: Declare it.
3269         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3270         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3271         * locale/newlocale.c (__newlocale): Likewise.
3272
3273         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3274         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3275         * sysdeps/generic/morecore.c: Likewise.
3276         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3277         (__libc_current_sigrtmax): Likewise.
3278
3279 2002-08-08  Roland McGrath  <roland@redhat.com>
3280
3281         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3282         * catgets/open_catalog.c (__open_catalog): Likewise.
3283
3284         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3285         from typo INITIAL_NUM_NANES.
3286         (create_archive): Update use.
3287
3288 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3289
3290         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3291
3292 2002-08-08  Roland McGrath  <roland@frob.com>
3293
3294         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3295
3296 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3297
3298         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3299         else and undefine after including wcstol_l.c.
3300         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3301
3302 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3303
3304         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3305
3306 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3307
3308         * configure.in: Make the test for broken_alias_attribute stricter.
3309
3310 2002-05-24  Robert Love  <rml@tech9.net>
3311
3312         * posix/Makefile (routines): Add sched_getaffinity and
3313         sched_setaffinity.
3314         * posix/sched.h: Add declarations for sched_getaffinity and
3315         sched_setaffinity.
3316         * sysdeps/generic/sched_getaffinity.c: New file.
3317         * sysdeps/generic/sched_setaffinity.c: New file.
3318         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3319         sched_setaffinity.
3320
3321 2002-08-06  Andreas Schwab  <schwab@suse.de>
3322
3323         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3324
3325 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3326
3327         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3328         message.
3329
3330         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3331         It is known to be defined.
3332
3333         * include/string.h: Define index and rindex only if _ISOMAC is not
3334         defined.
3335
3336         * elf/rtld.c: Include <errno.h>.
3337         * sysdeps/generic/libc-tls.c: Likewise.
3338
3339 2002-08-07  Roland McGrath  <roland@redhat.com>
3340
3341         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3342         it internally.
3343         (precsize_aton): Likewise.
3344
3345         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3346         the static symbols added in the last change (doofus is me).
3347
3348         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3349         loop to notice missing categories in a composite name.
3350
3351         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3352         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3353         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3354         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3355
3356 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3357
3358         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3359
3360 2002-08-07  Roland McGrath  <roland@redhat.com>
3361
3362         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3363         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3364         Reported by Jakub Jelinek  <jakub@redhat.com>.
3365
3366 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3367
3368         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3369         division.
3370
3371 2002-08-06  Roland McGrath  <roland@redhat.com>
3372
3373         * include/getopt.h: Put private decls inside [_GETOPT_H].
3374         Use libc_hidden_proto for getopt_long, getopt_long_only.
3375         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3376         Add libc_hidden_def.
3377
3378         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3379         Define as a macro for __dl_iterate_phdr.
3380
3381         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3382         made static.  Add __ name as a strong alias.
3383         (internal_endnetgrent): Likewise.
3384         (internal_getnetgrent_r): Likewise.
3385
3386         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3387         with no __ prefix.
3388         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3389         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3390         all *_l functions with no __ prefix.
3391         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3392         * ctype/ctype_l.c: Likewise.
3393         * locale/nl_langinfo.c: Likewise.
3394         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3395         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3396         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3397         * wctype/wctype.h [__USE_GNU]: Likewise.
3398         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3399         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3400         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3401         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3402         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3403         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3404         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3405         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3406         (__wcscasecmp_l): Add libc_hidden_def.
3407         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3408         (__wcsncasecmp_l): Add libc_hidden_def.
3409         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3410         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3411         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3412         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3413         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3414         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3415         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3416         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3417         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3418         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3419         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3420         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3421         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3422         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3423
3424 2002-08-05  Roland McGrath  <roland@redhat.com>
3425
3426         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3427         netname2user, host2netname, user2netname, key_gendes.
3428         * sunrpc/netname.c: Add libc_hidden_def.
3429         * sunrpc/key_call.c: Likewise.
3430
3431         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3432         freeaddrinfo.
3433         * inet/getnameinfo.c: Add libc_hidden_def.
3434         * sysdeps/generic/getaddrinfo.c: Likewise.
3435         * sysdeps/posix/getaddrinfo.c: Likewise.
3436
3437         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3438         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3439         * wcsmbs/wmemset.c: Add libc_hidden_def.
3440
3441         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3442         (index, rindex): Define as macros for strchr, strrchr.
3443
3444         * string/envz.c (envz_strip): index -> strchr
3445
3446         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3447         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3448
3449         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3450         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3451
3452         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3453         * stdlib/wctomb.c: Add libc_hidden_def.
3454
3455         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3456         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3457         * resolv/herror.c: Likewise.
3458         * inet/rcmd.c: Add libc_hidden_def.
3459         * inet/ruserpass.c: Likewise.
3460         * inet/getnetgrent_r.c: Likewise.
3461
3462         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3463         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3464         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3465         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3466         libc_hidden_def.
3467         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3468         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3469
3470         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3471         __libc_system.
3472         (__libc_system): Call it, putting just the line == NULL test here.
3473
3474         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3475         variables work right.
3476
3477         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3478         * elf/dl-close.c (_dl_close): Likewise.
3479
3480         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3481         in6addr_any, in6addr_loopback.  Remove decls for
3482         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3483         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3484         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3485         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3486         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3487         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3488         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3489         in6addr_loopback.
3490         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3491
3492         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3493         ether_aton_r.
3494         * inet/ether_aton_r.c: Add libc_hidden_def.
3495         * inet/ether_ntoa_r.c: Likewise.
3496
3497         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3498         xprt_unregister.
3499         * sunrpc/svc.c: Add libc_hidden_def.
3500         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3501         pmap_set, pmap_unset.
3502         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3503         * sunrpc/pm_getport.c: Likewise.
3504         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3505         * sunrpc/publickey.c: Add libc_hidden_def.
3506
3507 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3508
3509         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3510         the other memset call in this function.
3511
3512         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3513         at correct index.  Clear BSS region now that memalign is used.
3514
3515 2002-08-05  Roland McGrath  <roland@redhat.com>
3516
3517         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3518         * sysdeps/generic/uname.c: Add libc_hidden_def.
3519         * sysdeps/mach/hurd/uname.c: Likewise.
3520
3521 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3522
3523         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3524         wcspbrk): Add libc_hidden_proto.
3525         * time/strftime.c (my_strftime): Add libc_hidden_def.
3526         (strftime): Remove libc_hidden_def.
3527         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3528         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3529         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3530         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3531         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3532         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3533
3534         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3535         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3536         __rpc_thread_createerr): Add libc_hidden_proto.
3537         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3538         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3539         __rpc_thread_createerr): Add libc_hidden_def.
3540
3541         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3542         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3543         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3544         clnt_perror, clnt_sperror): Add libc_hidden_def.
3545         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3546
3547         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3548         libc_hidden_proto.
3549         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3550         * sunrpc/des_soft.c (des_setparity): Likewise.
3551
3552         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3553         Add libc_hidden_proto.
3554         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3555         Add libc_hidden_def.
3556
3557 2002-08-05  Roland McGrath  <roland@redhat.com>
3558
3559         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3560         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3561         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3562         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3563         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3564         old data, abandoning the original memory allocated by rtld at startup,
3565         instead of calling realloc normally.
3566
3567 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3568
3569         * po/fr.po: Update from translation team.
3570
3571 2002-08-04  Roland McGrath  <roland@redhat.com>
3572
3573         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3574         then generate a dummy module under the given name, obeying the
3575         normal rules for the "caller" field.
3576
3577         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3578         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3579
3580         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3581         weak here; we declare it weak or strong in the one place we use it.
3582         * sysdeps/generic/libc-start.c: ... which is here.
3583         Don't make the decl weak if [USE_TLS], since static programs need TLS
3584         setup even when single-threaded.
3585
3586         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3587
3588         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3589         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3590         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3591         all these variables.
3592
3593 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3594
3595         * include/stdio.h: Don't define macro magic to redirect function
3596         calls if _ISOMAC is defined.
3597
3598         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3599         ldouble asin tests.
3600
3601 2002-08-04  Roland McGrath  <roland@redhat.com>
3602
3603         * stdlib/lrand48_r.c: Add libc_hidden_def.
3604
3605         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3606         TCB with __libc_memalign instead of mmap.
3607         (_dl_deallocate_tls): Free it with free instead of munmap.
3608
3609         * Makerules (cpp-srcs-left): When setting this to run
3610         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3611         words.  Combine the two loops into one on the concatenated list,
3612         including those as well as $(test-srcs).
3613
3614         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3615         since we align here with optimally minimal waste anyway.
3616         (malloc): Just call that.
3617
3618         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3619         the right variable.
3620
3621         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3622         to compute memory location for l_tls_initimage.
3623         * elf/rtld.c (_dl_start): Likewise.
3624         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3625
3626         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3627         because the .d file is generated in the non-shared case and
3628         so fails to catch them otherwise.
3629
3630         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3631         split out of _dl_allocate_tls.
3632         (_dl_allocate_tls_init): Likewise.
3633         (_dl_allocate_tls): Call those.
3634         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3635         * elf/rtld.c (dl_main): Call them separately instead of calling
3636         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
3637         is finished, so that the initializer data has been relocated before we
3638         copy it into the main thread's TLS block.
3639
3640         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3641         loop conditions, prevented the last used module from being initialized.
3642
3643 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3644
3645         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3646         if glob resp. globfree are not macros.
3647         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3648         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3649         Add libc_hidden_ver.
3650         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3651         libc_hidden_def.
3652         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3653         instead of libc_hidden_weak.
3654         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3655         libc_hidden_ver instead of libc_hidden_def.
3656         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3657         libc_hidden_ver instead of libc_hidden_def.
3658         (wcstoll, wcstoq): Remove libc_hidden_weak.
3659         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3660         libc_hidden_ver.
3661         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3662         libc_hidden_ver.
3663         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3664         libc_hidden_ver.
3665         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3666         libc_hidden_ver.
3667
3668 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3669
3670         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
3671         to access _sys_siglist.
3672         * string/strsignal.c: Likewise.
3673         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3674         * sysdeps/gnu/siglist.c: Likewise.
3675         * sysdeps/unix/siglist.c: Likewise.
3676         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3677
3678         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3679
3680         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3681
3682         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3683         alias and use it.
3684         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3685
3686         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3687         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3688         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3689
3690         * include/time.h: Add libc_hidden_proto for __gmtime_r.
3691         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3692
3693         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3694         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3695         and __gconv_get_cache respectively.
3696         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3697         defined static.  Change all users.
3698         (__gconv_get_cache): New function.
3699         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3700         (__gconv_get_alias_db): New function.
3701         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3702         (__conv_modules_db): Likewise.
3703         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3704         and __gconv_get_alias_db.
3705         * iconv/iconv_prog.c: Use the new functions instead of accessing the
3706         variables.
3707
3708         * include/stdlib.h: Add prototype and libc_hidden_proto for
3709         __default_morecore.
3710         * sysdeps/generic/morecore.c: Include <stdlib.h>.
3711
3712         * malloc/obstack.c: Remove fputs macro.
3713
3714         * malloc/mtrace.c: Remove fopen macro.
3715
3716 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3717
3718         * manual/debug.texi: Fix spelling to programmatically.
3719         Reported by <hayastan132@hotmail.com>.
3720
3721 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3722
3723         * include/libio.h: Add libc_hidden_proto for __uflow.
3724         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3725         fgetpos to _IO_* names.
3726         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3727         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3728         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3729         putwc_unlocked, vswscanf.
3730         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3731         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3732         * libio/fseek.c: Likewise.
3733         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
3734         not fopencookie.
3735         * libio/genops.c (__uflow): Add libc_hidden_def.
3736         * libio/iofflush_u.c (fflush_unlocked): Likewise.
3737         * libio/iofgets_u.c (fgets_unlocked): Likewise.
3738         * libio/iofputs_u.c (fputs_unlocked): Likewise.
3739         * libio/iofputws_u.c (fputws_unlocked): Likewise.
3740         * libio/iofread_u.c (fread_unlocked): Likewise.
3741         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3742         * libio/iovswscanf.c (vswscanf): Likewise.
3743         * libio/putwc_u.c (putwc_unlocked): Likewise.
3744         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3745         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3746         * malloc/mtrace.c: Likewise.
3747
3748         * sunrpc/clnt_perr.c: Remove fputs macro.
3749         * sunrpc/svc_simple.c: Likewise.
3750         * sunrpc/svc_tcp.c: Likewise.
3751         * sunrpc/svc_udp.c: Likewise.
3752         * sunrpc/xdr_rec.c: Likewise.
3753         * sunrpc/xdr_ref.c: Likewise.
3754
3755         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3756         iconv_prog, linereader, and charmap-dir.
3757         * locale/Makefile: Likewise for locale and charmap-dir.
3758         * malloc/Makefile: Likewise for memusagestat.
3759         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3760         * sunrpc/Makefile: Likewise for rpc_main.
3761         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3762         * timezone/Makefile: Likewise for zic.
3763
3764         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3765
3766         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3767         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3768         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3769         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3770         _dl_close.
3771
3772         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3773         __wunderflow.
3774         * libio/genops.c (__underflow): Add libc_hidden_def.
3775         * libio/wgenops.c (__wuflow): Likewise.
3776         (__wunderflow): Likewise.
3777
3778         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3779         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3780
3781         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3782         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3783
3784         * include/string.h: Add libc_hidden_proto for __strverscmp.
3785         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3786
3787         * include/unistd.h: Add libc_hidden_proto for __sysconf.
3788         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3789         * sysdeps/posix/sysconf.c: Likewise.
3790         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3791         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3792
3793         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3794         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3795         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3796         __iswxdigit_l, __towlower_l, __towupper_l.
3797         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3798         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3799
3800         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3801         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3802         * sysdeps/mach/hurd/xmknod.c: Likewise.
3803         * sysdeps/unix/xmknod.c: Likewise.
3804         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3805         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3806         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3807
3808         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3809
3810 2002-08-03  Roland McGrath  <roland@redhat.com>
3811
3812         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3813         setpriority.
3814         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3815         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3816         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3817         * sysdeps/mach/hurd/setpriority.c: Likewise.
3818         * sysdeps/mach/hurd/getpriority.c: Likewise.
3819         * sysdeps/generic/setpriority.c: Likewise.
3820         * sysdeps/generic/getpriority.c: Likewise.
3821
3822         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3823         * malloc/mcheck.c: Add libc_hidden_def.
3824
3825         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3826         * misc/hsearch_r.c: Add libc_hidden_def.
3827
3828         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3829         * posix/fnmatch.c: Add libc_hidden_weak.
3830
3831         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3832         execl, execle, execlp, execvp, getpid, getsid.
3833         * sysdeps/generic/alarm.c: Add libc_hidden_def.
3834         * sysdeps/unix/alarm.c: Likewise.
3835         * posix/confstr.c: Likewise.
3836         * posix/execvp.c: Likewise.
3837         * posix/execlp.c: Likewise.
3838         * posix/execle.c: Likewise.
3839         * posix/execl.c: Likewise.
3840         * sysdeps/generic/getsid.c: Likewise.
3841         * sysdeps/mach/hurd/getsid.c: Likewise.
3842         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3843         * sysdeps/mach/hurd/getpid.c: Likewise.
3844
3845         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3846         qecvt_r, qfcvt_r, lrand48_r.
3847         * misc/efgcvt_r.c: Add libc_hidden_def.
3848
3849         * include/wordexp.h: Use libc_hidden_proto for wordfree.
3850         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3851
3852         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3853         * locale/nl_langinfo.c: Add libc_hidden_def.
3854
3855         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3856         * sysdeps/generic/glob.c: Add libc_hidden_def.
3857         * sysdeps/generic/glob64.c: Likewise.
3858         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3859
3860         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3861
3862         * elf/Makefile (CFLAGS-vismod2.c): New variable.
3863
3864         * locale/setlocale.c (_nl_current_names): Variable moved ...
3865         * locale/localename.c (_nl_current_names): ... here, new file.
3866         Make it global, with attribute_hidden.
3867         * locale/localeinfo.h: Declare it.
3868         * locale/Makefile (aux): Add localename.
3869         * locale/localename.c (__current_locale_name): New function.
3870         * include/locale.h (__current_locale_name): Declare it.
3871         * intl/dcigettext.c (guess_category_value): Use that instead of
3872         calling setlocale.
3873
3874         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3875         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3876         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3877         * locale/newlocale.c: Add alias to __ name.
3878         * locale/duplocale.c: Likewise.
3879         * locale/freelocale.c: Likewise.
3880         * locale/uselocale.c: New file.
3881         * locale/Makefile (routines): Add it.
3882         * locale/Versions (libc: GLIBC_2.3): New set.
3883         Add newlocale, duplocale, freelocale, uselocale.
3884         (libc: GLIBC_PRIVATE): Add __uselocale.
3885
3886         * locale/localeinfo.h [SHARED]
3887         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3888         (_NL_CURRENT_DATA): Define using that.
3889         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3890         (_NL_CURRENT_DEFINE): Define to empty.
3891         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3892         conditionalized on this.
3893         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3894         taking initializer of _nl_C_locobj.
3895         [SHARED] (_nl_global_locale): New variable, using that initializer.
3896         (_nl_C_locobj): Use new macro for initialzier.
3897         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3898         [! SHARED] (CATEGORY_USED): New macro.
3899         [SHARED] (CATEGORY_USED, _nl_C): New macros.
3900         (setdata, setlocale): Use that macro instead of examining _nl_current.
3901         (setdata): Set the slot in _nl_global_locale.
3902         Conditionalize setting of _nl_current on [! SHARED].
3903         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3904         declaration as an extern.
3905         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3906
3907         * include/locale.h: Use libc_hidden_proto for setlocale.
3908         * locale/setlocale.c: Add libc_hidden_def.
3909
3910         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3911
3912         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3913         * misc/hsearch_r.c: Add libc_hidden_def.
3914         * misc/lsearch.c: Likewise.
3915
3916         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3917         endttyent.
3918         * misc/getttyent.c: Add libc_hidden_def.
3919
3920         * include/mcheck.h: Use libc_hidden_proto for mcheck.
3921         * malloc/mcheck.c: Add libc_hidden_def.
3922
3923         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3924         * include/argz.h: Use libc_hidden_proto for argz_delete.
3925         * string/argz-delete.c: Add libc_hidden_def.
3926         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
3927
3928         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3929         HIDDEN_JUMPTARGET for _exit.
3930         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3931         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3932         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3933         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3934
3935         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3936         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3937         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3938         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3939
3940         * include/stdlib.h: Use libc_hidden_proto for abort,
3941         __strtof_internal, __strtod_internal, __strtold_internal,
3942         __strtol_internal, __strtoll_internal, __strtoul_internal,
3943         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3944         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3945         __strtoul_l_internal, __strtoull_l_internal.
3946         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3947         __wcstod_internal, __wcstold_internal, __wcstol_internal,
3948         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3949         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3950         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3951         __wcsncasecmp_l.
3952         * sysdeps/generic/abort.c: Add libc_hidden_def.
3953         * stdlib/strtod.c: Likewise.
3954         * sysdeps/generic/strtol.c: Likewise.
3955         * sysdeps/wordsize-64/strtol.c: Likewise.
3956         * sysdeps/wordsize-64/wcstol.c: Likewise.
3957         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3958
3959         * include/stdlib.h: Use libc_hidden_proto for qsort.
3960         * stdlib/msort.c: Add libc_hidden_def.
3961
3962         * include/utime.h: Use libc_hidden_proto for utime.
3963         * sysdeps/generic/utime.c: Add libc_hidden_def.
3964         * sysdeps/unix/utime.c: Likewise.
3965
3966         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3967         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3968         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3969         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3970         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3971
3972         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3973         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3974         and __libc_current_sigrtmax.
3975         * signal/sigismem.c: Add libc_hidden_def.
3976         * signal/sigfillset.c: Likewise.
3977         * signal/sigempty.c: Likewise.
3978         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3979         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3980         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3981         * sysdeps/posix/raise.c: Likewise.
3982         * sysdeps/generic/raise.c: Likewise.
3983
3984 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3985
3986         * include/string.h: Use libc_hidden_proto for __stpcpy.
3987         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3988         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3989         * sysdeps/generic/stpcpy.c: Likewise.
3990         * sysdeps/i386/stpcpy.S: Likewise.
3991         * sysdeps/i386/i586/stpcpy.S: Likewise.
3992         * sysdeps/powerpc/stpcpy.S: Likewise.
3993         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3994         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3995
3996         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3997         __strncasecmp_l, __strdup, __strndup, __strerror_r.
3998         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3999         libc_hidden_def.
4000         * string/strdup.c (__strdup): Likewise.
4001         * string/strndup.c (__strndup): Likewise.
4002         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
4003         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
4004
4005 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4006
4007         * include/libio.h: New file.
4008         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
4009         * libio/iolibio.h: #include <libio.h>, not "libio.h".
4010         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
4011         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
4012         * sysdeps/unix/common/syscalls.list: Likewise.
4013         * sysdeps/unix/inet/syscalls.list: Likewise.
4014         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
4015         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
4016         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4017         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4018         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4019         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4020         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4021         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4022         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4023         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
4024         * sysdeps/unix/syscalls.list: Likewise.
4025
4026 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4027             Ulrich Drepper  <drepper@redhat.com>
4028
4029         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
4030         the arguments is big enough to cause an overflow.
4031
4032 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4033
4034         * assert/assert.c: Use hidden_def not INTDEF.
4035
4036 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4037
4038         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
4039         not defined.
4040
4041 2002-08-03  Roland McGrath  <roland@redhat.com>
4042
4043         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
4044         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
4045         verr, verrx.
4046         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
4047         * misc/syslog.c: Add libc_hidden_def.
4048         * misc/err.c: Likewise.
4049         * stdlib/exit.c: Likewise.
4050         * stdlib/bsearch.c: Likewise.
4051         * sysdeps/generic/getenv.c: Likewise.
4052
4053         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
4054
4055         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
4056         libc_hidden_weak for every system call symbol defined.
4057
4058         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
4059         timelocal, localtime, strftime.
4060         * time/asctime.c: Add libc_hidden_def.
4061         * time/mktime.c: Likewise.
4062         * time/localtime.c: Likewise.
4063         * time/strftime.c: Likewise.
4064         * time/strptime.c: Likewise.
4065         * sysdeps/generic/time.c: Likewise.
4066         * sysdeps/unix/time.c: Likewise.
4067         * sysdeps/unix/sysv/i386/time.S: Likewise.
4068         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
4069
4070         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
4071         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
4072         * resolv/inet_ntop.c: Likewise.
4073         * resolv/inet_pton.c: Likewise.
4074         * inet/inet_mkadr.c: Add libc_hidden_def.
4075         * inet/inet_netof.c: Likewise.
4076         * resolv/inet_addr.c: Likewise.
4077
4078         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
4079         clauses from conditionals for now.  Will have to be fixed later
4080         for older compilers.
4081
4082         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
4083
4084 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4085
4086         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
4087         broken alias attribute handling.
4088         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
4089
4090 2002-08-02  Roland McGrath  <roland@frob.com>
4091
4092         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
4093         since it sets the variables we use in a -D switch.
4094
4095 2002-08-02  Roland McGrath  <roland@redhat.com>
4096
4097         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
4098         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
4099         matches long int, not int.
4100
4101         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
4102         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
4103         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4104         * wctype/wctrans.c (wctrans): Likewise.
4105         * wctype/wctype.c (__wctype): Likewise.
4106         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
4107
4108 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4109
4110         * assert/assert.c (__assert_fail): Fix typo in comment.
4111
4112         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4113         * sunrpc/rpc_thread.c: Define it without static.
4114         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
4115
4116 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4117
4118         * assert/assert.c (__assert_fail): Remove undef.
4119         Replace INTDEF with libc_hidden_def.
4120         * assert/__assert.c (__assert): Remove INTUSE.
4121         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4122         libc_hidden_weak.
4123         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4124         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4125         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4126         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4127         libm_hiden_ver): Define.
4128         * include/assert.h (__assert_fail_internal): Remove.
4129         (__assert_fail): Add prototype.  Add hidden_proto.
4130         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4131         libc_hidden_proto.
4132         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4133         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
4134         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4135         Add libc_hidden_proto.
4136         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4137         __fcntl): Add libc_hidden_proto.  Remove macros.
4138         (__open_internal, __fcntl_internal): Remove.
4139         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4140         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4141         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4142         libc_hiden_proto.
4143         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4144         libc_hidden_def.
4145         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4146         Add libc_hidden_def.
4147         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4148         * sysdeps/generic/open.c (__open): Remove undef.
4149         Add libc_hidden_def.  Remove INTDEF.
4150         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4151         Add libc_hidden_def.
4152         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4153         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4154         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4155         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4156         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4157         (__libc_fcntl): Add libc_hidden_def.
4158         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4159         (__open): Remove INTDEF2.  Add libc_hidden_weak.
4160         (__libc_open): Add libc_hidden_def.
4161         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4162         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4163         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4164         Add libc_hidden_def.
4165         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4166         Add libc_hidden_def.
4167         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4168         undef.
4169         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4170         (__libc_fcntl): Add libc_hidden_def.
4171         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4172         __getpgid_internal, __chown_internal): Remove.
4173         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4174         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4175         __GI___chown): Add.
4176         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4177         __getpid_internal, __open_internal, __write_internal): Remove.
4178         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4179         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4180         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4181         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4182         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4183         Replace INTDEF with libc_hidden_def.
4184         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4185         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4186         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4187         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4188         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4189         Add libc_hidden_proto.
4190         * include/sys/poll.h (__poll): Add libc_hidden_proto.
4191         * include/sys/select.h (__select): Likewise.
4192         * include/sys/socket.h (__send): Likewise.
4193         * include/sys/statfs.h (__statfs): Likewise.
4194         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4195         __getpid, __getpgid, __setpgid, __close, __read, __write,
4196         __getpagesize, __sbrk): Likewise.
4197         (__chown_internal, __dup2_internal, __getpid_internal,
4198         __getpgid_internal, __close_internal, __write_internal,
4199         __getpagesize_internal): Remove.
4200         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4201         Remove macros.
4202         * include/printf.h (__printf_fp): Add libc_hidden_proto.
4203         * include/sched.h (__sched_setscheduler): Likewise.
4204         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4205         * include/stdlib.h (__secure_getenv): Likewise.
4206         * include/signal.h (__sigaction, __sigsuspend): Likewise.
4207         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4208         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4209         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4210         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4211         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4212         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4213         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4214         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4215         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4216         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4217         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4218         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4219         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4220         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4221         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4222         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4223         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4224         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4225         * libio/genops.c (__overflow): Add libc_hidden_def.
4226         * libio/iovdprintf.c: Remove libio.h include.
4227         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4228         libc_hidden_weak): Define to nothing if not defined.
4229         (__overflow, __woverflow): Add libc_hidden_proto.
4230         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4231         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4232         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4233         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4234         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4235         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4236         and libc_hidden_def.
4237         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4238         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4239         (__getpgid): Add libc_hidden_proto.
4240         (__bsd_getpgrp): Remove INTUSE.
4241         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4242         libc_hidden_def.
4243         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4244         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4245         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4246         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4247         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4248         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4249         __rpc_thread_createerr): Add libc_hidden_def.
4250         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4251         libc_hidden_def.
4252         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4253         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4254         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4255         * sysdeps/generic/chown.c (__chown): Likewise.
4256         * sysdeps/generic/close.c (__close): Likewise.
4257         * sysdeps/generic/dup2.c (__dup2): Likewise.
4258         * sysdeps/generic/pipe.c (__pipe): Likewise.
4259         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4260         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4261         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4262         * sysdeps/generic/read.c (__libc_read): Likewise.
4263         (__read): Add libc_hidden_weak.
4264         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4265         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4266         * sysdeps/generic/select.c (__select): Likewise.
4267         * sysdeps/generic/send.c (__send): Likewise.
4268         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4269         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4270         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4271         * sysdeps/generic/statfs.c (__statfs): Likewise.
4272         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4273         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4274         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4275         Remove undef and INTDEF.
4276         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4277         * sysdeps/generic/getpid.c (__getpid): Likewise.
4278         * sysdeps/generic/write.c (__libc_write): Likewise.
4279         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4280         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4281         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4282         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4283         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4284         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4285         Remove undef and INTDEF.
4286         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4287         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4288         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4289         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4290         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4291         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4292         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4293         (__pipe): Add libc_hidden_def.
4294         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4295         libc_hidden_weak.
4296         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4297         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4298         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4299         (__read): Add libc_hidden_weak.
4300         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4301         (__libc_pwrite64): Add libc_hidden_def.
4302         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4303         * sysdeps/mach/hurd/select.c (__select): Likewise.
4304         * sysdeps/mach/hurd/send.c (__send): Likewise.
4305         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4306         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4307         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4308         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4309         * sysdeps/posix/dup2.c: Likewise.
4310         Remove undef and INTDEF.
4311         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4312         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4313         (__pwrite64): Add libc_hidden_weak.
4314         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4315         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4316         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4317         * sysdeps/standalone/close.c (__close): Likewise.
4318         * sysdeps/standalone/write.c (__libc_write): Likewise.
4319         (__write): Add libc_hidden_weak.
4320         * sysdeps/standalone/read.c (__read): Likewise.
4321         (__libc_read): Add libc_hidden_def.
4322         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4323         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4324         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4325         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4326         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4327         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4328         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4329         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4330         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4331         __GI___sigaction): Add.
4332         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4333         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4334         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4335         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4336         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4337         __GI___setpgid): Add.
4338         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4339         Remove undef and INTDEF.
4340         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4341         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4342         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4343         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4344         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4345         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4346         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4347         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4348         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4349         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4350         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4351         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4352         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4353         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4354         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4355         __GI___statfs, __GI___send): Add.
4356         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4357         libc_hidden_ver resp. libc_hidden_def.
4358         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4359         libc_hidden_def.
4360         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4361         Likewise.  Remove undef and INTDEF.
4362         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4363         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4364         __GI___statfs, __GI___send): Add.
4365         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4366         libc_hidden_def.
4367         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4368         Likewise.
4369         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4370         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4371         libc_hidden_ver resp. libc_hidden_def.
4372         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4373         __GI___send): Add.
4374         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4375         Add libc_hidden_weak.
4376         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4377         Add libc_hidden_def.
4378         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4379         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4380         libc_hidden_weak.
4381         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4382         resp. libc_hidden_def.
4383         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4384         libc_hidden_weak.
4385         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4386         INTDEF.
4387         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4388         Likewise.  Remove undef.
4389         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4390         libc_hidden_weak.
4391         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4392         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4393         libc_hidden_weak.
4394         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4395         libc_hidden_def.
4396         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4397         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4398         Likewise.  Remove undef and INTDEF.
4399         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4400         libc_hidden_def.
4401         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4402         libc_hidden_weak.
4403         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4404         libc_hidden_def.
4405         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4406         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4407         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4408         libc_hidden_weak.
4409         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4410         Add libc_hidden_def.
4411         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4412         __GI___statfs): Add.
4413         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4414         libc_hidden_weak.
4415         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4416         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4417         Remove undef and INTDEF.
4418         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4419         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4420         libc_hidden_def.
4421         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4422         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4423         libc_hidden_weak.
4424         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4425         libc_hidden_def.
4426         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4427         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4428         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4429         Add.
4430         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4431         libc_hidden_def.  Remove undef and INTDEF.
4432         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4433         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4434         libc_hidden_def.
4435         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4436         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4437         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4438         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4439         Remove undef and INTDEF.
4440         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4441         broken visibility attribute handling.
4442         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4443
4444 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4445
4446         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4447         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4448
4449         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4450         previous patch.
4451
4452 2002-06-29  Todd Fries  <todd@openbsd.org>
4453
4454         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4455
4456 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4457
4458         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4459
4460 2002-07-30  Roland McGrath  <roland@redhat.com>
4461
4462         * resolv/resolv.h (_res): Define macro unconditionally.
4463         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4464         * include/resolv.h: ... here.
4465         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4466         as a __thread variable.
4467         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4468         a __thread variable instead of a global.
4469         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4470
4471         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4472         time we test it.
4473
4474         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4475
4476         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4477         decls of memset and memcpy.
4478
4479         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4480         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4481
4482         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4483
4484         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4485         (__libc_tsd_define): Define using __thread.
4486
4487         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4488         (__rpc_thread_variables): Use __libc_tsd_get.
4489         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4490         __rpc_thread_variables, which might allocate what we're about to free.
4491
4492         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4493         thread-local variable.
4494         * resolv/netdb.h (h_errno): Define macro unconditionally.
4495         [_LIBC] (__set_h_errno): Macro moved to ...
4496         * include/netdb.h: ... here.
4497         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4498         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4499         [! _LIBC_REENTRANT]: #undef h_errno here.
4500
4501         * include/errno.h: Protect from multiple inclusion.
4502
4503         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4504         before defining them, since Linux's <linux/posix_types.h> might have
4505         defined them.
4506
4507 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4508
4509         * malloc/malloc.c (public_cALLOc): Check for overflow on
4510         multiplication.
4511         * sunrpc/xdr_array.c (xdr_array): Likewise.
4512         * sunrpc/rpc/types.h (mem_free): Add comment.
4513         Patch by Solar Designer <solar@openwall.com>.
4514
4515 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4516
4517         * sysdeps/unix/sysv/linux/kernel-features.h
4518         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4519
4520 2002-08-01  Roland McGrath  <roland@redhat.com>
4521
4522         * libio/fileops.c (_IO_file_sync_mmap): New function.
4523         (_IO_file_jumps_mmap): Use it.
4524         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4525         repeat the stat check and resize the mapped buffer as necessary.
4526
4527 2002-07-31  Roland McGrath  <roland@redhat.com>
4528
4529         * libio/fileops.c (decide_maybe_mmap): New static function.
4530         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4531         mmap the file contents.  Then switch the jump tables to the mmap
4532         tables if it worked, or the vanilla file tables if not.
4533         (_IO_file_underflow_maybe_mmap): New function.
4534         (_IO_file_seekoff_maybe_mmap): New function.
4535         (_IO_file_xsgetn_maybe_mmap): New function.
4536         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4537         * libio/libioP.h: Declare those.
4538         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4539         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4540         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4541         If the stream is read-only, set its jump tables to those new ones.
4542         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4543         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4544         We need the tables set before _IO_file_attach.
4545
4546         * libio/tst-mmap-eofsync.c: New file.
4547         * libio/tst-mmap-fflushsync.c: New file.
4548         * libio/bug-mmap-fflush.c: New file.
4549         * libio/tst-mmap2-eofsync.c: New file.
4550         * libio/Makefile (tests): Add them.
4551
4552         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4553         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4554
4555 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4556
4557         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4558         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4559         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4560         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4561         declare sys_errlist and sys_nerr.
4562         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4563         provide declarations.
4564
4565 2002-07-31  Roland McGrath  <roland@redhat.com>
4566
4567         * elf/rtld.c (dl_main): Fix typo in error message.
4568
4569 2002-07-31  Roland McGrath  <roland@frob.com>
4570
4571         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4572         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4573         sysdeps/mach/hurd/dl-sysdep.c change.
4574
4575 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4576
4577         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4578         -r`/build/include for kernel headers.
4579
4580         * po/fi.po: New file.
4581
4582 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4583
4584         * configure.in (static_nss): Set to `yes' if --disable-shared.
4585
4586 2002-07-23  Bruno Haible  <bruno@clisp.org>
4587
4588         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4589         is set.
4590
4591 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4592
4593         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4594         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4595         arguments.
4596
4597 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4598
4599         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4600         alias.
4601
4602 2002-07-21  Bruno Haible  <bruno@clisp.org>
4603
4604         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4605         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4606         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4607         trans_sysdep_tab_offset.
4608         (struct sysdep_segment): New type.
4609         (struct sysdep_string): New type.
4610         (SEGMENTS_END): New macro.
4611         * intl/gettextP.h (struct sysdep_string_desc): New type.
4612         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4613         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4614         orig_tab, trans_tab, hash_tab to const pointers because they point
4615         into read-only memory.
4616         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4617         (PRI*): Define fallback values.
4618         (get_sysdep_segment_value): New function.
4619         (_nl_load_domain): Distinguish major and minor revision parts. Add
4620         support for minor revision 1 with system dependent strings.
4621         (_nl_unload_domain): Also free the 'malloced' field.
4622         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4623         now done in loadmsgcat.c. Add support for system dependent strings.
4624
4625 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4626
4627         * posix/bug-regex7.c: New file.
4628         * posix/bug-regex8.c: New file.
4629         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4630
4631 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4632
4633         * posix/bug-regex4.c (main): Fix typos.
4634         * posix/bug-regex6.c (main): Likewise.
4635
4636 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
4637
4638         * posix/bug-regex6.c (main): Fix warnings.
4639
4640         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4641
4642         * iconv/iconv_prog.c (main): Improve error message for the cases
4643         where -t and/or -f parameter are missing.
4644
4645 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
4646
4647         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4648         (re_search): Likewise.
4649         (re_match_2): Likewise.
4650         (re_search_2): Likewise.
4651         (re_search_stub): New function.
4652         (re_search_2_stub): New function.
4653         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4654
4655 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
4656
4657         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4658         (re_string_eoi): Use STOP instead of LEN.
4659         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4660         (re_string_construct): Likewise.
4661         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4662         * posix/regexec.c (re_search_internal): Add a new argument STOP
4663         so that it can handle the argument STOP of re_search_2 and re_match_2
4664         correctly.
4665         (regexec): Adapt to new I/F of re_search_internal.
4666         (re_search_stub): Likewise.
4667
4668 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
4669
4670         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4671
4672         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4673
4674         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4675         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4676         of __divdi3.
4677
4678         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4679         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4680         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4681         alias for adjtimex syscall.
4682
4683         * elf/dl-minimal.c: Define __assert_fail_internal.
4684         * assert/assert.c: Likewise.
4685         * include/assert.h: Define __assert_file macro if !SHARED and not
4686         NOT_IN_libc.
4687
4688         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4689         programs.
4690         * locale/Makefile: Likewise.
4691         * nscd/Makefile: Likewise.
4692         * catgets/Makefile: Likewise.
4693
4694 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4695
4696         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4697         compute current position.
4698
4699         * stdio-common/tst-fseek.c (main): Improve error messages.
4700
4701         * libio/tst-freopen.c (main): Remove unused variable.
4702
4703         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4704         succesful seek call.  Simplify error checking.
4705
4706 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4707
4708         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4709         * sysdeps/ia64/fpu/libm_support.h: Likewise.
4710
4711 2002-07-19  Roland McGrath  <roland@frob.com>
4712
4713         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4714         __libc_enable_secure is set.
4715
4716 2002-07-24  Roland McGrath  <roland@frob.com>
4717
4718         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4719         This implementation supports only IPv4.
4720         * inet/ifaddrs.h: New file.
4721         * sysdeps/generic/ifaddrs.c: New file.
4722         * sysdeps/gnu/ifaddrs.c: New file.
4723         * inet/test-ifaddrs.c: New file.
4724         * inet/Makefile (routines): Add ifaddrs.
4725         (headers): Add ifaddrs.h here.
4726         (tests): Add test-ifaddrs.
4727         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4728
4729         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4730         socket call to get an AF_INET socket, instead of using __opensock.
4731         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4732
4733         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4734         if not -1 use it instead of calling __opensock.
4735         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4736         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4737         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4738
4739         * sysdeps/mach/hurd/ifreq.h: New file.
4740         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4741         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4742         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4743
4744         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4745         which gets moved around.  Calculate size of mmap'd buffer instead.
4746
4747 2002-07-24  Philip Blundell  <philb@gnu.org>
4748
4749         * sysdeps/unix/arm/brk.S: Improve schedule.
4750         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4751         efficient instruction.
4752         (__socket): Optimize return sequence.
4753
4754 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4755
4756         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4757         sockets on old kernels.
4758
4759 2002-07-22  Philip Blundell  <philb@gnu.org>
4760
4761         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4762         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
4763         alias.
4764
4765 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4766
4767         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4768         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4769
4770         * locale/programs/locarchive.c (add_locale_to_archive): Correct
4771         test to detect duplicate locales.
4772
4773         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4774         position would be before beginning of file.
4775         (_IO_file_seekoff_mmap): Likewise.
4776         * libio/Makefile (tests): Add bug-fseek.
4777         * libio/bug-fseek.c: New file.
4778
4779         * intl/explodename.c: Remove support for CEN-style locale variables.
4780         It was never used and shouldn't be since it's not portable.
4781         * intl/finddomain.c: Likewise.
4782         * intl/l10nflist.c: Likewise.
4783         * intl/loadinfo.h: Likewise.
4784         * locale/findlocale.c: Likewise.
4785
4786 2002-07-24  Roland McGrath  <roland@frob.com>
4787
4788         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4789         position, calculate it to take into account an active pushback buffer.
4790
4791         * libio/Makefile (tests): Add bug-ungetc.
4792         * libio/bug-ungetc.c: New file.
4793
4794 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
4795
4796         * sysdeps/generic/libc-tls.c: New file.
4797         * csu/Makefile (routines): Add libc-tls.
4798         (static-only-routines): Add libc-tls.
4799         * elf/dl-support.c (_dl_phdr): New variable.
4800         (_dl_phnum): New variable.
4801         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4802         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4803         for !SHARED.  First look through auxiliary vector.  If TLS always
4804         call __pthread_initialize_minimal.
4805
4806         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4807         in mmap call is never zero.
4808
4809 2002-07-23  Andreas Jaeger  <aj@suse.de>
4810
4811         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4812         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4813
4814 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
4815
4816         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4817         creation and removal of the temp file.
4818
4819         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
4820         file creation.
4821         * test-skeleton.c (create_temp_file): New function.
4822
4823 2002-07-22  Andreas Jaeger  <aj@suse.de>
4824
4825         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4826         local label.
4827
4828 2002-07-21  Roland McGrath  <roland@frob.com>
4829
4830         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4831         put -I../include before -I../stdlib so we get the right errno.h et al.
4832         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4833         (CFLAGS-wcstof.c): Likewise.
4834         (CFLAGS-wcstold.c): Likewise.
4835         (CFLAGS-wcstod_l.c): Likewise.
4836         (CFLAGS-wcstof_l.c): Likewise.
4837         (CFLAGS-wcstold_l.c): Likewise.
4838
4839 2002-07-19  Roland McGrath  <roland@frob.com>
4840
4841         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4842
4843 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
4844
4845         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4846         __ASSUME_AT_XID is defined.
4847         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4848         for 2.4.1 and up.
4849         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4850         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4851
4852         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4853         (CFLAGS-wcstof.c): Likewise.
4854         (CFLAGS-wcstold.c): Likewise.
4855         (CFLAGS-wcstod_l.c): Likewise.
4856         (CFLAGS-wcstof_l.c): Likewise.
4857         (CFLAGS-wcstold_l.c): Likewise.
4858
4859 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
4860
4861         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4862         __priority_which_t): Always typedef to int for C++.
4863
4864 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
4865
4866         * configure.in: Add test for __thread support in compiler.
4867         * config.h.in: Add HAVE___THREAD.
4868         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4869         * include/sys/errno.h: Moved to...
4870         * stdlib/sys/errno.h: ...here.  New file.
4871         * stdlib/errno.h: New file.  Moved from...
4872         * include/errno.h: ...here.  Changed into an internal header defining
4873         libc-local things like __set_errno.
4874         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4875         bits/errno.h.
4876         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
4877         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
4878         either.
4879         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4880         from...
4881         (_dl_start_final): ...here.  Add code to initialize tls elements from
4882         bootstrap_map.
4883         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4884         if USE_TLS && HAVE___THREAD.
4885         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4886         * sysdeps/mach/hurd/bits/errno.h: Likewise.
4887         * sysdeps/standalone/arm/bits/errno.h: Likewise.
4888         * sysdeps/standalone/bits/errno.h: Likewise.
4889         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4890         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4891         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4892         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4893         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4894         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4895         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4896         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4897         use GL(dl_rtld_map), use map parameter.
4898         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4899         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4900         USE_TLS && HAVE___THREAD.
4901         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4902         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
4903         TLS code sequence.
4904         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4905
4906         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4907         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4908         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4909         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4910         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4911         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4912
4913 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
4914
4915         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4916         MS_INVALIDATE values.
4917
4918 2002-07-17  Andreas Schwab  <schwab@suse.de>
4919             Ulrich Drepper  <drepper@redhat.com>
4920
4921         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4922         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4923         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4924         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4925
4926 2002-07-01  H.J. Lu  <hjl@gnu.org>
4927
4928         * elf/circleload1.c (load_dso): Call "circlemod1" and check
4929         return value.
4930
4931         * elf/circlemod1.c (circlemod1): Return int.
4932         * elf/circlemod2.c (circlemod2): Likewise.
4933         * elf/circlemod2a.c (circlemod2): Likewise.
4934         * elf/circlemod3.c (circlemod3): Likewise.
4935         (circlemod3a): A new function.
4936
4937 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
4938
4939         * catgets/tst-catgets.c (main): Don't expect results for
4940         untranslated messages.
4941
4942         * glibcbug.in: Fix little typo.  Remove STDIO.
4943
4944         * config.h.in: Fail if __FAST_MATH__ is defined.
4945         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4946         (CPPFLAGS-test-idouble.c): Likewise.
4947         (CPPFLAGS-test-ildouble.c): Likewise.
4948
4949 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4950
4951         * intl/tst-gettext.sh: Pass -f option to msgfmt.
4952         * intl/tst-gettext.c: Correctly handle untranslated messages in
4953         positive tests.
4954
4955         * po/de.po: Update from translation team.
4956
4957 2002-07-02  H.J. Lu  <hjl@gnu.org>
4958
4959         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
4960         use ll/sc.
4961         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4962
4963         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4964         to 2.4.0 for mips.
4965
4966 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4967
4968         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4969         TLS fail if USE_TLS is not defined.
4970
4971         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4972         and adjust state for seek position.  [PR libc/4070]
4973         * libio/Makefile (tests): Add bug-rewind.
4974         * libio/bug-rewind.c: New file.
4975
4976 2002-07-12  Philip Blundell  <philb@gnu.org>
4977
4978         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4979         (__backtrace): Use it.
4980         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
4981
4982 2002-07-12  Philip Blundell  <philb@gnu.org>
4983
4984         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4985         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
4986         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4987         (elf_machine_rela): Remove unused variable.
4988
4989         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4990         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4991         define.
4992
4993 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
4994
4995         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4996
4997 2002-07-14  Andreas Jaeger  <aj@suse.de>
4998
4999         * sysdeps/x86_64/bits/link.h: Add biarch support.
5000
5001 2002-07-13  Andreas Jaeger  <aj@suse.de>
5002
5003         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
5004         Use correct indices.
5005         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
5006
5007 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5008
5009         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
5010         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
5011         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
5012         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
5013         * sysdeps/s390/s390-32/bits/link.h: Remove.
5014         * sysdeps/s390/s390-64/bits/link.h: Remove.
5015         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
5016         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
5017         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
5018         * sysdeps/s390/bits/wordsize.h: New file.
5019         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
5020         elfclass.h.
5021         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
5022         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
5023         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
5024         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
5025         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
5026         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
5027         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
5028         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
5029         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
5030         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
5031         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
5032         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
5033         resource.h.
5034         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
5035         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
5036         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
5037         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
5038         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
5039         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
5040         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
5041         sigaction.h.
5042         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
5043         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
5044         siginfo.h.
5045         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
5046         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
5047         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
5048         socket.h.
5049         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
5050         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
5051         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
5052         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
5053         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
5054         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
5055         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
5056         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
5057         procfs.h.
5058         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
5059         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
5060         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
5061         ucontext.h.
5062         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
5063         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
5064
5065 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5066
5067         * Versions.def (libc): Add GLIBC_2.3.
5068         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
5069         * stdlib/canonicalize.c: Add compatibility version for realpath
5070         and make new code available in GLIBC_2.3.
5071
5072 2002-07-06  Bruno Haible  <bruno@clisp.org>
5073
5074         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
5075
5076 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5077
5078         * resolv/res_hconf.c (_res_hconf_init): Move code into new
5079         function do_init.  Use __libc_once.
5080         (do_init): New function.
5081
5082         * iconvdata/iso8859-11.h: Removed.
5083         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
5084         (distribute): Remove iso8859-11.h.
5085         * iconvdata/tst-tables.sh: Add ISO-8859-11.
5086
5087         * stdio-common/vfscanf.c (inchar): Restore errno from previous
5088         underflow operation if c == (W)EOF.
5089
5090 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5091
5092         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
5093         non-zero, adjust exponent.
5094         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
5095         Remove NO_LONG_DOUBLE aliases.
5096         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
5097         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
5098         (__log1pl): Raise divide by zero and invalid exceptions when needed.
5099         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
5100         1**y and -1**+-Inf.
5101         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
5102         Fix BITS_PER_MP_LIMB 32 extraction.
5103         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
5104         exceptions for qNaNs.
5105         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5106         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
5107         Raise exceptions when needed.  Don't recurse unnecessarily.
5108         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
5109         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
5110         exceptions for qNaNs.
5111         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
5112         to fix *quo return value sign.
5113         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
5114         case -Inf argument.
5115         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
5116
5117 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5118
5119         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5120         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5121         -DNDEBUG.
5122
5123 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5124
5125         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5126         the result.
5127
5128         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5129         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
5130
5131         * Versions.def (libthread_db): Add GLIBC_2.3.
5132
5133 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
5134
5135         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5136         new stream if possible.
5137         * libio/freopen64.c (freopen64): Likewise.
5138         * libio/Makefile (tests): Add tst-freopen.
5139         * libio/tst-freopen.c: New file.
5140
5141 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5142
5143         * libio/stdio.h (obstack_printf): Add format attribute.
5144         (obstack_vprintf): Likewise.
5145
5146 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5147
5148         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5149         resp. 16 bytes on 32-bit resp. 64-bit platforms.
5150         (re_charset_t, re_string_t): Reorder structure members for 64-bit
5151         architectures.
5152
5153 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5154
5155         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5156         (init_dfa): ...here.
5157
5158 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5159
5160         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5161         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5162         nodes in parse trees.
5163         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5164         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5165         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5166         nodes which can epsilon transit.
5167         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5168         to IS_EPSILON_NODE macro.
5169         * posix/regexec.c (update_regs): New function to update registers
5170         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5171         (proceed_next_node): Use the entities of the nodes to determine
5172         whether the node can transit to.
5173         (set_regs): Use update_regs function to update registers.
5174
5175 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5176
5177         * posix/bug-regex4.c (main): Remove duplicate setlocale.
5178         * posix/bug-regex6.c: New file.
5179         * posix/Makefile (tests): Add bug-regex6.
5180         (bug-regex6-ENV): Set LOCPATH.
5181
5182 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5183
5184         * Versions.def [libpthread]: Add GLIBC_2.2.6.
5185         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5186
5187 2002-07-06  Bruno Haible  <bruno@clisp.org>
5188
5189         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5190
5191 2002-07-06  Bruno Haible  <bruno@clisp.org>
5192
5193         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5194         declarations.
5195
5196         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5197
5198         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5199
5200         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5201         not _UTSNAME_H.
5202         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5203
5204         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5205         * sysdeps/generic/bits/ustat.h: Likewise.
5206
5207         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5208
5209 2002-07-08  Andreas Jaeger  <aj@suse.de>
5210
5211         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5212
5213 2002-07-08  Andreas Jaeger  <aj@suse.de>
5214
5215         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5216
5217 2002-07-06  Andreas Jaeger  <aj@suse.de>
5218
5219         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5220         * sysdeps/x86_64/fpu/s_copysign.S: New file.
5221         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5222         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5223         * sysdeps/x86_64/fpu/s_finitel.S: New file.
5224         * sysdeps/x86_64/fpu/s_fmax.S: New file.
5225         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5226         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5227         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5228         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5229         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5230
5231 2002-06-05  Brian Youmans <3diff@gnu.org>
5232
5233         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5234         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5235         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5236         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5237         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5238         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5239         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5240         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5241         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5242         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5243         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5244         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5245         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5246         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5247         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5248         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5249         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5250         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5251         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5252         * sysdeps/ia64/fpu/e_log.S: Likewise.
5253         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5254         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5255         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5256         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5257         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5258         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5259         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5260         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5261         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5262         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5263         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5264         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5265         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5266         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5267         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5268         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5269         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5270         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5271         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5272         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5273         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5274         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5275         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5276         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5277         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5278         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5279         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5280         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5281         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5282         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5283         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5284         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5285         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5286         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5287         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5288         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5289         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5290         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5291         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5292         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5293         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5294         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5295         * sysdeps/ia64/fpu/s_round.S: Likewise.
5296         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5297         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5298         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5299         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5300         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5301         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5302         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5303         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5304         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5305         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5306         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5307         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5308         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5309         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5310         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5311         reflect IBM donation of math library to FSF
5312         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5313         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5314         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5315         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5316         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5317         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5318         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5319         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5320         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5321         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5322         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5323         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5324         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5325         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5326         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5327         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5328         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5329         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5330         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5331         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5332         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5333         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5334         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5335         * sysdeps/vax/__longjmp.c: Likewise.
5336         * sysdeps/vax/setjmp.c: Likewise.
5337         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5338         remove advertising clause
5339         * sysdeps/vax/htonl.s: Likewise.
5340         * sysdeps/vax/htons.s: Likewise.
5341         * libio/wfiledoalloc.c: Likewise.
5342         * stdlib/random.c: Likewise.
5343         * stdlib/random_r.c: Likewise.
5344         * sysdeps/mach/sys/reboot.h: Likewise.
5345         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5346         * sysdeps/posix/getaddrinfo.c: Likewise.
5347         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5348         GPL and corrected pointer to point to the correct license.
5349
5350 2002-07-04  Andreas Jaeger  <aj@suse.de>
5351
5352         * scripts/config.guess: New upstream version.
5353         * scripts/config.sub: Likewise.
5354
5355 2002-07-02  Andreas Schwab  <schwab@suse.de>
5356
5357         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5358         in parallel to bumping up the buffer pointer.
5359
5360 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5361
5362         * math/libm-test.inc (acos_test): Add missing L suffix for
5363         expected result.
5364         (cpow_test): Likewise.
5365         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5366         error for acos (0.0625).
5367
5368 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5369
5370         * locale/iso-639.def: Add entry for Ganda.
5371         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5372         definition.
5373         (address_finish): Handle entries with two letter ISO 639 code.
5374
5375         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5376         directory if it existed before.
5377         * iconv/iconvconfig.c: Implement --prefix option.
5378
5379         * math/libm-test.inc (cexp_test): Add missing L suffix for
5380         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5381         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5382         1.25 i).
5383
5384 2002-05-29  H.J. Lu  <hjl@gnu.org>
5385
5386         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5387         is turned on.
5388
5389 2002-05-28  H.J. Lu  <hjl@gnu.org>
5390
5391         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5392         are not dlopened on the dependency list of a dlopened object.
5393
5394 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5395
5396         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5397         dependencies if they are created between objects which are created
5398         while processing RTLD_NOW for objects loaded as part of the same
5399         dlopen call.
5400
5401 2002-06-14  H.J. Lu  <hjl@gnu.org>
5402
5403         * elf/Makefile (tests): Add circleload1.
5404         (modules-names): Add circlemod1, circlemod2, circlemod3,
5405         circlemod1a, circlemod2a and circlemod3a.
5406         ($(objpfx)circleload1): New target.
5407         ($(objpfx)circleload1.out): Likewise.
5408         ($(objpfx)circlemod1.so): Likewise.
5409         ($(objpfx)circlemod2.so): Likewise.
5410         ($(objpfx)circlemod1a.so): Likewise.
5411         ($(objpfx)circlemod2a.so): Likewise.
5412         * elf/circleload1.c: New file.
5413         * elf/circlemod1.c: New file.
5414         * elf/circlemod1a.c: New file.
5415         * elf/circlemod2.c: New file.
5416         * elf/circlemod2a.c: New file.
5417         * elf/circlemod3.c: New file.
5418         * elf/circlemod3a.c: New file.
5419
5420 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5421
5422         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5423         file descriptor.
5424         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5425         add check for fd not open for writing.
5426
5427         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5428         completed element(s) and do not suspend thread if so.  Patch
5429         heavily modified by drepper.
5430
5431         * rt/tst-aio7.c: New file.  Regression test for problems which the
5432         above three changes fix.
5433         * rt/Makefile (tests): Add tst-aio7.
5434
5435 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5436
5437         * rt/tst-aio6.c: Fix comment.
5438
5439         * catgets/gencat.c (read_input_file): Handle more than one slash
5440         at end of line correctly [PR libc/3926].
5441         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5442
5443         * catgets/sample.SJIS: Add test case for above bug.
5444         * catgets/test-gencat.c: Adjust test code.
5445         * catgets/test-gencat.sh: Adjust expected results.
5446
5447         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5448         to skip relative relocations.
5449         Patch by Geoff Keating <geoffk@redhat.com>.
5450
5451 2002-05-26  Bruno Haible  <bruno@clisp.org>
5452
5453         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5454         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5455         All callers changed.
5456         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5457         STANDARD_FROM_LOOP_ERR_HANDLER.
5458         (utf8_internal_loop): Likewise.
5459         (ucs2_internal_loop): Likewise.
5460         (internal_ucs2_loop): Perform error handling like in
5461         STANDARD_FROM_LOOP_ERR_HANDLER.
5462         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5463         in STANDARD_FROM_LOOP_ERR_HANDLER.
5464         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5465         handling.
5466         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5467         in STANDARD_FROM_LOOP_ERR_HANDLER.
5468         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5469         handling.
5470         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5471         in STANDARD_FROM_LOOP_ERR_HANDLER.
5472         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5473         handling.
5474         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5475         STANDARD_FROM_LOOP_ERR_HANDLER.
5476         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5477         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5478         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5479         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5480         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5481         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5482         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5483         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5484         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5485         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5486         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5487         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5488         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5489         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5490         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5491         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5492         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5493         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5494         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5495         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5496         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5497         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5498         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5499         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5500         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5501         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5502         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5503         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5504         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5505         an error, still set result = __GCONV_ILLEGAL_INPUT.
5506         (BODY for TO_LOOP): Likewise.
5507         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5508         STANDARD_FROM_LOOP_ERR_HANDLER.
5509         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5510         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5511         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5512         handling.
5513         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5514         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5515         STANDARD_FROM_LOOP_ERR_HANDLER.
5516         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5517         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5518         STANDARD_FROM_LOOP_ERR_HANDLER.
5519         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5520         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5521         STANDARD_FROM_LOOP_ERR_HANDLER.
5522         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5523         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5524         STANDARD_FROM_LOOP_ERR_HANDLER.
5525         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5526         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5527         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5528         handling.
5529         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5530         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5531         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5532         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5533
5534 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5535
5536         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5537         labels in assembler instructions.
5538
5539 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5540
5541         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5542         not enough content is available.
5543         * libio/tst-eof.c: New file.
5544         * libio/Makefile (tests): Add tst-eof.
5545
5546         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5547         update atime.
5548         * libio/tst-atime.c: New file.
5549         * libio/Makefile (tests): Add tst-atime.
5550
5551         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5552         handling of overly long words.
5553
5554 2002-06-25  Andreas Jaeger  <aj@suse.de>
5555
5556         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5557         to not use 32-bit pc relative relocations.
5558         (elf_machine_dynamic): Likewise.
5559
5560 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5561
5562         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5563         (__GETDENTS): Check for failed getdents64 syscall.
5564         * dirent/Makefile (tests): Add bug-readdir1.
5565         * dirent/bug-readdir1.c: New file.
5566
5567 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5568
5569         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5570         lookups.
5571         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5572         code.  Print TLS modid and offset for modules containing PT_TLS
5573         segments.
5574
5575 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5576
5577         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5578         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5579         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5580         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5581
5582 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5583
5584         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5585         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5586         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5587         * nss/getXXent_r.c (NEW, NEW1): Define.
5588         (NEW (REENTRANT_GETNAME)): Strong alias to
5589         INTERNAL (REENTRANT_GETNAME).
5590         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5591
5592 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5593
5594         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5595         (_IO_file_jumps_mmap): Use it.
5596         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5597         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5598         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5599         prototype.
5600         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5601         (_IO_wfile_jumps_mmap): Don't use it anymore.
5602         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5603         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5604         _IO_wdefault_setbuf.
5605         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5606         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5607         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5608
5609 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5610
5611         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5612         * libio/tst-mmap-setvbuf.c: New test.
5613
5614 2002-06-21  Andreas Jaeger  <aj@suse.de>
5615
5616         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5617
5618 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
5619
5620         * include/unistd.h (__fork_internal): Remove.
5621         (__fork): Don't define to __fork_internal.
5622         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5623         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5624         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5625         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5626         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5627
5628 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5629
5630         * po/hr.po: New file.
5631
5632 2002-06-11  Wolfram Gloger  <wg@malloc.de>
5633
5634         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5635         Reported by Michael Meissner <meissner@redhat.com>.
5636
5637 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5638
5639         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5640         Patch by Hans Boehm <hans_boehm@hp.com>.
5641
5642 2002-06-20  Andreas Jaeger  <aj@suse.de>
5643
5644         * math/libm-test.inc: Use exact values as input parameters,
5645         compute output parameters with 36 digits for 128-bit long doubles.
5646         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5647         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5648         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5649
5650 2002-06-13  Stephen L Moshier  <steve@moshier.net>
5651
5652         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5653         argument or result is subnormal.
5654
5655 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
5656
5657         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5658         quotient.
5659         * sysdeps/i386/fpu/s_remquof.S: Likewise.
5660         * sysdeps/i386/fpu/s_remquol.S: Likewise.
5661
5662         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5663
5664 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
5665
5666         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5667         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5668         Reported by Peter A. Buhr.
5669
5670 2002-06-15  Roland McGrath  <roland@frob.com>
5671
5672         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5673         warning.
5674
5675         * sysdeps/mach/hurd/getcwd.c
5676         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5677
5678         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5679         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5680
5681         * sysdeps/alpha/divrem.h: Use local label instead of global one for
5682         jump to local subroutine.
5683
5684 2002-06-14  Roland McGrath  <roland@frob.com>
5685
5686         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5687         * sysdeps/mach/hurd/Makeconfig: ... here.
5688
5689 2002-06-13  Andreas Schwab  <schwab@suse.de>
5690
5691         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5692         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5693         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5694
5695 2002-06-13  Roland McGrath  <roland@frob.com>
5696
5697         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5698         * hurd/hurdstartup.c (_hurd_startup): Likewise.
5699         Use intptr_t instead of int for argc in stack layout.
5700         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5701         (_dl_init_first): Likewise.
5702         (_hurd_stack_setup): Likewise.
5703         (init1): Add a cast.
5704         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5705
5706         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5707         argument to pfinet_siocgifconf RPC.
5708
5709 2002-06-13  Andreas Schwab  <schwab@suse.de>
5710
5711         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5712         expansion order.
5713
5714 2002-06-12  Roland McGrath  <roland@frob.com>
5715
5716         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5717         if already defined.
5718         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5719         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5720
5721 2002-06-11  Roland McGrath  <roland@frob.com>
5722
5723         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5724         file on [!RTLD_STAT64].
5725         * sysdeps/mach/hurd/fxstat64.c: Likewise.
5726
5727         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5728         (__fdopen): Use INTUSE.
5729         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5730
5731         * stdio-common/tmpfile64.c: File removed.
5732         * sysdeps/generic/tmpfile64.c: New file.
5733         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5734         if not already defined.
5735         (tmpfile): Use it in place of __GT_FILE.
5736
5737         * include/unistd.h: Declare __chown_internal.
5738
5739         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5740         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5741
5742 2002-06-09  Roland McGrath  <roland@frob.com>
5743
5744         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5745         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5746         value of HURD_INTERFACE_VERSION >= 20020609.
5747         * sysdeps/mach/hurd/configure: Regenerated.
5748         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5749         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5750         convert a struct stat64 into a struct stat and return 0 or -1
5751         with errno set to EOVERFLOW.
5752         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5753         for struct statfs64 to struct statfs.
5754         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5755         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5756         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5757         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5758         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5759         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5760         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5761         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5762         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5763         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5764         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5765         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5766         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5767         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5768         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5769         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5770         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5771         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5772         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5773         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5774         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5775         Use struct stat64 for io_stat argument.
5776         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5777         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5778         to io_seek.
5779         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5780         * hurd/fd-write.c (_hurd_fd_write): Likewise.
5781         * hurd/hurd/fd.h: Update decls.
5782         * sysdeps/mach/hurd/getcwd.c
5783         (_hurd_canonicalize_directory_name_internal): Use ino64_t
5784         and struct dirent64.
5785         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5786         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5787         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5788         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5789
5790 2002-06-08  Roland McGrath  <roland@frob.com>
5791
5792         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5793         instead of unsigned long int for __allocation and __size members.
5794
5795 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5796
5797         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5798         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5799         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5800         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5801
5802 2002-06-07  Roland McGrath  <roland@frob.com>
5803
5804         * sysdeps/mach/hurd/bits/environments.h: File removed.
5805
5806 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5807
5808         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5809         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5810         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5811         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5812         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5813         (sendfile64): Likewise.
5814         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5815         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5816         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5817         Likewise.
5818         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5819
5820         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5821         already defined.
5822
5823 2002-06-04  Bruno Haible  <bruno@clisp.org>
5824
5825         * sysdeps/cris/stackinfo.h: New file.
5826
5827         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5828         to an integer type before performing bit operations on it.
5829
5830 2002-06-05  Roland McGrath  <roland@frob.com>
5831
5832         * sysdeps/generic/sendfile.c: Include <errno.h>.
5833         * sysdeps/generic/sendfile64.c: Likewise.
5834
5835         * io/Makefile (routines): Add sendfile and sendfile64.
5836         (headers): Add sys/sendfile.h to the list.
5837         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5838         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5839         * io/sys/sendfile.h: ... here.
5840         * sysdeps/generic/sendfile.c: New file.
5841         * sysdeps/generic/sendfile64.c: New file.
5842
5843         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5844         Move sendfile, sendfile64 to ...
5845         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5846         * sysdeps/mach/hurd/sendfile.c: New file.
5847         * sysdeps/mach/hurd/sendfile64.c: New file.
5848
5849         * sysdeps/mach/nanosleep.c: New file.
5850
5851 2002-06-04  Roland McGrath  <roland@frob.com>
5852
5853         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
5854         * sysdeps/alpha/elf/configure: New file (generated).
5855
5856 2002-06-02  Roland McGrath  <roland@frob.com>
5857
5858         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5859
5860 2002-06-01  Roland McGrath  <roland@frob.com>
5861
5862         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5863         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5864
5865 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5866
5867         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5868         Add nsmap.
5869         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5870         Remove nstimes setting.
5871         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5872         * resolv/res_send.c (res_nsend): Don't close unconditionally if
5873         there is mix of IPv6 and IPv4 nameservers.
5874         Use nsmap array to find free slots and preserve nameserver ordering.
5875         Fix RES_ROTATE.
5876
5877 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5878
5879         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5880         use this header with LFS.
5881
5882         * po/sk.po: Update from translation team.
5883
5884 2002-05-28  Andreas Schwab  <schwab@suse.de>
5885
5886         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5887         message when finding object of wrong class.
5888
5889 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
5890
5891         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5892         Patch by <radu@netsoft.ro>.
5893
5894 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5895
5896         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5897         Add readahead.
5898         * sysdeps/unix/sysv/linux/readahead.c: New file.
5899         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5900         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5901         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5902         Add sendfile64 alias to sendfile syscall.
5903         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5904         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5905         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5906         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5907         syscall.
5908
5909         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5910         special section for PIC register loading.
5911         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5912
5913         * config.h.in: Define HAVE_HIDDEN.
5914         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5915
5916         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5917
5918 2002-05-28  Roland McGrath  <roland@frob.com>
5919
5920         * sysdeps/mach/alpha/setfpucw.c: New file.
5921
5922 2002-05-26  Roland McGrath  <roland@frob.com>
5923
5924         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5925         Use integer_t instead of int for IOC_VOID case.
5926
5927 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
5928
5929         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5930
5931 2002-05-26  Bruno Haible  <bruno@clisp.org>
5932
5933         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5934         end of the ISO-8859-7 from idx table.
5935
5936 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
5937
5938         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5939
5940 2002-05-24  David S. Miller  <davem@redhat.com>
5941
5942         * string/bits/string2.h (memset): Do not try to optimize when
5943         not _STRING_ARCH_unaligned if GCC will do the right thing.
5944
5945 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
5946
5947         * posix/regex.c: Define `inline' as a macro into nothing for the
5948         compilers which lack the keyword.
5949         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5950         for the compatibility of gawk.
5951         * posix/regcomp.c: Add fake implementation of isblank() for the
5952         environments which lack the function.
5953         Don't use free_charset() in case of non-i18n envs.
5954         (build_range_exp): Don't use i18n related code in case of non-i18n
5955         envs.
5956         (build_collating_symbol): Likewise.
5957         (build_equiv_class): Likewise.
5958         (build_charclass): Likewise.
5959         (re_compile_fastmap_iter): Likewise.
5960         (parse_bracket_exp): Likewise.
5961         (build_word_op): Likewise.
5962         (regfree): Don't use free_charset() in case of non-i18n envs.
5963         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5964         re_token_type_t in case of non-i18n envs.
5965         Don't define re_charset_t in case of non-i18n envs.
5966         Change the type of wcs of re_string_t from wchar_t to wint_t,
5967         since we store also WEOF.
5968         * posix/regex_internal.c: (re_string_realloc_buffers): Change
5969         the type of wcs of re_string_t from wchar_t to wint_t.
5970         (re_string_reconstruct): Likewise.
5971         (create_ci_newstate): Don't use i18n related code in case of
5972         non-i18n envs.
5973         (create_cd_newstate): Likewise.
5974
5975 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
5976
5977         * iconv/loop.c: Fix typo.
5978
5979 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5980
5981         * inet/ether_line.c (ether_line): Fix a typo causing only
5982         lower 4 bits of each ethernet address byte being assigned.
5983         Don't modify what line points to.
5984         * inet/tst-ether_aton.c (main): Add ether_line tests.
5985
5986 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
5987
5988         * manual/filesys.texi: Don't make readlink example leak memory
5989         when readlink fails.
5990
5991 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
5992
5993         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
5994         some more security checks.
5995
5996 2002-05-17  David S. Miller  <davem@redhat.com>
5997
5998         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5999
6000 2002-05-16  David S. Miller  <davem@redhat.com>
6001
6002         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
6003         (elf_machine_dynamic): Use it to force PIC register to be loaded.
6004         (elf_machine_load_address): Likewise.
6005         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
6006
6007         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
6008         is unaligned, do not forget to fully initialize %g1 magic value.
6009
6010         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
6011         register definitions and provide 32-bit variants of structures
6012         during 64-bit builds.
6013
6014         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
6015         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
6016         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
6017         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
6018         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
6019         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
6020         Do not clear implicit one bit here, it must be done post-rounding.
6021         Only pad to the left using left shift if value uses less than the
6022         available fractional bits.
6023
6024 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6025
6026         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
6027         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
6028         (shared-only-routines): Likewise.
6029         * sysdeps/powerpc/libgcc-compat.c: New file.
6030         * sysdeps/wordsize-32/cmpdi2.c: Removed.
6031         * sysdeps/wordsize-32/fixdfdi.c: Removed.
6032         * sysdeps/wordsize-32/fixsfdi.c: Removed.
6033         * sysdeps/wordsize-32/shdi3.c: Removed.
6034
6035 2002-05-16  Bruno Haible  <bruno@clisp.org>
6036
6037         * MakeTAGS (libc.pot): Don't sort the output.
6038         * po/header.pot: Update to match xgettext 0.11 output.
6039
6040 2002-05-16  Bruno Haible  <bruno@clisp.org>
6041
6042         * MakeTAGS (subdirs): Remove duplicates.
6043
6044 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6045
6046         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
6047         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
6048         alias.
6049
6050 2002-05-19  Andreas Jaeger  <aj@suse.de>
6051
6052         * sysdeps/unix/sysv/linux/configure.in: Warn against an
6053         installation in /usr/local.
6054
6055 2002-05-16  Bruno Haible  <bruno@clisp.org>
6056
6057         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
6058         string as argument of #error.
6059
6060 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
6061
6062         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
6063         don't define static.  Remove old __realpath function.  TC1 of
6064         POSIX 2001 will allow the second parameter to be NULL.
6065         * stdlib/test-canon.c: Comment out test for NULL as second
6066         parameter of realpath.
6067
6068         * time/offtime.c (__offtime): Set errno if overflow is detected.
6069
6070         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
6071         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
6072         dl-brk and dl-sbrk.
6073
6074         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
6075         (fdimf): Likewise.
6076
6077 2002-05-15  Roland McGrath  <roland@frob.com>
6078
6079         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
6080
6081 2002-05-12  Bruno Haible  <bruno@clisp.org>
6082
6083         * iconvdata/testdata/EUC-JISX0213: New file.
6084         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
6085         * iconvdata/testdata/SHIFT_JISX0213: New file.
6086         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
6087         * iconvdata/testdata/ISO-2022-JP-3: New file.
6088         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
6089         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
6090         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
6091         contains comments indicating precomposed characters.
6092
6093 2002-04-21  Bruno Haible  <bruno@clisp.org>
6094
6095         * iconvdata/iso-2022-jp-3.c: New file.
6096         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
6097         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
6098         (LDFLAGS-ISO-2022-JP-3.so): New variable.
6099         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
6100         (distribute): Add iso-2022-jp-3.c.
6101
6102 2002-05-12  Bruno Haible  <bruno@clisp.org>
6103
6104         * iconvdata/tst-table-to.c (main): Restore handling of
6105         transliterations, broken by last patch.
6106
6107 2002-05-12  Bruno Haible  <bruno@clisp.org>
6108
6109         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
6110
6111 2002-05-12  Bruno Haible  <bruno@clisp.org>
6112
6113         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
6114         when there is not enough room in the output buffer.
6115         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6116
6117 2002-04-20  Bruno Haible  <bruno@clisp.org>
6118
6119         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6120         macros.
6121         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6122         Also make this macro work if FROM_DIRECTION evaluates to 0.
6123         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6124         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6125         of consume_incomplete.
6126         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6127         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6128         4, not 8.
6129         * iconvdata/cp1258.c: Likewise.
6130         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6131         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6132         not 2.
6133         * iconvdata/ibm933.c: Likewise.
6134         * iconvdata/ibm935.c: Likewise.
6135         * iconvdata/ibm937.c: Likewise.
6136         * iconvdata/ibm939.c: Likewise.
6137         * iconvdata/iso-2022-cn.c: Define
6138         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6139         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6140         * iconvdata/iso-2022-cn-ext.c: Likewise.
6141         * iconvdata/iso-2022-jp.c: Define
6142         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6143         {MIN,MAX}_NEEDED_{FROM,TO}.
6144         * iconvdata/tcvn5712-1.c: Define
6145         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6146         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6147         * iconvdata/euc-jisx0213.c: Define
6148         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6149         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6150         * iconvdata/shift_jisx0213.c: Likewise.
6151
6152 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6153
6154         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6155         shdi3, fixdfdi, fixsfdi in csu dir.
6156         (shared-only-routines): Likewise.
6157         * sysdeps/wordsize-32/cmpdi2.c: New file.
6158         * sysdeps/wordsize-32/shdi3.c: New file.
6159         * sysdeps/wordsize-32/fixdfdi.c: New file.
6160         * sysdeps/wordsize-32/fixsfdi.c: New file.
6161         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6162         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6163         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6164
6165         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6166         Only use va_arg if the argument will be used [PR libc/3259].
6167
6168 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
6169
6170         * catgets/catgets.c (catopen): Free buffer if internal catalog
6171         open fails.
6172
6173 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6174
6175         * debug/xtrace.sh: Make more robust.  For realtime tracking use
6176         non-buffering methods.
6177         * debug/pcprofiledump.c: Implement -u option.
6178         Patch by Roger Luethi <rl@hellgate.ch>.
6179
6180 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
6181
6182         * include/netinet/in.h (bindresvport_internal): Add prototype.
6183         * include/rpc/auth.h  (authunix_create_internal,
6184         authunix_create_default_internal, authnone_create_internal,
6185         authdes_pk_create_internal): Add prototypes.
6186         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6187         clntudp_create_internal, clntudp_bufcreate_internal,
6188         clntunix_create_internal): Add prototypes.
6189         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6190         svc_getreq_internal, svc_getreq_common_internal,
6191         svc_getreqset_internal, svc_getreq_poll_internal,
6192         svc_register_internal, svc_unregister_internal,
6193         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6194         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6195         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6196         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6197         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6198         * inet/rcmd.c (rcmd_af): Use __listen.
6199         (rresvport_af): Use __bind.
6200         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6201         authunix_create, authunix_create_default, authnone_create,
6202         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6203         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6204         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6205         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6206         _authenticate, add INTDEF after such function definitions.
6207         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6208         __setsockopt, __getsockname instead of non-__ variants.
6209         * sunrpc/pmap_rmt.c: Likewise.
6210         * sunrpc/rtime.c: Likewise.
6211         * sunrpc/svc_udp.c: Likewise.
6212         * sunrpc/clnt_unix.c: Likewise.
6213         * sunrpc/svc_unix.c: Likewise.
6214         * sunrpc/bindrsvprt.c: Likewise.
6215         * sunrpc/svc_tcp.c: Likewise.
6216         * sunrpc/auth_none.c: Likewise.
6217         * sunrpc/clnt_raw.c: Likewise.
6218         * sunrpc/clnt_tcp.c: Likewise.
6219         * sunrpc/auth_unix.c: Likewise.
6220         * sunrpc/key_call.c: Likewise.
6221         * sunrpc/clnt_gen.c: Likewise.
6222         * sunrpc/pm_getmaps.c: Likewise.
6223         * sunrpc/clnt_simp.c: Likewise.
6224         * sunrpc/pmap_clnt.c: Likewise.
6225         * sunrpc/svc_run.c: Likewise.
6226         * sunrpc/svc.c: Likewise.
6227         * sunrpc/svc_simple.c: Likewise.
6228         * sunrpc/pm_getport.c: Likewise.
6229         * sunrpc/auth_des.c: Likewise.
6230         * sunrpc/svc_auth.c: Likewise.
6231         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6232         __register_frame_info_table_bases, __deregister_frame_info_bases):
6233         Add INTDEF.
6234         (__register_frame_info_bases_internal,
6235         __register_frame_info_table_bases_internal,
6236         __deregister_frame_info_bases_internal): Add prototypes.
6237         (__register_frame_info, __register_frame): Use INTUSE in call to
6238         __register_frame_info_bases.
6239         (__register_frame_info_table): Similarly.
6240         (__deregister_frame_info, __deregister_frame): Similarly.
6241         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6242         sendto as weak alias.
6243         * sysdeps/mach/hurd/sendto.c: Likewise.
6244         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6245         recvfrom as weak alias.
6246         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6247         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6248         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6249         recvmsg as weak alias.
6250         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6251         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6252         sendmsg as weak alias.
6253         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6254         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6255         setsockopt, add setsockopt as weak alias.
6256         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6257         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6258         weak alias.
6259         * sysdeps/mach/hurd/bind.c: Likewise.
6260         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6261         as weak alias.
6262         * sysdeps/mach/hurd/listen.c: Likewise.
6263         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6264         getsockname, add getsockname as weak alias.
6265         * sysdeps/mach/hurd/getsockname.c: Likewise.
6266         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6267         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6268         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6269         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6270         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6271         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6272         Add aliases.
6273         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6274         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6275         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6276         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6277         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6278         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6279         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6280         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6281         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6282         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6283         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6284         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6285
6286 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6287
6288         * locale/programs/localedef.h (show_archive_content): Add verbose
6289         argument.
6290         * locale/programs/localedef.c (main): Adjust caller.
6291         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6292         types.
6293         (nameentcmp, dataentcmp): New functions.
6294         (xstrcmp): Remove.
6295         (show_archive_content): Print verbose listing with --list-archive -v.
6296
6297 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6298
6299         * locale/programs/locarchive.c (open_archive): Take extra argument
6300         readonly.  If true open file with O_RDONLY and don't create the
6301         archive if it doesn't exist.
6302         Adapt all callers.
6303         (close_archive): Don't do anything if fd element is -1.
6304         * locale/programs/localedef.h (open_archive): Adjust prototype.
6305         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6306         call.
6307
6308         * malloc/malloc.c (__posix_memalign): Correct check for size of
6309         alignment value [PR libc/3444].
6310
6311         * include/stdio.h: Remove references to old stdio implementation.
6312
6313         * libio/Makefile (bug-ungetwc2-ENV): Define.
6314
6315 2002-05-13  Roland McGrath  <roland@frob.com>
6316
6317         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6318
6319         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6320
6321 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6322
6323         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6324         Allocate three, not two, more than LEN when appending '/.'.
6325         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6326         if NAME ends with '/.' if it is shorter than 2 chars.
6327
6328 2002-05-12  Roland McGrath  <roland@frob.com>
6329
6330         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6331         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6332
6333         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6334         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6335
6336 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6337
6338         * sysdeps/ia64/Makefile: Remove extra endif.
6339         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6340
6341 2002-05-10  Andreas Schwab  <schwab@suse.de>
6342
6343         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6344
6345 2002-05-09  Andreas Jaeger  <aj@suse.de>
6346
6347         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6348         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6349         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6350
6351         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6352         * sysdeps/wordsize-64/glob.c: ...here.
6353         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6354         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6355         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6356
6357 2002-05-08  Roland McGrath  <roland@frob.com>
6358
6359         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6360         O_NOTRANS flag in "." lookup.
6361
6362 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6363
6364         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6365
6366 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6367
6368         * locale/duplocale.c (__duplocale): Update special members only
6369         when allocation succeeded.
6370
6371 2002-05-03  Roland McGrath  <roland@frob.com>
6372
6373         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6374         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6375
6376 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6377
6378         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6379         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6380         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6381         * sysdeps/ia64/ia64libgcc.S: New file.
6382
6383 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6384
6385         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6386
6387         * malloc/memusage.c: Distinguish anonymous mmap.
6388
6389 2002-05-01  Roland McGrath  <roland@frob.com>
6390
6391         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6392         and use INTDEF on it.
6393         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6394
6395         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6396
6397         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6398
6399 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6400
6401         * malloc/memusage.c: Add support for tracking mmap & friends.
6402         * malloc/memusage.sh: Implement -m/--mmap option.
6403
6404 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6405
6406         * locale/programs/locarchive.c (create_archive): Add archivefname
6407         argument, create fname from it.
6408         (enlarge_archive): Honour output_prefix.
6409         (open_archive): Likewise.
6410
6411 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6412
6413         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6414         too many stpcpy macros.
6415
6416 2002-04-26  Bruno Haible  <bruno@clisp.org>
6417
6418         * locale/programs/ld-collate.c (collate_read): Cast first argument
6419         for "%.*s" to int.
6420
6421 2002-04-26  Bruno Haible  <bruno@clisp.org>
6422
6423         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6424         __dcngettext_internal): New declarations.
6425         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6426         attribute declarations.
6427
6428 2002-04-30  Roland McGrath  <roland@frob.com>
6429
6430         Removed old GNU stdio implementation; GNU libio is now the only option.
6431         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6432         Define USE_IN_LIBIO unconditionally.
6433         * configure: Regenerated.
6434         * Makeconfig (stdio): Set to libio by default.
6435         * config.make.in (stdio): Variable removed.
6436         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6437         * sysdeps/unix/sysv/linux/configure: Regenerated.
6438         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6439         * sysdeps/mach/hurd/configure: Regenerated.
6440         * stdio/.cvsignore: File removed.
6441         * stdio/Makefile: File removed.
6442         * stdio/Versions: File removed.
6443         * stdio/__fbufsize.c: File removed.
6444         * stdio/__flbf.c: File removed.
6445         * stdio/__fpending.c: File removed.
6446         * stdio/__fpurge.c: File removed.
6447         * stdio/__freadable.c: File removed.
6448         * stdio/__freading.c: File removed.
6449         * stdio/__fsetlocking.c: File removed.
6450         * stdio/__fwritable.c: File removed.
6451         * stdio/__fwriting.c: File removed.
6452         * stdio/clearerr.c: File removed.
6453         * stdio/fclose.c: File removed.
6454         * stdio/fcloseall.c: File removed.
6455         * stdio/feof.c: File removed.
6456         * stdio/ferror.c: File removed.
6457         * stdio/fflush.c: File removed.
6458         * stdio/fgetc.c: File removed.
6459         * stdio/fgetpos.c: File removed.
6460         * stdio/fgets.c: File removed.
6461         * stdio/fileno.c: File removed.
6462         * stdio/fmemopen.c: File removed.
6463         * stdio/fopen.c: File removed.
6464         * stdio/fopncook.c: File removed.
6465         * stdio/fputc.c: File removed.
6466         * stdio/fputs.c: File removed.
6467         * stdio/fread.c: File removed.
6468         * stdio/freopen.c: File removed.
6469         * stdio/fseek.c: File removed.
6470         * stdio/fsetpos.c: File removed.
6471         * stdio/ftell.c: File removed.
6472         * stdio/fwrite.c: File removed.
6473         * stdio/getc.c: File removed.
6474         * stdio/getchar.c: File removed.
6475         * stdio/getdelim.c: File removed.
6476         * stdio/gets.c: File removed.
6477         * stdio/glue.c: File removed.
6478         * stdio/internals.c: File removed.
6479         * stdio/linewrap.c: File removed.
6480         * stdio/linewrap.h: File removed.
6481         * stdio/memstream.c: File removed.
6482         * stdio/newstream.c: File removed.
6483         * stdio/obstream.c: File removed.
6484         * stdio/putc.c: File removed.
6485         * stdio/putchar.c: File removed.
6486         * stdio/puts.c: File removed.
6487         * stdio/rewind.c: File removed.
6488         * stdio/setbuf.c: File removed.
6489         * stdio/setbuffer.c: File removed.
6490         * stdio/setlinebuf.c: File removed.
6491         * stdio/setvbuf.c: File removed.
6492         * stdio/stdio.h: File removed.
6493         * stdio/ungetc.c: File removed.
6494         * stdio/vasprintf.c: File removed.
6495         * stdio/vscanf.c: File removed.
6496         * stdio/vsnprintf.c: File removed.
6497         * stdio/vsprintf.c: File removed.
6498         * stdio/vsscanf.c: File removed.
6499         * sysdeps/generic/defs.c: File removed.
6500         * sysdeps/generic/fdopen.c: File removed.
6501         * sysdeps/generic/pipestream.c: File removed.
6502         * sysdeps/generic/stdio_init.c: File removed.
6503         * sysdeps/generic/sysd-stdio.c: File removed.
6504         * sysdeps/generic/vdprintf.c: File removed.
6505         * sysdeps/mach/hurd/defs.c: File removed.
6506         * sysdeps/mach/hurd/fdopen.c: File removed.
6507         * sysdeps/mach/hurd/pipestream.c: File removed.
6508         * sysdeps/mach/hurd/stdio_init.c: File removed.
6509         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6510         * sysdeps/mach/hurd/vdprintf.c: File removed.
6511         * sysdeps/posix/defs.c: File removed.
6512         * sysdeps/posix/fdopen.c: File removed.
6513         * sysdeps/posix/pipestream.c: File removed.
6514         * sysdeps/posix/stdio_init.c: File removed.
6515         * sysdeps/posix/vdprintf.c: File removed.
6516         * sysdeps/unix/pipestream.c: File removed.
6517         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6518         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6519         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6520
6521 2002-04-29  Roland McGrath  <roland@frob.com>
6522
6523         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6524
6525 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6526
6527         * sysdeps/generic/tls.h: Describe what must be defined.
6528
6529         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6530         glob_in_dir [PR libc/3385].
6531         * posix/globtest.sh: Add test case.
6532
6533         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6534         //TRANSLIT twice.
6535
6536 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6537
6538         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6539         _internal symbol handling.
6540         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6541
6542 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6543
6544         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6545         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6546
6547 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6548
6549         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6550         not _LIBC and RE_ENABLE_I18N.
6551         (build_range_exp): Implement for not _LIBC.
6552         (build_collating_symbol): Likewise.
6553         (parse_bracket_exp): Unify redundant error handlings.
6554         Don't erase mbcset for non matching list in multibyte envs.
6555         (build_word_op): Add '_' to matching list for \w operator.
6556         * posix/regex_internal.c (re_string_construct): Invoke
6557         build_upper_buffer in case of not RE_ENABLE_I18N.
6558         (re_string_reconstruct): Don't touch cur_state in case of not
6559         RE_ENABLE_I18N.
6560         * posix/regex_internal.h (attribute_hidden): New macro in case of
6561         not _LIBC.
6562         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6563         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6564         RE_ENABLE_I18N.
6565         (transit_state_mb): Likewise.
6566         (check_node_accept_bytes): Implement the code evaluating range
6567         expression in case of not _LIBC.
6568         (find_collation_sequence_value): Hide in case of not _LIBC.
6569
6570 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6571
6572         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6573         i386/semctl.c.
6574         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6575         be used.
6576
6577 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6578
6579         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6580
6581         * sysdeps/ia64/strncpy.S: Fix recovery code.
6582         Patch by David Mosberger <davidm@hpl.hp.com>.
6583
6584 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6585
6586         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6587         GLIBC_2.2.6.
6588
6589 2002-04-14  Bruno Haible  <bruno@clisp.org>
6590
6591         * posix/regex.c (re_max_failures): Add back symbol for binary
6592         compatibility.
6593
6594 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6595
6596         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6597         of buffer building functions.
6598         * posix/regex_internal.c (re_string_allocate): New function.
6599         (re_string_realloc_buffers): New function.
6600         (re_string_skip_chars): New function.
6601         (re_string_reconstruct): New function.
6602         (re_string_construct): Adapt it to new interface of buffer building
6603         functions.
6604         (re_string_construct_common): Likewise.
6605         (build_wcs_buffer): Likewise.
6606         (build_wcs_upper_buffer): Likewise.
6607         (build_upper_buffer): Likewise.
6608         (re_string_translate_buffer): Likewise.
6609         (re_string_context_at): Adapt it to variable length buffers.
6610         * posix/regex_internal.h (re_string_t): Add new fields to handle
6611         variable length buffers.
6612         (re_match_context_t): Likewise.
6613         * posix/regexec.c (re_search_internal): Adapt it to new interface
6614         of re_string_t and re_match_context_t.
6615         (acquire_init_state_context): Likewise.
6616         (check_matching): Likewise.
6617         (check_halt_state_context): Likewise.
6618         (proceed_next_node): Likewise.
6619         (set_regs): Likewise.
6620         (sift_states_backward): Likewise.
6621         (clean_state_log_if_need): Likewise.
6622         (sift_states_iter_mb): Likewise.
6623         (sift_states_iter_bkref): Likewise.
6624         (add_epsilon_backreference): Likewise.
6625         (transit_state): Likewise.
6626         (transit_state_sb): Likewise.
6627         (transit_state_mb): Likewise.
6628         (transit_state_bkref): Likewise.
6629         (transit_state_bkref_loop): Likewise.
6630         (check_node_accept): Likewise.
6631         (match_ctx_init): Likewise.
6632         (extend_buffers): New function.
6633
6634 2002-04-21  Bruno Haible  <bruno@clisp.org>
6635
6636         * iconvdata/tst-table.sh: For the second check, use the truncated
6637         GB18030 charmap table, like for the first check.
6638
6639 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6640
6641         * elf/dl-load.c (open_verify): Correct __lseek parameters.
6642         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6643
6644 2002-04-23  H.J. Lu  <hjl@gnu.org>
6645
6646         * include/math.h (isfinite): Fix a typo.
6647
6648 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6649
6650         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6651         which is created by the test suite.
6652
6653 2002-04-20  Bruno Haible  <bruno@clisp.org>
6654
6655         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6656         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6657
6658 2002-04-20  Bruno Haible  <bruno@clisp.org>
6659
6660         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6661         to avoid gcc warning.
6662
6663 2002-04-20  Bruno Haible  <bruno@clisp.org>
6664
6665         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6666         of data->__statep->__count.
6667
6668 2002-04-20  Bruno Haible  <bruno@clisp.org>
6669
6670         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6671         tag characters.
6672         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6673
6674 2002-04-24  Roland McGrath  <roland@frob.com>
6675
6676         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6677         use END macro instead of our own .end directive.
6678         Use `callsys' insn mnemonic instead of `call_pal'.
6679
6680         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6681
6682         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6683         macro; we need this for Hurd.
6684
6685         Log entry was missing for 2002/03/24 commit of rev 1.8,
6686         goes with 2002-03-17 changes.
6687         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6688         (sysdep_routines): Append ioperm here.
6689         (sysdep_headers): Append sys/io.h here.
6690
6691 2002-04-23  Roland McGrath  <roland@frob.com>
6692
6693         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6694         * sysdeps/mach/hurd/sendto.c: Likewise.
6695         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6696         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6697         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6698
6699 2002-04-22  Roland McGrath  <roland@frob.com>
6700
6701         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6702         failure from i386_io_perm_* RPCs to ENOSYS.
6703
6704 2002-04-22  Andreas Jaeger  <aj@suse.de>
6705
6706         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6707
6708         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6709
6710         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6711         register instead of destroying %rbx.
6712
6713 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
6714
6715         * string/string.h: Declare strerror_r also for XPG6.
6716
6717 2002-04-19  Roland McGrath  <roland@frob.com>
6718
6719         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6720
6721 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
6722
6723         * Makefile: Add handling of xtests and xcheck targets.
6724         * MakeTAGS: Likewise.
6725         * Makeconfig: Likewise.
6726         * Makerules: Likewise.
6727         * Rules: Likewise.
6728         * manual/Makefile: Likewise.
6729         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6730         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
6731
6732 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
6733
6734         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6735         authnone_private_s.
6736         * sunrpc/auth_none.c: Include bits/libc-lock.h.
6737         Delete #ifdef _RPC_THREAD_SAFE_ block.
6738         (authnone_private): Make a struct, not a pointer to struct.
6739         (authnone_private_guard): New once-control variable.
6740         (authnone_create_once): New function, split out of
6741         authnone_create.  No need to allocate memory.
6742         (authnone_create): Just call authnone_create_once via
6743         __libc_once, then return &authnone_private->no_client.
6744         (authnone_marshal): Access private data via CLIENT argument,
6745         not authnone_private pointer.
6746         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6747         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6748         authnone_private_s.
6749
6750 2002-04-12  H.J. Lu  <hjl@gnu.org>
6751
6752         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6753
6754 2002-04-18  Bruno Haible  <bruno@clisp.org>
6755
6756         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6757         FROM_DIRECTION): Make the FROM direction stateless.
6758         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6759         FROM_DIRECTION): Likewise.
6760
6761 2002-04-15  Bruno Haible  <bruno@clisp.org>
6762
6763         * iconvdata/JISX0213.TXT: New file.
6764         * iconvdata/jisx0213.h: New file.
6765         * iconvdata/jisx0213.c: New file.
6766         * iconvdata/euc-jisx0213.c: New file.
6767         * iconvdata/shift_jisx0213.c: New file.
6768         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6769         * iconvdata/EUC-JISX0213.precomposed: New file.
6770         * iconvdata/SHIFT_JISX0213.precomposed: New file.
6771         * iconvdata/SHIFT_JISX0213.irreversible: New file.
6772         * iconvdata/tst-table-to.c (main): Make it work for encodings for
6773         which the "to" direction is stateful.
6774         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6775         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6776         SHIFT_JISX0213.
6777         (libJISX0213-routines): New variable.
6778         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6779         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6780         (LDFLAGS-libJISX0213.so): New variable.
6781         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6782         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6783         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6784
6785 2002-04-15  Bruno Haible  <bruno@clisp.org>
6786
6787         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6788         uint32_t.  Update to Unicode 3.2.
6789         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6790         (BODY for TO_LOOP): Handle the ASCII range specially.
6791         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6792         * iconvdata/testdata/BIG5HKSCS: Remove a character.
6793         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6794
6795 2002-04-15  Bruno Haible  <bruno@clisp.org>
6796
6797         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6798         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6799
6800 2002-04-15  Bruno Haible  <bruno@clisp.org>
6801
6802         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6803         (ucs4_to_cns11643): Update.
6804         * iconvdata/cns11643.c: Update to Unicode 3.2.
6805         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6806         __cns11643_from_ucs4p2_tab): Regenerated.
6807         (__cns11643_from_ucs4p2c_tab): New array.
6808         * iconvdata/cvs11643l1.c: Update comments.
6809         * iconvdata/EUC-TW.irreversible: Remove two entries.
6810
6811 2002-04-15  Bruno Haible  <bruno@clisp.org>
6812
6813         * locale/C-translit.h.in: Update to Unicode 3.2.
6814         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6815         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6816
6817 2002-04-15  Bruno Haible  <bruno@clisp.org>
6818
6819         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6820         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6821
6822 2002-04-15  Bruno Haible  <bruno@clisp.org>
6823
6824         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6825         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6826         always one byte, not 0 bytes in some cases and 2 bytes in others.
6827
6828         * iconvdata/tst-table-from.c (main): Correct the usage message.
6829
6830 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6831
6832         * posix/regcomp.c (parse_expression): Fix incorrect error code.
6833         (parse_dup_op): Fix error handling like "a{}".
6834         (parse_bracket_exp): Add error handling.
6835         (fetch_number): Add error handling for "a{<very_large_number>}".
6836
6837 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6838
6839         * posix/regcomp.c (parse_bracket_symbol): Add error handling
6840         in case that the symbol name is too long.
6841         (build_charclass): Handle [:lower:]/[:uppper:] correctly
6842         in case of REG_ICASE.
6843
6844 2002-04-19  Andreas Jaeger  <aj@suse.de>
6845
6846         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6847         <hartvige@mips.com>.
6848
6849 2002-04-15  H.J. Lu  <hjl@gnu.org>
6850
6851         * include/math.h (__finitel_internal): Declare only if
6852         __NO_LONG_DOUBLE_MATH is not defined.
6853         (__isinfl_internal): Likewise.
6854         (__isnanl_internal): Likewise.
6855
6856         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6857         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6858         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6859         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6860         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6861         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6862         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6863
6864         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6865         __fcntl_internal.
6866
6867         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6868         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6869
6870 2002-04-15  Bruno Haible  <bruno@clisp.org>
6871
6872         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6873         (BODY for TO_LOOP): Likewise.
6874         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6875         * iconvdata/tst-table.sh: Add support for encodings which contain
6876         precomposed Unicode characters, known to the iconv converter in both
6877         directions but not listed in the charmap.
6878         * iconvdata/IBM856.irreversible: New file.
6879         * iconvdata/IBM922.irreversible: New file.
6880         * iconvdata/IBM1132.irreversible: New file.
6881         * iconvdata/IBM1133.irreversible: New file.
6882         * iconvdata/IBM1160.irreversible: New file.
6883         * iconvdata/IBM1161.irreversible: New file.
6884         * iconvdata/IBM1163.irreversible: New file.
6885         * iconvdata/IBM1164.irreversible: New file.
6886         * iconvdata/ARMSCII-8.irreversible: New file.
6887         * iconvdata/TCVN5712-1.precomposed: New file.
6888         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6889         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6890         ARMSCII-8, TCVN5712-1.
6891         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6892         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6893         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6894         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6895
6896 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6897
6898         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
6899         for EVENING69.  Include offsets in TZ environment variable.
6900
6901 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
6902
6903         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6904         avoid compiler warnings.
6905
6906         * locale/programs/localedef.c (main): Always call
6907         construct_output_path.
6908
6909         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6910
6911         * locale/programs/locfile.c (to_archive): New variable.  To collect
6912         data which has to be added to the locale archive.
6913         (write_all_categories): Take new third parameter with locale name.
6914         Unless no_archive flag set add new locale data to the archive
6915         (write_locale_data): Unless no-archive flag set store generated data
6916         in to_archive data structure instead of generation output file.
6917         Add new parameter with locale category index.
6918         * locale/programs/locfile.h: Add new parameters in declaractions of
6919         write_all_categories and write_locale_data.
6920         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6921         --add-to-archive, and --delete-from-archive options.  Pass extra
6922         parameter to write_all_categories.
6923         * locale/programs/localedef.h: Add prototypes for functions in
6924         locarchive.c.
6925         * locale/locarchive.h: New file.
6926         * locale/programs/locarchive.c: New file.
6927         * locale/Makefile (distribute): Add programs/locarchive.c and
6928         locarchive.h.
6929         (localedef-modules): Add md5 and locarchive.
6930         Add vpath to crypt subdir for md5.c.
6931
6932         * locale/programs/ld-address.c: Pass locale category ID as new second
6933         parameter to write_locale_data.
6934         * locale/programs/ld-collate.c: Likewise.
6935         * locale/programs/ld-ctype.c: Likewise.
6936         * locale/programs/ld-identification.c: Likewise.
6937         * locale/programs/ld-measurement.c: Likewise.
6938         * locale/programs/ld-messages.c: Likewise.
6939         * locale/programs/ld-monetary.c: Likewise.
6940         * locale/programs/ld-name.c: Likewise.
6941         * locale/programs/ld-numeric.c: Likewise.
6942         * locale/programs/ld-paper.c: Likewise.
6943         * locale/programs/ld-telephone.c: Likewise.
6944         * locale/programs/ld-time.c: Likewise.
6945
6946         * locale/simple-hash.c: Move compute_hashval function from here...
6947         * locale/hashval.h: ...to here.  New file.
6948         * locale/simple-hash.h: Add prototype for compute_hashval.
6949
6950         * include/libintl.h: Minor cleanups.
6951
6952 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
6953
6954         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6955
6956 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
6957
6958         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
6959
6960 2002-04-14  Bruno Haible  <bruno@clisp.org>
6961
6962         * locale/programs/charmap.c (charmap_read): Don't access result if
6963         result == NULL.
6964
6965 2002-02-17  Andreas Schwab  <schwab@suse.de>
6966
6967         * elf/reldep7.c: New file.
6968         * elf/reldep7mod1.c: New file.
6969         * elf/reldep7mod2.c: New file.
6970         * elf/Makefile: Add rules to build and run reldep7.
6971
6972 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
6973
6974         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6975         the end of the function.  Pass original flags to recursive call if
6976         add_dependency failed.
6977         (_dl_lookup_versioned_symbol): Likewise.
6978
6979 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
6980
6981         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6982         early, but check whether it overflowed afterwards.
6983         * time/tst-mktime.c (main): Add new tests.
6984
6985 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
6986
6987         * debug/xtrace.sh: Fix program name in help message.
6988         Patch by Roger Luethi <rl@hellgate.ch>.
6989
6990         * include/sys/stat.h: Add prototypes for __lxstat_internal and
6991         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
6992         NOT_IN_libc.
6993         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6994         * sysdeps/mach/hurd/lxstat.c: Likewise.
6995         * sysdeps/unix/common/lxstat.c: Likewise.
6996         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6997         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6998         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6999         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7000         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
7001         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
7002         * sysdeps/mach/hurd/lxstat64.c: Likewise.
7003         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
7004         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
7005
7006         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
7007         prototypes.  Add __mbrlen and __mbrtowc macros.
7008         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
7009         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
7010
7011         * include/unistd.h: Add prototype for __write_internal and add
7012         __libc_write macro is SHARED.
7013         * sysdeps/generic/write.c: Use INTDEF for __write.
7014         * sysdeps/mach/hurd/write.c: Likewise.
7015         * sysdeps/unix/sysv/aix/write.c: Likewise.
7016         * sysdeps/unix/syscalls.list: Add __libc_write alias.
7017
7018         * assert/assert.c: Replace STR_N_SIZE with something usable in
7019         macro arguments.
7020         * assert/assert-perr.c: Likewise.
7021
7022         * include/sys/socket.h: Declare __libc_sa_len_internal and define
7023         SA_LEN macro to use it if not NOT_IN_libc.
7024         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
7025
7026         * include/fcntl.h: Declare __open_internal and define __open and
7027         __libc_open macros if not NOT_IN_libc.
7028         * sysdeps/generic/open.c: Use INTDEF for __open.
7029         * sysdeps/mach/hurd/open.c: Likewise.
7030         * sysdeps/unix/sysv/aix/open.c: Likewise.
7031         * sysdeps/unix/syscalls.list: Add __open_internal alias.
7032
7033         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
7034         has correct number.
7035
7036         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
7037         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
7038         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7039         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7040
7041         * include/wctype.h: Declare __iswalpha_l_internal,
7042         __iswdigit_l_internal, __iswspace_l_internal,
7043         __iswxdigit_l_internal, and __iswctype_internal.  Define
7044         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
7045         __iswxdigit_l macros if not NOT_IN_libc.
7046         * wctype/iswctype.c: Use INTDEF for __iswctype.
7047         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
7048
7049         * include/math.h: Declare __isinf_internal, __isinfl_internal,
7050         __isnan_internal, and __isnanl_internal.
7051         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
7052         __isnan, and __isnanl.
7053         * stdio-common/printf_size.c: Likewise.
7054         * sysdeps/generic/printf_fphex.c: Likewise.
7055         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
7056         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7057         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
7058         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
7059         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
7060         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7061         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7062         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7063         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7064         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7065         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7066         * sysdeps/m68k/s_isinfl.c: Likewise.
7067         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
7068         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7069
7070         * include/sys/time.h: Declare __gettimeofday_internal and define
7071         __gettimeofday macro if not NOT_IN_libc.
7072         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
7073         * sysdeps/mach/gettimeofday.c: Likewise.
7074         * sysdeps/posix/gettimeofday.c: Likewise.
7075         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
7076         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
7077         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7078         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
7079
7080         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
7081         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
7082         Remove __lstat and __fstat inline functions.
7083         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
7084         * sysdeps/mach/hurd/fxstat.c: Likewise.
7085         * sysdeps/unix/fxstat.c: Likewise.
7086         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
7087         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
7088         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7089         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
7090         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
7091         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
7092         * sysdeps/mach/hurd/fxstat64.c: Likewise.
7093         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
7094         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7095
7096         * include/unistd.h: Declare __getpid_internal and define
7097         __getpid macro if not NOT_IN_libc.
7098         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
7099         * sysdeps/generic/getpid.c: Likewise.
7100         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
7101         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
7102
7103         * include/unistd.h: Declare __getpgid_internal and define
7104         __getpgid macro if not NOT_IN_libc.
7105         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
7106         * sysdeps/mach/hurd/getpgid.c: Likewise.
7107         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
7108         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
7109         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
7110         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
7111
7112         * include/unistd.h: Declare __getpagesize_internal and define
7113         __getpagesize macro if not NOT_IN_libc.
7114         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
7115         __getpagesize.
7116         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
7117         * sysdeps/mach/getpagesize.c: Likewise.
7118         * sysdeps/posix/getpagesize.c: Likewise.
7119         * sysdeps/unix/getpagesize.c: Likewise.
7120         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7121         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7122         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7123         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7124
7125 2002-04-13  Andreas Jaeger  <aj@suse.de>
7126
7127         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7128         as clobber to reduce register pressure.
7129         (__strpbrk_cg): Likewise.
7130         (__mempcpy_by4): Likewise.
7131         (__strstr_cg): Likewise.
7132         Add prototype for __memrchr.
7133
7134 2002-04-13  Andreas Schwab  <schwab@suse.de>
7135
7136         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7137         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7138         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7139
7140 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
7141
7142         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
7143         check whether the caller prefers getting the most recent version of
7144         a symbol of the earliest version.
7145         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
7146         _dl_do_lookup to also take the new parameter and pass it on.
7147         Change 'explicit' parameter of _dl_lookup_symbol and
7148         _dl_lookup_versioned_symbol to flags.  Adjust tests.
7149         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7150         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7151         _dl_lookup_versioned_symbol.
7152         * elf/dl-reloc.c: Likewise.
7153         * elf/dl-runtime.c: Likewise.
7154         * elf/dl-sym.c: Likewise.
7155         * sysdeps/mips/dl-machine.h: Likewise.
7156
7157 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7158
7159         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7160         in a token.
7161         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7162
7163 2002-04-10  Andreas Jaeger  <aj@suse.de>
7164
7165         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7166
7167         * include/argz.h: Remove extra char from last patch.
7168
7169 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
7170
7171         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7172         * sysdeps/unix/sysv/aix/chown.c: Likewise.
7173         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7174         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7175         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7176         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7177         __chown_internal.
7178         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7179
7180         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7181         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7182         * intl/ngettext.c: Likewise.
7183
7184         * include/sys/socket.h: Declare __connect_internal and define
7185         __connect macro if not NOT_IN_libc.
7186         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7187         * sysdeps/unix/sysv/aix/connect.c: Likewise.
7188         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7189
7190         * include/unistd.h: Declare __close_internal and define __close macro
7191         if not NOT_IN_libc.
7192         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7193         WJUMP3): Add extra parenthesis to avoid expanding element names with
7194         macors like __close.
7195         * sysdeps/unix/syscalls.list: Add __close_internal alias.
7196
7197         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7198         if not NOT_IN_libc.
7199         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7200         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7201         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7202
7203         * include/unistd.h: Declare __fork_internal and define __fork macro
7204         if not NOT_IN_libc.
7205         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7206         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7207         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7208
7209         * include/stdio_ext.h: Declare __fsetlocking_internal and define
7210         __fsetlocking macro to use it if not NOT_IN_libc.
7211         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7212
7213         * libio/__fbufsize.c: Correct copyright.
7214         * libio/__flbf.c: Likewise.
7215         * libio/__fpending.c: Likewise.
7216         * libio/__fpurge.c: Likewise.
7217         * libio/__freadable.c: Likewise.
7218         * libio/__freading.c: Likewise.
7219         * libio/__fsetlocking.c: Likewise.
7220         * libio/__fwritable.c: Likewise.
7221         * libio/__fwriting.c: Likewise.
7222
7223         * include/stdio.h: Declare __asprintf_internal and define __asprintf
7224         macro to use it if not NOT_IN_libc.
7225         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7226
7227         * include/mntent.h: Declare __setmntent_internal,
7228         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7229         __getmntent_r, and __endmntent macros to use these functions if not
7230         NOT_IN_libc.
7231         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7232         __endmntent.
7233
7234         * include/math.h: Declare __finite_internal, __finitef_internal, and
7235         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7236         these functions.
7237         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7238         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7239         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7240         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7241         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7242         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7243         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7244         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7245         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7246         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7247
7248         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7249         to use this function if not NOT_IN_libc.
7250         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7251         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7252         * sysdeps/mach/hurd/fcntl.c: Likewise.
7253         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7254         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7255
7256         * include/argz.h: Declare __argz_count_internal and
7257         __argz_stringify_internal.
7258         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7259         __argz_stringify.
7260         * string/argz-count.c: Use INTDEF for __argz_count.
7261         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7262
7263         * include/stdlib.h: Declare __cxa_atexit_internal and define
7264         __cxa_atexit macro if not NOT_IN_libc.
7265         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7266         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7267
7268         * assert/assert.c: Use INTDEF for __assert_fail.
7269         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7270         * include/assert.h: Declare __assert_fail_internal.
7271
7272         * extra-lib.mk: Mark assignment to lib with override.
7273
7274 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7275
7276         * Makerules: Use cppflags-iterator.mk to add defines for all test
7277         source files.
7278
7279 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7280
7281         * elf/elf.h: Define R_SH_TLS_xxx macros.
7282         * elf/rtld.c: Remove an extra parenthesis.
7283         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7284         TLS_GD macros.
7285         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7286         * sysdeps/sh/dl-lookupcfg.h: New file.
7287         * sysdeps/sh/dl-tls.h: New file.
7288         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7289         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7290         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7291         R_SH_TLS_TPOFF32 relocations.
7292
7293 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7294
7295         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7296         of NOT_IN_LIBC.
7297         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7298         * include/stdlib.h: Likewise.
7299
7300 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7301
7302         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7303         instead of _RTLD_LOCAL.
7304         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7305         * include/unistd.h: Likewise.
7306         * sysdeps/generic/ldsodefs.h: Likewise.
7307
7308         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7309         if in libc or ld.so.
7310
7311 2002-04-08  Andreas Jaeger  <aj@suse.de>
7312
7313         * elf/cache.c (print_entry): Support x86-64.
7314
7315 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7316
7317         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7318         with one accessing the locale data structures directly.
7319         * stdio-common/printf-prs.c: Include localeinfo.h for new
7320         MB_CUR_MAX definition.
7321
7322         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7323         is the name of the source file without extension.
7324         * Makefile (distribute): Add cppflags-iterator.mk.
7325         * cppflags-iterator.mk: New file.
7326         * extra-lib.mk: For the sources of the library run
7327         cppflags-iterator.mk.
7328
7329         * include/libintl.h: Declare __dcgettext_internal and
7330         _libc_intl_domainname_internal.  Define __dcgettext using these
7331         two symbols if used in libc itself.
7332         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7333         _libc_intl_domainname_internal.
7334         * argp/argp-parse.c: Likewise.
7335         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7336         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7337         * intl/gettext.c: Likewise.
7338         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7339         alias.
7340         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7341         __dcgettext.
7342         * posix/regex_internal.c (gettext): Likewise.
7343
7344 2002-04-08  Andreas Jaeger  <aj@suse.de>
7345
7346         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7347
7348         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7349         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7350         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7351         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7352         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7353         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7354
7355 2002-04-08  Roland McGrath  <roland@frob.com>
7356
7357         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7358         widening __hurd_fail value.
7359
7360 2002-04-07  Roland McGrath  <roland@frob.com>
7361
7362         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7363         <mach/machine/alpha_instruction.h>.
7364         (_hurd_setup_sighandler): Take proper arguments for current decls.
7365         Update code to use _hurdsig_catch_fault.
7366         Use `callsys' instruction instead of `call_pal'.
7367         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7368
7369         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7370         (ALIGN, at, AT, fp): New macros.
7371
7372 2002-04-06  Roland McGrath  <roland@frob.com>
7373
7374         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7375
7376         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7377         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7378
7379         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7380         * sysdeps/mach/hurd/connect.c: Likewise.
7381         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7382         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7383
7384         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7385         __msg_sig_post RPC.
7386
7387         * hurd/catch-exc.c: Use integer_t instead of int.
7388         * hurd/hurdfault.c: Likewise.
7389
7390         * sysdeps/mach/hurd/alpha/exc2signal.c
7391         (_hurd_exception2signal): Rewritten.
7392         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7393         (_hurd_longjmp_thread_state): Rewritten.
7394
7395 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7396
7397         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7398         DB_LOOKUP_FCT prototype.
7399         * nss/getXXent_r.c: Likewise.
7400         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7401         * inet/getaliasname_r.c: Likewise.
7402         * inet/getnetbyad_r.c: Likewise.
7403         * inet/getnetbynm_r.c: Likewise.
7404         * inet/getnetent_r.c: Likewise.
7405         * inet/getproto_r.c: Likewise.
7406         * inet/getprtent_r.c: Likewise.
7407         * inet/getprtname_r.c: Likewise.
7408         * inet/getrpcbyname_r.c: Likewise.
7409         * inet/getrpcbynumber_r.c: Likewise.
7410         * inet/getrpcent_r.c: Likewise.
7411         * inet/getservent_r.c: Likewise.
7412         * inet/getsrvbynm_r.c: Likewise.
7413         * inet/getsrvbypt_r.c: Likewise.
7414         * shadow/getspent_r.c: Likewise.
7415         * shadow/getspnam_r.c: Likewise.
7416
7417         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7418
7419         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7420         Use i686-friendly PIC code.
7421         * sysdeps/i386/elf/setjmp.S: Likewise.
7422
7423         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7424
7425         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7426         list.
7427         * elf/Versions: Remove it here.
7428
7429 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7430
7431         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7432         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7433
7434 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7435
7436         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7437         test just before the test runs.
7438         * intl/tst-translit.sh: Likewise.
7439         * intl/tst-codeset.sh: Likewise.
7440
7441         * timezone/zic.c: Update from tzcode2002c.
7442         * timezone/asia: Update from tzdata2002c.
7443         * timezone/backward: Likewise.
7444         * timezone/europe: Likewise.
7445         * timezone/northamerica: Likewise.
7446         * timezone/northamerica: Likewise.
7447         * timezone/northamerica: Likewise.
7448         * timezone/southamerica: Likewise.
7449         * timezone/zone.tab: Likewise.
7450
7451 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7452
7453         * sysdeps/generic/brk.c (__curbrk): Declare.
7454         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7455         * sysdeps/generic/dl-sbrk.c: Likewise.
7456         * sysdeps/unix/arm/dl-brk.S: New file.
7457         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7458         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7459         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7460         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7461         * sysdeps/unix/i386/dl-brk.S: New file.
7462         * sysdeps/unix/mips/dl-brk.S: New file.
7463         * sysdeps/unix/sparc/dl-brk.S: New file.
7464         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7465         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7466         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7467         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7468
7469 2002-04-03  Andreas Schwab  <schwab@suse.de>
7470
7471         * Makefile (headers): Add gnu/lib-names.h here instead of
7472         install-others.
7473         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7474         installation rule.
7475         (install-headers): Add dependency on install-headers-nosubdir.
7476         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7477         instead of install-others.
7478         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7479         installation rule.
7480
7481 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7482
7483         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7484         Reported by Sam Roberts <sroberts@uniserve.com>.
7485
7486 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7487
7488         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7489         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7490         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7491         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7492
7493 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7494
7495         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7496         (RTLD_START): Ditto.
7497         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7498         dependency violation.
7499
7500 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7501
7502         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7503         all variable declarations.
7504
7505 2002-04-04  Andreas Schwab  <schwab@suse.de>
7506
7507         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7508
7509 2002-04-04  Andreas Jaeger  <aj@suse.de>
7510
7511         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7512         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7513
7514         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7515         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7516         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7517
7518         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7519
7520         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7521
7522         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7523         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7524
7525         * configure.in: Handle all mips entries the same.
7526
7527         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7528         * sysdeps/mips/mips3/*: Likewise.
7529         * sysdeps/mips/p40/bits/endian.h: Likewise.
7530
7531 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7532
7533         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7534         non-null result [PR libc/2600].
7535
7536         * misc/tst-dirname.c: Add more tests.
7537
7538 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7539
7540         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7541         define a code_set_name provide one based on the filename.
7542
7543         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7544
7545 2001-12-28  Andreas Jaeger  <aj@suse.de>
7546
7547         * time/mktime.c (__mktime_internal): Check for year < 70
7548         [PR libc/2738].
7549
7550 2002-04-03  Andreas Jaeger  <aj@suse.de>
7551
7552         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7553         shmat.
7554         Reported by Andi Kleen <ak@suse.de>.
7555
7556 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7557
7558         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7559         * sysdeps/generic/w_lgammaf.c: Likewise.
7560         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7561
7562         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7563         Adjust for new output format of the backtrace functions.
7564
7565         * misc/syslog.c (vsyslog): Only use cleanup handler if
7566         _LIBC_REENTRANT is defined [PR libc/2924].
7567
7568         * libio/Makefile (tests): Add bug-ungetwc2.
7569         * libio/bug-ungetwc2.c: New file.
7570
7571         * manual/install.texi: Typographical and grammatical cleanup.
7572         Patch by Dennis Grace <dgrace@us.ibm.com>.
7573
7574         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7575         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7576
7577         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7578         always "&".  Adjust callers.
7579         Add "_" prefix to several generated definitions.
7580         Patch by paul@serice.net [PR libc/3158].
7581
7582 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7583
7584         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7585         size of _dl_arm_cap_flags.
7586         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7587
7588         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7589         Define as 8.
7590
7591 2002-03-22  H.J. Lu  <hjl@gnu.org>
7592
7593         * scripts/firstversions.awk: Check the first version.
7594
7595 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7596
7597         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7598         dependencies must be stable to work correctly.
7599         Reported by martin.lubich@datacon.at.
7600
7601         * libio/bug-ungetwc1.c: New file.
7602         * libio/Makefile (tests): Add bug-ungetwc1.
7603
7604         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7605         if stream was last used for writing.
7606
7607         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7608         number [PR libc/3111].
7609
7610         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7611         to ...
7612         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7613
7614 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7615
7616         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7617         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7618         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7619         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7620         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7621
7622 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7623
7624         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7625         dynamic tags.
7626
7627 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7628
7629         * sysdeps/i386/fpu/s_fabs.S: New file.
7630         * sysdeps/i386/fpu/s_fabsf.S: New file.
7631         * sysdeps/i386/fpu/s_fabsl.S: New file.
7632         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7633         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7634         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7635
7636 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7637
7638         * rt/tst-shm.c (do_test): Add one more test for size of shared
7639         memory object.
7640
7641 2002-03-29  Wolfram Gloger  <wg@malloc.de>
7642
7643         * malloc/malloc.c: Add short description and prototypes for
7644         malloc_get_state, malloc_set_state and posix_memalign, for
7645         consistency and to avoid warnings with -Wstrict-prototypes.
7646         Reported by Andreas Jaeger <aj@suse.de>.
7647
7648 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7649
7650         * po/gl.po: Update from translation team.
7651
7652 2002-03-31  Roland McGrath  <roland@frob.com>
7653
7654         * hurd/hurdselect.c (_hurd_select): Fix
7655         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7656         Use a union rather than casts to compare mach_msg_type_t as int.
7657
7658 2002-03-25  Roland McGrath  <roland@frob.com>
7659
7660         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7661         check off the end of NAME when it's shorter than 2 chars.
7662         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7663
7664 2002-03-17  Roland McGrath  <roland@frob.com>
7665
7666         * sysdeps/mach/hurd/i386/sys/io.h: New file.
7667         * sysdeps/mach/hurd/i386/ioperm.c: New file.
7668         * sysdeps/mach/hurd/i386/Dist: Add them.
7669         * sysdeps/mach/hurd/i386/Versions
7670         (libc: GLIBC_2.2.6): New set, add ioperm.
7671         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7672         (mach_interface_list): Check for mach_i386.defs.
7673         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7674         * sysdeps/mach/configure: Regenerated.
7675
7676 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
7677
7678         * po/fr.po: Update from translation team.
7679
7680 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7681
7682         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7683         getpriority from syscalls list.
7684
7685 2002-03-28  Andreas Jaeger  <aj@suse.de>
7686
7687         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7688         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7689         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7690         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7691
7692 2002-03-27  Andreas Jaeger  <aj@suse.de>
7693
7694         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7695         sigcontext): Follow further kernel change.
7696
7697         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7698         kernel change.
7699
7700         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7701         Change for struct sigcontext change.
7702
7703         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7704         Follow changes in struct sigcontext.
7705
7706         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7707         sysycall, use wrapper instead.
7708
7709 2002-03-26  Andreas Jaeger  <aj@suse.de>
7710
7711         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7712         read and write accesses as detailed as possible.
7713         (__memcpy_by2): Likewise.
7714         (__memcpy_g): Likewise.
7715         (memmove): Likewise.
7716         (memcmp): Likewise.
7717         (__memset_ccn_by4): Likewise.
7718         (__memset_ccn_by2): Likewise.
7719         (__memset_gcn_by4): Likewise.
7720         (__memset_gcn_by2): Likewise.
7721         (memchr): Likewise.
7722         (__memrchr): Likewise.
7723         (rawmemchr): Likewise.
7724         (__strlen_g): Likewise.
7725         (__strcpy_g): Likewise.
7726         (__mempcpy_by4): Likewise.
7727         (__mempcpy_by2): Likewise.
7728         (__mempcpy_byn): Likewise.
7729         (__stpcpy_g): Likewise.
7730         (__strncpy_by4): Likewise.
7731         (__strncpy_by2): Likewise.
7732         (__strncpy_byn): Likewise.
7733         (__strncpy_gg): Likewise.
7734         (__strcat_c): Likewise.
7735         (__strcat_g): Likewise.
7736         (__strncat_g): Likewise.
7737         (__strcmp_gg): Likewise.
7738         (__strncmp_g): Likewise.
7739         (__strchr_c): Likewise.
7740         (__strchr_g): Likewise.
7741         (__strchrnul_c): Likewise.
7742         (__strchrnul_g): Likewise.
7743         (__strrchr_c): Likewise.
7744         (__strrchr_g): Likewise.
7745         (__strrchr_c): Likewise.
7746         (__strrchr_g): Likewise.
7747         (__strcspn_c1): Likewise.
7748         (__strcspn_cg): Likewise.
7749         (__strcspn_g): Likewise.
7750         (__strcspn_g): Likewise.
7751         (__strspn_c1): Likewise.
7752         (__strspn_cg): Likewise.
7753         (__strspn_g): Likewise.
7754         (__strspn_g): Likewise.
7755         (__strpbrk_cg): Likewise.
7756         (__strpbrk_g): Likewise.
7757         (__strstr_cg): Likewise.
7758         (__strstr_g): Likewise.
7759
7760         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
7761         Michal Ludvig <mludvig@suse.cz>.
7762
7763         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7764         compatibilty, adjust for kernel changes.
7765
7766         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7767         sigcontext): Adjust for kernel changes.
7768
7769 2002-03-25  Andreas Jaeger  <aj@suse.de>
7770
7771         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7772         little endian.
7773         Reported by Artur Zaprzala <zybi@talex.com.pl>.
7774
7775 2002-03-24  Andreas Jaeger  <aj@suse.de>
7776
7777         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7778
7779         * stdio-common/tst-fdopen.c (main): Remove unused variable.
7780
7781         * iconv/tst-iconv3.c (main): Use correct printf strings.
7782
7783 2002-03-18  Roland McGrath  <roland@frob.com>
7784
7785         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7786         (CMGROUP_MAX): New macro.
7787
7788 2002-03-23  Roland McGrath  <roland@frob.com>
7789
7790         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7791         * sysdeps/posix/shm_unlink.c: Likewise.
7792
7793 2002-03-22  Roland McGrath  <roland@frob.com>
7794
7795         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7796         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7797         under --enable-libio.
7798         * sysdeps/mach/hurd/configure: Regenerated.
7799
7800 2002-03-23  Roland McGrath  <roland@frob.com>
7801
7802         * sysdeps/mach/hurd/i386/Makefile
7803         (sysdep_routines, shared-only-routines): Don't add framestate,
7804         reverting 2001-10-02 change.
7805         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7806         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7807         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7808         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7809         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7810         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7811         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7812         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7813         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7814         Do it here instead, only if [$(unwind-find-fde) = yes].
7815
7816 2002-03-23  Andreas Jaeger  <aj@suse.de>
7817
7818         * signal/signal.h: Fix typo. Patch by Steve Kemp
7819         <skx@tardis.ed.ac.uk>.
7820
7821 2002-03-22  Andreas Jaeger  <aj@suse.de>
7822
7823         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7824         getresuid.
7825
7826         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7827         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7828         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7829         user_fpregs_struct): Rename fwd.
7830
7831         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7832         Follow sigcontext changes.
7833
7834 2002-03-22  Andreas Jaeger  <aj@suse.de>
7835
7836         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
7837         changes for NaNs on MIPS.
7838         Patch by Hartvig Ekner <hartvige@mips.com>.
7839
7840 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
7841
7842         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7843         Use realloc if too large.
7844         (addgrbyid): Likewise.
7845         * nscd/hstcache.c (addhstbyname): Likewise.
7846         (addhstbyaddr): Likewise.
7847         (addhstbynamev6): Likewise.
7848         (addhstbyaddrv6): Likewise.
7849         * nscd/pwdcache.c (addpwbyname): Likewise.
7850         (addpwbyuid): Likewise.
7851
7852 2002-03-21  Andreas Jaeger  <aj@suse.de>
7853
7854         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7855         _fpstate): Add separate struct for x86-64.
7856
7857         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7858         user_fpregs_struct): Change member names to follow kernel.
7859
7860 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
7861
7862         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7863         Correctly close the UDP connection right away [PR libc/3120].
7864
7865 2002-03-20  Andreas Jaeger  <aj@suse.de>
7866
7867         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7868         user_fpregs_struct): Fix for changed kernel struct.
7869         (struct user_regs_struct): Likewise.
7870         (struct user): Likewise.
7871         Add 32-bit x86 compatibility.
7872
7873         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7874
7875 2002-03-19  Andreas Jaeger  <aj@suse.de>
7876
7877         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7878
7879 2002-03-18  Andreas Jaeger  <aj@suse.de>
7880
7881         * iconvdata/Makefile: Only run tests when shared libs are
7882         available.
7883
7884 2002-03-17  Andreas Jaeger  <aj@suse.de>
7885
7886         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7887
7888         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7889
7890         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7891         bits.
7892
7893         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7894         (CAUSE_SHIFT): New macro.
7895         Patch by Hartvig Ekner <hartvige@mips.com>.
7896
7897         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7898         * sysdeps/generic/unwind-pe.h: Likewise.
7899
7900         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7901         type to _IO_setb.
7902
7903         * libio/stdio.c (AL2): Define variant when visibility attribute is
7904         not supported.
7905
7906         * include/libc-symbols.h (_INTVARDEF): Define variant when
7907         visibility attribute is not supported.
7908
7909 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
7910
7911         * po/fr.po: Update from translation team.
7912
7913 2002-02-25  Bruno Haible  <bruno@clisp.org>
7914
7915         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7916
7917 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7918
7919         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7920         buffers if _IO_file_attach failed.
7921
7922         * libio/fileops.c (_IO_file_open): Close file descriptor if
7923         _IO_SEEKOFF call failed.
7924
7925 2002-03-15  H.J. Lu  <hjl@gnu.org>
7926             Ulrich Drepper  <drepper@redhat.com>
7927
7928         * configure.in: Check for availability of
7929         init_array/fini_array/preinit_array handling in binutils.
7930         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7931         * config.make.in (have-initfini-array): New variable.
7932
7933 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7934
7935         * stdio-common/tst-printf.c (main): Comment out one test which
7936         checked the compiler's ability to fold floating-point constants
7937         but not really printf.
7938         (rfg3): Make s const.
7939         * stdio-common/tst-printf.sh: Adjust for removed test.
7940
7941         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7942         internal function.  Adjust for internal_function calling convention.
7943         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7944         as internal_function.
7945
7946         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7947         hidden.
7948
7949         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7950         declaration and definition.
7951         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7952         declaration.
7953         * nss/getXXent_r.c: Likewise.
7954         * nss/nsswitch.h (db_lookup_function): Add internal_function to
7955         definition.
7956
7957         * include/time.h: Declare __localtime_r as hidden.
7958
7959         * include/aliases.h: Declare __getaliasent_r as hidden.
7960         * include/grp.h: Declare __getgrent_r as hidden.
7961         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7962         __getservent_r, and __getprotoent_r as hidden.
7963         * include/pwd.h: Declare __getpwent_r as hidden.
7964         * include/shadow.h: Declare __getspent_r as hidden.
7965         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7966
7967         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7968         and __gconv_transliterate as hidden.
7969         Add internal_function to __gconv_get_path declaration.
7970         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7971         definition.  Add attribute_hidden to __gconv_read_conf definition.
7972
7973 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
7974
7975         * elf/rtld.c: Declare _environ as hidden.
7976         * sysdeps/generic/dl-environ.c: Likewise.
7977         * sysdeps/generic/dl-sysdep.c: Likewise.
7978
7979         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7980         _dl_mcount_internal as hidden.
7981
7982         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7983         * sysdeps/generic/dl-brk.c: New file.
7984         * sysdeps/generic/dl-sbrk.c: New file.
7985         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7986         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7987
7988         * elf/dl-minimal.c (malloc): Declare _end as hidden.
7989         (__errno_location): New function.  Declare errno as hidden.
7990         * elf/rtld.c (_dl_argc): Define as hidden.
7991         (_dl_skip_args): Define as hidden.
7992         (_begin, _end): Declare as hidden.
7993         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7994         * sysdeps/generic/entry.h (_start): Declare as hidden.
7995         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7996         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7997         _dl_runtime_resolve and _dl_runtime_profile as hidden.
7998         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7999
8000 2002-03-14  Roland McGrath  <roland@frob.com>
8001
8002         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
8003
8004         * Makeconfig (%.v.i, %.v): New implicit rules.
8005         (preprocess-versions): Variable removed.
8006         ($(common-objpfx)shlib-versions.v.i): New target giving just the
8007         shlib-versions input files as dependencies.
8008         ($(common-objpfx)soversions.i): Depend on that instead of the input
8009         files.  Use it as input instead of using a pipeline.
8010         (postclean-generated): Append soversions.i, shlib-versions.v, and
8011         shlib-versions.v.i here.
8012         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
8013         the Versions.def input files as dependencies.
8014         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
8015         ($(common-objpfx)Versions.all): Depend on that instead of the input
8016         files.  Use it as input instead of using a pipeline.
8017         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
8018         (postclean-generated): Append those .v and .v.i files here.
8019
8020 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8021
8022         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
8023         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
8024         Remove.
8025
8026 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8027
8028         * sysdeps/generic/mp_clz_tab.c: New file.
8029         * sysdeps/i386/mp_clz_tab.c: New file.
8030         * sysdeps/hppa/mp_clz_tab.c: New file.
8031         * sysdeps/powerpc/mp_clz_tab.c: New file.
8032         * stdlib/Makefile (aux): Revert last patch.
8033         * math/Makefile (gmp-objs): Likewise.
8034
8035 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8036
8037         * time/strftime.c: Comment fixes for references to obsolescent
8038         standards, In most cases the simplest fix is to remove the
8039         confusing comments.  Cross-referencing all the standards properly
8040         is a bit of a pain, and it should be enough to put that info in
8041         the documentation as I did in my recent time.texi patch.
8042
8043 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8044
8045         * manual/time.texi (Formatting Calendar Time):
8046         ISO C99 also specifies the E and O modifiers.
8047         %P is a GNU extension, and is not in ISO C99.
8048         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
8049         %T is also in ISO C99.
8050         The RFC 822 example is not valid in arbitrary locales.
8051         Reword the POSIX.2 wording slightly, to make it a bit clearer
8052         that POSIX.2 formats are also supported by later POSIX versions.
8053         If a format was introduced in ISO C99 it is also required by
8054         POSIX.1-2001.
8055
8056 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8057
8058         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
8059         _sys_nerr_internal with INTVARDEF2.
8060         * include/libc-symbols.h (INTVARDEF2): New macro.
8061         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
8062         (_sys_nerr_internal): Library.
8063
8064         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
8065         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
8066
8067         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
8068
8069 2002-03-13  Wolfram Gloger  <wg@malloc.de>
8070
8071         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
8072
8073 2002-03-02  Andreas Schwab  <schwab@suse.de>
8074
8075         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
8076         'h' flag and positional arg.
8077         * stdio-common/tst-printf.c (rfg3): New function to test
8078         positional arguments.
8079         (main): Fix some warnings.
8080
8081 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
8082
8083         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
8084         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8085
8086 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8087
8088         * grp/initgroups.c (__nss_group_data): Declare as hidden.
8089
8090         * include/locale.h (_nl_C_locobj): Declare as hidden.
8091
8092         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
8093         * time/strptime.c (_nl_C_LC_TIME): Likewise.
8094
8095         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
8096
8097         * include/sys/gmon.h: Declare _gmonparam as hidden.
8098
8099         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
8100         (__ctype32_wctrans): Likewise.
8101         (__ctype32_width): Likewise.
8102
8103         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
8104         use of __ttyname.
8105
8106         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
8107         Define as hidden.
8108         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
8109         hidden.  Change all users of these variables.
8110
8111         * posix/regex_internal.h (__re_error_msgid): Renamed from
8112         re_error_msgid.  Declare as hidden.
8113         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
8114         hidden.
8115
8116         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
8117         (__printf_function_table): Likewise.
8118         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8119         hidden.
8120         (__printf_function_table): Likewise.
8121
8122         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8123         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8124
8125         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8126         * nss/nsswitch.c: Declare _nss_*_database as hidden.
8127
8128         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8129         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8130
8131 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
8132
8133         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8134         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8135         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8136         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8137         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8138         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8139         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8140         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8141         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8142         _nl_C_LC_CTYPE_width: Declare as hidden.
8143         * include/locale.h: Declare _nl_locale_file_list.
8144         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8145         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8146         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8147         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8148         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8149         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8150         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8151         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8152         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8153         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8154         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8155         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8156         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8157         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8158         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8159         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8160         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8161         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8162         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8163         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8164         _nl_C_LC_CTYPE_width, and as hidden.
8165         * locale/findlocale.c: Declare _nl_C as hidden.
8166         * locale/newlocale.c: Likewise.
8167         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
8168         _nl_locale_file_list.
8169         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8170         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8171         Define _nl_C_locobj as hidden.
8172
8173         * malloc/mtrace.c (_mtrace_file): Define as hidden.
8174         (_mtrace_line): Likewise.
8175
8176         * include/time.h: Declare __mon_yday as hidden.
8177         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8178
8179         * libio/libioP.h: Declare __libio_codecvt as hidden.
8180         * libio/fileops.c: Declare __libio_translit as hidden.
8181         * libio/iofwide.c: Define __libio_translit as hidden.
8182
8183         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8184         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8185         * login/getutline_r.c: Likewise.
8186         * login/utmpname.c: Likewise.
8187
8188         * login/utmp-private.h: Declare __libc_utmp_file_functions,
8189         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8190         __libc_utmp_file_name as hidden.
8191
8192         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8193         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8194         * locale/freelocale.c: Likewise.
8195         * locale/lc-time.c: Likewise.
8196
8197         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8198         (__libc_ptyname2): Likewise.
8199         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8200         hidden.
8201         (__libc_ptyname2): Likewise.
8202
8203         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8204         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8205         * sysdeps/generic/init-first.c: Likewise.
8206         * sysdeps/i386/init-first.c: Likewise.
8207         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8208         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8209         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8210         * sysdeps/sh/init-first.c: Likewise.
8211         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8212         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8213
8214         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8215         (_itowa_upper_digits): Likewise.
8216
8217         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8218         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8219         as hidden.
8220
8221         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8222         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8223         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8224         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8225
8226         * gmon/gmon.c (__bb_head): Define as hidden.
8227         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8228
8229         * argp/argp-parse.c (_argp_hang): Define as static.
8230
8231         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8232         handling in latest compilers.
8233
8234         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8235         define alias.
8236         * libio/fileops.c (_IO_file_jumps): Likewise.
8237         * libio/stdfiles.c (_IO_list_all): Likewise.
8238         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8239
8240         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8241         include/malloc.h.
8242         * include/malloc.h: Add __libc_malloc_initialized declaration
8243         here.  Mark variable hidden.
8244         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8245
8246         * elf/dl-open.c (__libc_argc): Declare as hidden.
8247         (__libc_argv): Likewise.
8248         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8249         (__libc_argv): Likewise.
8250         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8251         __libc_argv as hidden.
8252         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8253         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8254         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8255         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8256
8257         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8258         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8259         * stdlib/erand48.c: Likewise.
8260         * stdlib/jrand48.c: Likewise.
8261         * stdlib/lcong48.c: Likewise.
8262         * stdlib/lrand48.c: Likewise.
8263         * stdlib/mrand48.c: Likewise.
8264         * stdlib/nrand48.c: Likewise.
8265         * stdlib/seed48.c: Likewise.
8266         * stdlib/srand48.c: Likewise.
8267
8268         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8269         (_itoa_lower_digits_internal): New declaration.
8270         (_itoa_upper_digits_internal): New declaration.
8271         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8272         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8273         (_itoa_upper_digits_internal): New declaration.
8274         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8275         _itoa_lower_digits.
8276         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8277         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8278
8279         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8280         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8281
8282         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8283         (_itowa_lower_digits): Likewise.
8284         (_itowa_upper_digits): Likewise.
8285         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8286         (_itowa_upper_digits): Likewise.
8287
8288         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8289         not already defined.
8290         (GERMANIC_PLURAL): Declare as hidden.
8291
8292         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8293         (attribute_hidden): Define as empty macro if not already defined.
8294
8295         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8296         (__gconv_max_path_elem_len): Likewise.
8297         (__gconv_path_envvar): Likewise.
8298
8299         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8300         * stdlib/Makefile (aux): Remove mp_clz_tab.
8301         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8302
8303         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8304
8305         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8306
8307         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8308         _nl_category_names, _nl_category_name_sizes, _nl_current,
8309         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8310
8311         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8312         (_nl_current_default_domain): Likewise
8313         (_nl_state_lock): Likewise.
8314         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8315         (_nl_current_default_domain): Likewise
8316         (_nl_state_lock): Likewise.
8317         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8318
8319         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8320         (_fpioconst_pow10): Likewise.
8321
8322         * include/time.h (_tmbuf): Add attribute_hidden.
8323
8324         * time/tzset.c (tzstring_list): Define as static.
8325
8326         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8327         __use_tzfile declaration.
8328
8329         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8330         and __wcsmbs_last_locale declaration.
8331
8332 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8333
8334         * timezone/Makefile (tzbases): Move systemv from here...
8335         (tzlinks): to here, since the entries in systemv were all changed
8336         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8337         tested) by Peter Breitenlohner.
8338
8339 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8340
8341         * time/tst-posixtz.c (tests): Add new tests.
8342         (main): Test whether tzset() sets daylight properly.
8343
8344 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8345
8346         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8347         __tzname_cur_max setting...
8348         (tzset_internal): ...here.
8349
8350 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8351
8352         * time/tzset.c (compute_change): Don't return any value.
8353         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8354         (__tz_convert): But here.
8355
8356 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8357
8358         * manual/examples/mkfsock.c: Include <string.h> as well.
8359         Patch by Alain De Carolis <alaind@wseurope.com>.
8360
8361 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8362
8363         * posix/regexec.c (re_match): Fix incorrect register sizes.
8364         (re_search): Likewise.
8365
8366 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8367
8368         * posix/regcomp.c (regfree): Remove a disused condition.
8369         * posix/regex_internal.c (re_acquire_state): Likewise.
8370         (re_acquire_state_context): Likewise.
8371         (register_state): Remove a redundant malloc invocation.
8372         * posix/regex_internal.h: (re_state_table_entry): Simplify
8373         the structure.
8374
8375 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8376
8377         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8378         handling conditions.
8379         (regerror): Likewise.
8380         (regfree): Likewise.
8381         (re_compile_internal): Likewise.
8382         (init_dfa): Likewise.
8383         (init_word_char): Likewise.
8384         (create_initial_state): Likewise.
8385         (analyze): Likewise.
8386         (analyze_tree): Likewise.
8387         (duplicate_node): Likewise.
8388         (calc_eclosure): Likewise.
8389         (calc_eclosure_iter): Likewise.
8390         (parse): Likewise.
8391         (parse_reg_exp): Likewise.
8392         (parse_branch): Likewise.
8393         (parse_expression): Likewise.
8394         (parse_subexp): Likewise.
8395         (parse_dup_op): Likewise.
8396         (parse_bracket_exp): Likewise.
8397         (build_equiv_class): Likewise.
8398         (build_charclass): Likewise.
8399         (build_word_op): Likewise.
8400         (fetch_number): Likewise.
8401         (create_tree): Likewise.
8402         (duplicate_tree): Likewise.
8403         * posix/regex.c (BE): New macro.
8404         * posix/regexec.c (re_match): Add __builtin_expect to error
8405         handling conditions.
8406         (re_match_2): Likewise.
8407         (re_search): Likewise.
8408         (re_search_internal): Likewise.
8409         (check_matching): Likewise.
8410         (proceed_next_node): Likewise.
8411         (set_regs): Likewise.
8412         (sift_states_backward): Likewise.
8413         (add_epsilon_backreference): Likewise.
8414         (transit_state): Likewise.
8415         (transit_state_sb): Likewise.
8416         (transit_state_mb): Likewise.
8417         (transit_state_bkref): Likewise.
8418         (transit_state_bkref_loop): Likewise.
8419         (build_trtable): Likewise.
8420         (group_nodes_into_DFAstates): Likewise.
8421         (match_ctx_init): Likewise.
8422         (match_ctx_add_entry): Likewise.
8423         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8424         to error handling conditions.
8425         (re_string_construct_toupper): Likewise.
8426         (build_wcs_buffer): Likewise.
8427         (build_wcs_upper_buffer): Likewise.
8428         (build_upper_buffer): Likewise.
8429         (re_string_translate_buffer): Likewise.
8430         (re_node_set_alloc): Likewise.
8431         (re_node_set_init_1): Likewise.
8432         (re_node_set_init_2): Likewise.
8433         (re_node_set_init_copy): Likewise.
8434         (re_node_set_intersect): Likewise.
8435         (re_node_set_init_union): Likewise.
8436         (re_node_set_merge): Likewise.
8437         (re_node_set_insert): Likewise.
8438         (re_dfa_add_node): Likewise.
8439         (re_acquire_state): Likewise.
8440         (re_acquire_state_context): Likewise.
8441         (create_new_state_common): Likewise.
8442         (register_state): Likewise.
8443         (create_ci_new_state): Likewise.
8444         (create_cd_new_state): Likewise.
8445         (re_string_context_at): Remove redundant condition.
8446
8447 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8448
8449         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8450
8451         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8452
8453 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8454
8455         * sysdeps/i386/elf/configure.in: Fix comment.
8456
8457         * sysdeps/sparc/sparc64/configure.in: New file.
8458         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8459         if .dynamic comes before .got.
8460         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8461
8462         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8463         HP_TIMING_ACCUM): Fix typos.
8464
8465 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8466
8467         * string/strfry.c: Add some more randomness to the seed.
8468         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8469
8470         * po/es.po: Update from translation team.
8471         * po/fr.po: Likewise.
8472
8473         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8474
8475         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8476         when determining type of format.
8477         Patch by James Antill <james@anqd.org> [PR libc/2787].
8478
8479 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8480
8481         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8482
8483 2002-03-11  Roland McGrath  <roland@frob.com>
8484
8485         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8486
8487         * Versions.def (libc): Add GLIBC_2.2.6.
8488         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8489         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8490         __errno_location instead of __hurd_errno_location, and don't inline it.
8491         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8492         * hurd/errno.c: New file.
8493         * hurd/Makefile (routines): Add errno.
8494
8495 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8496
8497         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8498         ridiculously large widths and precisions [PR libc/3026].
8499
8500 2002-03-11  Andreas Jaeger  <aj@suse.de>
8501
8502         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8503         support.
8504         Patch by Susanne Oberhauser <froh@SuSE.de>.
8505
8506 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8507
8508         * inet/rexec.c (ahostbuf): Define as static.
8509
8510         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8511         (__ctype32_wctrans): Likewise.
8512         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8513         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8514         (__ctype32_wctrans): Likewise.
8515         (__ctype32_width): Likewise.
8516
8517         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8518         They were never exported anyway.
8519
8520         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8521         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8522         exported.
8523         * include/sys/gmon.h: Declare _gmonparam.
8524
8525         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8526         symbols for getdents64.  They were never exported.
8527
8528 2002-03-09  Roland McGrath  <roland@frob.com>
8529
8530         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8531         Reported by Jon Arney <jarney1@cox.net>.
8532
8533 2002-02-23  Roland McGrath  <roland@frob.com>
8534
8535         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8536         declaration.
8537         (__hurd_errno_location): Function removed.
8538
8539 2002-03-06  Andreas Jaeger  <aj@suse.de>
8540
8541         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8542         32-bit.
8543
8544 2002-03-04  Andreas Jaeger  <aj@suse.de>
8545
8546         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8547
8548         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8549         x86-64.
8550
8551         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8552
8553         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8554
8555         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8556
8557         * sysdeps/x86_64/bits/setjmp.h: New file.
8558
8559         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8560
8561         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8562
8563         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8564         for x86.
8565         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8566         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8567
8568 2002-02-28  Bo Thorsen  <bo@suse.de>
8569
8570         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8571         version.
8572
8573 2002-03-03  Andreas Jaeger  <aj@suse.de>
8574
8575         * sysdeps/x86_64/bits/wordsize.h: New file.
8576
8577         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8578         * elf/tst-tlsmod1.c: Likewise.
8579
8580         * posix/regcomp.c: Get regex.h from include dir for internal
8581         prototypes.
8582
8583         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8584         to libc-internal.h and include it.
8585         * include/libc-internal.h: Add __init_misc.
8586
8587         * misc/init-misc.c: Include libc-internal.h for prototypes.
8588
8589         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8590
8591         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8592         _IO_putc_internal.
8593
8594 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8595
8596         * posix/regcomp.c: Compatibility changes to allow using the code
8597         outside glibc.
8598
8599 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8600
8601         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8602         compiled non-PIC.
8603
8604 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8605
8606         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8607         of .str elements in the returned data structure.
8608
8609         * elf/elf.h: Add Alpha TLS bits.
8610
8611 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8612
8613         * sysdeps/unix/sysv/linux/nice.c: New file.
8614
8615 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8616
8617         * elf/Makefile (dl-routines): Add dl-origin.
8618         (elide-routines.os): Add dl-origin.
8619         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8620         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8621         _dl_debug_state.
8622         * include/libc-symbols.c: Define attribute_hidden depending on
8623         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
8624
8625         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8626         * elf/dl-load.c: Likewise.
8627         * elf/rtld.c: Likewise.
8628         * include/unistd.h: Declare __libc_enable_secure_internal.
8629         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8630         Use INTUSE with __libc_enable_secure.
8631         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8632
8633         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8634         * elf/dl-error.c: Likewise,
8635         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8636
8637         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8638         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8639         function definition.  Use INTDEF with _dl_get_origin.
8640         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8641
8642         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8643         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
8644
8645         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8646         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8647         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8648
8649         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8650         * elf/dl-deps.c: Likewise.
8651         * elf/dl-error.c: Likewise.
8652         * elf/dl-fini.c: Likewise.
8653         * elf/dl-init.c: Likewise.
8654         * elf/dl-load.c: Likewise.
8655         * elf/dl-lookup.c: Likewise.
8656         * elf/dl-reloc.c: Likewise.
8657         * elf/dl-version.c: Likewise.
8658         * elf/do-lookup.h: Likewise.
8659         * sysdeps/arm/dl-machine.h: Likewise.
8660         * sysdeps/cris/dl-machine.h: Likewise.
8661         * sysdeps/hppa/dl-machine.h: Likewise.
8662         * sysdeps/i386/dl-machine.h: Likewise.
8663         * sysdeps/m68k/dl-machine.h: Likewise.
8664         * sysdeps/powerpc/dl-machine.h: Likewise.
8665         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8666         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8667         * sysdeps/sh/dl-machine.h: Likewise.
8668         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8669         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8670         * sysdeps/x86_64/dl-machine.h: Likewise.
8671         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
8672         _dl_argv[0].  Use INTUSE with _dl_argv.
8673         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8674         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8675
8676 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8677
8678         * elf/rtld.c (_rtld_global): Remove .protected.
8679         (_rtld_local): Strong alias to _rtld_global.
8680         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8681         only .os object.
8682         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8683         _rtld_local instead of _rtld_global.
8684         (_rtld_local): Add hidden extern, possibly in .sdata section.
8685         * configure.in: Add tests for visibility attribute and .sdata.
8686         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8687         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8688         * sysdeps/arm/dl-machine.h: Likewise.
8689         * sysdeps/generic/ldsodefs.h: Likewise.
8690         * sysdeps/hppa/dl-machine.h: Likewise.
8691         * sysdeps/cris/dl-machine.h: Likewise.
8692         * sysdeps/i386/dl-machine.h: Likewise.
8693         * sysdeps/ia64/dl-machine.h: Likewise.
8694         * sysdeps/m68k/dl-machine.h: Likewise.
8695         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8696         * sysdeps/mips/dl-machine.h: Likewise.
8697         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8698         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8699         * sysdeps/sh/dl-machine.h: Likewise.
8700         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8701         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8702         * sysdeps/x86_64/dl-machine.h: Likewise.
8703
8704 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8705
8706         * login/login.c (login): Always initialize ut_line field
8707         [PR libc/2991].
8708
8709 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8710
8711         * sysdeps/i386/Makefile (sysdep_routines): Add
8712         divdi3 in csu dir.
8713         (shared-only-routines): Likewise.
8714         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8715         (shared-only-routines): Likewise.
8716         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8717         (shared-only-routines): Likewise.
8718         * sysdeps/wordsize-32/divdi3.c: New file.
8719
8720 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8721
8722         * locale/iso-4217.def: Remove obsolete currencies for countries
8723         with Euro.
8724
8725 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
8726
8727         * posix/regcomp.c (regcomp): Remove a redundant condition.
8728         (init_word_char): Add a check on malloc failure.
8729         (create_initial_state): Likewise.
8730         (duplicate_node): Likewise.
8731         (calc_eclosure): Likewise.
8732         (calc_eclosure_iter): Likewise.
8733         (parse_expression): Likewise.
8734         (parse_bracket_exp): Remove unnecessary malloc invocations.
8735         (build_equiv_class): Likewise.
8736         (build_charclass): Likewise.
8737         * posix/regex_internal.c (re_node_set_intersect): Add a check
8738         on malloc failure.
8739         (re_node_set_add_intersect): Likewise.
8740         (re_node_set_merge): Likewise.
8741         (re_acquire_state): Likewise.
8742         (re_acquire_state_context): Likewise.
8743         (create_newstate_common): Likewise.
8744         (register_state): Likewise.
8745         (create_ci_newstate): Likewise.
8746         (create_cd_newstate): Likewise.
8747         * posix/regex_internal.h: Fix prototypes of re_acquire_state
8748         and re_acquire_state_context.
8749         * posix/regexec.c (regexec): Suit it to the error handling of
8750         re_search_internal.
8751         (re_match): Likewise.
8752         (re_search): Likewise.
8753         (re_search_internal): Add a check on malloc failure.
8754         (acquire_init_state_context): Likewise.
8755         (check_matching): Likewise.
8756         (proceed_next_node): Likewise.
8757         (set_regs): Likewise.
8758         (sift_states_backward): Likewise.
8759         (sift_states_iter_bkref): Likewise.
8760         (add_epsilon_backreference): Likewise.
8761         (transit_state): Likewise.
8762         (transit_state_sb): Likewise.
8763         (transit_state_mb): Likewise.
8764         (transit_state_bkref_loop): Likewise.
8765         (build_trtable): Likewise.
8766         (group_nodes_into_DFAstates): Likewise.
8767         (match_ctx_init): Likewise.
8768         (match_ctx_add_entry): Likewise.
8769
8770 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8771
8772         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8773         l_libname if profiling is enabled [PR libc/2916].
8774
8775         * sysdeps/ia64/dl-tls.h: New file.
8776
8777 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
8778
8779         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8780         Work around an Alpha gas bug.
8781
8782 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8783
8784         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8785         uses read to load the catalog.
8786         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8787
8788 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
8789
8790         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8791         regex_internal.c, and regex_internal.h.
8792         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8793         * posix/regex.c: Complete rewrite.
8794         * posix/regexec.c: New file.
8795         * posix/regcomp.c: New file.
8796         * posix/regex_internal.c: New file.
8797         * posix/regex_internal.h: New file.
8798         * posix/regex.h (RE_ICASE): New macro.
8799         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8800
8801         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8802         ungetwc.  It's a macro.
8803         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8804         implementation.
8805         Reported by Jason Merrill <jason@redhat.com>.
8806
8807 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8808
8809         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8810         position to fp->_offset if it is set.
8811         * stdio-common/Makefile (tests): Add tst-fdopen.
8812         * stdio-common/tst-fdopen.c: New test.
8813
8814 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8815
8816         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8817         * stdio-common/tst-ungetc.c (main): Add another test.
8818
8819 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
8820
8821         * assert/assert-perr.c: Use INTUSE to reference functions and variables
8822         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
8823         aliases.  Add prototypes for the new aliases.
8824         * assert/assert.c: Likewise.
8825         * include/libc-symbols.h: Likewise.
8826         * include/stdio.h: Likewise.
8827         * include/netinet/in.h: Likewise.
8828         * include/rpc/auth.h: Likewise.
8829         * include/rpc/auth_unix.h: Likewise.
8830         * include/rpc/key_prot.h: Likewise.
8831         * include/rpc/pmap_prot.h: Likewise.
8832         * include/rpc/pmap_rmt.h: Likewise.
8833         * include/rpc/rpc_msg.h: Likewise.
8834         * include/rpc/xdr.h: Likewise.
8835         * inet/gethstbyad_r.c: Likewise.
8836         * inet/gethstbynm2_r.c: Likewise.
8837         * inet/gethstbynm_r.c: Likewise.
8838         * inet/gethstent_r.c: Likewise.
8839         * inet/in6_addr.c: Likewise.
8840         * libio/__fpurge.c: Likewise.
8841         * libio/filedoalloc.c: Likewise.
8842         * libio/fileops.c: Likewise.
8843         * libio/ftello.c: Likewise.
8844         * libio/ftello64.c: Likewise.
8845         * libio/genops.c: Likewise.
8846         * libio/iofclose.c: Likewise.
8847         * libio/iofdopen.c: Likewise.
8848         * libio/iofflush.c: Likewise.
8849         * libio/iofflush_u.c: Likewise.
8850         * libio/iofgetpos.c: Likewise.
8851         * libio/iofgetpos64.c: Likewise.
8852         * libio/iofgets.c: Likewise.
8853         * libio/iofgets_u.c: Likewise.
8854         * libio/iofopen.c: Likewise.
8855         * libio/iofopncook.c: Likewise.
8856         * libio/iofputs.c: Likewise.
8857         * libio/iofread.c: Likewise.
8858         * libio/iofread_u.c: Likewise.
8859         * libio/iofsetpos.c: Likewise.
8860         * libio/iofsetpos64.c: Likewise.
8861         * libio/ioftell.c: Likewise.
8862         * libio/iofwrite.c: Likewise.
8863         * libio/iogetline.c: Likewise.
8864         * libio/iogets.c: Likewise.
8865         * libio/iogetwline.c: Likewise.
8866         * libio/iolibio.h: Likewise.
8867         * libio/iopadn.c: Likewise.
8868         * libio/iopopen.c: Likewise.
8869         * libio/ioseekoff.c: Likewise.
8870         * libio/ioseekpos.c: Likewise.
8871         * libio/iosetbuffer.c: Likewise.
8872         * libio/iosetvbuf.c: Likewise.
8873         * libio/ioungetc.c: Likewise.
8874         * libio/ioungetwc.c: Likewise.
8875         * libio/iovdprintf.c: Likewise.
8876         * libio/iovsprintf.c: Likewise.
8877         * libio/iovsscanf.c: Likewise.
8878         * libio/libioP.h: Likewise.
8879         * libio/memstream.c: Likewise.
8880         * libio/obprintf.c: Likewise.
8881         * libio/oldfileops.c: Likewise.
8882         * libio/oldiofclose.c: Likewise.
8883         * libio/oldiofdopen.c: Likewise.
8884         * libio/oldiofgetpos.c: Likewise.
8885         * libio/oldiofgetpos64.c: Likewise.
8886         * libio/oldiofopen.c: Likewise.
8887         * libio/oldiofsetpos.c: Likewise.
8888         * libio/oldiofsetpos64.c: Likewise.
8889         * libio/oldiopopen.c: Likewise.
8890         * libio/oldstdfiles.c: Likewise.
8891         * libio/putc.c: Likewise.
8892         * libio/setbuf.c: Likewise.
8893         * libio/setlinebuf.c: Likewise.
8894         * libio/stdfiles.c: Likewise.
8895         * libio/stdio.c: Likewise.
8896         * libio/strops.c: Likewise.
8897         * libio/vasprintf.c: Likewise.
8898         * libio/vscanf.c: Likewise.
8899         * libio/vsnprintf.c: Likewise.
8900         * libio/vswprintf.c: Likewise.
8901         * libio/wfiledoalloc.c: Likewise.
8902         * libio/wfileops.c: Likewise.
8903         * libio/wgenops.c: Likewise.
8904         * libio/wstrops.c: Likewise.
8905         * malloc/mtrace.c: Likewise.
8906         * misc/error.c: Likewise.
8907         * misc/syslog.c: Likewise.
8908         * nss/getXXbyYY_r.c: Likewise.
8909         * nss/getXXent_r.c: Likewise.
8910         * nss/hosts-lookup.c: Likewise.
8911         * stdio-common/getw.c
8912         * stdio-common/printf-prs.c: Likewise.
8913         * stdio-common/printf_fp.c: Likewise.
8914         * stdio-common/printf_size.c: Likewise.
8915         * stdio-common/putw.c: Likewise.
8916         * stdio-common/scanf.c: Likewise.
8917         * stdio-common/sprintf.c: Likewise.
8918         * stdio-common/tmpfile64.c: Likewise.
8919         * stdio-common/vfprintf.c: Likewise.
8920         * stdio-common/vfscanf.c: Likewise.
8921         * stdlib/strfmon.c: Likewise.
8922         * sunrpc/auth_des.c: Likewise.
8923         * sunrpc/auth_none.c: Likewise.
8924         * sunrpc/auth_unix.c: Likewise.
8925         * sunrpc/authdes_prot.c: Likewise.
8926         * sunrpc/authuxprot.c: Likewise.
8927         * sunrpc/clnt_perr.c: Likewise.
8928         * sunrpc/clnt_raw.c: Likewise.
8929         * sunrpc/clnt_tcp.c: Likewise.
8930         * sunrpc/clnt_udp.c: Likewise.
8931         * sunrpc/clnt_unix.c: Likewise.
8932         * sunrpc/key_call.c: Likewise.
8933         * sunrpc/key_prot.c: Likewise.
8934         * sunrpc/openchild.c: Likewise.
8935         * sunrpc/pm_getmaps.c: Likewise.
8936         * sunrpc/pm_getport.c: Likewise.
8937         * sunrpc/pmap_clnt.c: Likewise.
8938         * sunrpc/pmap_prot.c: Likewise.
8939         * sunrpc/pmap_prot2.c: Likewise.
8940         * sunrpc/pmap_rmt.c: Likewise.
8941         * sunrpc/rpc_cmsg.c: Likewise.
8942         * sunrpc/rpc_prot.c: Likewise.
8943         * sunrpc/svc_authux.c: Likewise.
8944         * sunrpc/svc_raw.c: Likewise.
8945         * sunrpc/svc_simple.c: Likewise.
8946         * sunrpc/svc_tcp.c: Likewise.
8947         * sunrpc/svc_udp.c: Likewise.
8948         * sunrpc/svc_unix.c: Likewise.
8949         * sunrpc/xdr.c: Likewise.
8950         * sunrpc/xdr_array.c: Likewise.
8951         * sunrpc/xdr_mem.c: Likewise.
8952         * sunrpc/xdr_rec.c: Likewise.
8953         * sunrpc/xdr_ref.c: Likewise.
8954         * sunrpc/xdr_stdio.c: Likewise.
8955         * sysdeps/generic/_strerror.c: Likewise.
8956         * sysdeps/generic/printf_fphex.c: Likewise.
8957         * sysdeps/generic/tmpfile.c: Likewise.
8958         * sysdeps/gnu/errlist.awk: Likewise.
8959         * sysdeps/gnu/errlist.c: Likewise.
8960
8961         * libio/Makefile (routines): Remove iosprint.
8962         * libio/iosprintf.c: Removed
8963
8964
8965 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
8966
8967         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8968         non_dynamic_init and exported now.
8969         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8970         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8971         !SHARED.
8972         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8973         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8974         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8975
8976 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
8977
8978         * elf/dl-close.c (free_slotinfo): Check for end of list and return
8979         true in this case.
8980
8981         * locale/iso-639.def: Add language codes for Walloon.
8982
8983         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8984         total number of relocations performed.
8985
8986         * elf/sprof.c (load_profdata): If do_test provide information as
8987         to why loading failed.
8988         * elf/dl-profile.c (_dl_start_profile): Initialize all of
8989         hist_hdr.dimen.
8990
8991         * csu/set-init.c: Moved to...
8992         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
8993         * csu/Makefile: Don't compile set-init.
8994         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8995         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8996         to __libc_init.
8997         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8998         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8999         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
9000         __libc_init.
9001         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
9002         __libc_subinit.
9003
9004 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
9005
9006         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
9007         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
9008         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
9009         (_dl_deallocate_tls): New function.
9010         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
9011         _dl_deallocate_tls.
9012
9013 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9014
9015         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
9016         * stdio-common/tst-fseek.c (main): Add test for this.
9017
9018 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
9019
9020         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
9021
9022 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
9023
9024         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
9025         pointer before dereferencing.
9026
9027 2002-02-18  Roland McGrath  <roland@frob.com>
9028
9029         * sysdeps/mach/hurd/times.c: Fix typo in last change.
9030
9031         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
9032         Use task_policy in place of task_priority.
9033
9034         * sysdeps/generic/bits/mman.h
9035         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
9036         * sysdeps/mach/msync.c: New file.
9037
9038         * sysdeps/mach/powerpc/syscall.S: New file.
9039
9040         * mach/msg.c [MACH_MSG_OVERWRITE]
9041         (__mach_msg_trap, __mach_msg_overwrite): New functions.
9042         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
9043
9044         * sysdeps/mach/configure.in: Check for clock.defs to put into
9045         mach_interface_list.
9046         * sysdeps/mach/configure: Regenerated.
9047
9048         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
9049         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
9050         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
9051         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
9052         (mach-shortcuts): Add device_read_overwrite_request,
9053         device_read_overwrite, vm_read_overwrite, thread_switch.
9054
9055         * configure.in (base_machine): Set to $machine by default.
9056         * configure: Regenerated.
9057
9058         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
9059         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
9060         * sysdeps/mach/configure: Regenerated.
9061         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
9062
9063         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
9064
9065         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
9066
9067         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
9068         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
9069
9070 2002-02-17  Roland McGrath  <roland@frob.com>
9071
9072         * sysdeps/mach/hurd/times.c
9073         [NO_CREATION_TIME] (startup_time): New static variable.
9074         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
9075         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
9076         creation_time from task_basic_info.
9077         (__times): Use __gettimeofday instead of __host_get_time.
9078
9079         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
9080         Use untyped Mach IPC message format.
9081
9082         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
9083
9084         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
9085         _S_catch_exception_raise_state_identity,
9086         _hurdsig_fault_catch_exception_raise_state,
9087         _hurdsig_fault_catch_exception_raise_state_identity.
9088
9089         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
9090
9091         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
9092         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
9093
9094         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
9095         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
9096
9097         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
9098         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
9099         them as no-op macros.
9100         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
9101         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
9102
9103         * sysdeps/powerpc/dl-machine.h
9104         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9105
9106         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
9107         Use untyped Mach IPC message format.
9108
9109         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
9110         Handle untyped Mach IPC message formats.
9111
9112         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
9113         Expect different argument conventions when this is defined.
9114         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
9115         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
9116         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
9117         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9118         for OSF Mach variant.
9119         (faulted): Use mig_reply_error_t for REPLY.
9120         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9121         in __thread_set_exception_ports call.
9122         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9123         __mach_port_set_attributes in place of __mach_port_set_qlimit.
9124
9125         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9126         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9127         on Darwin, which includes bogons.
9128
9129         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9130         variable LOADBASE so it's not declared when it's not used.
9131
9132 2002-02-16  Roland McGrath  <roland@frob.com>
9133
9134         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9135         to use BI.creation_time.
9136
9137         * mach/Machrules (MIG): Add -x c to CPP value passed down.
9138
9139         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9140         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9141         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9142         host_page_size instead of vm_statistics.
9143
9144         * sysdeps/mach/Makefile (mach-before-compile): Don't include
9145         mach_interface.h here, since not all variants use that name.
9146
9147         * sysdeps/mach/configure.in: Add some checks for Mach headers
9148         to ensure a sane installation.
9149         (mach_interface_list): Define this variable by checking for .defs
9150         files found in various variants.
9151         * configure.in (mach_interface_list): AC_SUBST this.
9152         * config.make.in (mach-interface-list): New substituted variable.
9153         * mach/Makefile (user-interfaces): Define this using the value
9154         of $(mach-interface-list) instead of mach, mach4.
9155         Updated other references to mach_interface to use it as well.
9156
9157         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9158
9159         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9160         mig_reply_error_t for OSF Mach variant.
9161
9162         * mach/Makefile (routines): Remove bootprivport.
9163         * mach/bootprivport.c: File removed.  It has never been used.
9164
9165         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9166         Grok the OSF flavor of message format.
9167         (mach_msg_destroy_port): For MAKE_SEND and
9168         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9169         no-senders notification.
9170
9171 2002-02-06  Roland McGrath  <roland@frob.com>
9172
9173         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9174         to here if 2.0 compatibility enabled ...
9175         (libc: GLIBC_2.1.3): ... from here.
9176
9177 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
9178
9179         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9180         generation counter.
9181         * elf/dl-close.c (_dl_close): Likewise.
9182
9183 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
9184
9185         * elf/Makefile: Add rules to build and run tst-tls8.
9186         * elf/tst-tls8.c: New file.
9187         * elf/tst-tlsmod4.c: New file.
9188
9189         * stdlib/test-a64l.c (tests): Add more test cases.
9190
9191         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9192         Reported by Walter Harms <WHarms@bfs.de>.
9193
9194 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
9195
9196         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9197         definitions for struct sigcontext.
9198         Suggested by David Mosberger-Tang.
9199
9200 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9201
9202         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
9203         for removing reference of module in slotinfo list.
9204         (_dl_close): Use remove_slotinfo.
9205         * sysdeps/generic/dl-tls.c: General pretty printing.
9206         (oom): Define only if SHARED.
9207         (_dl_next_tls_modid): Correct starting point for the case we assume
9208         there is a gap.  Add missing instruction grouping (doh!).  Correct
9209         tests for reaching maximum index.
9210         * elf/Makefile: Add rules to build and run tst-tls7.
9211         * elf/tst-tls7.c: New file.
9212         * elf/tst-tlsmod3.c: New file.
9213
9214         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9215         USE_TLS.
9216         * elf/tst-tlsmod2.c: Likewise.
9217
9218         * elf/dl-close.c (_dl_close): When closing an object using TLS
9219         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9220         true.  Increment dl_tls_generation only if we closed any TLS-using
9221         object.
9222         * elf/tst-tls6.c: New file.
9223         * elf/Makefile: Add rules to build and run tst-tls6.
9224
9225         * po/da.po: Update from translation team.
9226
9227         * locale/categories.def: Fix typo [PR libc/2948].
9228         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9229         [PR libc/2949].
9230         * locale/iso-4217.def: Update from official version [PR libc/2950].
9231         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9232         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9233         message if input is too confusion instead of using assert.
9234         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9235         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9236
9237         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9238         * elf/tst-tls2.c: Likewise.
9239         * elf/tst-tls3.c: Likewise.
9240
9241 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9242
9243         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9244
9245 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9246
9247         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9248         if this is really necessary.
9249
9250         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9251         slotinfo array.
9252         (free_mem): Free memory for the slotinfo array if possible.
9253
9254 2002-02-12  Andreas Schwab  <schwab@suse.de>
9255
9256         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9257
9258 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9259
9260         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9261         TLS_DTV_UNALLOCATE.
9262         (oom): New function.
9263         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9264         (_dl_determine_tlsoffset): Likewise.
9265         (_dl_allocate_tls): Likewise.
9266         (__TLS_GET_ADDR): Define if not already defined.
9267         (_dl_tls_symaddr): New function.
9268         (allocate_and_init): New function.
9269         (__tls_get_addr): Actually implement handling of generation counter
9270         and deferred allocation.
9271         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9272         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9273         _dl_tls_generation.
9274         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9275         Declare _dl_tls_symaddr.
9276         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9277         SHARED.
9278         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9279         l_tls_previmage.
9280         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9281         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9282         (_dl_vsym): Likewise.
9283         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9284         layout.
9285         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9286         nextimage list handling.  Instead add all modules using TLS to
9287         dl_tls_dtv_slotinfo_list.
9288         * elf/dl-open.c (dl_open_worker): After successfully loading all
9289         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9290         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9291         empty segment don't do anything.  Remove handling of initimage list.
9292         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9293         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9294         * elf/dl-minimal.c: Define __libc_memalign.
9295         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9296         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9297         _dl_tls_generation.
9298         * include/stdlib.h: Declare __libc_memalign.
9299
9300         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9301         * elf/tst-tls4.c: New file.
9302         * elf/tst-tls5.c: New file.
9303         * elf/tst-tlsmod2.c: New file.
9304
9305         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9306
9307         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9308
9309         * elf/tst-tls1.c: Use test-skeleton.c.
9310         * elf/tst-tls2.c: Likewise.
9311         * elf/tst-tls3.c: Likewise.
9312
9313         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9314
9315 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9316
9317         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9318
9319 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9320
9321         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9322
9323         * elf/tst-tls3.c: New file.
9324         * elf/tst-tlsmod1.c: New file.
9325         * elf/Makefile: Add rules to build and run tst-tls3.
9326
9327         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9328         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9329         TLS relocations.
9330
9331         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9332
9333         * po/fr.po: Update from translation team.
9334
9335         * elf/tls-macros.h: Add alternative macros for use in PIC.
9336
9337         * elf/dl-lookup.c: Include <tls.h>.
9338         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9339
9340         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9341         required by passing pointer to last element of the list.
9342
9343         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9344         l_tls_initimage to a place where it actually is performed.
9345
9346         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9347         after globfree() calls.
9348
9349         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9350         (openaux): Pass open_mode as new last argument to _dl_map_object.
9351         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9352         open_mode element of args variable with it.
9353         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9354         _dl_map_object_deps.
9355         * elf/rtld.c (dl_main): Add zero as last parameter to
9356         _dl_map_object_deps call.
9357         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9358         * elf/nodlopen2.c: New file.
9359         * elf/nodlopenmod2.c: New file.
9360         * elf/Makefile: Add rules to build and run nodlopen2.
9361
9362         * elf/tst-tls1.c: Move TLS helper macros to...
9363         * elf/tls-macros.h: ...here.  New file.
9364         * elf/tst-tls2.c: New file.
9365         * elf/Makefile (tests): Add tst-tls2.
9366         (distribute): Add tls-macros.h.
9367
9368         * po/sv.po: Update from translation team.
9369
9370         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9371         architecture specific definitions from the actual test code.
9372
9373         * po/tr.po: Update from translation team.
9374
9375 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9376
9377         * elf/Makefile (tests): Add tst-tls1.
9378         * elf/tst-tls1.c: New file.
9379
9380         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9381         alignment of TCB for now.
9382
9383         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9384         initialization image for the application itself.
9385
9386         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9387         loop to initialize TLS block.
9388
9389 2002-02-08  Richard Henderson  <rth@redhat.com>
9390
9391         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9392         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9393
9394         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9395
9396 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9397
9398         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9399
9400 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9401
9402         * po/ca.po: Update from translation team.
9403         * po/sk.po: Likewise.
9404
9405         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9406         (dl_main): Move dtv/static TLS handling before relocation.
9407         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9408         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9409         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9410         so far uses TLS initialize GL(dl_tls_static_size) and
9411         GL(dl_tls_static_align) to account for the TCB.
9412         (_dl_allocate_tls): New function.
9413         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9414         _dl_initial_dtv_malloced.
9415
9416         * configure.in: Test for __builtin_memset more realistically.
9417
9418         * csu/version.c (banner): If TLS support is available say so.
9419
9420 2002-02-04  H.J. Lu  <hjl@gnu.org>
9421
9422         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9423         __attribute_used__.
9424         (__dl_runtime_resolve): Likewise.
9425
9426         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9427         declaration.
9428
9429 2001-11-15  H.J. Lu  <hjl@gnu.org>
9430
9431         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9432         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9433
9434         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9435
9436 2002-02-07  H.J. Lu  <hjl@gnu.org>
9437
9438         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9439         ".set noreorder".
9440         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9441         Likewise.
9442
9443 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9444
9445         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9446
9447         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9448         ___tls_get_addr_internal.
9449         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9450
9451         * po/ko.po: Update from translation team.
9452
9453 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9454
9455         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9456         attribute, change __pad{1,2} type to unsigned int.
9457         (struct stat64): Remove packed attribute.
9458
9459 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9460
9461         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9462
9463 2002-02-07  Andreas Schwab  <schwab@suse.de>
9464
9465         * configure.in: Fix check for -zcombreloc.
9466
9467 2002-02-06  H.J. Lu  <hjl@gnu.org>
9468
9469         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9470         * configure.in: Check if __builtin_memset really works.
9471         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9472         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9473
9474 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9475
9476         * io/bug-ftw3.c (main): Don't try the test if root.
9477
9478 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9479
9480         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9481         constraints.
9482         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9483         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9484         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9485         Likewise.
9486         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9487         a weak alias for __clone.
9488         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9489         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9490         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9491         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9492         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9493         a weak alias for __mmap64.
9494
9495 2002-02-05  H.J. Lu  <hjl@gnu.org>
9496
9497         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9498         (atomic_add): Likewise.
9499         (compare_and_swap): Likewise.
9500         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9501
9502 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9503
9504         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9505
9506         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9507         alignment of the TCB and store total size and alignment of static
9508         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9509         tls_index is a typedef.
9510         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9511         _dl_tls_static_align.
9512         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9513         * elf/dl-support.c: Define _dl_tls_static_size and
9514         _dl_tls_static_align.
9515
9516 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9517
9518         * configure.in: Add --without-tls option.
9519         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9520         --without-tls is given.
9521
9522         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9523
9524         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9525
9526 2002-02-06  Roland McGrath  <roland@frob.com>
9527
9528         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9529         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9530
9531         * scripts/versions.awk: Improve error message for missing version.
9532         Each version inherits from the last one only if they have the same
9533         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9534         but not GLIBC_x and FOO_y.
9535
9536         * scripts/firstversions.awk: Handle libraries that don't have each
9537         particular version named in the third column of shlib-versions.
9538
9539         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9540
9541 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9542
9543         * Versions.def [ld]: Add GLIBC_2.3.
9544         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9545         * elf/Makefile (dl-routines): Add dl-tls.
9546         (distribute): Add dl-tls.h.
9547         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9548         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9549         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9550         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9551         along with the other info in the link map.  Change queueing of init
9552         images for double linked list.  Use _dl_next_tls_modid to compute
9553         l_tls_modid.
9554         * elf/rtld.c (_dl_start_final): Store alignment requirement
9555         along with the other info in rtld map and executable map.
9556         (dl_main): Add ld.so to the init image list if necessary.  Compute
9557         final module ID with _dl_next_tls_modid.
9558         * include/link.h (struct link_map): Add l_tls_previmage and
9559         l_tls_align.
9560         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9561         * sysdeps/i386/elf/Versions: New file.
9562         * sysdeps/generic/dl-tls.c: New file.
9563         * sysdeps/generic/dl-tls.h: New file.
9564         * sysdeps/i386/dl-tls.h: New file.
9565
9566 2002-02-06  Roland McGrath  <roland@frob.com>
9567
9568         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9569         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9570
9571 2002-01-05  Roland McGrath  <roland@frob.com>
9572
9573         * sysdeps/mach/configure.in: New file.
9574         * sysdeps/mach/configure: New generated file.
9575
9576         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9577         It has never been used by anything.
9578
9579 2002-02-06  H.J. Lu  <hjl@gnu.org>
9580
9581         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9582         is included.
9583
9584 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9585
9586         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9587         attribute((packed)) to counter stupid people misusing gcc options.
9588         (struct stat64): Likewise.
9589
9590 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9591
9592         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9593         the variables which are used as booleans.
9594
9595 2002-02-06  Andreas Jaeger  <aj@suse.de>
9596
9597         * include/libc-symbols.h (INTUSE): Renamed from INT.
9598         * elf/dl-deps.c: Change users.
9599         * sysdeps/generic/dl-sysdep.c: Likewise.
9600         * sysdeps/generic/dl-cache.c: Likewise.
9601         * elf/dl-reloc.c: Likewise.
9602         * elf/rtld.c: Likewise.
9603         * elf/dl-version.c: Likewise.
9604         * elf/dl-load.c: Likewise.
9605         * elf/dl-dst.h: Likewise.
9606         * elf/dl-init.c: Likewise.
9607         * elf/dl-error.c: Likewise.
9608         * elf/dl-fini.c: Likewise.
9609         * elf/dl-runtime.c: Likewise.
9610         * elf/do-lookup.h: Likewise.
9611
9612         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9613         definition.
9614         * stdio-common/_itowa.h: Likewise.
9615
9616 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9617
9618         * elf/dl-minimal.c: Define _itoa_lower_digits.
9619
9620         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9621         DT_FLAGS set.
9622
9623         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9624         loading modules with the DF_STATIC_TLS flag set.
9625         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9626         element.
9627         * include/link.h (struct link_map): Add l_flags field.
9628         * elf/elf.h (DF_STATIC_TLS): New definition.
9629
9630         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9631         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
9632
9633         * elf/rtld.c (process_dl_debug): Correct printing help message.
9634         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9635         for %s.
9636
9637         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9638         definition and pass &errno in use of this variable.
9639         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9640
9641 2002-02-04  Andreas Schwab  <schwab@suse.de>
9642
9643         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9644         * locale/programs/charmap-dir.c: Wrap calls that output messages
9645         with WITH_CUR_LOCALE.  Include "localedef.h" first.
9646         * locale/programs/charmap.c: Likewise.
9647         * locale/programs/ld-address.c: Likewise.
9648         * locale/programs/ld-collate.c: Likewise.
9649         * locale/programs/ld-ctype.c: Likewise.
9650         * locale/programs/ld-identification.c: Likewise.
9651         * locale/programs/ld-measurement.c: Likewise.
9652         * locale/programs/ld-messages.c: Likewise.
9653         * locale/programs/ld-monetary.c: Likewise.
9654         * locale/programs/ld-name.c: Likewise.
9655         * locale/programs/ld-numeric.c: Likewise.
9656         * locale/programs/ld-paper.c: Likewise.
9657         * locale/programs/ld-telephone.c: Likewise.
9658         * locale/programs/ld-time.c: Likewise.
9659         * locale/programs/linereader.c: Likewise.
9660         * locale/programs/linereader.h: Likewise.
9661         * locale/programs/localedef.c: Likewise.
9662         * locale/programs/locfile.c: Likewise.
9663         * locale/programs/repertoire.c: Likewise.
9664
9665 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9666
9667         * elf/rtld.c (_dl_start_final): Determine load address to locate
9668         ehdr with GL(dl_rtld_map).l_map_start.
9669
9670         * po/ca.po: Update from translation team.
9671
9672         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9673         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9674         header entry.
9675         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9676         _dl_tls_module_cnt.
9677         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9678
9679 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
9680
9681         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9682         * include/link.h (struct link_map): Add various members for TLS
9683         information.
9684         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9685         _rtld_tlsoffset, add _dl_initimage_list.
9686         * sysdeps/i386/dl-lookupcfg.h: New file.
9687         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9688         TLS relocation.  When using TLS we now use RESOLVE_MAP.
9689         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9690         is used.
9691
9692         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9693         unused.
9694
9695         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9696         thread-pointer as soon as possible.
9697         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
9698         elements in rtld_global.
9699         * sysdeps/generic/tls.h: New file.
9700         * elf/Makefile (distribute): Add tls.h.
9701         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9702         relocations.  Not complete yet.
9703
9704         * resolv/resolv.h: Allow user to define __need_res_state and only
9705         define __res_start structure then.
9706         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9707
9708         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9709         dl_cpuclock_offset initialization to _dl_start_final.
9710         (_dl_show_auxv): Avoid unnecessary sign extension.
9711         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9712
9713 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9714
9715         * config.h.in: Add HAVE_TLS_SUPPORT.
9716         * sysdeps/i386/elf/configure.in: New file.
9717
9718 2002-02-03  Andreas Schwab  <schwab@suse.de>
9719
9720         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9721         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
9722
9723 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
9724
9725         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9726         alloca if the memory reqirements are too high.
9727
9728 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9729
9730         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9731         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9732         the former is available anyway and speed isn't important here.
9733         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9734         * elf/dl-version.c (match_symbol): Likewise.
9735         (_dl_check_map_versions): Likewise.
9736         * elf/rtld.c (process_envvars): Likewise.
9737         (print_statistics): Likewise.
9738         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9739         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
9740         bases.  Add assert to catch uses of unimplemented features.
9741         (__strsep): Add assert to catch uses of unimplemented features.
9742         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
9743         and avoid inline optimization.
9744         * elf/rtld.c (process_envvars): Likewise.
9745         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9746         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9747         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9748
9749 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9750
9751         * stdio-common/_itoa.h: Minor simplifications of the code.
9752         * stdio-common/_itoa.c: Likewise.
9753
9754         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9755         instead of _dl_printf for debugging info output.
9756
9757         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9758         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9759
9760 2002-02-01  H.J. Lu  <hjl@gnu.org>
9761
9762         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9763         (atomic_add): Likewise.
9764         (compare_and_swap): Return 0 only when failed to compare. Use
9765         branch likely.
9766
9767         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9768         branch likely.
9769
9770 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9771
9772         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9773
9774 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9775
9776         * elf/dl-minimal.c (__strsep): New minimal implementation.
9777
9778 2002-02-02  Paul Eggert  <eggert@twinsun.com>
9779
9780         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9781         (__mktime_internal): If no tm_isdst is requested, prefer solutions
9782         with tm_isdst > 0 when the requested time falls within a
9783         spring-forward gap [PR libc/2894].
9784
9785 2002-02-03  Andreas Schwab  <schwab@suse.de>
9786
9787         * stdio-common/tst-rndseek.c: Increase timeout.
9788
9789 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9790
9791         Change ld.so to not use functions which are exported.  One cannot
9792         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
9793         definitions.
9794         * include/libc-symbols.h: Define INT and INTDEF.
9795         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9796         _dl_signal_error_internal, _dl_map_object_internal,
9797         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9798         _dl_lookup_versioned_symbol_internal,
9799         _dl_relocate_object_internal, _dl_debug_state_internal,
9800         _dl_start_profile_internal, and _dl_unload_cache_internal.
9801         * include/dlfcn.h: Declare _dl_catch_error_internal.
9802         * elf/rtld.c: Use INT for calls to any of the *_internal functions
9803         above.  Add INTDEF to function definitions.
9804         * elf/dl-debug.c: Likewise.
9805         * elf/dl-deps.c: Likewise.
9806         * elf/dl-dst.h: Likewise.
9807         * elf/dl-error.c: Likewise.
9808         * elf/dl-fini.c: Likewise.
9809         * elf/dl-init.c: Likewise.
9810         * elf/dl-load.c: Likewise.
9811         * elf/dl-lookup.c: Likewise.
9812         * elf/dl-misc.c: Likewise.
9813         * elf/dl-open.c: Likewise.
9814         * elf/dl-profile.c: Likewise.
9815         * elf/dl-reloc.c: Likewise.
9816         * elf/dl-runtime.c: Likewise.
9817         * elf/dl-version.c: Likewise.
9818         * elf/do-lookup.h: Likewise.
9819         * sysdeps/generic/dl-cache.c: Likewise.
9820         * sysdeps/generic/dl-sysdep.c: Likewise.
9821         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9822         instead of _dl_init.
9823         * sysdeps/arm/dl-machine.h: Likewise.
9824         * sysdeps/cris/dl-machine.h: Likewise.
9825         * sysdeps/hppa/dl-machine.h: Likewise.
9826         * sysdeps/i386/dl-machine.h: Likewise.
9827         * sysdeps/ia64/dl-machine.h: Likewise.
9828         * sysdeps/m68k/dl-machine.h: Likewise.
9829         * sysdeps/mips/dl-machine.h: Likewise.
9830         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9831         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9832         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9833         * sysdeps/sh/dl-machine.h: Likewise.
9834         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9835         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9836         * sysdeps/x86_64/dl-machine.h: Likewise.
9837         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9838
9839         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9840         and _dl_debug_initialize.
9841
9842         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
9843         more information.
9844         * elf/rtld.c (dl_main): Avoid strrchr.
9845         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9846         result of readlink.  Search from the back for '/'.
9847
9848         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9849         strncpy if possible.
9850
9851         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
9852         strncmp.
9853         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
9854         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9855         strspn, and strcspn.
9856         (process_envvars): Don't use strcspn.
9857
9858         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9859         (_dl_dst_substitute): Likewise.
9860
9861 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9862
9863         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9864         code which is never used when relocating ld.so itself.
9865
9866         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9867         starting ld.so itself.  Move l_addr variable initialization closer
9868         to use.
9869         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9870
9871 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9872
9873         * Versions.def (libc): Add GLIBC_PRIVATE.
9874         (libdb, libnss_db, libdb1): Remove.
9875         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9876         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9877         (libpthread): Add GLIBC_PRIVATE.
9878         (libresolv): Likewise, remove GLIBC_2.1.
9879         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9880         GLIBC_2.2.3, GLIBC_2.3.
9881         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9882         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9883         _dl_sym, _dl_vsym): Likewise.
9884         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9885         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9886         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9887         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9888         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9889         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9890         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9891         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9892         Likewise.
9893         (_dl_object_relocation_scope): Remove.
9894         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9895         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9896         __gconv_cache): Move to GLIBC_PRIVATE.
9897         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9898         __internal_setnetgrent): Likewise.
9899         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9900         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9901         * locale/Versions (__collate_element_hash, __collate_element_strings,
9902         __collate_symbol_classes, __collate_symbol_hash,
9903         __collate_symbol_strings, _nl_current_LC_COLLATE,
9904         _nl_current_LC_CTYPE): Likewise.
9905         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9906         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9907         (libnss_nis, libnss_nisplus): Likewise.
9908         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9909         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9910         (libnss_files): Move all symbols to GLIBC_PRIVATE.
9911         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9912         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9913         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9914         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9915         __ns_get16, __ns_samename): Likewise.
9916         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9917         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9918         GLIBC_PRIVATE.
9919         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9920         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9921         __libc_connect): Likewise.
9922         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9923         Likewise.
9924         * stdlib/Versions (__libc_system): Likewise.
9925         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9926         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9927         * sysdeps/ia64/fpu/Versions: Likewise.
9928         * sysdeps/ia64/Versions: Likewise.
9929         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9930         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9931         to GLIBC_PRIVATE.
9932         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9933         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9934         __libc_sigaction): Likewise.
9935         * termios/Versions (__libc_tcdrain): Likewise.
9936
9937         * misc/sys/cdefs (__attribute_noinline__): Define.
9938         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9939         __attribute_noinline__.
9940
9941         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9942         * elf/dl-xstat64.c: New file.
9943         * elf/dl-fxstat64.c: New file.
9944         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9945         don't export __fxstat64 at multiple versions.
9946         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9947         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9948
9949 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
9950
9951         * locale/program/ld-collate.c (collate_finish): Assign a wide
9952         char collation sequence value to multi character collating
9953         elements, and avoid over writing by non-character elements.
9954
9955 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9956
9957         * elf/Makefile (distribute): Add dl-procinfo.c.
9958         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9959         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9960
9961 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9962
9963         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9964         definition.
9965         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9966         _rtld_global struct.
9967         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9968         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9969         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9970         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9971         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9972         _dl_fpu_control_set): Remove unused externs.
9973         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9974         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9975         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9976         related variables in _rtld_global struct.
9977         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9978         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9979         unused extern.
9980
9981 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9982
9983         * sysdeps/generic/dl-procinfo.c: New file.
9984
9985 2002-02-01  Andreas Schwab  <schwab@suse.de>
9986
9987         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9988
9989 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9990
9991         * elf/rtld.c (_dl_start): Mark as internal_function.
9992         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9993         in register.
9994         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9995         General pretty printing.
9996
9997 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9998
9999         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
10000         * elf/dl-reloc.c: Pretty printing.
10001         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
10002         procinfo-related variables in rtld_global struct.
10003         * elf/dl-support.c: Likewise.
10004         * elf/rtld.c: Likewise.
10005         * sysdeps/i386/i686/Makefile: Likewise.
10006         * sysdeps/i386/i686/hp-timing.c: Likewise.
10007         * sysdeps/i386/i686/hp-timing.h: Likewise.
10008         * sysdeps/ia64/Makefile: Likewise.
10009         * sysdeps/ia64/hp-timing.c: Likewise.
10010         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
10011         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
10012         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
10013         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
10014         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10015         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
10016         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
10017         * sysdeps/x86_64/Makefile: Likewise.
10018
10019         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
10020         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
10021         _dl_debug_fd to rtld_global.
10022         * elf/Versions: Likewise.
10023         * elf/dl-close.c: Likewise.
10024         * elf/dl-iteratephdr.c: Likewise.
10025         * elf/dl-lookup.c: Likewise.
10026         * elf/dl-misc.c: Likewise.
10027         * elf/dl-open.c: Likewise.
10028         * elf/dl-support.c: Likewise.
10029         * elf/do-lookup.h: Likewise.
10030         * elf/rtld.c: Likewise.
10031         * sysdeps/generic/dl-cache.c: Likewise.
10032         * sysdeps/generic/dl-sysdep.c: Likewise.
10033         * sysdeps/ia64/Versions: Likewise.
10034         * sysdeps/unix/clock_gettime.c: Likewise.
10035         * sysdeps/unix/clock_settime.c: Likewise.
10036         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10037         * sysdeps/sparc/Versions: Removed.
10038         * sysdeps/i386/i686/Versions : Removed.
10039         * sysdeps/x86_64/Versions: Removed.
10040         * configure.in: Define HAVE_PROTECTED if .protected is available.
10041         * config.h.in: Add entry for HAVE_PROTECTED.
10042
10043 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
10044
10045         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
10046         code in struct _rtld_global.  Export this struct, remove all
10047         exports for the signal variables.
10048         * sysdeps/arm/dl-machine: Likewise.
10049         * sysdeps/generic/dl-origin: Likewise.
10050         * sysdeps/generic/dl-sysdep: Likewise.
10051         * sysdeps/generic/dl-cache: Likewise.
10052         * sysdeps/hppa/dl-fptr: Likewise.
10053         * sysdeps/hppa/dl-machine: Likewise.
10054         * sysdeps/cris/dl-machine: Likewise.
10055         * sysdeps/i386/dl-machine: Likewise.
10056         * sysdeps/ia64/dl-machine: Likewise.
10057         * sysdeps/m68k/dl-machine: Likewise.
10058         * sysdeps/mach/hurd/dl-sysdep: Likewise.
10059         * sysdeps/mips/mips64/dl-machine: Likewise.
10060         * sysdeps/mips/dl-machine: Likewise.
10061         * sysdeps/powerpc/elf/libc-start: Likewise.
10062         * sysdeps/powerpc/dl-machine: Likewise.
10063         * sysdeps/powerpc/dl-start: Likewise.
10064         * sysdeps/sparc/sparc32/dl-machine: Likewise.
10065         * sysdeps/sparc/sparc64/dl-machine: Likewise.
10066         * sysdeps/sh/dl-machine: Likewise.
10067         * sysdeps/s390/s390-32/dl-machine: Likewise.
10068         * sysdeps/s390/s390-64/dl-machine: Likewise.
10069         * sysdeps/unix/sysv/aix/libc-start: Likewise.
10070         * sysdeps/unix/sysv/aix/start-libc: Likewise.
10071         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
10072         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
10073         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
10074         * sysdeps/x86_64/dl-machine: Likewise.
10075
10076 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10077
10078         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
10079         are too high.
10080
10081 2002-01-31  Andreas Schwab  <schwab@suse.de>
10082
10083         * sysdeps/posix/readv.c: Check for ssize_t overflow.
10084
10085 2002-01-31  Andreas Schwab  <schwab@suse.de>
10086
10087         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
10088         reference to _dl_pagesize.
10089
10090 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
10091
10092         * Versions.def [ld]: Add GLIBC_2.3.
10093         * elf/dl-addr.c: Move global variables for SHARED code in struct
10094         _rtld_global.  Export this struct, remove all exports for the
10095         signal variables.
10096         * elf/dl-close.c: Likewise.
10097         * elf/dl-conflict.c: Likewise.
10098         * elf/dl-debug.c: Likewise.
10099         * elf/dl-deps.c: Likewise.
10100         * elf/dl-dst.h: Likewise.
10101         * elf/dl-error.c: Likewise.
10102         * elf/dl-fini.c: Likewise.
10103         * elf/dl-init.c: Likewise.
10104         * elf/dl-iteratephdr.c: Likewise.
10105         * elf/dl-libc.c: Likewise.
10106         * elf/dl-load.c: Likewise.
10107         * elf/dl-lookup.c: Likewise.
10108         * elf/dl-minimal.c: Likewise.
10109         * elf/dl-object.c: Likewise.
10110         * elf/dl-open.c: Likewise.
10111         * elf/dl-profile.c: Likewise.
10112         * elf/dl-profstub.c: Likewise.
10113         * elf/dl-reloc.c: Likewise.
10114         * elf/dl-runtime.c: Likewise.
10115         * elf/dl-support.c: Likewise.
10116         * elf/dl-sym.c: Likewise.
10117         * elf/dl-version.c: Likewise.
10118         * elf/do-lookup.h: Likewise.
10119         * elf/do-rel.h: Likewise.
10120         * elf/dynamic-link.h: Likewise.
10121         * elf/rtld.c: Likewise.
10122         * sysdeps/generic/dl-cache.c: Likewise.
10123         * sysdeps/generic/dl-sysdep.c: Likewise.
10124         * sysdeps/generic/ldsodefs.h: Likewise.
10125         * sysdeps/generic/libc-start.c: Likewise.
10126         * sysdeps/i386/dl-machine.h: Likewise.
10127         * sysdeps/ia64/dl-fptr.c: Likewise.
10128         * sysdeps/ia64/dl-machine.h: Likewise.
10129         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10130         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10131         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10132         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10133         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10134         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10135         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10136         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10137
10138 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10139
10140         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10141         to avoid warning
10142         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10143
10144         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10145         SHARED version.
10146         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10147
10148         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10149
10150 2002-01-29  Ben Collins  <bcollins@debian.org>
10151
10152         * string/bits/string2.h (__mempcpy): Protect size arg for
10153         addition when using __builtin_memcpy.
10154
10155 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10156
10157         * stdlib/Makefile (tests): Add tst-qsort.
10158         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
10159
10160         * manual/signal.texi (Process Signal Mask): Document that
10161         pthread_sigmask, not sigprocmask, must be used in MT programs.
10162         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10163
10164         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10165         found.
10166         * misc/Makefile (tests): Add tst-hsearch.
10167         * misc/tst-hsearch.c: New file.
10168
10169 2002-01-18  Wolfram Gloger  <wg@malloc.de>
10170
10171         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10172         * malloc/malloc.h: Likewise.
10173         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10174         * malloc/arena.c: New file.
10175         * malloc/hooks.c: New file.
10176         * malloc/tst-mallocstate.c: New file.
10177         * malloc/Makefile: Add new testcase tst-mallocstate.
10178         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
10179
10180 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10181
10182         * stdlib/msort.c: Remove last patch.  The optimization violates the
10183         same rule which qsort.c had problems with.
10184
10185 2002-01-27  Paul Eggert  <eggert@twinsun.com>
10186
10187         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10188         to a pivot element that lies outside the array to be sorted, as
10189         ISO C99 requires that the comparison function be called only with
10190         addresses of array elements [PR libc/2880].
10191
10192 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10193
10194         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10195         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
10196
10197         * timezone/asia: Update from tzdata2002b.
10198         * timezone/australasia: Likewise.
10199         * timezone/backward: Likewise.
10200         * timezone/europe: Likewise.
10201         * timezone/leapseconds: Likewise.
10202         * timezone/iso3166.tab: Likewise.
10203         * timezone/zone.tab: Likewise.
10204
10205 2002-01-23  Richard Henderson  <rth@redhat.com>
10206
10207         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10208
10209 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10210
10211         * string/strxfrm.c: Allocate one more byte for rulearr and clear
10212         this element [PR libc/2855].
10213
10214         * string/strcoll.c: Handle zero-length arguments specially
10215         [PR libc/2856].
10216
10217 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
10218
10219         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10220         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10221         short lengths and constant src.
10222         (strcpy): Don't optimize for gcc 3.0+.
10223         (__stpcpy): For gcc 3.0+, don't use
10224         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10225         for short string literal src.
10226
10227 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10228
10229         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10230         Set for arm, too.
10231
10232 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10233
10234         * manual/llio.texi (Linked Channels, Cleaning Streams):
10235         Make it clearer that a just-opened input stream might need cleaning.
10236
10237 2002-01-21  H.J. Lu  <hjl@gnu.org>
10238
10239         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10240         Don't use label at end of compound statement.
10241
10242 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10243
10244         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10245         Remove test for negative integer arg; sin_pi does it correctly.
10246
10247 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10248
10249         * nscd/Makefile (distribute): Filter out xmalloc.c.
10250
10251 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10252
10253         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10254         Set offset if read end wasn't the buffer end.
10255         (_IO_file_seekoff_mmap): New function.
10256         (_IO_file_xsgetn_mmap): New function.
10257         (_IO_file_jumps_mmap): Use the two new functions.
10258         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10259         != end buffer.
10260         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10261         _IO_file_underflow_mmap.
10262         * libio/iofopen.c: Don't position file descriptor at end of file.
10263         * libio/tst-widetext.c: Improve error messages.
10264         * stdio-common/tst-rndseek.c: Likewise.
10265
10266 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10267
10268         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10269         end of enum for !_GNU_SOURCE.
10270         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10271         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10272         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10273         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10274         values unless _GNU_SOURCE.
10275
10276         * iconvdata/tcvn5712-1.c: Minor cleanups.
10277
10278 2002-01-18  Andreas Schwab  <schwab@suse.de>
10279
10280         * sysdeps/unix/sysv/linux/configure.in
10281         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10282
10283 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10284
10285         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10286         more efficient "Towers of Hanoi" mergesort.
10287         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10288         for generic, sizeof(int) and sizeof(long) variants respectively.
10289
10290 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10291
10292         * manual/syslog.texi (openlog): Describe possible problems with
10293         first parameter.
10294         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10295
10296         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10297         * nscd/connections.c (begin_drop_privileges): New function.
10298         (finish_drop_privileges): New function.
10299         (nscd_init): Call the new functions which also install all groups
10300         for the server user.
10301         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10302         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10303
10304 2002-01-17  H.J. Lu  <hjl@gnu.org>
10305
10306         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10307         `const' from `got'.
10308
10309 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10310
10311         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10312         instructions for pointer operations.
10313         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10314
10315 2002-01-17  Andreas Jaeger  <aj@suse.de>
10316
10317         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10318         __uint128_t build-in.
10319
10320         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10321         PowerPC, sync with 2.2 branch.
10322
10323 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10324
10325         * posix/getconf.c: Update copyright year.
10326         * nss/getent.c: Likewise.
10327         * nscd/nscd_nischeck.c: Likewise.
10328         * iconv/iconvconfig.c: Likewise.
10329         * iconv/iconv_prog.c: Likewise.
10330         * elf/ldconfig.c: Likewise.
10331         * catgets/gencat.c: Likewise.
10332         * csu/version.c: Likewise.
10333         * elf/ldd.bash.in: Likewise.
10334         * elf/sprof.c (print_version): Likewise.
10335         * locale/programs/locale.c: Likewise.
10336         * locale/programs/localedef.c: Likewise.
10337         * nscd/nscd.c (print_version): Likewise.
10338         * debug/xtrace.sh: Likewise.
10339         * malloc/memusage.sh: Likewise.
10340         * malloc/mtrace.pl: Likewise.
10341
10342 2002-01-16  Andreas Schwab  <schwab@suse.de>
10343
10344         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10345         reliably remove "-ia64" from rtld name.
10346
10347 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10348
10349         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10350         Patch by Yu Shao <yshao@redhat.com>.
10351
10352 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10353
10354         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10355         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10356         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10357
10358 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10359
10360         * sysdeps/s390/fpu/libm-test-ulps: Update.
10361
10362 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10363
10364         * elf/elf.h: Update x86 relocations.
10365
10366 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10367
10368         * locale/programs/charmap.c (new_width): Check whether byte
10369         sequences for both ends of range have the same length.
10370
10371 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10372
10373         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10374
10375 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10376
10377         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10378         string literals.
10379         (__full_ieee754_sqrt): Add __attribute_used__.
10380
10381 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10382
10383         * sysdeps/generic/group_member.c (__group_member): Also check
10384         groups[0] [PR libc/2781].
10385
10386 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10387
10388         * Makefile (distribute): Add scripts/cpp.
10389         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10390         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10391         unwind-dw2-fde.h, and dwarf2.h.
10392         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10393         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10394         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10395         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10396
10397 2002-01-07  Roland McGrath  <roland@frob.com>
10398
10399         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10400         volatile on type of ARGC so the compiler doesn't get clever.
10401
10402 2002-01-07  Andreas Jaeger  <aj@suse.de>
10403
10404         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10405         * sysdeps/i386/bits/byteswap.h: Likewise.
10406         * sysdeps/ia64/bits/byteswap.h: Likewise.
10407         * sysdeps/m68k/bits/byteswap.h: Likewise.
10408         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10409         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10410
10411 2002-01-02  Bruno Haible  <bruno@clisp.org>
10412
10413         * intl/plural.y: Fix %expect count.
10414
10415 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10416
10417         * elf/Makefile (routines, shared-only-routines): Add
10418         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10419         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10420         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10421         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10422         Optimize if .eh_frame section contains no FDEs.
10423         (__register_frame, __deregister_frame_info_bases,
10424         __deregister_frame): Likewise.
10425         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10426         DW_CFA_restore handling.
10427
10428 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10429
10430         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10431
10432         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10433         for x < 0.25 and restore original range reduction method.
10434         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10435
10436 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10437
10438         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10439         (_IO_file_close_mmap): New function.
10440         (_IO_file_jumps_mmap): New variable.
10441         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10442         trying to convert rest of byte buffer.
10443         (_IO_wfile_underflow_mmap): New function.
10444         (_IO_wfile_jumps_mmap): New variable.
10445         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10446         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10447         (_IO_new_fopen): Call __fopen_internal.
10448         * libio/iofopen64.c: Just call __fopen_internal.
10449         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10450         successfully.
10451         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10452         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10453         _IO_file_close_mmap.
10454
10455         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10456         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10457
10458         * stdio-common/Makefile (tests): Add tst-rndseek.
10459         * stdio-common/tst-rndseek.c: New file.
10460
10461 2002-01-05  Roland McGrath  <roland@frob.com>
10462
10463         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10464         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10465         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10466         * sysdeps/mach/hurd/configure: Regenerated.
10467
10468 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10469
10470         * elf/elf.h: Add more TLS definitions.
10471
10472 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10473
10474         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10475
10476 2002-01-02  Roland McGrath  <roland@frob.com>
10477
10478         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10479         __sigisemptyset.  Don't use MASK uninitialized.
10480
10481         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10482         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10483         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10484         __sigdelset, __sigaddset, __sigorset.
10485
10486         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10487         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10488
10489         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10490         _hurd_ports is null.
10491
10492         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10493         for old CMU and new OSF Mach interface flavors.
10494         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10495         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10496
10497         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10498
10499         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10500         Pass extra arguments to task_create for OSF variant.
10501         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10502
10503         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10504         conditional on [HAVE_AUX_VECTOR].
10505
10506         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10507         mach_msg_timeout_t as type of final argument.
10508
10509         * hurd/privports.c (__get_privileged_ports):
10510         Change host_priv_t to mach_port_t in argument type.
10511         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10512         Update decls.
10513
10514         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10515         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10516         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10517         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10518         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10519         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10520
10521 2002-01-01  Roland McGrath  <roland@frob.com>
10522
10523         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10524
10525 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10526
10527         * include/stdlib.h: Define inlines for the _l variants of the strto*
10528         functions.
10529
10530 2002-01-01  Roland McGrath  <roland@frob.com>
10531
10532         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10533
10534         * mach/Machrules (MIG): Set CPP as well as CC.
10535
10536 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10537
10538         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10539         locale to parse /proc/loadavg [PR libc/2760].
10540
10541 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10542
10543         * elf/dl-conflict.c: Include sys/param.h.
10544         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10545         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10546         warning.
10547         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10548         literals to avoid warnings.
10549
10550 2001-12-31  Andreas Jaeger  <aj@suse.de>
10551
10552         * configure.in: Don't check for gsed since we do not use it anywhere.
10553
10554 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10555
10556         * io/fts.c: Update from BSD to fix memory leaks.
10557
10558 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10559
10560         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10561         * elf/chroot_canon.c: Likewise.
10562         * elf/dl-object.c: Likewise.
10563         * iconv/iconv_charmap.c: Likewise.
10564         * iconv/iconv_prog.c: Likewise.
10565         * libio/iogetdelim.c: Likewise.
10566         * locale/lc-time.c: Likewise.
10567         * stdlib/canonicalize.c: Likewise.
10568         * sunrpc/svc.c: Likewise.
10569         * sysdeps/generic/glob.c: Likewise.
10570
10571 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10572
10573         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10574         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10575         remove high order bit from the program counter.
10576         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10577
10578 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10579
10580         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10581         unnecessary code and add missing reloc types.
10582         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10583         case for reloc type R_390_NONE.
10584
10585 2001-12-28  Andreas Jaeger  <aj@suse.de>
10586
10587         * io/bug-ftw3.c: Include string.h for prototypes.
10588
10589         * crypt/md5test.c (main): Remove unused variable.
10590
10591         * dlfcn/modstatic.c: Add prototype to avoid warning.
10592
10593 2001-12-26  Roland McGrath  <roland@frob.com>
10594
10595         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10596         check only (SS->pending & MASK) for the signal to return.
10597         From Jeroen Dekkers <jeroen@dekkers.cx>.
10598
10599 2001-12-22  Roland McGrath  <roland@frob.com>
10600
10601         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10602         Use preprocessor #if conditionals instead of `if' to avoid
10603         warnings about divide by zero in dead code.
10604
10605         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10606         _hurd_port_init, and __hurd_self_sigstate.
10607
10608         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10609
10610 2001-12-21  Andreas Jaeger  <aj@suse.de>
10611
10612         * elf/dblloadmod1.c: Add prototype to avoid warning.
10613         * elf/dblloadmod2.c: Likewise.
10614         * elf/dblloadmod3.c: Likewise.
10615         * elf/reldepmod5.c: Likewise.
10616         * elf/reldepmod6.c: Likewise.
10617
10618         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10619         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10620         used on all architectures.
10621
10622         * sunrpc/svc_tcp.c: Add noreturn attribute for
10623         svctcp_rendezvous_abort.
10624         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10625
10626         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10627         to avoid warning.
10628
10629 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
10630
10631         * manual/llio.texi (aio_fsync): Fix a typo.
10632         Patch by Tammy Fox <tfox@redhat.com>.
10633
10634 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
10635
10636         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10637         stack bias from child stack pointer before passing it to clone syscall.
10638
10639 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
10640
10641         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10642         _SC_TZNAME_MAX.
10643         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10644         Reported by Thorsten Kukuk <kukuk@suse.de>.
10645
10646         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10647         add some casts.
10648
10649         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10650
10651 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
10652
10653         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10654         conforming: return EBADF if file descriptor is invalid and EINVAL
10655         if file descriptor is no valid tty.
10656         * login/tst-grantpt.c: New file.
10657         * login/Makefile (tests): Add tst-grantpt.
10658
10659 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
10660
10661         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10662         different than implemented in last patch.
10663         * io/bug-ftw3.c: Adjust test for changed handling of
10664         inaccessibility of toplevel dir.
10665
10666 2001-12-16  Roland McGrath  <roland@frob.com>
10667
10668         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10669         * grp/initgroups.c (internal_getgrouplist): Likewise.
10670
10671         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10672         `default:' to silence new GCC warning.
10673         Rewrite cast of lvalue to silence new GCC warning.
10674
10675         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10676
10677         * sysdeps/mach/hurd/spawni.c: New file, by me with a
10678         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10679
10680 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
10681
10682         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
10683         Patch by Stephen R. van den Berg.
10684
10685         * crypt/md5.h: Define md5_uintptr.
10686
10687 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10688
10689         * libio/tst_swprintf.c (main): Add test for string argument with
10690         zero precision.
10691         * stdio-common/Makefile (tests): Add tst-sprintf.
10692         * stdio-common/tst-sprintf.c: New file.
10693
10694 2001-12-13  Andreas Schwab  <schwab@suse.de>
10695
10696         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10697         zero precision with wide character string format.
10698
10699 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
10700
10701         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10702         but have a user supplied buffer, return the empty buffer, not NULL.
10703
10704 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10705
10706         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10707         Patch by Eric Sharkey <sharkey@netrics.com>.
10708
10709         * crypt/md5test.c (main): Add test for multiple calls to
10710         __md5_process_bytes to itererate over input string.
10711
10712 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
10713
10714         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10715         from __nis_findfastest.  Take timeout value from parameter.
10716         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10717         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10718         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
10719
10720 2001-12-12  Andreas Jaeger  <aj@suse.de>
10721
10722         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10723         combreloc test so that it works in this case.
10724
10725         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10726
10727 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
10728
10729         * sysdeps/sh/Makefile: New file.
10730         * sysdeps/sh/_mcount.S: New file.
10731         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10732         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10733
10734 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10735
10736         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10737         limitation [PR libc/2564].
10738
10739 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
10740
10741         * elf/Makefile (dl-routines): Add conflict.
10742         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10743         (ld.so): Add _begin local symbol.
10744         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10745         Define.
10746         * elf/dl-deps.c (_dl_build_local_scope): New function.
10747         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10748         of all libraries.
10749         * elf/do-rel.h (VALIDX): Define.
10750         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10751         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10752         can be skipped.
10753         * elf/dl-conflict.c: New file.
10754         * elf/dl-lookup.c (_dl_debug_bindings): New function.
10755         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
10756         non-NULL.
10757         (_dl_lookup_symbol_skip): Likewise.
10758         (_dl_lookup_versioned_symbol): Likewise.
10759         (_dl_lookup_versioned_symbol_skip): Likewise.
10760         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10761         define to ElfW(Rel).
10762         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10763         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10764         ranges.
10765         Don't adjust address dynamic tags if l_addr is 0.
10766         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10767         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10768         (VALIDX, ADDRIDX): Define.
10769         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10770         (dl_main): Print library list for LD_TRACE_PRELINKING.
10771         If prelinking information can be used, skip relocating libraries and
10772         call _dl_resolve_conflicts instead.
10773         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10774         * elf/dl-load.c (_dl_map_object): Don't create fake libs
10775         if LD_TRACE_PRELINKING.
10776         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10777         + DT_ADDRNUM.
10778         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10779         (DL_DEBUG_PRELINK): Define.
10780         (_dl_resolve_conflicts): Add prototype.
10781
10782         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10783         .plt for prelinked libraries where prelinking info cannot be used.
10784         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10785         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10786         * sysdeps/arm/bits/link.h: New file.
10787         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10788         content of .got[1].
10789         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10790         (ELF_MACHINE_PLT_REL): Define.
10791         (elf_machine_rela, elf_machine_rela_relative): New functions.
10792         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10793         of adjusting it if prelinked and prelinking cannot be used.
10794         * sysdeps/i386/bits/link.h: New file.
10795         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10796         content of .got[1].
10797         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10798         (ELF_MACHINE_PLT_REL): Define.
10799         (elf_machine_rela, elf_machine_rela_relative): New functions.
10800         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10801         of adjusting it if prelinked and prelinking cannot be used.
10802         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10803         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
10804         to find out map for R_PPC_JMP_SLOT relocs.
10805         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10806         (OPCODE_BA): Define.
10807         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10808         libraries where prelinking info cannot be used.
10809         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10810         (elf_machine_fixup_plt): Call sparc_fixup_plt.
10811         (elf_machine_rela): Set value to 0 if relocating conflicts.
10812         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10813         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10814         (sparc64_fixup_plt): Fix a typo.
10815         (elf_machine_rela): Set value to 0 if relocating conflicts.
10816         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10817         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10818         libraries where prelinking info cannot be used.
10819         * sysdeps/sh/bits/link.h: New file.
10820         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10821         content of .got[1].
10822         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10823         of adjusting it if prelinked and prelinking cannot be used.
10824         * sysdeps/s390/s390-32/bits/link.h: New file.
10825         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10826         Save original content of .got[1].
10827         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10828         of adjusting it if prelinked and prelinking cannot be used.
10829         * sysdeps/s390/s390-64/bits/link.h: New file.
10830         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10831         Save original content of .got[1].
10832         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10833         of adjusting it if prelinked and prelinking cannot be used.
10834         * sysdeps/x86_64/bits/link.h: New file.
10835         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10836         Save original content of .got[1].
10837         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10838         of adjusting it if prelinked and prelinking cannot be used.
10839
10840 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10841
10842         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10843         where appropriate instead of numbers.  Little optimizations.
10844
10845 2001-12-10  Roland McGrath  <roland@frob.com>
10846
10847         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10848         set it.
10849
10850         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10851         set to GLIBC_2.2.5, not GLIBC_2.2.4.
10852
10853         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10854         Fix conditionals so this is set by default for stdio and not for libio.
10855         * sysdeps/mach/hurd/configure: Regenerated.
10856
10857 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
10858
10859         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10860
10861 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
10862
10863         * io/Makefile (tests): Add bug-ftw3.
10864         * io/bug-ftw3.c: New file.
10865
10866         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10867         matches and GLOB_NOCHECK is set.
10868         * posix/globtest.sh: Correct expected result for NOCHECK test.
10869
10870         * po/ca.po: Update from translation team.
10871
10872 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
10873
10874         Implement transliteration of characters in strings of the locale
10875         definitions.
10876         * locale/programs/linereader.c: Adjust for additional parameter to
10877         lr_token.
10878         (get_string): If character <Uxxxx> is not found try to transliterate
10879         it.
10880         * locale/programs/ld-ctype.c: Adjust for additional parameter to
10881         lr_token.  Add const to charmap parameter of all functions.
10882         (find_translit, find_translit2): New functions.
10883         * locale/programs/charmap.c: Adjust for additional parameter to
10884         lr_token.
10885         * locale/programs/repertoire.c: Likewise.
10886         * locale/programs/linereader.h: Likewise.
10887         * locale/programs/ld-address.c: Likewise.  Add const to charmap
10888         parameter of all functions.
10889         * locale/programs/ld-collate.c: Likewise.
10890         * locale/programs/ld-identification.c: Likewise.
10891         * locale/programs/ld-measurement.c: Likewise.
10892         * locale/programs/ld-messages.c: Likewise.
10893         * locale/programs/ld-monetary.c: Likewise.
10894         * locale/programs/ld-name.c: Likewise.
10895         * locale/programs/ld-numeric.c: Likewise.
10896         * locale/programs/ld-paper.c: Likewise.
10897         * locale/programs/ld-paper.c: Likewise.
10898         * locale/programs/ld-telephone.c: Likewise.
10899         * locale/programs/ld-time.c: Likewise.
10900         * locale/programs/locfile.c: Likewise.
10901         * locale/programs/localedef.c: Likewise.
10902         * locale/programs/localedef.h: Likewise.
10903         * locale/programs/locfile.h: Likewise.  Add declaration for
10904         find_translit.
10905         * locale/programs/simple-hash.c: Add const to first parameter of
10906         find_entry, iterate_table, and lookup.
10907         * locale/programs/simple-hash.h: Likewise.
10908         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
10909         instead.
10910         * include/locale.h: Define __LC_LAST.
10911         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10912
10913 2001-12-07  Geoff Keating  <geoffk@redhat.com>
10914
10915         * sysdeps/powerpc/Dist: Update for recent FP changes.
10916         * sysdeps/powerpc/fpu/Dist: Likewise.
10917
10918 2001-12-07  Andreas Schwab  <schwab@suse.de>
10919
10920         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10921
10922 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10923
10924         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10925         save/restore functions here.
10926         (libm-support): Don't define these functions here.
10927         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10928         functions here.
10929         * sysdeps/powerpc/fe_nomask.c: Move to...
10930         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10931         * sysdeps/powerpc/fprrest.S: Move to...
10932         * sysdeps/powerpc/fpu/fprrest.S: ... here.
10933         * sysdeps/powerpc/fprsave.S: Move to...
10934         * sysdeps/powerpc/fpu/fprsave.S: ... here.
10935
10936 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10937
10938         * sysdeps/unix/sysv/linux/opensock.c: New file.
10939
10940 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10941
10942         * config.make.in (with-fp): Define from configure.
10943         * configure.in: Substitute with_fp.
10944         * configure: Regenerate.
10945         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10946         specified, and don't change FPU environment.
10947
10948 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10949
10950         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10951         * assert/assert.c: Check result of __asprintf call and don't use
10952         string if it failed.
10953         * assert/assert-perr.c: Likewise.
10954         * inet/rcmd.c: Likewise.
10955         * locale/programs/localedef.c (main): Check result of
10956         construct_output_path and exit if it failed.
10957         (construct_output_path): Check result of asprintf and mkdir calls and
10958         fail if they failed.
10959         * posix/getopt.c: Check result of __asprintf calls and fail if
10960         they failed.
10961         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10962
10963 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10964
10965         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10966         patch.
10967         * sysdeps/generic/strncase.c: Likewise.
10968         * string/tester.c: Add tests for strcasecmp and strncasecmp.
10969
10970 2001-12-05  Geoff Keating  <geoffk@redhat.com>
10971
10972         * scripts/cpp: Test the exit status from 'type', not 'awk'.
10973
10974         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10975         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10976         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10977         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10978         * sysdeps/powerpc/fclrexcpt.c: Move to...
10979         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10980         * sysdeps/powerpc/fpu_control.h: Move to...
10981         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10982
10983 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10984
10985         * iconvdata/ibm1129.h: Remove duplicate mappings.
10986         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
10987         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10988         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10989
10990         * timezone/zic.c: Fix handling of turnaround times.
10991         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10992
10993 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
10994
10995         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10996         overflow problem.
10997
10998 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10999
11000         * posix/regex.c: For use outside glibc defined bounded pointer
11001         macros here.  Patch by Jim Meyering <jim@meyering.net>.
11002
11003         * iconvdata/Makefile (modules): Add TCVN5712-1.
11004         * iconvdata/TESTS: Add TCVN5712-1.
11005         * iconvdata/gconv-modules: Likewise.
11006         * iconvdata/tcvn5712-1.c: New file.
11007         * iconvdata/testdata/TCVN-5712: New file.
11008         * iconvdata/testdata/TCVN-5712..UTF8: New file.
11009
11010 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
11011
11012         * iconvdata/cp1258.c: Optimize conversion from UCS4.
11013
11014 2001-12-02  Roland McGrath  <roland@frob.com>
11015
11016         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
11017
11018         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
11019         Reported by Jeff Bailey <jbailey@nisa.net>.
11020
11021         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
11022         Reported by Jeff Bailey <jbailey@nisa.net>.
11023
11024         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
11025         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
11026         Reported by Jeff Bailey <jbailey@nisa.net>.
11027
11028 2001-12-01  Roland McGrath  <roland@frob.com>
11029
11030         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
11031         missing backslash in test arguments.
11032         * sysdeps/mach/hurd/configure: Regenerated.
11033
11034 2001-11-26  Roland McGrath  <roland@frob.com>
11035
11036         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
11037         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
11038
11039 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
11040
11041         * iconvdata/Makefile (modules): Add ARMSCII-8.
11042         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
11043         * iconvdata/armscii-8.c: New file.
11044
11045 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
11046
11047         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
11048         don't match, fix {{a,b},c} globbing, clean up.
11049         Patch by Flavio Veloso <flaviovs@magnux.com>.
11050         * posix/globtest.sh: Add new tests.
11051
11052 2001-11-29  Andreas Jaeger  <aj@suse.de>
11053
11054         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
11055         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
11056
11057         * sysdeps/generic/abort.c: Include libioP.h for
11058         _IO_flush_all_lockp prototype.
11059
11060 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
11061
11062         * posix/regex.h: Define __restrict_arr correctly.
11063
11064 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11065
11066         * iconvdata/ibm1163.c: New file.
11067         * iconvdata/ibm1163.h: New file.
11068         * iconvdata/ibm1164.c: New file.
11069         * iconvdata/ibm1164.h: New file.
11070         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
11071         * iconvdata/Makefile: Likewise.
11072         * iconvdata/testdata/IBM1163: New file.
11073         * iconvdata/testdata/IBM1163..UTF8: New file.
11074         * iconvdata/testdata/IBM1164: New file.
11075         * iconvdata/testdata/IBM1164..UTF8: New file.
11076         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11077
11078         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
11079         * iconvdata/ibm1124.h: Likewise.
11080         * iconvdata/ibm1132.h: Likewise.
11081         * iconvdata/ibm1133.h: Likewise.
11082         * iconvdata/ibm1160.h: Likewise.
11083         * iconvdata/ibm1161.h: Likewise.
11084         * iconvdata/ibm1162.h: Likewise.
11085         * iconvdata/ibm856.h: Likewise.
11086         * iconvdata/ibm922.h: Likewise.
11087         * iconvdata/ibm930.h: Likewise.
11088         * iconvdata/ibm932.h: Likewise.
11089         * iconvdata/ibm933.h: Likewise.
11090         * iconvdata/ibm935.h: Likewise.
11091         * iconvdata/ibm937.h: Likewise.
11092         * iconvdata/ibm939.h: Likewise.
11093         * iconvdata/ibm943.h: Likewise.
11094         * iconvdata/ibm930.c: Pretty printing.
11095         * iconvdata/ibm937.c: Avoid access accross array boundary.
11096
11097         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
11098         the current locale's codeset.
11099         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
11100         empty input string.
11101         * iconv/iconv_prog.c: Pass empty strings as default value for to-
11102         and from-charset.  Don't determine locale's charset here.
11103
11104         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
11105         as the old _IO_flush_all but lock only if parameter is nonzero.
11106         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
11107         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
11108         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
11109         if libio is used [PR libc/2575].
11110
11111 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
11112
11113         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
11114         __signbitl): Only define for ISO C99.
11115
11116 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11117
11118         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11119         herrnop to NETDB_INTERNAL if we run out of buffer space.
11120
11121 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11122
11123         * nss/nss_files/files-XXX.c (internal_getent): Correct input
11124         overflow test for platforms with signed char.
11125         Reported by Andrew Haley <aph@cambridge.redhat.com>.
11126
11127 2001-11-28  Bruno Haible  <bruno@clisp.org>
11128
11129         * locale/programs/simple-hash.c (lookup_2): Remove function.
11130         (insert_entry_2): Call lookup instead of lookup_2.
11131
11132 2001-03-04  Bruno Haible  <bruno@clisp.org>
11133
11134         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11135
11136 2001-10-31  Bruno Haible  <bruno@clisp.org>
11137
11138         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11139
11140 2001-03-21  Bruno Haible  <bruno@clisp.org>
11141
11142         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11143         chokes on empty macro arguments.
11144         * intl/plural.y: Add #pragma for alloca on AIX 3.
11145
11146 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11147
11148         * intl/dcigettext.c (guess_category_value): Only implement for
11149         glibc.  Otherwise rely on function _nl_locale_name which isn't
11150         present in the glibc sources.
11151
11152 2001-09-24  Bruno Haible  <bruno@clisp.org>
11153
11154         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11155         transliteration when building on a glibc system but outside glibc.
11156
11157 2001-09-22  Bruno Haible  <bruno@clisp.org>
11158
11159         * intl/plural-eval.c: New file, extracted from dcigettext.c.
11160         * intl/dcigettext.c (plural_eval): Remove function, moved to
11161         intl/plural-eval.c.
11162         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11163         Include plural-eval.c.
11164
11165 2001-09-22  Bruno Haible  <bruno@clisp.org>
11166
11167         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11168         don't start with a digit; nplurals must be positive.
11169
11170 2001-09-02  Bruno Haible  <bruno@clisp.org>
11171
11172         * intl/plural-exp.h: New file, extracted from gettextP.h.
11173         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11174         * intl/gettextP.h (struct expression, struct parse_args,
11175         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11176         * intl/loadmsgcat.c: Include plural-exp.h.
11177         (PLURAL_PARSE): Move macro to plural-exp.h.
11178         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11179         plural-exp.c.
11180         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
11181         EXTRACT_PLURAL_EXPRESSION.
11182         (_nl_unload_domain): Update.
11183         * intl/dcigettext.c: Include plural-exp.h.
11184         * intl/plural.y: Include plural-exp.h, not gettextP.h.
11185         (FREE_EXPRESSION): Move macro to plural-exp.h.
11186         * intl/Makefile (routines): Add plural-exp.
11187         (distribute): Add plural-exp.h.
11188
11189 2001-07-28  Bruno Haible  <bruno@clisp.org>
11190
11191         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11192         isdigit, tolower argument to 'unsigned char'.
11193         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11194         'unsigned char'.
11195         * intl/localealias.c (read_alias_file): Cast isspace argument to
11196         'unsigned char'.
11197
11198 2001-10-20  Bruno Haible  <bruno@clisp.org>
11199
11200         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11201         anyway.)
11202         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11203         with the variable 'index' in plural_lookup.
11204         * intl/l10nflist.c (strchr): Likewise.
11205         * intl/localealias.c (strchr): Likewise.
11206
11207         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11208         * intl/bindtextdom.c: Likewise.
11209         * intl/dcigettext.c: Likewise.
11210         * intl/dgettext.c: Likewise.
11211         * intl/dngettext.c: Likewise.
11212         * intl/explodename.c: Likewise.
11213         * intl/finddomain.c: Likewise.
11214         * intl/gettext.c: Likewise.
11215         * intl/l10nflist.c: Likewise.
11216         * intl/loadmsgcat.c: Likewise.
11217         * intl/localealias.c: Likewise.
11218         * intl/ngettext.c: Likewise.
11219         * intl/textdomain.c: Likewise.
11220         * intl/gettext.h: Assume <limits.h> exists.
11221
11222 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11223
11224         * stdio-common/Makefile (tests): Add scanf11.
11225         * stdio-common/scanf11.c: New file.
11226
11227 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11228
11229         * version.h (RELEASE): Define as development.
11230         (VERSION): Set to 2.2.90.
11231
11232 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11233
11234         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11235         * nis/nss_nis/nis-grp.c: Likewise.
11236         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11237
11238         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11239         * nis/nss_nis/nis-pwd.c: Likewise.
11240         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11241
11242         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11243         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11244         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11245
11246         * nscd/grpcache.c: Use strtoul instead of atol.
11247         * nscd/pwdcache.c: Likewise.
11248         * nss/getent.c: Likewise.
11249
11250 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11251
11252         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11253         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11254
11255 2001-11-19  Bruno Haible  <bruno@clisp.org>
11256
11257         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11258         90%.
11259         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11260         improves the quality of the hash function, especially for short
11261         strings.
11262
11263 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11264
11265         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11266         are found call conv_error and not input_error [PR libc/2669].
11267
11268         * math/bits/mathcalls.h: Mark ceil and floor as const.
11269         Reported by David Mosberger.
11270
11271 2001-11-21  Jim Meyering  <meyering@lucent.com>
11272
11273         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11274         Define to be __-prefixed.
11275         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11276
11277 2001-11-26  Andreas Jaeger  <aj@suse.de>
11278
11279         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11280         avoid warning.
11281
11282 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11283
11284         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11285         initialization.
11286
11287         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11288         unused variables.  Fix threshold for returning 1.0.
11289
11290         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11291         argument.
11292
11293         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11294         remove unused variables.
11295
11296         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11297
11298         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11299         include local math header files.
11300
11301 2001-11-22  Andreas Jaeger  <aj@suse.de>
11302
11303         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11304         avoid warning.
11305
11306 2001-11-21  Andreas Jaeger  <aj@suse.de>
11307
11308         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11309
11310         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11311         sys/debugreg.h
11312
11313 2001-11-15  Andreas Jaeger  <aj@suse.de>
11314
11315         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11316         compilers that support it.
11317
11318         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11319         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11320         * stdlib/stdlib.h: Likewise.
11321
11322 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11323
11324         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11325         statement with gotos.
11326         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11327
11328 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11329
11330         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11331
11332 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11333
11334         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11335
11336 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11337             H.J. Lu  <hjl@gnu.org>
11338
11339         * Versions.def (libc): Add GCC_3.0.
11340         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11341         if gcc supports this flag.
11342         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11343         (gcc3): Allow glibc to be compiled with gcc 3.x.
11344         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11345         * config.make.in (static-libgcc, unwind-find-fde): Add.
11346         * Makerules (build-shlib-helper, build-module-helper): Use it.
11347         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11348         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11349         necessary.
11350         (_fini): Call __deregister_frame_info_bases if
11351         __register_frame_info_bases was used to register.
11352         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11353         for GLIBC_2.0.
11354         (__register_frame_info_bases, __register_frame_info_table_bases,
11355         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11356         * elf/Makefile (routines): Add unwind-dw2-fde.
11357         (shared-only-routines): Add unwind-dw2-fde.
11358         * sysdeps/alpha/gccframe.h: New file.
11359         * sysdeps/arm/gccframe.h: New file.
11360         * sysdeps/generic/framestate.c: New file.
11361         * sysdeps/generic/dwarf2.h: New file.
11362         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11363         * sysdeps/generic/unwind-dw2-fde.c: New file.
11364         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11365         * sysdeps/generic/unwind-dw2-fde.h: New file.
11366         * sysdeps/generic/unwind-dw2.c: New file.
11367         * sysdeps/generic/unwind-pe.h: New file.
11368         * sysdeps/generic/unwind.h: New file.
11369         * sysdeps/hppa/gccframe.h: New file.
11370         * sysdeps/i386/gccframe.h: New file.
11371         * sysdeps/m68k/gccframe.h: New file.
11372         * sysdeps/mips/gccframe.h: New file.
11373         * sysdeps/powerpc/gccframe.h: New file.
11374         * sysdeps/s390/gccframe.h: New file.
11375         * sysdeps/sh/gccframe.h: New file.
11376         * sysdeps/sparc/gccframe.h: New file.
11377         * sysdeps/vax/gccframe.h: New file.
11378         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11379         Set on all architectures except ia64.
11380         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11381         for i386.
11382         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11383         __deregister_frame_info): Move to elf/Versions.
11384         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11385         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11386         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11387         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11388         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11389         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11390         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11391         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11392         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11393         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11394         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11395         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11396         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11397         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11398         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11399         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11400         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11401         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11402
11403 2001-11-15  Jeff Law  <law@redhat.com>
11404
11405         * posix/regex.c (uintptr_t): Do not provide a definition if the
11406         system provided one.
11407
11408 2001-11-13  Roland McGrath  <roland@frob.com>
11409
11410         * stdio-common/tmpfile.c: Moved to ...
11411         * sysdeps/generic/tmpfile.c: ... here.
11412         * sysdeps/mach/hurd/tmpfile.c: New file.
11413
11414         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11415         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11416         (fopenport): Define as weak alias.
11417
11418         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11419         * libio/libioP.h: ... to here.
11420
11421 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11422
11423         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11424         program header twice.  Construct list with the needed information.
11425
11426 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11427
11428         * po/ca.po: Update from translation team.
11429
11430         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11431         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11432         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11433         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11434
11435 2001-11-10  Andreas Jaeger  <aj@suse.de>
11436
11437         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11438         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11439         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11440
11441 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11442
11443         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11444         correctly.
11445         * elf/dl-load.c (is_dst): New function.
11446         (_dl_dst_count): Use is_dst to check for DST variable.
11447         (_dl_dst_substitute): Likewise.
11448
11449 2001-11-09  Roland McGrath  <roland@frob.com>
11450
11451         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11452         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11453         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11454         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11455         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11456         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11457         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11458         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11459         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11460         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11461         * sysdeps/mach/hurd/powerpc/Dist: New file.
11462
11463         * hurd/privports.c (__get_privileged_ports):
11464         Only contact the proc server if necessary for this call.
11465         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11466         Check error return for mach_port_mod_refs.
11467
11468 2001-11-09  Andreas Schwab  <schwab@suse.de>
11469
11470         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11471
11472 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11473
11474         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11475         object is always the last in the list.
11476         (_dl_map_object_from_fd): Delete code to remove from object list
11477         when DF_1_NOOPEN is seen.  This is done in lose.
11478
11479 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11480
11481         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11482
11483 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11484
11485         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11486         HWCAP_CHECK macro code.
11487
11488         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11489         Now returns MAP_FAILED on error.
11490         * elf/rtld.c: Adjust caller.
11491         * sysdeps/generic/dl-cache.c: Likewise.
11492         * sysdeps/generic/ldsodefs.h: Adjust description.
11493
11494         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11495         (_dl_check_map_versions): Likewise.
11496
11497 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11498
11499         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11500         _dl_signal_error directly, always use lose.  Set fd to -1 after
11501         file is closed.
11502         (lose): Don't call close if fd == -1.
11503
11504 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11505
11506         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11507          Also fix typo @code {mbsinit} to @code{mbsinit}.
11508
11509 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11510
11511         * elf/dl-profile.c: Replace state variable with simple flag named
11512         running.  Remove commented-out code.
11513
11514         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11515         (_dl_init_paths): Likewise.
11516         (_dl_map_object_from_fd): Likewise.
11517         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11518
11519 2001-11-06  Roland McGrath  <roland@frob.com>
11520
11521         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11522         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11523
11524         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11525         sysdeps/powerpc/elf/sysdep.h.
11526         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11527
11528 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11529
11530         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11531         speed.
11532         (process_envvars): Some more optimizations.
11533         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11534
11535         * elf/elf.h: Add dynamic tag definitions for prelinking.
11536
11537         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11538         Rewrite code to remove environment varables for SUID binaries.
11539         Small optimization in LD_PROFILE handling.
11540         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11541         changes.
11542         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11543
11544         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11545
11546         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11547         strings.  Change type of second parameter.
11548         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11549         for last change.
11550
11551         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11552
11553 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11554
11555         * manual/string.texi: Fix typos.
11556         * manual/examples/argp-ex2.c: Likewise.
11557
11558 2001-11-05  Roland McGrath  <roland@frob.com>
11559
11560         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11561         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11562         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11563         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11564         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11565         here, put under [__ELF__].
11566
11567 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11568
11569         * manual/charset.texi: Extensive editing work.
11570         * manual/nss.texi: Likewise.
11571         Changes by Dennis Grace <dgrace@us.ibm.com>.
11572
11573 2001-11-04  Roland McGrath  <roland@frob.com>
11574
11575         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11576         parameter to dir_mkfile.
11577
11578 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11579
11580         * string/bits/string2.h (__strndup): If n is smaller than len, set
11581         len to n + 1.
11582         * string/tester.c (test_strndup): New function.
11583         (main): Call it.
11584
11585 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11586
11587         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11588
11589         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11590         * scripts/cpp: New file.
11591
11592         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11593         for rtld_search_dirs content.  Minor optimizations.
11594
11595 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11596
11597         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11598         avoiding unnecessary duplication.
11599
11600 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11601
11602         * elf/dl-load.c (_dl_map_object): If library was found using
11603         LD_LIBRARY_PATH, don't try RUNPATH list.
11604
11605 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11606
11607         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11608         Correct second argument of register_dump call.
11609         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11610         Likewise.
11611
11612 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11613
11614         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11615         modules.
11616         * iconvdata/TESTS: Likewise.
11617         * iconvdata/gconv-modules: Likewise.
11618         * iconvdata/ibm1132.c: New file.
11619         * iconvdata/ibm1132.h: New file.
11620         * iconvdata/ibm1133.c: New file.
11621         * iconvdata/ibm1133.h: New file.
11622         * iconvdata/ibm1162.c: New file.
11623         * iconvdata/ibm1162.h: New file.
11624         * iconvdata/testdata/IBM1132: New file.
11625         * iconvdata/testdata/IBM1132..UTF8: New file.
11626         * iconvdata/testdata/IBM1133: New file.
11627         * iconvdata/testdata/IBM1133..UTF8: New file.
11628         * iconvdata/testdata/IBM1162: New file.
11629         * iconvdata/testdata/IBM1162..UTF8: New file.
11630         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11631
11632         * string/string.h: Fix typo in comment.
11633         * wcsmbs/wchar.h: Likewise.
11634
11635 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
11636
11637         * manual/getopt.texi (getopt_long, getopt_long_only): Include
11638         const in type of longopts parameter.
11639
11640 2001-10-29  Andreas Jaeger  <aj@suse.de>
11641
11642         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11643
11644 2001-10-29  Kevin Ryde  <user42@zip.com.au>
11645
11646         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11647         output, clarify `#' behaviour on 0.
11648         (Floating-Point Conversions): Clarify that %g only uses %e when
11649         the exponent would be greater than 1.
11650
11651 2001-10-28  Roland McGrath  <roland@frob.com>
11652
11653         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11654         * sysdeps/mach/powerpc/machine-sp.h: New file.
11655         * sysdeps/mach/powerpc/sysdep.h: New file.
11656         * sysdeps/mach/powerpc/thread_state.h: New file.
11657
11658         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11659         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
11660         expect to need the same thing on every platform.
11661
11662         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11663         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11664
11665         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11666         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11667         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11668         Move all these assembly-related definitions to ...
11669         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11670
11671         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11672         by Peter Bruin <pjbruin@dds.nl>.
11673
11674         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11675         packing results for a `poll' call.
11676
11677 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11678
11679         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11680         correctly.
11681         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11682         bracket expression.
11683
11684         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11685         nrules value.
11686         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11687
11688 2001-10-24  H.J. Lu  <hjl@gnu.org>
11689
11690         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11691         Use __BEGIN_DECLS/__END_DECLS around prototypes.
11692         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11693
11694 2001-10-21  Jim Meyering  <meyering@lucent.com>
11695
11696         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
11697         this code would end up calling gettext even in packages built
11698         with --disable-nls.
11699         * posix/getopt.c (_): Likewise.
11700         * posix/regex.c (_): Likewise.
11701
11702 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11703
11704         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11705         lookup not ip6.int.
11706         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11707         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11708
11709 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
11710
11711         * misc/sys/cdefs.h (__attribute_used__): Define.
11712         * elf/rtld.c (_dl_start): Add __attribute_used__.
11713         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11714
11715 2001-10-25  Andreas Schwab  <schwab@suse.de>
11716
11717         * stdlib/a64l.c: Expect least significant digit first.
11718         * stdlib/l64a.c: Produce least significant digit first.
11719         * stdlib/Makefile (tests): Add test-a64l.
11720         * stdlib/test-a64l.c: New file.
11721         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11722
11723 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
11724
11725         * po/sk.po: Update from translation team.
11726
11727 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
11728
11729         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11730
11731 2001-10-18  Andreas Schwab  <schwab@suse.de>
11732
11733         * math/libm-test.inc (print_ulps): Print ulp values rounded to
11734         next whole number.
11735         (print_function_ulps): Likewise.
11736         (print_complex_function_ulps): Likewise.
11737         (print_max_error): Likewise.
11738         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
11739
11740 2001-10-16  Andreas Schwab  <schwab@suse.de>
11741
11742         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11743         implementation.
11744
11745         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11746         BSD_SETJMP or BSD__SETJMP is defined, resp.
11747         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11748         a tail call to __sigsetjmp that would require extending the
11749         caller's frame.
11750         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11751         * sysdeps/m68k/bsd-setjmp.S: Deleted.
11752         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11753         Reported by Jes Sorensen <jes@trained-monkey.org>.
11754
11755 2001-10-16  Andreas Jaeger  <aj@suse.de>
11756
11757         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11758         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
11759         close PR libc/2589.
11760
11761 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
11762
11763         * po/ca.po: New file.  Contributed by the translation team.
11764
11765 2001-10-15  Ralf Baechle  <ralf@gnu.org>
11766
11767         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11768         a varargs prototype.  Remove dependency from kernel header files.
11769
11770         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11771         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11772
11773 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11774
11775         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11776         to generate hexadecimal identifier.
11777         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11778
11779 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
11780
11781         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11782
11783 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11784
11785         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11786         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11787         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11788
11789         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11790         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11791         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11792         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11793         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11794         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11795
11796         * timezone/africa: Update from tzdata2001d.
11797         * timezone/asia: Likewise.
11798         * timezone/australasia: Likewise.
11799         * timezone/backward: Likewise.
11800         * timezone/europe: Likewise.
11801         * timezone/leapseconds: Likewise.
11802         * timezone/northamerica: Likewise.
11803         * timezone/southamerica: Likewise.
11804         * timezone/zone.tab: Likewise.
11805
11806 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11807
11808         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11809         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11810
11811 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
11812
11813         * elf/elf.h (PT_TLS): New definition.
11814
11815 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
11816
11817         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11818         bits/errno.h
11819
11820 2001-10-07  Roland McGrath  <roland@frob.com>
11821
11822         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11823
11824 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
11825
11826         * elf/elf.h: Add more ELFOSABI_* constants.
11827
11828 2001-10-04  Ben Collins  <bcollins@debian.org>
11829
11830         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11831         decleration of __need_wchar_t.
11832
11833 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
11834
11835         * string/bits/string2.h (__strsep_g): Add prototype.
11836         (__strsep): Use it.
11837         * string/Versions (__strsep): Remove.
11838         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11839
11840 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
11841
11842         * manua/llio.texi: Clarify file references added by mmap.
11843         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11844
11845 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
11846
11847         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11848         Add sc_loadrs and sc_rbs_bas to match current kernel.
11849
11850 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11851
11852         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11853
11854         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11855
11856 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11857
11858         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11859         object has been bumped because of relocation dependency, avoid
11860         duplicates in l_scope.
11861         (show_scope): Fix typos.
11862         * elf/Makefile: Add rules to build and run reldep6.
11863         * elf/reldep6.c: New file.
11864         * elf/reldep6mod0.c: New file.
11865         * elf/reldep6mod1.c: New file.
11866         * elf/reldep6mod2.c: New file.
11867         * elf/reldep6mod3.c: New file.
11868         * elf/reldep6mod4.c: New file.
11869
11870 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
11871
11872         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11873         sparc64_fixup_plt.
11874         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
11875         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11876         for non-lazy binding. Fix .plt[32768+] handling.
11877         (elf_machine_plt_value): Don't add addend.
11878         (elf_machine_rela): Call sparc64_fixup_plt instead of
11879         elf_machine_fixup_plt.
11880         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11881         dynamic linker at 0xfffff800XXXXXXXX.
11882
11883         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11884
11885 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
11886
11887         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11888
11889 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
11890
11891         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11892         declare __cmsg_data field if its size would be bigger than 0.
11893         (CMSG_DATA): Adjust accordingly.
11894         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11895         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11896         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11897         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11898         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11899         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11900         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11901
11902 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
11903
11904         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11905         * iconvdata/testdata/IBM1160: New file.
11906         * iconvdata/testdata/IBM1160..UTF8: New file.
11907         * iconvdata/testdata/IBM1161: New file.
11908         * iconvdata/testdata/IBM1161..UTF8: New file.
11909         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11910
11911 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11912
11913         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11914         UL_SETFSIZE computations better.
11915
11916         * rt/Makefile: Remove use of filter for librt again.
11917
11918         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11919         UL_SETFSIZE computations better.
11920
11921         * string/Versions: Export __strsep for GLIBC_2.2.5.
11922         * string/bits/string2.h: Define all __STRING_INLINE functions if
11923         _FORCE_INLINES is defined.
11924         Use int instead of char of parameter types.
11925         (__strsep): Don't use __strsep_g.  Don't define it.
11926         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11927         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11928         __strcpy_small.
11929         (__stpcpy_a_small): Renamed from __stpcpy_small.
11930         (__strcspn_c1): Don't define if _FORCE_INLINES.
11931         (__strspn_c1): Likewise.
11932
11933 2001-09-22  Ben Collins  <bcollins@debian.org>
11934
11935         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11936         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
11937         * sysdeps/ia64/bits/sigaction.h: Likewise.
11938         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11939
11940 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
11941
11942         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11943
11944 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
11945
11946         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11947
11948 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11949
11950         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11951
11952 2001-09-20  H.J. Lu  <hjl@gnu.org>
11953
11954         * include/dlfcn.h (__RTLD_SPROF): New definiton.
11955         * elf/dl-open.c (dl_open_worker): Return immediately after loading
11956         for __RTLD_SPROF.
11957         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11958         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11959
11960 2001-09-20  H.J. Lu  <hjl@gnu.org>
11961
11962         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11963         don't add 1.
11964
11965 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11966
11967         * nss/getent.c: Accept -s parameter to overwrite rules in
11968         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
11969
11970         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11971         with as many ".0" as necessary to form a complete address
11972         inet_network understands.
11973
11974         * nss/getent.c: Various cleanups.  Use simpler and fewer function
11975         calls.
11976
11977 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11978
11979         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11980         _JMPBUF_UNWINDS.
11981         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11982
11983 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11984
11985         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11986         IBM1161.
11987         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11988         * iconvdata/ibm1160.c: New file.
11989         * iconvdata/ibm1160.h: New file.
11990         * iconvdata/ibm1161.c: New file.
11991         * iconvdata/ibm1161.h: New file.
11992         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11993
11994 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
11995
11996         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11997         difference between base address and first PT_LOAD's virtual address,
11998         not the base address.
11999
12000 2001-09-11  Tom Rix  <trix@redhat.com>
12001
12002         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
12003         ifdef for __getopt_clean_environment.
12004         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
12005
12006 2001-09-22  Andreas Jaeger  <aj@suse.de>
12007
12008         * elf/reldep4.c (main): Add proper prototype to fix warning.
12009
12010         * elf/reldep5.c (main): Remove unused variable.
12011
12012         * math/math_private.h: Add prototypes.
12013
12014 2001-09-21  Andreas Jaeger  <aj@suse.de>
12015
12016         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
12017         * sysdeps/x86_64/Dist: New file.
12018         * sysdeps/x86_64/soft-fp/Dist: New file.
12019
12020         * sysdeps/gnu/Dist: Remove eval.c.
12021
12022 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
12023
12024         * malloc/memusage.c (realloc): Don't count already allocated
12025         memory in the sums.
12026         (me): Always use dlsym() to find the real implementations.
12027
12028         * malloc/memusage.sh: Make -n option actually do something.
12029
12030 2001-09-20  Andreas Jaeger  <aj@suse.de>
12031
12032         * elf/elf.h (R_390_NUM): Correct value.
12033
12034         * Versions.def: Add missing versions 2.2.3 for libthread_db and
12035         libpthread.
12036
12037         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
12038         for x86-64, install x86-64 into */lib64.
12039
12040         * shlib-versions: Add x86-64.
12041
12042         * elf/elf.h: Add x86-64 relocations.
12043
12044 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
12045
12046         * po/fr.po: Update from translation team.
12047
12048 2001-09-19  Andreas Jaeger  <aj@suse.de>
12049
12050         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
12051         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
12052         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
12053         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
12054         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
12055         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
12056         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
12057         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
12058         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
12059         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
12060         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
12061         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
12062         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
12063         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
12064         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
12065         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
12066         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
12067         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12068         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
12069         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
12070         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
12071         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
12072         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
12073         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
12074         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
12075         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
12076         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
12077         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
12078         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
12079         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
12080         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
12081         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
12082         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
12083         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
12084         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
12085         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
12086         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
12087         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
12088         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
12089         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
12090         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
12091         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
12092         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
12093         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
12094         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
12095         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
12096         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
12097         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
12098         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12099         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
12100         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
12101         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
12102         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
12103         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
12104         * sysdeps/unix/x86_64/sysdep.S: New file.
12105         * sysdeps/unix/x86_64/sysdep.h: New file.
12106         * sysdeps/x86_64/Implies: New file.
12107         * sysdeps/x86_64/Makefile: New file.
12108         * sysdeps/x86_64/Versions: New file.
12109         * sysdeps/x86_64/__longjmp.S: New file.
12110         * sysdeps/x86_64/abort-instr.h: New file.
12111         * sysdeps/x86_64/atomicity.h: New file.
12112         * sysdeps/x86_64/bits/endian.h: New file.
12113         * sysdeps/x86_64/bits/setjmp.h: New file.
12114         * sysdeps/x86_64/bits/string.h: New file.
12115         * sysdeps/x86_64/bp-asm.h: New file.
12116         * sysdeps/x86_64/bsd-_setjmp.S: New file.
12117         * sysdeps/x86_64/bsd-setjmp.S: New file.
12118         * sysdeps/x86_64/dl-machine.h: New file.
12119         * sysdeps/x86_64/elf/initfini.c: New file.
12120         * sysdeps/x86_64/elf/start.S: New file.
12121         * sysdeps/x86_64/ffs.c: New file.
12122         * sysdeps/x86_64/ffsll.c: New file.
12123         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12124         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12125         * sysdeps/x86_64/fpu/e_acosl.c: New file.
12126         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12127         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12128         * sysdeps/x86_64/fpu/e_expl.c: New file.
12129         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12130         * sysdeps/x86_64/fpu/e_log10l.S: New file.
12131         * sysdeps/x86_64/fpu/e_log2l.S: New file.
12132         * sysdeps/x86_64/fpu/e_logl.S: New file.
12133         * sysdeps/x86_64/fpu/e_powl.S: New file.
12134         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12135         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12136         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12137         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12138         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12139         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12140         * sysdeps/x86_64/fpu/fegetenv.c: New file.
12141         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12142         * sysdeps/x86_64/fpu/fegetround.c: New file.
12143         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12144         * sysdeps/x86_64/fpu/fesetenv.c: New file.
12145         * sysdeps/x86_64/fpu/fesetround.c: New file.
12146         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12147         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12148         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12149         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12150         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12151         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12152         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12153         * sysdeps/x86_64/fpu/s_atanl.c: New file.
12154         * sysdeps/x86_64/fpu/s_cosl.S: New file.
12155         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12156         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12157         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12158         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12159         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12160         * sysdeps/x86_64/fpu/s_logbl.c: New file.
12161         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12162         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12163         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12164         * sysdeps/x86_64/fpu/s_rintl.c: New file.
12165         * sysdeps/x86_64/fpu/s_significandl.c: New file.
12166         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12167         * sysdeps/x86_64/fpu/s_sinl.S: New file.
12168         * sysdeps/x86_64/fpu/s_tanl.S: New file.
12169         * sysdeps/x86_64/gmp-mparam.h: New file.
12170         * sysdeps/x86_64/hp-timing.c: New file.
12171         * sysdeps/x86_64/hp-timing.h: New file.
12172         * sysdeps/x86_64/htonl.S: New file.
12173         * sysdeps/x86_64/memusage.h: New file.
12174         * sysdeps/x86_64/setjmp.S: New file.
12175         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12176         * sysdeps/x86_64/stackinfo.h: New file.
12177         * sysdeps/x86_64/sysdep.h: New file.
12178         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12179
12180         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12181         L Moshier.
12182
12183 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12184
12185         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12186         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12187
12188 2001-09-18  Andreas Schwab  <schwab@suse.de>
12189
12190         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12191         list, now that l_scope is a pointer.
12192
12193         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12194         scope list.
12195
12196 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12197
12198         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12199         (elf_machine_rela_relative): Add a missing declaration.
12200
12201 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
12202
12203         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12204         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12205         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12206         ldd-rewrite scripts.
12207
12208 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12209
12210         * elf/ldd.bash.in: Update copyright message.
12211
12212 2001-09-17  H.J. Lu  <hjl@gnu.org>
12213
12214         * hurd/hurdmalloc.c (bcopy): Removed.
12215         (realloc): Replace bcopy with memcpy.
12216         * hurd/path-lookup.c (file_name_path_scan): Likewise.
12217         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12218         * sunrpc/rpcinfo.c (pmapdump): Likewise.
12219
12220         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12221         (gethostbyaddr): Likewise.
12222         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12223
12224 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12225
12226         * sysdeps/gnu/eval.c: Removed.
12227
12228 2001-09-18  Andreas Jaeger  <aj@suse.de>
12229
12230         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12231         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12232
12233         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12234         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12235
12236         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12237         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12238
12239 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12240
12241         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12242         nrules value.
12243
12244 2001-09-14  H.J. Lu  <hjl@gnu.org>
12245
12246         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12247
12248 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12249
12250         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12251         Patch by Florian La Roche <laroche@redhat.com>.
12252
12253         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12254
12255         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12256         ETHER_CRC_LEN.
12257
12258 2001-09-14  Andreas Schwab  <schwab@suse.de>
12259
12260         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12261         Sumner <bls@sgi.com>.
12262         * posix/execlp.c: Likewise.
12263
12264 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12265
12266         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12267         is already found earlier in the search scope.
12268
12269 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12270
12271         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12272         filter.
12273
12274 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12275
12276         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12277
12278 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12279
12280         * config.h.in: Enforce optimization to be used.
12281         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12282         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12283         * posix/Makefile (annexc-CFLAGS): Define to -O.
12284         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12285
12286 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12287
12288         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12289         Patch by Stephan Kulow.
12290
12291 2001-09-08  Ben Collins  <bcollins@debian.org>
12292
12293         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12294         usage of RESOLVE() (r_type, not reloc->r_type).
12295
12296 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12297
12298         * elf/dl-object.c: Avoid allocating extra memory block for name.
12299         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12300         allocated separately.
12301         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12302
12303 2001-09-08  H.J. Lu  <hjl@gnu.org>
12304
12305         * po/zh_TW.po: Fix a typo.
12306
12307 2001-09-07  Tom Rix  <trix@redhat.com>
12308
12309         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12310
12311 2001-08-26  Tom Rix  <trix@redhat.com>
12312
12313         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12314         command line options.
12315         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12316         * sysdeps/unix/sysv/aix/start.c: Removed.
12317         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12318         * sysdeps/unix/sysv/aix/init-first.c: New file.
12319         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12320
12321 2001-09-08  Ben Collins  <bcollins@debian.org>
12322
12323         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12324         * sysdeps/generic/dl-machine.h: Likewise.
12325         * sysdeps/hppa/dl-fptr.c: Likewise.
12326         * sysdeps/ia64/dl-fptr.c: Likewise.
12327         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12328         * sysdeps/mips/dl-machine.h: Likewise.
12329         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12330         * sysdeps/powerpc/dl-machine.c: Likewise.
12331
12332 2001-09-07  Ben Collins  <bcollins@debian.org>
12333
12334         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12335
12336         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12337
12338 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12339
12340         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12341         dependencies if necessary.
12342
12343         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12344         loaded directly) determine length if l_initfini list by iterating
12345         over its elements.  Minor optimizations.
12346         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12347         for dependency objects.
12348         If object was already loaded check whether any of the dependencies
12349         is already on the relocation dependency list.  If yes, remove the
12350         latter.  Minor optimizations.
12351         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12352         maps here.  Search l_initfini list only if the object was loaded
12353         directly and not only as a dependency.
12354         (_dl_lookup_symbol): Add relocation dependency also if object
12355         is not in global scope.  Remove test for self-reference here.
12356         (_dl_lookup_versioned_symbol): Likewise.
12357         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12358         element of first name record.
12359         * elf/loadtest.c: Add some more test to recognize early if an object
12360         wasn't unloaded.
12361         * elf/Makefile: Add rules to build and run reldep5.
12362         * elf/reldep5.c: New file.
12363         * elf/reldepmod5.c: New file.
12364         * elf/reldepmod6.c: New file.
12365
12366         * elf/reldep2.c: Fix typo.
12367
12368 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12369
12370         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12371         elements.  Change l_scope to be a pointer only.
12372         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12373         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12374         here add searchlist of newly open file to the dependency's scope.
12375         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12376         only searchlist from its scope.  Free own scope array if necessary.
12377         * elf/Makefile (tests): Add dblload and dblunload now.
12378
12379 2001-09-06  Andreas Jaeger  <aj@suse.de>
12380
12381         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12382         Stephen L Moshier.
12383
12384 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12385
12386         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12387         they both fail.
12388         * elf/dblload.c: New file.
12389         * elf/dblloadmod1.c: New file.
12390         * elf/dblloadmod2.c: New file.
12391         * elf/dblloadmod3.c: New file.
12392         * elf/dblunload.c: New file.
12393
12394 2001-09-04  Richard Henderson  <rth@redhat.com>
12395
12396         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12397         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12398
12399 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12400
12401         Correct very misleading message for error in failed runtime relocation.
12402         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12403         place of the error.
12404         (_dl_signal_cerror): Likewise.
12405         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12406         * elf/dl-close.c: Likewise.
12407         * elf/dl-deps.c: Likewise.
12408         * elf/dl-load.c: Likewise.
12409         * elf/dl-lookup.c: Likewise.
12410         * elf/dl-open.c: Likewise.
12411         * elf/dl-reloc.c: Likewise.
12412         * elf/dl-sym.c: Likewise.
12413         * elf/dl-version.c: Likewise.
12414         * sysdeps/generic/dl-sysdep.c: Likewise.
12415
12416 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12417
12418         * iconv/strtab.c (strtabinit): Initialize null Strent.
12419         (newstring): Move len == 0 handling...
12420         (strtabadd): ...here.
12421         If len == 1, return null Strent.
12422         When inserting a suffix of an existing string, check if
12423         it is not equal to some suffix already recorded.
12424         Copy left and right members over if adding longer string.
12425
12426 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12427
12428         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12429
12430         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12431         (__syscall_gethostname): Add prototype.
12432
12433 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12434
12435         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12436
12437 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12438
12439         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12440
12441 2001-08-27  Roland McGrath  <roland@frob.com>
12442
12443         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12444         short, copy that much into NAME anyway before returning error.
12445
12446 2001-09-01  Richard Henderson  <rth@redhat.com>
12447
12448         * sysdeps/alpha/elf/Dist: Remove file.
12449         * sysdeps/alpha/elf/Makefile: Remove file.
12450         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12451         * sysdeps/alpha/elf/crtend.S: Remove file.
12452         * sysdeps/alpha/elf/initfini.c: New file.
12453
12454 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12455
12456         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12457         * iconv/tst-iconv3.c: Likewise.
12458
12459 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12460
12461         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12462
12463 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12464
12465         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12466         export it.
12467         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12468         * iconv/iconv_prog.c (insert_cache): New function.
12469         (print_known_names): If cache is used call insert_cache to use the
12470         information from the cache [PR libc/2509].
12471
12472 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12473
12474         * time/strptime.c (strptime_internal): Recognize 'l' format and
12475         handle it like 'I' for symmetry with strftime.
12476
12477 2001-08-31  Richard Henderson  <rth@redhat.com>
12478
12479         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12480         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12481         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12482         (print_statistics): Make scalar unsigned long long.
12483         * sysdeps/alpha/hp-timing.h: New file.
12484
12485 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12486
12487         * stdio-common/perror.c (perror): Save errno early, pass it
12488         down to perror_internal.
12489         (perror_internal): Add errnum argument.
12490
12491 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12492
12493         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12494         Don't add old memory content for R_ALPHA_REFQUAD.
12495
12496 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12497
12498         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12499         memory correctly.
12500
12501         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12502         instead of open, __close instead of close, __getpagesize instead
12503         of getpagesize.
12504
12505         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12506         instead of strnlen.
12507         * include/string.h (strndupa): Redefine here to use __strnlen
12508         instead of strnlen.
12509         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12510
12511         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12512         connected).
12513
12514 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12515
12516         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12517         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12518         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12519         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12520         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12521         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12522         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12523
12524 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12525
12526         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12527
12528 2001-08-30  Andreas Jaeger  <aj@suse.de>
12529
12530         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12531         contributed Stephen L Moshier.
12532
12533 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12534
12535         * sunrpc/etc.rpc (sgi_fam): Add.
12536
12537 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12538
12539         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12540
12541 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12542
12543         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12544         first is from a previous call.
12545         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12546
12547 2001-08-29  Andreas Schwab  <schwab@suse.de>
12548
12549         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12550
12551 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12552
12553         * config.make.in (INSTALL_SCRIPT): Define.
12554         * Makeconfig (INSTALL_SCRIPT): Define.
12555         * Makerules (do-install-script): New macro to install scripts using
12556         INSTALL_SCRIPT.
12557         (install-bin-script): New rule to install scripts with
12558         do-install-script.
12559         (install-bin-script-nosubdir): New rule.
12560         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12561         (distinfo-vars): Add $(install-bin-script).
12562         * Rules (others): Likewise.
12563         * Makefile (glibcbug): Install with install-bin-script.
12564         * debug/Makefile (xtrace): Likewise.
12565         (catchsegv): Likewise.
12566         * elf/Makefile (ldd): Likewise.
12567         * malloc/Makefile (mtrace): Likewise.
12568         * timezone/Makefile (tzselect): Likewise.
12569
12570 2001-08-29  H.J. Lu  <hjl@gnu.org>
12571
12572         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12573         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12574         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12575
12576 2001-08-29  Andreas Schwab  <schwab@suse.de>
12577
12578         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12579
12580 2001-08-28  H.J. Lu  <hjl@gnu.org>
12581
12582         * Makeconfig (combreloc-LDFLAGS): New variable.
12583         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12584         * config.make.in (have-z-combreloc): New variable.
12585         * configure.in: Substitute libc_cv_z_combreloc.
12586
12587 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12588
12589         * po/sv.po: Update from translation team.
12590         * po/fr.po: Likewise.
12591         * po/da.po: Likewise.
12592
12593 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12594
12595         * Makerules: Fix a typo: MD% -> MD5.
12596
12597 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12598
12599         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12600         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12601
12602 2001-08-28  Andreas Jaeger  <aj@suse.de>
12603
12604         * manual/libc-texinfo.sh: Add entry about free manuals.
12605
12606         * manual/contrib.texi (Contributors): Fix cross reference.
12607
12608         * manual/libc.texinfo (Copying): Include freemanuals.
12609
12610         * manual/Makefile (appendices): Add freemanuals.
12611
12612         * manual/freemanuals.texi: New file.
12613         Patch by Brian Youmans <3diff@gnu.org>.
12614
12615         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12616         smaller table.
12617
12618         * manual/math.texi (Errors in Math Functions): Fix grammar, start
12619         table on separate page.
12620         Patch by Brian Youmans <3diff@gnu.org>.
12621
12622 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12623
12624         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
12625         the connection went down after we first used it try to connect
12626         again and resend the message before printing to the console.
12627         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12628
12629 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12630
12631         * string/tst-strlen.c (main): Test strnlen (, -1) too.
12632         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12633         bit set.
12634
12635 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12636
12637         * iconv/strtab.c (searchstring): Use correct length for comparison.
12638         (strtabadd): Account total size correct if new string has old string as
12639         substring.
12640
12641 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12642
12643         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12644
12645 2001-08-27  Andreas Jaeger  <aj@suse.de>
12646
12647         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12648
12649         * math/libm-test.inc (j0_test): Add extra tests.
12650         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12651         not x, in Hankel approximation.
12652         Patches by Stephen L Moshier.
12653
12654 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12655
12656         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12657         link_map.
12658
12659         * configure.in: Fix test for .rela.dyn section.
12660
12661         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12662
12663 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12664
12665         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12666         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12667         Pass type_class to _dl_lookup_*.
12668         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12669         Pass around just type_class instead of noexec, noplt pair.
12670         (_dl_lookup_versioned_symbol): Likewise.
12671         (_dl_lookup_symbol_skip): Pass around just type_class instead of
12672         noexec, noplt pair.
12673         (_dl_lookup_versioned_symbol_skip): Likewise.
12674         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12675         * elf/do-lookup.h (do_lookup): Likewise.
12676         * include/link.h (struct link_map): Replace noexec and noplt fields
12677         in l_lookup_cache with type_class field.
12678         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12679         ELF_RTYPE_CLASS_COPY): Define.
12680         Adjust prototypes for _dl_lookup_symbol and
12681         _dl_lookup_versioned_symbol.
12682         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12683         elf_machine_lookup_noexec_p): Remove.
12684         (elf_machine_type_class): Define.
12685         * sysdeps/arm/dl-machine.h: Likewise.
12686         * sysdeps/hppa/dl-machine.h: Likewise.
12687         * sysdeps/cris/dl-machine.h: Likewise.
12688         * sysdeps/i386/dl-machine.h: Likewise.
12689         * sysdeps/ia64/dl-machine.h: Likewise.
12690         * sysdeps/m68k/dl-machine.h: Likewise.
12691         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12692         * sysdeps/mips/dl-machine.h: Likewise.
12693         * sysdeps/powerpc/dl-machine.h: Likewise.
12694         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12695         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12696         * sysdeps/sh/dl-machine.h: Likewise.
12697         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12698         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12699
12700 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12701
12702         * manual/message.texi (Advanced gettext functions): Change
12703         description of plural forms for Slovak.
12704         Reported by Marcel Telka <marcel@telka.sk>.
12705
12706         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12707         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12708
12709 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12710
12711         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12712         typo.  Patch by Florian La Roche <laroche@redhat.com>.
12713
12714 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12715
12716         * include/link.h (struct link_map): Add l_lookup_cache element.
12717         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12718         (RESOLVE_MAP): Likewise.
12719         (_dl_relocate_object): Remove cache initialization.
12720         * elf/dl-lookup.c: Rip out cache handling code.
12721         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12722         declarations.
12723
12724         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12725         remove some __builtin_expect.
12726         (_dl_lookup_versioned_symbol): Likewise.
12727
12728         * config.h.in: Add HAVE_Z_COMBRELOC.
12729         * configure.in: Add test for -z combreloc.
12730
12731         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12732         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
12733         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
12734         case to almost no code.
12735
12736 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
12737
12738         * po/tr.po: Update from translation team.
12739
12740 2001-08-24  Andreas Jaeger  <aj@suse.de>
12741
12742         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12743         make clean works.
12744
12745 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12746
12747         * elf/rtld.c (print_statistics): Printf % after percent values.
12748         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12749
12750         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12751         don't have to compute the hash value and initialize current_value.
12752         Move reference_name variable to where it is needed.
12753         (_dl_lookup_versioned_symbol): Likewise.
12754
12755 2001-08-24  Roland McGrath  <roland@frob.com>
12756
12757         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12758         Just test that strerror returns non-null for a few errno codes.
12759
12760 2001-08-23  Roland McGrath  <roland@frob.com>
12761
12762         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12763         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12764
12765         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12766
12767         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12768         __mach_reply_port.
12769
12770 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12771
12772         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12773         returns NULL.
12774
12775         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12776         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12777         doesn't do it.
12778         * elf/rtld.c: Include <sys/param.h>.
12779         * elf/dl-reloc.c: Likewise.
12780
12781 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12782
12783         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12784         empty to prevent junk from being generated.
12785         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12786
12787 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12788
12789         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12790         records.  Rename endrel to relative, initialize it to r, and use it
12791         in elf_machine_rel_relative calls.  Point r after relative relocs.
12792
12793 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12794
12795         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12796         of R_386_NONE.
12797
12798 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12799
12800         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12801         necessary.  Undefine newly defined macros at the end.
12802         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12803         Rename from elf_machine_rel_relative.
12804         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12805         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12806         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12807         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12808         Likewise.
12809         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12810         Likewise.
12811         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12812         Fix argument types.
12813         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12814         Fix argument types.
12815         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12816         Likewise.  Fix argument types.
12817         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12818         Likewise.  Fix argument types.
12819         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12820         Fix argument types.
12821         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12822         ElfW(Rel) in argument.
12823         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12824         function.
12825
12826 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
12827
12828         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12829
12830 2001-08-24  Andreas Jaeger  <aj@suse.de>
12831
12832         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12833         Stephen L Moshier <moshier@mediaone.net>.
12834
12835 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12836
12837         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12838         first if RELCOUNT is set.
12839
12840         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12841         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12842         elf_machine_rel_relative.
12843         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12844         Minor optimizations.
12845         * sysdeps/arm/dl-machine.h: Likewise.
12846         * sysdeps/cris/dl-machine.h: Likewise.
12847         * sysdeps/hppa/dl-machine.h: Likewise.
12848         * sysdeps/i386/dl-machine.h: Likewise.
12849         * sysdeps/ia64/dl-machine.h: Likewise.
12850         * sysdeps/m68k/dl-machine.h: Likewise.
12851         * sysdeps/mips/dl-machine.h: Likewise.
12852         * sysdeps/powerpc/dl-machine.h: Likewise.
12853         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12854         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12855         * sysdeps/sh/dl-machine.h: Likewise.
12856         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12857         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12858
12859 2001-08-23  Roland McGrath  <roland@frob.com>
12860
12861         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12862
12863         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12864         sysdeps/mach version.  Implement counting ("recursive") mutexes
12865         on top of cthreads mutexes.
12866         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12867
12868         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12869         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12870         (__libc_cleanup_region_start, __libc_cleanup_region_end,
12871         __libc_clean_end): Define these to call the cleanup function after
12872         normal exit when they're supposed to.
12873
12874         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12875         Take new first arg DOIT, a boolean saying whether to really install
12876         any cleanup handler.
12877         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12878         (__libc_cleanup_end): Likewise.
12879         * sysdeps/generic/bits/libc-lock.h: Same changes.
12880         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12881         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12882         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12883         Likewise.
12884         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12885         * sysdeps/generic/bits/stdio-lock.h
12886         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12887
12888 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12889
12890         * elf/ldconfig.c (search_dir): Remove stale symlinks.
12891
12892 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12893
12894         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12895         functions.
12896         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12897         lookups in cache.
12898         (_dl_lookup_versioned_symbol): Likewise.
12899         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12900         relocation lookup.
12901         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12902         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12903         (lookup_cache, lookup_cache_versioned): Add declarations.
12904
12905 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12906
12907         * stdlib/tst-random.c (main): Swap parameters in fail call.
12908         Patch by Pete Bevin <pete@petebevin.com>.
12909
12910 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12911
12912         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12913
12914 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12915
12916         * malloc/obstack.c: Indent preprocessor directives.
12917         Patch by Jim Meyering <meyering@ascend.com>.
12918
12919         * po/ja.po: Update from translation team.
12920
12921 2001-08-23  Roland McGrath  <roland@frob.com>
12922
12923         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12924
12925         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12926         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12927
12928 2001-08-22  Roland McGrath  <roland@frob.com>
12929
12930         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12931         __libc_lock_define_recursive.
12932         * elf/dl-open.c: Don't declare it here any more.
12933         * elf/dl-close.c: Likewise.
12934         * elf/dl-lookup.c: Likewise.
12935         * elf/dl-iteratephdr.c: Likewise.
12936         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12937         __libc_lock_unlock_recursive.
12938         * elf/dl-close.c (_dl_close): Likewise
12939         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12940         * elf/dl-open.c (_dl_open): Likewise
12941
12942         * sysdeps/generic/bits/libc-lock.h
12943         (__libc_lock_define_recursive): New macro.
12944         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12945         (_IO_lock_lock): Use __libc_lock_lock_recursive.
12946         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12947
12948         * conform/conformtest.pl (checknamespace): Sort the output list.
12949
12950         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12951         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12952         definitions conditional on [__USE_XOPEN].
12953
12954         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12955         these unconditionally, not only use [__USE_BSD], so as to match
12956         the sysdeps/unix/sysv/linux files.
12957
12958 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12959
12960         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12961         avoid warnings.
12962
12963         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12964         DL_LOOKUP_ADDRESS.
12965
12966 2001-08-22  Roland McGrath  <roland@frob.com>
12967
12968         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12969         conditionalization of sa_handler/sa_sigaction member types to
12970         match the sysdeps/unix/sysv/linux file.
12971
12972 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12973
12974         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12975         symbol sizes a bit better.
12976
12977         * sysdeps/ia64/strncpy.S: Complete rewrite.
12978         Contributed by Jakub Jelinek <jakub@redhat.com>.
12979
12980         * string/stratcliff.c (main): Add strncpy test.
12981
12982 2001-08-22  Roland McGrath  <roland@frob.com>
12983
12984         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12985         and don't declare unsetenv or _environ directly.
12986         (unsetenv): Return int, not void.  Use __environ instead of _environ.
12987
12988 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
12989
12990         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12991         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12992         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12993         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12994         test for cmsg struct size.
12995
12996 2001-04-23  Paul Eggert  <eggert@twinsun.com>
12997
12998         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12999         Rename __argc to ___argc in prototypes to avoid compatibility
13000         problems with systems that reserve the identifier "__argc".
13001         Similarly for __argv.
13002
13003 2001-08-21  Roland McGrath  <roland@frob.com>
13004
13005         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
13006
13007         * mach/Makefile (tests): Removed.
13008         * mach/hello.c: File removed.
13009
13010 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13011
13012         * po/sv.po: Update from translation team.
13013
13014         * stdio-common/vfscanf.c: Fix handling of %l[].
13015         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
13016
13017         * libio/Makefile (tests): Add tst-sscanf.
13018         * libio/tst-sscanf.c: New file.
13019
13020         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
13021         * malloc/mtrace.c (tr_where): dli_sname always points to a
13022         non-empty string if != NULL.
13023         Reported by Tim Janik <timj@gtk.org>.
13024
13025 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
13026
13027         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
13028         buf.  Free resources on failure.
13029         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
13030         (makefd_xprt): Likewise.
13031         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
13032         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
13033         * sunrpc/auth_unix.c (authunix_create): Likewise.
13034
13035 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
13036
13037         * string/strnlen.c: Remove.
13038         * sysdeps/generic/strnlen.c: New file.
13039         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
13040
13041 2001-08-21  Roland McGrath  <roland@frob.com>
13042
13043         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
13044         as a macro, not an extern inline function.
13045
13046         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
13047         * Versions.def (libc): Add GLIBC_2.2.5 set.
13048         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
13049         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
13050
13051 2001-08-20  Roland McGrath  <roland@frob.com>
13052
13053         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
13054         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
13055
13056 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13057
13058         * string/bits/string2.h: Remove strnlen optimization here.
13059         * sysdeps/i386/i486/bits/string.h: Add it here.
13060
13061 2001-08-21  Wolfram Gloger  <wg@malloc.de>
13062
13063         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
13064
13065 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13066
13067         * po/gl.po: Update from translation team.
13068
13069 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13070
13071         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
13072         * misc/err.c (convert_and_print): Likewise.
13073
13074         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
13075         function calls.
13076
13077 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13078
13079         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
13080         change of the gregset_t type.
13081         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13082
13083 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
13084
13085         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
13086
13087 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13088
13089         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
13090
13091         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
13092
13093 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
13094
13095         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
13096         before calling the cthreads initialization code.
13097
13098 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13099
13100         * argp/argp-help.c: Fix two problems introduced in last change.
13101
13102         * include/dirent.h: Include <dirstream.h> first.
13103
13104 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
13105
13106         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
13107
13108         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
13109         * sunrpc/xdr_rec.c: Likewise.
13110         * sunrpc/xdr_mem.c: Likewise.
13111         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
13112         * sunrpc/rpc_cmsg.c: Likewise.
13113         * sunrpc/getrpcport.c (getrpcport): Likewise.
13114         * sunrpc/clnt_simp.c (callrpc): Likewise.
13115         * sunrpc/clnt_gen.c (clnt_create): Likewise.
13116         * string/envz.c: Likewise.
13117
13118         * po/ko.po: Update from translation team.
13119
13120         * argp/argp-help.c: Handle wide oriented stderr stream.
13121
13122 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
13123
13124         * sysdeps/generic/strtol.c: Little optimizations.  Add some
13125         __builtin_expect.
13126
13127         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13128
13129         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13130         * wcsmbs/wcwidth.c (wcwdith): Likewise.
13131         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13132
13133         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13134
13135         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13136
13137         * time/time.h (struct timespec): Use __time_t for tv_sec element.
13138
13139         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
13140         wchar_t for function declarations and defintions.
13141
13142         * misc/sys/select.h: Define __need_time_t before including <time.h>.
13143         Define suseconds_t if it hasn't happened yet.
13144
13145         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13146
13147         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13148
13149         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13150         <stddef.h>.
13151
13152         * conform/data/stddef.h-data: Remove wint_t.
13153
13154         * conform/conformtest.pl: Change namespace test to take #undef
13155         lines into account.
13156
13157         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13158
13159         * conform/data/sys/socket.h-data: Add sockatmark.
13160
13161 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13162
13163         * io/fts.c: Update from recent BSD source.
13164
13165 2001-08-17  Roland McGrath  <roland@frob.com>
13166
13167         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13168         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13169         Likewise.
13170
13171 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13172
13173         * locale/duplocale.c (__duplocale): Also initialize the special
13174         __ctype_* elements.
13175
13176         * conform/data/netdb.h-data: Adjust gai_strerror return type.
13177
13178 2001-08-17  Andreas Jaeger  <aj@suse.de>
13179
13180         * misc/getpass.c: Include wchar.h for prototypes.
13181         * malloc/obstack.c: Likewise.
13182
13183 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13184
13185         * sunrpc/svc_simple.c (universal): Use __write instead of write.
13186
13187         * wcsmbs/wcscoll.c: Also define __wcscoll.
13188         * include/wchar.h: Declare __wcscoll.
13189
13190         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13191         * libio/vwprintf.c: Likewise.
13192         * libio/wprintf.c: Likewise.
13193
13194         * iconv/gconv_cache.c: Use __munmap instead of munmap.
13195
13196 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
13197
13198         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13199         instead of mbrtowc.
13200         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13201         wcslen, and __wcscoll instead of wcscoll.
13202
13203         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13204
13205         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13206         __getuid instead of getuid.
13207
13208         * stdio-common/perror.c (perror): Use __close instead of close.
13209         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13210         * libio/freopen.c (freopen): Likewise.
13211         * libio/freopen64.c (freopen64): Likewise.
13212
13213         * libio/tst-ungetwc2.c (main): Define str const.
13214
13215         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13216         * libio/fwprintf.c: Also define __fwprintf.
13217         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13218         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13219         * assert/assert-perr.c: Likewise.
13220         * assert/assert.c: Likewise.
13221         * gmon/gmon.c: Likewise.
13222         * inet/rcmd.c: Likewise.
13223         * malloc/obstack.c: Likewise.
13224         * misc/err.c: Likewise.
13225         * misc/error.c: Likewise.
13226         * misc/getpass.c: Likewise.
13227         * posix/getopt.c: Likewise.
13228         * resolv/res_hconf.c: Likewise.
13229         * stdio-common/perror.c: Likewise.
13230         * stdio-common/psignal.c: Likewise.
13231         * stdlib/fmtmsg.c: Likewise.
13232         * sunrpc/auth_unix.c: Likewise.
13233         * sunrpc/clnt_perr.c: Likewise.
13234         * sunrpc/clnt_tcp.c: Likewise.
13235         * sunrpc/clnt_udp.c: Likewise.
13236         * sunrpc/clnt_unix.c: Likewise.
13237         * sunrpc/svc_simple.c: Likewise.
13238         * sunrpc/svc_tcp.c: Likewise.
13239         * sunrpc/svc_udp.c: Likewise.
13240         * sunrpc/svc_unix.c: Likewise.
13241         * sunrpc/xdr.c: Likewise.
13242         * sunrpc/xdr_array.c: Likewise.
13243         * sunrpc/xdr_rec.c: Likewise.
13244         * sunrpc/xdr_ref.c: Likewise.
13245         * sysdeps/generic/wordexp.c: Likewise.
13246
13247         * po/it.po: Update from translation team.
13248
13249         * misc/err.c: Handle wide oriented stderr stream.
13250
13251 2001-08-14  Tom Rix  <trix@redhat.com>
13252
13253         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13254         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13255
13256 2001-08-13  Tom Rix  <trix@redhat.com>
13257
13258         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13259         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13260         and __intptr_t.
13261
13262 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13263
13264         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13265         Store the access registers to the ucontext structure.
13266         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13267         Likewise.
13268
13269         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13270         Load the access registers from the ucontext structure.
13271         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13272         Likewise.
13273
13274         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13275         offsets to the new ucontext layout.
13276         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13277
13278         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13279         of the ucontext structure.
13280         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13281
13282 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13283
13284         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13285         (error_at_line): Likewise.
13286
13287         * stdio-common/perror.c (perror): Implement according to standard.
13288         The stream orientation must not be changed if the stream was not
13289         oriented before the call.
13290         * stdio-common/Makefile (tests): Add tst-perror.
13291         * stdio-common/tst-perror.c: New file.
13292
13293
13294 See ChangeLog.12 for earlier changes.