Update.
[platform/upstream/glibc.git] / ChangeLog
1 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
2
3         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
4         define sigaction and __sigaction as wrappers around
5         __libc_sigaction which rejects changing SIGCANCEL.
6         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7
8         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
9         SETTID/CLEARTID.
10
11         * signal/allocrtsig.c: Move to...
12         * sysdeps/generic/allocrtsig.c: ...here.  New file.
13
14 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
15
16         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
17
18         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
19         R_386_TLS_LE): Define.
20         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
21         comments.
22         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
23         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
24         (elf_machine_rel): Handle R_386_TLS_TPOFF.
25         (elf_machine_rela): Likewise.
26         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
27
28 2002-09-17  Roland McGrath  <roland@redhat.com>
29
30         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
31         file-specific variable override so it compiles properly when using
32         --with-headers.
33
34 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
35
36         Ported to PowerPC64 running Linux.
37         * sysdeps/powerpc/powerpc64/Dist: New file.
38         * sysdeps/powerpc/powerpc64/Implies: New file.
39         * sysdeps/powerpc/powerpc64/Makefile: New file.
40         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
41         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
42         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
43         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
44         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
45         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
46         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
47         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
48         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
49         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
50         * sysdeps/powerpc/powerpc64/memset.S: New file.
51         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
52         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
53         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
54         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
55         * sysdeps/powerpc/powerpc64/strchr.S: New file.
56         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
57         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
58         * sysdeps/powerpc/powerpc64/strlen.S: New file.
59         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
60         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
61         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
62         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
63         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
64         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
65         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
66         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
67         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
68         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
69         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
70
71         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
72         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
73         various gcc versions.  Dot names required for powerpc64.
74         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
75         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
76         C_SYMBOL_DOT_NAME(alias).
77         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
78         original strong_alias macro.
79         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
80         C_SYMBOL_DOT_NAME(alias).
81         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
82         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
83         '.'ed name.
84         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
85         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
86         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
87         (hidden_def): Append hidden_dot_def1 macro to definition.
88         (hidden_ver): Append hidden_dot_def1 macro to definition.
89         (hidden_data_def): New macro.  Same as original hidden_def macro.
90         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
91         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
92         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
93         (hidden_weak): Append hidden_dot_weak1 macro to definition.
94         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
95         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
96         Otherwise defined as __GI_name.
97         (libc_hidden_data_def): New macro.  Use hidden_data_def.
98         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
99         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
100         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
101         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
102         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
103         (libm_hidden_data_def): New macro.  Use hidden_data_def.
104         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
105         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
106         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
107
108 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
109
110         * include/libc-symbols.h: Change *hidden_proto macros to accept
111         option parameters and pass those to the attribute definition.
112         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
113
114         * include/unistd.h: Declare __libc_pause.
115
116         * include/sys/socket.h: Declare __libc_send, __libc_recv,
117         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
118
119         * include/unistd.h: Declare __libc_fork.
120
121 2002-09-17  Roland McGrath  <roland@redhat.com>
122
123         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
124         (passwd2des): Define it as an alias.
125         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
126
127 2002-09-12  Bruno Haible  <bruno@clisp.org>
128
129         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
130         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
131
132         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
133         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
134
135 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
136
137         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
138         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
139         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
140         PowerPC64 does not have separate 64-bit syscalls.
141
142 2002-09-16  Roland McGrath  <roland@redhat.com>
143
144         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
145
146         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
147         New macro.
148
149         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
150
151         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
152         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
153         * sysdeps/generic/_exit.c: Likewise.
154
155 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
156
157         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
158
159         * elf/rtld.c (struct dl_start_final_info): New.
160         (_dl_start_final): Change second argument to struct
161         dl_start_final_info *.  Set start_time from info.
162         (_dl_start): Remove bootstrap_map variable, add info.
163         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
164         store HP_TIMING_NOW result into info.start_time.
165
166 2002-09-16  Andreas Jaeger  <aj@suse.de>
167
168         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
169         to _Exit.
170         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
171
172 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
173
174         * sysdeps/powerpc/abort-instr.h: New file.
175
176 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
177
178         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
179         comment.
180
181         * test-skeleton.c (main): Provide more information in case waitpid
182         fails.
183
184         * include/unistd.h: Declare __exit_thread.
185         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
186         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
187         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
188         * sysdeps/unix/sysv/linux/_exit.c: New file.
189         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
190         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
191         Add exit-thread.
192
193         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
194
195 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
196
197         * sysdeps/i386/dl-machine.h (elf_machine_rel)
198         (case R_386_TLS_DTPMOD32): Don't use addend.
199         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
200         (elf_machine_rela): Add support for TLS relocs.
201
202 2002-09-14  Roland McGrath  <roland@redhat.com>
203
204         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
205
206 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
207
208         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
209         specific asm macros for multiple percision integer math.
210
211 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
212
213         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
214         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
215         Remove per-machine conditionals for FLAG_* cases.
216         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
217         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
219
220 2002-09-10  Alan Modra <amodra@bigpond.net.au>
221
222         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
223         defined in entry.h.
224         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
225         lowest address for profiling in  __monstartup call.
226         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
227
228 2002-09-14  Roland McGrath  <roland@redhat.com>
229
230         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
231         instead of __NR_pread.
232         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
233         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
234         instead of __NR_pwrite.
235         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
236
237 2002-09-13  Roland McGrath  <roland@redhat.com>
238
239         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
240
241 2002-09-13  Andreas Jaeger  <aj@suse.de>
242
243         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
244         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
245
246 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
247
248         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
249
250 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
251
252         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
253         reading the headers.
254
255 2002-09-12  Roland McGrath  <roland@redhat.com>
256
257         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
258         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
259         find the ELF header.
260
261         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
262         executable if needed, in case it's actually a shared object.
263
264 2002-09-11  Roland McGrath  <roland@redhat.com>
265
266         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
267         l_map_start to adjust l_tls_initimage.
268
269         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
270         when using h_errno and it's not set to NETDB_INTERNAL.
271         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
272
273         * Makefile ($(common-objpfx)testrun.sh): New target.
274         (others): Depend on it.
275         (postclean-generated): Append it.
276
277         * nss/bug-erange.c: New file.
278         * nss/Makefile (tests): Add it.
279
280         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
281         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
282
283         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
284         strncmp, keeps the code smaller for a non-performance-critical case.
285
286         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
287         no longer wrongly matches arbitrary prefixes of NAME.
288         Reported by Jakub Jelinek <jakub@redhat.com>.
289
290 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
291
292         * posix/bug-regex11.c (tests): New array.
293         (main): Rewritten to run more different tests.
294
295 2002-09-10  Roland McGrath  <roland@redhat.com>
296
297         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
298         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
299         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
300
301         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
302         well so we don't get it declared by include/math.h's hidden_proto.
303         Then do hidden_proto for __isnanf locally so hidden_def works right.
304
305         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
306         a cast to turn nl_langinfo return value into an integer.
307
308 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
309
310         * posix/regexec.c (build_trtable): Fix the destination of
311         newline to prevent wrong states from overwriting.
312         Append break statements to optimization.
313
314 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
315
316         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
317         (build_range_exp): Add castings to strlen invocations.
318         (build_collating_symbol): Restore the type of characters from "char"
319         to "unsigned char", and supplement castings.
320         (build_collating_symbol): Likewise.
321         (build_equiv_class): Likewise.
322         (build_charclass): Likewise.
323         (seek_collating_symbol_entry): Likewise.
324         (parse_bracket_exp): Likewise.
325         (build_word_op): Supplement a casting.
326         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
327         (re_string_allocate): Fix castings.
328         (re_string_construct): Likewise.
329         (re_string_construct_common): Likewise.
330         (re_string_realloc_buffers): Likewise.
331         (build_wcs_buffer): Likewise.
332         (build_wcs_upper_buffer): Likewise.
333         (re_string_skip_chars): Likewise.
334         (re_string_reconstruct): Likewise.
335         * posix/regex_internal.h: Restore the type of characters in
336         re_string_t and bracket_elem_t from "char" to "unsigned char".
337         (re_string_elem_size_at): Fix castings.
338         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
339         (transit_state_bkref_loop): Restore the type of characters from
340         "char" to "unsigned char", and append a cast to "char*" pointer in
341         array subscript.
342         (check_node_accept_bytes): Likewise.
343         (find_collation_sequence_value): Likewise.
344
345 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
346
347         * sysdeps/mips/memcpy.S: New file.
348         * sysdeps/mips/memset.S: New file.
349         * sysdeps/mips/fpu/e_sqrt.c:  New file.
350         * sysdeps/mips/fpu/e_sqrtf.c: New file.
351
352         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
353         functional before. Also removed all SHLIB_COMPAT stuff.
354         * fpu/fegetenv.c: Likewise.
355         * fpu/fesetenv.c:: Likewise.
356         * fpu/feupdateenv.c: Likewise.
357         * fpu/fgetexcptflg.c: Likewise.
358         * fpu/fraiseexcpt.c: Likewise.
359
360         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
361
362 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
363
364         * include/math.h (__finite_internal, __finitef_internal,
365         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
366         (isfinite): Remove.
367         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
368         __isinfl, __isnanl): Add hidden_proto.
369         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
370         libm_hidden_proto.
371         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
372         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
373         __is{inf,nan} calls.
374         * stdio-common/printf_size.c (printf_size): Likewise.
375         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
376         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
377         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
378         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
379         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
380         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
381         (__finite): Add hidden_def.
382         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
383         (__finitef): Add hidden_def.
384         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
385         (__finitel): Add hidden_def.
386         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
387         hidden_def.
388         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
389         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
390         libm_hidden_def.
391         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
392         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
393         hidden_def.
394         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
395         (__isinfl): Remove INTDEF.
396         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
397         hidden_def.
398         (__isnanl): Remove INTDEF.
399         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
400         libm_hidden_def.
401         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
402         instead of sin and cos.
403         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
404         Add hidden_def.
405         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
406         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
407         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
408         libm_hidden_def.
409         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
410         Add hidden_def.
411         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
412         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
413         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
414         libm_hidden_def.
415         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
416         libm_hidden_def.
417         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
418         Add hidden_def.
419         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
420         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
421         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
422         libm_hidden_def.
423         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
424         __finitel_internal): Remove aliases.
425         (__finite, __finitef, __finitel): Add hidden_def.
426         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
427         __isnanl_internal): Remove aliases.
428         (__isnan, __isnanf, __isnanl): Add hidden_def.
429         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
430         __isinfl_internal): Remove aliases.
431         (__isinf, __isinff, __isinfl): Add hidden_def.
432         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
433         __fpclassifyl): Add libm_hidden_def.
434         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
435         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
436         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
437         (hidden_defx): Define and use.
438         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
439         libm_hidden_def.
440         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
441         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
442         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
443         Remove INTDEF.
444         (__isnan, __isnanf): Add hidden_def.
445         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
446         (__finitel): Add libm_hidden_def.
447         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
448
449         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
450         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
451         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
452         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
453         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
454         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
455         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
456         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
457         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
458         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
459         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
460         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
461         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
462         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
463         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
464         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
465         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
466         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
467         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
468         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
469         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
470         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
471         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
472         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
473         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
474         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
475         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
476
477 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
478
479         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
480
481 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
482
483         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
484         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
485
486 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
487
488         * string/stratcliff.c: Some more strncpy tests.
489         Patch by Daniel Jacobowitz <drow@mvista.com>.
490
491 2002-09-08  Roland McGrath  <roland@redhat.com>
492
493         * resolv/resolv.h: Include <sys/types.h> for u_long even in
494         the [__need_res_state] case.
495         Reported by Bruno Haible <bruno@clisp.org>.
496
497 2002-09-04  Bruno Haible  <bruno@clisp.org>
498
499         * sysdeps/generic/bits/ustat.h: Comment fix.
500         * io/sys/sendfile.h: Comment fix.
501         * sysdeps/posix/pread.c: Comment fix.
502         * sysdeps/posix/pread64.c: Comment fix.
503         * sysdeps/posix/pwrite.c: Comment fix.
504         * sysdeps/posix/pwrite64.c: Comment fix.
505
506 2002-09-06  Roland McGrath  <roland@redhat.com>
507
508         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
509         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
510         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
511         (_UTSNAME_MACHINE_LENGTH): Likewise.
512         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
513
514 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
515
516         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
517         test for filesystem type name of mount points.
518
519         * include/errno.h: Use errno definition with __thread for now only
520         in libc and ld.so.
521
522         * test-skeleton.c (main): Improve error message for unexpected
523         signal case.
524
525 2002-09-05  Roland McGrath  <roland@redhat.com>
526
527         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
528         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
529
530 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
531
532         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
533         case of failure.
534
535 2002-09-04  Bruno Haible  <bruno@clisp.org>
536
537         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
538         sigset_get_old_mask): Turn into inline functions.
539         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
540         sigset_get_old_mask): Likewise.
541         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
542         sigset_get_old_mask): Likewise.
543         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
544         syntax.
545
546         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
547
548         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
549         default definitions.
550         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
551         _sys_nerr_internal instead of _sys_nerr.
552
553         * nscd/connections.c (handle_request): Declare CALLER inside #if.
554
555 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
556
557         * sysdeps/powerpc/__longjmp.S: Moved to...
558         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
559         * sysdeps/powerpc/add_n.S: Moved to...
560         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
561         * sysdeps/powerpc/addmul_1.S: Moved to...
562         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
563         * sysdeps/powerpc/atomicity.h: Moved to...
564         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
565         * sysdeps/powerpc/backtrace.c: Moved to...
566         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
567         * sysdeps/powerpc/bp-asm.h: Moved to...
568         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
569         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
570         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
571         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
572         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
573         * sysdeps/powerpc/dl-machine.c: Moved to...
574         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
575         * sysdeps/powerpc/dl-machine.h: Moved to...
576         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
577         * sysdeps/powerpc/dl-start.S: Moved to...
578         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
579         * sysdeps/powerpc/gprrest0.S: Moved to...
580         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
581         * sysdeps/powerpc/gprrest1.S: Moved to...
582         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
583         * sysdeps/powerpc/gprsave0.S: Moved to...
584         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
585         * sysdeps/powerpc/gprsave1.S: Moved to...
586         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
587         * sysdeps/powerpc/lshift.S: Moved to...
588         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
589         * sysdeps/powerpc/memset.S: Moved to...
590         * sysdeps/powerpc/powerpc32/memset.S: ...here.
591         * sysdeps/powerpc/mul_1.S: Moved to...
592         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
593         * sysdeps/powerpc/ppc-mcount.S: Moved to...
594         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
595         * sysdeps/powerpc/register-dump.h: Moved to...
596         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
597         * sysdeps/powerpc/rshift.S: Moved to...
598         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
599         * sysdeps/powerpc/setjmp.S: Moved to...
600         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
601         * sysdeps/powerpc/stpcpy.S: Moved to...
602         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
603         * sysdeps/powerpc/strchr.S: Moved to...
604         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
605         * sysdeps/powerpc/strcmp.S: Moved to...
606         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
607         * sysdeps/powerpc/strcpy.S: Moved to...
608         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
609         * sysdeps/powerpc/strlen.S: Moved to...
610         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
611         * sysdeps/powerpc/sub_n.S: Moved to...
612         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
613         * sysdeps/powerpc/submul_1.S: Moved to...
614         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
615         * sysdeps/powerpc/elf/bzero.S: Moved to...
616         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
617         * sysdeps/powerpc/elf/start.S: Moved to...
618         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
619         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
620         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
621         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
622         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
623         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
624         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
625         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
626         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
627         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
628         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
629         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
630         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
631         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
633         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
635         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
637         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
639         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
641         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
643         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
645         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
646         powerpc/powerpc64.
647
648 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
649
650         * FAQ.in: Add powerpc64 to supported targets list. Also state the
651         minimum gcc version is 3.2
652         * README: Add powerpc64 to supported targets list.
653         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
654         Add powerpc64 and machine=powerpc/powerpc64.
655         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
656         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
657         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
658         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
659         * sysdeps/powerpc/powerpc32/Dist: New file.
660         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
661         * sysdeps/powerpc/powerpc32/Implies: New file.
662         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
663         ($(with-fp) = no): Move test to powerpc32/Makefile.
664         ($(subdir) = misc): Move to powerpc32/Makefile.
665         ($(build-shared) = yes): Move to powerpc32/Makefile.
666         ($(subdir) = csu): Move to powerpc32/Makefile.
667         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
668         * sysdeps/powerpc/powerpc32/Makefile: New file.
669         * sysdeps/powerpc/Versions: Remove libgcc functions.
670         * sysdeps/powerpc/powerpc32/Versions: New file.
671         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
672         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
673         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
674         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
675         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
676         ($machine): Add powerpc/powerpc64 to if ... | for
677         libc_cv_slibdir=/libc64.
678         (powerpc*): Set ldd_rewrite_script.
679         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
680         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
682         Add clone.S.
683         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
684         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
685         functions.  Remove GLIBC_2.2 functions except getrlimit and
686         setrlimit.  Moved them to ...
687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
688
689 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
690
691         * libio/tst-atime.c: Include <errno.h>.
692         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
693
694 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
695
696         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
697         warnings of some compilers.
698         (build_collating_symbol): Change the type of characters from
699         "unsigned char" to "char", and append a cast to "char*" pointer in
700         array subscript.
701         (build_collating_symbol): Likewise.
702         (build_equiv_class): Likewise.
703         (build_charclass): Likewise.
704         (re_compile_pattern): Remove incorrect cast.
705         (re_compile_fastmap_iter): Change the type of characters from
706         "unsigned char" to "char", and append a cast to "char*" pointer
707         in array subscript.
708         (parse_bracket_exp): Likewise.
709         * posix/regex_internal.c (re_string_construct_common): Likewise.
710         (re_string_allocate): Likewise.
711         (re_string_construct): Likewise.
712         (re_string_realloc_buffers): Likewise.
713         (build_wcs_buffer): Likewise.
714         (re_string_reconstruct): Likewise.
715         * posix/regex_internal.h: Change the type of characters in
716         re_string_t and bracket_elem_t from "unsigned char" to "char".
717         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
718         warnings of some compilers.
719         (transit_state_bkref_loop): Change the type of characters from
720         "unsigned char" to "char", and append a cast to "char*" pointer in
721         array subscript.
722         (check_node_accept_bytes): Likewise.
723         (find_collation_sequence_value): Likewise.
724
725 2002-09-04  Roland McGrath  <roland@redhat.com>
726
727         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
728         from 1024 to 65536, to avoid buffer overrun.
729
730 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
731
732         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
733
734 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
735
736         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
737         for filesystem.
738
739 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
740
741         * posix/bug-regex11.c: New test.
742         * posix/Makefile (tests): Add bug-regex11.
743
744 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
745
746         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
747         newlocale.
748
749 2002-09-02  Roland McGrath  <roland@redhat.com>
750
751         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
752         __pthread_initialize_minimal and __libc_check_standard_fds to
753         match the generic version.
754
755         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
756         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
757
758         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
759         warnings on platorms where char is unsigned.
760
761 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
762
763         * version.h (VERSION): Bump to 2.2.93.
764
765         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
766
767 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
768
769         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
770         as relocated.
771
772 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
773
774         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
775
776 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
777
778         * locale/localeinfo.h (struct locale_data): Add private.ctype.
779         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
780         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
781         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
782         (__wcsmbs_load_conv): Remove const from argument.
783         (_nl_cleanup_ctype): New proto.
784         (get_gconv_fcts): New function.
785         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
786         (__wcsmbs_to_wc): Rename back to...
787         (to_wc): ... this.
788         (__wcsmbs_gconv_fcts): Rename to...
789         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
790         (lock): Removed.
791         (__libc_setlocale_lock): New extern.
792         (__wcsmbs_load_conv): Remove const from argument.
793         Initialize new_category->private.ctype instead of a global
794         variable.
795         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
796         update_function_ptrs.  No locking is necessary.
797         (_nl_cleanup_ctype): New function.
798         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
799         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
800         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
801         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
802         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
803         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
804         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
805         * wcsmbs/wctob.c (wctob): Likewise.
806         * stdlib/mblen.c (mblen): Likewise.
807         * stdlib/mbtowc.c (mbtowc): Likewise.
808         * stdlib/wctomb.c (wctomb): Likewise.
809         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
810         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
811         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
812         Removed.
813
814 2002-09-02  Roland McGrath  <roland@frob.com>
815
816         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
817
818 2002-09-01  Roland McGrath  <roland@redhat.com>
819
820         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
821         Variable declarations removed.
822         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
823         these functions to replace them.
824         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
825         functions plus an indirection rather than the old global variables.
826         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
827         Macros removed.
828         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
829         inline functions.
830         * ctype/ctype-info.c: Revert last reversion back the other way.
831         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
832         Define real function versions of include/ctype.h inlines here.
833         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
834         __ctype_tolower_loc, __ctype_toupper_loc.
835         * locale/lc-ctype.c: Revert last reversion back the other way.
836         (_nl_postload_ctype): If current thread uses the global locale,
837         update its tsd vars.
838         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
839         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
840         CTYPE_TOLOWER, CTYPE_TOUPPER.
841
842         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
843         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
844         from __libc_tsd_threadvar_location.
845         (__libc_tsd_set, __libc_tsd_get): Update uses.
846
847 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
848
849         * ctype/ctype.h: Undo the patch before the last one.  Put back the
850         macro definitions for the standard functions to access the
851         classification and mapping arrays.
852         * include/ctype.h: Partly revert last patch.  Move the macro
853         definitions for the exported functions back to the public header.
854         #undef all the macros defined here before redefining.
855         * ctype/ctype-info.c: Revert last patch.
856         * locale/lc-ctype.c: Revert last patch.
857
858         * ctype/Makefile (routines): Add isctype.
859         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
860         * ctype/ctype.h: Add declaration of isctype.
861         * include/ctype.h: Declare __isctype.
862         * ctype/isctype.c: New file.
863
864 2002-09-01  Roland McGrath  <roland@redhat.com>
865
866         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
867         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
868
869         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
870
871         * locale/findlocale.c (_nl_remove_locale): Don't search in
872         _nl_locale_file_list if DATA->alloc is ld_archive.
873         Use _nl_unload_locale to do the rest of the work.
874
875         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
876         of new structure to UNDELETABLE.
877
878         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
879         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
880         towlower, towupper): Macros removed.
881         * ctype/ctype.h (__tobody): Put parens around macro argument.
882         (__isctype): Macro removed.
883         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
884         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
885         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
886         tolower, toupper): Macros and inlines removed.
887         * include/ctype.h [! NOT_IN_libc]
888         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
889         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
890         tolower, toupper): Define here instead, using _NL_CURRENT.
891         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
892         using _NL_CURRENT.
893         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
894         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
895         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
896         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
897         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
898         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
899         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
900         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
901         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
902         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
903         (ISSORTMASK): Update use.
904         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
905         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
906         (_nss_files_getENTNAME_r): Likewise.
907         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
908         Likewise.
909
910         * Makerules (all-nonlib): Renamed from all-tests.
911         Include $(others) here too.
912         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
913         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
914         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
915         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
916         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
917         the program modules via cppflags-iterator.mk.
918         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
919         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
920
921 2002-08-31  Roland McGrath  <roland@redhat.com>
922
923         * posix/tst-getconf.sh: If no third arg, work with static linking.
924
925         * locale/categories.def (LC_TIME): No more _nl_postload_time.
926
927         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
928         [_NL_CURRENT_INDIRECT].
929
930 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
931
932         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
933
934 2002-08-31  Roland McGrath  <roland@redhat.com>
935
936         * locale/newlocale.c (__newlocale): Don't use strdup for names.
937         Instead, make the single allocation of the structure larger to hold
938         the name strings.
939         * locale/duplocale.c (__duplocale): Don't strdup names individually.
940         Instead, calculate size for a single allocation and copy into it.
941         * locale/freelocale.c (__freelocale): Don't free names individually.
942
943         * locale/newlocale.c (__newlocale): Don't leak old data or names.
944
945         * locale/xlocale.h (__locale_struct): Move __names member last,
946         for binary compatibility.
947
948         * locale/duplocale.c (__duplocale): Free names from the right array.
949
950         * locale/uselocale.c (__uselocale): Return previous locale when
951         setting a new one.
952
953         * locale/newlocale.c: Commit changes from 2002-08-30
954         batch where I failed to commit this file:
955         (__newlocale): Fill in __names array.
956
957 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
958
959         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
960         errlist-compat.c if versioning==yes.
961
962 2002-08-31  Andreas Jaeger  <aj@suse.de>
963
964         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
965         external functions with hidden attribute.
966         (elf_machine_rela): Optimize.
967
968         * sysdeps/x86_64/memset.S: New file.
969         * sysdeps/x86_64/bzero.S: New file.
970         * sysdeps/x86_64/stpcpy.S: New file.
971         * sysdeps/x86_64/strcat.S: New file.
972         * sysdeps/x86_64/strchr.S: New file.
973         * sysdeps/x86_64/strcpy.S: New file.
974         * sysdeps/x86_64/strcspn.S: New file.
975         * sysdeps/x86_64/strlen.S: New file.
976         * sysdeps/x86_64/strpbrk.S: New file.
977         * sysdeps/x86_64/strspn.S: New file.
978         * sysdeps/x86_64/strcmp.S: New file.
979         * sysdeps/x86_64/strtok_r.S: New file.
980         * sysdeps/x86_64/strtok.S: New file.
981         * sysdeps/x86_64/memcpy.S: New file.
982         * sysdeps/x86_64/mempcpy.S: New file.
983
984         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
985
986         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
987
988 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
989
990         * stdio-common/Makefile (generated): Add errlist-compat.c.
991
992         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
993
994         * locale/localeinfo.h: Pretty printing.
995
996         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
997         form_number handling.
998
999 2002-08-31  Andreas Jaeger  <aj@suse.de>
1000
1001         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1002         double tests.
1003
1004         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1005         __start_context.
1006
1007         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1008
1009         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1010
1011         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1012         registers used for passing args.
1013
1014         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1015         all needed registers.
1016
1017         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1018         registers.
1019
1020         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1021         registers.
1022
1023 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1024
1025         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1026         always_inline attribute.
1027
1028 2002-08-30  Roland McGrath  <roland@redhat.com>
1029
1030         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1031         presume it's the stub and bail without error.
1032
1033         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1034         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1035
1036         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1037
1038         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1039         macros replace the i686 versions for 64-bit mode.
1040
1041         * locale/duplocale.c: Include <string.h>.
1042
1043         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1044         [_LIBC] (category_to_name): Don't define the function.  Instead
1045         define a macro using _nl_category_names.
1046
1047         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1048         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1049         * locale/global-locale.c (_nl_global_locale): Likewise.
1050         * locale/duplocale.c (__duplocale): strdup __names elements.
1051         * locale/freelocale.c (__freelocale): Free __names elements.
1052         * locale/localename.c (_nl_current_names): Variable removed.
1053         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1054         * locale/localeinfo.h (_nl_current_names): Removed decl.
1055         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1056         _nl_current_names throughout.
1057
1058         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1059
1060         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1061         and sys_nerr in the output file.
1062
1063         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1064         * scripts/cpp: Just use the environment variable.
1065
1066         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1067         * libio/tst-mmap-offend.c (do_test): Likewise.
1068         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1069         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1070         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1071
1072         * locale/localename.c: If the current locale is the global locale, use
1073         _nl_current_names; otherwise use the locale object.
1074
1075 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1076
1077         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1078         'm' to enable mmap I/O.
1079         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1080         former wasn't used (anymore?).
1081         (_IO_FLAGS2_MMAP): New define.
1082         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1083         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1084         _IO_FLAGS2_MMAP bit is set.
1085         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1086         Enable mmap-using mode only if 'm' was set.
1087
1088 2002-08-29  Roland McGrath  <roland@frob.com>
1089
1090         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1091
1092         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1093         Change argument type from int to intptr_t.
1094
1095         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1096         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1097         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1098         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1099         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1100
1101         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1102
1103         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1104
1105         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1106
1107         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1108         * assert/assert-perr.c: Add libc_hidden_def.
1109         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1110
1111         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1112         found at all.
1113         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1114         sys_errlist stuff to ...
1115         * sysdeps/unix/sysv/linux/Versions: ... here.
1116
1117         * mach/mach.h: Include <features.h>.
1118
1119 2002-08-29  Roland McGrath  <roland@redhat.com>
1120
1121         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1122         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1123         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1124
1125         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1126
1127         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1128         (norm_add_slashes): alloca -> __alloca
1129
1130 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1131
1132         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1133         string_malloced, it is unlikely to be set.
1134         Only call free with non-NULL workspace.
1135         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1136         -mcpu=ultrasparc, not only tune for it.
1137         (ASFLAGS*): Set unconditionally.
1138
1139         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1140         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1141         p_vaddr/p_offset when computing LOADADDR.
1142
1143 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1144
1145         * version.h (VERSION): Bump to 2.2.92.
1146
1147         * time/Makefile (tst-ftime_l-ENV): New variable.
1148
1149         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1150
1151         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1152         <U017A>, <U017D> and <U0179>. Add missing mappings.
1153         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1154
1155         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1156         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1157         (struct tostruct): Use ACRINDEX as type for link field.
1158         (statuc gmonparam): Likewise for froms.
1159         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1160         kcount and froms.
1161         (write_call_graph): Use correct type for from_index and to_index.
1162         * gmon/mcount.c: Use correct types for frompcindex and toindex
1163         variables.
1164         Patches by Dan Kegel <dank@kegel.com>.
1165
1166         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1167         canonical name.
1168
1169         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1170         __isspace_l.  Replace calls to isspace.
1171         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1172
1173 2002-08-29  Roland McGrath  <roland@redhat.com>
1174
1175         * string/tst-strxfrm.c: Remove __ from function names.
1176
1177 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1178
1179         * include/wchar.h: Declare __mbsrtowcs_l.
1180         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1181         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1182         USE_IN_EXTENDED_LOCALE_MODEL.
1183         * wcsmbs/mbsrtowcs_l: New file.
1184         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1185         define as static.  Change all uses.
1186         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1187         Change all callers.
1188         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1189         * time/strftime.c: When translating for the extended locale model
1190         use the _l functions.
1191         * time/Makefile (tests): Add tst-ftime_l.
1192         * time/tst-ftime_l.c: New file.
1193
1194 2002-08-28  Roland McGrath  <roland@redhat.com>
1195
1196         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1197         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1198         from _nl_find_locale ok if for _nl_C_name.
1199
1200         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1201         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1202         we know they are all linked in.
1203
1204         * NEWS: Added 2.2.6 text from 2.2 branch version.
1205
1206         * time/strptime.c (strptime_internal): Remove spurious const.
1207
1208         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1209         _nl_select_era_entry): Moved to ...
1210         * time/era.c: ... here, new file.
1211         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1212         Add internal_function to definitions.  Take an additional argument
1213         giving the `struct locale_data *' to use.
1214         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1215         _nl_parse_alt_digit): Moved to ...
1216         * time/alt_digit.c: ... here, new file.
1217         * time/lc-time-cleanup.c: New file.
1218         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1219         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1220         (_nl_cleanup_time): Declare it.
1221         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1222         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1223         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1224         * time/strftime.c: Pass locale data to helper functions.
1225         * time/strptime.c: Likewise.
1226
1227         * locale/localeinfo.h (struct locale_data): New member `private'
1228         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1229         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1230         * locale/C-collate.c: Update initializer.
1231         * locale/C-identification.c: Likewise.
1232         * locale/C-measurement.c: Likewise.
1233         * locale/C-telephone.c: Likewise.
1234         * locale/C-address.c: Likewise.
1235         * locale/C-name.c: Likewise.
1236         * locale/C-paper.c: Likewise.
1237         * locale/C-time.c: Likewise.
1238         * locale/C-numeric.c: Likewise.
1239         * locale/C-monetary.c: Likewise.
1240         * locale/C-messages.c : Likewise.
1241         * locale/C-ctype.c: Likewise.
1242
1243         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1244         Redefine this too.
1245
1246 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1247
1248         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1249         (_rtld_global): Use it.
1250
1251         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1252         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1253         object directory.  Pass all Versions files to the awk script.
1254         * sysdeps/gnu/errlist-compat.c: Removed.
1255         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1256         first Versions file in the search path which has them.
1257         Allow multiple errlist symbol versions to have the same count of
1258         errors.
1259         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1260         of "errlist-compat.c".
1261         * sysdeps/gnu/errlist.c: Regenerated.
1262         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1263         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1264         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1265         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1266         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1267         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1268         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1269         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1270         ECANCELLED if not defined by kernel headers.
1271         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1272         already defined by kernel headers.
1273         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1274         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1275         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1276         is a macro.
1277         * Versions.def (GLIBC_2.3) [librt]: Add.
1278
1279         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1280
1281 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1282
1283         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1284         missing comma to .type directive.
1285
1286 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1287
1288         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1289         unconditionally.
1290         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1291         check.
1292         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1293
1294 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1295
1296         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1297         check to close_and_out close.  Replace return NULL statements where
1298         fd might be >= 0 with goto close_and_out.  Close the file descriptor
1299         when it is no longer needed.
1300
1301 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1302
1303         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1304         string constants.
1305         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1306         * sysdeps/arm/dl-machine.h: Likewise.
1307         * sysdeps/cris/dl-machine.h: Likewise.
1308         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1309         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1310
1311 2002-08-28  Roland McGrath  <roland@redhat.com>
1312
1313         * Makeconfig (default_cflags): Revert unintended change.
1314
1315 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1316
1317         * version.h (VERSION): Bump to 2.2.91.
1318
1319         * configure.in: Disable TLS support by default for now.
1320
1321         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1322
1323         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1324         warnings.
1325
1326         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1327
1328         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1329         fprintf/fwprintf calls.
1330
1331 2002-08-28  Roland McGrath  <roland@redhat.com>
1332
1333         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1334         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
1335
1336         * locale/setlocale.c: Declare postload functions weak.
1337
1338         * elf/tst-tls1-static.c: New file.
1339         * elf/tst-tls2-static.c: New file.
1340         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1341
1342         Make uselocale support static linking.
1343         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1344         This file again just defines _nl_C_locobj.
1345         (_nl_C_locobj): Use a categories.def iterator in the initializer.
1346         * locale/global-locale.c: New file.  Define _nl_global_locale here,
1347         using all weak references in the initializer.
1348         * locale/Makefile (aux): Add global-locale.
1349         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1350         these unconditional, along with the tsd decl.
1351         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1352         Define it under these conditions.
1353         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1354         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
1355         `extern __thread struct locale_data *const *'.
1356         [NL_CURRENT_INDIRECT]
1357         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1358         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
1359         the thread variable _nl_current_LC_FOO and also a special absolute
1360         symbol _nl_current_LC_FOO_used.
1361         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1362         Set each _nl_current_LC_FOO symbol to point into the new locale,
1363         using weak references to test if _nl_current_LC_FOO_used was linked in.
1364         * locale/setlocale.c [! SHARED]: Replace this conditional ...
1365         [NL_CURRENT_INDIRECT]: ... with this one.
1366         (_nl_current, _nl_C): Variables removed.
1367         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1368         weak references to _nl_current_LC_FOO_used.
1369         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1370         (free_category): New function, broken out of ...
1371         (free_mem): ... here.  Call that.
1372         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1373         instead of a loop.
1374
1375         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1376         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1377         it is already absolute.
1378
1379         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1380         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1381         [$(build-static) = yes] (tests-static): New variable.
1382         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1383
1384 2002-08-26  Christoph Hellwig  <hch@lst.de>
1385
1386         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1387         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1388
1389 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1390
1391         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1392
1393         * sysdeps/s390/Dist: Add bits/link.h.
1394
1395         * sysdeps/sh/Dist: New file.
1396
1397         * sysdeps/ia64/Dist: Add ia64libgcc.S.
1398
1399         * sysdeps/wordsize-32/Dist: New file.
1400
1401         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1402         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1403         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1404
1405         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1406         sys/personality.h.
1407
1408         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1409         sparc/dl-brk.S.
1410
1411         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1412
1413         * sysdeps/unix/bsd/sun/Dist: New file.
1414
1415         * sysdeps/unix/bsd/osf/Dist: New file.
1416
1417         * sysdeps/unix/bsd/hp/Dist: New file.
1418
1419         * sysdeps/unix/arm/Dist: New file.
1420
1421         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1422
1423         * sysdeps/mach/hurd/Dist: Add set-init.c.
1424
1425         * sysdeps/i386/Dist: Add bits/link.h.
1426
1427         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1428
1429         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1430
1431         * locale/Makefile (distribute): Add hashval.h.
1432
1433         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1434
1435         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1436
1437         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1438         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1439         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1440         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1441         implementations.
1442         * libio/stdio.h: Likewise.
1443         * locale/locale.h: Likewise.
1444         * math/math.h: Likewise.
1445         * math/bits/mathcalls.h: Likewise.
1446         * setjmp/setjmp.h: Likewise.
1447         * signal/signal.h: Likewise.
1448         * stdlib/stdlib.h: Likewise.
1449         * string/string.h: Likewise.
1450         * time/time.h: Likewise.
1451         * wcsmbs/wchar.h: Likewise.
1452         * wctype/wctype.h: Likewise.
1453
1454 2002-08-28  Roland McGrath  <roland@redhat.com>
1455
1456         * locale/tst-C-locale.c (run_test): Remove __ from function names.
1457
1458 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1459             Roland McGrath <roland@redhat.com>
1460
1461         * locale/hashval.h (compute_hashval): Use prototype defn.
1462         (hashval_t): New macro, defined to unsigned long int
1463         if not already defined.
1464         (compute_hashval): Return hashval_t instead of unsigned long int.
1465         * locale/loadarchive.c (hashval_t): New macro.
1466         * locale/programs/locarchive.c: Include hashval.h directly instead
1467         of simple-hash.h.
1468         (compute_hashval, hashval_t): Define these macros first.
1469         (insert_name): Use archive_hashval instead of compute_hashval.
1470         (add_locale, delete_locales_from_archive): Likewise.
1471
1472 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1473
1474         * locale/programs/locarchive.c (insert_name): Suppress warnings about
1475         hash collisions if be_quiet.
1476
1477 2002-08-27  Roland McGrath  <roland@redhat.com>
1478
1479         * locale/locale.h (__newlocale, __duplocale, __freelocale,
1480         __uselocale): Don't declare these any more.
1481         * include/locale.h (__uselocale): Declare here instead, using __typeof.
1482
1483         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1484         and treat it as an EOF return.
1485         * sysdeps/unix/readdir_r.c: Likewise.
1486
1487         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1488         From Alexandre Oliva <aoliva@redhat.com>.
1489         * sysdeps/gnu/errlist-compat.c: Regenerated.
1490
1491 2002-08-27  Brian Youmans  <3diff@gnu.org>
1492
1493         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1494         wording at request of copyright holder Stephen Moshier.
1495         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1496         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1497         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1498         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1499         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1500         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1501         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1502         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1503         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1504         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1505         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1506         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1507         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1508         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1509
1510 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1511
1512         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1513         * ctype/ctype-extn.c (isblank_l): Add weak alias.
1514         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1515         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1516         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1517         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1518         * wctype/iswctype_l.c (iswctype_l): Likewise.
1519
1520 2002-08-27  Roland McGrath  <roland@redhat.com>
1521
1522         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1523
1524         * ctype/ctype.h (__exctype_l): Don't declare __ name.
1525         * stdlib/stdlib.h: Don't declare __*_l names.
1526         * include/stdlib.h: Declare them here instead.
1527         * include/string.h: Don't declare __*_l names.
1528         * string/string.h: Declare them here instead.
1529         * time/time.h: Don't declare __*_l names.
1530         * include/time.h: Declare them here instead.
1531         * wcsmbs/wchar.h: Don't declare __*_l names.
1532         * include/wchar.h: Declare them here instead.
1533         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1534         Don't declare __*_l names.
1535         * include/wctype.h: Declare them here instead.
1536         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1537         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1538         * locale/langinfo.h: Don't declare __nl_langinfo_l.
1539         * include/langinfo.h: Declare it here with __typeof.
1540
1541         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1542         instead, taking an extra __locale_t argument.
1543         * time/Makefile (routines): Add strptime_l.
1544         * time/time.h (__strptime_l, strptime_l): Declare them.
1545         * time/strptime_l.c: New file.
1546
1547         * time/time.h (__strftime_l, strftime_l): Declare them.
1548         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1549         * time/strftime_l.c: New file.
1550         * time/wcsftime_l.c: New file.
1551         * time/Makefile (routines): Add strftime_l, wcsftime_l.
1552         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1553         strftime_l, wcsftime_l.
1554         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1555         or __wcsftime_l instead, taking an extra __locale_t argument.
1556
1557         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1558         (libc: GLIBC_2.3): ... here.
1559
1560 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1561
1562         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1563
1564         * Makefile (distribute): Add LICENSES.
1565
1566         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1567         sys/debugreg.h.
1568
1569         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1570
1571         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1572
1573         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1574
1575         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1576
1577         * sysdeps/mach/hurd/alpha/Dist: New file.
1578
1579         * sysdeps/arm/Dist: Add bits/link.h.
1580
1581         * sunrpc/Makefile: Distribute thrsvc.
1582
1583         * stdio-common/Makefile: Remove more left-overs from old stdio.
1584
1585         * include/linewrap.h: Removed.
1586
1587         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1588
1589         * intl/Makefile (distribute): Add plural-eval.c.
1590
1591 2002-08-27  Roland McGrath  <roland@redhat.com>
1592
1593         * manual/sysinfo.texi (Mount Information): Correct file name to macro
1594         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1595         Say mtab is in either /var/run or /etc.
1596
1597 2002-08-26  Roland McGrath  <roland@redhat.com>
1598
1599         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1600         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1601
1602         * sysdeps/gnu/Versions: New file.
1603         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1604         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1605         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1606         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1607         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1608         and _sys_nerr_internal instead of anything else.  Make it include
1609         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1610         Make it emit some asm magic if [EMIT_ERR_MAX].
1611         * sysdeps/gnu/errlist.c: Regenerated.
1612         * sysdeps/gnu/errlist-compat.awk: New file.
1613         * sysdeps/gnu/errlist-compat.c: New file (generated).
1614         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1615         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1616         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1617         (SYS_ERRLIST, SYS_NERR): Macros removed.
1618         (sys_nerr, _sys_nerr): Remove these weak aliases.
1619         * sysdeps/unix/sysv/linux/errlist.c: File removed.
1620         * sysdeps/unix/sysv/linux/errlist.h: File removed.
1621         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1622
1623         * include/libc-symbols.h (declare_symbol): New macro.
1624         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1625         * configure.in: New check to define it.
1626         * configure: Regenerated.
1627
1628 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1629
1630         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
1631         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
1632
1633         * Make-dist: Remove traces of old stdio.
1634         * Makeconfig: Likewise.
1635
1636         * locale/Makefile (localedef-aux): New variable.  Only md5
1637         assigned to it.  These files are not ddistributed in this directory.
1638
1639         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1640         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1641         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1642
1643         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1644
1645         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1646         set h_errno to NO_RECOVERY [PR libc/4360].
1647
1648 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1649
1650         * libio/Makefile (tests): Add bug-fopena+.
1651         * libio/bug-fopena+.c: New file.
1652         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1653         file for _IO_IS_APPENDING if file isn't opened for reading, too.
1654
1655         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1656
1657         * locale/xlocale.c: Fix the last change.  The variable still has
1658         to end in _data.
1659         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1660         (__libc_tsd_set): Add _data prefix to variable name.
1661
1662 2002-08-26  Roland McGrath  <roland@redhat.com>
1663
1664         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1665         macro with inline function.
1666         (sigset_get_old_mask): Likewise.
1667         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1668         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1669         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1670         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1671         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1672         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1673         values.
1674         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1675         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1676
1677 2002-07-06  Bruno Haible  <bruno@clisp.org>
1678
1679         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1680         sigset_get_old_mask): Make it work with larger sigset_t.
1681         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1682         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1683         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1684
1685 2002-08-26  Roland McGrath  <roland@redhat.com>
1686
1687         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1688         * manual/filesys.texi (File Times): Document lutimes and futimes.
1689         * misc/Makefile (routines): Add them.
1690         * misc/Versions (libc: GLIBC_2.3): Likewise.
1691         * sysdeps/generic/lutimes.c: New file.
1692         * sysdeps/generic/futimes.c: New file.
1693         * sysdeps/mach/hurd/lutimes.c: New file.
1694         * sysdeps/mach/hurd/futimes.c: New file.
1695
1696         * manual/filesys.texi (File Times): Add explicit note about null
1697         pointer argument to utimes.
1698
1699 2002-08-26  Roland McGrath  <roland@frob.com>
1700
1701         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1702         (__ifreq): Add a cast.  Remove an unused variable.
1703
1704         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1705         _HURD_THREADVAR_LOCALE.
1706
1707 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
1708
1709         * posix/regexec.c (re_search_stub): Return correct match length
1710         if start != 0.
1711         * posix/bug-regex10.c: New test.
1712         * posix/Makefile (tests): Add bug-regex10.
1713
1714 2002-08-26  Brian Youmans  <3diff@gnu.org>
1715
1716         * COPYING.LIB: Replaced with fresh copy from
1717         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1718         suggested copying permission notice now says version 2.1 instead
1719         of version 2.
1720
1721         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1722         from Library GPL.
1723         * crypt/crypt_util.c: Likewise.
1724         * crypt/ufc.c: Likewise.
1725         * elf/dl-conflict.c: Likewise.
1726         * elf/dl-iteratephdr.c: Likewise.
1727         * iconv/iconvconfig.h: Likewise.
1728         * malloc/arena.c: Likewise.
1729         * malloc/hooks.c: Likewise.
1730         * malloc/malloc.c: Likewise.
1731         * posix/glob/Makefile.ami: Likewise.
1732         * posix/glob/Makefile.in: Likewise.
1733         * stdlib/gmp-impl.h: Likewise.
1734         * stdlib/gmp.h: Likewise.
1735         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1736         * sysdeps/generic/strnlen.c: Likewise.
1737         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1738         * sysdeps/mach/hurd/recvmsg.c: Likewise.
1739         * sysdeps/mach/hurd/sendmsg.c: Likewise.
1740         * sysdeps/mach/hurd/spawni.c: Likewise.
1741         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1742         * sysdeps/mach/powerpc/sysdep.h: Likewise.
1743         * sysdeps/mach/powerpc/thread_state.h: Likewise.
1744         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1745         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1746         * sysdeps/x86_64/gmp-mparam.h: Likewise.
1747
1748         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1749         Lesser GPL copying permission notice from 2 to 2.1.
1750         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1751         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1752         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1753         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1754         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1755         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1756         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1757         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1758         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1759         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1760         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1761         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1762         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1763         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1764         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1765         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1766         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1767         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1768         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1769         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1770         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1771         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1772         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1773         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1774         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1775         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1776         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1777         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1778         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1779         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1780         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1781         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1782         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1783         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1784         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1785         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1786         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1787         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1788         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1789         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1790         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1791         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1792         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1793         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1794         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1795         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1796         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1797         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1798         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1799         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1800         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1801         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1802         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1803         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1804         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1805
1806         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
1807         Moshier and Lesser GPL copying permission notice, per license from
1808         Moshier.
1809         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1810         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1811         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1812         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1813         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1814         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1815         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1816         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1817         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1818         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1819         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1820         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1821         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1822         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1823
1824         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
1825         notice, per license from copyright holder Stephen Moshier.
1826         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1827         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1828         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1829         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1830         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1831         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1832         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1833         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1834         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1835
1836 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1837
1838         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
1839         (shared-only-routines): Likewise.
1840
1841 2002-08-26  Roland McGrath  <roland@redhat.com>
1842
1843         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
1844         name of "", store a null pointer instead.
1845
1846         * configure.in (elf): Set to yes for freebsd*, netbsd*.
1847         * configure: Regenerated.
1848
1849         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
1850         Initialize this instead of __libc_tsd_LOCALE_data.
1851
1852         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
1853         ptsname_r to EINVAL.
1854
1855         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
1856
1857         * rt/Makefile: Revert last change, it was inappropriate to presume aio
1858         implementations depend on pthreads.
1859         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
1860         * rt/tst-aio64.c (do_test): Likewise.
1861         * rt/tst-aio2.c (do_test): Likewise.
1862         * rt/tst-aio3.c (do_test): Likewise.
1863         * rt/tst-aio4.c (do_test): Likewise.
1864         * rt/tst-aio5.c (do_test): Likewise.
1865         * rt/tst-aio6.c (do_test): Likewise.
1866         * rt/tst-aio7.c (do_test): Likewise.
1867
1868         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
1869         void so as to avoid compiler warnings.
1870
1871         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
1872         _IO_wide_data_FD, which is never used here.
1873
1874         * libio/iofread.c
1875         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
1876         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
1877         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
1878
1879         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
1880         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
1881
1882         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
1883         (closelog): Likewise.
1884
1885 2002-07-06  Bruno Haible  <bruno@clisp.org>
1886
1887         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
1888
1889         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
1890         * sysdeps/unix/alpha/pipe.S: ... here.
1891         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
1892
1893         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
1894
1895         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
1896         * sysdeps/unix/i386/fork.S: Likewise.
1897         * sysdeps/unix/i386/pipe.S: Likewise.
1898         * sysdeps/unix/i386/wait.S: Likewise.
1899
1900         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
1901         * sysdeps/unix/arm/fork.S: Likewise.
1902
1903         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
1904         arguments.
1905         (DO_CALL): Swap argument order.
1906         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
1907         arguments.
1908         (DO_CALL): Swap argument order.
1909         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
1910         arguments.
1911         (DO_CALL): Swap argument order.
1912         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
1913         arguments.
1914         (DO_CALL): Swap argument order.
1915         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
1916         arguments.
1917         (DO_CALL): Swap argument order.
1918         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
1919         arguments.
1920         (DO_CALL): Swap argument order.
1921         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
1922         arguments.
1923         (DO_CALL): Swap argument order.
1924
1925         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
1926         (L): Define right for ELF.
1927         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
1928         Now defined in sysdeps/i386/sysdep.h.
1929
1930         * sysdeps/posix/readv.c: Ansify function definition.
1931         * sysdeps/posix/writev.c: Likewise.
1932
1933         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
1934         have the same size. Avoid direct cast from size_t to off_t.
1935
1936         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
1937         nul byte in entry[n].ut_user.
1938         (simulate_logout): Likewise.
1939
1940         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
1941         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
1942         existence of corresponding members of 'struct utmp'.
1943         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
1944         !_HAVE_UT_TYPE.
1945
1946         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
1947         allocate a buffer of at least BUFSIZ bytes, not just of
1948         sizeof (struct dirent).
1949
1950         * sysdeps/generic/glob.c: Include <limits.h>.
1951         (NAME_MAX): Define a fallback.
1952         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
1953         stack.
1954         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
1955         (main): Allocate enough room for a 'struct dirent64' on the stack.
1956         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
1957         'struct dirent'.
1958
1959         * sysdeps/unix/sysv/linux/init-first.c: Don't include
1960         kernel-features.h.
1961
1962         * inet/htontest.c: Include <sys/types.h>.
1963
1964         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
1965
1966         * include/sys/sysctl.h: Comment fix.
1967
1968         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
1969         _dl_load_lock.
1970         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
1971
1972         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
1973
1974         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
1975         (__getpeername): New alias.
1976         (__getsockname): New alias.
1977         (__socket): New alias.
1978
1979         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
1980
1981         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
1982         (__fcntl_internal): New alias.
1983         (__profil): New alias.
1984
1985 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1986
1987         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
1988         entry was for getaddr* lookup or not.  Add only matching cache
1989         entry.  Change all callers [PR libc/4317].
1990
1991         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
1992         finding the read position [PR libc/4265].
1993         * libio/Makefile (tests): Add bug-rewind2.
1994         * libio/bug-rewind2.c: New file.
1995
1996         * libio/bug-rewind.c: Fix creation of temp file.
1997
1998 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
1999
2000         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2001         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2002         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2003         to ENOENT if no entry is found.
2004         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2005         failure.
2006         * nis/nss_compat/compat-initgroups.c: Likewise.
2007         * nis/nss_compat/compat-pwd.c: Likewise.
2008         * nis/nss_compat/compat-spwd.c: Likewise.
2009         * nis/nss_nis/nis-alias.c: Likewise.
2010         * nis/nss_nis/nis-ethers.c: Likewise.
2011         * nis/nss_nis/nis-grp.c: Likewise.
2012         * nis/nss_nis/nis-hosts.c: Likewise.
2013         * nis/nss_nis/nis-initgroups.c: Likewise.
2014         * nis/nss_nis/nis-netgrp.c: Likewise.
2015         * nis/nss_nis/nis-network.c: Likewise.
2016         * nis/nss_nis/nis-proto.c: Likewise.
2017         * nis/nss_nis/nis-publickey.c: Likewise.
2018         * nis/nss_nis/nis-pwd.c: Likewise.
2019         * nis/nss_nis/nis-rpc.c: Likewise.
2020         * nis/nss_nis/nis-service.c: Likewise.
2021         * nis/nss_nis/nis-spwd.c: Likewise.
2022         * resolv/nss_dns/dns-host.c: Likewise.
2023         * resolv/nss_dns/dns-network.c: Likewise.
2024         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2025         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2026         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2027         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2028         * nis/nss_nisplus/nisplus-network.c: Likewise.
2029         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2030         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2031         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2032         * nis/nss_nisplus/nisplus-service.c: Likewise.
2033         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2034         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2035         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2036         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2037         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2038
2039         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2040         declaring __restore and __restore_rt as hidden (if possible).
2041
2042 2002-08-25  Roland McGrath  <roland@redhat.com>
2043
2044         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2045
2046         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2047         (getutent_r_file, internal_getut_r): Updated all callers.
2048         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2049
2050 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2051
2052         * locale/programs/locale.c: Don't print aliases for non-existing
2053         locales for 'locale -a'.
2054         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2055
2056 2002-07-19  H.J. Lu  <hjl@gnu.org>
2057
2058         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2059
2060 2002-07-16  H.J. Lu  <hjl@gnu.org>
2061
2062         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2063         sys/personality.h.
2064         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2065
2066 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2067
2068         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2069         not moved ahead of the fputs call.
2070         * elf/tst-tlsmod2.c (in_dso): Likewise.
2071         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2072         * elf/tst-tlsmod4.c (in_dso): Likewise.
2073
2074 2002-08-25  Andreas Schwab  <schwab@suse.de>
2075
2076         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2077
2078 2002-08-25  Roland McGrath  <roland@redhat.com>
2079
2080         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2081         resetting handler, to avoid the possibility of a spurious SIGALRM
2082         delivered to the user's handler.
2083         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2084
2085         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2086         set -fkeep-inline-functions, which is not needed for the current file.
2087
2088         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2089         (_dl_setup_hash): Add attribute_hidden.
2090         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2091         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2092         (_dl_new_object, _dl_map_object_deps): Likewise.
2093         (_dl_map_object_deps_internal): Remove decl.
2094         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2095
2096         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2097         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2098         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2099         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2100         instead relying on the compiler to produce only GOTOFF variable refs.
2101
2102 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2103
2104         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2105
2106         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2107         inline to avoid defining it in every file which includes this header.
2108
2109         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2110         defining DONT_USE_BOOTSTRAP_MAP.
2111
2112         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2113         * libio/tst-mmap-setvbuf.c (main): Likewise.
2114         * libio/tst-widetext.c (main): Likewise.
2115
2116         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2117         message.
2118         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2119         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2120
2121         * sysdeps/i386/elf/configure.in: Unconditionally define
2122         PI_STATIC_AND_HIDDEN.
2123         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2124         PI_STATIC_AND_HIDDEN is defined as well.
2125         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2126
2127 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2128
2129         * sysdeps/ia64/bzero.S: Define __bzero as well.
2130
2131         * locale/programs/charmap.c (charmap_new_char): Don't use
2132         ULONG_MAX as maximum UCS4 value.
2133
2134         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2135
2136         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2137
2138         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2139         * malloc/malloc.c (mALLINFo): Likewise.
2140
2141         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2142
2143         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2144         examining result of _IO_do_flush call.
2145
2146         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2147         Use prec not spec when sizing buffers.
2148
2149         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2150         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2151         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2152         * stdio-common/vfscanf.c (inchar): Likewise.
2153         * misc/efgcvt_r.c (fcvt_r): Likewise.
2154         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2155         * elf/readlib.c (process_file): Likewise.
2156         * elf/sprof.c (load_profdata): Likewise.
2157         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2158         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2159         * locale/programs/charmap.c (charmap_read): Likewise.
2160         * libio/fileops.c: Likewise.
2161         * libio/fmemopen.c: Likewise.
2162         * stdlib/strtod.c: Likewise.
2163         * elf/dl-load.c: Likewise.
2164         * iconv/iconvconfig.c: Likewise.
2165         * iconv/iconv_prog.c (process_block): Likewise.
2166         * elf/rtld.c (dl_main): Likewise.
2167
2168         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2169         macro to calm down the compiler.
2170
2171         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2172
2173         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2174
2175         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2176         placement of errno definition.
2177         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2178         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2179         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2180         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2181         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2182
2183         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2184         from 1024 to 65536, to avoid buffer overrun.
2185
2186 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2187
2188         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2189         from 1024 to 65536, to avoid buffer overrun.
2190         * resolv/res_query.c (MAXPACKET): Likewise.
2191
2192 2002-08-24  Andreas Jaeger  <aj@suse.de>
2193
2194         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2195
2196 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2197
2198         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2199         two52 locally.
2200         (log2): Likewise.
2201         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2202         Patch by Simon Gee <simong@agile.tv>.
2203
2204         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2205         Prefer reading /proc/stat since it is more uniform across
2206         architectures.
2207
2208         * manual/texinfo.tex: Update to latest official version.
2209
2210         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2211         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2212         * sysdeps/gnu/bits/shm.h: Likewise.
2213         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2214         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2215         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2216         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2217         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2218         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2219         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2220         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2221         since this is what the kernel says.
2222
2223         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2224         since ssize_t is needed as well.  Replace const with __const.
2225
2226 2002-08-23  Roland McGrath  <roland@redhat.com>
2227
2228         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2229         __malloc_hook, __realloc_hook, __memalign_hook,
2230         __after_morecore_hook): Variable definitions moved to ...
2231         * malloc/malloc.c: ... here, so as to be before all references.
2232
2233         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2234         global variable reference in an unused asm parameter, to ensure the
2235         compiler has set up the GOT register before we use it.
2236
2237         * malloc/hooks.c: Move variable definitions ahead of uses.
2238         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2239         initializers that make reference to variables they define.
2240
2241 2002-08-23  Andreas Jaeger  <aj@suse.de>
2242
2243         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2244         alloca, free, qsort.
2245
2246         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2247
2248         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2249         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2250
2251         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2252         <hch@lst.de>.
2253         * sysdeps/generic/fgetxattr.c: New file.
2254         * sysdeps/generic/flistxattr.c: New file.
2255         * sysdeps/generic/fremovexattr.c: New file.
2256         * sysdeps/generic/fsetxattr.c: New file.
2257         * sysdeps/generic/getxattr.c: New file.
2258         * sysdeps/generic/listxattr.c: New file.
2259         * sysdeps/generic/lgetxattr.c: New file.
2260         * sysdeps/generic/llistxattr.c: New file.
2261         * sysdeps/generic/lremovexattr.c: New file.
2262         * sysdeps/generic/lsetxattr.c: New file.
2263         * sysdeps/generic/removexattr.c: New file.
2264         * sysdeps/generic/setxattr.c: New file.
2265         * misc/Makefile (headers): Add sys/xattr.h.
2266         (routines): Add *xattr calls.
2267         * misc/Versions: Add *xattr calls with version 2.3.
2268         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2269         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2270         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2271         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2272         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2273         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2274         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2275         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2276
2277 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2278
2279         * sysdeps/powerpc/elf/libc-start.c
2280         (__cache_line_size): Declare.
2281         (__aux_init_cache): New function.
2282         (__libc_start_main): Change type of `auxvec' parameter to
2283         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2284         __aux_init_cache.
2285         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2286         (__cache_line_size): Declare.
2287         (__aux_init_cache): New function.
2288         (DL_PLATFORM_INIT): Define.
2289         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2290         value to select the correct stride for dcbz.
2291
2292 2002-08-22  Andreas Jaeger  <aj@suse.de>
2293
2294         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2295         shmat.
2296
2297 2002-08-22  Roland McGrath  <roland@redhat.com>
2298
2299         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2300         position indicated by locrectab against file bounds before rounding to
2301         page size.  In mapping loop, always set TO before breaking out of
2302         contiguous range coalescing loop.
2303
2304         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2305         (or MAP_COPY if available) instead of MAP_SHARED.
2306
2307         * scripts/firstversions.awk: When encountering a version newer than
2308         the specified earliest version, be sure to emit the specified earliest
2309         version first if any renaming of an older version to that has been.
2310
2311 2002-08-21  Roland McGrath  <roland@redhat.com>
2312
2313         * configure.in: Make GCC version check require 3.[2-9]* and no others.
2314         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2315         (Configuring and compiling): Don't mention older GCC versions any more.
2316         * INSTALL: Regenerated.
2317
2318         * manual/install.texi (Configuring and compiling, Installation,
2319         Running make install, Linux): Linux -> GNU/Linux where appropriate.
2320
2321         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2322         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2323         and with noinline otherwise.  Remove hack alloca use to prevent
2324         inlining, we can ask for it explicitly nowadays.
2325
2326         * dlfcn/bug-dlsym1.c: New file.
2327         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2328         * dlfcn/Makefile (distribute): Add them.
2329         (tests): Add bug-dlsym1 here.
2330         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2331         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2332         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2333
2334 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
2335
2336         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
2337         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2338         before relocation.
2339         (_dl_start): Don't use local bootstrap_map variable if
2340         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
2341         pass bootstrap_map to _dl_start_final in this case either.  Don't
2342         pass start_time to _dl_start_final ever.
2343         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2344
2345         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2346         This cripples the scope lists necessary to search for symbols in
2347         dependencies which are not in the global scope.
2348
2349         * include/setjmp.h (__libc_longjmp): Add declaration.
2350
2351 2002-08-21  Andreas Jaeger  <aj@suse.de>
2352
2353         * sysdeps/x86_64/_mcount.S: Fix assembler.
2354
2355         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2356         with biarch support.
2357
2358 2002-08-21  Andreas Jaeger  <aj@suse.de>
2359
2360         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2361
2362         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2363
2364         * sysdeps/x86_64/machine-gmon.h: New file.
2365         * sysdeps/x86_64/_mcount.S: New file.
2366
2367 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2368
2369         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
2370         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2371         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2372         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2373         to TL_INIT_TP.  Otherwise pass 1.
2374         * include/link.h (struct link_map): Add l_tls_tp_initialized.
2375         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2376
2377 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
2378
2379         * locale/programs/localedef.c (add_to_readlist): Error about
2380         circular dependencies only if the locale in question hasn't
2381         been finished.
2382         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2383         CTYPE_LOCALE to load_locale.
2384         * locale/programs/locfile.c (locfile_read): Don't include
2385         unneeded but available locales in locale_mask.
2386
2387         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2388         print any messages about enlarging archive.
2389
2390 2002-08-20  Brian Youmans  <3diff@gnu.org>
2391
2392         * manual/contrib.texi: Removed licenses, added acknowledgements
2393         for contributions by Intel, IBM, Craig Metz.
2394         * LICENSES: New file, contains the text of all non-FSF licenses in the
2395         distribution that require putting the notice in the accompanying
2396         documentation.
2397         * README.template, README: Mention LICENSES.
2398
2399         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2400         new one modelled on the modern BSD license, per recent letter
2401         of permission from CMU.
2402         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2403
2404         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2405         from IBM to FSF, per the recent Software Letter.  Changed the
2406         distribution terms from GPL to LGPL.
2407
2408         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2409         copying permission notice (Lesser GPL), per recent IBM Software Letter.
2410         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2411         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2412         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2413         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2414         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2415         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2416         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2417         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2418
2419         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2420         from IBM to FSF, per the recent Software Letter.  Corrected the
2421         text of the copying permission notice to say Lesser GPL instead
2422         of GPL in warranty disclaimer paragraph.
2423         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2424         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2425         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2426         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2427         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2428         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2429         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2430         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2431         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2432         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2433         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2434         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2435         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2436         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2437         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2438         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2439         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2440         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2441         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2442         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2443         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2444
2445         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2446         permission notice to say Lesser GPL instead of GPL in warranty
2447         disclaimer paragraph.
2448         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2449         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2450         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2451         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2452         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2453         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2454         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2455         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2456         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2457         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2458         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2459         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2460         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2461         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2462         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2463         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2464         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2465         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2466         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2467         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2468         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2469         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2470         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
2471
2472 2002-08-20  Roland McGrath  <roland@redhat.com>
2473
2474         Fix ABI compatibility with libc compiled with old tools on powerpc.
2475         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2476         and Jack Howarth <howarth@bromo.med.uc.edu>.
2477         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2478         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2479         pass -DHAVE_DOT_HIDDEN for these files.
2480         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2481         __floatdisf.
2482         * sysdeps/powerpc/divdi3.c: New file.
2483         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2484         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2485
2486 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
2487
2488         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2489         partially overlapping mappings.  Remove unneeded (char *) casts.
2490         Never allow duplication of ranges in mapped areas.
2491
2492 2002-08-20  Roland McGrath  <roland@redhat.com>
2493
2494         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2495         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
2496
2497 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2498
2499         * include/unistd.h: Don't hide _exit.
2500
2501         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2502         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2503         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2504         argument 1 to TLS_INIT_TP.
2505         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2506
2507         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2508
2509         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2510         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2511         memory allocation to...
2512         (allocate_dtv): ...here.  New function.
2513         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
2514         call allocate_dtv instead of _dl_allocate_tls_storage.
2515         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
2516         (_dl_get_tls_static_info): New function.
2517         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2518         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
2519
2520 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
2521
2522         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2523         immediately if result == NULL.
2524
2525 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2526
2527         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2528
2529 2002-08-18  Roland McGrath  <roland@frob.com>
2530
2531         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2532         instead of __file_name_split.
2533         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2534
2535         * sysdeps/mach/hurd/dl-sysdep.c
2536         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2537         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2538
2539 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2540
2541         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2542         in change before last: MAX -> MIN.
2543
2544 2002-08-15  Roland McGrath  <roland@redhat.com>
2545
2546         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2547         if seek would go past it.
2548         (mmap_remap_check): If file position is at or past EOF after check,
2549         leave read pointers at EOF and don't seek.
2550
2551         * libio/tst-mmap-offend.c: New file.
2552         * libio/Makefile (tests): Add it.
2553
2554         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2555         the name as passed, rather than the name in the archive dictionary.
2556
2557 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
2558
2559         * csu/Makefile: Define elide-routines.os not static-only-routines.
2560
2561         * include/sched.h (__clone): Add varargs at the end.
2562
2563         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2564         case.
2565         (TLS_INIT_HELPER): If defined, use it.
2566         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2567
2568 2002-08-15  Roland McGrath  <roland@redhat.com>
2569
2570         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2571         on L->l_prev; it can happen under rtld --verify too.
2572
2573         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2574         header separately, just map an initial window of 2MB from the file
2575         and remap if that is not large enough to cover the whole header.
2576
2577 2002-08-15  Andreas Jaeger  <aj@suse.de>
2578
2579         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2580         version 2.3.
2581         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2582         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2583         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2584         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2585         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2586         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2587         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2588         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2589         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2590         Patch by Andreas Gruenbacher <agruen@suse.de>.
2591
2592         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2593
2594 2002-08-14  Roland McGrath  <roland@redhat.com>
2595
2596         * locale/locarchive.h (struct locale_category_data): Give this name to
2597         the type of locale_data_t's elements.
2598         * locale/programs/locarchive.c (cmpcategorysize): New static function.
2599         (add_locale): Use that to sort the categories by size and put all
2600         those that fit into two pages into the LC_ALL block, instead of
2601         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2602         (show_archive_content): Detect categories inside LC_ALL block
2603         directly, instead of hard-coding.
2604         (oldlocrecentcmp): Compare just on file locations used.
2605
2606 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
2607
2608         * locale/programs/locarchive.c (struct oldlocrecent): New type.
2609         (oldlocrecentcmp): New function.
2610         (enlarge_archive): Re-add locales in the order they were added
2611         to the archive.
2612         (add_locale): Put all the small locale files together, if the small
2613         locale file block would occupy less pages if page size aligned, align
2614         it.
2615         (show_archive_content): Adjust for locale archives optimized for speed.
2616
2617 2002-08-14  Roland McGrath  <roland@frob.com>
2618
2619         * configure.in: Use "MISSING" as not-found value for MIG.
2620         * sysdeps/mach/configure.in: Fatal if mig not found.
2621         * configure, sysdeps/mach/configure: Regenerated.
2622
2623 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2624
2625         * locale/loadarchive.c (archfname): Add missing slash.
2626
2627         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2628         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2629
2630 2002-08-12  Roland McGrath  <roland@redhat.com>
2631
2632         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2633         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2634         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2635         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2636         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2637         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2638         * sysdeps/generic/waitpid.c: Likewise.
2639
2640         * include/net/if.h: New file.  Use libc_hidden_proto
2641         for if_nametoindex and if_indextoname.
2642         * sysdeps/generic/if_index.c: Add libc_hidden_def.
2643         * sysdeps/mach/hurd/if_index.c: Likewise.
2644         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2645
2646         * include/grp.h (setgroups): Add libc_hidden_proto.
2647         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2648         * sysdeps/mach/hurd/setgroups.c: Likewise.
2649         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2650         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2651
2652 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2653
2654         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2655         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2656         * sysdeps/generic/setegid.c (setegid): Likewise.
2657         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2658         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2659         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2660         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2661         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2662         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2663         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2664         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2665         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2666         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2667         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2668         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2669         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2670
2671         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2672         __lxstat_internal, __lxstat64_internal): Remove.
2673         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2674         Add hidden_proto.
2675         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2676         Remove INTDEF where present, remove #undef at the beginning.
2677         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2678         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2679         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2680         * sysdeps/generic/xstat.c (__xstat): Likewise.
2681         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2682         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2683         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2684         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2685         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2686         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2687         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2688         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2689         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2690         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2691         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2692         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2693         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2694         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2695         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2696         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2697         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2698         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2699         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2700         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2701         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2702         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2703         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2704         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2705         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2706         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2707         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2708         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2709         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2710         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2711         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2712         * sysdeps/unix/xstat.c (__xstat): Likewise.
2713
2714         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2715         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2716         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2717         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2718         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2719         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2720         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2721
2722         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2723         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2724         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2725         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2726         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2727         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2728         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2729         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2730         Likewise.
2731         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2732         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2733         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2734         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2735         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2736         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2737         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2738         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2739
2740         * include/string.h (strcoll): Add libc_hidden_proto.
2741         * string/strcoll.c (strcoll): Add libc_hidden_def.
2742
2743         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2744
2745 2002-08-11  Philip Blundell  <philb@gnu.org>
2746
2747         * sysdeps/arm/Makefile: New file.
2748
2749 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2750
2751         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2752         by another '|', end of regex or enclosing ')', clear branch.
2753         * posix/bug-regex9.c: New test.
2754         * posix/Makefile (tests): Add bug-regex9.
2755
2756 2002-08-12  Roland McGrath  <roland@redhat.com>
2757
2758         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2759         start count condition, use TOTAL instead of variable that was never
2760         set.  Fix outer loop termination condition to TOTAL >= after update.
2761
2762         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2763         dl_tls_static_align and dl_tls_static_nelem.
2764
2765 2002-08-11  Roland McGrath  <roland@redhat.com>
2766
2767         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2768         of the TLS macros, otherwise the compiler might not have initialized
2769         the PIC register yet when we use the PLT via asm.
2770         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2771         * elf/tst-tlsmod2.c (in_dso): Likewise.
2772
2773         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2774
2775         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2776         Evaluate argument exactly once.  Remove __volatile__ from asm's.
2777
2778         * include/unistd.h: Use libc_hidden_proto for getdomainname
2779         and getlogin_r.
2780         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2781         * sysdeps/mach/hurd/getdomain.c: Likewise.
2782         * sysdeps/unix/getlogin_r.c: Likewise.
2783         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2784         * sysdeps/generic/getlogin_r.c: Likewise.
2785
2786         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2787         * sunrpc/rtime.c: Add libc_hidden_def.
2788
2789         * include/string.h: Use libc_hidden_proto for basename.
2790         * string/basename.c [_LIBC]: Add libc_hidden_def.
2791
2792         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2793
2794         * locale/loadarchive.c: munmap -> __munmap throughout.
2795
2796         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2797         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2798         * sysdeps/generic/gai_strerror.c: Likewise.
2799
2800         * include/sys/errno.h: New file.
2801
2802         * include/signal.h: No libc_hidden_proto for raise,
2803         __libc_current_sigrtmin, __libc_current_sigrtmax.
2804         These need to be overridden by linuxthreads.
2805         * sysdeps/posix/raise.c: Reverted.
2806         * sysdeps/generic/raise.c: Reverted.
2807         * signal/allocrtsig.c: Reverted.
2808
2809         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
2810
2811 2002-08-10  Roland McGrath  <roland@redhat.com>
2812
2813         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
2814         * locale/localeinfo.h: Declare it.
2815         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
2816         current locale if it's not in the file list.
2817         Call _nl_archive_subfreeres.
2818
2819 2002-08-10  Andreas Jaeger  <aj@suse.de>
2820
2821         * sysdeps/i386/strchr.S: Add comment.
2822
2823 2002-08-10  Roland McGrath  <roland@redhat.com>
2824
2825         * include/wchar.h (putwc): Use libc_hidden_proto.
2826         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
2827         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
2828         * stdio-common/dprintf.c: Add libc_hidden_def.
2829         * stdio-common/fprintf.c: Likewise.
2830         * stdio-common/sprintf.c: Likewise.
2831         * stdio-common/sscanf.c: Likewise.
2832         * libio/iofwrite.c: Likewise.
2833         * libio/memstream.c: Likewise.
2834         * libio/putwc.c: Likewise.
2835         * stdio-common/perror.c: Likewise.
2836         * sysdeps/posix/remove.c: Likewise.
2837         * sysdeps/generic/remove.c: Likewise.
2838         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
2839         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
2840
2841 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
2842
2843         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2844         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
2845         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2846         towlower, towupper): Add libc_hidden_weak.
2847
2848         * include/bits/dlfcn.h: New file.
2849         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
2850
2851         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
2852         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
2853         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
2854         * include/pwd.h (_nss_files_parse_pwent): Likewise.
2855         * include/shadow.h (_nss_files_parse_spent): Likewise.
2856         * include/netdb.h (_nss_files_parse_protoent,
2857         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
2858         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
2859         (LINE_PARSER): Use it.
2860         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
2861         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
2862
2863         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
2864         #endif.
2865
2866         * manual/debug.texi (%MENU%): Remove trailing dot.
2867         Reported by <hayastan132@hotmail.com>.
2868
2869         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
2870         aliases.
2871         (lseek): Dummy.
2872         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
2873         Likewise.
2874
2875 2002-08-09  Roland McGrath  <roland@redhat.com>
2876
2877         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
2878         name to find codeset name (if any) and normalize it.  If the
2879         normalized name differs, look up only that in the archive.
2880         * locale/programs/locarchive.c (add_locale_to_archive): If the name
2881         contains a codeset, normalize the codeset store only the normalized
2882         name in the archive.  If not, add an alias containing the locale's
2883         normalized codeset name.  Apply codeset name normalization when
2884         matching entries in the alias file.
2885
2886         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
2887         decrement HEAD->namehash_used here.
2888         (add_locale): Only need to insert name string when name_offset != 0.
2889
2890         * locale/programs/localedef.c (options): Add -A/--alias-file.
2891         (alias_file): New variable.
2892         (parse_opt): Grok -A, set that.
2893         * locale/programs/localedef.h: Declare it.
2894
2895         * locale/locarchive.h (struct locrecent): Add `refs' member.
2896         * locale/programs/locarchive.c (insert_name): New function, broken out
2897         of ...
2898         (add_locale_to_archive): ... here.  Call that.
2899         (add_alias): New function.
2900         (add_locale): New static function, add_locale_to_archive renamed.
2901         (add_locale_to_archive): Call that and use add_alias to add an alias
2902         for the name with codeset if the given name lacks it.
2903         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
2904
2905         * locale/Makefile (routines): Add loadarchive.
2906         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
2907         (_nl_load_locale_from_archive): New function.
2908         * locale/localeinfo.h: Declare it.
2909         * locale/findlocale.c (_nl_find_locale): If using default locale path,
2910         try _nl_load_locale_from_archive first.
2911
2912         * locale/loadlocale.c (_nl_intern_locale_data): New function,
2913         broken out of _nl_load_locale.
2914         (_nl_load_locale): Call that.
2915         * locale/localeinfo.h: Declare it.
2916         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
2917         (struct locale_data): Remove unused member `options'.
2918         * locale/findlocale.c (_nl_remove_locale): Update uses.
2919         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2920         * locale/C-collate.c: Update initializer.
2921         * locale/C-identification.c: Likewise.
2922         * locale/C-measurement.c: Likewise.
2923         * locale/C-telephone.c: Likewise.
2924         * locale/C-address.c: Likewise.
2925         * locale/C-name.c: Likewise.
2926         * locale/C-paper.c: Likewise.
2927         * locale/C-time.c: Likewise.
2928         * locale/C-numeric.c: Likewise.
2929         * locale/C-monetary.c: Likewise.
2930         * locale/C-messages.c : Likewise.
2931         * locale/C-ctype.c: Likewise.
2932
2933         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
2934         use CHAR_BIT instead of BITSPERBYTE.
2935
2936         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
2937         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
2938         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
2939         (_nl_remove_locale): Likewise.
2940         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2941
2942         * locale/findlocale.c (_nl_default_locale_path): New variable.
2943         (_nl_find_locale): If LOCALE_PATH is null, default to that.
2944         * locale/localeinfo.h: Declare it.
2945         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
2946         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
2947         * locale/newlocale.c (__newlocale): Likewise.
2948
2949         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
2950         * inet/rexec.c (rexec_af): Add libc_hidden_def.
2951         * sysdeps/generic/morecore.c: Likewise.
2952         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
2953         (__libc_current_sigrtmax): Likewise.
2954
2955 2002-08-08  Roland McGrath  <roland@redhat.com>
2956
2957         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
2958         * catgets/open_catalog.c (__open_catalog): Likewise.
2959
2960         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
2961         from typo INITIAL_NUM_NANES.
2962         (create_archive): Update use.
2963
2964 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
2965
2966         * sysdeps/unix/sysv/linux/sigwait.c: New file.
2967
2968 2002-08-08  Roland McGrath  <roland@frob.com>
2969
2970         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
2971
2972 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2973
2974         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
2975         else and undefine after including wcstol_l.c.
2976         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
2977
2978 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
2979
2980         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
2981
2982 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
2983
2984         * configure.in: Make the test for broken_alias_attribute stricter.
2985
2986 2002-05-24  Robert Love  <rml@tech9.net>
2987
2988         * posix/Makefile (routines): Add sched_getaffinity and
2989         sched_setaffinity.
2990         * posix/sched.h: Add declarations for sched_getaffinity and
2991         sched_setaffinity.
2992         * sysdeps/generic/sched_getaffinity.c: New file.
2993         * sysdeps/generic/sched_setaffinity.c: New file.
2994         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
2995         sched_setaffinity.
2996
2997 2002-08-06  Andreas Schwab  <schwab@suse.de>
2998
2999         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3000
3001 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3002
3003         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3004         message.
3005
3006         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3007         It is known to be defined.
3008
3009         * include/string.h: Define index and rindex only if _ISOMAC is not
3010         defined.
3011
3012         * elf/rtld.c: Include <errno.h>.
3013         * sysdeps/generic/libc-tls.c: Likewise.
3014
3015 2002-08-07  Roland McGrath  <roland@redhat.com>
3016
3017         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3018         it internally.
3019         (precsize_aton): Likewise.
3020
3021         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3022         the static symbols added in the last change (doofus is me).
3023
3024         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3025         loop to notice missing categories in a composite name.
3026
3027         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3028         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3029         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3030         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3031
3032 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3033
3034         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3035
3036 2002-08-07  Roland McGrath  <roland@redhat.com>
3037
3038         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3039         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3040         Reported by Jakub Jelinek  <jakub@redhat.com>.
3041
3042 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3043
3044         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3045         division.
3046
3047 2002-08-06  Roland McGrath  <roland@redhat.com>
3048
3049         * include/getopt.h: Put private decls inside [_GETOPT_H].
3050         Use libc_hidden_proto for getopt_long, getopt_long_only.
3051         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3052         Add libc_hidden_def.
3053
3054         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3055         Define as a macro for __dl_iterate_phdr.
3056
3057         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3058         made static.  Add __ name as a strong alias.
3059         (internal_endnetgrent): Likewise.
3060         (internal_getnetgrent_r): Likewise.
3061
3062         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3063         with no __ prefix.
3064         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3065         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3066         all *_l functions with no __ prefix.
3067         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3068         * ctype/ctype_l.c: Likewise.
3069         * locale/nl_langinfo.c: Likewise.
3070         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3071         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3072         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3073         * wctype/wctype.h [__USE_GNU]: Likewise.
3074         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3075         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3076         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3077         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3078         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3079         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3080         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3081         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3082         (__wcscasecmp_l): Add libc_hidden_def.
3083         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3084         (__wcsncasecmp_l): Add libc_hidden_def.
3085         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3086         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3087         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3088         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3089         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3090         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3091         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3092         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3093         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3094         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3095         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3096         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3097         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3098         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3099
3100 2002-08-05  Roland McGrath  <roland@redhat.com>
3101
3102         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3103         netname2user, host2netname, user2netname, key_gendes.
3104         * sunrpc/netname.c: Add libc_hidden_def.
3105         * sunrpc/key_call.c: Likewise.
3106
3107         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3108         freeaddrinfo.
3109         * inet/getnameinfo.c: Add libc_hidden_def.
3110         * sysdeps/generic/getaddrinfo.c: Likewise.
3111         * sysdeps/posix/getaddrinfo.c: Likewise.
3112
3113         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3114         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3115         * wcsmbs/wmemset.c: Add libc_hidden_def.
3116
3117         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3118         (index, rindex): Define as macros for strchr, strrchr.
3119
3120         * string/envz.c (envz_strip): index -> strchr
3121
3122         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3123         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3124
3125         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3126         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3127
3128         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3129         * stdlib/wctomb.c: Add libc_hidden_def.
3130
3131         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3132         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3133         * resolv/herror.c: Likewise.
3134         * inet/rcmd.c: Add libc_hidden_def.
3135         * inet/ruserpass.c: Likewise.
3136         * inet/getnetgrent_r.c: Likewise.
3137
3138         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3139         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3140         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3141         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3142         libc_hidden_def.
3143         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3144         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3145
3146         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3147         __libc_system.
3148         (__libc_system): Call it, putting just the line == NULL test here.
3149
3150         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3151         variables work right.
3152
3153         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3154         * elf/dl-close.c (_dl_close): Likewise.
3155
3156         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3157         in6addr_any, in6addr_loopback.  Remove decls for
3158         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3159         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3160         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3161         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3162         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3163         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3164         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3165         in6addr_loopback.
3166         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3167
3168         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3169         ether_aton_r.
3170         * inet/ether_aton_r.c: Add libc_hidden_def.
3171         * inet/ether_ntoa_r.c: Likewise.
3172
3173         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3174         xprt_unregister.
3175         * sunrpc/svc.c: Add libc_hidden_def.
3176         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3177         pmap_set, pmap_unset.
3178         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3179         * sunrpc/pm_getport.c: Likewise.
3180         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3181         * sunrpc/publickey.c: Add libc_hidden_def.
3182
3183 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3184
3185         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3186         the other memset call in this function.
3187
3188         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3189         at correct index.  Clear BSS region now that memalign is used.
3190
3191 2002-08-05  Roland McGrath  <roland@redhat.com>
3192
3193         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3194         * sysdeps/generic/uname.c: Add libc_hidden_def.
3195         * sysdeps/mach/hurd/uname.c: Likewise.
3196
3197 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3198
3199         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3200         wcspbrk): Add libc_hidden_proto.
3201         * time/strftime.c (my_strftime): Add libc_hidden_def.
3202         (strftime): Remove libc_hidden_def.
3203         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3204         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3205         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3206         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3207         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3208         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3209
3210         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3211         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3212         __rpc_thread_createerr): Add libc_hidden_proto.
3213         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3214         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3215         __rpc_thread_createerr): Add libc_hidden_def.
3216
3217         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3218         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3219         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3220         clnt_perror, clnt_sperror): Add libc_hidden_def.
3221         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3222
3223         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3224         libc_hidden_proto.
3225         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3226         * sunrpc/des_soft.c (des_setparity): Likewise.
3227
3228         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3229         Add libc_hidden_proto.
3230         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3231         Add libc_hidden_def.
3232
3233 2002-08-05  Roland McGrath  <roland@redhat.com>
3234
3235         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3236         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3237         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3238         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3239         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3240         old data, abandoning the original memory allocated by rtld at startup,
3241         instead of calling realloc normally.
3242
3243 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3244
3245         * po/fr.po: Update from translation team.
3246
3247 2002-08-04  Roland McGrath  <roland@redhat.com>
3248
3249         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3250         then generate a dummy module under the given name, obeying the
3251         normal rules for the "caller" field.
3252
3253         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3254         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3255
3256         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3257         weak here; we declare it weak or strong in the one place we use it.
3258         * sysdeps/generic/libc-start.c: ... which is here.
3259         Don't make the decl weak if [USE_TLS], since static programs need TLS
3260         setup even when single-threaded.
3261
3262         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3263
3264         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3265         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3266         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3267         all these variables.
3268
3269 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3270
3271         * include/stdio.h: Don't define macro magic to redirect function
3272         calls if _ISOMAC is defined.
3273
3274         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3275         ldouble asin tests.
3276
3277 2002-08-04  Roland McGrath  <roland@redhat.com>
3278
3279         * stdlib/lrand48_r.c: Add libc_hidden_def.
3280
3281         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3282         TCB with __libc_memalign instead of mmap.
3283         (_dl_deallocate_tls): Free it with free instead of munmap.
3284
3285         * Makerules (cpp-srcs-left): When setting this to run
3286         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3287         words.  Combine the two loops into one on the concatenated list,
3288         including those as well as $(test-srcs).
3289
3290         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3291         since we align here with optimally minimal waste anyway.
3292         (malloc): Just call that.
3293
3294         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3295         the right variable.
3296
3297         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3298         to compute memory location for l_tls_initimage.
3299         * elf/rtld.c (_dl_start): Likewise.
3300         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3301
3302         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3303         because the .d file is generated in the non-shared case and
3304         so fails to catch them otherwise.
3305
3306         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3307         split out of _dl_allocate_tls.
3308         (_dl_allocate_tls_init): Likewise.
3309         (_dl_allocate_tls): Call those.
3310         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3311         * elf/rtld.c (dl_main): Call them separately instead of calling
3312         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
3313         is finished, so that the initializer data has been relocated before we
3314         copy it into the main thread's TLS block.
3315
3316         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3317         loop conditions, prevented the last used module from being initialized.
3318
3319 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3320
3321         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3322         if glob resp. globfree are not macros.
3323         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3324         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3325         Add libc_hidden_ver.
3326         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3327         libc_hidden_def.
3328         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3329         instead of libc_hidden_weak.
3330         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3331         libc_hidden_ver instead of libc_hidden_def.
3332         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3333         libc_hidden_ver instead of libc_hidden_def.
3334         (wcstoll, wcstoq): Remove libc_hidden_weak.
3335         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3336         libc_hidden_ver.
3337         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3338         libc_hidden_ver.
3339         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3340         libc_hidden_ver.
3341         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3342         libc_hidden_ver.
3343
3344 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3345
3346         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
3347         to access _sys_siglist.
3348         * string/strsignal.c: Likewise.
3349         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3350         * sysdeps/gnu/siglist.c: Likewise.
3351         * sysdeps/unix/siglist.c: Likewise.
3352         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3353
3354         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3355
3356         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3357
3358         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3359         alias and use it.
3360         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3361
3362         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3363         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3364         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3365
3366         * include/time.h: Add libc_hidden_proto for __gmtime_r.
3367         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3368
3369         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3370         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3371         and __gconv_get_cache respectively.
3372         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3373         defined static.  Change all users.
3374         (__gconv_get_cache): New function.
3375         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3376         (__gconv_get_alias_db): New function.
3377         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3378         (__conv_modules_db): Likewise.
3379         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3380         and __gconv_get_alias_db.
3381         * iconv/iconv_prog.c: Use the new functions instead of accessing the
3382         variables.
3383
3384         * include/stdlib.h: Add prototype and libc_hidden_proto for
3385         __default_morecore.
3386         * sysdeps/generic/morecore.c: Include <stdlib.h>.
3387
3388         * malloc/obstack.c: Remove fputs macro.
3389
3390         * malloc/mtrace.c: Remove fopen macro.
3391
3392 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3393
3394         * manual/debug.texi: Fix spelling to programmatically.
3395         Reported by <hayastan132@hotmail.com>.
3396
3397 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3398
3399         * include/libio.h: Add libc_hidden_proto for __uflow.
3400         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3401         fgetpos to _IO_* names.
3402         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3403         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3404         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3405         putwc_unlocked, vswscanf.
3406         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3407         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3408         * libio/fseek.c: Likewise.
3409         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
3410         not fopencookie.
3411         * libio/genops.c (__uflow): Add libc_hidden_def.
3412         * libio/iofflush_u.c (fflush_unlocked): Likewise.
3413         * libio/iofgets_u.c (fgets_unlocked): Likewise.
3414         * libio/iofputs_u.c (fputs_unlocked): Likewise.
3415         * libio/iofputws_u.c (fputws_unlocked): Likewise.
3416         * libio/iofread_u.c (fread_unlocked): Likewise.
3417         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3418         * libio/iovswscanf.c (vswscanf): Likewise.
3419         * libio/putwc_u.c (putwc_unlocked): Likewise.
3420         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3421         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3422         * malloc/mtrace.c: Likewise.
3423
3424         * sunrpc/clnt_perr.c: Remove fputs macro.
3425         * sunrpc/svc_simple.c: Likewise.
3426         * sunrpc/svc_tcp.c: Likewise.
3427         * sunrpc/svc_udp.c: Likewise.
3428         * sunrpc/xdr_rec.c: Likewise.
3429         * sunrpc/xdr_ref.c: Likewise.
3430
3431         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3432         iconv_prog, linereader, and charmap-dir.
3433         * locale/Makefile: Likewise for locale and charmap-dir.
3434         * malloc/Makefile: Likewise for memusagestat.
3435         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3436         * sunrpc/Makefile: Likewise for rpc_main.
3437         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3438         * timezone/Makefile: Likewise for zic.
3439
3440         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3441
3442         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3443         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3444         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3445         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3446         _dl_close.
3447
3448         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3449         __wunderflow.
3450         * libio/genops.c (__underflow): Add libc_hidden_def.
3451         * libio/wgenops.c (__wuflow): Likewise.
3452         (__wunderflow): Likewise.
3453
3454         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3455         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3456
3457         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3458         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3459
3460         * include/string.h: Add libc_hidden_proto for __strverscmp.
3461         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3462
3463         * include/unistd.h: Add libc_hidden_proto for __sysconf.
3464         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3465         * sysdeps/posix/sysconf.c: Likewise.
3466         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3467         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3468
3469         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3470         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3471         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3472         __iswxdigit_l, __towlower_l, __towupper_l.
3473         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3474         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3475
3476         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3477         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3478         * sysdeps/mach/hurd/xmknod.c: Likewise.
3479         * sysdeps/unix/xmknod.c: Likewise.
3480         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3481         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3482         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3483
3484         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3485
3486 2002-08-03  Roland McGrath  <roland@redhat.com>
3487
3488         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3489         setpriority.
3490         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3491         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3492         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3493         * sysdeps/mach/hurd/setpriority.c: Likewise.
3494         * sysdeps/mach/hurd/getpriority.c: Likewise.
3495         * sysdeps/generic/setpriority.c: Likewise.
3496         * sysdeps/generic/getpriority.c: Likewise.
3497
3498         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3499         * malloc/mcheck.c: Add libc_hidden_def.
3500
3501         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3502         * misc/hsearch_r.c: Add libc_hidden_def.
3503
3504         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3505         * posix/fnmatch.c: Add libc_hidden_weak.
3506
3507         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3508         execl, execle, execlp, execvp, getpid, getsid.
3509         * sysdeps/generic/alarm.c: Add libc_hidden_def.
3510         * sysdeps/unix/alarm.c: Likewise.
3511         * posix/confstr.c: Likewise.
3512         * posix/execvp.c: Likewise.
3513         * posix/execlp.c: Likewise.
3514         * posix/execle.c: Likewise.
3515         * posix/execl.c: Likewise.
3516         * sysdeps/generic/getsid.c: Likewise.
3517         * sysdeps/mach/hurd/getsid.c: Likewise.
3518         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3519         * sysdeps/mach/hurd/getpid.c: Likewise.
3520
3521         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3522         qecvt_r, qfcvt_r, lrand48_r.
3523         * misc/efgcvt_r.c: Add libc_hidden_def.
3524
3525         * include/wordexp.h: Use libc_hidden_proto for wordfree.
3526         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3527
3528         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3529         * locale/nl_langinfo.c: Add libc_hidden_def.
3530
3531         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3532         * sysdeps/generic/glob.c: Add libc_hidden_def.
3533         * sysdeps/generic/glob64.c: Likewise.
3534         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3535
3536         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3537
3538         * elf/Makefile (CFLAGS-vismod2.c): New variable.
3539
3540         * locale/setlocale.c (_nl_current_names): Variable moved ...
3541         * locale/localename.c (_nl_current_names): ... here, new file.
3542         Make it global, with attribute_hidden.
3543         * locale/localeinfo.h: Declare it.
3544         * locale/Makefile (aux): Add localename.
3545         * locale/localename.c (__current_locale_name): New function.
3546         * include/locale.h (__current_locale_name): Declare it.
3547         * intl/dcigettext.c (guess_category_value): Use that instead of
3548         calling setlocale.
3549
3550         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3551         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3552         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3553         * locale/newlocale.c: Add alias to __ name.
3554         * locale/duplocale.c: Likewise.
3555         * locale/freelocale.c: Likewise.
3556         * locale/uselocale.c: New file.
3557         * locale/Makefile (routines): Add it.
3558         * locale/Versions (libc: GLIBC_2.3): New set.
3559         Add newlocale, duplocale, freelocale, uselocale.
3560         (libc: GLIBC_PRIVATE): Add __uselocale.
3561
3562         * locale/localeinfo.h [SHARED]
3563         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3564         (_NL_CURRENT_DATA): Define using that.
3565         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3566         (_NL_CURRENT_DEFINE): Define to empty.
3567         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3568         conditionalized on this.
3569         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3570         taking initializer of _nl_C_locobj.
3571         [SHARED] (_nl_global_locale): New variable, using that initializer.
3572         (_nl_C_locobj): Use new macro for initialzier.
3573         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3574         [! SHARED] (CATEGORY_USED): New macro.
3575         [SHARED] (CATEGORY_USED, _nl_C): New macros.
3576         (setdata, setlocale): Use that macro instead of examining _nl_current.
3577         (setdata): Set the slot in _nl_global_locale.
3578         Conditionalize setting of _nl_current on [! SHARED].
3579         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3580         declaration as an extern.
3581         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3582
3583         * include/locale.h: Use libc_hidden_proto for setlocale.
3584         * locale/setlocale.c: Add libc_hidden_def.
3585
3586         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3587
3588         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3589         * misc/hsearch_r.c: Add libc_hidden_def.
3590         * misc/lsearch.c: Likewise.
3591
3592         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3593         endttyent.
3594         * misc/getttyent.c: Add libc_hidden_def.
3595
3596         * include/mcheck.h: Use libc_hidden_proto for mcheck.
3597         * malloc/mcheck.c: Add libc_hidden_def.
3598
3599         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3600         * include/argz.h: Use libc_hidden_proto for argz_delete.
3601         * string/argz-delete.c: Add libc_hidden_def.
3602         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
3603
3604         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3605         HIDDEN_JUMPTARGET for _exit.
3606         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3607         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3608         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3609         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3610
3611         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3612         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3613         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3614         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3615
3616         * include/stdlib.h: Use libc_hidden_proto for abort,
3617         __strtof_internal, __strtod_internal, __strtold_internal,
3618         __strtol_internal, __strtoll_internal, __strtoul_internal,
3619         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3620         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3621         __strtoul_l_internal, __strtoull_l_internal.
3622         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3623         __wcstod_internal, __wcstold_internal, __wcstol_internal,
3624         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3625         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3626         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3627         __wcsncasecmp_l.
3628         * sysdeps/generic/abort.c: Add libc_hidden_def.
3629         * stdlib/strtod.c: Likewise.
3630         * sysdeps/generic/strtol.c: Likewise.
3631         * sysdeps/wordsize-64/strtol.c: Likewise.
3632         * sysdeps/wordsize-64/wcstol.c: Likewise.
3633         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3634
3635         * include/stdlib.h: Use libc_hidden_proto for qsort.
3636         * stdlib/msort.c: Add libc_hidden_def.
3637
3638         * include/utime.h: Use libc_hidden_proto for utime.
3639         * sysdeps/generic/utime.c: Add libc_hidden_def.
3640         * sysdeps/unix/utime.c: Likewise.
3641
3642         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3643         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3644         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3645         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3646         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3647
3648         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3649         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3650         and __libc_current_sigrtmax.
3651         * signal/sigismem.c: Add libc_hidden_def.
3652         * signal/sigfillset.c: Likewise.
3653         * signal/sigempty.c: Likewise.
3654         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3655         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3656         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3657         * sysdeps/posix/raise.c: Likewise.
3658         * sysdeps/generic/raise.c: Likewise.
3659
3660 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3661
3662         * include/string.h: Use libc_hidden_proto for __stpcpy.
3663         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3664         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3665         * sysdeps/generic/stpcpy.c: Likewise.
3666         * sysdeps/i386/stpcpy.S: Likewise.
3667         * sysdeps/i386/i586/stpcpy.S: Likewise.
3668         * sysdeps/powerpc/stpcpy.S: Likewise.
3669         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3670         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3671
3672         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3673         __strncasecmp_l, __strdup, __strndup, __strerror_r.
3674         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3675         libc_hidden_def.
3676         * string/strdup.c (__strdup): Likewise.
3677         * string/strndup.c (__strndup): Likewise.
3678         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3679         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3680
3681 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3682
3683         * include/libio.h: New file.
3684         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3685         * libio/iolibio.h: #include <libio.h>, not "libio.h".
3686         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3687         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3688         * sysdeps/unix/common/syscalls.list: Likewise.
3689         * sysdeps/unix/inet/syscalls.list: Likewise.
3690         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3691         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3692         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3693         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3694         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3695         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3696         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3697         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3698         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3699         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3700         * sysdeps/unix/syscalls.list: Likewise.
3701
3702 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3703             Ulrich Drepper  <drepper@redhat.com>
3704
3705         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3706         the arguments is big enough to cause an overflow.
3707
3708 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3709
3710         * assert/assert.c: Use hidden_def not INTDEF.
3711
3712 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3713
3714         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3715         not defined.
3716
3717 2002-08-03  Roland McGrath  <roland@redhat.com>
3718
3719         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3720         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3721         verr, verrx.
3722         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3723         * misc/syslog.c: Add libc_hidden_def.
3724         * misc/err.c: Likewise.
3725         * stdlib/exit.c: Likewise.
3726         * stdlib/bsearch.c: Likewise.
3727         * sysdeps/generic/getenv.c: Likewise.
3728
3729         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3730
3731         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3732         libc_hidden_weak for every system call symbol defined.
3733
3734         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3735         timelocal, localtime, strftime.
3736         * time/asctime.c: Add libc_hidden_def.
3737         * time/mktime.c: Likewise.
3738         * time/localtime.c: Likewise.
3739         * time/strftime.c: Likewise.
3740         * time/strptime.c: Likewise.
3741         * sysdeps/generic/time.c: Likewise.
3742         * sysdeps/unix/time.c: Likewise.
3743         * sysdeps/unix/sysv/i386/time.S: Likewise.
3744         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3745
3746         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3747         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3748         * resolv/inet_ntop.c: Likewise.
3749         * resolv/inet_pton.c: Likewise.
3750         * inet/inet_mkadr.c: Add libc_hidden_def.
3751         * inet/inet_netof.c: Likewise.
3752         * resolv/inet_addr.c: Likewise.
3753
3754         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3755         clauses from conditionals for now.  Will have to be fixed later
3756         for older compilers.
3757
3758         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3759
3760 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3761
3762         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3763         broken alias attribute handling.
3764         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3765
3766 2002-08-02  Roland McGrath  <roland@frob.com>
3767
3768         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3769         since it sets the variables we use in a -D switch.
3770
3771 2002-08-02  Roland McGrath  <roland@redhat.com>
3772
3773         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3774         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3775         matches long int, not int.
3776
3777         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3778         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3779         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3780         * wctype/wctrans.c (wctrans): Likewise.
3781         * wctype/wctype.c (__wctype): Likewise.
3782         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3783
3784 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3785
3786         * assert/assert.c (__assert_fail): Fix typo in comment.
3787
3788         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3789         * sunrpc/rpc_thread.c: Define it without static.
3790         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3791
3792 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
3793
3794         * assert/assert.c (__assert_fail): Remove undef.
3795         Replace INTDEF with libc_hidden_def.
3796         * assert/__assert.c (__assert): Remove INTUSE.
3797         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3798         libc_hidden_weak.
3799         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
3800         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
3801         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
3802         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
3803         libm_hiden_ver): Define.
3804         * include/assert.h (__assert_fail_internal): Remove.
3805         (__assert_fail): Add prototype.  Add hidden_proto.
3806         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
3807         libc_hidden_proto.
3808         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
3809         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
3810         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
3811         Add libc_hidden_proto.
3812         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
3813         __fcntl): Add libc_hidden_proto.  Remove macros.
3814         (__open_internal, __fcntl_internal): Remove.
3815         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
3816         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
3817         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
3818         libc_hiden_proto.
3819         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
3820         libc_hidden_def.
3821         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
3822         Add libc_hidden_def.
3823         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
3824         * sysdeps/generic/open.c (__open): Remove undef.
3825         Add libc_hidden_def.  Remove INTDEF.
3826         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
3827         Add libc_hidden_def.
3828         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
3829         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
3830         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
3831         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3832         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3833         (__libc_fcntl): Add libc_hidden_def.
3834         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
3835         (__open): Remove INTDEF2.  Add libc_hidden_weak.
3836         (__libc_open): Add libc_hidden_def.
3837         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
3838         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
3839         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3840         Add libc_hidden_def.
3841         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
3842         Add libc_hidden_def.
3843         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
3844         undef.
3845         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3846         (__libc_fcntl): Add libc_hidden_def.
3847         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
3848         __getpgid_internal, __chown_internal): Remove.
3849         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
3850         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
3851         __GI___chown): Add.
3852         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
3853         __getpid_internal, __open_internal, __write_internal): Remove.
3854         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
3855         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
3856         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
3857         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
3858         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
3859         Replace INTDEF with libc_hidden_def.
3860         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
3861         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
3862         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
3863         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
3864         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
3865         Add libc_hidden_proto.
3866         * include/sys/poll.h (__poll): Add libc_hidden_proto.
3867         * include/sys/select.h (__select): Likewise.
3868         * include/sys/socket.h (__send): Likewise.
3869         * include/sys/statfs.h (__statfs): Likewise.
3870         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
3871         __getpid, __getpgid, __setpgid, __close, __read, __write,
3872         __getpagesize, __sbrk): Likewise.
3873         (__chown_internal, __dup2_internal, __getpid_internal,
3874         __getpgid_internal, __close_internal, __write_internal,
3875         __getpagesize_internal): Remove.
3876         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
3877         Remove macros.
3878         * include/printf.h (__printf_fp): Add libc_hidden_proto.
3879         * include/sched.h (__sched_setscheduler): Likewise.
3880         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
3881         * include/stdlib.h (__secure_getenv): Likewise.
3882         * include/signal.h (__sigaction, __sigsuspend): Likewise.
3883         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
3884         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
3885         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
3886         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
3887         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
3888         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
3889         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
3890         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
3891         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
3892         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
3893         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
3894         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
3895         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
3896         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
3897         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
3898         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3899         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3900         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3901         * libio/genops.c (__overflow): Add libc_hidden_def.
3902         * libio/iovdprintf.c: Remove libio.h include.
3903         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
3904         libc_hidden_weak): Define to nothing if not defined.
3905         (__overflow, __woverflow): Add libc_hidden_proto.
3906         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
3907         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
3908         (DB_LOOKUP_FCT): Add libc_hidden_proto.
3909         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
3910         (DB_LOOKUP_FCT): Add libc_hidden_proto.
3911         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
3912         and libc_hidden_def.
3913         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
3914         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
3915         (__getpgid): Add libc_hidden_proto.
3916         (__bsd_getpgrp): Remove INTUSE.
3917         * resolv/res_init.c (__res_ninit, __res_randomid): Add
3918         libc_hidden_def.
3919         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
3920         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
3921         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
3922         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
3923         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
3924         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
3925         __rpc_thread_createerr): Add libc_hidden_def.
3926         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
3927         libc_hidden_def.
3928         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
3929         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
3930         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
3931         * sysdeps/generic/chown.c (__chown): Likewise.
3932         * sysdeps/generic/close.c (__close): Likewise.
3933         * sysdeps/generic/dup2.c (__dup2): Likewise.
3934         * sysdeps/generic/pipe.c (__pipe): Likewise.
3935         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
3936         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
3937         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
3938         * sysdeps/generic/read.c (__libc_read): Likewise.
3939         (__read): Add libc_hidden_weak.
3940         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
3941         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
3942         * sysdeps/generic/select.c (__select): Likewise.
3943         * sysdeps/generic/send.c (__send): Likewise.
3944         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
3945         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
3946         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
3947         * sysdeps/generic/statfs.c (__statfs): Likewise.
3948         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
3949         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
3950         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
3951         Remove undef and INTDEF.
3952         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
3953         * sysdeps/generic/getpid.c (__getpid): Likewise.
3954         * sysdeps/generic/write.c (__libc_write): Likewise.
3955         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
3956         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
3957         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
3958         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
3959         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
3960         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
3961         Remove undef and INTDEF.
3962         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
3963         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
3964         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
3965         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
3966         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
3967         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
3968         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
3969         (__pipe): Add libc_hidden_def.
3970         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
3971         libc_hidden_weak.
3972         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
3973         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
3974         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
3975         (__read): Add libc_hidden_weak.
3976         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
3977         (__libc_pwrite64): Add libc_hidden_def.
3978         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
3979         * sysdeps/mach/hurd/select.c (__select): Likewise.
3980         * sysdeps/mach/hurd/send.c (__send): Likewise.
3981         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
3982         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
3983         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
3984         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
3985         * sysdeps/posix/dup2.c: Likewise.
3986         Remove undef and INTDEF.
3987         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
3988         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
3989         (__pwrite64): Add libc_hidden_weak.
3990         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
3991         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
3992         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
3993         * sysdeps/standalone/close.c (__close): Likewise.
3994         * sysdeps/standalone/write.c (__libc_write): Likewise.
3995         (__write): Add libc_hidden_weak.
3996         * sysdeps/standalone/read.c (__read): Likewise.
3997         (__libc_read): Add libc_hidden_def.
3998         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
3999         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4000         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4001         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4002         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4003         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4004         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4005         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4006         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4007         __GI___sigaction): Add.
4008         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4009         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4010         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4011         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4012         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4013         __GI___setpgid): Add.
4014         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4015         Remove undef and INTDEF.
4016         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4017         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4018         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4019         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4020         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4021         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4022         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4023         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4024         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4025         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4026         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4027         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4028         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4029         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4030         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4031         __GI___statfs, __GI___send): Add.
4032         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4033         libc_hidden_ver resp. libc_hidden_def.
4034         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4035         libc_hidden_def.
4036         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4037         Likewise.  Remove undef and INTDEF.
4038         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4039         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4040         __GI___statfs, __GI___send): Add.
4041         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4042         libc_hidden_def.
4043         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4044         Likewise.
4045         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4046         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4047         libc_hidden_ver resp. libc_hidden_def.
4048         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4049         __GI___send): Add.
4050         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4051         Add libc_hidden_weak.
4052         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4053         Add libc_hidden_def.
4054         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4055         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4056         libc_hidden_weak.
4057         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4058         resp. libc_hidden_def.
4059         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4060         libc_hidden_weak.
4061         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4062         INTDEF.
4063         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4064         Likewise.  Remove undef.
4065         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4066         libc_hidden_weak.
4067         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4068         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4069         libc_hidden_weak.
4070         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4071         libc_hidden_def.
4072         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4073         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4074         Likewise.  Remove undef and INTDEF.
4075         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4076         libc_hidden_def.
4077         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4078         libc_hidden_weak.
4079         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4080         libc_hidden_def.
4081         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4082         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4083         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4084         libc_hidden_weak.
4085         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4086         Add libc_hidden_def.
4087         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4088         __GI___statfs): Add.
4089         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4090         libc_hidden_weak.
4091         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4092         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4093         Remove undef and INTDEF.
4094         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4095         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4096         libc_hidden_def.
4097         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4098         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4099         libc_hidden_weak.
4100         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4101         libc_hidden_def.
4102         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4103         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4104         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4105         Add.
4106         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4107         libc_hidden_def.  Remove undef and INTDEF.
4108         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4109         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4110         libc_hidden_def.
4111         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4112         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4113         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4114         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4115         Remove undef and INTDEF.
4116         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4117         broken visibility attribute handling.
4118         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4119
4120 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4121
4122         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4123         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4124
4125         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4126         previous patch.
4127
4128 2002-06-29  Todd Fries  <todd@openbsd.org>
4129
4130         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4131
4132 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4133
4134         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4135
4136 2002-07-30  Roland McGrath  <roland@redhat.com>
4137
4138         * resolv/resolv.h (_res): Define macro unconditionally.
4139         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4140         * include/resolv.h: ... here.
4141         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4142         as a __thread variable.
4143         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4144         a __thread variable instead of a global.
4145         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4146
4147         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4148         time we test it.
4149
4150         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4151
4152         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4153         decls of memset and memcpy.
4154
4155         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4156         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4157
4158         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4159
4160         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4161         (__libc_tsd_define): Define using __thread.
4162
4163         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4164         (__rpc_thread_variables): Use __libc_tsd_get.
4165         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4166         __rpc_thread_variables, which might allocate what we're about to free.
4167
4168         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4169         thread-local variable.
4170         * resolv/netdb.h (h_errno): Define macro unconditionally.
4171         [_LIBC] (__set_h_errno): Macro moved to ...
4172         * include/netdb.h: ... here.
4173         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4174         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4175         [! _LIBC_REENTRANT]: #undef h_errno here.
4176
4177         * include/errno.h: Protect from multiple inclusion.
4178
4179         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4180         before defining them, since Linux's <linux/posix_types.h> might have
4181         defined them.
4182
4183 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4184
4185         * malloc/malloc.c (public_cALLOc): Check for overflow on
4186         multiplication.
4187         * sunrpc/xdr_array.c (xdr_array): Likewise.
4188         * sunrpc/rpc/types.h (mem_free): Add comment.
4189         Patch by Solar Designer <solar@openwall.com>.
4190
4191 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4192
4193         * sysdeps/unix/sysv/linux/kernel-features.h
4194         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4195
4196 2002-08-01  Roland McGrath  <roland@redhat.com>
4197
4198         * libio/fileops.c (_IO_file_sync_mmap): New function.
4199         (_IO_file_jumps_mmap): Use it.
4200         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4201         repeat the stat check and resize the mapped buffer as necessary.
4202
4203 2002-07-31  Roland McGrath  <roland@redhat.com>
4204
4205         * libio/fileops.c (decide_maybe_mmap): New static function.
4206         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4207         mmap the file contents.  Then switch the jump tables to the mmap
4208         tables if it worked, or the vanilla file tables if not.
4209         (_IO_file_underflow_maybe_mmap): New function.
4210         (_IO_file_seekoff_maybe_mmap): New function.
4211         (_IO_file_xsgetn_maybe_mmap): New function.
4212         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4213         * libio/libioP.h: Declare those.
4214         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4215         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4216         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4217         If the stream is read-only, set its jump tables to those new ones.
4218         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4219         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4220         We need the tables set before _IO_file_attach.
4221
4222         * libio/tst-mmap-eofsync.c: New file.
4223         * libio/tst-mmap-fflushsync.c: New file.
4224         * libio/bug-mmap-fflush.c: New file.
4225         * libio/tst-mmap2-eofsync.c: New file.
4226         * libio/Makefile (tests): Add them.
4227
4228         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4229         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4230
4231 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4232
4233         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4234         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4235         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4236         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4237         declare sys_errlist and sys_nerr.
4238         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4239         provide declarations.
4240
4241 2002-07-31  Roland McGrath  <roland@redhat.com>
4242
4243         * elf/rtld.c (dl_main): Fix typo in error message.
4244
4245 2002-07-31  Roland McGrath  <roland@frob.com>
4246
4247         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4248         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4249         sysdeps/mach/hurd/dl-sysdep.c change.
4250
4251 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4252
4253         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4254         -r`/build/include for kernel headers.
4255
4256         * po/fi.po: New file.
4257
4258 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4259
4260         * configure.in (static_nss): Set to `yes' if --disable-shared.
4261
4262 2002-07-23  Bruno Haible  <bruno@clisp.org>
4263
4264         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4265         is set.
4266
4267 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4268
4269         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4270         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4271         arguments.
4272
4273 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4274
4275         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4276         alias.
4277
4278 2002-07-21  Bruno Haible  <bruno@clisp.org>
4279
4280         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4281         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4282         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4283         trans_sysdep_tab_offset.
4284         (struct sysdep_segment): New type.
4285         (struct sysdep_string): New type.
4286         (SEGMENTS_END): New macro.
4287         * intl/gettextP.h (struct sysdep_string_desc): New type.
4288         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4289         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4290         orig_tab, trans_tab, hash_tab to const pointers because they point
4291         into read-only memory.
4292         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4293         (PRI*): Define fallback values.
4294         (get_sysdep_segment_value): New function.
4295         (_nl_load_domain): Distinguish major and minor revision parts. Add
4296         support for minor revision 1 with system dependent strings.
4297         (_nl_unload_domain): Also free the 'malloced' field.
4298         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4299         now done in loadmsgcat.c. Add support for system dependent strings.
4300
4301 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4302
4303         * posix/bug-regex7.c: New file.
4304         * posix/bug-regex8.c: New file.
4305         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4306
4307 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4308
4309         * posix/bug-regex4.c (main): Fix typos.
4310         * posix/bug-regex6.c (main): Likewise.
4311
4312 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
4313
4314         * posix/bug-regex6.c (main): Fix warnings.
4315
4316         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4317
4318         * iconv/iconv_prog.c (main): Improve error message for the cases
4319         where -t and/or -f parameter are missing.
4320
4321 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
4322
4323         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4324         (re_search): Likewise.
4325         (re_match_2): Likewise.
4326         (re_search_2): Likewise.
4327         (re_search_stub): New function.
4328         (re_search_2_stub): New function.
4329         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4330
4331 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
4332
4333         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4334         (re_string_eoi): Use STOP instead of LEN.
4335         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4336         (re_string_construct): Likewise.
4337         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4338         * posix/regexec.c (re_search_internal): Add a new argument STOP
4339         so that it can handle the argument STOP of re_search_2 and re_match_2
4340         correctly.
4341         (regexec): Adapt to new I/F of re_search_internal.
4342         (re_search_stub): Likewise.
4343
4344 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
4345
4346         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4347
4348         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4349
4350         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4351         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4352         of __divdi3.
4353
4354         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4355         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4356         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4357         alias for adjtimex syscall.
4358
4359         * elf/dl-minimal.c: Define __assert_fail_internal.
4360         * assert/assert.c: Likewise.
4361         * include/assert.h: Define __assert_file macro if !SHARED and not
4362         NOT_IN_libc.
4363
4364         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4365         programs.
4366         * locale/Makefile: Likewise.
4367         * nscd/Makefile: Likewise.
4368         * catgets/Makefile: Likewise.
4369
4370 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4371
4372         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4373         compute current position.
4374
4375         * stdio-common/tst-fseek.c (main): Improve error messages.
4376
4377         * libio/tst-freopen.c (main): Remove unused variable.
4378
4379         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4380         succesful seek call.  Simplify error checking.
4381
4382 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4383
4384         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4385         * sysdeps/ia64/fpu/libm_support.h: Likewise.
4386
4387 2002-07-19  Roland McGrath  <roland@frob.com>
4388
4389         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4390         __libc_enable_secure is set.
4391
4392 2002-07-24  Roland McGrath  <roland@frob.com>
4393
4394         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4395         This implementation supports only IPv4.
4396         * inet/ifaddrs.h: New file.
4397         * sysdeps/generic/ifaddrs.c: New file.
4398         * sysdeps/gnu/ifaddrs.c: New file.
4399         * inet/test-ifaddrs.c: New file.
4400         * inet/Makefile (routines): Add ifaddrs.
4401         (headers): Add ifaddrs.h here.
4402         (tests): Add test-ifaddrs.
4403         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4404
4405         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4406         socket call to get an AF_INET socket, instead of using __opensock.
4407         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4408
4409         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4410         if not -1 use it instead of calling __opensock.
4411         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4412         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4413         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4414
4415         * sysdeps/mach/hurd/ifreq.h: New file.
4416         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4417         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4418         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4419
4420         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4421         which gets moved around.  Calculate size of mmap'd buffer instead.
4422
4423 2002-07-24  Philip Blundell  <philb@gnu.org>
4424
4425         * sysdeps/unix/arm/brk.S: Improve schedule.
4426         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4427         efficient instruction.
4428         (__socket): Optimize return sequence.
4429
4430 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4431
4432         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4433         sockets on old kernels.
4434
4435 2002-07-22  Philip Blundell  <philb@gnu.org>
4436
4437         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4438         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
4439         alias.
4440
4441 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4442
4443         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4444         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4445
4446         * locale/programs/locarchive.c (add_locale_to_archive): Correct
4447         test to detect duplicate locales.
4448
4449         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4450         position would be before beginning of file.
4451         (_IO_file_seekoff_mmap): Likewise.
4452         * libio/Makefile (tests): Add bug-fseek.
4453         * libio/bug-fseek.c: New file.
4454
4455         * intl/explodename.c: Remove support for CEN-style locale variables.
4456         It was never used and shouldn't be since it's not portable.
4457         * intl/finddomain.c: Likewise.
4458         * intl/l10nflist.c: Likewise.
4459         * intl/loadinfo.h: Likewise.
4460         * locale/findlocale.c: Likewise.
4461
4462 2002-07-24  Roland McGrath  <roland@frob.com>
4463
4464         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4465         position, calculate it to take into account an active pushback buffer.
4466
4467         * libio/Makefile (tests): Add bug-ungetc.
4468         * libio/bug-ungetc.c: New file.
4469
4470 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
4471
4472         * sysdeps/generic/libc-tls.c: New file.
4473         * csu/Makefile (routines): Add libc-tls.
4474         (static-only-routines): Add libc-tls.
4475         * elf/dl-support.c (_dl_phdr): New variable.
4476         (_dl_phnum): New variable.
4477         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4478         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4479         for !SHARED.  First look through auxiliary vector.  If TLS always
4480         call __pthread_initialize_minimal.
4481
4482         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4483         in mmap call is never zero.
4484
4485 2002-07-23  Andreas Jaeger  <aj@suse.de>
4486
4487         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4488         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4489
4490 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
4491
4492         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4493         creation and removal of the temp file.
4494
4495         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
4496         file creation.
4497         * test-skeleton.c (create_temp_file): New function.
4498
4499 2002-07-22  Andreas Jaeger  <aj@suse.de>
4500
4501         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4502         local label.
4503
4504 2002-07-21  Roland McGrath  <roland@frob.com>
4505
4506         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4507         put -I../include before -I../stdlib so we get the right errno.h et al.
4508         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4509         (CFLAGS-wcstof.c): Likewise.
4510         (CFLAGS-wcstold.c): Likewise.
4511         (CFLAGS-wcstod_l.c): Likewise.
4512         (CFLAGS-wcstof_l.c): Likewise.
4513         (CFLAGS-wcstold_l.c): Likewise.
4514
4515 2002-07-19  Roland McGrath  <roland@frob.com>
4516
4517         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4518
4519 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
4520
4521         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4522         __ASSUME_AT_XID is defined.
4523         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4524         for 2.4.1 and up.
4525         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4526         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4527
4528         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4529         (CFLAGS-wcstof.c): Likewise.
4530         (CFLAGS-wcstold.c): Likewise.
4531         (CFLAGS-wcstod_l.c): Likewise.
4532         (CFLAGS-wcstof_l.c): Likewise.
4533         (CFLAGS-wcstold_l.c): Likewise.
4534
4535 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
4536
4537         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4538         __priority_which_t): Always typedef to int for C++.
4539
4540 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
4541
4542         * configure.in: Add test for __thread support in compiler.
4543         * config.h.in: Add HAVE___THREAD.
4544         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4545         * include/sys/errno.h: Moved to...
4546         * stdlib/sys/errno.h: ...here.  New file.
4547         * stdlib/errno.h: New file.  Moved from...
4548         * include/errno.h: ...here.  Changed into an internal header defining
4549         libc-local things like __set_errno.
4550         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4551         bits/errno.h.
4552         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
4553         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
4554         either.
4555         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4556         from...
4557         (_dl_start_final): ...here.  Add code to initialize tls elements from
4558         bootstrap_map.
4559         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4560         if USE_TLS && HAVE___THREAD.
4561         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4562         * sysdeps/mach/hurd/bits/errno.h: Likewise.
4563         * sysdeps/standalone/arm/bits/errno.h: Likewise.
4564         * sysdeps/standalone/bits/errno.h: Likewise.
4565         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4566         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4567         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4568         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4569         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4570         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4571         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4572         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4573         use GL(dl_rtld_map), use map parameter.
4574         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4575         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4576         USE_TLS && HAVE___THREAD.
4577         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4578         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
4579         TLS code sequence.
4580         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4581
4582         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4583         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4584         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4585         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4586         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4587         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4588
4589 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
4590
4591         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4592         MS_INVALIDATE values.
4593
4594 2002-07-17  Andreas Schwab  <schwab@suse.de>
4595             Ulrich Drepper  <drepper@redhat.com>
4596
4597         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4598         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4599         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4600         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4601
4602 2002-07-01  H.J. Lu  <hjl@gnu.org>
4603
4604         * elf/circleload1.c (load_dso): Call "circlemod1" and check
4605         return value.
4606
4607         * elf/circlemod1.c (circlemod1): Return int.
4608         * elf/circlemod2.c (circlemod2): Likewise.
4609         * elf/circlemod2a.c (circlemod2): Likewise.
4610         * elf/circlemod3.c (circlemod3): Likewise.
4611         (circlemod3a): A new function.
4612
4613 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
4614
4615         * catgets/tst-catgets.c (main): Don't expect results for
4616         untranslated messages.
4617
4618         * glibcbug.in: Fix little typo.  Remove STDIO.
4619
4620         * config.h.in: Fail if __FAST_MATH__ is defined.
4621         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4622         (CPPFLAGS-test-idouble.c): Likewise.
4623         (CPPFLAGS-test-ildouble.c): Likewise.
4624
4625 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4626
4627         * intl/tst-gettext.sh: Pass -f option to msgfmt.
4628         * intl/tst-gettext.c: Correctly handle untranslated messages in
4629         positive tests.
4630
4631         * po/de.po: Update from translation team.
4632
4633 2002-07-02  H.J. Lu  <hjl@gnu.org>
4634
4635         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
4636         use ll/sc.
4637         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4638
4639         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4640         to 2.4.0 for mips.
4641
4642 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4643
4644         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4645         TLS fail if USE_TLS is not defined.
4646
4647         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4648         and adjust state for seek position.  [PR libc/4070]
4649         * libio/Makefile (tests): Add bug-rewind.
4650         * libio/bug-rewind.c: New file.
4651
4652 2002-07-12  Philip Blundell  <philb@gnu.org>
4653
4654         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4655         (__backtrace): Use it.
4656         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
4657
4658 2002-07-12  Philip Blundell  <philb@gnu.org>
4659
4660         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4661         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
4662         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4663         (elf_machine_rela): Remove unused variable.
4664
4665         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4666         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4667         define.
4668
4669 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
4670
4671         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4672
4673 2002-07-14  Andreas Jaeger  <aj@suse.de>
4674
4675         * sysdeps/x86_64/bits/link.h: Add biarch support.
4676
4677 2002-07-13  Andreas Jaeger  <aj@suse.de>
4678
4679         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4680         Use correct indices.
4681         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4682
4683 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4684
4685         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4686         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4687         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4688         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4689         * sysdeps/s390/s390-32/bits/link.h: Remove.
4690         * sysdeps/s390/s390-64/bits/link.h: Remove.
4691         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4692         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4693         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4694         * sysdeps/s390/bits/wordsize.h: New file.
4695         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4696         elfclass.h.
4697         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4698         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4699         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4700         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4701         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4702         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4703         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4704         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4705         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4706         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4707         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4708         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4709         resource.h.
4710         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4711         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4712         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4713         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4714         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4715         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4716         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4717         sigaction.h.
4718         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4719         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4720         siginfo.h.
4721         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4722         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4723         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4724         socket.h.
4725         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4726         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4727         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4728         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4729         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4730         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4731         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4732         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4733         procfs.h.
4734         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4735         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4736         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4737         ucontext.h.
4738         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4739         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4740
4741 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4742
4743         * Versions.def (libc): Add GLIBC_2.3.
4744         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4745         * stdlib/canonicalize.c: Add compatibility version for realpath
4746         and make new code available in GLIBC_2.3.
4747
4748 2002-07-06  Bruno Haible  <bruno@clisp.org>
4749
4750         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4751
4752 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4753
4754         * resolv/res_hconf.c (_res_hconf_init): Move code into new
4755         function do_init.  Use __libc_once.
4756         (do_init): New function.
4757
4758         * iconvdata/iso8859-11.h: Removed.
4759         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4760         (distribute): Remove iso8859-11.h.
4761         * iconvdata/tst-tables.sh: Add ISO-8859-11.
4762
4763         * stdio-common/vfscanf.c (inchar): Restore errno from previous
4764         underflow operation if c == (W)EOF.
4765
4766 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4767
4768         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4769         non-zero, adjust exponent.
4770         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4771         Remove NO_LONG_DOUBLE aliases.
4772         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4773         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4774         (__log1pl): Raise divide by zero and invalid exceptions when needed.
4775         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4776         1**y and -1**+-Inf.
4777         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4778         Fix BITS_PER_MP_LIMB 32 extraction.
4779         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4780         exceptions for qNaNs.
4781         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4782         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4783         Raise exceptions when needed.  Don't recurse unnecessarily.
4784         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4785         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4786         exceptions for qNaNs.
4787         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4788         to fix *quo return value sign.
4789         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4790         case -Inf argument.
4791         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4792
4793 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
4794
4795         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4796         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4797         -DNDEBUG.
4798
4799 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4800
4801         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
4802         the result.
4803
4804         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
4805         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
4806
4807         * Versions.def (libthread_db): Add GLIBC_2.3.
4808
4809 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
4810
4811         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
4812         new stream if possible.
4813         * libio/freopen64.c (freopen64): Likewise.
4814         * libio/Makefile (tests): Add tst-freopen.
4815         * libio/tst-freopen.c: New file.
4816
4817 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4818
4819         * libio/stdio.h (obstack_printf): Add format attribute.
4820         (obstack_vprintf): Likewise.
4821
4822 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4823
4824         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
4825         resp. 16 bytes on 32-bit resp. 64-bit platforms.
4826         (re_charset_t, re_string_t): Reorder structure members for 64-bit
4827         architectures.
4828
4829 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4830
4831         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
4832         (init_dfa): ...here.
4833
4834 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
4835
4836         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
4837         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
4838         nodes in parse trees.
4839         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
4840         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
4841         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
4842         nodes which can epsilon transit.
4843         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
4844         to IS_EPSILON_NODE macro.
4845         * posix/regexec.c (update_regs): New function to update registers
4846         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
4847         (proceed_next_node): Use the entities of the nodes to determine
4848         whether the node can transit to.
4849         (set_regs): Use update_regs function to update registers.
4850
4851 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4852
4853         * posix/bug-regex4.c (main): Remove duplicate setlocale.
4854         * posix/bug-regex6.c: New file.
4855         * posix/Makefile (tests): Add bug-regex6.
4856         (bug-regex6-ENV): Set LOCPATH.
4857
4858 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4859
4860         * Versions.def [libpthread]: Add GLIBC_2.2.6.
4861         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
4862
4863 2002-07-06  Bruno Haible  <bruno@clisp.org>
4864
4865         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
4866
4867 2002-07-06  Bruno Haible  <bruno@clisp.org>
4868
4869         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
4870         declarations.
4871
4872         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
4873
4874         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
4875
4876         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
4877         not _UTSNAME_H.
4878         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
4879
4880         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
4881         * sysdeps/generic/bits/ustat.h: Likewise.
4882
4883         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
4884
4885 2002-07-08  Andreas Jaeger  <aj@suse.de>
4886
4887         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
4888
4889 2002-07-08  Andreas Jaeger  <aj@suse.de>
4890
4891         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
4892
4893 2002-07-06  Andreas Jaeger  <aj@suse.de>
4894
4895         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
4896         * sysdeps/x86_64/fpu/s_copysign.S: New file.
4897         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
4898         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
4899         * sysdeps/x86_64/fpu/s_finitel.S: New file.
4900         * sysdeps/x86_64/fpu/s_fmax.S: New file.
4901         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
4902         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
4903         * sysdeps/x86_64/fpu/s_fmin.S: New file.
4904         * sysdeps/x86_64/fpu/s_fminf.S: New file.
4905         * sysdeps/x86_64/fpu/s_fminl.S: New file.
4906
4907 2002-06-05  Brian Youmans <3diff@gnu.org>
4908
4909         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
4910         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
4911         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
4912         * sysdeps/ia64/fpu/e_asin.S: Likewise.
4913         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
4914         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
4915         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
4916         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
4917         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
4918         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
4919         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
4920         * sysdeps/ia64/fpu/e_exp.S: Likewise.
4921         * sysdeps/ia64/fpu/e_expf.S: Likewise.
4922         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
4923         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
4924         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
4925         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
4926         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
4927         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
4928         * sysdeps/ia64/fpu/e_log.S: Likewise.
4929         * sysdeps/ia64/fpu/e_logf.S: Likewise.
4930         * sysdeps/ia64/fpu/e_pow.S: Likewise.
4931         * sysdeps/ia64/fpu/e_powf.S: Likewise.
4932         * sysdeps/ia64/fpu/e_powl.S: Likewise.
4933         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
4934         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
4935         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
4936         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
4937         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
4938         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
4939         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
4940         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
4941         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
4942         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
4943         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
4944         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
4945         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
4946         * sysdeps/ia64/fpu/libm_error.c: Likewise.
4947         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
4948         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
4949         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
4950         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
4951         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
4952         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
4953         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
4954         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
4955         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
4956         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
4957         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
4958         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
4959         * sysdeps/ia64/fpu/s_logb.S: Likewise.
4960         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
4961         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
4962         * sysdeps/ia64/fpu/s_modf.S: Likewise.
4963         * sysdeps/ia64/fpu/s_modff.S: Likewise.
4964         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
4965         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
4966         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
4967         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
4968         * sysdeps/ia64/fpu/s_rint.S: Likewise.
4969         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
4970         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
4971         * sysdeps/ia64/fpu/s_round.S: Likewise.
4972         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
4973         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
4974         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
4975         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
4976         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
4977         * sysdeps/ia64/fpu/s_significand.S: Likewise.
4978         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
4979         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
4980         * sysdeps/ia64/fpu/s_tan.S: Likewise.
4981         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
4982         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
4983         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
4984         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
4985         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
4986         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
4987         reflect IBM donation of math library to FSF
4988         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4989         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4990         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4991         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4992         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4993         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4994         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4995         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4996         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4997         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4998         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4999         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5000         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5001         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5002         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5003         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5004         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5005         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5006         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5007         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5008         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5009         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5010         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5011         * sysdeps/vax/__longjmp.c: Likewise.
5012         * sysdeps/vax/setjmp.c: Likewise.
5013         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5014         remove advertising clause
5015         * sysdeps/vax/htonl.s: Likewise.
5016         * sysdeps/vax/htons.s: Likewise.
5017         * libio/wfiledoalloc.c: Likewise.
5018         * stdlib/random.c: Likewise.
5019         * stdlib/random_r.c: Likewise.
5020         * sysdeps/mach/sys/reboot.h: Likewise.
5021         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5022         * sysdeps/posix/getaddrinfo.c: Likewise.
5023         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5024         GPL and corrected pointer to point to the correct license.
5025
5026 2002-07-04  Andreas Jaeger  <aj@suse.de>
5027
5028         * scripts/config.guess: New upstream version.
5029         * scripts/config.sub: Likewise.
5030
5031 2002-07-02  Andreas Schwab  <schwab@suse.de>
5032
5033         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5034         in parallel to bumping up the buffer pointer.
5035
5036 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5037
5038         * math/libm-test.inc (acos_test): Add missing L suffix for
5039         expected result.
5040         (cpow_test): Likewise.
5041         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5042         error for acos (0.0625).
5043
5044 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5045
5046         * locale/iso-639.def: Add entry for Ganda.
5047         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5048         definition.
5049         (address_finish): Handle entries with two letter ISO 639 code.
5050
5051         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5052         directory if it existed before.
5053         * iconv/iconvconfig.c: Implement --prefix option.
5054
5055         * math/libm-test.inc (cexp_test): Add missing L suffix for
5056         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5057         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5058         1.25 i).
5059
5060 2002-05-29  H.J. Lu  <hjl@gnu.org>
5061
5062         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5063         is turned on.
5064
5065 2002-05-28  H.J. Lu  <hjl@gnu.org>
5066
5067         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5068         are not dlopened on the dependency list of a dlopened object.
5069
5070 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5071
5072         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5073         dependencies if they are created between objects which are created
5074         while processing RTLD_NOW for objects loaded as part of the same
5075         dlopen call.
5076
5077 2002-06-14  H.J. Lu  <hjl@gnu.org>
5078
5079         * elf/Makefile (tests): Add circleload1.
5080         (modules-names): Add circlemod1, circlemod2, circlemod3,
5081         circlemod1a, circlemod2a and circlemod3a.
5082         ($(objpfx)circleload1): New target.
5083         ($(objpfx)circleload1.out): Likewise.
5084         ($(objpfx)circlemod1.so): Likewise.
5085         ($(objpfx)circlemod2.so): Likewise.
5086         ($(objpfx)circlemod1a.so): Likewise.
5087         ($(objpfx)circlemod2a.so): Likewise.
5088         * elf/circleload1.c: New file.
5089         * elf/circlemod1.c: New file.
5090         * elf/circlemod1a.c: New file.
5091         * elf/circlemod2.c: New file.
5092         * elf/circlemod2a.c: New file.
5093         * elf/circlemod3.c: New file.
5094         * elf/circlemod3a.c: New file.
5095
5096 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5097
5098         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5099         file descriptor.
5100         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5101         add check for fd not open for writing.
5102
5103         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5104         completed element(s) and do not suspend thread if so.  Patch
5105         heavily modified by drepper.
5106
5107         * rt/tst-aio7.c: New file.  Regression test for problems which the
5108         above three changes fix.
5109         * rt/Makefile (tests): Add tst-aio7.
5110
5111 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5112
5113         * rt/tst-aio6.c: Fix comment.
5114
5115         * catgets/gencat.c (read_input_file): Handle more than one slash
5116         at end of line correctly [PR libc/3926].
5117         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5118
5119         * catgets/sample.SJIS: Add test case for above bug.
5120         * catgets/test-gencat.c: Adjust test code.
5121         * catgets/test-gencat.sh: Adjust expected results.
5122
5123         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5124         to skip relative relocations.
5125         Patch by Geoff Keating <geoffk@redhat.com>.
5126
5127 2002-05-26  Bruno Haible  <bruno@clisp.org>
5128
5129         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5130         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5131         All callers changed.
5132         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5133         STANDARD_FROM_LOOP_ERR_HANDLER.
5134         (utf8_internal_loop): Likewise.
5135         (ucs2_internal_loop): Likewise.
5136         (internal_ucs2_loop): Perform error handling like in
5137         STANDARD_FROM_LOOP_ERR_HANDLER.
5138         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5139         in STANDARD_FROM_LOOP_ERR_HANDLER.
5140         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5141         handling.
5142         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5143         in STANDARD_FROM_LOOP_ERR_HANDLER.
5144         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5145         handling.
5146         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5147         in STANDARD_FROM_LOOP_ERR_HANDLER.
5148         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5149         handling.
5150         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5151         STANDARD_FROM_LOOP_ERR_HANDLER.
5152         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5153         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5154         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5155         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5156         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5157         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5158         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5159         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5160         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5161         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5162         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5163         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5164         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5165         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5166         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5167         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5168         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5169         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5170         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5171         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5172         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5173         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5174         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5175         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5176         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5177         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5178         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5179         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5180         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5181         an error, still set result = __GCONV_ILLEGAL_INPUT.
5182         (BODY for TO_LOOP): Likewise.
5183         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5184         STANDARD_FROM_LOOP_ERR_HANDLER.
5185         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5186         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5187         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5188         handling.
5189         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5190         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5191         STANDARD_FROM_LOOP_ERR_HANDLER.
5192         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5193         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5194         STANDARD_FROM_LOOP_ERR_HANDLER.
5195         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5196         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5197         STANDARD_FROM_LOOP_ERR_HANDLER.
5198         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5199         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5200         STANDARD_FROM_LOOP_ERR_HANDLER.
5201         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5202         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5203         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5204         handling.
5205         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5206         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5207         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5208         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5209
5210 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5211
5212         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5213         labels in assembler instructions.
5214
5215 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5216
5217         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5218         not enough content is available.
5219         * libio/tst-eof.c: New file.
5220         * libio/Makefile (tests): Add tst-eof.
5221
5222         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5223         update atime.
5224         * libio/tst-atime.c: New file.
5225         * libio/Makefile (tests): Add tst-atime.
5226
5227         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5228         handling of overly long words.
5229
5230 2002-06-25  Andreas Jaeger  <aj@suse.de>
5231
5232         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5233         to not use 32-bit pc relative relocations.
5234         (elf_machine_dynamic): Likewise.
5235
5236 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5237
5238         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5239         (__GETDENTS): Check for failed getdents64 syscall.
5240         * dirent/Makefile (tests): Add bug-readdir1.
5241         * dirent/bug-readdir1.c: New file.
5242
5243 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5244
5245         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5246         lookups.
5247         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5248         code.  Print TLS modid and offset for modules containing PT_TLS
5249         segments.
5250
5251 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5252
5253         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5254         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5255         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5256         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5257
5258 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5259
5260         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5261         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5262         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5263         * nss/getXXent_r.c (NEW, NEW1): Define.
5264         (NEW (REENTRANT_GETNAME)): Strong alias to
5265         INTERNAL (REENTRANT_GETNAME).
5266         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5267
5268 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5269
5270         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5271         (_IO_file_jumps_mmap): Use it.
5272         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5273         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5274         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5275         prototype.
5276         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5277         (_IO_wfile_jumps_mmap): Don't use it anymore.
5278         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5279         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5280         _IO_wdefault_setbuf.
5281         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5282         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5283         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5284
5285 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5286
5287         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5288         * libio/tst-mmap-setvbuf.c: New test.
5289
5290 2002-06-21  Andreas Jaeger  <aj@suse.de>
5291
5292         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5293
5294 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
5295
5296         * include/unistd.h (__fork_internal): Remove.
5297         (__fork): Don't define to __fork_internal.
5298         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5299         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5300         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5301         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5302         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5303
5304 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5305
5306         * po/hr.po: New file.
5307
5308 2002-06-11  Wolfram Gloger  <wg@malloc.de>
5309
5310         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5311         Reported by Michael Meissner <meissner@redhat.com>.
5312
5313 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5314
5315         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5316         Patch by Hans Boehm <hans_boehm@hp.com>.
5317
5318 2002-06-20  Andreas Jaeger  <aj@suse.de>
5319
5320         * math/libm-test.inc: Use exact values as input parameters,
5321         compute output parameters with 36 digits for 128-bit long doubles.
5322         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5323         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5324         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5325
5326 2002-06-13  Stephen L Moshier  <steve@moshier.net>
5327
5328         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5329         argument or result is subnormal.
5330
5331 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
5332
5333         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5334         quotient.
5335         * sysdeps/i386/fpu/s_remquof.S: Likewise.
5336         * sysdeps/i386/fpu/s_remquol.S: Likewise.
5337
5338         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5339
5340 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
5341
5342         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5343         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5344         Reported by Peter A. Buhr.
5345
5346 2002-06-15  Roland McGrath  <roland@frob.com>
5347
5348         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5349         warning.
5350
5351         * sysdeps/mach/hurd/getcwd.c
5352         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5353
5354         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5355         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5356
5357         * sysdeps/alpha/divrem.h: Use local label instead of global one for
5358         jump to local subroutine.
5359
5360 2002-06-14  Roland McGrath  <roland@frob.com>
5361
5362         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5363         * sysdeps/mach/hurd/Makeconfig: ... here.
5364
5365 2002-06-13  Andreas Schwab  <schwab@suse.de>
5366
5367         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5368         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5369         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5370
5371 2002-06-13  Roland McGrath  <roland@frob.com>
5372
5373         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5374         * hurd/hurdstartup.c (_hurd_startup): Likewise.
5375         Use intptr_t instead of int for argc in stack layout.
5376         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5377         (_dl_init_first): Likewise.
5378         (_hurd_stack_setup): Likewise.
5379         (init1): Add a cast.
5380         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5381
5382         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5383         argument to pfinet_siocgifconf RPC.
5384
5385 2002-06-13  Andreas Schwab  <schwab@suse.de>
5386
5387         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5388         expansion order.
5389
5390 2002-06-12  Roland McGrath  <roland@frob.com>
5391
5392         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5393         if already defined.
5394         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5395         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5396
5397 2002-06-11  Roland McGrath  <roland@frob.com>
5398
5399         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5400         file on [!RTLD_STAT64].
5401         * sysdeps/mach/hurd/fxstat64.c: Likewise.
5402
5403         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5404         (__fdopen): Use INTUSE.
5405         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5406
5407         * stdio-common/tmpfile64.c: File removed.
5408         * sysdeps/generic/tmpfile64.c: New file.
5409         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5410         if not already defined.
5411         (tmpfile): Use it in place of __GT_FILE.
5412
5413         * include/unistd.h: Declare __chown_internal.
5414
5415         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5416         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5417
5418 2002-06-09  Roland McGrath  <roland@frob.com>
5419
5420         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5421         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5422         value of HURD_INTERFACE_VERSION >= 20020609.
5423         * sysdeps/mach/hurd/configure: Regenerated.
5424         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5425         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5426         convert a struct stat64 into a struct stat and return 0 or -1
5427         with errno set to EOVERFLOW.
5428         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5429         for struct statfs64 to struct statfs.
5430         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5431         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5432         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5433         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5434         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5435         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5436         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5437         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5438         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5439         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5440         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5441         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5442         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5443         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5444         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5445         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5446         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5447         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5448         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5449         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5450         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5451         Use struct stat64 for io_stat argument.
5452         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5453         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5454         to io_seek.
5455         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5456         * hurd/fd-write.c (_hurd_fd_write): Likewise.
5457         * hurd/hurd/fd.h: Update decls.
5458         * sysdeps/mach/hurd/getcwd.c
5459         (_hurd_canonicalize_directory_name_internal): Use ino64_t
5460         and struct dirent64.
5461         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5462         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5463         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5464         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5465
5466 2002-06-08  Roland McGrath  <roland@frob.com>
5467
5468         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5469         instead of unsigned long int for __allocation and __size members.
5470
5471 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5472
5473         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5474         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5475         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5476         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5477
5478 2002-06-07  Roland McGrath  <roland@frob.com>
5479
5480         * sysdeps/mach/hurd/bits/environments.h: File removed.
5481
5482 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5483
5484         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5485         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5486         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5487         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5488         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5489         (sendfile64): Likewise.
5490         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5491         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5492         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5493         Likewise.
5494         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5495
5496         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5497         already defined.
5498
5499 2002-06-04  Bruno Haible  <bruno@clisp.org>
5500
5501         * sysdeps/cris/stackinfo.h: New file.
5502
5503         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5504         to an integer type before performing bit operations on it.
5505
5506 2002-06-05  Roland McGrath  <roland@frob.com>
5507
5508         * sysdeps/generic/sendfile.c: Include <errno.h>.
5509         * sysdeps/generic/sendfile64.c: Likewise.
5510
5511         * io/Makefile (routines): Add sendfile and sendfile64.
5512         (headers): Add sys/sendfile.h to the list.
5513         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5514         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5515         * io/sys/sendfile.h: ... here.
5516         * sysdeps/generic/sendfile.c: New file.
5517         * sysdeps/generic/sendfile64.c: New file.
5518
5519         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5520         Move sendfile, sendfile64 to ...
5521         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5522         * sysdeps/mach/hurd/sendfile.c: New file.
5523         * sysdeps/mach/hurd/sendfile64.c: New file.
5524
5525         * sysdeps/mach/nanosleep.c: New file.
5526
5527 2002-06-04  Roland McGrath  <roland@frob.com>
5528
5529         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
5530         * sysdeps/alpha/elf/configure: New file (generated).
5531
5532 2002-06-02  Roland McGrath  <roland@frob.com>
5533
5534         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5535
5536 2002-06-01  Roland McGrath  <roland@frob.com>
5537
5538         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5539         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5540
5541 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5542
5543         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5544         Add nsmap.
5545         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5546         Remove nstimes setting.
5547         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5548         * resolv/res_send.c (res_nsend): Don't close unconditionally if
5549         there is mix of IPv6 and IPv4 nameservers.
5550         Use nsmap array to find free slots and preserve nameserver ordering.
5551         Fix RES_ROTATE.
5552
5553 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5554
5555         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5556         use this header with LFS.
5557
5558         * po/sk.po: Update from translation team.
5559
5560 2002-05-28  Andreas Schwab  <schwab@suse.de>
5561
5562         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5563         message when finding object of wrong class.
5564
5565 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
5566
5567         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5568         Patch by <radu@netsoft.ro>.
5569
5570 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5571
5572         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5573         Add readahead.
5574         * sysdeps/unix/sysv/linux/readahead.c: New file.
5575         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5576         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5577         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5578         Add sendfile64 alias to sendfile syscall.
5579         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5580         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5581         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5582         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5583         syscall.
5584
5585         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5586         special section for PIC register loading.
5587         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5588
5589         * config.h.in: Define HAVE_HIDDEN.
5590         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5591
5592         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5593
5594 2002-05-28  Roland McGrath  <roland@frob.com>
5595
5596         * sysdeps/mach/alpha/setfpucw.c: New file.
5597
5598 2002-05-26  Roland McGrath  <roland@frob.com>
5599
5600         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5601         Use integer_t instead of int for IOC_VOID case.
5602
5603 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
5604
5605         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5606
5607 2002-05-26  Bruno Haible  <bruno@clisp.org>
5608
5609         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5610         end of the ISO-8859-7 from idx table.
5611
5612 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
5613
5614         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5615
5616 2002-05-24  David S. Miller  <davem@redhat.com>
5617
5618         * string/bits/string2.h (memset): Do not try to optimize when
5619         not _STRING_ARCH_unaligned if GCC will do the right thing.
5620
5621 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
5622
5623         * posix/regex.c: Define `inline' as a macro into nothing for the
5624         compilers which lack the keyword.
5625         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5626         for the compatibility of gawk.
5627         * posix/regcomp.c: Add fake implementation of isblank() for the
5628         environments which lack the function.
5629         Don't use free_charset() in case of non-i18n envs.
5630         (build_range_exp): Don't use i18n related code in case of non-i18n
5631         envs.
5632         (build_collating_symbol): Likewise.
5633         (build_equiv_class): Likewise.
5634         (build_charclass): Likewise.
5635         (re_compile_fastmap_iter): Likewise.
5636         (parse_bracket_exp): Likewise.
5637         (build_word_op): Likewise.
5638         (regfree): Don't use free_charset() in case of non-i18n envs.
5639         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5640         re_token_type_t in case of non-i18n envs.
5641         Don't define re_charset_t in case of non-i18n envs.
5642         Change the type of wcs of re_string_t from wchar_t to wint_t,
5643         since we store also WEOF.
5644         * posix/regex_internal.c: (re_string_realloc_buffers): Change
5645         the type of wcs of re_string_t from wchar_t to wint_t.
5646         (re_string_reconstruct): Likewise.
5647         (create_ci_newstate): Don't use i18n related code in case of
5648         non-i18n envs.
5649         (create_cd_newstate): Likewise.
5650
5651 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
5652
5653         * iconv/loop.c: Fix typo.
5654
5655 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5656
5657         * inet/ether_line.c (ether_line): Fix a typo causing only
5658         lower 4 bits of each ethernet address byte being assigned.
5659         Don't modify what line points to.
5660         * inet/tst-ether_aton.c (main): Add ether_line tests.
5661
5662 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
5663
5664         * manual/filesys.texi: Don't make readlink example leak memory
5665         when readlink fails.
5666
5667 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
5668
5669         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
5670         some more security checks.
5671
5672 2002-05-17  David S. Miller  <davem@redhat.com>
5673
5674         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5675
5676 2002-05-16  David S. Miller  <davem@redhat.com>
5677
5678         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5679         (elf_machine_dynamic): Use it to force PIC register to be loaded.
5680         (elf_machine_load_address): Likewise.
5681         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5682
5683         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5684         is unaligned, do not forget to fully initialize %g1 magic value.
5685
5686         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5687         register definitions and provide 32-bit variants of structures
5688         during 64-bit builds.
5689
5690         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5691         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5692         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5693         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5694         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5695         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5696         Do not clear implicit one bit here, it must be done post-rounding.
5697         Only pad to the left using left shift if value uses less than the
5698         available fractional bits.
5699
5700 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5701
5702         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5703         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5704         (shared-only-routines): Likewise.
5705         * sysdeps/powerpc/libgcc-compat.c: New file.
5706         * sysdeps/wordsize-32/cmpdi2.c: Removed.
5707         * sysdeps/wordsize-32/fixdfdi.c: Removed.
5708         * sysdeps/wordsize-32/fixsfdi.c: Removed.
5709         * sysdeps/wordsize-32/shdi3.c: Removed.
5710
5711 2002-05-16  Bruno Haible  <bruno@clisp.org>
5712
5713         * MakeTAGS (libc.pot): Don't sort the output.
5714         * po/header.pot: Update to match xgettext 0.11 output.
5715
5716 2002-05-16  Bruno Haible  <bruno@clisp.org>
5717
5718         * MakeTAGS (subdirs): Remove duplicates.
5719
5720 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5721
5722         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5723         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5724         alias.
5725
5726 2002-05-19  Andreas Jaeger  <aj@suse.de>
5727
5728         * sysdeps/unix/sysv/linux/configure.in: Warn against an
5729         installation in /usr/local.
5730
5731 2002-05-16  Bruno Haible  <bruno@clisp.org>
5732
5733         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5734         string as argument of #error.
5735
5736 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
5737
5738         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5739         don't define static.  Remove old __realpath function.  TC1 of
5740         POSIX 2001 will allow the second parameter to be NULL.
5741         * stdlib/test-canon.c: Comment out test for NULL as second
5742         parameter of realpath.
5743
5744         * time/offtime.c (__offtime): Set errno if overflow is detected.
5745
5746         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5747         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5748         dl-brk and dl-sbrk.
5749
5750         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5751         (fdimf): Likewise.
5752
5753 2002-05-15  Roland McGrath  <roland@frob.com>
5754
5755         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5756
5757 2002-05-12  Bruno Haible  <bruno@clisp.org>
5758
5759         * iconvdata/testdata/EUC-JISX0213: New file.
5760         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5761         * iconvdata/testdata/SHIFT_JISX0213: New file.
5762         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5763         * iconvdata/testdata/ISO-2022-JP-3: New file.
5764         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5765         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5766         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5767         contains comments indicating precomposed characters.
5768
5769 2002-04-21  Bruno Haible  <bruno@clisp.org>
5770
5771         * iconvdata/iso-2022-jp-3.c: New file.
5772         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5773         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5774         (LDFLAGS-ISO-2022-JP-3.so): New variable.
5775         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5776         (distribute): Add iso-2022-jp-3.c.
5777
5778 2002-05-12  Bruno Haible  <bruno@clisp.org>
5779
5780         * iconvdata/tst-table-to.c (main): Restore handling of
5781         transliterations, broken by last patch.
5782
5783 2002-05-12  Bruno Haible  <bruno@clisp.org>
5784
5785         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5786
5787 2002-05-12  Bruno Haible  <bruno@clisp.org>
5788
5789         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5790         when there is not enough room in the output buffer.
5791         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5792
5793 2002-04-20  Bruno Haible  <bruno@clisp.org>
5794
5795         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5796         macros.
5797         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5798         Also make this macro work if FROM_DIRECTION evaluates to 0.
5799         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5800         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
5801         of consume_incomplete.
5802         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5803         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
5804         4, not 8.
5805         * iconvdata/cp1258.c: Likewise.
5806         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5807         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
5808         not 2.
5809         * iconvdata/ibm933.c: Likewise.
5810         * iconvdata/ibm935.c: Likewise.
5811         * iconvdata/ibm937.c: Likewise.
5812         * iconvdata/ibm939.c: Likewise.
5813         * iconvdata/iso-2022-cn.c: Define
5814         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5815         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
5816         * iconvdata/iso-2022-cn-ext.c: Likewise.
5817         * iconvdata/iso-2022-jp.c: Define
5818         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5819         {MIN,MAX}_NEEDED_{FROM,TO}.
5820         * iconvdata/tcvn5712-1.c: Define
5821         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5822         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
5823         * iconvdata/euc-jisx0213.c: Define
5824         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5825         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
5826         * iconvdata/shift_jisx0213.c: Likewise.
5827
5828 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5829
5830         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
5831         shdi3, fixdfdi, fixsfdi in csu dir.
5832         (shared-only-routines): Likewise.
5833         * sysdeps/wordsize-32/cmpdi2.c: New file.
5834         * sysdeps/wordsize-32/shdi3.c: New file.
5835         * sysdeps/wordsize-32/fixdfdi.c: New file.
5836         * sysdeps/wordsize-32/fixsfdi.c: New file.
5837         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
5838         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
5839         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
5840
5841         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
5842         Only use va_arg if the argument will be used [PR libc/3259].
5843
5844 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
5845
5846         * catgets/catgets.c (catopen): Free buffer if internal catalog
5847         open fails.
5848
5849 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
5850
5851         * debug/xtrace.sh: Make more robust.  For realtime tracking use
5852         non-buffering methods.
5853         * debug/pcprofiledump.c: Implement -u option.
5854         Patch by Roger Luethi <rl@hellgate.ch>.
5855
5856 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
5857
5858         * include/netinet/in.h (bindresvport_internal): Add prototype.
5859         * include/rpc/auth.h  (authunix_create_internal,
5860         authunix_create_default_internal, authnone_create_internal,
5861         authdes_pk_create_internal): Add prototypes.
5862         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
5863         clntudp_create_internal, clntudp_bufcreate_internal,
5864         clntunix_create_internal): Add prototypes.
5865         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
5866         svc_getreq_internal, svc_getreq_common_internal,
5867         svc_getreqset_internal, svc_getreq_poll_internal,
5868         svc_register_internal, svc_unregister_internal,
5869         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
5870         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
5871         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
5872         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
5873         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
5874         * inet/rcmd.c (rcmd_af): Use __listen.
5875         (rresvport_af): Use __bind.
5876         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
5877         authunix_create, authunix_create_default, authnone_create,
5878         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
5879         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
5880         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
5881         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
5882         _authenticate, add INTDEF after such function definitions.
5883         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
5884         __setsockopt, __getsockname instead of non-__ variants.
5885         * sunrpc/pmap_rmt.c: Likewise.
5886         * sunrpc/rtime.c: Likewise.
5887         * sunrpc/svc_udp.c: Likewise.
5888         * sunrpc/clnt_unix.c: Likewise.
5889         * sunrpc/svc_unix.c: Likewise.
5890         * sunrpc/bindrsvprt.c: Likewise.
5891         * sunrpc/svc_tcp.c: Likewise.
5892         * sunrpc/auth_none.c: Likewise.
5893         * sunrpc/clnt_raw.c: Likewise.
5894         * sunrpc/clnt_tcp.c: Likewise.
5895         * sunrpc/auth_unix.c: Likewise.
5896         * sunrpc/key_call.c: Likewise.
5897         * sunrpc/clnt_gen.c: Likewise.
5898         * sunrpc/pm_getmaps.c: Likewise.
5899         * sunrpc/clnt_simp.c: Likewise.
5900         * sunrpc/pmap_clnt.c: Likewise.
5901         * sunrpc/svc_run.c: Likewise.
5902         * sunrpc/svc.c: Likewise.
5903         * sunrpc/svc_simple.c: Likewise.
5904         * sunrpc/pm_getport.c: Likewise.
5905         * sunrpc/auth_des.c: Likewise.
5906         * sunrpc/svc_auth.c: Likewise.
5907         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
5908         __register_frame_info_table_bases, __deregister_frame_info_bases):
5909         Add INTDEF.
5910         (__register_frame_info_bases_internal,
5911         __register_frame_info_table_bases_internal,
5912         __deregister_frame_info_bases_internal): Add prototypes.
5913         (__register_frame_info, __register_frame): Use INTUSE in call to
5914         __register_frame_info_bases.
5915         (__register_frame_info_table): Similarly.
5916         (__deregister_frame_info, __deregister_frame): Similarly.
5917         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
5918         sendto as weak alias.
5919         * sysdeps/mach/hurd/sendto.c: Likewise.
5920         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
5921         recvfrom as weak alias.
5922         * sysdeps/mach/hurd/recvfrom.c: Likewise.
5923         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
5924         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
5925         recvmsg as weak alias.
5926         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
5927         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
5928         sendmsg as weak alias.
5929         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
5930         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
5931         setsockopt, add setsockopt as weak alias.
5932         * sysdeps/mach/hurd/setsockopt.c: Likewise.
5933         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
5934         weak alias.
5935         * sysdeps/mach/hurd/bind.c: Likewise.
5936         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
5937         as weak alias.
5938         * sysdeps/mach/hurd/listen.c: Likewise.
5939         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
5940         getsockname, add getsockname as weak alias.
5941         * sysdeps/mach/hurd/getsockname.c: Likewise.
5942         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
5943         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
5944         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
5945         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
5946         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
5947         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
5948         Add aliases.
5949         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5950         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5951         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5952         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5953         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
5954         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
5955         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
5956         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
5957         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
5958         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
5959         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
5960         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
5961
5962 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
5963
5964         * locale/programs/localedef.h (show_archive_content): Add verbose
5965         argument.
5966         * locale/programs/localedef.c (main): Adjust caller.
5967         * locale/programs/locarchive.c (struct nameent, struct dataent): New
5968         types.
5969         (nameentcmp, dataentcmp): New functions.
5970         (xstrcmp): Remove.
5971         (show_archive_content): Print verbose listing with --list-archive -v.
5972
5973 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
5974
5975         * locale/programs/locarchive.c (open_archive): Take extra argument
5976         readonly.  If true open file with O_RDONLY and don't create the
5977         archive if it doesn't exist.
5978         Adapt all callers.
5979         (close_archive): Don't do anything if fd element is -1.
5980         * locale/programs/localedef.h (open_archive): Adjust prototype.
5981         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
5982         call.
5983
5984         * malloc/malloc.c (__posix_memalign): Correct check for size of
5985         alignment value [PR libc/3444].
5986
5987         * include/stdio.h: Remove references to old stdio implementation.
5988
5989         * libio/Makefile (bug-ungetwc2-ENV): Define.
5990
5991 2002-05-13  Roland McGrath  <roland@frob.com>
5992
5993         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
5994
5995         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
5996
5997 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
5998
5999         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6000         Allocate three, not two, more than LEN when appending '/.'.
6001         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6002         if NAME ends with '/.' if it is shorter than 2 chars.
6003
6004 2002-05-12  Roland McGrath  <roland@frob.com>
6005
6006         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6007         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6008
6009         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6010         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6011
6012 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6013
6014         * sysdeps/ia64/Makefile: Remove extra endif.
6015         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6016
6017 2002-05-10  Andreas Schwab  <schwab@suse.de>
6018
6019         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6020
6021 2002-05-09  Andreas Jaeger  <aj@suse.de>
6022
6023         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6024         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6025         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6026
6027         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6028         * sysdeps/wordsize-64/glob.c: ...here.
6029         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6030         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6031         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6032
6033 2002-05-08  Roland McGrath  <roland@frob.com>
6034
6035         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6036         O_NOTRANS flag in "." lookup.
6037
6038 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6039
6040         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6041
6042 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6043
6044         * locale/duplocale.c (__duplocale): Update special members only
6045         when allocation succeeded.
6046
6047 2002-05-03  Roland McGrath  <roland@frob.com>
6048
6049         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6050         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6051
6052 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6053
6054         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6055         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6056         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6057         * sysdeps/ia64/ia64libgcc.S: New file.
6058
6059 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6060
6061         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6062
6063         * malloc/memusage.c: Distinguish anonymous mmap.
6064
6065 2002-05-01  Roland McGrath  <roland@frob.com>
6066
6067         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6068         and use INTDEF on it.
6069         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6070
6071         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6072
6073         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6074
6075 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6076
6077         * malloc/memusage.c: Add support for tracking mmap & friends.
6078         * malloc/memusage.sh: Implement -m/--mmap option.
6079
6080 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6081
6082         * locale/programs/locarchive.c (create_archive): Add archivefname
6083         argument, create fname from it.
6084         (enlarge_archive): Honour output_prefix.
6085         (open_archive): Likewise.
6086
6087 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6088
6089         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6090         too many stpcpy macros.
6091
6092 2002-04-26  Bruno Haible  <bruno@clisp.org>
6093
6094         * locale/programs/ld-collate.c (collate_read): Cast first argument
6095         for "%.*s" to int.
6096
6097 2002-04-26  Bruno Haible  <bruno@clisp.org>
6098
6099         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6100         __dcngettext_internal): New declarations.
6101         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6102         attribute declarations.
6103
6104 2002-04-30  Roland McGrath  <roland@frob.com>
6105
6106         Removed old GNU stdio implementation; GNU libio is now the only option.
6107         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6108         Define USE_IN_LIBIO unconditionally.
6109         * configure: Regenerated.
6110         * Makeconfig (stdio): Set to libio by default.
6111         * config.make.in (stdio): Variable removed.
6112         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6113         * sysdeps/unix/sysv/linux/configure: Regenerated.
6114         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6115         * sysdeps/mach/hurd/configure: Regenerated.
6116         * stdio/.cvsignore: File removed.
6117         * stdio/Makefile: File removed.
6118         * stdio/Versions: File removed.
6119         * stdio/__fbufsize.c: File removed.
6120         * stdio/__flbf.c: File removed.
6121         * stdio/__fpending.c: File removed.
6122         * stdio/__fpurge.c: File removed.
6123         * stdio/__freadable.c: File removed.
6124         * stdio/__freading.c: File removed.
6125         * stdio/__fsetlocking.c: File removed.
6126         * stdio/__fwritable.c: File removed.
6127         * stdio/__fwriting.c: File removed.
6128         * stdio/clearerr.c: File removed.
6129         * stdio/fclose.c: File removed.
6130         * stdio/fcloseall.c: File removed.
6131         * stdio/feof.c: File removed.
6132         * stdio/ferror.c: File removed.
6133         * stdio/fflush.c: File removed.
6134         * stdio/fgetc.c: File removed.
6135         * stdio/fgetpos.c: File removed.
6136         * stdio/fgets.c: File removed.
6137         * stdio/fileno.c: File removed.
6138         * stdio/fmemopen.c: File removed.
6139         * stdio/fopen.c: File removed.
6140         * stdio/fopncook.c: File removed.
6141         * stdio/fputc.c: File removed.
6142         * stdio/fputs.c: File removed.
6143         * stdio/fread.c: File removed.
6144         * stdio/freopen.c: File removed.
6145         * stdio/fseek.c: File removed.
6146         * stdio/fsetpos.c: File removed.
6147         * stdio/ftell.c: File removed.
6148         * stdio/fwrite.c: File removed.
6149         * stdio/getc.c: File removed.
6150         * stdio/getchar.c: File removed.
6151         * stdio/getdelim.c: File removed.
6152         * stdio/gets.c: File removed.
6153         * stdio/glue.c: File removed.
6154         * stdio/internals.c: File removed.
6155         * stdio/linewrap.c: File removed.
6156         * stdio/linewrap.h: File removed.
6157         * stdio/memstream.c: File removed.
6158         * stdio/newstream.c: File removed.
6159         * stdio/obstream.c: File removed.
6160         * stdio/putc.c: File removed.
6161         * stdio/putchar.c: File removed.
6162         * stdio/puts.c: File removed.
6163         * stdio/rewind.c: File removed.
6164         * stdio/setbuf.c: File removed.
6165         * stdio/setbuffer.c: File removed.
6166         * stdio/setlinebuf.c: File removed.
6167         * stdio/setvbuf.c: File removed.
6168         * stdio/stdio.h: File removed.
6169         * stdio/ungetc.c: File removed.
6170         * stdio/vasprintf.c: File removed.
6171         * stdio/vscanf.c: File removed.
6172         * stdio/vsnprintf.c: File removed.
6173         * stdio/vsprintf.c: File removed.
6174         * stdio/vsscanf.c: File removed.
6175         * sysdeps/generic/defs.c: File removed.
6176         * sysdeps/generic/fdopen.c: File removed.
6177         * sysdeps/generic/pipestream.c: File removed.
6178         * sysdeps/generic/stdio_init.c: File removed.
6179         * sysdeps/generic/sysd-stdio.c: File removed.
6180         * sysdeps/generic/vdprintf.c: File removed.
6181         * sysdeps/mach/hurd/defs.c: File removed.
6182         * sysdeps/mach/hurd/fdopen.c: File removed.
6183         * sysdeps/mach/hurd/pipestream.c: File removed.
6184         * sysdeps/mach/hurd/stdio_init.c: File removed.
6185         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6186         * sysdeps/mach/hurd/vdprintf.c: File removed.
6187         * sysdeps/posix/defs.c: File removed.
6188         * sysdeps/posix/fdopen.c: File removed.
6189         * sysdeps/posix/pipestream.c: File removed.
6190         * sysdeps/posix/stdio_init.c: File removed.
6191         * sysdeps/posix/vdprintf.c: File removed.
6192         * sysdeps/unix/pipestream.c: File removed.
6193         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6194         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6195         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6196
6197 2002-04-29  Roland McGrath  <roland@frob.com>
6198
6199         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6200
6201 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6202
6203         * sysdeps/generic/tls.h: Describe what must be defined.
6204
6205         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6206         glob_in_dir [PR libc/3385].
6207         * posix/globtest.sh: Add test case.
6208
6209         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6210         //TRANSLIT twice.
6211
6212 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6213
6214         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6215         _internal symbol handling.
6216         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6217
6218 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6219
6220         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6221         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6222
6223 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6224
6225         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6226         not _LIBC and RE_ENABLE_I18N.
6227         (build_range_exp): Implement for not _LIBC.
6228         (build_collating_symbol): Likewise.
6229         (parse_bracket_exp): Unify redundant error handlings.
6230         Don't erase mbcset for non matching list in multibyte envs.
6231         (build_word_op): Add '_' to matching list for \w operator.
6232         * posix/regex_internal.c (re_string_construct): Invoke
6233         build_upper_buffer in case of not RE_ENABLE_I18N.
6234         (re_string_reconstruct): Don't touch cur_state in case of not
6235         RE_ENABLE_I18N.
6236         * posix/regex_internal.h (attribute_hidden): New macro in case of
6237         not _LIBC.
6238         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6239         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6240         RE_ENABLE_I18N.
6241         (transit_state_mb): Likewise.
6242         (check_node_accept_bytes): Implement the code evaluating range
6243         expression in case of not _LIBC.
6244         (find_collation_sequence_value): Hide in case of not _LIBC.
6245
6246 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6247
6248         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6249         i386/semctl.c.
6250         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6251         be used.
6252
6253 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6254
6255         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6256
6257         * sysdeps/ia64/strncpy.S: Fix recovery code.
6258         Patch by David Mosberger <davidm@hpl.hp.com>.
6259
6260 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6261
6262         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6263         GLIBC_2.2.6.
6264
6265 2002-04-14  Bruno Haible  <bruno@clisp.org>
6266
6267         * posix/regex.c (re_max_failures): Add back symbol for binary
6268         compatibility.
6269
6270 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6271
6272         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6273         of buffer building functions.
6274         * posix/regex_internal.c (re_string_allocate): New function.
6275         (re_string_realloc_buffers): New function.
6276         (re_string_skip_chars): New function.
6277         (re_string_reconstruct): New function.
6278         (re_string_construct): Adapt it to new interface of buffer building
6279         functions.
6280         (re_string_construct_common): Likewise.
6281         (build_wcs_buffer): Likewise.
6282         (build_wcs_upper_buffer): Likewise.
6283         (build_upper_buffer): Likewise.
6284         (re_string_translate_buffer): Likewise.
6285         (re_string_context_at): Adapt it to variable length buffers.
6286         * posix/regex_internal.h (re_string_t): Add new fields to handle
6287         variable length buffers.
6288         (re_match_context_t): Likewise.
6289         * posix/regexec.c (re_search_internal): Adapt it to new interface
6290         of re_string_t and re_match_context_t.
6291         (acquire_init_state_context): Likewise.
6292         (check_matching): Likewise.
6293         (check_halt_state_context): Likewise.
6294         (proceed_next_node): Likewise.
6295         (set_regs): Likewise.
6296         (sift_states_backward): Likewise.
6297         (clean_state_log_if_need): Likewise.
6298         (sift_states_iter_mb): Likewise.
6299         (sift_states_iter_bkref): Likewise.
6300         (add_epsilon_backreference): Likewise.
6301         (transit_state): Likewise.
6302         (transit_state_sb): Likewise.
6303         (transit_state_mb): Likewise.
6304         (transit_state_bkref): Likewise.
6305         (transit_state_bkref_loop): Likewise.
6306         (check_node_accept): Likewise.
6307         (match_ctx_init): Likewise.
6308         (extend_buffers): New function.
6309
6310 2002-04-21  Bruno Haible  <bruno@clisp.org>
6311
6312         * iconvdata/tst-table.sh: For the second check, use the truncated
6313         GB18030 charmap table, like for the first check.
6314
6315 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6316
6317         * elf/dl-load.c (open_verify): Correct __lseek parameters.
6318         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6319
6320 2002-04-23  H.J. Lu  <hjl@gnu.org>
6321
6322         * include/math.h (isfinite): Fix a typo.
6323
6324 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6325
6326         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6327         which is created by the test suite.
6328
6329 2002-04-20  Bruno Haible  <bruno@clisp.org>
6330
6331         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6332         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6333
6334 2002-04-20  Bruno Haible  <bruno@clisp.org>
6335
6336         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6337         to avoid gcc warning.
6338
6339 2002-04-20  Bruno Haible  <bruno@clisp.org>
6340
6341         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6342         of data->__statep->__count.
6343
6344 2002-04-20  Bruno Haible  <bruno@clisp.org>
6345
6346         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6347         tag characters.
6348         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6349
6350 2002-04-24  Roland McGrath  <roland@frob.com>
6351
6352         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6353         use END macro instead of our own .end directive.
6354         Use `callsys' insn mnemonic instead of `call_pal'.
6355
6356         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6357
6358         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6359         macro; we need this for Hurd.
6360
6361         Log entry was missing for 2002/03/24 commit of rev 1.8,
6362         goes with 2002-03-17 changes.
6363         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6364         (sysdep_routines): Append ioperm here.
6365         (sysdep_headers): Append sys/io.h here.
6366
6367 2002-04-23  Roland McGrath  <roland@frob.com>
6368
6369         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6370         * sysdeps/mach/hurd/sendto.c: Likewise.
6371         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6372         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6373         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6374
6375 2002-04-22  Roland McGrath  <roland@frob.com>
6376
6377         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6378         failure from i386_io_perm_* RPCs to ENOSYS.
6379
6380 2002-04-22  Andreas Jaeger  <aj@suse.de>
6381
6382         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6383
6384         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6385
6386         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6387         register instead of destroying %rbx.
6388
6389 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
6390
6391         * string/string.h: Declare strerror_r also for XPG6.
6392
6393 2002-04-19  Roland McGrath  <roland@frob.com>
6394
6395         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6396
6397 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
6398
6399         * Makefile: Add handling of xtests and xcheck targets.
6400         * MakeTAGS: Likewise.
6401         * Makeconfig: Likewise.
6402         * Makerules: Likewise.
6403         * Rules: Likewise.
6404         * manual/Makefile: Likewise.
6405         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6406         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
6407
6408 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
6409
6410         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6411         authnone_private_s.
6412         * sunrpc/auth_none.c: Include bits/libc-lock.h.
6413         Delete #ifdef _RPC_THREAD_SAFE_ block.
6414         (authnone_private): Make a struct, not a pointer to struct.
6415         (authnone_private_guard): New once-control variable.
6416         (authnone_create_once): New function, split out of
6417         authnone_create.  No need to allocate memory.
6418         (authnone_create): Just call authnone_create_once via
6419         __libc_once, then return &authnone_private->no_client.
6420         (authnone_marshal): Access private data via CLIENT argument,
6421         not authnone_private pointer.
6422         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6423         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6424         authnone_private_s.
6425
6426 2002-04-12  H.J. Lu  <hjl@gnu.org>
6427
6428         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6429
6430 2002-04-18  Bruno Haible  <bruno@clisp.org>
6431
6432         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6433         FROM_DIRECTION): Make the FROM direction stateless.
6434         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6435         FROM_DIRECTION): Likewise.
6436
6437 2002-04-15  Bruno Haible  <bruno@clisp.org>
6438
6439         * iconvdata/JISX0213.TXT: New file.
6440         * iconvdata/jisx0213.h: New file.
6441         * iconvdata/jisx0213.c: New file.
6442         * iconvdata/euc-jisx0213.c: New file.
6443         * iconvdata/shift_jisx0213.c: New file.
6444         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6445         * iconvdata/EUC-JISX0213.precomposed: New file.
6446         * iconvdata/SHIFT_JISX0213.precomposed: New file.
6447         * iconvdata/SHIFT_JISX0213.irreversible: New file.
6448         * iconvdata/tst-table-to.c (main): Make it work for encodings for
6449         which the "to" direction is stateful.
6450         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6451         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6452         SHIFT_JISX0213.
6453         (libJISX0213-routines): New variable.
6454         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6455         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6456         (LDFLAGS-libJISX0213.so): New variable.
6457         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6458         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6459         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6460
6461 2002-04-15  Bruno Haible  <bruno@clisp.org>
6462
6463         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6464         uint32_t.  Update to Unicode 3.2.
6465         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6466         (BODY for TO_LOOP): Handle the ASCII range specially.
6467         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6468         * iconvdata/testdata/BIG5HKSCS: Remove a character.
6469         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6470
6471 2002-04-15  Bruno Haible  <bruno@clisp.org>
6472
6473         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6474         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6475
6476 2002-04-15  Bruno Haible  <bruno@clisp.org>
6477
6478         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6479         (ucs4_to_cns11643): Update.
6480         * iconvdata/cns11643.c: Update to Unicode 3.2.
6481         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6482         __cns11643_from_ucs4p2_tab): Regenerated.
6483         (__cns11643_from_ucs4p2c_tab): New array.
6484         * iconvdata/cvs11643l1.c: Update comments.
6485         * iconvdata/EUC-TW.irreversible: Remove two entries.
6486
6487 2002-04-15  Bruno Haible  <bruno@clisp.org>
6488
6489         * locale/C-translit.h.in: Update to Unicode 3.2.
6490         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6491         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6492
6493 2002-04-15  Bruno Haible  <bruno@clisp.org>
6494
6495         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6496         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6497
6498 2002-04-15  Bruno Haible  <bruno@clisp.org>
6499
6500         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6501         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6502         always one byte, not 0 bytes in some cases and 2 bytes in others.
6503
6504         * iconvdata/tst-table-from.c (main): Correct the usage message.
6505
6506 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6507
6508         * posix/regcomp.c (parse_expression): Fix incorrect error code.
6509         (parse_dup_op): Fix error handling like "a{}".
6510         (parse_bracket_exp): Add error handling.
6511         (fetch_number): Add error handling for "a{<very_large_number>}".
6512
6513 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6514
6515         * posix/regcomp.c (parse_bracket_symbol): Add error handling
6516         in case that the symbol name is too long.
6517         (build_charclass): Handle [:lower:]/[:uppper:] correctly
6518         in case of REG_ICASE.
6519
6520 2002-04-19  Andreas Jaeger  <aj@suse.de>
6521
6522         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6523         <hartvige@mips.com>.
6524
6525 2002-04-15  H.J. Lu  <hjl@gnu.org>
6526
6527         * include/math.h (__finitel_internal): Declare only if
6528         __NO_LONG_DOUBLE_MATH is not defined.
6529         (__isinfl_internal): Likewise.
6530         (__isnanl_internal): Likewise.
6531
6532         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6533         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6534         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6535         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6536         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6537         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6538         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6539
6540         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6541         __fcntl_internal.
6542
6543         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6544         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6545
6546 2002-04-15  Bruno Haible  <bruno@clisp.org>
6547
6548         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6549         (BODY for TO_LOOP): Likewise.
6550         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6551         * iconvdata/tst-table.sh: Add support for encodings which contain
6552         precomposed Unicode characters, known to the iconv converter in both
6553         directions but not listed in the charmap.
6554         * iconvdata/IBM856.irreversible: New file.
6555         * iconvdata/IBM922.irreversible: New file.
6556         * iconvdata/IBM1132.irreversible: New file.
6557         * iconvdata/IBM1133.irreversible: New file.
6558         * iconvdata/IBM1160.irreversible: New file.
6559         * iconvdata/IBM1161.irreversible: New file.
6560         * iconvdata/IBM1163.irreversible: New file.
6561         * iconvdata/IBM1164.irreversible: New file.
6562         * iconvdata/ARMSCII-8.irreversible: New file.
6563         * iconvdata/TCVN5712-1.precomposed: New file.
6564         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6565         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6566         ARMSCII-8, TCVN5712-1.
6567         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6568         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6569         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6570         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6571
6572 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6573
6574         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
6575         for EVENING69.  Include offsets in TZ environment variable.
6576
6577 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
6578
6579         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6580         avoid compiler warnings.
6581
6582         * locale/programs/localedef.c (main): Always call
6583         construct_output_path.
6584
6585         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6586
6587         * locale/programs/locfile.c (to_archive): New variable.  To collect
6588         data which has to be added to the locale archive.
6589         (write_all_categories): Take new third parameter with locale name.
6590         Unless no_archive flag set add new locale data to the archive
6591         (write_locale_data): Unless no-archive flag set store generated data
6592         in to_archive data structure instead of generation output file.
6593         Add new parameter with locale category index.
6594         * locale/programs/locfile.h: Add new parameters in declaractions of
6595         write_all_categories and write_locale_data.
6596         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6597         --add-to-archive, and --delete-from-archive options.  Pass extra
6598         parameter to write_all_categories.
6599         * locale/programs/localedef.h: Add prototypes for functions in
6600         locarchive.c.
6601         * locale/locarchive.h: New file.
6602         * locale/programs/locarchive.c: New file.
6603         * locale/Makefile (distribute): Add programs/locarchive.c and
6604         locarchive.h.
6605         (localedef-modules): Add md5 and locarchive.
6606         Add vpath to crypt subdir for md5.c.
6607
6608         * locale/programs/ld-address.c: Pass locale category ID as new second
6609         parameter to write_locale_data.
6610         * locale/programs/ld-collate.c: Likewise.
6611         * locale/programs/ld-ctype.c: Likewise.
6612         * locale/programs/ld-identification.c: Likewise.
6613         * locale/programs/ld-measurement.c: Likewise.
6614         * locale/programs/ld-messages.c: Likewise.
6615         * locale/programs/ld-monetary.c: Likewise.
6616         * locale/programs/ld-name.c: Likewise.
6617         * locale/programs/ld-numeric.c: Likewise.
6618         * locale/programs/ld-paper.c: Likewise.
6619         * locale/programs/ld-telephone.c: Likewise.
6620         * locale/programs/ld-time.c: Likewise.
6621
6622         * locale/simple-hash.c: Move compute_hashval function from here...
6623         * locale/hashval.h: ...to here.  New file.
6624         * locale/simple-hash.h: Add prototype for compute_hashval.
6625
6626         * include/libintl.h: Minor cleanups.
6627
6628 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
6629
6630         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6631
6632 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
6633
6634         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
6635
6636 2002-04-14  Bruno Haible  <bruno@clisp.org>
6637
6638         * locale/programs/charmap.c (charmap_read): Don't access result if
6639         result == NULL.
6640
6641 2002-02-17  Andreas Schwab  <schwab@suse.de>
6642
6643         * elf/reldep7.c: New file.
6644         * elf/reldep7mod1.c: New file.
6645         * elf/reldep7mod2.c: New file.
6646         * elf/Makefile: Add rules to build and run reldep7.
6647
6648 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
6649
6650         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6651         the end of the function.  Pass original flags to recursive call if
6652         add_dependency failed.
6653         (_dl_lookup_versioned_symbol): Likewise.
6654
6655 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
6656
6657         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6658         early, but check whether it overflowed afterwards.
6659         * time/tst-mktime.c (main): Add new tests.
6660
6661 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
6662
6663         * debug/xtrace.sh: Fix program name in help message.
6664         Patch by Roger Luethi <rl@hellgate.ch>.
6665
6666         * include/sys/stat.h: Add prototypes for __lxstat_internal and
6667         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
6668         NOT_IN_libc.
6669         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6670         * sysdeps/mach/hurd/lxstat.c: Likewise.
6671         * sysdeps/unix/common/lxstat.c: Likewise.
6672         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6673         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6674         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6675         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6676         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6677         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6678         * sysdeps/mach/hurd/lxstat64.c: Likewise.
6679         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6680         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6681
6682         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6683         prototypes.  Add __mbrlen and __mbrtowc macros.
6684         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6685         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6686
6687         * include/unistd.h: Add prototype for __write_internal and add
6688         __libc_write macro is SHARED.
6689         * sysdeps/generic/write.c: Use INTDEF for __write.
6690         * sysdeps/mach/hurd/write.c: Likewise.
6691         * sysdeps/unix/sysv/aix/write.c: Likewise.
6692         * sysdeps/unix/syscalls.list: Add __libc_write alias.
6693
6694         * assert/assert.c: Replace STR_N_SIZE with something usable in
6695         macro arguments.
6696         * assert/assert-perr.c: Likewise.
6697
6698         * include/sys/socket.h: Declare __libc_sa_len_internal and define
6699         SA_LEN macro to use it if not NOT_IN_libc.
6700         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6701
6702         * include/fcntl.h: Declare __open_internal and define __open and
6703         __libc_open macros if not NOT_IN_libc.
6704         * sysdeps/generic/open.c: Use INTDEF for __open.
6705         * sysdeps/mach/hurd/open.c: Likewise.
6706         * sysdeps/unix/sysv/aix/open.c: Likewise.
6707         * sysdeps/unix/syscalls.list: Add __open_internal alias.
6708
6709         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6710         has correct number.
6711
6712         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6713         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6714         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6715         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6716
6717         * include/wctype.h: Declare __iswalpha_l_internal,
6718         __iswdigit_l_internal, __iswspace_l_internal,
6719         __iswxdigit_l_internal, and __iswctype_internal.  Define
6720         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6721         __iswxdigit_l macros if not NOT_IN_libc.
6722         * wctype/iswctype.c: Use INTDEF for __iswctype.
6723         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6724
6725         * include/math.h: Declare __isinf_internal, __isinfl_internal,
6726         __isnan_internal, and __isnanl_internal.
6727         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6728         __isnan, and __isnanl.
6729         * stdio-common/printf_size.c: Likewise.
6730         * sysdeps/generic/printf_fphex.c: Likewise.
6731         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6732         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6733         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6734         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6735         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6736         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6737         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6738         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6739         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6740         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6741         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6742         * sysdeps/m68k/s_isinfl.c: Likewise.
6743         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6744         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6745
6746         * include/sys/time.h: Declare __gettimeofday_internal and define
6747         __gettimeofday macro if not NOT_IN_libc.
6748         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6749         * sysdeps/mach/gettimeofday.c: Likewise.
6750         * sysdeps/posix/gettimeofday.c: Likewise.
6751         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6752         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6753         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6754         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6755
6756         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6757         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6758         Remove __lstat and __fstat inline functions.
6759         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6760         * sysdeps/mach/hurd/fxstat.c: Likewise.
6761         * sysdeps/unix/fxstat.c: Likewise.
6762         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6763         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6764         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6765         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6766         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6767         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6768         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6769         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6770         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6771
6772         * include/unistd.h: Declare __getpid_internal and define
6773         __getpid macro if not NOT_IN_libc.
6774         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6775         * sysdeps/generic/getpid.c: Likewise.
6776         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6777         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6778
6779         * include/unistd.h: Declare __getpgid_internal and define
6780         __getpgid macro if not NOT_IN_libc.
6781         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6782         * sysdeps/mach/hurd/getpgid.c: Likewise.
6783         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6784         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6785         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6786         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6787
6788         * include/unistd.h: Declare __getpagesize_internal and define
6789         __getpagesize macro if not NOT_IN_libc.
6790         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6791         __getpagesize.
6792         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6793         * sysdeps/mach/getpagesize.c: Likewise.
6794         * sysdeps/posix/getpagesize.c: Likewise.
6795         * sysdeps/unix/getpagesize.c: Likewise.
6796         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6797         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6798         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6799         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
6800
6801 2002-04-13  Andreas Jaeger  <aj@suse.de>
6802
6803         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
6804         as clobber to reduce register pressure.
6805         (__strpbrk_cg): Likewise.
6806         (__mempcpy_by4): Likewise.
6807         (__strstr_cg): Likewise.
6808         Add prototype for __memrchr.
6809
6810 2002-04-13  Andreas Schwab  <schwab@suse.de>
6811
6812         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
6813         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6814         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6815
6816 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
6817
6818         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
6819         check whether the caller prefers getting the most recent version of
6820         a symbol of the earliest version.
6821         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
6822         _dl_do_lookup to also take the new parameter and pass it on.
6823         Change 'explicit' parameter of _dl_lookup_symbol and
6824         _dl_lookup_versioned_symbol to flags.  Adjust tests.
6825         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6826         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
6827         _dl_lookup_versioned_symbol.
6828         * elf/dl-reloc.c: Likewise.
6829         * elf/dl-runtime.c: Likewise.
6830         * elf/dl-sym.c: Likewise.
6831         * sysdeps/mips/dl-machine.h: Likewise.
6832
6833 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6834
6835         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
6836         in a token.
6837         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
6838
6839 2002-04-10  Andreas Jaeger  <aj@suse.de>
6840
6841         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
6842
6843         * include/argz.h: Remove extra char from last patch.
6844
6845 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
6846
6847         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
6848         * sysdeps/unix/sysv/aix/chown.c: Likewise.
6849         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
6850         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
6851         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
6852         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
6853         __chown_internal.
6854         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6855
6856         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
6857         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
6858         * intl/ngettext.c: Likewise.
6859
6860         * include/sys/socket.h: Declare __connect_internal and define
6861         __connect macro if not NOT_IN_libc.
6862         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
6863         * sysdeps/unix/sysv/aix/connect.c: Likewise.
6864         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
6865
6866         * include/unistd.h: Declare __close_internal and define __close macro
6867         if not NOT_IN_libc.
6868         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
6869         WJUMP3): Add extra parenthesis to avoid expanding element names with
6870         macors like __close.
6871         * sysdeps/unix/syscalls.list: Add __close_internal alias.
6872
6873         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
6874         if not NOT_IN_libc.
6875         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
6876         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
6877         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
6878
6879         * include/unistd.h: Declare __fork_internal and define __fork macro
6880         if not NOT_IN_libc.
6881         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
6882         * sysdeps/unix/sysv/aix/fork.c: Likewise.
6883         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
6884
6885         * include/stdio_ext.h: Declare __fsetlocking_internal and define
6886         __fsetlocking macro to use it if not NOT_IN_libc.
6887         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
6888
6889         * libio/__fbufsize.c: Correct copyright.
6890         * libio/__flbf.c: Likewise.
6891         * libio/__fpending.c: Likewise.
6892         * libio/__fpurge.c: Likewise.
6893         * libio/__freadable.c: Likewise.
6894         * libio/__freading.c: Likewise.
6895         * libio/__fsetlocking.c: Likewise.
6896         * libio/__fwritable.c: Likewise.
6897         * libio/__fwriting.c: Likewise.
6898
6899         * include/stdio.h: Declare __asprintf_internal and define __asprintf
6900         macro to use it if not NOT_IN_libc.
6901         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
6902
6903         * include/mntent.h: Declare __setmntent_internal,
6904         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
6905         __getmntent_r, and __endmntent macros to use these functions if not
6906         NOT_IN_libc.
6907         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
6908         __endmntent.
6909
6910         * include/math.h: Declare __finite_internal, __finitef_internal, and
6911         __finitel_internal.  Redefine isfinite macro if in libc or libm using
6912         these functions.
6913         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
6914         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
6915         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
6916         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
6917         * sysdeps/i386/fpu/s_finitef.S: Likewise.
6918         * sysdeps/i386/fpu/s_finitel.S: Likewise.
6919         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
6920         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
6921         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
6922         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
6923
6924         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
6925         to use this function if not NOT_IN_libc.
6926         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
6927         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
6928         * sysdeps/mach/hurd/fcntl.c: Likewise.
6929         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6930         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6931
6932         * include/argz.h: Declare __argz_count_internal and
6933         __argz_stringify_internal.
6934         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
6935         __argz_stringify.
6936         * string/argz-count.c: Use INTDEF for __argz_count.
6937         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
6938
6939         * include/stdlib.h: Declare __cxa_atexit_internal and define
6940         __cxa_atexit macro if not NOT_IN_libc.
6941         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
6942         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
6943
6944         * assert/assert.c: Use INTDEF for __assert_fail.
6945         * assert/__assert.c: Use INTUSE for call to __assert_fail.
6946         * include/assert.h: Declare __assert_fail_internal.
6947
6948         * extra-lib.mk: Mark assignment to lib with override.
6949
6950 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6951
6952         * Makerules: Use cppflags-iterator.mk to add defines for all test
6953         source files.
6954
6955 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6956
6957         * elf/elf.h: Define R_SH_TLS_xxx macros.
6958         * elf/rtld.c: Remove an extra parenthesis.
6959         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
6960         TLS_GD macros.
6961         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
6962         * sysdeps/sh/dl-lookupcfg.h: New file.
6963         * sysdeps/sh/dl-tls.h: New file.
6964         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
6965         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
6966         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
6967         R_SH_TLS_TPOFF32 relocations.
6968
6969 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6970
6971         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
6972         of NOT_IN_LIBC.
6973         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
6974         * include/stdlib.h: Likewise.
6975
6976 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
6977
6978         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
6979         instead of _RTLD_LOCAL.
6980         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
6981         * include/unistd.h: Likewise.
6982         * sysdeps/generic/ldsodefs.h: Likewise.
6983
6984         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
6985         if in libc or ld.so.
6986
6987 2002-04-08  Andreas Jaeger  <aj@suse.de>
6988
6989         * elf/cache.c (print_entry): Support x86-64.
6990
6991 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6992
6993         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
6994         with one accessing the locale data structures directly.
6995         * stdio-common/printf-prs.c: Include localeinfo.h for new
6996         MB_CUR_MAX definition.
6997
6998         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
6999         is the name of the source file without extension.
7000         * Makefile (distribute): Add cppflags-iterator.mk.
7001         * cppflags-iterator.mk: New file.
7002         * extra-lib.mk: For the sources of the library run
7003         cppflags-iterator.mk.
7004
7005         * include/libintl.h: Declare __dcgettext_internal and
7006         _libc_intl_domainname_internal.  Define __dcgettext using these
7007         two symbols if used in libc itself.
7008         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7009         _libc_intl_domainname_internal.
7010         * argp/argp-parse.c: Likewise.
7011         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7012         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7013         * intl/gettext.c: Likewise.
7014         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7015         alias.
7016         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7017         __dcgettext.
7018         * posix/regex_internal.c (gettext): Likewise.
7019
7020 2002-04-08  Andreas Jaeger  <aj@suse.de>
7021
7022         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7023
7024         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7025         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7026         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7027         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7028         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7029         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7030
7031 2002-04-08  Roland McGrath  <roland@frob.com>
7032
7033         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7034         widening __hurd_fail value.
7035
7036 2002-04-07  Roland McGrath  <roland@frob.com>
7037
7038         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7039         <mach/machine/alpha_instruction.h>.
7040         (_hurd_setup_sighandler): Take proper arguments for current decls.
7041         Update code to use _hurdsig_catch_fault.
7042         Use `callsys' instruction instead of `call_pal'.
7043         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7044
7045         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7046         (ALIGN, at, AT, fp): New macros.
7047
7048 2002-04-06  Roland McGrath  <roland@frob.com>
7049
7050         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7051
7052         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7053         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7054
7055         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7056         * sysdeps/mach/hurd/connect.c: Likewise.
7057         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7058         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7059
7060         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7061         __msg_sig_post RPC.
7062
7063         * hurd/catch-exc.c: Use integer_t instead of int.
7064         * hurd/hurdfault.c: Likewise.
7065
7066         * sysdeps/mach/hurd/alpha/exc2signal.c
7067         (_hurd_exception2signal): Rewritten.
7068         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7069         (_hurd_longjmp_thread_state): Rewritten.
7070
7071 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7072
7073         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7074         DB_LOOKUP_FCT prototype.
7075         * nss/getXXent_r.c: Likewise.
7076         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7077         * inet/getaliasname_r.c: Likewise.
7078         * inet/getnetbyad_r.c: Likewise.
7079         * inet/getnetbynm_r.c: Likewise.
7080         * inet/getnetent_r.c: Likewise.
7081         * inet/getproto_r.c: Likewise.
7082         * inet/getprtent_r.c: Likewise.
7083         * inet/getprtname_r.c: Likewise.
7084         * inet/getrpcbyname_r.c: Likewise.
7085         * inet/getrpcbynumber_r.c: Likewise.
7086         * inet/getrpcent_r.c: Likewise.
7087         * inet/getservent_r.c: Likewise.
7088         * inet/getsrvbynm_r.c: Likewise.
7089         * inet/getsrvbypt_r.c: Likewise.
7090         * shadow/getspent_r.c: Likewise.
7091         * shadow/getspnam_r.c: Likewise.
7092
7093         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7094
7095         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7096         Use i686-friendly PIC code.
7097         * sysdeps/i386/elf/setjmp.S: Likewise.
7098
7099         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7100
7101         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7102         list.
7103         * elf/Versions: Remove it here.
7104
7105 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7106
7107         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7108         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7109
7110 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7111
7112         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7113         test just before the test runs.
7114         * intl/tst-translit.sh: Likewise.
7115         * intl/tst-codeset.sh: Likewise.
7116
7117         * timezone/zic.c: Update from tzcode2002c.
7118         * timezone/asia: Update from tzdata2002c.
7119         * timezone/backward: Likewise.
7120         * timezone/europe: Likewise.
7121         * timezone/northamerica: Likewise.
7122         * timezone/northamerica: Likewise.
7123         * timezone/northamerica: Likewise.
7124         * timezone/southamerica: Likewise.
7125         * timezone/zone.tab: Likewise.
7126
7127 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7128
7129         * sysdeps/generic/brk.c (__curbrk): Declare.
7130         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7131         * sysdeps/generic/dl-sbrk.c: Likewise.
7132         * sysdeps/unix/arm/dl-brk.S: New file.
7133         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7134         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7135         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7136         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7137         * sysdeps/unix/i386/dl-brk.S: New file.
7138         * sysdeps/unix/mips/dl-brk.S: New file.
7139         * sysdeps/unix/sparc/dl-brk.S: New file.
7140         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7141         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7142         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7143         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7144
7145 2002-04-03  Andreas Schwab  <schwab@suse.de>
7146
7147         * Makefile (headers): Add gnu/lib-names.h here instead of
7148         install-others.
7149         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7150         installation rule.
7151         (install-headers): Add dependency on install-headers-nosubdir.
7152         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7153         instead of install-others.
7154         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7155         installation rule.
7156
7157 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7158
7159         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7160         Reported by Sam Roberts <sroberts@uniserve.com>.
7161
7162 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7163
7164         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7165         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7166         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7167         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7168
7169 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7170
7171         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7172         (RTLD_START): Ditto.
7173         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7174         dependency violation.
7175
7176 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7177
7178         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7179         all variable declarations.
7180
7181 2002-04-04  Andreas Schwab  <schwab@suse.de>
7182
7183         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7184
7185 2002-04-04  Andreas Jaeger  <aj@suse.de>
7186
7187         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7188         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7189
7190         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7191         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7192         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7193
7194         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7195
7196         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7197
7198         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7199         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7200
7201         * configure.in: Handle all mips entries the same.
7202
7203         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7204         * sysdeps/mips/mips3/*: Likewise.
7205         * sysdeps/mips/p40/bits/endian.h: Likewise.
7206
7207 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7208
7209         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7210         non-null result [PR libc/2600].
7211
7212         * misc/tst-dirname.c: Add more tests.
7213
7214 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7215
7216         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7217         define a code_set_name provide one based on the filename.
7218
7219         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7220
7221 2001-12-28  Andreas Jaeger  <aj@suse.de>
7222
7223         * time/mktime.c (__mktime_internal): Check for year < 70
7224         [PR libc/2738].
7225
7226 2002-04-03  Andreas Jaeger  <aj@suse.de>
7227
7228         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7229         shmat.
7230         Reported by Andi Kleen <ak@suse.de>.
7231
7232 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7233
7234         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7235         * sysdeps/generic/w_lgammaf.c: Likewise.
7236         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7237
7238         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7239         Adjust for new output format of the backtrace functions.
7240
7241         * misc/syslog.c (vsyslog): Only use cleanup handler if
7242         _LIBC_REENTRANT is defined [PR libc/2924].
7243
7244         * libio/Makefile (tests): Add bug-ungetwc2.
7245         * libio/bug-ungetwc2.c: New file.
7246
7247         * manual/install.texi: Typographical and grammatical cleanup.
7248         Patch by Dennis Grace <dgrace@us.ibm.com>.
7249
7250         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7251         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7252
7253         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7254         always "&".  Adjust callers.
7255         Add "_" prefix to several generated definitions.
7256         Patch by paul@serice.net [PR libc/3158].
7257
7258 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7259
7260         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7261         size of _dl_arm_cap_flags.
7262         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7263
7264         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7265         Define as 8.
7266
7267 2002-03-22  H.J. Lu  <hjl@gnu.org>
7268
7269         * scripts/firstversions.awk: Check the first version.
7270
7271 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7272
7273         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7274         dependencies must be stable to work correctly.
7275         Reported by martin.lubich@datacon.at.
7276
7277         * libio/bug-ungetwc1.c: New file.
7278         * libio/Makefile (tests): Add bug-ungetwc1.
7279
7280         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7281         if stream was last used for writing.
7282
7283         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7284         number [PR libc/3111].
7285
7286         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7287         to ...
7288         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7289
7290 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7291
7292         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7293         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7294         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7295         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7296         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7297
7298 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7299
7300         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7301         dynamic tags.
7302
7303 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7304
7305         * sysdeps/i386/fpu/s_fabs.S: New file.
7306         * sysdeps/i386/fpu/s_fabsf.S: New file.
7307         * sysdeps/i386/fpu/s_fabsl.S: New file.
7308         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7309         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7310         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7311
7312 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7313
7314         * rt/tst-shm.c (do_test): Add one more test for size of shared
7315         memory object.
7316
7317 2002-03-29  Wolfram Gloger  <wg@malloc.de>
7318
7319         * malloc/malloc.c: Add short description and prototypes for
7320         malloc_get_state, malloc_set_state and posix_memalign, for
7321         consistency and to avoid warnings with -Wstrict-prototypes.
7322         Reported by Andreas Jaeger <aj@suse.de>.
7323
7324 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7325
7326         * po/gl.po: Update from translation team.
7327
7328 2002-03-31  Roland McGrath  <roland@frob.com>
7329
7330         * hurd/hurdselect.c (_hurd_select): Fix
7331         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7332         Use a union rather than casts to compare mach_msg_type_t as int.
7333
7334 2002-03-25  Roland McGrath  <roland@frob.com>
7335
7336         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7337         check off the end of NAME when it's shorter than 2 chars.
7338         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7339
7340 2002-03-17  Roland McGrath  <roland@frob.com>
7341
7342         * sysdeps/mach/hurd/i386/sys/io.h: New file.
7343         * sysdeps/mach/hurd/i386/ioperm.c: New file.
7344         * sysdeps/mach/hurd/i386/Dist: Add them.
7345         * sysdeps/mach/hurd/i386/Versions
7346         (libc: GLIBC_2.2.6): New set, add ioperm.
7347         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7348         (mach_interface_list): Check for mach_i386.defs.
7349         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7350         * sysdeps/mach/configure: Regenerated.
7351
7352 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
7353
7354         * po/fr.po: Update from translation team.
7355
7356 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7357
7358         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7359         getpriority from syscalls list.
7360
7361 2002-03-28  Andreas Jaeger  <aj@suse.de>
7362
7363         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7364         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7365         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7366         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7367
7368 2002-03-27  Andreas Jaeger  <aj@suse.de>
7369
7370         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7371         sigcontext): Follow further kernel change.
7372
7373         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7374         kernel change.
7375
7376         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7377         Change for struct sigcontext change.
7378
7379         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7380         Follow changes in struct sigcontext.
7381
7382         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7383         sysycall, use wrapper instead.
7384
7385 2002-03-26  Andreas Jaeger  <aj@suse.de>
7386
7387         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7388         read and write accesses as detailed as possible.
7389         (__memcpy_by2): Likewise.
7390         (__memcpy_g): Likewise.
7391         (memmove): Likewise.
7392         (memcmp): Likewise.
7393         (__memset_ccn_by4): Likewise.
7394         (__memset_ccn_by2): Likewise.
7395         (__memset_gcn_by4): Likewise.
7396         (__memset_gcn_by2): Likewise.
7397         (memchr): Likewise.
7398         (__memrchr): Likewise.
7399         (rawmemchr): Likewise.
7400         (__strlen_g): Likewise.
7401         (__strcpy_g): Likewise.
7402         (__mempcpy_by4): Likewise.
7403         (__mempcpy_by2): Likewise.
7404         (__mempcpy_byn): Likewise.
7405         (__stpcpy_g): Likewise.
7406         (__strncpy_by4): Likewise.
7407         (__strncpy_by2): Likewise.
7408         (__strncpy_byn): Likewise.
7409         (__strncpy_gg): Likewise.
7410         (__strcat_c): Likewise.
7411         (__strcat_g): Likewise.
7412         (__strncat_g): Likewise.
7413         (__strcmp_gg): Likewise.
7414         (__strncmp_g): Likewise.
7415         (__strchr_c): Likewise.
7416         (__strchr_g): Likewise.
7417         (__strchrnul_c): Likewise.
7418         (__strchrnul_g): Likewise.
7419         (__strrchr_c): Likewise.
7420         (__strrchr_g): Likewise.
7421         (__strrchr_c): Likewise.
7422         (__strrchr_g): Likewise.
7423         (__strcspn_c1): Likewise.
7424         (__strcspn_cg): Likewise.
7425         (__strcspn_g): Likewise.
7426         (__strcspn_g): Likewise.
7427         (__strspn_c1): Likewise.
7428         (__strspn_cg): Likewise.
7429         (__strspn_g): Likewise.
7430         (__strspn_g): Likewise.
7431         (__strpbrk_cg): Likewise.
7432         (__strpbrk_g): Likewise.
7433         (__strstr_cg): Likewise.
7434         (__strstr_g): Likewise.
7435
7436         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
7437         Michal Ludvig <mludvig@suse.cz>.
7438
7439         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7440         compatibilty, adjust for kernel changes.
7441
7442         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7443         sigcontext): Adjust for kernel changes.
7444
7445 2002-03-25  Andreas Jaeger  <aj@suse.de>
7446
7447         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7448         little endian.
7449         Reported by Artur Zaprzala <zybi@talex.com.pl>.
7450
7451 2002-03-24  Andreas Jaeger  <aj@suse.de>
7452
7453         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7454
7455         * stdio-common/tst-fdopen.c (main): Remove unused variable.
7456
7457         * iconv/tst-iconv3.c (main): Use correct printf strings.
7458
7459 2002-03-18  Roland McGrath  <roland@frob.com>
7460
7461         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7462         (CMGROUP_MAX): New macro.
7463
7464 2002-03-23  Roland McGrath  <roland@frob.com>
7465
7466         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7467         * sysdeps/posix/shm_unlink.c: Likewise.
7468
7469 2002-03-22  Roland McGrath  <roland@frob.com>
7470
7471         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7472         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7473         under --enable-libio.
7474         * sysdeps/mach/hurd/configure: Regenerated.
7475
7476 2002-03-23  Roland McGrath  <roland@frob.com>
7477
7478         * sysdeps/mach/hurd/i386/Makefile
7479         (sysdep_routines, shared-only-routines): Don't add framestate,
7480         reverting 2001-10-02 change.
7481         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7482         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7483         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7484         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7485         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7486         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7487         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7488         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7489         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7490         Do it here instead, only if [$(unwind-find-fde) = yes].
7491
7492 2002-03-23  Andreas Jaeger  <aj@suse.de>
7493
7494         * signal/signal.h: Fix typo. Patch by Steve Kemp
7495         <skx@tardis.ed.ac.uk>.
7496
7497 2002-03-22  Andreas Jaeger  <aj@suse.de>
7498
7499         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7500         getresuid.
7501
7502         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7503         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7504         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7505         user_fpregs_struct): Rename fwd.
7506
7507         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7508         Follow sigcontext changes.
7509
7510 2002-03-22  Andreas Jaeger  <aj@suse.de>
7511
7512         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
7513         changes for NaNs on MIPS.
7514         Patch by Hartvig Ekner <hartvige@mips.com>.
7515
7516 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
7517
7518         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7519         Use realloc if too large.
7520         (addgrbyid): Likewise.
7521         * nscd/hstcache.c (addhstbyname): Likewise.
7522         (addhstbyaddr): Likewise.
7523         (addhstbynamev6): Likewise.
7524         (addhstbyaddrv6): Likewise.
7525         * nscd/pwdcache.c (addpwbyname): Likewise.
7526         (addpwbyuid): Likewise.
7527
7528 2002-03-21  Andreas Jaeger  <aj@suse.de>
7529
7530         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7531         _fpstate): Add separate struct for x86-64.
7532
7533         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7534         user_fpregs_struct): Change member names to follow kernel.
7535
7536 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
7537
7538         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7539         Correctly close the UDP connection right away [PR libc/3120].
7540
7541 2002-03-20  Andreas Jaeger  <aj@suse.de>
7542
7543         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7544         user_fpregs_struct): Fix for changed kernel struct.
7545         (struct user_regs_struct): Likewise.
7546         (struct user): Likewise.
7547         Add 32-bit x86 compatibility.
7548
7549         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7550
7551 2002-03-19  Andreas Jaeger  <aj@suse.de>
7552
7553         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7554
7555 2002-03-18  Andreas Jaeger  <aj@suse.de>
7556
7557         * iconvdata/Makefile: Only run tests when shared libs are
7558         available.
7559
7560 2002-03-17  Andreas Jaeger  <aj@suse.de>
7561
7562         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7563
7564         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7565
7566         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7567         bits.
7568
7569         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7570         (CAUSE_SHIFT): New macro.
7571         Patch by Hartvig Ekner <hartvige@mips.com>.
7572
7573         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7574         * sysdeps/generic/unwind-pe.h: Likewise.
7575
7576         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7577         type to _IO_setb.
7578
7579         * libio/stdio.c (AL2): Define variant when visibility attribute is
7580         not supported.
7581
7582         * include/libc-symbols.h (_INTVARDEF): Define variant when
7583         visibility attribute is not supported.
7584
7585 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
7586
7587         * po/fr.po: Update from translation team.
7588
7589 2002-02-25  Bruno Haible  <bruno@clisp.org>
7590
7591         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7592
7593 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7594
7595         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7596         buffers if _IO_file_attach failed.
7597
7598         * libio/fileops.c (_IO_file_open): Close file descriptor if
7599         _IO_SEEKOFF call failed.
7600
7601 2002-03-15  H.J. Lu  <hjl@gnu.org>
7602             Ulrich Drepper  <drepper@redhat.com>
7603
7604         * configure.in: Check for availability of
7605         init_array/fini_array/preinit_array handling in binutils.
7606         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7607         * config.make.in (have-initfini-array): New variable.
7608
7609 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7610
7611         * stdio-common/tst-printf.c (main): Comment out one test which
7612         checked the compiler's ability to fold floating-point constants
7613         but not really printf.
7614         (rfg3): Make s const.
7615         * stdio-common/tst-printf.sh: Adjust for removed test.
7616
7617         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7618         internal function.  Adjust for internal_function calling convention.
7619         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7620         as internal_function.
7621
7622         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7623         hidden.
7624
7625         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7626         declaration and definition.
7627         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7628         declaration.
7629         * nss/getXXent_r.c: Likewise.
7630         * nss/nsswitch.h (db_lookup_function): Add internal_function to
7631         definition.
7632
7633         * include/time.h: Declare __localtime_r as hidden.
7634
7635         * include/aliases.h: Declare __getaliasent_r as hidden.
7636         * include/grp.h: Declare __getgrent_r as hidden.
7637         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7638         __getservent_r, and __getprotoent_r as hidden.
7639         * include/pwd.h: Declare __getpwent_r as hidden.
7640         * include/shadow.h: Declare __getspent_r as hidden.
7641         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7642
7643         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7644         and __gconv_transliterate as hidden.
7645         Add internal_function to __gconv_get_path declaration.
7646         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7647         definition.  Add attribute_hidden to __gconv_read_conf definition.
7648
7649 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
7650
7651         * elf/rtld.c: Declare _environ as hidden.
7652         * sysdeps/generic/dl-environ.c: Likewise.
7653         * sysdeps/generic/dl-sysdep.c: Likewise.
7654
7655         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7656         _dl_mcount_internal as hidden.
7657
7658         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7659         * sysdeps/generic/dl-brk.c: New file.
7660         * sysdeps/generic/dl-sbrk.c: New file.
7661         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7662         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7663
7664         * elf/dl-minimal.c (malloc): Declare _end as hidden.
7665         (__errno_location): New function.  Declare errno as hidden.
7666         * elf/rtld.c (_dl_argc): Define as hidden.
7667         (_dl_skip_args): Define as hidden.
7668         (_begin, _end): Declare as hidden.
7669         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7670         * sysdeps/generic/entry.h (_start): Declare as hidden.
7671         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7672         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7673         _dl_runtime_resolve and _dl_runtime_profile as hidden.
7674         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7675
7676 2002-03-14  Roland McGrath  <roland@frob.com>
7677
7678         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7679
7680         * Makeconfig (%.v.i, %.v): New implicit rules.
7681         (preprocess-versions): Variable removed.
7682         ($(common-objpfx)shlib-versions.v.i): New target giving just the
7683         shlib-versions input files as dependencies.
7684         ($(common-objpfx)soversions.i): Depend on that instead of the input
7685         files.  Use it as input instead of using a pipeline.
7686         (postclean-generated): Append soversions.i, shlib-versions.v, and
7687         shlib-versions.v.i here.
7688         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7689         the Versions.def input files as dependencies.
7690         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7691         ($(common-objpfx)Versions.all): Depend on that instead of the input
7692         files.  Use it as input instead of using a pipeline.
7693         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7694         (postclean-generated): Append those .v and .v.i files here.
7695
7696 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7697
7698         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7699         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7700         Remove.
7701
7702 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7703
7704         * sysdeps/generic/mp_clz_tab.c: New file.
7705         * sysdeps/i386/mp_clz_tab.c: New file.
7706         * sysdeps/hppa/mp_clz_tab.c: New file.
7707         * sysdeps/powerpc/mp_clz_tab.c: New file.
7708         * stdlib/Makefile (aux): Revert last patch.
7709         * math/Makefile (gmp-objs): Likewise.
7710
7711 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7712
7713         * time/strftime.c: Comment fixes for references to obsolescent
7714         standards, In most cases the simplest fix is to remove the
7715         confusing comments.  Cross-referencing all the standards properly
7716         is a bit of a pain, and it should be enough to put that info in
7717         the documentation as I did in my recent time.texi patch.
7718
7719 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7720
7721         * manual/time.texi (Formatting Calendar Time):
7722         ISO C99 also specifies the E and O modifiers.
7723         %P is a GNU extension, and is not in ISO C99.
7724         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7725         %T is also in ISO C99.
7726         The RFC 822 example is not valid in arbitrary locales.
7727         Reword the POSIX.2 wording slightly, to make it a bit clearer
7728         that POSIX.2 formats are also supported by later POSIX versions.
7729         If a format was introduced in ISO C99 it is also required by
7730         POSIX.1-2001.
7731
7732 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7733
7734         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7735         _sys_nerr_internal with INTVARDEF2.
7736         * include/libc-symbols.h (INTVARDEF2): New macro.
7737         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7738         (_sys_nerr_internal): Library.
7739
7740         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7741         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7742
7743         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7744
7745 2002-03-13  Wolfram Gloger  <wg@malloc.de>
7746
7747         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7748
7749 2002-03-02  Andreas Schwab  <schwab@suse.de>
7750
7751         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7752         'h' flag and positional arg.
7753         * stdio-common/tst-printf.c (rfg3): New function to test
7754         positional arguments.
7755         (main): Fix some warnings.
7756
7757 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7758
7759         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7760         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7761
7762 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7763
7764         * grp/initgroups.c (__nss_group_data): Declare as hidden.
7765
7766         * include/locale.h (_nl_C_locobj): Declare as hidden.
7767
7768         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7769         * time/strptime.c (_nl_C_LC_TIME): Likewise.
7770
7771         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7772
7773         * include/sys/gmon.h: Declare _gmonparam as hidden.
7774
7775         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7776         (__ctype32_wctrans): Likewise.
7777         (__ctype32_width): Likewise.
7778
7779         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7780         use of __ttyname.
7781
7782         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7783         Define as hidden.
7784         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
7785         hidden.  Change all users of these variables.
7786
7787         * posix/regex_internal.h (__re_error_msgid): Renamed from
7788         re_error_msgid.  Declare as hidden.
7789         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
7790         hidden.
7791
7792         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7793         (__printf_function_table): Likewise.
7794         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7795         hidden.
7796         (__printf_function_table): Likewise.
7797
7798         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7799         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
7800
7801         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
7802         * nss/nsswitch.c: Declare _nss_*_database as hidden.
7803
7804         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
7805         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
7806
7807 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
7808
7809         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
7810         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7811         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7812         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7813         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7814         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7815         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7816         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7817         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
7818         _nl_C_LC_CTYPE_width: Declare as hidden.
7819         * include/locale.h: Declare _nl_locale_file_list.
7820         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
7821         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
7822         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
7823         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
7824         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
7825         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
7826         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
7827         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
7828         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
7829         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
7830         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
7831         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
7832         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7833         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7834         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7835         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7836         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7837         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7838         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7839         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
7840         _nl_C_LC_CTYPE_width, and as hidden.
7841         * locale/findlocale.c: Declare _nl_C as hidden.
7842         * locale/newlocale.c: Likewise.
7843         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
7844         _nl_locale_file_list.
7845         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
7846         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
7847         Define _nl_C_locobj as hidden.
7848
7849         * malloc/mtrace.c (_mtrace_file): Define as hidden.
7850         (_mtrace_line): Likewise.
7851
7852         * include/time.h: Declare __mon_yday as hidden.
7853         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
7854
7855         * libio/libioP.h: Declare __libio_codecvt as hidden.
7856         * libio/fileops.c: Declare __libio_translit as hidden.
7857         * libio/iofwide.c: Define __libio_translit as hidden.
7858
7859         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
7860         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
7861         * login/getutline_r.c: Likewise.
7862         * login/utmpname.c: Likewise.
7863
7864         * login/utmp-private.h: Declare __libc_utmp_file_functions,
7865         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
7866         __libc_utmp_file_name as hidden.
7867
7868         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
7869         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
7870         * locale/freelocale.c: Likewise.
7871         * locale/lc-time.c: Likewise.
7872
7873         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
7874         (__libc_ptyname2): Likewise.
7875         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
7876         hidden.
7877         (__libc_ptyname2): Likewise.
7878
7879         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
7880         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
7881         * sysdeps/generic/init-first.c: Likewise.
7882         * sysdeps/i386/init-first.c: Likewise.
7883         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
7884         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7885         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7886         * sysdeps/sh/init-first.c: Likewise.
7887         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7888         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7889
7890         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
7891         (_itowa_upper_digits): Likewise.
7892
7893         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
7894         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
7895         as hidden.
7896
7897         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
7898         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
7899         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
7900         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
7901
7902         * gmon/gmon.c (__bb_head): Define as hidden.
7903         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
7904
7905         * argp/argp-parse.c (_argp_hang): Define as static.
7906
7907         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
7908         handling in latest compilers.
7909
7910         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
7911         define alias.
7912         * libio/fileops.c (_IO_file_jumps): Likewise.
7913         * libio/stdfiles.c (_IO_list_all): Likewise.
7914         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
7915
7916         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
7917         include/malloc.h.
7918         * include/malloc.h: Add __libc_malloc_initialized declaration
7919         here.  Mark variable hidden.
7920         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
7921
7922         * elf/dl-open.c (__libc_argc): Declare as hidden.
7923         (__libc_argv): Likewise.
7924         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
7925         (__libc_argv): Likewise.
7926         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
7927         __libc_argv as hidden.
7928         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7929         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7930         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7931         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7932
7933         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
7934         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
7935         * stdlib/erand48.c: Likewise.
7936         * stdlib/jrand48.c: Likewise.
7937         * stdlib/lcong48.c: Likewise.
7938         * stdlib/lrand48.c: Likewise.
7939         * stdlib/mrand48.c: Likewise.
7940         * stdlib/nrand48.c: Likewise.
7941         * stdlib/seed48.c: Likewise.
7942         * stdlib/srand48.c: Likewise.
7943
7944         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
7945         (_itoa_lower_digits_internal): New declaration.
7946         (_itoa_upper_digits_internal): New declaration.
7947         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
7948         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
7949         (_itoa_upper_digits_internal): New declaration.
7950         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
7951         _itoa_lower_digits.
7952         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
7953         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
7954
7955         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
7956         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7957
7958         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
7959         (_itowa_lower_digits): Likewise.
7960         (_itowa_upper_digits): Likewise.
7961         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
7962         (_itowa_upper_digits): Likewise.
7963
7964         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
7965         not already defined.
7966         (GERMANIC_PLURAL): Declare as hidden.
7967
7968         * posix/getopt.c (__getopt_initialized): Declare as hidden.
7969         (attribute_hidden): Define as empty macro if not already defined.
7970
7971         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
7972         (__gconv_max_path_elem_len): Likewise.
7973         (__gconv_path_envvar): Likewise.
7974
7975         * math/Makefile (gmp-objs): Remove mp_clz_tab.
7976         * stdlib/Makefile (aux): Remove mp_clz_tab.
7977         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
7978
7979         * stdlib/exit.h (__exit_funcs): Declare as hidden.
7980
7981         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
7982
7983         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
7984         _nl_category_names, _nl_category_name_sizes, _nl_current,
7985         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
7986
7987         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
7988         (_nl_current_default_domain): Likewise
7989         (_nl_state_lock): Likewise.
7990         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
7991         (_nl_current_default_domain): Likewise
7992         (_nl_state_lock): Likewise.
7993         * intl/bindtextdom.c (_nl_state_lock): Likewise.
7994
7995         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
7996         (_fpioconst_pow10): Likewise.
7997
7998         * include/time.h (_tmbuf): Add attribute_hidden.
7999
8000         * time/tzset.c (tzstring_list): Define as static.
8001
8002         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8003         __use_tzfile declaration.
8004
8005         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8006         and __wcsmbs_last_locale declaration.
8007
8008 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8009
8010         * timezone/Makefile (tzbases): Move systemv from here...
8011         (tzlinks): to here, since the entries in systemv were all changed
8012         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8013         tested) by Peter Breitenlohner.
8014
8015 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8016
8017         * time/tst-posixtz.c (tests): Add new tests.
8018         (main): Test whether tzset() sets daylight properly.
8019
8020 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8021
8022         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8023         __tzname_cur_max setting...
8024         (tzset_internal): ...here.
8025
8026 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8027
8028         * time/tzset.c (compute_change): Don't return any value.
8029         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8030         (__tz_convert): But here.
8031
8032 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8033
8034         * manual/examples/mkfsock.c: Include <string.h> as well.
8035         Patch by Alain De Carolis <alaind@wseurope.com>.
8036
8037 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8038
8039         * posix/regexec.c (re_match): Fix incorrect register sizes.
8040         (re_search): Likewise.
8041
8042 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8043
8044         * posix/regcomp.c (regfree): Remove a disused condition.
8045         * posix/regex_internal.c (re_acquire_state): Likewise.
8046         (re_acquire_state_context): Likewise.
8047         (register_state): Remove a redundant malloc invocation.
8048         * posix/regex_internal.h: (re_state_table_entry): Simplify
8049         the structure.
8050
8051 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8052
8053         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8054         handling conditions.
8055         (regerror): Likewise.
8056         (regfree): Likewise.
8057         (re_compile_internal): Likewise.
8058         (init_dfa): Likewise.
8059         (init_word_char): Likewise.
8060         (create_initial_state): Likewise.
8061         (analyze): Likewise.
8062         (analyze_tree): Likewise.
8063         (duplicate_node): Likewise.
8064         (calc_eclosure): Likewise.
8065         (calc_eclosure_iter): Likewise.
8066         (parse): Likewise.
8067         (parse_reg_exp): Likewise.
8068         (parse_branch): Likewise.
8069         (parse_expression): Likewise.
8070         (parse_subexp): Likewise.
8071         (parse_dup_op): Likewise.
8072         (parse_bracket_exp): Likewise.
8073         (build_equiv_class): Likewise.
8074         (build_charclass): Likewise.
8075         (build_word_op): Likewise.
8076         (fetch_number): Likewise.
8077         (create_tree): Likewise.
8078         (duplicate_tree): Likewise.
8079         * posix/regex.c (BE): New macro.
8080         * posix/regexec.c (re_match): Add __builtin_expect to error
8081         handling conditions.
8082         (re_match_2): Likewise.
8083         (re_search): Likewise.
8084         (re_search_internal): Likewise.
8085         (check_matching): Likewise.
8086         (proceed_next_node): Likewise.
8087         (set_regs): Likewise.
8088         (sift_states_backward): Likewise.
8089         (add_epsilon_backreference): Likewise.
8090         (transit_state): Likewise.
8091         (transit_state_sb): Likewise.
8092         (transit_state_mb): Likewise.
8093         (transit_state_bkref): Likewise.
8094         (transit_state_bkref_loop): Likewise.
8095         (build_trtable): Likewise.
8096         (group_nodes_into_DFAstates): Likewise.
8097         (match_ctx_init): Likewise.
8098         (match_ctx_add_entry): Likewise.
8099         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8100         to error handling conditions.
8101         (re_string_construct_toupper): Likewise.
8102         (build_wcs_buffer): Likewise.
8103         (build_wcs_upper_buffer): Likewise.
8104         (build_upper_buffer): Likewise.
8105         (re_string_translate_buffer): Likewise.
8106         (re_node_set_alloc): Likewise.
8107         (re_node_set_init_1): Likewise.
8108         (re_node_set_init_2): Likewise.
8109         (re_node_set_init_copy): Likewise.
8110         (re_node_set_intersect): Likewise.
8111         (re_node_set_init_union): Likewise.
8112         (re_node_set_merge): Likewise.
8113         (re_node_set_insert): Likewise.
8114         (re_dfa_add_node): Likewise.
8115         (re_acquire_state): Likewise.
8116         (re_acquire_state_context): Likewise.
8117         (create_new_state_common): Likewise.
8118         (register_state): Likewise.
8119         (create_ci_new_state): Likewise.
8120         (create_cd_new_state): Likewise.
8121         (re_string_context_at): Remove redundant condition.
8122
8123 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8124
8125         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8126
8127         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8128
8129 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8130
8131         * sysdeps/i386/elf/configure.in: Fix comment.
8132
8133         * sysdeps/sparc/sparc64/configure.in: New file.
8134         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8135         if .dynamic comes before .got.
8136         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8137
8138         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8139         HP_TIMING_ACCUM): Fix typos.
8140
8141 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8142
8143         * string/strfry.c: Add some more randomness to the seed.
8144         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8145
8146         * po/es.po: Update from translation team.
8147         * po/fr.po: Likewise.
8148
8149         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8150
8151         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8152         when determining type of format.
8153         Patch by James Antill <james@anqd.org> [PR libc/2787].
8154
8155 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8156
8157         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8158
8159 2002-03-11  Roland McGrath  <roland@frob.com>
8160
8161         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8162
8163         * Versions.def (libc): Add GLIBC_2.2.6.
8164         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8165         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8166         __errno_location instead of __hurd_errno_location, and don't inline it.
8167         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8168         * hurd/errno.c: New file.
8169         * hurd/Makefile (routines): Add errno.
8170
8171 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8172
8173         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8174         ridiculously large widths and precisions [PR libc/3026].
8175
8176 2002-03-11  Andreas Jaeger  <aj@suse.de>
8177
8178         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8179         support.
8180         Patch by Susanne Oberhauser <froh@SuSE.de>.
8181
8182 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8183
8184         * inet/rexec.c (ahostbuf): Define as static.
8185
8186         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8187         (__ctype32_wctrans): Likewise.
8188         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8189         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8190         (__ctype32_wctrans): Likewise.
8191         (__ctype32_width): Likewise.
8192
8193         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8194         They were never exported anyway.
8195
8196         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8197         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8198         exported.
8199         * include/sys/gmon.h: Declare _gmonparam.
8200
8201         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8202         symbols for getdents64.  They were never exported.
8203
8204 2002-03-09  Roland McGrath  <roland@frob.com>
8205
8206         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8207         Reported by Jon Arney <jarney1@cox.net>.
8208
8209 2002-02-23  Roland McGrath  <roland@frob.com>
8210
8211         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8212         declaration.
8213         (__hurd_errno_location): Function removed.
8214
8215 2002-03-06  Andreas Jaeger  <aj@suse.de>
8216
8217         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8218         32-bit.
8219
8220 2002-03-04  Andreas Jaeger  <aj@suse.de>
8221
8222         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8223
8224         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8225         x86-64.
8226
8227         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8228
8229         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8230
8231         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8232
8233         * sysdeps/x86_64/bits/setjmp.h: New file.
8234
8235         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8236
8237         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8238
8239         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8240         for x86.
8241         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8242         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8243
8244 2002-02-28  Bo Thorsen  <bo@suse.de>
8245
8246         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8247         version.
8248
8249 2002-03-03  Andreas Jaeger  <aj@suse.de>
8250
8251         * sysdeps/x86_64/bits/wordsize.h: New file.
8252
8253         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8254         * elf/tst-tlsmod1.c: Likewise.
8255
8256         * posix/regcomp.c: Get regex.h from include dir for internal
8257         prototypes.
8258
8259         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8260         to libc-internal.h and include it.
8261         * include/libc-internal.h: Add __init_misc.
8262
8263         * misc/init-misc.c: Include libc-internal.h for prototypes.
8264
8265         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8266
8267         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8268         _IO_putc_internal.
8269
8270 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8271
8272         * posix/regcomp.c: Compatibility changes to allow using the code
8273         outside glibc.
8274
8275 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8276
8277         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8278         compiled non-PIC.
8279
8280 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8281
8282         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8283         of .str elements in the returned data structure.
8284
8285         * elf/elf.h: Add Alpha TLS bits.
8286
8287 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8288
8289         * sysdeps/unix/sysv/linux/nice.c: New file.
8290
8291 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8292
8293         * elf/Makefile (dl-routines): Add dl-origin.
8294         (elide-routines.os): Add dl-origin.
8295         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8296         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8297         _dl_debug_state.
8298         * include/libc-symbols.c: Define attribute_hidden depending on
8299         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
8300
8301         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8302         * elf/dl-load.c: Likewise.
8303         * elf/rtld.c: Likewise.
8304         * include/unistd.h: Declare __libc_enable_secure_internal.
8305         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8306         Use INTUSE with __libc_enable_secure.
8307         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8308
8309         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8310         * elf/dl-error.c: Likewise,
8311         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8312
8313         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8314         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8315         function definition.  Use INTDEF with _dl_get_origin.
8316         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8317
8318         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8319         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
8320
8321         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8322         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8323         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8324
8325         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8326         * elf/dl-deps.c: Likewise.
8327         * elf/dl-error.c: Likewise.
8328         * elf/dl-fini.c: Likewise.
8329         * elf/dl-init.c: Likewise.
8330         * elf/dl-load.c: Likewise.
8331         * elf/dl-lookup.c: Likewise.
8332         * elf/dl-reloc.c: Likewise.
8333         * elf/dl-version.c: Likewise.
8334         * elf/do-lookup.h: Likewise.
8335         * sysdeps/arm/dl-machine.h: Likewise.
8336         * sysdeps/cris/dl-machine.h: Likewise.
8337         * sysdeps/hppa/dl-machine.h: Likewise.
8338         * sysdeps/i386/dl-machine.h: Likewise.
8339         * sysdeps/m68k/dl-machine.h: Likewise.
8340         * sysdeps/powerpc/dl-machine.h: Likewise.
8341         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8342         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8343         * sysdeps/sh/dl-machine.h: Likewise.
8344         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8345         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8346         * sysdeps/x86_64/dl-machine.h: Likewise.
8347         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
8348         _dl_argv[0].  Use INTUSE with _dl_argv.
8349         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8350         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8351
8352 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8353
8354         * elf/rtld.c (_rtld_global): Remove .protected.
8355         (_rtld_local): Strong alias to _rtld_global.
8356         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8357         only .os object.
8358         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8359         _rtld_local instead of _rtld_global.
8360         (_rtld_local): Add hidden extern, possibly in .sdata section.
8361         * configure.in: Add tests for visibility attribute and .sdata.
8362         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8363         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8364         * sysdeps/arm/dl-machine.h: Likewise.
8365         * sysdeps/generic/ldsodefs.h: Likewise.
8366         * sysdeps/hppa/dl-machine.h: Likewise.
8367         * sysdeps/cris/dl-machine.h: Likewise.
8368         * sysdeps/i386/dl-machine.h: Likewise.
8369         * sysdeps/ia64/dl-machine.h: Likewise.
8370         * sysdeps/m68k/dl-machine.h: Likewise.
8371         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8372         * sysdeps/mips/dl-machine.h: Likewise.
8373         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8374         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8375         * sysdeps/sh/dl-machine.h: Likewise.
8376         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8377         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8378         * sysdeps/x86_64/dl-machine.h: Likewise.
8379
8380 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8381
8382         * login/login.c (login): Always initialize ut_line field
8383         [PR libc/2991].
8384
8385 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8386
8387         * sysdeps/i386/Makefile (sysdep_routines): Add
8388         divdi3 in csu dir.
8389         (shared-only-routines): Likewise.
8390         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8391         (shared-only-routines): Likewise.
8392         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8393         (shared-only-routines): Likewise.
8394         * sysdeps/wordsize-32/divdi3.c: New file.
8395
8396 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8397
8398         * locale/iso-4217.def: Remove obsolete currencies for countries
8399         with Euro.
8400
8401 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
8402
8403         * posix/regcomp.c (regcomp): Remove a redundant condition.
8404         (init_word_char): Add a check on malloc failure.
8405         (create_initial_state): Likewise.
8406         (duplicate_node): Likewise.
8407         (calc_eclosure): Likewise.
8408         (calc_eclosure_iter): Likewise.
8409         (parse_expression): Likewise.
8410         (parse_bracket_exp): Remove unnecessary malloc invocations.
8411         (build_equiv_class): Likewise.
8412         (build_charclass): Likewise.
8413         * posix/regex_internal.c (re_node_set_intersect): Add a check
8414         on malloc failure.
8415         (re_node_set_add_intersect): Likewise.
8416         (re_node_set_merge): Likewise.
8417         (re_acquire_state): Likewise.
8418         (re_acquire_state_context): Likewise.
8419         (create_newstate_common): Likewise.
8420         (register_state): Likewise.
8421         (create_ci_newstate): Likewise.
8422         (create_cd_newstate): Likewise.
8423         * posix/regex_internal.h: Fix prototypes of re_acquire_state
8424         and re_acquire_state_context.
8425         * posix/regexec.c (regexec): Suit it to the error handling of
8426         re_search_internal.
8427         (re_match): Likewise.
8428         (re_search): Likewise.
8429         (re_search_internal): Add a check on malloc failure.
8430         (acquire_init_state_context): Likewise.
8431         (check_matching): Likewise.
8432         (proceed_next_node): Likewise.
8433         (set_regs): Likewise.
8434         (sift_states_backward): Likewise.
8435         (sift_states_iter_bkref): Likewise.
8436         (add_epsilon_backreference): Likewise.
8437         (transit_state): Likewise.
8438         (transit_state_sb): Likewise.
8439         (transit_state_mb): Likewise.
8440         (transit_state_bkref_loop): Likewise.
8441         (build_trtable): Likewise.
8442         (group_nodes_into_DFAstates): Likewise.
8443         (match_ctx_init): Likewise.
8444         (match_ctx_add_entry): Likewise.
8445
8446 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8447
8448         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8449         l_libname if profiling is enabled [PR libc/2916].
8450
8451         * sysdeps/ia64/dl-tls.h: New file.
8452
8453 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
8454
8455         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8456         Work around an Alpha gas bug.
8457
8458 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8459
8460         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8461         uses read to load the catalog.
8462         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8463
8464 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
8465
8466         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8467         regex_internal.c, and regex_internal.h.
8468         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8469         * posix/regex.c: Complete rewrite.
8470         * posix/regexec.c: New file.
8471         * posix/regcomp.c: New file.
8472         * posix/regex_internal.c: New file.
8473         * posix/regex_internal.h: New file.
8474         * posix/regex.h (RE_ICASE): New macro.
8475         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8476
8477         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8478         ungetwc.  It's a macro.
8479         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8480         implementation.
8481         Reported by Jason Merrill <jason@redhat.com>.
8482
8483 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8484
8485         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8486         position to fp->_offset if it is set.
8487         * stdio-common/Makefile (tests): Add tst-fdopen.
8488         * stdio-common/tst-fdopen.c: New test.
8489
8490 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8491
8492         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8493         * stdio-common/tst-ungetc.c (main): Add another test.
8494
8495 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
8496
8497         * assert/assert-perr.c: Use INTUSE to reference functions and variables
8498         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
8499         aliases.  Add prototypes for the new aliases.
8500         * assert/assert.c: Likewise.
8501         * include/libc-symbols.h: Likewise.
8502         * include/stdio.h: Likewise.
8503         * include/netinet/in.h: Likewise.
8504         * include/rpc/auth.h: Likewise.
8505         * include/rpc/auth_unix.h: Likewise.
8506         * include/rpc/key_prot.h: Likewise.
8507         * include/rpc/pmap_prot.h: Likewise.
8508         * include/rpc/pmap_rmt.h: Likewise.
8509         * include/rpc/rpc_msg.h: Likewise.
8510         * include/rpc/xdr.h: Likewise.
8511         * inet/gethstbyad_r.c: Likewise.
8512         * inet/gethstbynm2_r.c: Likewise.
8513         * inet/gethstbynm_r.c: Likewise.
8514         * inet/gethstent_r.c: Likewise.
8515         * inet/in6_addr.c: Likewise.
8516         * libio/__fpurge.c: Likewise.
8517         * libio/filedoalloc.c: Likewise.
8518         * libio/fileops.c: Likewise.
8519         * libio/ftello.c: Likewise.
8520         * libio/ftello64.c: Likewise.
8521         * libio/genops.c: Likewise.
8522         * libio/iofclose.c: Likewise.
8523         * libio/iofdopen.c: Likewise.
8524         * libio/iofflush.c: Likewise.
8525         * libio/iofflush_u.c: Likewise.
8526         * libio/iofgetpos.c: Likewise.
8527         * libio/iofgetpos64.c: Likewise.
8528         * libio/iofgets.c: Likewise.
8529         * libio/iofgets_u.c: Likewise.
8530         * libio/iofopen.c: Likewise.
8531         * libio/iofopncook.c: Likewise.
8532         * libio/iofputs.c: Likewise.
8533         * libio/iofread.c: Likewise.
8534         * libio/iofread_u.c: Likewise.
8535         * libio/iofsetpos.c: Likewise.
8536         * libio/iofsetpos64.c: Likewise.
8537         * libio/ioftell.c: Likewise.
8538         * libio/iofwrite.c: Likewise.
8539         * libio/iogetline.c: Likewise.
8540         * libio/iogets.c: Likewise.
8541         * libio/iogetwline.c: Likewise.
8542         * libio/iolibio.h: Likewise.
8543         * libio/iopadn.c: Likewise.
8544         * libio/iopopen.c: Likewise.
8545         * libio/ioseekoff.c: Likewise.
8546         * libio/ioseekpos.c: Likewise.
8547         * libio/iosetbuffer.c: Likewise.
8548         * libio/iosetvbuf.c: Likewise.
8549         * libio/ioungetc.c: Likewise.
8550         * libio/ioungetwc.c: Likewise.
8551         * libio/iovdprintf.c: Likewise.
8552         * libio/iovsprintf.c: Likewise.
8553         * libio/iovsscanf.c: Likewise.
8554         * libio/libioP.h: Likewise.
8555         * libio/memstream.c: Likewise.
8556         * libio/obprintf.c: Likewise.
8557         * libio/oldfileops.c: Likewise.
8558         * libio/oldiofclose.c: Likewise.
8559         * libio/oldiofdopen.c: Likewise.
8560         * libio/oldiofgetpos.c: Likewise.
8561         * libio/oldiofgetpos64.c: Likewise.
8562         * libio/oldiofopen.c: Likewise.
8563         * libio/oldiofsetpos.c: Likewise.
8564         * libio/oldiofsetpos64.c: Likewise.
8565         * libio/oldiopopen.c: Likewise.
8566         * libio/oldstdfiles.c: Likewise.
8567         * libio/putc.c: Likewise.
8568         * libio/setbuf.c: Likewise.
8569         * libio/setlinebuf.c: Likewise.
8570         * libio/stdfiles.c: Likewise.
8571         * libio/stdio.c: Likewise.
8572         * libio/strops.c: Likewise.
8573         * libio/vasprintf.c: Likewise.
8574         * libio/vscanf.c: Likewise.
8575         * libio/vsnprintf.c: Likewise.
8576         * libio/vswprintf.c: Likewise.
8577         * libio/wfiledoalloc.c: Likewise.
8578         * libio/wfileops.c: Likewise.
8579         * libio/wgenops.c: Likewise.
8580         * libio/wstrops.c: Likewise.
8581         * malloc/mtrace.c: Likewise.
8582         * misc/error.c: Likewise.
8583         * misc/syslog.c: Likewise.
8584         * nss/getXXbyYY_r.c: Likewise.
8585         * nss/getXXent_r.c: Likewise.
8586         * nss/hosts-lookup.c: Likewise.
8587         * stdio-common/getw.c
8588         * stdio-common/printf-prs.c: Likewise.
8589         * stdio-common/printf_fp.c: Likewise.
8590         * stdio-common/printf_size.c: Likewise.
8591         * stdio-common/putw.c: Likewise.
8592         * stdio-common/scanf.c: Likewise.
8593         * stdio-common/sprintf.c: Likewise.
8594         * stdio-common/tmpfile64.c: Likewise.
8595         * stdio-common/vfprintf.c: Likewise.
8596         * stdio-common/vfscanf.c: Likewise.
8597         * stdlib/strfmon.c: Likewise.
8598         * sunrpc/auth_des.c: Likewise.
8599         * sunrpc/auth_none.c: Likewise.
8600         * sunrpc/auth_unix.c: Likewise.
8601         * sunrpc/authdes_prot.c: Likewise.
8602         * sunrpc/authuxprot.c: Likewise.
8603         * sunrpc/clnt_perr.c: Likewise.
8604         * sunrpc/clnt_raw.c: Likewise.
8605         * sunrpc/clnt_tcp.c: Likewise.
8606         * sunrpc/clnt_udp.c: Likewise.
8607         * sunrpc/clnt_unix.c: Likewise.
8608         * sunrpc/key_call.c: Likewise.
8609         * sunrpc/key_prot.c: Likewise.
8610         * sunrpc/openchild.c: Likewise.
8611         * sunrpc/pm_getmaps.c: Likewise.
8612         * sunrpc/pm_getport.c: Likewise.
8613         * sunrpc/pmap_clnt.c: Likewise.
8614         * sunrpc/pmap_prot.c: Likewise.
8615         * sunrpc/pmap_prot2.c: Likewise.
8616         * sunrpc/pmap_rmt.c: Likewise.
8617         * sunrpc/rpc_cmsg.c: Likewise.
8618         * sunrpc/rpc_prot.c: Likewise.
8619         * sunrpc/svc_authux.c: Likewise.
8620         * sunrpc/svc_raw.c: Likewise.
8621         * sunrpc/svc_simple.c: Likewise.
8622         * sunrpc/svc_tcp.c: Likewise.
8623         * sunrpc/svc_udp.c: Likewise.
8624         * sunrpc/svc_unix.c: Likewise.
8625         * sunrpc/xdr.c: Likewise.
8626         * sunrpc/xdr_array.c: Likewise.
8627         * sunrpc/xdr_mem.c: Likewise.
8628         * sunrpc/xdr_rec.c: Likewise.
8629         * sunrpc/xdr_ref.c: Likewise.
8630         * sunrpc/xdr_stdio.c: Likewise.
8631         * sysdeps/generic/_strerror.c: Likewise.
8632         * sysdeps/generic/printf_fphex.c: Likewise.
8633         * sysdeps/generic/tmpfile.c: Likewise.
8634         * sysdeps/gnu/errlist.awk: Likewise.
8635         * sysdeps/gnu/errlist.c: Likewise.
8636
8637         * libio/Makefile (routines): Remove iosprint.
8638         * libio/iosprintf.c: Removed
8639
8640
8641 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
8642
8643         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8644         non_dynamic_init and exported now.
8645         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8646         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8647         !SHARED.
8648         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8649         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8650         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8651
8652 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
8653
8654         * elf/dl-close.c (free_slotinfo): Check for end of list and return
8655         true in this case.
8656
8657         * locale/iso-639.def: Add language codes for Walloon.
8658
8659         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8660         total number of relocations performed.
8661
8662         * elf/sprof.c (load_profdata): If do_test provide information as
8663         to why loading failed.
8664         * elf/dl-profile.c (_dl_start_profile): Initialize all of
8665         hist_hdr.dimen.
8666
8667         * csu/set-init.c: Moved to...
8668         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
8669         * csu/Makefile: Don't compile set-init.
8670         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8671         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8672         to __libc_init.
8673         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8674         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8675         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8676         __libc_init.
8677         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
8678         __libc_subinit.
8679
8680 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
8681
8682         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8683         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8684         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8685         (_dl_deallocate_tls): New function.
8686         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8687         _dl_deallocate_tls.
8688
8689 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
8690
8691         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8692         * stdio-common/tst-fseek.c (main): Add test for this.
8693
8694 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
8695
8696         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8697
8698 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
8699
8700         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8701         pointer before dereferencing.
8702
8703 2002-02-18  Roland McGrath  <roland@frob.com>
8704
8705         * sysdeps/mach/hurd/times.c: Fix typo in last change.
8706
8707         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8708         Use task_policy in place of task_priority.
8709
8710         * sysdeps/generic/bits/mman.h
8711         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8712         * sysdeps/mach/msync.c: New file.
8713
8714         * sysdeps/mach/powerpc/syscall.S: New file.
8715
8716         * mach/msg.c [MACH_MSG_OVERWRITE]
8717         (__mach_msg_trap, __mach_msg_overwrite): New functions.
8718         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8719
8720         * sysdeps/mach/configure.in: Check for clock.defs to put into
8721         mach_interface_list.
8722         * sysdeps/mach/configure: Regenerated.
8723
8724         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8725         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8726         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8727         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8728         (mach-shortcuts): Add device_read_overwrite_request,
8729         device_read_overwrite, vm_read_overwrite, thread_switch.
8730
8731         * configure.in (base_machine): Set to $machine by default.
8732         * configure: Regenerated.
8733
8734         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8735         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8736         * sysdeps/mach/configure: Regenerated.
8737         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8738
8739         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8740
8741         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8742
8743         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8744         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8745
8746 2002-02-17  Roland McGrath  <roland@frob.com>
8747
8748         * sysdeps/mach/hurd/times.c
8749         [NO_CREATION_TIME] (startup_time): New static variable.
8750         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8751         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8752         creation_time from task_basic_info.
8753         (__times): Use __gettimeofday instead of __host_get_time.
8754
8755         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8756         Use untyped Mach IPC message format.
8757
8758         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8759
8760         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8761         _S_catch_exception_raise_state_identity,
8762         _hurdsig_fault_catch_exception_raise_state,
8763         _hurdsig_fault_catch_exception_raise_state_identity.
8764
8765         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8766
8767         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8768         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8769
8770         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8771         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8772
8773         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8774         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
8775         them as no-op macros.
8776         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8777         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8778
8779         * sysdeps/powerpc/dl-machine.h
8780         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8781
8782         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8783         Use untyped Mach IPC message format.
8784
8785         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8786         Handle untyped Mach IPC message formats.
8787
8788         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8789         Expect different argument conventions when this is defined.
8790         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8791         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8792         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8793         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8794         for OSF Mach variant.
8795         (faulted): Use mig_reply_error_t for REPLY.
8796         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8797         in __thread_set_exception_ports call.
8798         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8799         __mach_port_set_attributes in place of __mach_port_set_qlimit.
8800
8801         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
8802         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
8803         on Darwin, which includes bogons.
8804
8805         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
8806         variable LOADBASE so it's not declared when it's not used.
8807
8808 2002-02-16  Roland McGrath  <roland@frob.com>
8809
8810         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
8811         to use BI.creation_time.
8812
8813         * mach/Machrules (MIG): Add -x c to CPP value passed down.
8814
8815         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
8816         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
8817         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
8818         host_page_size instead of vm_statistics.
8819
8820         * sysdeps/mach/Makefile (mach-before-compile): Don't include
8821         mach_interface.h here, since not all variants use that name.
8822
8823         * sysdeps/mach/configure.in: Add some checks for Mach headers
8824         to ensure a sane installation.
8825         (mach_interface_list): Define this variable by checking for .defs
8826         files found in various variants.
8827         * configure.in (mach_interface_list): AC_SUBST this.
8828         * config.make.in (mach-interface-list): New substituted variable.
8829         * mach/Makefile (user-interfaces): Define this using the value
8830         of $(mach-interface-list) instead of mach, mach4.
8831         Updated other references to mach_interface to use it as well.
8832
8833         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
8834
8835         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
8836         mig_reply_error_t for OSF Mach variant.
8837
8838         * mach/Makefile (routines): Remove bootprivport.
8839         * mach/bootprivport.c: File removed.  It has never been used.
8840
8841         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
8842         Grok the OSF flavor of message format.
8843         (mach_msg_destroy_port): For MAKE_SEND and
8844         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
8845         no-senders notification.
8846
8847 2002-02-06  Roland McGrath  <roland@frob.com>
8848
8849         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
8850         to here if 2.0 compatibility enabled ...
8851         (libc: GLIBC_2.1.3): ... from here.
8852
8853 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
8854
8855         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
8856         generation counter.
8857         * elf/dl-close.c (_dl_close): Likewise.
8858
8859 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
8860
8861         * elf/Makefile: Add rules to build and run tst-tls8.
8862         * elf/tst-tls8.c: New file.
8863         * elf/tst-tlsmod4.c: New file.
8864
8865         * stdlib/test-a64l.c (tests): Add more test cases.
8866
8867         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
8868         Reported by Walter Harms <WHarms@bfs.de>.
8869
8870 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
8871
8872         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
8873         definitions for struct sigcontext.
8874         Suggested by David Mosberger-Tang.
8875
8876 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
8877
8878         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
8879         for removing reference of module in slotinfo list.
8880         (_dl_close): Use remove_slotinfo.
8881         * sysdeps/generic/dl-tls.c: General pretty printing.
8882         (oom): Define only if SHARED.
8883         (_dl_next_tls_modid): Correct starting point for the case we assume
8884         there is a gap.  Add missing instruction grouping (doh!).  Correct
8885         tests for reaching maximum index.
8886         * elf/Makefile: Add rules to build and run tst-tls7.
8887         * elf/tst-tls7.c: New file.
8888         * elf/tst-tlsmod3.c: New file.
8889
8890         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
8891         USE_TLS.
8892         * elf/tst-tlsmod2.c: Likewise.
8893
8894         * elf/dl-close.c (_dl_close): When closing an object using TLS
8895         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
8896         true.  Increment dl_tls_generation only if we closed any TLS-using
8897         object.
8898         * elf/tst-tls6.c: New file.
8899         * elf/Makefile: Add rules to build and run tst-tls6.
8900
8901         * po/da.po: Update from translation team.
8902
8903         * locale/categories.def: Fix typo [PR libc/2948].
8904         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
8905         [PR libc/2949].
8906         * locale/iso-4217.def: Update from official version [PR libc/2950].
8907         * glibcbug.in: Honor TMPDIR [PR libc/2951].
8908         * locale/programs/ld-collate.c (collate_finish): Bail out with a
8909         message if input is too confusion instead of using assert.
8910         (collate_read): Don't crash on unknown symbol [PR libc/2952].
8911         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
8912
8913         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
8914         * elf/tst-tls2.c: Likewise.
8915         * elf/tst-tls3.c: Likewise.
8916
8917 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
8918
8919         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
8920
8921 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
8922
8923         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
8924         if this is really necessary.
8925
8926         * elf/dl-close.c (_dl_close): Implement freeing entries in the
8927         slotinfo array.
8928         (free_mem): Free memory for the slotinfo array if possible.
8929
8930 2002-02-12  Andreas Schwab  <schwab@suse.de>
8931
8932         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
8933
8934 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
8935
8936         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
8937         TLS_DTV_UNALLOCATE.
8938         (oom): New function.
8939         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
8940         (_dl_determine_tlsoffset): Likewise.
8941         (_dl_allocate_tls): Likewise.
8942         (__TLS_GET_ADDR): Define if not already defined.
8943         (_dl_tls_symaddr): New function.
8944         (allocate_and_init): New function.
8945         (__tls_get_addr): Actually implement handling of generation counter
8946         and deferred allocation.
8947         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
8948         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8949         _dl_tls_generation.
8950         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
8951         Declare _dl_tls_symaddr.
8952         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
8953         SHARED.
8954         * include/link.h (struct link_map):  Remove l_tls_nextimage and
8955         l_tls_previmage.
8956         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
8957         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
8958         (_dl_vsym): Likewise.
8959         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
8960         layout.
8961         (dl_main): Allow PT_TLS be present for empty segment.  Remove
8962         nextimage list handling.  Instead add all modules using TLS to
8963         dl_tls_dtv_slotinfo_list.
8964         * elf/dl-open.c (dl_open_worker): After successfully loading all
8965         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
8966         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
8967         empty segment don't do anything.  Remove handling of initimage list.
8968         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
8969         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
8970         * elf/dl-minimal.c: Define __libc_memalign.
8971         * elf/dl-support.c: Remove _dl_initimage_list.  Add
8972         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8973         _dl_tls_generation.
8974         * include/stdlib.h: Declare __libc_memalign.
8975
8976         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
8977         * elf/tst-tls4.c: New file.
8978         * elf/tst-tls5.c: New file.
8979         * elf/tst-tlsmod2.c: New file.
8980
8981         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
8982
8983         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
8984
8985         * elf/tst-tls1.c: Use test-skeleton.c.
8986         * elf/tst-tls2.c: Likewise.
8987         * elf/tst-tls3.c: Likewise.
8988
8989         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
8990
8991 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
8992
8993         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
8994
8995 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
8996
8997         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
8998
8999         * elf/tst-tls3.c: New file.
9000         * elf/tst-tlsmod1.c: New file.
9001         * elf/Makefile: Add rules to build and run tst-tls3.
9002
9003         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9004         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9005         TLS relocations.
9006
9007         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9008
9009         * po/fr.po: Update from translation team.
9010
9011         * elf/tls-macros.h: Add alternative macros for use in PIC.
9012
9013         * elf/dl-lookup.c: Include <tls.h>.
9014         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9015
9016         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9017         required by passing pointer to last element of the list.
9018
9019         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9020         l_tls_initimage to a place where it actually is performed.
9021
9022         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9023         after globfree() calls.
9024
9025         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9026         (openaux): Pass open_mode as new last argument to _dl_map_object.
9027         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9028         open_mode element of args variable with it.
9029         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9030         _dl_map_object_deps.
9031         * elf/rtld.c (dl_main): Add zero as last parameter to
9032         _dl_map_object_deps call.
9033         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9034         * elf/nodlopen2.c: New file.
9035         * elf/nodlopenmod2.c: New file.
9036         * elf/Makefile: Add rules to build and run nodlopen2.
9037
9038         * elf/tst-tls1.c: Move TLS helper macros to...
9039         * elf/tls-macros.h: ...here.  New file.
9040         * elf/tst-tls2.c: New file.
9041         * elf/Makefile (tests): Add tst-tls2.
9042         (distribute): Add tls-macros.h.
9043
9044         * po/sv.po: Update from translation team.
9045
9046         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9047         architecture specific definitions from the actual test code.
9048
9049         * po/tr.po: Update from translation team.
9050
9051 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9052
9053         * elf/Makefile (tests): Add tst-tls1.
9054         * elf/tst-tls1.c: New file.
9055
9056         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9057         alignment of TCB for now.
9058
9059         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9060         initialization image for the application itself.
9061
9062         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9063         loop to initialize TLS block.
9064
9065 2002-02-08  Richard Henderson  <rth@redhat.com>
9066
9067         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9068         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9069
9070         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9071
9072 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9073
9074         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9075
9076 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9077
9078         * po/ca.po: Update from translation team.
9079         * po/sk.po: Likewise.
9080
9081         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9082         (dl_main): Move dtv/static TLS handling before relocation.
9083         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9084         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9085         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9086         so far uses TLS initialize GL(dl_tls_static_size) and
9087         GL(dl_tls_static_align) to account for the TCB.
9088         (_dl_allocate_tls): New function.
9089         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9090         _dl_initial_dtv_malloced.
9091
9092         * configure.in: Test for __builtin_memset more realistically.
9093
9094         * csu/version.c (banner): If TLS support is available say so.
9095
9096 2002-02-04  H.J. Lu  <hjl@gnu.org>
9097
9098         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9099         __attribute_used__.
9100         (__dl_runtime_resolve): Likewise.
9101
9102         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9103         declaration.
9104
9105 2001-11-15  H.J. Lu  <hjl@gnu.org>
9106
9107         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9108         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9109
9110         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9111
9112 2002-02-07  H.J. Lu  <hjl@gnu.org>
9113
9114         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9115         ".set noreorder".
9116         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9117         Likewise.
9118
9119 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9120
9121         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9122
9123         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9124         ___tls_get_addr_internal.
9125         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9126
9127         * po/ko.po: Update from translation team.
9128
9129 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9130
9131         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9132         attribute, change __pad{1,2} type to unsigned int.
9133         (struct stat64): Remove packed attribute.
9134
9135 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9136
9137         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9138
9139 2002-02-07  Andreas Schwab  <schwab@suse.de>
9140
9141         * configure.in: Fix check for -zcombreloc.
9142
9143 2002-02-06  H.J. Lu  <hjl@gnu.org>
9144
9145         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9146         * configure.in: Check if __builtin_memset really works.
9147         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9148         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9149
9150 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9151
9152         * io/bug-ftw3.c (main): Don't try the test if root.
9153
9154 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9155
9156         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9157         constraints.
9158         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9159         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9160         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9161         Likewise.
9162         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9163         a weak alias for __clone.
9164         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9165         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9166         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9167         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9168         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9169         a weak alias for __mmap64.
9170
9171 2002-02-05  H.J. Lu  <hjl@gnu.org>
9172
9173         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9174         (atomic_add): Likewise.
9175         (compare_and_swap): Likewise.
9176         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9177
9178 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9179
9180         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9181
9182         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9183         alignment of the TCB and store total size and alignment of static
9184         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9185         tls_index is a typedef.
9186         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9187         _dl_tls_static_align.
9188         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9189         * elf/dl-support.c: Define _dl_tls_static_size and
9190         _dl_tls_static_align.
9191
9192 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9193
9194         * configure.in: Add --without-tls option.
9195         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9196         --without-tls is given.
9197
9198         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9199
9200         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9201
9202 2002-02-06  Roland McGrath  <roland@frob.com>
9203
9204         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9205         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9206
9207         * scripts/versions.awk: Improve error message for missing version.
9208         Each version inherits from the last one only if they have the same
9209         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9210         but not GLIBC_x and FOO_y.
9211
9212         * scripts/firstversions.awk: Handle libraries that don't have each
9213         particular version named in the third column of shlib-versions.
9214
9215         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9216
9217 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9218
9219         * Versions.def [ld]: Add GLIBC_2.3.
9220         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9221         * elf/Makefile (dl-routines): Add dl-tls.
9222         (distribute): Add dl-tls.h.
9223         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9224         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9225         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9226         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9227         along with the other info in the link map.  Change queueing of init
9228         images for double linked list.  Use _dl_next_tls_modid to compute
9229         l_tls_modid.
9230         * elf/rtld.c (_dl_start_final): Store alignment requirement
9231         along with the other info in rtld map and executable map.
9232         (dl_main): Add ld.so to the init image list if necessary.  Compute
9233         final module ID with _dl_next_tls_modid.
9234         * include/link.h (struct link_map): Add l_tls_previmage and
9235         l_tls_align.
9236         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9237         * sysdeps/i386/elf/Versions: New file.
9238         * sysdeps/generic/dl-tls.c: New file.
9239         * sysdeps/generic/dl-tls.h: New file.
9240         * sysdeps/i386/dl-tls.h: New file.
9241
9242 2002-02-06  Roland McGrath  <roland@frob.com>
9243
9244         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9245         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9246
9247 2002-01-05  Roland McGrath  <roland@frob.com>
9248
9249         * sysdeps/mach/configure.in: New file.
9250         * sysdeps/mach/configure: New generated file.
9251
9252         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9253         It has never been used by anything.
9254
9255 2002-02-06  H.J. Lu  <hjl@gnu.org>
9256
9257         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9258         is included.
9259
9260 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9261
9262         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9263         attribute((packed)) to counter stupid people misusing gcc options.
9264         (struct stat64): Likewise.
9265
9266 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9267
9268         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9269         the variables which are used as booleans.
9270
9271 2002-02-06  Andreas Jaeger  <aj@suse.de>
9272
9273         * include/libc-symbols.h (INTUSE): Renamed from INT.
9274         * elf/dl-deps.c: Change users.
9275         * sysdeps/generic/dl-sysdep.c: Likewise.
9276         * sysdeps/generic/dl-cache.c: Likewise.
9277         * elf/dl-reloc.c: Likewise.
9278         * elf/rtld.c: Likewise.
9279         * elf/dl-version.c: Likewise.
9280         * elf/dl-load.c: Likewise.
9281         * elf/dl-dst.h: Likewise.
9282         * elf/dl-init.c: Likewise.
9283         * elf/dl-error.c: Likewise.
9284         * elf/dl-fini.c: Likewise.
9285         * elf/dl-runtime.c: Likewise.
9286         * elf/do-lookup.h: Likewise.
9287
9288         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9289         definition.
9290         * stdio-common/_itowa.h: Likewise.
9291
9292 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9293
9294         * elf/dl-minimal.c: Define _itoa_lower_digits.
9295
9296         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9297         DT_FLAGS set.
9298
9299         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9300         loading modules with the DF_STATIC_TLS flag set.
9301         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9302         element.
9303         * include/link.h (struct link_map): Add l_flags field.
9304         * elf/elf.h (DF_STATIC_TLS): New definition.
9305
9306         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9307         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
9308
9309         * elf/rtld.c (process_dl_debug): Correct printing help message.
9310         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9311         for %s.
9312
9313         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9314         definition and pass &errno in use of this variable.
9315         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9316
9317 2002-02-04  Andreas Schwab  <schwab@suse.de>
9318
9319         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9320         * locale/programs/charmap-dir.c: Wrap calls that output messages
9321         with WITH_CUR_LOCALE.  Include "localedef.h" first.
9322         * locale/programs/charmap.c: Likewise.
9323         * locale/programs/ld-address.c: Likewise.
9324         * locale/programs/ld-collate.c: Likewise.
9325         * locale/programs/ld-ctype.c: Likewise.
9326         * locale/programs/ld-identification.c: Likewise.
9327         * locale/programs/ld-measurement.c: Likewise.
9328         * locale/programs/ld-messages.c: Likewise.
9329         * locale/programs/ld-monetary.c: Likewise.
9330         * locale/programs/ld-name.c: Likewise.
9331         * locale/programs/ld-numeric.c: Likewise.
9332         * locale/programs/ld-paper.c: Likewise.
9333         * locale/programs/ld-telephone.c: Likewise.
9334         * locale/programs/ld-time.c: Likewise.
9335         * locale/programs/linereader.c: Likewise.
9336         * locale/programs/linereader.h: Likewise.
9337         * locale/programs/localedef.c: Likewise.
9338         * locale/programs/locfile.c: Likewise.
9339         * locale/programs/repertoire.c: Likewise.
9340
9341 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9342
9343         * elf/rtld.c (_dl_start_final): Determine load address to locate
9344         ehdr with GL(dl_rtld_map).l_map_start.
9345
9346         * po/ca.po: Update from translation team.
9347
9348         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9349         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9350         header entry.
9351         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9352         _dl_tls_module_cnt.
9353         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9354
9355 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
9356
9357         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9358         * include/link.h (struct link_map): Add various members for TLS
9359         information.
9360         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9361         _rtld_tlsoffset, add _dl_initimage_list.
9362         * sysdeps/i386/dl-lookupcfg.h: New file.
9363         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9364         TLS relocation.  When using TLS we now use RESOLVE_MAP.
9365         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9366         is used.
9367
9368         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9369         unused.
9370
9371         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9372         thread-pointer as soon as possible.
9373         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
9374         elements in rtld_global.
9375         * sysdeps/generic/tls.h: New file.
9376         * elf/Makefile (distribute): Add tls.h.
9377         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9378         relocations.  Not complete yet.
9379
9380         * resolv/resolv.h: Allow user to define __need_res_state and only
9381         define __res_start structure then.
9382         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9383
9384         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9385         dl_cpuclock_offset initialization to _dl_start_final.
9386         (_dl_show_auxv): Avoid unnecessary sign extension.
9387         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9388
9389 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9390
9391         * config.h.in: Add HAVE_TLS_SUPPORT.
9392         * sysdeps/i386/elf/configure.in: New file.
9393
9394 2002-02-03  Andreas Schwab  <schwab@suse.de>
9395
9396         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9397         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
9398
9399 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
9400
9401         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9402         alloca if the memory reqirements are too high.
9403
9404 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9405
9406         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9407         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9408         the former is available anyway and speed isn't important here.
9409         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9410         * elf/dl-version.c (match_symbol): Likewise.
9411         (_dl_check_map_versions): Likewise.
9412         * elf/rtld.c (process_envvars): Likewise.
9413         (print_statistics): Likewise.
9414         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9415         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
9416         bases.  Add assert to catch uses of unimplemented features.
9417         (__strsep): Add assert to catch uses of unimplemented features.
9418         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
9419         and avoid inline optimization.
9420         * elf/rtld.c (process_envvars): Likewise.
9421         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9422         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9423         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9424
9425 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9426
9427         * stdio-common/_itoa.h: Minor simplifications of the code.
9428         * stdio-common/_itoa.c: Likewise.
9429
9430         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9431         instead of _dl_printf for debugging info output.
9432
9433         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9434         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9435
9436 2002-02-01  H.J. Lu  <hjl@gnu.org>
9437
9438         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9439         (atomic_add): Likewise.
9440         (compare_and_swap): Return 0 only when failed to compare. Use
9441         branch likely.
9442
9443         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9444         branch likely.
9445
9446 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9447
9448         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9449
9450 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9451
9452         * elf/dl-minimal.c (__strsep): New minimal implementation.
9453
9454 2002-02-02  Paul Eggert  <eggert@twinsun.com>
9455
9456         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9457         (__mktime_internal): If no tm_isdst is requested, prefer solutions
9458         with tm_isdst > 0 when the requested time falls within a
9459         spring-forward gap [PR libc/2894].
9460
9461 2002-02-03  Andreas Schwab  <schwab@suse.de>
9462
9463         * stdio-common/tst-rndseek.c: Increase timeout.
9464
9465 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9466
9467         Change ld.so to not use functions which are exported.  One cannot
9468         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
9469         definitions.
9470         * include/libc-symbols.h: Define INT and INTDEF.
9471         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9472         _dl_signal_error_internal, _dl_map_object_internal,
9473         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9474         _dl_lookup_versioned_symbol_internal,
9475         _dl_relocate_object_internal, _dl_debug_state_internal,
9476         _dl_start_profile_internal, and _dl_unload_cache_internal.
9477         * include/dlfcn.h: Declare _dl_catch_error_internal.
9478         * elf/rtld.c: Use INT for calls to any of the *_internal functions
9479         above.  Add INTDEF to function definitions.
9480         * elf/dl-debug.c: Likewise.
9481         * elf/dl-deps.c: Likewise.
9482         * elf/dl-dst.h: Likewise.
9483         * elf/dl-error.c: Likewise.
9484         * elf/dl-fini.c: Likewise.
9485         * elf/dl-init.c: Likewise.
9486         * elf/dl-load.c: Likewise.
9487         * elf/dl-lookup.c: Likewise.
9488         * elf/dl-misc.c: Likewise.
9489         * elf/dl-open.c: Likewise.
9490         * elf/dl-profile.c: Likewise.
9491         * elf/dl-reloc.c: Likewise.
9492         * elf/dl-runtime.c: Likewise.
9493         * elf/dl-version.c: Likewise.
9494         * elf/do-lookup.h: Likewise.
9495         * sysdeps/generic/dl-cache.c: Likewise.
9496         * sysdeps/generic/dl-sysdep.c: Likewise.
9497         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9498         instead of _dl_init.
9499         * sysdeps/arm/dl-machine.h: Likewise.
9500         * sysdeps/cris/dl-machine.h: Likewise.
9501         * sysdeps/hppa/dl-machine.h: Likewise.
9502         * sysdeps/i386/dl-machine.h: Likewise.
9503         * sysdeps/ia64/dl-machine.h: Likewise.
9504         * sysdeps/m68k/dl-machine.h: Likewise.
9505         * sysdeps/mips/dl-machine.h: Likewise.
9506         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9507         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9508         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9509         * sysdeps/sh/dl-machine.h: Likewise.
9510         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9511         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9512         * sysdeps/x86_64/dl-machine.h: Likewise.
9513         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9514
9515         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9516         and _dl_debug_initialize.
9517
9518         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
9519         more information.
9520         * elf/rtld.c (dl_main): Avoid strrchr.
9521         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9522         result of readlink.  Search from the back for '/'.
9523
9524         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9525         strncpy if possible.
9526
9527         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
9528         strncmp.
9529         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
9530         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9531         strspn, and strcspn.
9532         (process_envvars): Don't use strcspn.
9533
9534         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9535         (_dl_dst_substitute): Likewise.
9536
9537 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9538
9539         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9540         code which is never used when relocating ld.so itself.
9541
9542         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9543         starting ld.so itself.  Move l_addr variable initialization closer
9544         to use.
9545         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9546
9547 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9548
9549         * Versions.def (libc): Add GLIBC_PRIVATE.
9550         (libdb, libnss_db, libdb1): Remove.
9551         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9552         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9553         (libpthread): Add GLIBC_PRIVATE.
9554         (libresolv): Likewise, remove GLIBC_2.1.
9555         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9556         GLIBC_2.2.3, GLIBC_2.3.
9557         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9558         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9559         _dl_sym, _dl_vsym): Likewise.
9560         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9561         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9562         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9563         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9564         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9565         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9566         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9567         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9568         Likewise.
9569         (_dl_object_relocation_scope): Remove.
9570         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9571         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9572         __gconv_cache): Move to GLIBC_PRIVATE.
9573         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9574         __internal_setnetgrent): Likewise.
9575         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9576         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9577         * locale/Versions (__collate_element_hash, __collate_element_strings,
9578         __collate_symbol_classes, __collate_symbol_hash,
9579         __collate_symbol_strings, _nl_current_LC_COLLATE,
9580         _nl_current_LC_CTYPE): Likewise.
9581         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9582         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9583         (libnss_nis, libnss_nisplus): Likewise.
9584         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9585         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9586         (libnss_files): Move all symbols to GLIBC_PRIVATE.
9587         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9588         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9589         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9590         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9591         __ns_get16, __ns_samename): Likewise.
9592         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9593         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9594         GLIBC_PRIVATE.
9595         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9596         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9597         __libc_connect): Likewise.
9598         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9599         Likewise.
9600         * stdlib/Versions (__libc_system): Likewise.
9601         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9602         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9603         * sysdeps/ia64/fpu/Versions: Likewise.
9604         * sysdeps/ia64/Versions: Likewise.
9605         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9606         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9607         to GLIBC_PRIVATE.
9608         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9609         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9610         __libc_sigaction): Likewise.
9611         * termios/Versions (__libc_tcdrain): Likewise.
9612
9613         * misc/sys/cdefs (__attribute_noinline__): Define.
9614         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9615         __attribute_noinline__.
9616
9617         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9618         * elf/dl-xstat64.c: New file.
9619         * elf/dl-fxstat64.c: New file.
9620         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9621         don't export __fxstat64 at multiple versions.
9622         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9623         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9624
9625 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
9626
9627         * locale/program/ld-collate.c (collate_finish): Assign a wide
9628         char collation sequence value to multi character collating
9629         elements, and avoid over writing by non-character elements.
9630
9631 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9632
9633         * elf/Makefile (distribute): Add dl-procinfo.c.
9634         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9635         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9636
9637 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9638
9639         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9640         definition.
9641         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9642         _rtld_global struct.
9643         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9644         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9645         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9646         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9647         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9648         _dl_fpu_control_set): Remove unused externs.
9649         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9650         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9651         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9652         related variables in _rtld_global struct.
9653         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9654         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9655         unused extern.
9656
9657 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9658
9659         * sysdeps/generic/dl-procinfo.c: New file.
9660
9661 2002-02-01  Andreas Schwab  <schwab@suse.de>
9662
9663         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9664
9665 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9666
9667         * elf/rtld.c (_dl_start): Mark as internal_function.
9668         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9669         in register.
9670         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9671         General pretty printing.
9672
9673 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9674
9675         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9676         * elf/dl-reloc.c: Pretty printing.
9677         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9678         procinfo-related variables in rtld_global struct.
9679         * elf/dl-support.c: Likewise.
9680         * elf/rtld.c: Likewise.
9681         * sysdeps/i386/i686/Makefile: Likewise.
9682         * sysdeps/i386/i686/hp-timing.c: Likewise.
9683         * sysdeps/i386/i686/hp-timing.h: Likewise.
9684         * sysdeps/ia64/Makefile: Likewise.
9685         * sysdeps/ia64/hp-timing.c: Likewise.
9686         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9687         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9688         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9689         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9690         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9691         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9692         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9693         * sysdeps/x86_64/Makefile: Likewise.
9694
9695         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9696         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9697         _dl_debug_fd to rtld_global.
9698         * elf/Versions: Likewise.
9699         * elf/dl-close.c: Likewise.
9700         * elf/dl-iteratephdr.c: Likewise.
9701         * elf/dl-lookup.c: Likewise.
9702         * elf/dl-misc.c: Likewise.
9703         * elf/dl-open.c: Likewise.
9704         * elf/dl-support.c: Likewise.
9705         * elf/do-lookup.h: Likewise.
9706         * elf/rtld.c: Likewise.
9707         * sysdeps/generic/dl-cache.c: Likewise.
9708         * sysdeps/generic/dl-sysdep.c: Likewise.
9709         * sysdeps/ia64/Versions: Likewise.
9710         * sysdeps/unix/clock_gettime.c: Likewise.
9711         * sysdeps/unix/clock_settime.c: Likewise.
9712         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9713         * sysdeps/sparc/Versions: Removed.
9714         * sysdeps/i386/i686/Versions : Removed.
9715         * sysdeps/x86_64/Versions: Removed.
9716         * configure.in: Define HAVE_PROTECTED if .protected is available.
9717         * config.h.in: Add entry for HAVE_PROTECTED.
9718
9719 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
9720
9721         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9722         code in struct _rtld_global.  Export this struct, remove all
9723         exports for the signal variables.
9724         * sysdeps/arm/dl-machine: Likewise.
9725         * sysdeps/generic/dl-origin: Likewise.
9726         * sysdeps/generic/dl-sysdep: Likewise.
9727         * sysdeps/generic/dl-cache: Likewise.
9728         * sysdeps/hppa/dl-fptr: Likewise.
9729         * sysdeps/hppa/dl-machine: Likewise.
9730         * sysdeps/cris/dl-machine: Likewise.
9731         * sysdeps/i386/dl-machine: Likewise.
9732         * sysdeps/ia64/dl-machine: Likewise.
9733         * sysdeps/m68k/dl-machine: Likewise.
9734         * sysdeps/mach/hurd/dl-sysdep: Likewise.
9735         * sysdeps/mips/mips64/dl-machine: Likewise.
9736         * sysdeps/mips/dl-machine: Likewise.
9737         * sysdeps/powerpc/elf/libc-start: Likewise.
9738         * sysdeps/powerpc/dl-machine: Likewise.
9739         * sysdeps/powerpc/dl-start: Likewise.
9740         * sysdeps/sparc/sparc32/dl-machine: Likewise.
9741         * sysdeps/sparc/sparc64/dl-machine: Likewise.
9742         * sysdeps/sh/dl-machine: Likewise.
9743         * sysdeps/s390/s390-32/dl-machine: Likewise.
9744         * sysdeps/s390/s390-64/dl-machine: Likewise.
9745         * sysdeps/unix/sysv/aix/libc-start: Likewise.
9746         * sysdeps/unix/sysv/aix/start-libc: Likewise.
9747         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9748         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9749         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9750         * sysdeps/x86_64/dl-machine: Likewise.
9751
9752 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9753
9754         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9755         are too high.
9756
9757 2002-01-31  Andreas Schwab  <schwab@suse.de>
9758
9759         * sysdeps/posix/readv.c: Check for ssize_t overflow.
9760
9761 2002-01-31  Andreas Schwab  <schwab@suse.de>
9762
9763         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9764         reference to _dl_pagesize.
9765
9766 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
9767
9768         * Versions.def [ld]: Add GLIBC_2.3.
9769         * elf/dl-addr.c: Move global variables for SHARED code in struct
9770         _rtld_global.  Export this struct, remove all exports for the
9771         signal variables.
9772         * elf/dl-close.c: Likewise.
9773         * elf/dl-conflict.c: Likewise.
9774         * elf/dl-debug.c: Likewise.
9775         * elf/dl-deps.c: Likewise.
9776         * elf/dl-dst.h: Likewise.
9777         * elf/dl-error.c: Likewise.
9778         * elf/dl-fini.c: Likewise.
9779         * elf/dl-init.c: Likewise.
9780         * elf/dl-iteratephdr.c: Likewise.
9781         * elf/dl-libc.c: Likewise.
9782         * elf/dl-load.c: Likewise.
9783         * elf/dl-lookup.c: Likewise.
9784         * elf/dl-minimal.c: Likewise.
9785         * elf/dl-object.c: Likewise.
9786         * elf/dl-open.c: Likewise.
9787         * elf/dl-profile.c: Likewise.
9788         * elf/dl-profstub.c: Likewise.
9789         * elf/dl-reloc.c: Likewise.
9790         * elf/dl-runtime.c: Likewise.
9791         * elf/dl-support.c: Likewise.
9792         * elf/dl-sym.c: Likewise.
9793         * elf/dl-version.c: Likewise.
9794         * elf/do-lookup.h: Likewise.
9795         * elf/do-rel.h: Likewise.
9796         * elf/dynamic-link.h: Likewise.
9797         * elf/rtld.c: Likewise.
9798         * sysdeps/generic/dl-cache.c: Likewise.
9799         * sysdeps/generic/dl-sysdep.c: Likewise.
9800         * sysdeps/generic/ldsodefs.h: Likewise.
9801         * sysdeps/generic/libc-start.c: Likewise.
9802         * sysdeps/i386/dl-machine.h: Likewise.
9803         * sysdeps/ia64/dl-fptr.c: Likewise.
9804         * sysdeps/ia64/dl-machine.h: Likewise.
9805         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
9806         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9807         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
9808         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
9809         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
9810         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9811         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
9812         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
9813
9814 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9815
9816         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
9817         to avoid warning
9818         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
9819
9820         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
9821         SHARED version.
9822         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
9823
9824         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
9825
9826 2002-01-29  Ben Collins  <bcollins@debian.org>
9827
9828         * string/bits/string2.h (__mempcpy): Protect size arg for
9829         addition when using __builtin_memcpy.
9830
9831 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9832
9833         * stdlib/Makefile (tests): Add tst-qsort.
9834         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
9835
9836         * manual/signal.texi (Process Signal Mask): Document that
9837         pthread_sigmask, not sigprocmask, must be used in MT programs.
9838         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
9839
9840         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
9841         found.
9842         * misc/Makefile (tests): Add tst-hsearch.
9843         * misc/tst-hsearch.c: New file.
9844
9845 2002-01-18  Wolfram Gloger  <wg@malloc.de>
9846
9847         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
9848         * malloc/malloc.h: Likewise.
9849         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
9850         * malloc/arena.c: New file.
9851         * malloc/hooks.c: New file.
9852         * malloc/tst-mallocstate.c: New file.
9853         * malloc/Makefile: Add new testcase tst-mallocstate.
9854         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
9855
9856 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9857
9858         * stdlib/msort.c: Remove last patch.  The optimization violates the
9859         same rule which qsort.c had problems with.
9860
9861 2002-01-27  Paul Eggert  <eggert@twinsun.com>
9862
9863         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
9864         to a pivot element that lies outside the array to be sorted, as
9865         ISO C99 requires that the comparison function be called only with
9866         addresses of array elements [PR libc/2880].
9867
9868 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9869
9870         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
9871         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
9872
9873         * timezone/asia: Update from tzdata2002b.
9874         * timezone/australasia: Likewise.
9875         * timezone/backward: Likewise.
9876         * timezone/europe: Likewise.
9877         * timezone/leapseconds: Likewise.
9878         * timezone/iso3166.tab: Likewise.
9879         * timezone/zone.tab: Likewise.
9880
9881 2002-01-23  Richard Henderson  <rth@redhat.com>
9882
9883         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
9884
9885 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9886
9887         * string/strxfrm.c: Allocate one more byte for rulearr and clear
9888         this element [PR libc/2855].
9889
9890         * string/strcoll.c: Handle zero-length arguments specially
9891         [PR libc/2856].
9892
9893 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
9894
9895         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
9896         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
9897         short lengths and constant src.
9898         (strcpy): Don't optimize for gcc 3.0+.
9899         (__stpcpy): For gcc 3.0+, don't use
9900         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
9901         for short string literal src.
9902
9903 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9904
9905         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
9906         Set for arm, too.
9907
9908 2001-01-22  Paul Eggert  <eggert@twinsun.com>
9909
9910         * manual/llio.texi (Linked Channels, Cleaning Streams):
9911         Make it clearer that a just-opened input stream might need cleaning.
9912
9913 2002-01-21  H.J. Lu  <hjl@gnu.org>
9914
9915         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9916         Don't use label at end of compound statement.
9917
9918 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
9919
9920         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
9921         Remove test for negative integer arg; sin_pi does it correctly.
9922
9923 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
9924
9925         * nscd/Makefile (distribute): Filter out xmalloc.c.
9926
9927 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
9928
9929         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
9930         Set offset if read end wasn't the buffer end.
9931         (_IO_file_seekoff_mmap): New function.
9932         (_IO_file_xsgetn_mmap): New function.
9933         (_IO_file_jumps_mmap): Use the two new functions.
9934         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
9935         != end buffer.
9936         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
9937         _IO_file_underflow_mmap.
9938         * libio/iofopen.c: Don't position file descriptor at end of file.
9939         * libio/tst-widetext.c: Improve error messages.
9940         * stdio-common/tst-rndseek.c: Likewise.
9941
9942 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
9943
9944         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
9945         end of enum for !_GNU_SOURCE.
9946         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
9947         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
9948         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
9949         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
9950         values unless _GNU_SOURCE.
9951
9952         * iconvdata/tcvn5712-1.c: Minor cleanups.
9953
9954 2002-01-18  Andreas Schwab  <schwab@suse.de>
9955
9956         * sysdeps/unix/sysv/linux/configure.in
9957         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
9958
9959 2002-01-16  Roger Sayle  <roger@eyesopen.com>
9960
9961         * stdlib/msort.c (msort_with_tmp): Replace implementation with
9962         more efficient "Towers of Hanoi" mergesort.
9963         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
9964         for generic, sizeof(int) and sizeof(long) variants respectively.
9965
9966 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
9967
9968         * manual/syslog.texi (openlog): Describe possible problems with
9969         first parameter.
9970         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
9971
9972         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
9973         * nscd/connections.c (begin_drop_privileges): New function.
9974         (finish_drop_privileges): New function.
9975         (nscd_init): Call the new functions which also install all groups
9976         for the server user.
9977         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
9978         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
9979
9980 2002-01-17  H.J. Lu  <hjl@gnu.org>
9981
9982         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
9983         `const' from `got'.
9984
9985 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9986
9987         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
9988         instructions for pointer operations.
9989         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
9990
9991 2002-01-17  Andreas Jaeger  <aj@suse.de>
9992
9993         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
9994         __uint128_t build-in.
9995
9996         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
9997         PowerPC, sync with 2.2 branch.
9998
9999 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10000
10001         * posix/getconf.c: Update copyright year.
10002         * nss/getent.c: Likewise.
10003         * nscd/nscd_nischeck.c: Likewise.
10004         * iconv/iconvconfig.c: Likewise.
10005         * iconv/iconv_prog.c: Likewise.
10006         * elf/ldconfig.c: Likewise.
10007         * catgets/gencat.c: Likewise.
10008         * csu/version.c: Likewise.
10009         * elf/ldd.bash.in: Likewise.
10010         * elf/sprof.c (print_version): Likewise.
10011         * locale/programs/locale.c: Likewise.
10012         * locale/programs/localedef.c: Likewise.
10013         * nscd/nscd.c (print_version): Likewise.
10014         * debug/xtrace.sh: Likewise.
10015         * malloc/memusage.sh: Likewise.
10016         * malloc/mtrace.pl: Likewise.
10017
10018 2002-01-16  Andreas Schwab  <schwab@suse.de>
10019
10020         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10021         reliably remove "-ia64" from rtld name.
10022
10023 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10024
10025         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10026         Patch by Yu Shao <yshao@redhat.com>.
10027
10028 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10029
10030         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10031         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10032         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10033
10034 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10035
10036         * sysdeps/s390/fpu/libm-test-ulps: Update.
10037
10038 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10039
10040         * elf/elf.h: Update x86 relocations.
10041
10042 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10043
10044         * locale/programs/charmap.c (new_width): Check whether byte
10045         sequences for both ends of range have the same length.
10046
10047 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10048
10049         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10050
10051 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10052
10053         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10054         string literals.
10055         (__full_ieee754_sqrt): Add __attribute_used__.
10056
10057 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10058
10059         * sysdeps/generic/group_member.c (__group_member): Also check
10060         groups[0] [PR libc/2781].
10061
10062 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10063
10064         * Makefile (distribute): Add scripts/cpp.
10065         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10066         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10067         unwind-dw2-fde.h, and dwarf2.h.
10068         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10069         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10070         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10071         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10072
10073 2002-01-07  Roland McGrath  <roland@frob.com>
10074
10075         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10076         volatile on type of ARGC so the compiler doesn't get clever.
10077
10078 2002-01-07  Andreas Jaeger  <aj@suse.de>
10079
10080         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10081         * sysdeps/i386/bits/byteswap.h: Likewise.
10082         * sysdeps/ia64/bits/byteswap.h: Likewise.
10083         * sysdeps/m68k/bits/byteswap.h: Likewise.
10084         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10085         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10086
10087 2002-01-02  Bruno Haible  <bruno@clisp.org>
10088
10089         * intl/plural.y: Fix %expect count.
10090
10091 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10092
10093         * elf/Makefile (routines, shared-only-routines): Add
10094         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10095         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10096         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10097         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10098         Optimize if .eh_frame section contains no FDEs.
10099         (__register_frame, __deregister_frame_info_bases,
10100         __deregister_frame): Likewise.
10101         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10102         DW_CFA_restore handling.
10103
10104 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10105
10106         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10107
10108         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10109         for x < 0.25 and restore original range reduction method.
10110         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10111
10112 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10113
10114         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10115         (_IO_file_close_mmap): New function.
10116         (_IO_file_jumps_mmap): New variable.
10117         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10118         trying to convert rest of byte buffer.
10119         (_IO_wfile_underflow_mmap): New function.
10120         (_IO_wfile_jumps_mmap): New variable.
10121         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10122         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10123         (_IO_new_fopen): Call __fopen_internal.
10124         * libio/iofopen64.c: Just call __fopen_internal.
10125         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10126         successfully.
10127         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10128         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10129         _IO_file_close_mmap.
10130
10131         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10132         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10133
10134         * stdio-common/Makefile (tests): Add tst-rndseek.
10135         * stdio-common/tst-rndseek.c: New file.
10136
10137 2002-01-05  Roland McGrath  <roland@frob.com>
10138
10139         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10140         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10141         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10142         * sysdeps/mach/hurd/configure: Regenerated.
10143
10144 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10145
10146         * elf/elf.h: Add more TLS definitions.
10147
10148 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10149
10150         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10151
10152 2002-01-02  Roland McGrath  <roland@frob.com>
10153
10154         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10155         __sigisemptyset.  Don't use MASK uninitialized.
10156
10157         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10158         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10159         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10160         __sigdelset, __sigaddset, __sigorset.
10161
10162         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10163         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10164
10165         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10166         _hurd_ports is null.
10167
10168         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10169         for old CMU and new OSF Mach interface flavors.
10170         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10171         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10172
10173         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10174
10175         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10176         Pass extra arguments to task_create for OSF variant.
10177         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10178
10179         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10180         conditional on [HAVE_AUX_VECTOR].
10181
10182         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10183         mach_msg_timeout_t as type of final argument.
10184
10185         * hurd/privports.c (__get_privileged_ports):
10186         Change host_priv_t to mach_port_t in argument type.
10187         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10188         Update decls.
10189
10190         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10191         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10192         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10193         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10194         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10195         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10196
10197 2002-01-01  Roland McGrath  <roland@frob.com>
10198
10199         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10200
10201 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10202
10203         * include/stdlib.h: Define inlines for the _l variants of the strto*
10204         functions.
10205
10206 2002-01-01  Roland McGrath  <roland@frob.com>
10207
10208         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10209
10210         * mach/Machrules (MIG): Set CPP as well as CC.
10211
10212 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10213
10214         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10215         locale to parse /proc/loadavg [PR libc/2760].
10216
10217 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10218
10219         * elf/dl-conflict.c: Include sys/param.h.
10220         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10221         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10222         warning.
10223         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10224         literals to avoid warnings.
10225
10226 2001-12-31  Andreas Jaeger  <aj@suse.de>
10227
10228         * configure.in: Don't check for gsed since we do not use it anywhere.
10229
10230 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10231
10232         * io/fts.c: Update from BSD to fix memory leaks.
10233
10234 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10235
10236         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10237         * elf/chroot_canon.c: Likewise.
10238         * elf/dl-object.c: Likewise.
10239         * iconv/iconv_charmap.c: Likewise.
10240         * iconv/iconv_prog.c: Likewise.
10241         * libio/iogetdelim.c: Likewise.
10242         * locale/lc-time.c: Likewise.
10243         * stdlib/canonicalize.c: Likewise.
10244         * sunrpc/svc.c: Likewise.
10245         * sysdeps/generic/glob.c: Likewise.
10246
10247 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10248
10249         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10250         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10251         remove high order bit from the program counter.
10252         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10253
10254 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10255
10256         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10257         unnecessary code and add missing reloc types.
10258         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10259         case for reloc type R_390_NONE.
10260
10261 2001-12-28  Andreas Jaeger  <aj@suse.de>
10262
10263         * io/bug-ftw3.c: Include string.h for prototypes.
10264
10265         * crypt/md5test.c (main): Remove unused variable.
10266
10267         * dlfcn/modstatic.c: Add prototype to avoid warning.
10268
10269 2001-12-26  Roland McGrath  <roland@frob.com>
10270
10271         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10272         check only (SS->pending & MASK) for the signal to return.
10273         From Jeroen Dekkers <jeroen@dekkers.cx>.
10274
10275 2001-12-22  Roland McGrath  <roland@frob.com>
10276
10277         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10278         Use preprocessor #if conditionals instead of `if' to avoid
10279         warnings about divide by zero in dead code.
10280
10281         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10282         _hurd_port_init, and __hurd_self_sigstate.
10283
10284         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10285
10286 2001-12-21  Andreas Jaeger  <aj@suse.de>
10287
10288         * elf/dblloadmod1.c: Add prototype to avoid warning.
10289         * elf/dblloadmod2.c: Likewise.
10290         * elf/dblloadmod3.c: Likewise.
10291         * elf/reldepmod5.c: Likewise.
10292         * elf/reldepmod6.c: Likewise.
10293
10294         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10295         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10296         used on all architectures.
10297
10298         * sunrpc/svc_tcp.c: Add noreturn attribute for
10299         svctcp_rendezvous_abort.
10300         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10301
10302         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10303         to avoid warning.
10304
10305 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
10306
10307         * manual/llio.texi (aio_fsync): Fix a typo.
10308         Patch by Tammy Fox <tfox@redhat.com>.
10309
10310 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
10311
10312         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10313         stack bias from child stack pointer before passing it to clone syscall.
10314
10315 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
10316
10317         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10318         _SC_TZNAME_MAX.
10319         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10320         Reported by Thorsten Kukuk <kukuk@suse.de>.
10321
10322         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10323         add some casts.
10324
10325         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10326
10327 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
10328
10329         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10330         conforming: return EBADF if file descriptor is invalid and EINVAL
10331         if file descriptor is no valid tty.
10332         * login/tst-grantpt.c: New file.
10333         * login/Makefile (tests): Add tst-grantpt.
10334
10335 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
10336
10337         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10338         different than implemented in last patch.
10339         * io/bug-ftw3.c: Adjust test for changed handling of
10340         inaccessibility of toplevel dir.
10341
10342 2001-12-16  Roland McGrath  <roland@frob.com>
10343
10344         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10345         * grp/initgroups.c (internal_getgrouplist): Likewise.
10346
10347         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10348         `default:' to silence new GCC warning.
10349         Rewrite cast of lvalue to silence new GCC warning.
10350
10351         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10352
10353         * sysdeps/mach/hurd/spawni.c: New file, by me with a
10354         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10355
10356 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
10357
10358         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
10359         Patch by Stephen R. van den Berg.
10360
10361         * crypt/md5.h: Define md5_uintptr.
10362
10363 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10364
10365         * libio/tst_swprintf.c (main): Add test for string argument with
10366         zero precision.
10367         * stdio-common/Makefile (tests): Add tst-sprintf.
10368         * stdio-common/tst-sprintf.c: New file.
10369
10370 2001-12-13  Andreas Schwab  <schwab@suse.de>
10371
10372         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10373         zero precision with wide character string format.
10374
10375 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
10376
10377         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10378         but have a user supplied buffer, return the empty buffer, not NULL.
10379
10380 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10381
10382         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10383         Patch by Eric Sharkey <sharkey@netrics.com>.
10384
10385         * crypt/md5test.c (main): Add test for multiple calls to
10386         __md5_process_bytes to itererate over input string.
10387
10388 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
10389
10390         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10391         from __nis_findfastest.  Take timeout value from parameter.
10392         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10393         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10394         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
10395
10396 2001-12-12  Andreas Jaeger  <aj@suse.de>
10397
10398         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10399         combreloc test so that it works in this case.
10400
10401         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10402
10403 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
10404
10405         * sysdeps/sh/Makefile: New file.
10406         * sysdeps/sh/_mcount.S: New file.
10407         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10408         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10409
10410 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10411
10412         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10413         limitation [PR libc/2564].
10414
10415 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
10416
10417         * elf/Makefile (dl-routines): Add conflict.
10418         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10419         (ld.so): Add _begin local symbol.
10420         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10421         Define.
10422         * elf/dl-deps.c (_dl_build_local_scope): New function.
10423         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10424         of all libraries.
10425         * elf/do-rel.h (VALIDX): Define.
10426         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10427         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10428         can be skipped.
10429         * elf/dl-conflict.c: New file.
10430         * elf/dl-lookup.c (_dl_debug_bindings): New function.
10431         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
10432         non-NULL.
10433         (_dl_lookup_symbol_skip): Likewise.
10434         (_dl_lookup_versioned_symbol): Likewise.
10435         (_dl_lookup_versioned_symbol_skip): Likewise.
10436         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10437         define to ElfW(Rel).
10438         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10439         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10440         ranges.
10441         Don't adjust address dynamic tags if l_addr is 0.
10442         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10443         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10444         (VALIDX, ADDRIDX): Define.
10445         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10446         (dl_main): Print library list for LD_TRACE_PRELINKING.
10447         If prelinking information can be used, skip relocating libraries and
10448         call _dl_resolve_conflicts instead.
10449         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10450         * elf/dl-load.c (_dl_map_object): Don't create fake libs
10451         if LD_TRACE_PRELINKING.
10452         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10453         + DT_ADDRNUM.
10454         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10455         (DL_DEBUG_PRELINK): Define.
10456         (_dl_resolve_conflicts): Add prototype.
10457
10458         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10459         .plt for prelinked libraries where prelinking info cannot be used.
10460         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10461         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10462         * sysdeps/arm/bits/link.h: New file.
10463         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10464         content of .got[1].
10465         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10466         (ELF_MACHINE_PLT_REL): Define.
10467         (elf_machine_rela, elf_machine_rela_relative): New functions.
10468         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10469         of adjusting it if prelinked and prelinking cannot be used.
10470         * sysdeps/i386/bits/link.h: New file.
10471         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10472         content of .got[1].
10473         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10474         (ELF_MACHINE_PLT_REL): Define.
10475         (elf_machine_rela, elf_machine_rela_relative): New functions.
10476         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10477         of adjusting it if prelinked and prelinking cannot be used.
10478         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10479         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
10480         to find out map for R_PPC_JMP_SLOT relocs.
10481         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10482         (OPCODE_BA): Define.
10483         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10484         libraries where prelinking info cannot be used.
10485         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10486         (elf_machine_fixup_plt): Call sparc_fixup_plt.
10487         (elf_machine_rela): Set value to 0 if relocating conflicts.
10488         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10489         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10490         (sparc64_fixup_plt): Fix a typo.
10491         (elf_machine_rela): Set value to 0 if relocating conflicts.
10492         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10493         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10494         libraries where prelinking info cannot be used.
10495         * sysdeps/sh/bits/link.h: New file.
10496         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10497         content of .got[1].
10498         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10499         of adjusting it if prelinked and prelinking cannot be used.
10500         * sysdeps/s390/s390-32/bits/link.h: New file.
10501         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10502         Save original content of .got[1].
10503         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10504         of adjusting it if prelinked and prelinking cannot be used.
10505         * sysdeps/s390/s390-64/bits/link.h: New file.
10506         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10507         Save original content of .got[1].
10508         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10509         of adjusting it if prelinked and prelinking cannot be used.
10510         * sysdeps/x86_64/bits/link.h: New file.
10511         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10512         Save original content of .got[1].
10513         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10514         of adjusting it if prelinked and prelinking cannot be used.
10515
10516 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10517
10518         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10519         where appropriate instead of numbers.  Little optimizations.
10520
10521 2001-12-10  Roland McGrath  <roland@frob.com>
10522
10523         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10524         set it.
10525
10526         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10527         set to GLIBC_2.2.5, not GLIBC_2.2.4.
10528
10529         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10530         Fix conditionals so this is set by default for stdio and not for libio.
10531         * sysdeps/mach/hurd/configure: Regenerated.
10532
10533 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
10534
10535         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10536
10537 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
10538
10539         * io/Makefile (tests): Add bug-ftw3.
10540         * io/bug-ftw3.c: New file.
10541
10542         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10543         matches and GLOB_NOCHECK is set.
10544         * posix/globtest.sh: Correct expected result for NOCHECK test.
10545
10546         * po/ca.po: Update from translation team.
10547
10548 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
10549
10550         Implement transliteration of characters in strings of the locale
10551         definitions.
10552         * locale/programs/linereader.c: Adjust for additional parameter to
10553         lr_token.
10554         (get_string): If character <Uxxxx> is not found try to transliterate
10555         it.
10556         * locale/programs/ld-ctype.c: Adjust for additional parameter to
10557         lr_token.  Add const to charmap parameter of all functions.
10558         (find_translit, find_translit2): New functions.
10559         * locale/programs/charmap.c: Adjust for additional parameter to
10560         lr_token.
10561         * locale/programs/repertoire.c: Likewise.
10562         * locale/programs/linereader.h: Likewise.
10563         * locale/programs/ld-address.c: Likewise.  Add const to charmap
10564         parameter of all functions.
10565         * locale/programs/ld-collate.c: Likewise.
10566         * locale/programs/ld-identification.c: Likewise.
10567         * locale/programs/ld-measurement.c: Likewise.
10568         * locale/programs/ld-messages.c: Likewise.
10569         * locale/programs/ld-monetary.c: Likewise.
10570         * locale/programs/ld-name.c: Likewise.
10571         * locale/programs/ld-numeric.c: Likewise.
10572         * locale/programs/ld-paper.c: Likewise.
10573         * locale/programs/ld-paper.c: Likewise.
10574         * locale/programs/ld-telephone.c: Likewise.
10575         * locale/programs/ld-time.c: Likewise.
10576         * locale/programs/locfile.c: Likewise.
10577         * locale/programs/localedef.c: Likewise.
10578         * locale/programs/localedef.h: Likewise.
10579         * locale/programs/locfile.h: Likewise.  Add declaration for
10580         find_translit.
10581         * locale/programs/simple-hash.c: Add const to first parameter of
10582         find_entry, iterate_table, and lookup.
10583         * locale/programs/simple-hash.h: Likewise.
10584         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
10585         instead.
10586         * include/locale.h: Define __LC_LAST.
10587         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10588
10589 2001-12-07  Geoff Keating  <geoffk@redhat.com>
10590
10591         * sysdeps/powerpc/Dist: Update for recent FP changes.
10592         * sysdeps/powerpc/fpu/Dist: Likewise.
10593
10594 2001-12-07  Andreas Schwab  <schwab@suse.de>
10595
10596         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10597
10598 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10599
10600         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10601         save/restore functions here.
10602         (libm-support): Don't define these functions here.
10603         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10604         functions here.
10605         * sysdeps/powerpc/fe_nomask.c: Move to...
10606         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10607         * sysdeps/powerpc/fprrest.S: Move to...
10608         * sysdeps/powerpc/fpu/fprrest.S: ... here.
10609         * sysdeps/powerpc/fprsave.S: Move to...
10610         * sysdeps/powerpc/fpu/fprsave.S: ... here.
10611
10612 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10613
10614         * sysdeps/unix/sysv/linux/opensock.c: New file.
10615
10616 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10617
10618         * config.make.in (with-fp): Define from configure.
10619         * configure.in: Substitute with_fp.
10620         * configure: Regenerate.
10621         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10622         specified, and don't change FPU environment.
10623
10624 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10625
10626         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10627         * assert/assert.c: Check result of __asprintf call and don't use
10628         string if it failed.
10629         * assert/assert-perr.c: Likewise.
10630         * inet/rcmd.c: Likewise.
10631         * locale/programs/localedef.c (main): Check result of
10632         construct_output_path and exit if it failed.
10633         (construct_output_path): Check result of asprintf and mkdir calls and
10634         fail if they failed.
10635         * posix/getopt.c: Check result of __asprintf calls and fail if
10636         they failed.
10637         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10638
10639 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10640
10641         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10642         patch.
10643         * sysdeps/generic/strncase.c: Likewise.
10644         * string/tester.c: Add tests for strcasecmp and strncasecmp.
10645
10646 2001-12-05  Geoff Keating  <geoffk@redhat.com>
10647
10648         * scripts/cpp: Test the exit status from 'type', not 'awk'.
10649
10650         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10651         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10652         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10653         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10654         * sysdeps/powerpc/fclrexcpt.c: Move to...
10655         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10656         * sysdeps/powerpc/fpu_control.h: Move to...
10657         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10658
10659 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10660
10661         * iconvdata/ibm1129.h: Remove duplicate mappings.
10662         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
10663         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10664         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10665
10666         * timezone/zic.c: Fix handling of turnaround times.
10667         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10668
10669 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
10670
10671         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10672         overflow problem.
10673
10674 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10675
10676         * posix/regex.c: For use outside glibc defined bounded pointer
10677         macros here.  Patch by Jim Meyering <jim@meyering.net>.
10678
10679         * iconvdata/Makefile (modules): Add TCVN5712-1.
10680         * iconvdata/TESTS: Add TCVN5712-1.
10681         * iconvdata/gconv-modules: Likewise.
10682         * iconvdata/tcvn5712-1.c: New file.
10683         * iconvdata/testdata/TCVN-5712: New file.
10684         * iconvdata/testdata/TCVN-5712..UTF8: New file.
10685
10686 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
10687
10688         * iconvdata/cp1258.c: Optimize conversion from UCS4.
10689
10690 2001-12-02  Roland McGrath  <roland@frob.com>
10691
10692         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10693
10694         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10695         Reported by Jeff Bailey <jbailey@nisa.net>.
10696
10697         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10698         Reported by Jeff Bailey <jbailey@nisa.net>.
10699
10700         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10701         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10702         Reported by Jeff Bailey <jbailey@nisa.net>.
10703
10704 2001-12-01  Roland McGrath  <roland@frob.com>
10705
10706         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10707         missing backslash in test arguments.
10708         * sysdeps/mach/hurd/configure: Regenerated.
10709
10710 2001-11-26  Roland McGrath  <roland@frob.com>
10711
10712         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10713         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10714
10715 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
10716
10717         * iconvdata/Makefile (modules): Add ARMSCII-8.
10718         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10719         * iconvdata/armscii-8.c: New file.
10720
10721 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
10722
10723         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10724         don't match, fix {{a,b},c} globbing, clean up.
10725         Patch by Flavio Veloso <flaviovs@magnux.com>.
10726         * posix/globtest.sh: Add new tests.
10727
10728 2001-11-29  Andreas Jaeger  <aj@suse.de>
10729
10730         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10731         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10732
10733         * sysdeps/generic/abort.c: Include libioP.h for
10734         _IO_flush_all_lockp prototype.
10735
10736 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
10737
10738         * posix/regex.h: Define __restrict_arr correctly.
10739
10740 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10741
10742         * iconvdata/ibm1163.c: New file.
10743         * iconvdata/ibm1163.h: New file.
10744         * iconvdata/ibm1164.c: New file.
10745         * iconvdata/ibm1164.h: New file.
10746         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10747         * iconvdata/Makefile: Likewise.
10748         * iconvdata/testdata/IBM1163: New file.
10749         * iconvdata/testdata/IBM1163..UTF8: New file.
10750         * iconvdata/testdata/IBM1164: New file.
10751         * iconvdata/testdata/IBM1164..UTF8: New file.
10752         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10753
10754         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
10755         * iconvdata/ibm1124.h: Likewise.
10756         * iconvdata/ibm1132.h: Likewise.
10757         * iconvdata/ibm1133.h: Likewise.
10758         * iconvdata/ibm1160.h: Likewise.
10759         * iconvdata/ibm1161.h: Likewise.
10760         * iconvdata/ibm1162.h: Likewise.
10761         * iconvdata/ibm856.h: Likewise.
10762         * iconvdata/ibm922.h: Likewise.
10763         * iconvdata/ibm930.h: Likewise.
10764         * iconvdata/ibm932.h: Likewise.
10765         * iconvdata/ibm933.h: Likewise.
10766         * iconvdata/ibm935.h: Likewise.
10767         * iconvdata/ibm937.h: Likewise.
10768         * iconvdata/ibm939.h: Likewise.
10769         * iconvdata/ibm943.h: Likewise.
10770         * iconvdata/ibm930.c: Pretty printing.
10771         * iconvdata/ibm937.c: Avoid access accross array boundary.
10772
10773         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10774         the current locale's codeset.
10775         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10776         empty input string.
10777         * iconv/iconv_prog.c: Pass empty strings as default value for to-
10778         and from-charset.  Don't determine locale's charset here.
10779
10780         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
10781         as the old _IO_flush_all but lock only if parameter is nonzero.
10782         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10783         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10784         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10785         if libio is used [PR libc/2575].
10786
10787 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
10788
10789         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10790         __signbitl): Only define for ISO C99.
10791
10792 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10793
10794         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10795         herrnop to NETDB_INTERNAL if we run out of buffer space.
10796
10797 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10798
10799         * nss/nss_files/files-XXX.c (internal_getent): Correct input
10800         overflow test for platforms with signed char.
10801         Reported by Andrew Haley <aph@cambridge.redhat.com>.
10802
10803 2001-11-28  Bruno Haible  <bruno@clisp.org>
10804
10805         * locale/programs/simple-hash.c (lookup_2): Remove function.
10806         (insert_entry_2): Call lookup instead of lookup_2.
10807
10808 2001-03-04  Bruno Haible  <bruno@clisp.org>
10809
10810         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
10811
10812 2001-10-31  Bruno Haible  <bruno@clisp.org>
10813
10814         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
10815
10816 2001-03-21  Bruno Haible  <bruno@clisp.org>
10817
10818         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
10819         chokes on empty macro arguments.
10820         * intl/plural.y: Add #pragma for alloca on AIX 3.
10821
10822 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10823
10824         * intl/dcigettext.c (guess_category_value): Only implement for
10825         glibc.  Otherwise rely on function _nl_locale_name which isn't
10826         present in the glibc sources.
10827
10828 2001-09-24  Bruno Haible  <bruno@clisp.org>
10829
10830         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
10831         transliteration when building on a glibc system but outside glibc.
10832
10833 2001-09-22  Bruno Haible  <bruno@clisp.org>
10834
10835         * intl/plural-eval.c: New file, extracted from dcigettext.c.
10836         * intl/dcigettext.c (plural_eval): Remove function, moved to
10837         intl/plural-eval.c.
10838         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
10839         Include plural-eval.c.
10840
10841 2001-09-22  Bruno Haible  <bruno@clisp.org>
10842
10843         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
10844         don't start with a digit; nplurals must be positive.
10845
10846 2001-09-02  Bruno Haible  <bruno@clisp.org>
10847
10848         * intl/plural-exp.h: New file, extracted from gettextP.h.
10849         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
10850         * intl/gettextP.h (struct expression, struct parse_args,
10851         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
10852         * intl/loadmsgcat.c: Include plural-exp.h.
10853         (PLURAL_PARSE): Move macro to plural-exp.h.
10854         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
10855         plural-exp.c.
10856         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
10857         EXTRACT_PLURAL_EXPRESSION.
10858         (_nl_unload_domain): Update.
10859         * intl/dcigettext.c: Include plural-exp.h.
10860         * intl/plural.y: Include plural-exp.h, not gettextP.h.
10861         (FREE_EXPRESSION): Move macro to plural-exp.h.
10862         * intl/Makefile (routines): Add plural-exp.
10863         (distribute): Add plural-exp.h.
10864
10865 2001-07-28  Bruno Haible  <bruno@clisp.org>
10866
10867         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
10868         isdigit, tolower argument to 'unsigned char'.
10869         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
10870         'unsigned char'.
10871         * intl/localealias.c (read_alias_file): Cast isspace argument to
10872         'unsigned char'.
10873
10874 2001-10-20  Bruno Haible  <bruno@clisp.org>
10875
10876         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
10877         anyway.)
10878         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
10879         with the variable 'index' in plural_lookup.
10880         * intl/l10nflist.c (strchr): Likewise.
10881         * intl/localealias.c (strchr): Likewise.
10882
10883         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
10884         * intl/bindtextdom.c: Likewise.
10885         * intl/dcigettext.c: Likewise.
10886         * intl/dgettext.c: Likewise.
10887         * intl/dngettext.c: Likewise.
10888         * intl/explodename.c: Likewise.
10889         * intl/finddomain.c: Likewise.
10890         * intl/gettext.c: Likewise.
10891         * intl/l10nflist.c: Likewise.
10892         * intl/loadmsgcat.c: Likewise.
10893         * intl/localealias.c: Likewise.
10894         * intl/ngettext.c: Likewise.
10895         * intl/textdomain.c: Likewise.
10896         * intl/gettext.h: Assume <limits.h> exists.
10897
10898 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10899
10900         * stdio-common/Makefile (tests): Add scanf11.
10901         * stdio-common/scanf11.c: New file.
10902
10903 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
10904
10905         * version.h (RELEASE): Define as development.
10906         (VERSION): Set to 2.2.90.
10907
10908 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10909
10910         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
10911         * nis/nss_nis/nis-grp.c: Likewise.
10912         * nis/nss_nisplus/nisplus-grp.c: Likewise.
10913
10914         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
10915         * nis/nss_nis/nis-pwd.c: Likewise.
10916         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
10917
10918         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
10919         * nis/nss_nisplus/nisplus-parser.c: Likewise.
10920         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10921
10922         * nscd/grpcache.c: Use strtoul instead of atol.
10923         * nscd/pwdcache.c: Likewise.
10924         * nss/getent.c: Likewise.
10925
10926 2001-11-27  Paul Eggert  <eggert@twinsun.com>
10927
10928         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
10929         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
10930
10931 2001-11-19  Bruno Haible  <bruno@clisp.org>
10932
10933         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
10934         90%.
10935         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
10936         improves the quality of the hash function, especially for short
10937         strings.
10938
10939 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
10940
10941         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
10942         are found call conv_error and not input_error [PR libc/2669].
10943
10944         * math/bits/mathcalls.h: Mark ceil and floor as const.
10945         Reported by David Mosberger.
10946
10947 2001-11-21  Jim Meyering  <meyering@lucent.com>
10948
10949         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
10950         Define to be __-prefixed.
10951         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
10952
10953 2001-11-26  Andreas Jaeger  <aj@suse.de>
10954
10955         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
10956         avoid warning.
10957
10958 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
10959
10960         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
10961         initialization.
10962
10963         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
10964         unused variables.  Fix threshold for returning 1.0.
10965
10966         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
10967         argument.
10968
10969         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
10970         remove unused variables.
10971
10972         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
10973
10974         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
10975         include local math header files.
10976
10977 2001-11-22  Andreas Jaeger  <aj@suse.de>
10978
10979         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
10980         avoid warning.
10981
10982 2001-11-21  Andreas Jaeger  <aj@suse.de>
10983
10984         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
10985
10986         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
10987         sys/debugreg.h
10988
10989 2001-11-15  Andreas Jaeger  <aj@suse.de>
10990
10991         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
10992         compilers that support it.
10993
10994         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
10995         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
10996         * stdlib/stdlib.h: Likewise.
10997
10998 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
10999
11000         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11001         statement with gotos.
11002         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11003
11004 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11005
11006         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11007
11008 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11009
11010         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11011
11012 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11013             H.J. Lu  <hjl@gnu.org>
11014
11015         * Versions.def (libc): Add GCC_3.0.
11016         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11017         if gcc supports this flag.
11018         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11019         (gcc3): Allow glibc to be compiled with gcc 3.x.
11020         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11021         * config.make.in (static-libgcc, unwind-find-fde): Add.
11022         * Makerules (build-shlib-helper, build-module-helper): Use it.
11023         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11024         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11025         necessary.
11026         (_fini): Call __deregister_frame_info_bases if
11027         __register_frame_info_bases was used to register.
11028         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11029         for GLIBC_2.0.
11030         (__register_frame_info_bases, __register_frame_info_table_bases,
11031         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11032         * elf/Makefile (routines): Add unwind-dw2-fde.
11033         (shared-only-routines): Add unwind-dw2-fde.
11034         * sysdeps/alpha/gccframe.h: New file.
11035         * sysdeps/arm/gccframe.h: New file.
11036         * sysdeps/generic/framestate.c: New file.
11037         * sysdeps/generic/dwarf2.h: New file.
11038         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11039         * sysdeps/generic/unwind-dw2-fde.c: New file.
11040         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11041         * sysdeps/generic/unwind-dw2-fde.h: New file.
11042         * sysdeps/generic/unwind-dw2.c: New file.
11043         * sysdeps/generic/unwind-pe.h: New file.
11044         * sysdeps/generic/unwind.h: New file.
11045         * sysdeps/hppa/gccframe.h: New file.
11046         * sysdeps/i386/gccframe.h: New file.
11047         * sysdeps/m68k/gccframe.h: New file.
11048         * sysdeps/mips/gccframe.h: New file.
11049         * sysdeps/powerpc/gccframe.h: New file.
11050         * sysdeps/s390/gccframe.h: New file.
11051         * sysdeps/sh/gccframe.h: New file.
11052         * sysdeps/sparc/gccframe.h: New file.
11053         * sysdeps/vax/gccframe.h: New file.
11054         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11055         Set on all architectures except ia64.
11056         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11057         for i386.
11058         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11059         __deregister_frame_info): Move to elf/Versions.
11060         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11061         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11062         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11063         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11064         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11065         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11066         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11067         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11068         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11069         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11070         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11071         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11072         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11073         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11074         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11075         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11076         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11077         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11078
11079 2001-11-15  Jeff Law  <law@redhat.com>
11080
11081         * posix/regex.c (uintptr_t): Do not provide a definition if the
11082         system provided one.
11083
11084 2001-11-13  Roland McGrath  <roland@frob.com>
11085
11086         * stdio-common/tmpfile.c: Moved to ...
11087         * sysdeps/generic/tmpfile.c: ... here.
11088         * sysdeps/mach/hurd/tmpfile.c: New file.
11089
11090         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11091         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11092         (fopenport): Define as weak alias.
11093
11094         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11095         * libio/libioP.h: ... to here.
11096
11097 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11098
11099         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11100         program header twice.  Construct list with the needed information.
11101
11102 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11103
11104         * po/ca.po: Update from translation team.
11105
11106         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11107         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11108         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11109         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11110
11111 2001-11-10  Andreas Jaeger  <aj@suse.de>
11112
11113         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11114         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11115         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11116
11117 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11118
11119         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11120         correctly.
11121         * elf/dl-load.c (is_dst): New function.
11122         (_dl_dst_count): Use is_dst to check for DST variable.
11123         (_dl_dst_substitute): Likewise.
11124
11125 2001-11-09  Roland McGrath  <roland@frob.com>
11126
11127         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11128         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11129         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11130         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11131         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11132         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11133         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11134         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11135         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11136         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11137         * sysdeps/mach/hurd/powerpc/Dist: New file.
11138
11139         * hurd/privports.c (__get_privileged_ports):
11140         Only contact the proc server if necessary for this call.
11141         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11142         Check error return for mach_port_mod_refs.
11143
11144 2001-11-09  Andreas Schwab  <schwab@suse.de>
11145
11146         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11147
11148 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11149
11150         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11151         object is always the last in the list.
11152         (_dl_map_object_from_fd): Delete code to remove from object list
11153         when DF_1_NOOPEN is seen.  This is done in lose.
11154
11155 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11156
11157         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11158
11159 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11160
11161         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11162         HWCAP_CHECK macro code.
11163
11164         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11165         Now returns MAP_FAILED on error.
11166         * elf/rtld.c: Adjust caller.
11167         * sysdeps/generic/dl-cache.c: Likewise.
11168         * sysdeps/generic/ldsodefs.h: Adjust description.
11169
11170         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11171         (_dl_check_map_versions): Likewise.
11172
11173 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11174
11175         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11176         _dl_signal_error directly, always use lose.  Set fd to -1 after
11177         file is closed.
11178         (lose): Don't call close if fd == -1.
11179
11180 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11181
11182         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11183          Also fix typo @code {mbsinit} to @code{mbsinit}.
11184
11185 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11186
11187         * elf/dl-profile.c: Replace state variable with simple flag named
11188         running.  Remove commented-out code.
11189
11190         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11191         (_dl_init_paths): Likewise.
11192         (_dl_map_object_from_fd): Likewise.
11193         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11194
11195 2001-11-06  Roland McGrath  <roland@frob.com>
11196
11197         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11198         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11199
11200         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11201         sysdeps/powerpc/elf/sysdep.h.
11202         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11203
11204 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11205
11206         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11207         speed.
11208         (process_envvars): Some more optimizations.
11209         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11210
11211         * elf/elf.h: Add dynamic tag definitions for prelinking.
11212
11213         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11214         Rewrite code to remove environment varables for SUID binaries.
11215         Small optimization in LD_PROFILE handling.
11216         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11217         changes.
11218         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11219
11220         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11221
11222         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11223         strings.  Change type of second parameter.
11224         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11225         for last change.
11226
11227         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11228
11229 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11230
11231         * manual/string.texi: Fix typos.
11232         * manual/examples/argp-ex2.c: Likewise.
11233
11234 2001-11-05  Roland McGrath  <roland@frob.com>
11235
11236         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11237         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11238         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11239         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11240         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11241         here, put under [__ELF__].
11242
11243 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11244
11245         * manual/charset.texi: Extensive editing work.
11246         * manual/nss.texi: Likewise.
11247         Changes by Dennis Grace <dgrace@us.ibm.com>.
11248
11249 2001-11-04  Roland McGrath  <roland@frob.com>
11250
11251         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11252         parameter to dir_mkfile.
11253
11254 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11255
11256         * string/bits/string2.h (__strndup): If n is smaller than len, set
11257         len to n + 1.
11258         * string/tester.c (test_strndup): New function.
11259         (main): Call it.
11260
11261 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11262
11263         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11264
11265         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11266         * scripts/cpp: New file.
11267
11268         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11269         for rtld_search_dirs content.  Minor optimizations.
11270
11271 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11272
11273         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11274         avoiding unnecessary duplication.
11275
11276 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11277
11278         * elf/dl-load.c (_dl_map_object): If library was found using
11279         LD_LIBRARY_PATH, don't try RUNPATH list.
11280
11281 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11282
11283         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11284         Correct second argument of register_dump call.
11285         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11286         Likewise.
11287
11288 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11289
11290         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11291         modules.
11292         * iconvdata/TESTS: Likewise.
11293         * iconvdata/gconv-modules: Likewise.
11294         * iconvdata/ibm1132.c: New file.
11295         * iconvdata/ibm1132.h: New file.
11296         * iconvdata/ibm1133.c: New file.
11297         * iconvdata/ibm1133.h: New file.
11298         * iconvdata/ibm1162.c: New file.
11299         * iconvdata/ibm1162.h: New file.
11300         * iconvdata/testdata/IBM1132: New file.
11301         * iconvdata/testdata/IBM1132..UTF8: New file.
11302         * iconvdata/testdata/IBM1133: New file.
11303         * iconvdata/testdata/IBM1133..UTF8: New file.
11304         * iconvdata/testdata/IBM1162: New file.
11305         * iconvdata/testdata/IBM1162..UTF8: New file.
11306         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11307
11308         * string/string.h: Fix typo in comment.
11309         * wcsmbs/wchar.h: Likewise.
11310
11311 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
11312
11313         * manual/getopt.texi (getopt_long, getopt_long_only): Include
11314         const in type of longopts parameter.
11315
11316 2001-10-29  Andreas Jaeger  <aj@suse.de>
11317
11318         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11319
11320 2001-10-29  Kevin Ryde  <user42@zip.com.au>
11321
11322         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11323         output, clarify `#' behaviour on 0.
11324         (Floating-Point Conversions): Clarify that %g only uses %e when
11325         the exponent would be greater than 1.
11326
11327 2001-10-28  Roland McGrath  <roland@frob.com>
11328
11329         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11330         * sysdeps/mach/powerpc/machine-sp.h: New file.
11331         * sysdeps/mach/powerpc/sysdep.h: New file.
11332         * sysdeps/mach/powerpc/thread_state.h: New file.
11333
11334         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11335         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
11336         expect to need the same thing on every platform.
11337
11338         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11339         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11340
11341         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11342         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11343         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11344         Move all these assembly-related definitions to ...
11345         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11346
11347         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11348         by Peter Bruin <pjbruin@dds.nl>.
11349
11350         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11351         packing results for a `poll' call.
11352
11353 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11354
11355         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11356         correctly.
11357         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11358         bracket expression.
11359
11360         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11361         nrules value.
11362         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11363
11364 2001-10-24  H.J. Lu  <hjl@gnu.org>
11365
11366         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11367         Use __BEGIN_DECLS/__END_DECLS around prototypes.
11368         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11369
11370 2001-10-21  Jim Meyering  <meyering@lucent.com>
11371
11372         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
11373         this code would end up calling gettext even in packages built
11374         with --disable-nls.
11375         * posix/getopt.c (_): Likewise.
11376         * posix/regex.c (_): Likewise.
11377
11378 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11379
11380         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11381         lookup not ip6.int.
11382         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11383         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11384
11385 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
11386
11387         * misc/sys/cdefs.h (__attribute_used__): Define.
11388         * elf/rtld.c (_dl_start): Add __attribute_used__.
11389         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11390
11391 2001-10-25  Andreas Schwab  <schwab@suse.de>
11392
11393         * stdlib/a64l.c: Expect least significant digit first.
11394         * stdlib/l64a.c: Produce least significant digit first.
11395         * stdlib/Makefile (tests): Add test-a64l.
11396         * stdlib/test-a64l.c: New file.
11397         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11398
11399 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
11400
11401         * po/sk.po: Update from translation team.
11402
11403 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
11404
11405         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11406
11407 2001-10-18  Andreas Schwab  <schwab@suse.de>
11408
11409         * math/libm-test.inc (print_ulps): Print ulp values rounded to
11410         next whole number.
11411         (print_function_ulps): Likewise.
11412         (print_complex_function_ulps): Likewise.
11413         (print_max_error): Likewise.
11414         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
11415
11416 2001-10-16  Andreas Schwab  <schwab@suse.de>
11417
11418         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11419         implementation.
11420
11421         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11422         BSD_SETJMP or BSD__SETJMP is defined, resp.
11423         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11424         a tail call to __sigsetjmp that would require extending the
11425         caller's frame.
11426         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11427         * sysdeps/m68k/bsd-setjmp.S: Deleted.
11428         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11429         Reported by Jes Sorensen <jes@trained-monkey.org>.
11430
11431 2001-10-16  Andreas Jaeger  <aj@suse.de>
11432
11433         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11434         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
11435         close PR libc/2589.
11436
11437 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
11438
11439         * po/ca.po: New file.  Contributed by the translation team.
11440
11441 2001-10-15  Ralf Baechle  <ralf@gnu.org>
11442
11443         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11444         a varargs prototype.  Remove dependency from kernel header files.
11445
11446         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11447         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11448
11449 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11450
11451         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11452         to generate hexadecimal identifier.
11453         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11454
11455 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
11456
11457         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11458
11459 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11460
11461         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11462         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11463         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11464
11465         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11466         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11467         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11468         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11469         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11470         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11471
11472         * timezone/africa: Update from tzdata2001d.
11473         * timezone/asia: Likewise.
11474         * timezone/australasia: Likewise.
11475         * timezone/backward: Likewise.
11476         * timezone/europe: Likewise.
11477         * timezone/leapseconds: Likewise.
11478         * timezone/northamerica: Likewise.
11479         * timezone/southamerica: Likewise.
11480         * timezone/zone.tab: Likewise.
11481
11482 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11483
11484         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11485         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11486
11487 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
11488
11489         * elf/elf.h (PT_TLS): New definition.
11490
11491 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
11492
11493         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11494         bits/errno.h
11495
11496 2001-10-07  Roland McGrath  <roland@frob.com>
11497
11498         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11499
11500 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
11501
11502         * elf/elf.h: Add more ELFOSABI_* constants.
11503
11504 2001-10-04  Ben Collins  <bcollins@debian.org>
11505
11506         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11507         decleration of __need_wchar_t.
11508
11509 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
11510
11511         * string/bits/string2.h (__strsep_g): Add prototype.
11512         (__strsep): Use it.
11513         * string/Versions (__strsep): Remove.
11514         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11515
11516 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
11517
11518         * manua/llio.texi: Clarify file references added by mmap.
11519         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11520
11521 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
11522
11523         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11524         Add sc_loadrs and sc_rbs_bas to match current kernel.
11525
11526 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11527
11528         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11529
11530         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11531
11532 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11533
11534         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11535         object has been bumped because of relocation dependency, avoid
11536         duplicates in l_scope.
11537         (show_scope): Fix typos.
11538         * elf/Makefile: Add rules to build and run reldep6.
11539         * elf/reldep6.c: New file.
11540         * elf/reldep6mod0.c: New file.
11541         * elf/reldep6mod1.c: New file.
11542         * elf/reldep6mod2.c: New file.
11543         * elf/reldep6mod3.c: New file.
11544         * elf/reldep6mod4.c: New file.
11545
11546 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
11547
11548         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11549         sparc64_fixup_plt.
11550         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
11551         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11552         for non-lazy binding. Fix .plt[32768+] handling.
11553         (elf_machine_plt_value): Don't add addend.
11554         (elf_machine_rela): Call sparc64_fixup_plt instead of
11555         elf_machine_fixup_plt.
11556         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11557         dynamic linker at 0xfffff800XXXXXXXX.
11558
11559         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11560
11561 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
11562
11563         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11564
11565 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
11566
11567         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11568         declare __cmsg_data field if its size would be bigger than 0.
11569         (CMSG_DATA): Adjust accordingly.
11570         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11571         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11572         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11573         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11574         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11575         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11576         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11577
11578 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
11579
11580         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11581         * iconvdata/testdata/IBM1160: New file.
11582         * iconvdata/testdata/IBM1160..UTF8: New file.
11583         * iconvdata/testdata/IBM1161: New file.
11584         * iconvdata/testdata/IBM1161..UTF8: New file.
11585         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11586
11587 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11588
11589         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11590         UL_SETFSIZE computations better.
11591
11592         * rt/Makefile: Remove use of filter for librt again.
11593
11594         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11595         UL_SETFSIZE computations better.
11596
11597         * string/Versions: Export __strsep for GLIBC_2.2.5.
11598         * string/bits/string2.h: Define all __STRING_INLINE functions if
11599         _FORCE_INLINES is defined.
11600         Use int instead of char of parameter types.
11601         (__strsep): Don't use __strsep_g.  Don't define it.
11602         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11603         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11604         __strcpy_small.
11605         (__stpcpy_a_small): Renamed from __stpcpy_small.
11606         (__strcspn_c1): Don't define if _FORCE_INLINES.
11607         (__strspn_c1): Likewise.
11608
11609 2001-09-22  Ben Collins  <bcollins@debian.org>
11610
11611         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11612         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
11613         * sysdeps/ia64/bits/sigaction.h: Likewise.
11614         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11615
11616 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
11617
11618         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11619
11620 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
11621
11622         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11623
11624 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11625
11626         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11627
11628 2001-09-20  H.J. Lu  <hjl@gnu.org>
11629
11630         * include/dlfcn.h (__RTLD_SPROF): New definiton.
11631         * elf/dl-open.c (dl_open_worker): Return immediately after loading
11632         for __RTLD_SPROF.
11633         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11634         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11635
11636 2001-09-20  H.J. Lu  <hjl@gnu.org>
11637
11638         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11639         don't add 1.
11640
11641 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11642
11643         * nss/getent.c: Accept -s parameter to overwrite rules in
11644         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
11645
11646         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11647         with as many ".0" as necessary to form a complete address
11648         inet_network understands.
11649
11650         * nss/getent.c: Various cleanups.  Use simpler and fewer function
11651         calls.
11652
11653 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11654
11655         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11656         _JMPBUF_UNWINDS.
11657         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11658
11659 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11660
11661         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11662         IBM1161.
11663         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11664         * iconvdata/ibm1160.c: New file.
11665         * iconvdata/ibm1160.h: New file.
11666         * iconvdata/ibm1161.c: New file.
11667         * iconvdata/ibm1161.h: New file.
11668         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11669
11670 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
11671
11672         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11673         difference between base address and first PT_LOAD's virtual address,
11674         not the base address.
11675
11676 2001-09-11  Tom Rix  <trix@redhat.com>
11677
11678         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
11679         ifdef for __getopt_clean_environment.
11680         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11681
11682 2001-09-22  Andreas Jaeger  <aj@suse.de>
11683
11684         * elf/reldep4.c (main): Add proper prototype to fix warning.
11685
11686         * elf/reldep5.c (main): Remove unused variable.
11687
11688         * math/math_private.h: Add prototypes.
11689
11690 2001-09-21  Andreas Jaeger  <aj@suse.de>
11691
11692         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11693         * sysdeps/x86_64/Dist: New file.
11694         * sysdeps/x86_64/soft-fp/Dist: New file.
11695
11696         * sysdeps/gnu/Dist: Remove eval.c.
11697
11698 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
11699
11700         * malloc/memusage.c (realloc): Don't count already allocated
11701         memory in the sums.
11702         (me): Always use dlsym() to find the real implementations.
11703
11704         * malloc/memusage.sh: Make -n option actually do something.
11705
11706 2001-09-20  Andreas Jaeger  <aj@suse.de>
11707
11708         * elf/elf.h (R_390_NUM): Correct value.
11709
11710         * Versions.def: Add missing versions 2.2.3 for libthread_db and
11711         libpthread.
11712
11713         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11714         for x86-64, install x86-64 into */lib64.
11715
11716         * shlib-versions: Add x86-64.
11717
11718         * elf/elf.h: Add x86-64 relocations.
11719
11720 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
11721
11722         * po/fr.po: Update from translation team.
11723
11724 2001-09-19  Andreas Jaeger  <aj@suse.de>
11725
11726         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11727         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11728         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11729         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11730         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11731         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11732         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11733         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11734         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11735         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11736         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11737         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11738         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11739         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11740         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11741         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11742         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11743         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11744         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11745         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11746         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11747         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11748         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11749         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11750         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11751         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11752         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11753         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11754         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11755         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11756         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11757         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11758         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11759         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11760         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11761         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11762         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11763         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11764         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11765         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11766         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11767         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11768         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11769         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11770         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11771         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11772         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11773         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11774         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11775         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11776         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11777         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11778         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11779         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11780         * sysdeps/unix/x86_64/sysdep.S: New file.
11781         * sysdeps/unix/x86_64/sysdep.h: New file.
11782         * sysdeps/x86_64/Implies: New file.
11783         * sysdeps/x86_64/Makefile: New file.
11784         * sysdeps/x86_64/Versions: New file.
11785         * sysdeps/x86_64/__longjmp.S: New file.
11786         * sysdeps/x86_64/abort-instr.h: New file.
11787         * sysdeps/x86_64/atomicity.h: New file.
11788         * sysdeps/x86_64/bits/endian.h: New file.
11789         * sysdeps/x86_64/bits/setjmp.h: New file.
11790         * sysdeps/x86_64/bits/string.h: New file.
11791         * sysdeps/x86_64/bp-asm.h: New file.
11792         * sysdeps/x86_64/bsd-_setjmp.S: New file.
11793         * sysdeps/x86_64/bsd-setjmp.S: New file.
11794         * sysdeps/x86_64/dl-machine.h: New file.
11795         * sysdeps/x86_64/elf/initfini.c: New file.
11796         * sysdeps/x86_64/elf/start.S: New file.
11797         * sysdeps/x86_64/ffs.c: New file.
11798         * sysdeps/x86_64/ffsll.c: New file.
11799         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
11800         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
11801         * sysdeps/x86_64/fpu/e_acosl.c: New file.
11802         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
11803         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
11804         * sysdeps/x86_64/fpu/e_expl.c: New file.
11805         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
11806         * sysdeps/x86_64/fpu/e_log10l.S: New file.
11807         * sysdeps/x86_64/fpu/e_log2l.S: New file.
11808         * sysdeps/x86_64/fpu/e_logl.S: New file.
11809         * sysdeps/x86_64/fpu/e_powl.S: New file.
11810         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
11811         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
11812         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
11813         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
11814         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
11815         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
11816         * sysdeps/x86_64/fpu/fegetenv.c: New file.
11817         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
11818         * sysdeps/x86_64/fpu/fegetround.c: New file.
11819         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
11820         * sysdeps/x86_64/fpu/fesetenv.c: New file.
11821         * sysdeps/x86_64/fpu/fesetround.c: New file.
11822         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
11823         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
11824         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
11825         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
11826         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
11827         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
11828         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
11829         * sysdeps/x86_64/fpu/s_atanl.c: New file.
11830         * sysdeps/x86_64/fpu/s_cosl.S: New file.
11831         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
11832         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
11833         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
11834         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
11835         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
11836         * sysdeps/x86_64/fpu/s_logbl.c: New file.
11837         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
11838         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
11839         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
11840         * sysdeps/x86_64/fpu/s_rintl.c: New file.
11841         * sysdeps/x86_64/fpu/s_significandl.c: New file.
11842         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
11843         * sysdeps/x86_64/fpu/s_sinl.S: New file.
11844         * sysdeps/x86_64/fpu/s_tanl.S: New file.
11845         * sysdeps/x86_64/gmp-mparam.h: New file.
11846         * sysdeps/x86_64/hp-timing.c: New file.
11847         * sysdeps/x86_64/hp-timing.h: New file.
11848         * sysdeps/x86_64/htonl.S: New file.
11849         * sysdeps/x86_64/memusage.h: New file.
11850         * sysdeps/x86_64/setjmp.S: New file.
11851         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
11852         * sysdeps/x86_64/stackinfo.h: New file.
11853         * sysdeps/x86_64/sysdep.h: New file.
11854         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
11855
11856         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
11857         L Moshier.
11858
11859 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11860
11861         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
11862         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
11863
11864 2001-09-18  Andreas Schwab  <schwab@suse.de>
11865
11866         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
11867         list, now that l_scope is a pointer.
11868
11869         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
11870         scope list.
11871
11872 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
11873
11874         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
11875         (elf_machine_rela_relative): Add a missing declaration.
11876
11877 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
11878
11879         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
11880         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
11881         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
11882         ldd-rewrite scripts.
11883
11884 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11885
11886         * elf/ldd.bash.in: Update copyright message.
11887
11888 2001-09-17  H.J. Lu  <hjl@gnu.org>
11889
11890         * hurd/hurdmalloc.c (bcopy): Removed.
11891         (realloc): Replace bcopy with memcpy.
11892         * hurd/path-lookup.c (file_name_path_scan): Likewise.
11893         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
11894         * sunrpc/rpcinfo.c (pmapdump): Likewise.
11895
11896         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
11897         (gethostbyaddr): Likewise.
11898         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
11899
11900 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11901
11902         * sysdeps/gnu/eval.c: Removed.
11903
11904 2001-09-18  Andreas Jaeger  <aj@suse.de>
11905
11906         * sysdeps/i386/fpu/s_logbl.S: Move to ...
11907         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
11908
11909         * sysdeps/i386/fpu/s_rintl.S: Move to ...
11910         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
11911
11912         * sysdeps/i386/fpu/s_significandl.S: Move to ...
11913         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
11914
11915 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
11916
11917         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11918         nrules value.
11919
11920 2001-09-14  H.J. Lu  <hjl@gnu.org>
11921
11922         * sysdeps/mips/fpu/libm-test-ulps: Updated.
11923
11924 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
11925
11926         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
11927         Patch by Florian La Roche <laroche@redhat.com>.
11928
11929         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
11930
11931         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
11932         ETHER_CRC_LEN.
11933
11934 2001-09-14  Andreas Schwab  <schwab@suse.de>
11935
11936         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
11937         Sumner <bls@sgi.com>.
11938         * posix/execlp.c: Likewise.
11939
11940 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
11941
11942         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
11943         is already found earlier in the search scope.
11944
11945 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
11946
11947         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
11948         filter.
11949
11950 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
11951
11952         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
11953
11954 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
11955
11956         * config.h.in: Enforce optimization to be used.
11957         * Makeconfig (preprocess-versions): Define ASSEMBLER.
11958         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
11959         * posix/Makefile (annexc-CFLAGS): Define to -O.
11960         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
11961
11962 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
11963
11964         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
11965         Patch by Stephan Kulow.
11966
11967 2001-09-08  Ben Collins  <bcollins@debian.org>
11968
11969         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
11970         usage of RESOLVE() (r_type, not reloc->r_type).
11971
11972 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
11973
11974         * elf/dl-object.c: Avoid allocating extra memory block for name.
11975         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
11976         allocated separately.
11977         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
11978
11979 2001-09-08  H.J. Lu  <hjl@gnu.org>
11980
11981         * po/zh_TW.po: Fix a typo.
11982
11983 2001-09-07  Tom Rix  <trix@redhat.com>
11984
11985         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
11986
11987 2001-08-26  Tom Rix  <trix@redhat.com>
11988
11989         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
11990         command line options.
11991         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
11992         * sysdeps/unix/sysv/aix/start.c: Removed.
11993         * sysdeps/unix/sysv/aix/start-libc.c: New file.
11994         * sysdeps/unix/sysv/aix/init-first.c: New file.
11995         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
11996
11997 2001-09-08  Ben Collins  <bcollins@debian.org>
11998
11999         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12000         * sysdeps/generic/dl-machine.h: Likewise.
12001         * sysdeps/hppa/dl-fptr.c: Likewise.
12002         * sysdeps/ia64/dl-fptr.c: Likewise.
12003         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12004         * sysdeps/mips/dl-machine.h: Likewise.
12005         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12006         * sysdeps/powerpc/dl-machine.c: Likewise.
12007
12008 2001-09-07  Ben Collins  <bcollins@debian.org>
12009
12010         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12011
12012         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12013
12014 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12015
12016         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12017         dependencies if necessary.
12018
12019         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12020         loaded directly) determine length if l_initfini list by iterating
12021         over its elements.  Minor optimizations.
12022         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12023         for dependency objects.
12024         If object was already loaded check whether any of the dependencies
12025         is already on the relocation dependency list.  If yes, remove the
12026         latter.  Minor optimizations.
12027         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12028         maps here.  Search l_initfini list only if the object was loaded
12029         directly and not only as a dependency.
12030         (_dl_lookup_symbol): Add relocation dependency also if object
12031         is not in global scope.  Remove test for self-reference here.
12032         (_dl_lookup_versioned_symbol): Likewise.
12033         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12034         element of first name record.
12035         * elf/loadtest.c: Add some more test to recognize early if an object
12036         wasn't unloaded.
12037         * elf/Makefile: Add rules to build and run reldep5.
12038         * elf/reldep5.c: New file.
12039         * elf/reldepmod5.c: New file.
12040         * elf/reldepmod6.c: New file.
12041
12042         * elf/reldep2.c: Fix typo.
12043
12044 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12045
12046         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12047         elements.  Change l_scope to be a pointer only.
12048         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12049         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12050         here add searchlist of newly open file to the dependency's scope.
12051         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12052         only searchlist from its scope.  Free own scope array if necessary.
12053         * elf/Makefile (tests): Add dblload and dblunload now.
12054
12055 2001-09-06  Andreas Jaeger  <aj@suse.de>
12056
12057         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12058         Stephen L Moshier.
12059
12060 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12061
12062         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12063         they both fail.
12064         * elf/dblload.c: New file.
12065         * elf/dblloadmod1.c: New file.
12066         * elf/dblloadmod2.c: New file.
12067         * elf/dblloadmod3.c: New file.
12068         * elf/dblunload.c: New file.
12069
12070 2001-09-04  Richard Henderson  <rth@redhat.com>
12071
12072         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12073         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12074
12075 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12076
12077         Correct very misleading message for error in failed runtime relocation.
12078         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12079         place of the error.
12080         (_dl_signal_cerror): Likewise.
12081         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12082         * elf/dl-close.c: Likewise.
12083         * elf/dl-deps.c: Likewise.
12084         * elf/dl-load.c: Likewise.
12085         * elf/dl-lookup.c: Likewise.
12086         * elf/dl-open.c: Likewise.
12087         * elf/dl-reloc.c: Likewise.
12088         * elf/dl-sym.c: Likewise.
12089         * elf/dl-version.c: Likewise.
12090         * sysdeps/generic/dl-sysdep.c: Likewise.
12091
12092 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12093
12094         * iconv/strtab.c (strtabinit): Initialize null Strent.
12095         (newstring): Move len == 0 handling...
12096         (strtabadd): ...here.
12097         If len == 1, return null Strent.
12098         When inserting a suffix of an existing string, check if
12099         it is not equal to some suffix already recorded.
12100         Copy left and right members over if adding longer string.
12101
12102 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12103
12104         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12105
12106         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12107         (__syscall_gethostname): Add prototype.
12108
12109 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12110
12111         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12112
12113 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12114
12115         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12116
12117 2001-08-27  Roland McGrath  <roland@frob.com>
12118
12119         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12120         short, copy that much into NAME anyway before returning error.
12121
12122 2001-09-01  Richard Henderson  <rth@redhat.com>
12123
12124         * sysdeps/alpha/elf/Dist: Remove file.
12125         * sysdeps/alpha/elf/Makefile: Remove file.
12126         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12127         * sysdeps/alpha/elf/crtend.S: Remove file.
12128         * sysdeps/alpha/elf/initfini.c: New file.
12129
12130 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12131
12132         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12133         * iconv/tst-iconv3.c: Likewise.
12134
12135 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12136
12137         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12138
12139 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12140
12141         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12142         export it.
12143         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12144         * iconv/iconv_prog.c (insert_cache): New function.
12145         (print_known_names): If cache is used call insert_cache to use the
12146         information from the cache [PR libc/2509].
12147
12148 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12149
12150         * time/strptime.c (strptime_internal): Recognize 'l' format and
12151         handle it like 'I' for symmetry with strftime.
12152
12153 2001-08-31  Richard Henderson  <rth@redhat.com>
12154
12155         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12156         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12157         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12158         (print_statistics): Make scalar unsigned long long.
12159         * sysdeps/alpha/hp-timing.h: New file.
12160
12161 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12162
12163         * stdio-common/perror.c (perror): Save errno early, pass it
12164         down to perror_internal.
12165         (perror_internal): Add errnum argument.
12166
12167 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12168
12169         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12170         Don't add old memory content for R_ALPHA_REFQUAD.
12171
12172 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12173
12174         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12175         memory correctly.
12176
12177         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12178         instead of open, __close instead of close, __getpagesize instead
12179         of getpagesize.
12180
12181         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12182         instead of strnlen.
12183         * include/string.h (strndupa): Redefine here to use __strnlen
12184         instead of strnlen.
12185         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12186
12187         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12188         connected).
12189
12190 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12191
12192         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12193         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12194         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12195         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12196         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12197         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12198         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12199
12200 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12201
12202         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12203
12204 2001-08-30  Andreas Jaeger  <aj@suse.de>
12205
12206         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12207         contributed Stephen L Moshier.
12208
12209 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12210
12211         * sunrpc/etc.rpc (sgi_fam): Add.
12212
12213 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12214
12215         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12216
12217 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12218
12219         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12220         first is from a previous call.
12221         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12222
12223 2001-08-29  Andreas Schwab  <schwab@suse.de>
12224
12225         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12226
12227 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12228
12229         * config.make.in (INSTALL_SCRIPT): Define.
12230         * Makeconfig (INSTALL_SCRIPT): Define.
12231         * Makerules (do-install-script): New macro to install scripts using
12232         INSTALL_SCRIPT.
12233         (install-bin-script): New rule to install scripts with
12234         do-install-script.
12235         (install-bin-script-nosubdir): New rule.
12236         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12237         (distinfo-vars): Add $(install-bin-script).
12238         * Rules (others): Likewise.
12239         * Makefile (glibcbug): Install with install-bin-script.
12240         * debug/Makefile (xtrace): Likewise.
12241         (catchsegv): Likewise.
12242         * elf/Makefile (ldd): Likewise.
12243         * malloc/Makefile (mtrace): Likewise.
12244         * timezone/Makefile (tzselect): Likewise.
12245
12246 2001-08-29  H.J. Lu  <hjl@gnu.org>
12247
12248         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12249         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12250         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12251
12252 2001-08-29  Andreas Schwab  <schwab@suse.de>
12253
12254         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12255
12256 2001-08-28  H.J. Lu  <hjl@gnu.org>
12257
12258         * Makeconfig (combreloc-LDFLAGS): New variable.
12259         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12260         * config.make.in (have-z-combreloc): New variable.
12261         * configure.in: Substitute libc_cv_z_combreloc.
12262
12263 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12264
12265         * po/sv.po: Update from translation team.
12266         * po/fr.po: Likewise.
12267         * po/da.po: Likewise.
12268
12269 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12270
12271         * Makerules: Fix a typo: MD% -> MD5.
12272
12273 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12274
12275         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12276         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12277
12278 2001-08-28  Andreas Jaeger  <aj@suse.de>
12279
12280         * manual/libc-texinfo.sh: Add entry about free manuals.
12281
12282         * manual/contrib.texi (Contributors): Fix cross reference.
12283
12284         * manual/libc.texinfo (Copying): Include freemanuals.
12285
12286         * manual/Makefile (appendices): Add freemanuals.
12287
12288         * manual/freemanuals.texi: New file.
12289         Patch by Brian Youmans <3diff@gnu.org>.
12290
12291         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12292         smaller table.
12293
12294         * manual/math.texi (Errors in Math Functions): Fix grammar, start
12295         table on separate page.
12296         Patch by Brian Youmans <3diff@gnu.org>.
12297
12298 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12299
12300         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
12301         the connection went down after we first used it try to connect
12302         again and resend the message before printing to the console.
12303         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12304
12305 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12306
12307         * string/tst-strlen.c (main): Test strnlen (, -1) too.
12308         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12309         bit set.
12310
12311 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12312
12313         * iconv/strtab.c (searchstring): Use correct length for comparison.
12314         (strtabadd): Account total size correct if new string has old string as
12315         substring.
12316
12317 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12318
12319         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12320
12321 2001-08-27  Andreas Jaeger  <aj@suse.de>
12322
12323         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12324
12325         * math/libm-test.inc (j0_test): Add extra tests.
12326         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12327         not x, in Hankel approximation.
12328         Patches by Stephen L Moshier.
12329
12330 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12331
12332         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12333         link_map.
12334
12335         * configure.in: Fix test for .rela.dyn section.
12336
12337         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12338
12339 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12340
12341         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12342         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12343         Pass type_class to _dl_lookup_*.
12344         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12345         Pass around just type_class instead of noexec, noplt pair.
12346         (_dl_lookup_versioned_symbol): Likewise.
12347         (_dl_lookup_symbol_skip): Pass around just type_class instead of
12348         noexec, noplt pair.
12349         (_dl_lookup_versioned_symbol_skip): Likewise.
12350         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12351         * elf/do-lookup.h (do_lookup): Likewise.
12352         * include/link.h (struct link_map): Replace noexec and noplt fields
12353         in l_lookup_cache with type_class field.
12354         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12355         ELF_RTYPE_CLASS_COPY): Define.
12356         Adjust prototypes for _dl_lookup_symbol and
12357         _dl_lookup_versioned_symbol.
12358         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12359         elf_machine_lookup_noexec_p): Remove.
12360         (elf_machine_type_class): Define.
12361         * sysdeps/arm/dl-machine.h: Likewise.
12362         * sysdeps/hppa/dl-machine.h: Likewise.
12363         * sysdeps/cris/dl-machine.h: Likewise.
12364         * sysdeps/i386/dl-machine.h: Likewise.
12365         * sysdeps/ia64/dl-machine.h: Likewise.
12366         * sysdeps/m68k/dl-machine.h: Likewise.
12367         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12368         * sysdeps/mips/dl-machine.h: Likewise.
12369         * sysdeps/powerpc/dl-machine.h: Likewise.
12370         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12371         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12372         * sysdeps/sh/dl-machine.h: Likewise.
12373         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12374         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12375
12376 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12377
12378         * manual/message.texi (Advanced gettext functions): Change
12379         description of plural forms for Slovak.
12380         Reported by Marcel Telka <marcel@telka.sk>.
12381
12382         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12383         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12384
12385 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12386
12387         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12388         typo.  Patch by Florian La Roche <laroche@redhat.com>.
12389
12390 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12391
12392         * include/link.h (struct link_map): Add l_lookup_cache element.
12393         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12394         (RESOLVE_MAP): Likewise.
12395         (_dl_relocate_object): Remove cache initialization.
12396         * elf/dl-lookup.c: Rip out cache handling code.
12397         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12398         declarations.
12399
12400         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12401         remove some __builtin_expect.
12402         (_dl_lookup_versioned_symbol): Likewise.
12403
12404         * config.h.in: Add HAVE_Z_COMBRELOC.
12405         * configure.in: Add test for -z combreloc.
12406
12407         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12408         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
12409         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
12410         case to almost no code.
12411
12412 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
12413
12414         * po/tr.po: Update from translation team.
12415
12416 2001-08-24  Andreas Jaeger  <aj@suse.de>
12417
12418         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12419         make clean works.
12420
12421 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12422
12423         * elf/rtld.c (print_statistics): Printf % after percent values.
12424         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12425
12426         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12427         don't have to compute the hash value and initialize current_value.
12428         Move reference_name variable to where it is needed.
12429         (_dl_lookup_versioned_symbol): Likewise.
12430
12431 2001-08-24  Roland McGrath  <roland@frob.com>
12432
12433         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12434         Just test that strerror returns non-null for a few errno codes.
12435
12436 2001-08-23  Roland McGrath  <roland@frob.com>
12437
12438         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12439         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12440
12441         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12442
12443         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12444         __mach_reply_port.
12445
12446 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12447
12448         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12449         returns NULL.
12450
12451         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12452         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12453         doesn't do it.
12454         * elf/rtld.c: Include <sys/param.h>.
12455         * elf/dl-reloc.c: Likewise.
12456
12457 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12458
12459         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12460         empty to prevent junk from being generated.
12461         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12462
12463 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12464
12465         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12466         records.  Rename endrel to relative, initialize it to r, and use it
12467         in elf_machine_rel_relative calls.  Point r after relative relocs.
12468
12469 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12470
12471         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12472         of R_386_NONE.
12473
12474 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12475
12476         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12477         necessary.  Undefine newly defined macros at the end.
12478         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12479         Rename from elf_machine_rel_relative.
12480         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12481         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12482         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12483         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12484         Likewise.
12485         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12486         Likewise.
12487         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12488         Fix argument types.
12489         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12490         Fix argument types.
12491         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12492         Likewise.  Fix argument types.
12493         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12494         Likewise.  Fix argument types.
12495         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12496         Fix argument types.
12497         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12498         ElfW(Rel) in argument.
12499         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12500         function.
12501
12502 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
12503
12504         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12505
12506 2001-08-24  Andreas Jaeger  <aj@suse.de>
12507
12508         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12509         Stephen L Moshier <moshier@mediaone.net>.
12510
12511 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12512
12513         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12514         first if RELCOUNT is set.
12515
12516         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12517         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12518         elf_machine_rel_relative.
12519         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12520         Minor optimizations.
12521         * sysdeps/arm/dl-machine.h: Likewise.
12522         * sysdeps/cris/dl-machine.h: Likewise.
12523         * sysdeps/hppa/dl-machine.h: Likewise.
12524         * sysdeps/i386/dl-machine.h: Likewise.
12525         * sysdeps/ia64/dl-machine.h: Likewise.
12526         * sysdeps/m68k/dl-machine.h: Likewise.
12527         * sysdeps/mips/dl-machine.h: Likewise.
12528         * sysdeps/powerpc/dl-machine.h: Likewise.
12529         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12530         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12531         * sysdeps/sh/dl-machine.h: Likewise.
12532         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12533         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12534
12535 2001-08-23  Roland McGrath  <roland@frob.com>
12536
12537         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12538
12539         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12540         sysdeps/mach version.  Implement counting ("recursive") mutexes
12541         on top of cthreads mutexes.
12542         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12543
12544         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12545         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12546         (__libc_cleanup_region_start, __libc_cleanup_region_end,
12547         __libc_clean_end): Define these to call the cleanup function after
12548         normal exit when they're supposed to.
12549
12550         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12551         Take new first arg DOIT, a boolean saying whether to really install
12552         any cleanup handler.
12553         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12554         (__libc_cleanup_end): Likewise.
12555         * sysdeps/generic/bits/libc-lock.h: Same changes.
12556         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12557         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12558         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12559         Likewise.
12560         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12561         * sysdeps/generic/bits/stdio-lock.h
12562         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12563
12564 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12565
12566         * elf/ldconfig.c (search_dir): Remove stale symlinks.
12567
12568 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12569
12570         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12571         functions.
12572         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12573         lookups in cache.
12574         (_dl_lookup_versioned_symbol): Likewise.
12575         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12576         relocation lookup.
12577         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12578         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12579         (lookup_cache, lookup_cache_versioned): Add declarations.
12580
12581 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12582
12583         * stdlib/tst-random.c (main): Swap parameters in fail call.
12584         Patch by Pete Bevin <pete@petebevin.com>.
12585
12586 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12587
12588         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12589
12590 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12591
12592         * malloc/obstack.c: Indent preprocessor directives.
12593         Patch by Jim Meyering <meyering@ascend.com>.
12594
12595         * po/ja.po: Update from translation team.
12596
12597 2001-08-23  Roland McGrath  <roland@frob.com>
12598
12599         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12600
12601         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12602         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12603
12604 2001-08-22  Roland McGrath  <roland@frob.com>
12605
12606         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12607         __libc_lock_define_recursive.
12608         * elf/dl-open.c: Don't declare it here any more.
12609         * elf/dl-close.c: Likewise.
12610         * elf/dl-lookup.c: Likewise.
12611         * elf/dl-iteratephdr.c: Likewise.
12612         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12613         __libc_lock_unlock_recursive.
12614         * elf/dl-close.c (_dl_close): Likewise
12615         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12616         * elf/dl-open.c (_dl_open): Likewise
12617
12618         * sysdeps/generic/bits/libc-lock.h
12619         (__libc_lock_define_recursive): New macro.
12620         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12621         (_IO_lock_lock): Use __libc_lock_lock_recursive.
12622         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12623
12624         * conform/conformtest.pl (checknamespace): Sort the output list.
12625
12626         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12627         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12628         definitions conditional on [__USE_XOPEN].
12629
12630         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12631         these unconditionally, not only use [__USE_BSD], so as to match
12632         the sysdeps/unix/sysv/linux files.
12633
12634 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12635
12636         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12637         avoid warnings.
12638
12639         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12640         DL_LOOKUP_ADDRESS.
12641
12642 2001-08-22  Roland McGrath  <roland@frob.com>
12643
12644         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12645         conditionalization of sa_handler/sa_sigaction member types to
12646         match the sysdeps/unix/sysv/linux file.
12647
12648 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12649
12650         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12651         symbol sizes a bit better.
12652
12653         * sysdeps/ia64/strncpy.S: Complete rewrite.
12654         Contributed by Jakub Jelinek <jakub@redhat.com>.
12655
12656         * string/stratcliff.c (main): Add strncpy test.
12657
12658 2001-08-22  Roland McGrath  <roland@frob.com>
12659
12660         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12661         and don't declare unsetenv or _environ directly.
12662         (unsetenv): Return int, not void.  Use __environ instead of _environ.
12663
12664 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
12665
12666         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12667         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12668         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12669         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12670         test for cmsg struct size.
12671
12672 2001-04-23  Paul Eggert  <eggert@twinsun.com>
12673
12674         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12675         Rename __argc to ___argc in prototypes to avoid compatibility
12676         problems with systems that reserve the identifier "__argc".
12677         Similarly for __argv.
12678
12679 2001-08-21  Roland McGrath  <roland@frob.com>
12680
12681         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12682
12683         * mach/Makefile (tests): Removed.
12684         * mach/hello.c: File removed.
12685
12686 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12687
12688         * po/sv.po: Update from translation team.
12689
12690         * stdio-common/vfscanf.c: Fix handling of %l[].
12691         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12692
12693         * libio/Makefile (tests): Add tst-sscanf.
12694         * libio/tst-sscanf.c: New file.
12695
12696         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12697         * malloc/mtrace.c (tr_where): dli_sname always points to a
12698         non-empty string if != NULL.
12699         Reported by Tim Janik <timj@gtk.org>.
12700
12701 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
12702
12703         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12704         buf.  Free resources on failure.
12705         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12706         (makefd_xprt): Likewise.
12707         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12708         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12709         * sunrpc/auth_unix.c (authunix_create): Likewise.
12710
12711 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
12712
12713         * string/strnlen.c: Remove.
12714         * sysdeps/generic/strnlen.c: New file.
12715         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12716
12717 2001-08-21  Roland McGrath  <roland@frob.com>
12718
12719         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12720         as a macro, not an extern inline function.
12721
12722         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12723         * Versions.def (libc): Add GLIBC_2.2.5 set.
12724         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12725         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12726
12727 2001-08-20  Roland McGrath  <roland@frob.com>
12728
12729         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12730         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12731
12732 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12733
12734         * string/bits/string2.h: Remove strnlen optimization here.
12735         * sysdeps/i386/i486/bits/string.h: Add it here.
12736
12737 2001-08-21  Wolfram Gloger  <wg@malloc.de>
12738
12739         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12740
12741 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12742
12743         * po/gl.po: Update from translation team.
12744
12745 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12746
12747         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12748         * misc/err.c (convert_and_print): Likewise.
12749
12750         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12751         function calls.
12752
12753 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12754
12755         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12756         change of the gregset_t type.
12757         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12758
12759 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12760
12761         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12762
12763 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12764
12765         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12766
12767         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
12768
12769 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
12770
12771         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12772         before calling the cthreads initialization code.
12773
12774 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12775
12776         * argp/argp-help.c: Fix two problems introduced in last change.
12777
12778         * include/dirent.h: Include <dirstream.h> first.
12779
12780 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
12781
12782         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12783
12784         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12785         * sunrpc/xdr_rec.c: Likewise.
12786         * sunrpc/xdr_mem.c: Likewise.
12787         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12788         * sunrpc/rpc_cmsg.c: Likewise.
12789         * sunrpc/getrpcport.c (getrpcport): Likewise.
12790         * sunrpc/clnt_simp.c (callrpc): Likewise.
12791         * sunrpc/clnt_gen.c (clnt_create): Likewise.
12792         * string/envz.c: Likewise.
12793
12794         * po/ko.po: Update from translation team.
12795
12796         * argp/argp-help.c: Handle wide oriented stderr stream.
12797
12798 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
12799
12800         * sysdeps/generic/strtol.c: Little optimizations.  Add some
12801         __builtin_expect.
12802
12803         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
12804
12805         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
12806         * wcsmbs/wcwidth.c (wcwdith): Likewise.
12807         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
12808
12809         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
12810
12811         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
12812
12813         * time/time.h (struct timespec): Use __time_t for tv_sec element.
12814
12815         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
12816         wchar_t for function declarations and defintions.
12817
12818         * misc/sys/select.h: Define __need_time_t before including <time.h>.
12819         Define suseconds_t if it hasn't happened yet.
12820
12821         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
12822
12823         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
12824
12825         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
12826         <stddef.h>.
12827
12828         * conform/data/stddef.h-data: Remove wint_t.
12829
12830         * conform/conformtest.pl: Change namespace test to take #undef
12831         lines into account.
12832
12833         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
12834
12835         * conform/data/sys/socket.h-data: Add sockatmark.
12836
12837 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12838
12839         * io/fts.c: Update from recent BSD source.
12840
12841 2001-08-17  Roland McGrath  <roland@frob.com>
12842
12843         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
12844         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
12845         Likewise.
12846
12847 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12848
12849         * locale/duplocale.c (__duplocale): Also initialize the special
12850         __ctype_* elements.
12851
12852         * conform/data/netdb.h-data: Adjust gai_strerror return type.
12853
12854 2001-08-17  Andreas Jaeger  <aj@suse.de>
12855
12856         * misc/getpass.c: Include wchar.h for prototypes.
12857         * malloc/obstack.c: Likewise.
12858
12859 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12860
12861         * sunrpc/svc_simple.c (universal): Use __write instead of write.
12862
12863         * wcsmbs/wcscoll.c: Also define __wcscoll.
12864         * include/wchar.h: Declare __wcscoll.
12865
12866         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
12867         * libio/vwprintf.c: Likewise.
12868         * libio/wprintf.c: Likewise.
12869
12870         * iconv/gconv_cache.c: Use __munmap instead of munmap.
12871
12872 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
12873
12874         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
12875         instead of mbrtowc.
12876         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
12877         wcslen, and __wcscoll instead of wcscoll.
12878
12879         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
12880
12881         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
12882         __getuid instead of getuid.
12883
12884         * stdio-common/perror.c (perror): Use __close instead of close.
12885         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
12886         * libio/freopen.c (freopen): Likewise.
12887         * libio/freopen64.c (freopen64): Likewise.
12888
12889         * libio/tst-ungetwc2.c (main): Define str const.
12890
12891         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
12892         * libio/fwprintf.c: Also define __fwprintf.
12893         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
12894         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
12895         * assert/assert-perr.c: Likewise.
12896         * assert/assert.c: Likewise.
12897         * gmon/gmon.c: Likewise.
12898         * inet/rcmd.c: Likewise.
12899         * malloc/obstack.c: Likewise.
12900         * misc/err.c: Likewise.
12901         * misc/error.c: Likewise.
12902         * misc/getpass.c: Likewise.
12903         * posix/getopt.c: Likewise.
12904         * resolv/res_hconf.c: Likewise.
12905         * stdio-common/perror.c: Likewise.
12906         * stdio-common/psignal.c: Likewise.
12907         * stdlib/fmtmsg.c: Likewise.
12908         * sunrpc/auth_unix.c: Likewise.
12909         * sunrpc/clnt_perr.c: Likewise.
12910         * sunrpc/clnt_tcp.c: Likewise.
12911         * sunrpc/clnt_udp.c: Likewise.
12912         * sunrpc/clnt_unix.c: Likewise.
12913         * sunrpc/svc_simple.c: Likewise.
12914         * sunrpc/svc_tcp.c: Likewise.
12915         * sunrpc/svc_udp.c: Likewise.
12916         * sunrpc/svc_unix.c: Likewise.
12917         * sunrpc/xdr.c: Likewise.
12918         * sunrpc/xdr_array.c: Likewise.
12919         * sunrpc/xdr_rec.c: Likewise.
12920         * sunrpc/xdr_ref.c: Likewise.
12921         * sysdeps/generic/wordexp.c: Likewise.
12922
12923         * po/it.po: Update from translation team.
12924
12925         * misc/err.c: Handle wide oriented stderr stream.
12926
12927 2001-08-14  Tom Rix  <trix@redhat.com>
12928
12929         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
12930         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
12931
12932 2001-08-13  Tom Rix  <trix@redhat.com>
12933
12934         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
12935         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
12936         and __intptr_t.
12937
12938 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12939
12940         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
12941         Store the access registers to the ucontext structure.
12942         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
12943         Likewise.
12944
12945         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
12946         Load the access registers from the ucontext structure.
12947         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
12948         Likewise.
12949
12950         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
12951         offsets to the new ucontext layout.
12952         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
12953
12954         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
12955         of the ucontext structure.
12956         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12957
12958 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
12959
12960         * misc/error.c (error): Handle wide oriented stderr stream correctly.
12961         (error_at_line): Likewise.
12962
12963         * stdio-common/perror.c (perror): Implement according to standard.
12964         The stream orientation must not be changed if the stream was not
12965         oriented before the call.
12966         * stdio-common/Makefile (tests): Add tst-perror.
12967         * stdio-common/tst-perror.c: New file.
12968
12969
12970 See ChangeLog.12 for earlier changes.