* hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
[platform/upstream/linaro-glibc.git] / ChangeLog
1 2002-05-12  Roland McGrath  <roland@frob.com>
2
3         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
4         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
5
6 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
7
8         * sysdeps/ia64/Makefile: Remove extra endif.
9         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
10
11 2002-05-10  Andreas Schwab  <schwab@suse.de>
12
13         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
14
15 2002-05-09  Andreas Jaeger  <aj@suse.de>
16
17         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
18         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
19         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
20
21         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
22         * sysdeps/wordsize-64/glob.c: ...here.
23         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
24         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
25         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
26
27 2002-05-08  Roland McGrath  <roland@frob.com>
28
29         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
30         O_NOTRANS flag in "." lookup.
31
32 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
33
34         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
35
36 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
37
38         * locale/duplocale.c (__duplocale): Update special members only
39         when allocation succeeded.
40
41 2002-05-03  Roland McGrath  <roland@frob.com>
42
43         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
44         we can only build libc.so.0.3(GLIBC_2.2.6) now.
45
46 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
47
48         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
49         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
50         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
51         * sysdeps/ia64/ia64libgcc.S: New file.
52
53 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
54
55         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
56
57         * malloc/memusage.c: Distinguish anonymous mmap.
58
59 2002-05-01  Roland McGrath  <roland@frob.com>
60
61         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
62         and use INTDEF on it.
63         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
64
65         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
66
67         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
68
69 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
70
71         * malloc/memusage.c: Add support for tracking mmap & friends.
72         * malloc/memusage.sh: Implement -m/--mmap option.
73
74 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
75
76         * locale/programs/locarchive.c (create_archive): Add archivefname
77         argument, create fname from it.
78         (enlarge_archive): Honour output_prefix.
79         (open_archive): Likewise.
80
81 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
82
83         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
84         too many stpcpy macros.
85
86 2002-04-26  Bruno Haible  <bruno@clisp.org>
87
88         * locale/programs/ld-collate.c (collate_read): Cast first argument
89         for "%.*s" to int.
90
91 2002-04-26  Bruno Haible  <bruno@clisp.org>
92
93         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
94         __dcngettext_internal): New declarations.
95         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
96         attribute declarations.
97
98 2002-04-30  Roland McGrath  <roland@frob.com>
99
100         Removed old GNU stdio implementation; GNU libio is now the only option.
101         * configure.in: Removed --enable-libio option and @stdio@ subst var.
102         Define USE_IN_LIBIO unconditionally.
103         * configure: Regenerated.
104         * Makeconfig (stdio): Set to libio by default.
105         * config.make.in (stdio): Variable removed.
106         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
107         * sysdeps/unix/sysv/linux/configure: Regenerated.
108         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
109         * sysdeps/mach/hurd/configure: Regenerated.
110         * stdio/.cvsignore: File removed.
111         * stdio/Makefile: File removed.
112         * stdio/Versions: File removed.
113         * stdio/__fbufsize.c: File removed.
114         * stdio/__flbf.c: File removed.
115         * stdio/__fpending.c: File removed.
116         * stdio/__fpurge.c: File removed.
117         * stdio/__freadable.c: File removed.
118         * stdio/__freading.c: File removed.
119         * stdio/__fsetlocking.c: File removed.
120         * stdio/__fwritable.c: File removed.
121         * stdio/__fwriting.c: File removed.
122         * stdio/clearerr.c: File removed.
123         * stdio/fclose.c: File removed.
124         * stdio/fcloseall.c: File removed.
125         * stdio/feof.c: File removed.
126         * stdio/ferror.c: File removed.
127         * stdio/fflush.c: File removed.
128         * stdio/fgetc.c: File removed.
129         * stdio/fgetpos.c: File removed.
130         * stdio/fgets.c: File removed.
131         * stdio/fileno.c: File removed.
132         * stdio/fmemopen.c: File removed.
133         * stdio/fopen.c: File removed.
134         * stdio/fopncook.c: File removed.
135         * stdio/fputc.c: File removed.
136         * stdio/fputs.c: File removed.
137         * stdio/fread.c: File removed.
138         * stdio/freopen.c: File removed.
139         * stdio/fseek.c: File removed.
140         * stdio/fsetpos.c: File removed.
141         * stdio/ftell.c: File removed.
142         * stdio/fwrite.c: File removed.
143         * stdio/getc.c: File removed.
144         * stdio/getchar.c: File removed.
145         * stdio/getdelim.c: File removed.
146         * stdio/gets.c: File removed.
147         * stdio/glue.c: File removed.
148         * stdio/internals.c: File removed.
149         * stdio/linewrap.c: File removed.
150         * stdio/linewrap.h: File removed.
151         * stdio/memstream.c: File removed.
152         * stdio/newstream.c: File removed.
153         * stdio/obstream.c: File removed.
154         * stdio/putc.c: File removed.
155         * stdio/putchar.c: File removed.
156         * stdio/puts.c: File removed.
157         * stdio/rewind.c: File removed.
158         * stdio/setbuf.c: File removed.
159         * stdio/setbuffer.c: File removed.
160         * stdio/setlinebuf.c: File removed.
161         * stdio/setvbuf.c: File removed.
162         * stdio/stdio.h: File removed.
163         * stdio/ungetc.c: File removed.
164         * stdio/vasprintf.c: File removed.
165         * stdio/vscanf.c: File removed.
166         * stdio/vsnprintf.c: File removed.
167         * stdio/vsprintf.c: File removed.
168         * stdio/vsscanf.c: File removed.
169         * sysdeps/generic/defs.c: File removed.
170         * sysdeps/generic/fdopen.c: File removed.
171         * sysdeps/generic/pipestream.c: File removed.
172         * sysdeps/generic/stdio_init.c: File removed.
173         * sysdeps/generic/sysd-stdio.c: File removed.
174         * sysdeps/generic/vdprintf.c: File removed.
175         * sysdeps/mach/hurd/defs.c: File removed.
176         * sysdeps/mach/hurd/fdopen.c: File removed.
177         * sysdeps/mach/hurd/pipestream.c: File removed.
178         * sysdeps/mach/hurd/stdio_init.c: File removed.
179         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
180         * sysdeps/mach/hurd/vdprintf.c: File removed.
181         * sysdeps/posix/defs.c: File removed.
182         * sysdeps/posix/fdopen.c: File removed.
183         * sysdeps/posix/pipestream.c: File removed.
184         * sysdeps/posix/stdio_init.c: File removed.
185         * sysdeps/posix/vdprintf.c: File removed.
186         * sysdeps/unix/pipestream.c: File removed.
187         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
188         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
189         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
190
191 2002-04-29  Roland McGrath  <roland@frob.com>
192
193         * include/libc-symbols.h (link_warning): Use `unused' attribute.
194
195 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
196
197         * sysdeps/generic/tls.h: Describe what must be defined.
198
199         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
200         glob_in_dir [PR libc/3385].
201         * posix/globtest.sh: Add test case.
202
203         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
204         //TRANSLIT twice.
205
206 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
207
208         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
209         _internal symbol handling.
210         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
211
212 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
213
214         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
215         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
216
217 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
218
219         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
220         not _LIBC and RE_ENABLE_I18N.
221         (build_range_exp): Implement for not _LIBC.
222         (build_collating_symbol): Likewise.
223         (parse_bracket_exp): Unify redundant error handlings.
224         Don't erase mbcset for non matching list in multibyte envs.
225         (build_word_op): Add '_' to matching list for \w operator.
226         * posix/regex_internal.c (re_string_construct): Invoke
227         build_upper_buffer in case of not RE_ENABLE_I18N.
228         (re_string_reconstruct): Don't touch cur_state in case of not
229         RE_ENABLE_I18N.
230         * posix/regex_internal.h (attribute_hidden): New macro in case of
231         not _LIBC.
232         (re_charset_t): Define range_starts/ends in case of not _LIBC.
233         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
234         RE_ENABLE_I18N.
235         (transit_state_mb): Likewise.
236         (check_node_accept_bytes): Implement the code evaluating range
237         expression in case of not _LIBC.
238         (find_collation_sequence_value): Hide in case of not _LIBC.
239
240 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
241
242         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
243         i386/semctl.c.
244         (__old_semctl, __new_semctl): Only use va_arg if the argument will
245         be used.
246
247 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
248
249         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
250
251         * sysdeps/ia64/strncpy.S: Fix recovery code.
252         Patch by David Mosberger <davidm@hpl.hp.com>.
253
254 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
255
256         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
257         GLIBC_2.2.6.
258
259 2002-04-14  Bruno Haible  <bruno@clisp.org>
260
261         * posix/regex.c (re_max_failures): Add back symbol for binary
262         compatibility.
263
264 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
265
266         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
267         of buffer building functions.
268         * posix/regex_internal.c (re_string_allocate): New function.
269         (re_string_realloc_buffers): New function.
270         (re_string_skip_chars): New function.
271         (re_string_reconstruct): New function.
272         (re_string_construct): Adapt it to new interface of buffer building
273         functions.
274         (re_string_construct_common): Likewise.
275         (build_wcs_buffer): Likewise.
276         (build_wcs_upper_buffer): Likewise.
277         (build_upper_buffer): Likewise.
278         (re_string_translate_buffer): Likewise.
279         (re_string_context_at): Adapt it to variable length buffers.
280         * posix/regex_internal.h (re_string_t): Add new fields to handle
281         variable length buffers.
282         (re_match_context_t): Likewise.
283         * posix/regexec.c (re_search_internal): Adapt it to new interface
284         of re_string_t and re_match_context_t.
285         (acquire_init_state_context): Likewise.
286         (check_matching): Likewise.
287         (check_halt_state_context): Likewise.
288         (proceed_next_node): Likewise.
289         (set_regs): Likewise.
290         (sift_states_backward): Likewise.
291         (clean_state_log_if_need): Likewise.
292         (sift_states_iter_mb): Likewise.
293         (sift_states_iter_bkref): Likewise.
294         (add_epsilon_backreference): Likewise.
295         (transit_state): Likewise.
296         (transit_state_sb): Likewise.
297         (transit_state_mb): Likewise.
298         (transit_state_bkref): Likewise.
299         (transit_state_bkref_loop): Likewise.
300         (check_node_accept): Likewise.
301         (match_ctx_init): Likewise.
302         (extend_buffers): New function.
303
304 2002-04-21  Bruno Haible  <bruno@clisp.org>
305
306         * iconvdata/tst-table.sh: For the second check, use the truncated
307         GB18030 charmap table, like for the first check.
308
309 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
310
311         * elf/dl-load.c (open_verify): Correct __lseek parameters.
312         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
313
314 2002-04-23  H.J. Lu  <hjl@gnu.org>
315
316         * include/math.h (isfinite): Fix a typo.
317
318 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
319
320         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
321         which is created by the test suite.
322
323 2002-04-20  Bruno Haible  <bruno@clisp.org>
324
325         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
326         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
327
328 2002-04-20  Bruno Haible  <bruno@clisp.org>
329
330         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
331         to avoid gcc warning.
332
333 2002-04-20  Bruno Haible  <bruno@clisp.org>
334
335         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
336         of data->__statep->__count.
337
338 2002-04-20  Bruno Haible  <bruno@clisp.org>
339
340         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
341         tag characters.
342         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
343
344 2002-04-24  Roland McGrath  <roland@frob.com>
345
346         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
347         use END macro instead of our own .end directive.
348         Use `callsys' insn mnemonic instead of `call_pal'.
349
350         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
351
352         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
353         macro; we need this for Hurd.
354
355         Log entry was missing for 2002/03/24 commit of rev 1.8,
356         goes with 2002-03-17 changes.
357         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
358         (sysdep_routines): Append ioperm here.
359         (sysdep_headers): Append sys/io.h here.
360
361 2002-04-23  Roland McGrath  <roland@frob.com>
362
363         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
364         * sysdeps/mach/hurd/sendto.c: Likewise.
365         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
366         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
367         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
368
369 2002-04-22  Roland McGrath  <roland@frob.com>
370
371         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
372         failure from i386_io_perm_* RPCs to ENOSYS.
373
374 2002-04-22  Andreas Jaeger  <aj@suse.de>
375
376         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
377
378         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
379
380         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
381         register instead of destroying %rbx.
382
383 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
384
385         * string/string.h: Declare strerror_r also for XPG6.
386
387 2002-04-19  Roland McGrath  <roland@frob.com>
388
389         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
390
391 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
392
393         * Makefile: Add handling of xtests and xcheck targets.
394         * MakeTAGS: Likewise.
395         * Makeconfig: Likewise.
396         * Makerules: Likewise.
397         * Rules: Likewise.
398         * manual/Makefile: Likewise.
399         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
400         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
401
402 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
403
404         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
405         authnone_private_s.
406         * sunrpc/auth_none.c: Include bits/libc-lock.h.
407         Delete #ifdef _RPC_THREAD_SAFE_ block.
408         (authnone_private): Make a struct, not a pointer to struct.
409         (authnone_private_guard): New once-control variable.
410         (authnone_create_once): New function, split out of
411         authnone_create.  No need to allocate memory.
412         (authnone_create): Just call authnone_create_once via
413         __libc_once, then return &authnone_private->no_client.
414         (authnone_marshal): Access private data via CLIENT argument,
415         not authnone_private pointer.
416         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
417         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
418         authnone_private_s.
419
420 2002-04-12  H.J. Lu  <hjl@gnu.org>
421
422         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
423
424 2002-04-18  Bruno Haible  <bruno@clisp.org>
425
426         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
427         FROM_DIRECTION): Make the FROM direction stateless.
428         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
429         FROM_DIRECTION): Likewise.
430
431 2002-04-15  Bruno Haible  <bruno@clisp.org>
432
433         * iconvdata/JISX0213.TXT: New file.
434         * iconvdata/jisx0213.h: New file.
435         * iconvdata/jisx0213.c: New file.
436         * iconvdata/euc-jisx0213.c: New file.
437         * iconvdata/shift_jisx0213.c: New file.
438         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
439         * iconvdata/EUC-JISX0213.precomposed: New file.
440         * iconvdata/SHIFT_JISX0213.precomposed: New file.
441         * iconvdata/SHIFT_JISX0213.irreversible: New file.
442         * iconvdata/tst-table-to.c (main): Make it work for encodings for
443         which the "to" direction is stateful.
444         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
445         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
446         SHIFT_JISX0213.
447         (libJISX0213-routines): New variable.
448         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
449         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
450         (LDFLAGS-libJISX0213.so): New variable.
451         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
452         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
453         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
454
455 2002-04-15  Bruno Haible  <bruno@clisp.org>
456
457         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
458         uint32_t.  Update to Unicode 3.2.
459         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
460         (BODY for TO_LOOP): Handle the ASCII range specially.
461         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
462         * iconvdata/testdata/BIG5HKSCS: Remove a character.
463         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
464
465 2002-04-15  Bruno Haible  <bruno@clisp.org>
466
467         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
468         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
469
470 2002-04-15  Bruno Haible  <bruno@clisp.org>
471
472         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
473         (ucs4_to_cns11643): Update.
474         * iconvdata/cns11643.c: Update to Unicode 3.2.
475         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
476         __cns11643_from_ucs4p2_tab): Regenerated.
477         (__cns11643_from_ucs4p2c_tab): New array.
478         * iconvdata/cvs11643l1.c: Update comments.
479         * iconvdata/EUC-TW.irreversible: Remove two entries.
480
481 2002-04-15  Bruno Haible  <bruno@clisp.org>
482
483         * locale/C-translit.h.in: Update to Unicode 3.2.
484         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
485         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
486
487 2002-04-15  Bruno Haible  <bruno@clisp.org>
488
489         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
490         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
491
492 2002-04-15  Bruno Haible  <bruno@clisp.org>
493
494         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
495         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
496         always one byte, not 0 bytes in some cases and 2 bytes in others.
497
498         * iconvdata/tst-table-from.c (main): Correct the usage message.
499
500 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
501
502         * posix/regcomp.c (parse_expression): Fix incorrect error code.
503         (parse_dup_op): Fix error handling like "a{}".
504         (parse_bracket_exp): Add error handling.
505         (fetch_number): Add error handling for "a{<very_large_number>}".
506
507 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
508
509         * posix/regcomp.c (parse_bracket_symbol): Add error handling
510         in case that the symbol name is too long.
511         (build_charclass): Handle [:lower:]/[:uppper:] correctly
512         in case of REG_ICASE.
513
514 2002-04-19  Andreas Jaeger  <aj@suse.de>
515
516         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
517         <hartvige@mips.com>.
518
519 2002-04-15  H.J. Lu  <hjl@gnu.org>
520
521         * include/math.h (__finitel_internal): Declare only if
522         __NO_LONG_DOUBLE_MATH is not defined.
523         (__isinfl_internal): Likewise.
524         (__isnanl_internal): Likewise.
525
526         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
527         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
528         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
529         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
530         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
531         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
532         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
533
534         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
535         __fcntl_internal.
536
537         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
538         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
539
540 2002-04-15  Bruno Haible  <bruno@clisp.org>
541
542         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
543         (BODY for TO_LOOP): Likewise.
544         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
545         * iconvdata/tst-table.sh: Add support for encodings which contain
546         precomposed Unicode characters, known to the iconv converter in both
547         directions but not listed in the charmap.
548         * iconvdata/IBM856.irreversible: New file.
549         * iconvdata/IBM922.irreversible: New file.
550         * iconvdata/IBM1132.irreversible: New file.
551         * iconvdata/IBM1133.irreversible: New file.
552         * iconvdata/IBM1160.irreversible: New file.
553         * iconvdata/IBM1161.irreversible: New file.
554         * iconvdata/IBM1163.irreversible: New file.
555         * iconvdata/IBM1164.irreversible: New file.
556         * iconvdata/ARMSCII-8.irreversible: New file.
557         * iconvdata/TCVN5712-1.precomposed: New file.
558         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
559         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
560         ARMSCII-8, TCVN5712-1.
561         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
562         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
563         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
564         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
565
566 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
567
568         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
569         for EVENING69.  Include offsets in TZ environment variable.
570
571 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
572
573         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
574         avoid compiler warnings.
575
576         * locale/programs/localedef.c (main): Always call
577         construct_output_path.
578
579         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
580
581         * locale/programs/locfile.c (to_archive): New variable.  To collect
582         data which has to be added to the locale archive.
583         (write_all_categories): Take new third parameter with locale name.
584         Unless no_archive flag set add new locale data to the archive
585         (write_locale_data): Unless no-archive flag set store generated data
586         in to_archive data structure instead of generation output file.
587         Add new parameter with locale category index.
588         * locale/programs/locfile.h: Add new parameters in declaractions of
589         write_all_categories and write_locale_data.
590         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
591         --add-to-archive, and --delete-from-archive options.  Pass extra
592         parameter to write_all_categories.
593         * locale/programs/localedef.h: Add prototypes for functions in
594         locarchive.c.
595         * locale/locarchive.h: New file.
596         * locale/programs/locarchive.c: New file.
597         * locale/Makefile (distribute): Add programs/locarchive.c and
598         locarchive.h.
599         (localedef-modules): Add md5 and locarchive.
600         Add vpath to crypt subdir for md5.c.
601
602         * locale/programs/ld-address.c: Pass locale category ID as new second
603         parameter to write_locale_data.
604         * locale/programs/ld-collate.c: Likewise.
605         * locale/programs/ld-ctype.c: Likewise.
606         * locale/programs/ld-identification.c: Likewise.
607         * locale/programs/ld-measurement.c: Likewise.
608         * locale/programs/ld-messages.c: Likewise.
609         * locale/programs/ld-monetary.c: Likewise.
610         * locale/programs/ld-name.c: Likewise.
611         * locale/programs/ld-numeric.c: Likewise.
612         * locale/programs/ld-paper.c: Likewise.
613         * locale/programs/ld-telephone.c: Likewise.
614         * locale/programs/ld-time.c: Likewise.
615
616         * locale/simple-hash.c: Move compute_hashval function from here...
617         * locale/hashval.h: ...to here.  New file.
618         * locale/simple-hash.h: Add prototype for compute_hashval.
619
620         * include/libintl.h: Minor cleanups.
621
622 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
623
624         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
625
626 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
627
628         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
629
630 2002-04-14  Bruno Haible  <bruno@clisp.org>
631
632         * locale/programs/charmap.c (charmap_read): Don't access result if
633         result == NULL.
634
635 2002-02-17  Andreas Schwab  <schwab@suse.de>
636
637         * elf/reldep7.c: New file.
638         * elf/reldep7mod1.c: New file.
639         * elf/reldep7mod2.c: New file.
640         * elf/Makefile: Add rules to build and run reldep7.
641
642 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
643
644         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
645         the end of the function.  Pass original flags to recursive call if
646         add_dependency failed.
647         (_dl_lookup_versioned_symbol): Likewise.
648
649 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
650
651         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
652         early, but check whether it overflowed afterwards.
653         * time/tst-mktime.c (main): Add new tests.
654
655 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
656
657         * debug/xtrace.sh: Fix program name in help message.
658         Patch by Roger Luethi <rl@hellgate.ch>.
659
660         * include/sys/stat.h: Add prototypes for __lxstat_internal and
661         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
662         NOT_IN_libc.
663         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
664         * sysdeps/mach/hurd/lxstat.c: Likewise.
665         * sysdeps/unix/common/lxstat.c: Likewise.
666         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
667         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
668         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
669         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
670         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
671         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
672         * sysdeps/mach/hurd/lxstat64.c: Likewise.
673         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
674         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
675
676         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
677         prototypes.  Add __mbrlen and __mbrtowc macros.
678         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
679         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
680
681         * include/unistd.h: Add prototype for __write_internal and add
682         __libc_write macro is SHARED.
683         * sysdeps/generic/write.c: Use INTDEF for __write.
684         * sysdeps/mach/hurd/write.c: Likewise.
685         * sysdeps/unix/sysv/aix/write.c: Likewise.
686         * sysdeps/unix/syscalls.list: Add __libc_write alias.
687
688         * assert/assert.c: Replace STR_N_SIZE with something usable in
689         macro arguments.
690         * assert/assert-perr.c: Likewise.
691
692         * include/sys/socket.h: Declare __libc_sa_len_internal and define
693         SA_LEN macro to use it if not NOT_IN_libc.
694         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
695
696         * include/fcntl.h: Declare __open_internal and define __open and
697         __libc_open macros if not NOT_IN_libc.
698         * sysdeps/generic/open.c: Use INTDEF for __open.
699         * sysdeps/mach/hurd/open.c: Likewise.
700         * sysdeps/unix/sysv/aix/open.c: Likewise.
701         * sysdeps/unix/syscalls.list: Add __open_internal alias.
702
703         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
704         has correct number.
705
706         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
707         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
708         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
709         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
710
711         * include/wctype.h: Declare __iswalpha_l_internal,
712         __iswdigit_l_internal, __iswspace_l_internal,
713         __iswxdigit_l_internal, and __iswctype_internal.  Define
714         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
715         __iswxdigit_l macros if not NOT_IN_libc.
716         * wctype/iswctype.c: Use INTDEF for __iswctype.
717         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
718
719         * include/math.h: Declare __isinf_internal, __isinfl_internal,
720         __isnan_internal, and __isnanl_internal.
721         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
722         __isnan, and __isnanl.
723         * stdio-common/printf_size.c: Likewise.
724         * sysdeps/generic/printf_fphex.c: Likewise.
725         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
726         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
727         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
728         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
729         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
730         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
731         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
732         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
733         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
734         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
735         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
736         * sysdeps/m68k/s_isinfl.c: Likewise.
737         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
738         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
739
740         * include/sys/time.h: Declare __gettimeofday_internal and define
741         __gettimeofday macro if not NOT_IN_libc.
742         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
743         * sysdeps/mach/gettimeofday.c: Likewise.
744         * sysdeps/posix/gettimeofday.c: Likewise.
745         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
746         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
747         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
748         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
749
750         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
751         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
752         Remove __lstat and __fstat inline functions.
753         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
754         * sysdeps/mach/hurd/fxstat.c: Likewise.
755         * sysdeps/unix/fxstat.c: Likewise.
756         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
757         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
758         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
759         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
760         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
761         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
762         * sysdeps/mach/hurd/fxstat64.c: Likewise.
763         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
764         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
765
766         * include/unistd.h: Declare __getpid_internal and define
767         __getpid macro if not NOT_IN_libc.
768         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
769         * sysdeps/generic/getpid.c: Likewise.
770         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
771         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
772
773         * include/unistd.h: Declare __getpgid_internal and define
774         __getpgid macro if not NOT_IN_libc.
775         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
776         * sysdeps/mach/hurd/getpgid.c: Likewise.
777         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
778         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
779         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
780         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
781
782         * include/unistd.h: Declare __getpagesize_internal and define
783         __getpagesize macro if not NOT_IN_libc.
784         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
785         __getpagesize.
786         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
787         * sysdeps/mach/getpagesize.c: Likewise.
788         * sysdeps/posix/getpagesize.c: Likewise.
789         * sysdeps/unix/getpagesize.c: Likewise.
790         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
791         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
792         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
793         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
794
795 2002-04-13  Andreas Jaeger  <aj@suse.de>
796
797         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
798         as clobber to reduce register pressure.
799         (__strpbrk_cg): Likewise.
800         (__mempcpy_by4): Likewise.
801         (__strstr_cg): Likewise.
802         Add prototype for __memrchr.
803
804 2002-04-13  Andreas Schwab  <schwab@suse.de>
805
806         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
807         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
808         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
809
810 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
811
812         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
813         check whether the caller prefers getting the most recent version of
814         a symbol of the earliest version.
815         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
816         _dl_do_lookup to also take the new parameter and pass it on.
817         Change 'explicit' parameter of _dl_lookup_symbol and
818         _dl_lookup_versioned_symbol to flags.  Adjust tests.
819         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
820         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
821         _dl_lookup_versioned_symbol.
822         * elf/dl-reloc.c: Likewise.
823         * elf/dl-runtime.c: Likewise.
824         * elf/dl-sym.c: Likewise.
825         * sysdeps/mips/dl-machine.h: Likewise.
826
827 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
828
829         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
830         in a token.
831         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
832
833 2002-04-10  Andreas Jaeger  <aj@suse.de>
834
835         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
836
837         * include/argz.h: Remove extra char from last patch.
838
839 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
840
841         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
842         * sysdeps/unix/sysv/aix/chown.c: Likewise.
843         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
844         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
845         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
846         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
847         __chown_internal.
848         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
849
850         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
851         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
852         * intl/ngettext.c: Likewise.
853
854         * include/sys/socket.h: Declare __connect_internal and define
855         __connect macro if not NOT_IN_libc.
856         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
857         * sysdeps/unix/sysv/aix/connect.c: Likewise.
858         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
859
860         * include/unistd.h: Declare __close_internal and define __close macro
861         if not NOT_IN_libc.
862         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
863         WJUMP3): Add extra parenthesis to avoid expanding element names with
864         macors like __close.
865         * sysdeps/unix/syscalls.list: Add __close_internal alias.
866
867         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
868         if not NOT_IN_libc.
869         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
870         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
871         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
872
873         * include/unistd.h: Declare __fork_internal and define __fork macro
874         if not NOT_IN_libc.
875         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
876         * sysdeps/unix/sysv/aix/fork.c: Likewise.
877         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
878
879         * include/stdio_ext.h: Declare __fsetlocking_internal and define
880         __fsetlocking macro to use it if not NOT_IN_libc.
881         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
882
883         * libio/__fbufsize.c: Correct copyright.
884         * libio/__flbf.c: Likewise.
885         * libio/__fpending.c: Likewise.
886         * libio/__fpurge.c: Likewise.
887         * libio/__freadable.c: Likewise.
888         * libio/__freading.c: Likewise.
889         * libio/__fsetlocking.c: Likewise.
890         * libio/__fwritable.c: Likewise.
891         * libio/__fwriting.c: Likewise.
892
893         * include/stdio.h: Declare __asprintf_internal and define __asprintf
894         macro to use it if not NOT_IN_libc.
895         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
896
897         * include/mntent.h: Declare __setmntent_internal,
898         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
899         __getmntent_r, and __endmntent macros to use these functions if not
900         NOT_IN_libc.
901         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
902         __endmntent.
903
904         * include/math.h: Declare __finite_internal, __finitef_internal, and
905         __finitel_internal.  Redefine isfinite macro if in libc or libm using
906         these functions.
907         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
908         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
909         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
910         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
911         * sysdeps/i386/fpu/s_finitef.S: Likewise.
912         * sysdeps/i386/fpu/s_finitel.S: Likewise.
913         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
914         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
915         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
916         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
917
918         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
919         to use this function if not NOT_IN_libc.
920         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
921         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
922         * sysdeps/mach/hurd/fcntl.c: Likewise.
923         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
924         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
925
926         * include/argz.h: Declare __argz_count_internal and
927         __argz_stringify_internal.
928         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
929         __argz_stringify.
930         * string/argz-count.c: Use INTDEF for __argz_count.
931         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
932
933         * include/stdlib.h: Declare __cxa_atexit_internal and define
934         __cxa_atexit macro if not NOT_IN_libc.
935         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
936         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
937
938         * assert/assert.c: Use INTDEF for __assert_fail.
939         * assert/__assert.c: Use INTUSE for call to __assert_fail.
940         * include/assert.h: Declare __assert_fail_internal.
941
942         * extra-lib.mk: Mark assignment to lib with override.
943
944 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
945
946         * Makerules: Use cppflags-iterator.mk to add defines for all test
947         source files.
948
949 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
950
951         * elf/elf.h: Define R_SH_TLS_xxx macros.
952         * elf/rtld.c: Remove an extra parenthesis.
953         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
954         TLS_GD macros.
955         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
956         * sysdeps/sh/dl-lookupcfg.h: New file.
957         * sysdeps/sh/dl-tls.h: New file.
958         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
959         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
960         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
961         R_SH_TLS_TPOFF32 relocations.
962
963 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
964
965         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
966         of NOT_IN_LIBC.
967         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
968         * include/stdlib.h: Likewise.
969
970 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
971
972         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
973         instead of _RTLD_LOCAL.
974         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
975         * include/unistd.h: Likewise.
976         * sysdeps/generic/ldsodefs.h: Likewise.
977
978         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
979         if in libc or ld.so.
980
981 2002-04-08  Andreas Jaeger  <aj@suse.de>
982
983         * elf/cache.c (print_entry): Support x86-64.
984
985 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
986
987         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
988         with one accessing the locale data structures directly.
989         * stdio-common/printf-prs.c: Include localeinfo.h for new
990         MB_CUR_MAX definition.
991
992         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
993         is the name of the source file without extension.
994         * Makefile (distribute): Add cppflags-iterator.mk.
995         * cppflags-iterator.mk: New file.
996         * extra-lib.mk: For the sources of the library run
997         cppflags-iterator.mk.
998
999         * include/libintl.h: Declare __dcgettext_internal and
1000         _libc_intl_domainname_internal.  Define __dcgettext using these
1001         two symbols if used in libc itself.
1002         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
1003         _libc_intl_domainname_internal.
1004         * argp/argp-parse.c: Likewise.
1005         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
1006         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
1007         * intl/gettext.c: Likewise.
1008         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
1009         alias.
1010         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
1011         __dcgettext.
1012         * posix/regex_internal.c (gettext): Likewise.
1013
1014 2002-04-08  Andreas Jaeger  <aj@suse.de>
1015
1016         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
1017
1018         * sysdeps/x86_64/fpu/s_llrint.S: New.
1019         * sysdeps/x86_64/fpu/s_llrintf.S: New.
1020         * sysdeps/x86_64/fpu/s_llrintl.S: New.
1021         * sysdeps/x86_64/fpu/s_lrint.S: New.
1022         * sysdeps/x86_64/fpu/s_lrintf.S: New
1023         * sysdeps/x86_64/fpu/s_lrintl.S: New.
1024
1025 2002-04-08  Roland McGrath  <roland@frob.com>
1026
1027         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
1028         widening __hurd_fail value.
1029
1030 2002-04-07  Roland McGrath  <roland@frob.com>
1031
1032         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
1033         <mach/machine/alpha_instruction.h>.
1034         (_hurd_setup_sighandler): Take proper arguments for current decls.
1035         Update code to use _hurdsig_catch_fault.
1036         Use `callsys' instruction instead of `call_pal'.
1037         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
1038
1039         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
1040         (ALIGN, at, AT, fp): New macros.
1041
1042 2002-04-06  Roland McGrath  <roland@frob.com>
1043
1044         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
1045
1046         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
1047         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
1048
1049         * sysdeps/mach/hurd/bind.c: Use prototype definition.
1050         * sysdeps/mach/hurd/connect.c: Likewise.
1051         * sysdeps/mach/hurd/getsockopt.c: Likewise.
1052         * sysdeps/mach/hurd/setsockopt.c: Likewise.
1053
1054         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
1055         __msg_sig_post RPC.
1056
1057         * hurd/catch-exc.c: Use integer_t instead of int.
1058         * hurd/hurdfault.c: Likewise.
1059
1060         * sysdeps/mach/hurd/alpha/exc2signal.c
1061         (_hurd_exception2signal): Rewritten.
1062         * sysdeps/mach/hurd/alpha/longjmp-ts.c
1063         (_hurd_longjmp_thread_state): Rewritten.
1064
1065 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
1066
1067         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
1068         DB_LOOKUP_FCT prototype.
1069         * nss/getXXent_r.c: Likewise.
1070         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
1071         * inet/getaliasname_r.c: Likewise.
1072         * inet/getnetbyad_r.c: Likewise.
1073         * inet/getnetbynm_r.c: Likewise.
1074         * inet/getnetent_r.c: Likewise.
1075         * inet/getproto_r.c: Likewise.
1076         * inet/getprtent_r.c: Likewise.
1077         * inet/getprtname_r.c: Likewise.
1078         * inet/getrpcbyname_r.c: Likewise.
1079         * inet/getrpcbynumber_r.c: Likewise.
1080         * inet/getrpcent_r.c: Likewise.
1081         * inet/getservent_r.c: Likewise.
1082         * inet/getsrvbynm_r.c: Likewise.
1083         * inet/getsrvbypt_r.c: Likewise.
1084         * shadow/getspent_r.c: Likewise.
1085         * shadow/getspnam_r.c: Likewise.
1086
1087         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
1088
1089         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
1090         Use i686-friendly PIC code.
1091         * sysdeps/i386/elf/setjmp.S: Likewise.
1092
1093         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
1094
1095         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
1096         list.
1097         * elf/Versions: Remove it here.
1098
1099 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
1100
1101         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
1102         direction.  Reported by H . J . Lu <hjl@lucon.org>.
1103
1104 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
1105
1106         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
1107         test just before the test runs.
1108         * intl/tst-translit.sh: Likewise.
1109         * intl/tst-codeset.sh: Likewise.
1110
1111         * timezone/zic.c: Update from tzcode2002c.
1112         * timezone/asia: Update from tzdata2002c.
1113         * timezone/backward: Likewise.
1114         * timezone/europe: Likewise.
1115         * timezone/northamerica: Likewise.
1116         * timezone/northamerica: Likewise.
1117         * timezone/northamerica: Likewise.
1118         * timezone/southamerica: Likewise.
1119         * timezone/zone.tab: Likewise.
1120
1121 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
1122
1123         * sysdeps/generic/brk.c (__curbrk): Declare.
1124         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
1125         * sysdeps/generic/dl-sbrk.c: Likewise.
1126         * sysdeps/unix/arm/dl-brk.S: New file.
1127         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
1128         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
1129         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
1130         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
1131         * sysdeps/unix/i386/dl-brk.S: New file.
1132         * sysdeps/unix/mips/dl-brk.S: New file.
1133         * sysdeps/unix/sparc/dl-brk.S: New file.
1134         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
1135         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
1136         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
1137         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
1138
1139 2002-04-03  Andreas Schwab  <schwab@suse.de>
1140
1141         * Makefile (headers): Add gnu/lib-names.h here instead of
1142         install-others.
1143         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
1144         installation rule.
1145         (install-headers): Add dependency on install-headers-nosubdir.
1146         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
1147         instead of install-others.
1148         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
1149         installation rule.
1150
1151 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
1152
1153         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
1154         Reported by Sam Roberts <sroberts@uniserve.com>.
1155
1156 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1157
1158         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
1159         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
1160         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
1161         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
1162
1163 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
1164
1165         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
1166         (RTLD_START): Ditto.
1167         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
1168         dependency violation.
1169
1170 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1171
1172         * time/mktime.c (__mktime_internal): Move check for year < 70 below
1173         all variable declarations.
1174
1175 2002-04-04  Andreas Schwab  <schwab@suse.de>
1176
1177         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
1178
1179 2002-04-04  Andreas Jaeger  <aj@suse.de>
1180
1181         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
1182         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
1183
1184         * sysdeps/x86_64/fpu/s_fabs.c: New file.
1185         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
1186         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
1187
1188         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
1189
1190         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
1191
1192         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
1193         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
1194
1195         * configure.in: Handle all mips entries the same.
1196
1197         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
1198         * sysdeps/mips/mips3/*: Likewise.
1199         * sysdeps/mips/p40/bits/endian.h: Likewise.
1200
1201 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
1202
1203         * misc/dirname.c (dirname): Ignore trailing slashes at end of
1204         non-null result [PR libc/2600].
1205
1206         * misc/tst-dirname.c: Add more tests.
1207
1208 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
1209
1210         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
1211         define a code_set_name provide one based on the filename.
1212
1213         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
1214
1215 2001-12-28  Andreas Jaeger  <aj@suse.de>
1216
1217         * time/mktime.c (__mktime_internal): Check for year < 70
1218         [PR libc/2738].
1219
1220 2002-04-03  Andreas Jaeger  <aj@suse.de>
1221
1222         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
1223         shmat.
1224         Reported by Andi Kleen <ak@suse.de>.
1225
1226 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
1227
1228         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
1229         * sysdeps/generic/w_lgammaf.c: Likewise.
1230         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
1231
1232         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
1233         Adjust for new output format of the backtrace functions.
1234
1235         * misc/syslog.c (vsyslog): Only use cleanup handler if
1236         _LIBC_REENTRANT is defined [PR libc/2924].
1237
1238         * libio/Makefile (tests): Add bug-ungetwc2.
1239         * libio/bug-ungetwc2.c: New file.
1240
1241         * manual/install.texi: Typographical and grammatical cleanup.
1242         Patch by Dennis Grace <dgrace@us.ibm.com>.
1243
1244         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
1245         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
1246
1247         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
1248         always "&".  Adjust callers.
1249         Add "_" prefix to several generated definitions.
1250         Patch by paul@serice.net [PR libc/3158].
1251
1252 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
1253
1254         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
1255         size of _dl_arm_cap_flags.
1256         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
1257
1258         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
1259         Define as 8.
1260
1261 2002-03-22  H.J. Lu  <hjl@gnu.org>
1262
1263         * scripts/firstversions.awk: Check the first version.
1264
1265 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
1266
1267         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
1268         dependencies must be stable to work correctly.
1269         Reported by martin.lubich@datacon.at.
1270
1271         * libio/bug-ungetwc1.c: New file.
1272         * libio/Makefile (tests): Add bug-ungetwc1.
1273
1274         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
1275         if stream was last used for writing.
1276
1277         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
1278         number [PR libc/3111].
1279
1280         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
1281         to ...
1282         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
1283
1284 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
1285
1286         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
1287         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
1288         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
1289         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
1290         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
1291
1292 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
1293
1294         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
1295         dynamic tags.
1296
1297 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
1298
1299         * sysdeps/i386/fpu/s_fabs.S: New file.
1300         * sysdeps/i386/fpu/s_fabsf.S: New file.
1301         * sysdeps/i386/fpu/s_fabsl.S: New file.
1302         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
1303         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
1304         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
1305
1306 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
1307
1308         * rt/tst-shm.c (do_test): Add one more test for size of shared
1309         memory object.
1310
1311 2002-03-29  Wolfram Gloger  <wg@malloc.de>
1312
1313         * malloc/malloc.c: Add short description and prototypes for
1314         malloc_get_state, malloc_set_state and posix_memalign, for
1315         consistency and to avoid warnings with -Wstrict-prototypes.
1316         Reported by Andreas Jaeger <aj@suse.de>.
1317
1318 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
1319
1320         * po/gl.po: Update from translation team.
1321
1322 2002-03-31  Roland McGrath  <roland@frob.com>
1323
1324         * hurd/hurdselect.c (_hurd_select): Fix
1325         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
1326         Use a union rather than casts to compare mach_msg_type_t as int.
1327
1328 2002-03-25  Roland McGrath  <roland@frob.com>
1329
1330         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
1331         check off the end of NAME when it's shorter than 2 chars.
1332         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
1333
1334 2002-03-17  Roland McGrath  <roland@frob.com>
1335
1336         * sysdeps/mach/hurd/i386/sys/io.h: New file.
1337         * sysdeps/mach/hurd/i386/ioperm.c: New file.
1338         * sysdeps/mach/hurd/i386/Dist: Add them.
1339         * sysdeps/mach/hurd/i386/Versions
1340         (libc: GLIBC_2.2.6): New set, add ioperm.
1341         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
1342         (mach_interface_list): Check for mach_i386.defs.
1343         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
1344         * sysdeps/mach/configure: Regenerated.
1345
1346 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
1347
1348         * po/fr.po: Update from translation team.
1349
1350 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1351
1352         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
1353         getpriority from syscalls list.
1354
1355 2002-03-28  Andreas Jaeger  <aj@suse.de>
1356
1357         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
1358         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
1359         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
1360         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
1361
1362 2002-03-27  Andreas Jaeger  <aj@suse.de>
1363
1364         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
1365         sigcontext): Follow further kernel change.
1366
1367         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
1368         kernel change.
1369
1370         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
1371         Change for struct sigcontext change.
1372
1373         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
1374         Follow changes in struct sigcontext.
1375
1376         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
1377         sysycall, use wrapper instead.
1378
1379 2002-03-26  Andreas Jaeger  <aj@suse.de>
1380
1381         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
1382         read and write accesses as detailed as possible.
1383         (__memcpy_by2): Likewise.
1384         (__memcpy_g): Likewise.
1385         (memmove): Likewise.
1386         (memcmp): Likewise.
1387         (__memset_ccn_by4): Likewise.
1388         (__memset_ccn_by2): Likewise.
1389         (__memset_gcn_by4): Likewise.
1390         (__memset_gcn_by2): Likewise.
1391         (memchr): Likewise.
1392         (__memrchr): Likewise.
1393         (rawmemchr): Likewise.
1394         (__strlen_g): Likewise.
1395         (__strcpy_g): Likewise.
1396         (__mempcpy_by4): Likewise.
1397         (__mempcpy_by2): Likewise.
1398         (__mempcpy_byn): Likewise.
1399         (__stpcpy_g): Likewise.
1400         (__strncpy_by4): Likewise.
1401         (__strncpy_by2): Likewise.
1402         (__strncpy_byn): Likewise.
1403         (__strncpy_gg): Likewise.
1404         (__strcat_c): Likewise.
1405         (__strcat_g): Likewise.
1406         (__strncat_g): Likewise.
1407         (__strcmp_gg): Likewise.
1408         (__strncmp_g): Likewise.
1409         (__strchr_c): Likewise.
1410         (__strchr_g): Likewise.
1411         (__strchrnul_c): Likewise.
1412         (__strchrnul_g): Likewise.
1413         (__strrchr_c): Likewise.
1414         (__strrchr_g): Likewise.
1415         (__strrchr_c): Likewise.
1416         (__strrchr_g): Likewise.
1417         (__strcspn_c1): Likewise.
1418         (__strcspn_cg): Likewise.
1419         (__strcspn_g): Likewise.
1420         (__strcspn_g): Likewise.
1421         (__strspn_c1): Likewise.
1422         (__strspn_cg): Likewise.
1423         (__strspn_g): Likewise.
1424         (__strspn_g): Likewise.
1425         (__strpbrk_cg): Likewise.
1426         (__strpbrk_g): Likewise.
1427         (__strstr_cg): Likewise.
1428         (__strstr_g): Likewise.
1429
1430         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
1431         Michal Ludvig <mludvig@suse.cz>.
1432
1433         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
1434         compatibilty, adjust for kernel changes.
1435
1436         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
1437         sigcontext): Adjust for kernel changes.
1438
1439 2002-03-25  Andreas Jaeger  <aj@suse.de>
1440
1441         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
1442         little endian.
1443         Reported by Artur Zaprzala <zybi@talex.com.pl>.
1444
1445 2002-03-24  Andreas Jaeger  <aj@suse.de>
1446
1447         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
1448
1449         * stdio-common/tst-fdopen.c (main): Remove unused variable.
1450
1451         * iconv/tst-iconv3.c (main): Use correct printf strings.
1452
1453 2002-03-18  Roland McGrath  <roland@frob.com>
1454
1455         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
1456         (CMGROUP_MAX): New macro.
1457
1458 2002-03-23  Roland McGrath  <roland@frob.com>
1459
1460         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
1461         * sysdeps/posix/shm_unlink.c: Likewise.
1462
1463 2002-03-22  Roland McGrath  <roland@frob.com>
1464
1465         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
1466         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
1467         under --enable-libio.
1468         * sysdeps/mach/hurd/configure: Regenerated.
1469
1470 2002-03-23  Roland McGrath  <roland@frob.com>
1471
1472         * sysdeps/mach/hurd/i386/Makefile
1473         (sysdep_routines, shared-only-routines): Don't add framestate,
1474         reverting 2001-10-02 change.
1475         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
1476         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
1477         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1478         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1479         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
1480         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
1481         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1482         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
1483         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
1484         Do it here instead, only if [$(unwind-find-fde) = yes].
1485
1486 2002-03-23  Andreas Jaeger  <aj@suse.de>
1487
1488         * signal/signal.h: Fix typo. Patch by Steve Kemp
1489         <skx@tardis.ed.ac.uk>.
1490
1491 2002-03-22  Andreas Jaeger  <aj@suse.de>
1492
1493         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
1494         getresuid.
1495
1496         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
1497         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
1498         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
1499         user_fpregs_struct): Rename fwd.
1500
1501         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
1502         Follow sigcontext changes.
1503
1504 2002-03-22  Andreas Jaeger  <aj@suse.de>
1505
1506         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
1507         changes for NaNs on MIPS.
1508         Patch by Hartvig Ekner <hartvige@mips.com>.
1509
1510 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
1511
1512         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
1513         Use realloc if too large.
1514         (addgrbyid): Likewise.
1515         * nscd/hstcache.c (addhstbyname): Likewise.
1516         (addhstbyaddr): Likewise.
1517         (addhstbynamev6): Likewise.
1518         (addhstbyaddrv6): Likewise.
1519         * nscd/pwdcache.c (addpwbyname): Likewise.
1520         (addpwbyuid): Likewise.
1521
1522 2002-03-21  Andreas Jaeger  <aj@suse.de>
1523
1524         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
1525         _fpstate): Add separate struct for x86-64.
1526
1527         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
1528         user_fpregs_struct): Change member names to follow kernel.
1529
1530 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
1531
1532         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
1533         Correctly close the UDP connection right away [PR libc/3120].
1534
1535 2002-03-20  Andreas Jaeger  <aj@suse.de>
1536
1537         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
1538         user_fpregs_struct): Fix for changed kernel struct.
1539         (struct user_regs_struct): Likewise.
1540         (struct user): Likewise.
1541         Add 32-bit x86 compatibility.
1542
1543         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
1544
1545 2002-03-19  Andreas Jaeger  <aj@suse.de>
1546
1547         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
1548
1549 2002-03-18  Andreas Jaeger  <aj@suse.de>
1550
1551         * iconvdata/Makefile: Only run tests when shared libs are
1552         available.
1553
1554 2002-03-17  Andreas Jaeger  <aj@suse.de>
1555
1556         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
1557
1558         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
1559
1560         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
1561         bits.
1562
1563         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
1564         (CAUSE_SHIFT): New.
1565         Patch by Hartvig Ekner <hartvige@mips.com>.
1566
1567         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
1568         * sysdeps/generic/unwind-pe.h: Likewise.
1569
1570         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
1571         type to _IO_setb.
1572
1573         * libio/stdio.c (AL2): Define variant when visibility attribute is
1574         not supported.
1575
1576         * include/libc-symbols.h (_INTVARDEF): Define variant when
1577         visibility attribute is not supported.
1578
1579 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
1580
1581         * po/fr.po: Update from translation team.
1582
1583 2002-02-25  Bruno Haible  <bruno@clisp.org>
1584
1585         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
1586
1587 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
1588
1589         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
1590         buffers if _IO_file_attach failed.
1591
1592         * libio/fileops.c (_IO_file_open): Close file descriptor if
1593         _IO_SEEKOFF call failed.
1594
1595 2002-03-15  H.J. Lu  <hjl@gnu.org>
1596             Ulrich Drepper  <drepper@redhat.com>
1597
1598         * configure.in: Check for availability of
1599         init_array/fini_array/preinit_array handling in binutils.
1600         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
1601         * config.make.in (have-initfini-array): New variable.
1602
1603 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
1604
1605         * stdio-common/tst-printf.c (main): Comment out one test which
1606         checked the compiler's ability to fold floating-point constants
1607         but not really printf.
1608         (rfg3): Make s const.
1609         * stdio-common/tst-printf.sh: Adjust for removed test.
1610
1611         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
1612         internal function.  Adjust for internal_function calling convention.
1613         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
1614         as internal_function.
1615
1616         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
1617         hidden.
1618
1619         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
1620         declaration and definition.
1621         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
1622         declaration.
1623         * nss/getXXent_r.c: Likewise.
1624         * nss/nsswitch.h (db_lookup_function): Add internal_function to
1625         definition.
1626
1627         * include/time.h: Declare __localtime_r as hidden.
1628
1629         * include/aliases.h: Declare __getaliasent_r as hidden.
1630         * include/grp.h: Declare __getgrent_r as hidden.
1631         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
1632         __getservent_r, and __getprotoent_r as hidden.
1633         * include/pwd.h: Declare __getpwent_r as hidden.
1634         * include/shadow.h: Declare __getspent_r as hidden.
1635         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
1636
1637         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
1638         and __gconv_transliterate as hidden.
1639         Add internal_function to __gconv_get_path declaration.
1640         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
1641         definition.  Add attribute_hidden to __gconv_read_conf definition.
1642
1643 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
1644
1645         * elf/rtld.c: Declare _environ as hidden.
1646         * sysdeps/generic/dl-environ.c: Likewise.
1647         * sysdeps/generic/dl-sysdep.c: Likewise.
1648
1649         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
1650         _dl_mcount_internal as hidden.
1651
1652         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
1653         * sysdeps/generic/dl-brk.c: New file.
1654         * sysdeps/generic/dl-sbrk.c: New file.
1655         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
1656         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
1657
1658         * elf/dl-minimal.c (malloc): Declare _end as hidden.
1659         (__errno_location): New function.  Declare errno as hidden.
1660         * elf/rtld.c (_dl_argc): Define as hidden.
1661         (_dl_skip_args): Define as hidden.
1662         (_begin, _end): Declare as hidden.
1663         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
1664         * sysdeps/generic/entry.h (_start): Declare as hidden.
1665         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
1666         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
1667         _dl_runtime_resolve and _dl_runtime_profile as hidden.
1668         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
1669
1670 2002-03-14  Roland McGrath  <roland@frob.com>
1671
1672         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
1673
1674         * Makeconfig (%.v.i, %.v): New implicit rules.
1675         (preprocess-versions): Variable removed.
1676         ($(common-objpfx)shlib-versions.v.i): New target giving just the
1677         shlib-versions input files as dependencies.
1678         ($(common-objpfx)soversions.i): Depend on that instead of the input
1679         files.  Use it as input instead of using a pipeline.
1680         (postclean-generated): Append soversions.i, shlib-versions.v, and
1681         shlib-versions.v.i here.
1682         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
1683         the Versions.def input files as dependencies.
1684         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
1685         ($(common-objpfx)Versions.all): Depend on that instead of the input
1686         files.  Use it as input instead of using a pipeline.
1687         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
1688         (postclean-generated): Append those .v and .v.i files here.
1689
1690 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
1691
1692         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
1693         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
1694         Remove.
1695
1696 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
1697
1698         * sysdeps/generic/mp_clz_tab.c: New file.
1699         * sysdeps/i386/mp_clz_tab.c: New file.
1700         * sysdeps/hppa/mp_clz_tab.c: New file.
1701         * sysdeps/powerpc/mp_clz_tab.c: New file.
1702         * stdlib/Makefile (aux): Revert last patch.
1703         * math/Makefile (gmp-objs): Likewise.
1704
1705 2002-03-13  Paul Eggert  <eggert@twinsun.com>
1706
1707         * time/strftime.c: Comment fixes for references to obsolescent
1708         standards, In most cases the simplest fix is to remove the
1709         confusing comments.  Cross-referencing all the standards properly
1710         is a bit of a pain, and it should be enough to put that info in
1711         the documentation as I did in my recent time.texi patch.
1712
1713 2002-03-13  Paul Eggert  <eggert@twinsun.com>
1714
1715         * manual/time.texi (Formatting Calendar Time):
1716         ISO C99 also specifies the E and O modifiers.
1717         %P is a GNU extension, and is not in ISO C99.
1718         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
1719         %T is also in ISO C99.
1720         The RFC 822 example is not valid in arbitrary locales.
1721         Reword the POSIX.2 wording slightly, to make it a bit clearer
1722         that POSIX.2 formats are also supported by later POSIX versions.
1723         If a format was introduced in ISO C99 it is also required by
1724         POSIX.1-2001.
1725
1726 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
1727
1728         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
1729         _sys_nerr_internal with INTVARDEF2.
1730         * include/libc-symbols.h (INTVARDEF2): New macro.
1731         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
1732         (_sys_nerr_internal): Library.
1733
1734         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
1735         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
1736
1737         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
1738
1739 2002-03-13  Wolfram Gloger  <wg@malloc.de>
1740
1741         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
1742
1743 2002-03-02  Andreas Schwab  <schwab@suse.de>
1744
1745         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
1746         'h' flag and positional arg.
1747         * stdio-common/tst-printf.c (rfg3): New function to test
1748         positional arguments.
1749         (main): Fix some warnings.
1750
1751 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
1752
1753         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
1754         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
1755
1756 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
1757
1758         * grp/initgroups.c (__nss_group_data): Declare as hidden.
1759
1760         * include/locale.h (_nl_C_locobj): Declare as hidden.
1761
1762         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
1763         * time/strptime.c (_nl_C_LC_TIME): Likewise.
1764
1765         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
1766
1767         * include/sys/gmon.h: Declare _gmonparam as hidden.
1768
1769         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
1770         (__ctype32_wctrans): Likewise.
1771         (__ctype32_width): Likewise.
1772
1773         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
1774         use of __ttyname.
1775
1776         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
1777         Define as hidden.
1778         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
1779         hidden.  Change all users of these variables.
1780
1781         * posix/regex_internal.h (__re_error_msgid): Renamed from
1782         re_error_msgid.  Declare as hidden.
1783         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
1784         hidden.
1785
1786         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
1787         (__printf_function_table): Likewise.
1788         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
1789         hidden.
1790         (__printf_function_table): Likewise.
1791
1792         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
1793         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
1794
1795         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
1796         * nss/nsswitch.c: Declare _nss_*_database as hidden.
1797
1798         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
1799         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
1800
1801 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
1802
1803         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
1804         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
1805         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
1806         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
1807         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
1808         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
1809         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
1810         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
1811         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
1812         _nl_C_LC_CTYPE_width: Declare as hidden.
1813         * include/locale.h: Declare _nl_locale_file_list.
1814         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
1815         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
1816         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
1817         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
1818         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
1819         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
1820         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
1821         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
1822         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
1823         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
1824         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
1825         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
1826         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
1827         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
1828         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
1829         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
1830         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
1831         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
1832         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
1833         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
1834         _nl_C_LC_CTYPE_width, and as hidden.
1835         * locale/findlocale.c: Declare _nl_C as hidden.
1836         * locale/newlocale.c: Likewise.
1837         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
1838         _nl_locale_file_list.
1839         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
1840         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
1841         Define _nl_C_locobj as hidden.
1842
1843         * malloc/mtrace.c (_mtrace_file): Define as hidden.
1844         (_mtrace_line): Likewise.
1845
1846         * include/time.h: Declare __mon_yday as hidden.
1847         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
1848
1849         * libio/libioP.h: Declare __libio_codecvt as hidden.
1850         * libio/fileops.c: Declare __libio_translit as hidden.
1851         * libio/iofwide.c: Define __libio_translit as hidden.
1852
1853         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
1854         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
1855         * login/getutline_r.c: Likewise.
1856         * login/utmpname.c: Likewise.
1857
1858         * login/utmp-private.h: Declare __libc_utmp_file_functions,
1859         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
1860         __libc_utmp_file_name as hidden.
1861
1862         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
1863         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
1864         * locale/freelocale.c: Likewise.
1865         * locale/lc-time.c: Likewise.
1866
1867         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
1868         (__libc_ptyname2): Likewise.
1869         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
1870         hidden.
1871         (__libc_ptyname2): Likewise.
1872
1873         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
1874         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
1875         * sysdeps/generic/init-first.c: Likewise.
1876         * sysdeps/i386/init-first.c: Likewise.
1877         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1878         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1879         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1880         * sysdeps/sh/init-first.c: Likewise.
1881         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
1882         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
1883
1884         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
1885         (_itowa_upper_digits): Likewise.
1886
1887         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
1888         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
1889         as hidden.
1890
1891         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
1892         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
1893         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
1894         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
1895
1896         * gmon/gmon.c (__bb_head): Define as hidden.
1897         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
1898
1899         * argp/argp-parse.c (_argp_hang): Define as static.
1900
1901         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
1902         handling in latest compilers.
1903
1904         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
1905         define alias.
1906         * libio/fileops.c (_IO_file_jumps): Likewise.
1907         * libio/stdfiles.c (_IO_list_all): Likewise.
1908         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
1909
1910         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
1911         include/malloc.h.
1912         * include/malloc.h: Add __libc_malloc_initialized declaration
1913         here.  Mark variable hidden.
1914         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
1915
1916         * elf/dl-open.c (__libc_argc): Declare as hidden.
1917         (__libc_argv): Likewise.
1918         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
1919         (__libc_argv): Likewise.
1920         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
1921         __libc_argv as hidden.
1922         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1923         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1924         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
1925         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
1926
1927         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
1928         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
1929         * stdlib/erand48.c: Likewise.
1930         * stdlib/jrand48.c: Likewise.
1931         * stdlib/lcong48.c: Likewise.
1932         * stdlib/lrand48.c: Likewise.
1933         * stdlib/mrand48.c: Likewise.
1934         * stdlib/nrand48.c: Likewise.
1935         * stdlib/seed48.c: Likewise.
1936         * stdlib/srand48.c: Likewise.
1937
1938         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
1939         (_itoa_lower_digits_internal): New declaration.
1940         (_itoa_upper_digits_internal): New declaration.
1941         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
1942         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
1943         (_itoa_upper_digits_internal): New declaration.
1944         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
1945         _itoa_lower_digits.
1946         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
1947         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
1948
1949         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
1950         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
1951
1952         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
1953         (_itowa_lower_digits): Likewise.
1954         (_itowa_upper_digits): Likewise.
1955         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
1956         (_itowa_upper_digits): Likewise.
1957
1958         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
1959         not already defined.
1960         (GERMANIC_PLURAL): Declare as hidden.
1961
1962         * posix/getopt.c (__getopt_initialized): Declare as hidden.
1963         (attribute_hidden): Define as empty macro if not already defined.
1964
1965         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
1966         (__gconv_max_path_elem_len): Likewise.
1967         (__gconv_path_envvar): Likewise.
1968
1969         * math/Makefile (gmp-objs): Remove mp_clz_tab.
1970         * stdlib/Makefile (aux): Remove mp_clz_tab.
1971         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
1972
1973         * stdlib/exit.h (__exit_funcs): Declare as hidden.
1974
1975         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
1976
1977         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
1978         _nl_category_names, _nl_category_name_sizes, _nl_current,
1979         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
1980
1981         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
1982         (_nl_current_default_domain): Likewise
1983         (_nl_state_lock): Likewise.
1984         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
1985         (_nl_current_default_domain): Likewise
1986         (_nl_state_lock): Likewise.
1987         * intl/bindtextdom.c (_nl_state_lock): Likewise.
1988
1989         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
1990         (_fpioconst_pow10): Likewise.
1991
1992         * include/time.h (_tmbuf): Add attribute_hidden.
1993
1994         * time/tzset.c (tzstring_list): Define as static.
1995
1996         * include/time.h: Add attribute_hidden to __tzname_cur_max and
1997         __use_tzfile declaration.
1998
1999         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
2000         and __wcsmbs_last_locale declaration.
2001
2002 2002-02-25  Paul Eggert  <eggert@twinsun.com>
2003
2004         * timezone/Makefile (tzbases): Move systemv from here...
2005         (tzlinks): to here, since the entries in systemv were all changed
2006         from Zone to Link lines in tz-2001a.  Bug reported (and patch
2007         tested) by Peter Breitenlohner.
2008
2009 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
2010
2011         * time/tst-posixtz.c (tests): Add new tests.
2012         (main): Test whether tzset() sets daylight properly.
2013
2014 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
2015
2016         * time/tzset.c (tz_compute): Move __daylight, __tzname and
2017         __tzname_cur_max setting...
2018         (tzset_internal): ...here.
2019
2020 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
2021
2022         * time/tzset.c (compute_change): Don't return any value.
2023         (tz_compute): Likewise.  Don't handle southern hemisphere here.
2024         (__tz_convert): But here.
2025
2026 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
2027
2028         * manual/examples/mkfsock.c: Include <string.h> as well.
2029         Patch by Alain De Carolis <alaind@wseurope.com>.
2030
2031 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
2032
2033         * posix/regexec.c (re_match): Fix incorrect register sizes.
2034         (re_search): Likewise.
2035
2036 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
2037
2038         * posix/regcomp.c (regfree): Remove a disused condition.
2039         * posix/regex_internal.c (re_acquire_state): Likewise.
2040         (re_acquire_state_context): Likewise.
2041         (register_state): Remove a redundant malloc invocation.
2042         * posix/regex_internal.h: (re_state_table_entry): Simplify
2043         the structure.
2044
2045 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
2046
2047         * posix/regcomp.c (regcomp): Add __builtin_expect to error
2048         handling conditions.
2049         (regerror): Likewise.
2050         (regfree): Likewise.
2051         (re_compile_internal): Likewise.
2052         (init_dfa): Likewise.
2053         (init_word_char): Likewise.
2054         (create_initial_state): Likewise.
2055         (analyze): Likewise.
2056         (analyze_tree): Likewise.
2057         (duplicate_node): Likewise.
2058         (calc_eclosure): Likewise.
2059         (calc_eclosure_iter): Likewise.
2060         (parse): Likewise.
2061         (parse_reg_exp): Likewise.
2062         (parse_branch): Likewise.
2063         (parse_expression): Likewise.
2064         (parse_subexp): Likewise.
2065         (parse_dup_op): Likewise.
2066         (parse_bracket_exp): Likewise.
2067         (build_equiv_class): Likewise.
2068         (build_charclass): Likewise.
2069         (build_word_op): Likewise.
2070         (fetch_number): Likewise.
2071         (create_tree): Likewise.
2072         (duplicate_tree): Likewise.
2073         * posix/regex.c (BE): New macro.
2074         * posix/regexec.c (re_match): Add __builtin_expect to error
2075         handling conditions.
2076         (re_match_2): Likewise.
2077         (re_search): Likewise.
2078         (re_search_internal): Likewise.
2079         (check_matching): Likewise.
2080         (proceed_next_node): Likewise.
2081         (set_regs): Likewise.
2082         (sift_states_backward): Likewise.
2083         (add_epsilon_backreference): Likewise.
2084         (transit_state): Likewise.
2085         (transit_state_sb): Likewise.
2086         (transit_state_mb): Likewise.
2087         (transit_state_bkref): Likewise.
2088         (transit_state_bkref_loop): Likewise.
2089         (build_trtable): Likewise.
2090         (group_nodes_into_DFAstates): Likewise.
2091         (match_ctx_init): Likewise.
2092         (match_ctx_add_entry): Likewise.
2093         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
2094         to error handling conditions.
2095         (re_string_construct_toupper): Likewise.
2096         (build_wcs_buffer): Likewise.
2097         (build_wcs_upper_buffer): Likewise.
2098         (build_upper_buffer): Likewise.
2099         (re_string_translate_buffer): Likewise.
2100         (re_node_set_alloc): Likewise.
2101         (re_node_set_init_1): Likewise.
2102         (re_node_set_init_2): Likewise.
2103         (re_node_set_init_copy): Likewise.
2104         (re_node_set_intersect): Likewise.
2105         (re_node_set_init_union): Likewise.
2106         (re_node_set_merge): Likewise.
2107         (re_node_set_insert): Likewise.
2108         (re_dfa_add_node): Likewise.
2109         (re_acquire_state): Likewise.
2110         (re_acquire_state_context): Likewise.
2111         (create_new_state_common): Likewise.
2112         (register_state): Likewise.
2113         (create_ci_new_state): Likewise.
2114         (create_cd_new_state): Likewise.
2115         (re_string_context_at): Remove redundant condition.
2116
2117 2002-01-16  Roger Sayle  <roger@eyesopen.com>
2118
2119         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
2120
2121         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
2122
2123 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
2124
2125         * sysdeps/i386/elf/configure.in: Fix comment.
2126
2127         * sysdeps/sparc/sparc64/configure.in: New.
2128         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
2129         if .dynamic comes before .got.
2130         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
2131
2132         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
2133         HP_TIMING_ACCUM): Fix typos.
2134
2135 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
2136
2137         * string/strfry.c: Add some more randomness to the seed.
2138         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
2139
2140         * po/es.po: Update from translation team.
2141         * po/fr.po: Likewise.
2142
2143         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
2144
2145         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
2146         when determining type of format.
2147         Patch by James Antill <james@anqd.org> [PR libc/2787].
2148
2149 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
2150
2151         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
2152
2153 2002-03-11  Roland McGrath  <roland@frob.com>
2154
2155         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
2156
2157         * Versions.def (libc): Add GLIBC_2.2.6.
2158         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
2159         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
2160         __errno_location instead of __hurd_errno_location, and don't inline it.
2161         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2162         * hurd/errno.c: New file.
2163         * hurd/Makefile (routines): Add errno.
2164
2165 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
2166
2167         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
2168         ridiculously large widths and precisions [PR libc/3026].
2169
2170 2002-03-11  Andreas Jaeger  <aj@suse.de>
2171
2172         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
2173         support.
2174         Patch by Susanne Oberhauser <froh@SuSE.de>.
2175
2176 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
2177
2178         * inet/rexec.c (ahostbuf): Define as static.
2179
2180         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
2181         (__ctype32_wctrans): Likewise.
2182         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
2183         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
2184         (__ctype32_wctrans): Likewise.
2185         (__ctype32_width): Likewise.
2186
2187         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
2188         They were never exported anyway.
2189
2190         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
2191         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
2192         exported.
2193         * include/sys/gmon.h: Declare _gmonparam.
2194
2195         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
2196         symbols for getdents64.  They were never exported.
2197
2198 2002-03-09  Roland McGrath  <roland@frob.com>
2199
2200         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
2201         Reported by Jon Arney <jarney1@cox.net>.
2202
2203 2002-02-23  Roland McGrath  <roland@frob.com>
2204
2205         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
2206         declaration.
2207         (__hurd_errno_location): Function removed.
2208
2209 2002-03-06  Andreas Jaeger  <aj@suse.de>
2210
2211         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
2212         32-bit.
2213
2214 2002-03-04  Andreas Jaeger  <aj@suse.de>
2215
2216         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
2217
2218         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
2219         x86-64.
2220
2221         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
2222
2223         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
2224
2225         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
2226
2227         * sysdeps/x86_64/bits/setjmp.h: New.
2228
2229         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
2230
2231         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
2232
2233         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
2234         for x86.
2235         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
2236         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
2237
2238 2002-02-28  Bo Thorsen  <bo@suse.de>
2239
2240         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
2241         version.
2242
2243 2002-03-03  Andreas Jaeger  <aj@suse.de>
2244
2245         * sysdeps/x86_64/bits/wordsize.h: New file.
2246
2247         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
2248         * elf/tst-tlsmod1.c: Likewise.
2249
2250         * posix/regcomp.c: Get regex.h from include dir for internal
2251         prototypes.
2252
2253         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
2254         to libc-internal.h and include it.
2255         * include/libc-internal.h: Add __init_misc.
2256
2257         * misc/init-misc.c: Include libc-internal.h for prototypes.
2258
2259         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
2260
2261         * misc/error.c [_LIBC]: Include libioP.h for prototype of
2262         _IO_putc_internal.
2263
2264 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
2265
2266         * posix/regcomp.c: Compatibility changes to allow using the code
2267         outside glibc.
2268
2269 2002-02-28  Hartvig Ekner <hartvige@mips.com>
2270
2271         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
2272         compiled non-PIC.
2273
2274 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
2275
2276         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
2277         of .str elements in the returned data structure.
2278
2279         * elf/elf.h: Add Alpha TLS bits.
2280
2281 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
2282
2283         * sysdeps/unix/sysv/linux/nice.c: New file.
2284
2285 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
2286
2287         * elf/Makefile (dl-routines): Add dl-origin.
2288         (elide-routines.os): Add dl-origin.
2289         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
2290         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
2291         _dl_debug_state.
2292         * include/libc-symbols.c: Define attribute_hidden depending on
2293         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
2294
2295         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
2296         * elf/dl-load.c: Likewise.
2297         * elf/rtld.c: Likewise.
2298         * include/unistd.h: Declare __libc_enable_secure_internal.
2299         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
2300         Use INTUSE with __libc_enable_secure.
2301         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2302
2303         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
2304         * elf/dl-error.c: Likewise,
2305         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
2306
2307         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
2308         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
2309         function definition.  Use INTDEF with _dl_get_origin.
2310         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2311
2312         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
2313         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
2314
2315         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
2316         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
2317         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
2318
2319         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
2320         * elf/dl-deps.c: Likewise.
2321         * elf/dl-error.c: Likewise.
2322         * elf/dl-fini.c: Likewise.
2323         * elf/dl-init.c: Likewise.
2324         * elf/dl-load.c: Likewise.
2325         * elf/dl-lookup.c: Likewise.
2326         * elf/dl-reloc.c: Likewise.
2327         * elf/dl-version.c: Likewise.
2328         * elf/do-lookup.h: Likewise.
2329         * sysdeps/arm/dl-machine.h: Likewise.
2330         * sysdeps/cris/dl-machine.h: Likewise.
2331         * sysdeps/hppa/dl-machine.h: Likewise.
2332         * sysdeps/i386/dl-machine.h: Likewise.
2333         * sysdeps/m68k/dl-machine.h: Likewise.
2334         * sysdeps/powerpc/dl-machine.h: Likewise.
2335         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2336         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2337         * sysdeps/sh/dl-machine.h: Likewise.
2338         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
2339         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
2340         * sysdeps/x86_64/dl-machine.h: Likewise.
2341         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
2342         _dl_argv[0].  Use INTUSE with _dl_argv.
2343         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
2344         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
2345
2346 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
2347
2348         * elf/rtld.c (_rtld_global): Remove .protected.
2349         (_rtld_local): Strong alias to _rtld_global.
2350         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
2351         only .os object.
2352         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
2353         _rtld_local instead of _rtld_global.
2354         (_rtld_local): Add hidden extern, possibly in .sdata section.
2355         * configure.in: Add tests for visibility attribute and .sdata.
2356         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
2357         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
2358         * sysdeps/arm/dl-machine.h: Likewise.
2359         * sysdeps/generic/ldsodefs.h: Likewise.
2360         * sysdeps/hppa/dl-machine.h: Likewise.
2361         * sysdeps/cris/dl-machine.h: Likewise.
2362         * sysdeps/i386/dl-machine.h: Likewise.
2363         * sysdeps/ia64/dl-machine.h: Likewise.
2364         * sysdeps/m68k/dl-machine.h: Likewise.
2365         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2366         * sysdeps/mips/dl-machine.h: Likewise.
2367         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2368         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2369         * sysdeps/sh/dl-machine.h: Likewise.
2370         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2371         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2372         * sysdeps/x86_64/dl-machine.h: Likewise.
2373
2374 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
2375
2376         * login/login.c (login): Always initialize ut_line field
2377         [PR libc/2991].
2378
2379 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
2380
2381         * sysdeps/i386/Makefile (sysdep_routines): Add
2382         divdi3 in csu dir.
2383         (shared-only-routines): Likewise.
2384         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
2385         (shared-only-routines): Likewise.
2386         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
2387         (shared-only-routines): Likewise.
2388         * sysdeps/wordsize-32/divdi3.c: New file.
2389
2390 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
2391
2392         * locale/iso-4217.def: Remove obsolete currencies for countries
2393         with Euro.
2394
2395 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
2396
2397         * posix/regcomp.c (regcomp): Remove a redundant condition.
2398         (init_word_char): Add a check on malloc failure.
2399         (create_initial_state): Likewise.
2400         (duplicate_node): Likewise.
2401         (calc_eclosure): Likewise.
2402         (calc_eclosure_iter): Likewise.
2403         (parse_expression): Likewise.
2404         (parse_bracket_exp): Remove unnecessary malloc invocations.
2405         (build_equiv_class): Likewise.
2406         (build_charclass): Likewise.
2407         * posix/regex_internal.c (re_node_set_intersect): Add a check
2408         on malloc failure.
2409         (re_node_set_add_intersect): Likewise.
2410         (re_node_set_merge): Likewise.
2411         (re_acquire_state): Likewise.
2412         (re_acquire_state_context): Likewise.
2413         (create_newstate_common): Likewise.
2414         (register_state): Likewise.
2415         (create_ci_newstate): Likewise.
2416         (create_cd_newstate): Likewise.
2417         * posix/regex_internal.h: Fix prototypes of re_acquire_state
2418         and re_acquire_state_context.
2419         * posix/regexec.c (regexec): Suit it to the error handling of
2420         re_search_internal.
2421         (re_match): Likewise.
2422         (re_search): Likewise.
2423         (re_search_internal): Add a check on malloc failure.
2424         (acquire_init_state_context): Likewise.
2425         (check_matching): Likewise.
2426         (proceed_next_node): Likewise.
2427         (set_regs): Likewise.
2428         (sift_states_backward): Likewise.
2429         (sift_states_iter_bkref): Likewise.
2430         (add_epsilon_backreference): Likewise.
2431         (transit_state): Likewise.
2432         (transit_state_sb): Likewise.
2433         (transit_state_mb): Likewise.
2434         (transit_state_bkref_loop): Likewise.
2435         (build_trtable): Likewise.
2436         (group_nodes_into_DFAstates): Likewise.
2437         (match_ctx_init): Likewise.
2438         (match_ctx_add_entry): Likewise.
2439
2440 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
2441
2442         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
2443         l_libname if profiling is enabled [PR libc/2916].
2444
2445         * sysdeps/ia64/dl-tls.h: New file.
2446
2447 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
2448
2449         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
2450         Work around an Alpha gas bug.
2451
2452 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
2453
2454         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
2455         uses read to load the catalog.
2456         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
2457
2458 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
2459
2460         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
2461         regex_internal.c, and regex_internal.h.
2462         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
2463         * posix/regex.c: Complete rewrite.
2464         * posix/regexec.c: New file.
2465         * posix/regcomp.c: New file.
2466         * posix/regex_internal.c: New file.
2467         * posix/regex_internal.h: New file.
2468         * posix/regex.h (RE_ICASE): New macro.
2469         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
2470
2471         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
2472         ungetwc.  It's a macro.
2473         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
2474         implementation.
2475         Reported by Jason Merrill <jason@redhat.com>.
2476
2477 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
2478
2479         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
2480         position to fp->_offset if it is set.
2481         * stdio-common/Makefile (tests): Add tst-fdopen.
2482         * stdio-common/tst-fdopen.c: New test.
2483
2484 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
2485
2486         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
2487         * stdio-common/tst-ungetc.c (main): Add another test.
2488
2489 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
2490
2491         * assert/assert-perr.c: Use INTUSE to reference functions and variables
2492         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
2493         aliases.  Add prototypes for the new aliases.
2494         * assert/assert.c: Likewise.
2495         * include/libc-symbols.h: Likewise.
2496         * include/stdio.h: Likewise.
2497         * include/netinet/in.h: Likewise.
2498         * include/rpc/auth.h: Likewise.
2499         * include/rpc/auth_unix.h: Likewise.
2500         * include/rpc/key_prot.h: Likewise.
2501         * include/rpc/pmap_prot.h: Likewise.
2502         * include/rpc/pmap_rmt.h: Likewise.
2503         * include/rpc/rpc_msg.h: Likewise.
2504         * include/rpc/xdr.h: Likewise.
2505         * inet/gethstbyad_r.c: Likewise.
2506         * inet/gethstbynm2_r.c: Likewise.
2507         * inet/gethstbynm_r.c: Likewise.
2508         * inet/gethstent_r.c: Likewise.
2509         * inet/in6_addr.c: Likewise.
2510         * libio/__fpurge.c: Likewise.
2511         * libio/filedoalloc.c: Likewise.
2512         * libio/fileops.c: Likewise.
2513         * libio/ftello.c: Likewise.
2514         * libio/ftello64.c: Likewise.
2515         * libio/genops.c: Likewise.
2516         * libio/iofclose.c: Likewise.
2517         * libio/iofdopen.c: Likewise.
2518         * libio/iofflush.c: Likewise.
2519         * libio/iofflush_u.c: Likewise.
2520         * libio/iofgetpos.c: Likewise.
2521         * libio/iofgetpos64.c: Likewise.
2522         * libio/iofgets.c: Likewise.
2523         * libio/iofgets_u.c: Likewise.
2524         * libio/iofopen.c: Likewise.
2525         * libio/iofopncook.c: Likewise.
2526         * libio/iofputs.c: Likewise.
2527         * libio/iofread.c: Likewise.
2528         * libio/iofread_u.c: Likewise.
2529         * libio/iofsetpos.c: Likewise.
2530         * libio/iofsetpos64.c: Likewise.
2531         * libio/ioftell.c: Likewise.
2532         * libio/iofwrite.c: Likewise.
2533         * libio/iogetline.c: Likewise.
2534         * libio/iogets.c: Likewise.
2535         * libio/iogetwline.c: Likewise.
2536         * libio/iolibio.h: Likewise.
2537         * libio/iopadn.c: Likewise.
2538         * libio/iopopen.c: Likewise.
2539         * libio/ioseekoff.c: Likewise.
2540         * libio/ioseekpos.c: Likewise.
2541         * libio/iosetbuffer.c: Likewise.
2542         * libio/iosetvbuf.c: Likewise.
2543         * libio/ioungetc.c: Likewise.
2544         * libio/ioungetwc.c: Likewise.
2545         * libio/iovdprintf.c: Likewise.
2546         * libio/iovsprintf.c: Likewise.
2547         * libio/iovsscanf.c: Likewise.
2548         * libio/libioP.h: Likewise.
2549         * libio/memstream.c: Likewise.
2550         * libio/obprintf.c: Likewise.
2551         * libio/oldfileops.c: Likewise.
2552         * libio/oldiofclose.c: Likewise.
2553         * libio/oldiofdopen.c: Likewise.
2554         * libio/oldiofgetpos.c: Likewise.
2555         * libio/oldiofgetpos64.c: Likewise.
2556         * libio/oldiofopen.c: Likewise.
2557         * libio/oldiofsetpos.c: Likewise.
2558         * libio/oldiofsetpos64.c: Likewise.
2559         * libio/oldiopopen.c: Likewise.
2560         * libio/oldstdfiles.c: Likewise.
2561         * libio/putc.c: Likewise.
2562         * libio/setbuf.c: Likewise.
2563         * libio/setlinebuf.c: Likewise.
2564         * libio/stdfiles.c: Likewise.
2565         * libio/stdio.c: Likewise.
2566         * libio/strops.c: Likewise.
2567         * libio/vasprintf.c: Likewise.
2568         * libio/vscanf.c: Likewise.
2569         * libio/vsnprintf.c: Likewise.
2570         * libio/vswprintf.c: Likewise.
2571         * libio/wfiledoalloc.c: Likewise.
2572         * libio/wfileops.c: Likewise.
2573         * libio/wgenops.c: Likewise.
2574         * libio/wstrops.c: Likewise.
2575         * malloc/mtrace.c: Likewise.
2576         * misc/error.c: Likewise.
2577         * misc/syslog.c: Likewise.
2578         * nss/getXXbyYY_r.c: Likewise.
2579         * nss/getXXent_r.c: Likewise.
2580         * nss/hosts-lookup.c: Likewise.
2581         * stdio-common/getw.c
2582         * stdio-common/printf-prs.c: Likewise.
2583         * stdio-common/printf_fp.c: Likewise.
2584         * stdio-common/printf_size.c: Likewise.
2585         * stdio-common/putw.c: Likewise.
2586         * stdio-common/scanf.c: Likewise.
2587         * stdio-common/sprintf.c: Likewise.
2588         * stdio-common/tmpfile64.c: Likewise.
2589         * stdio-common/vfprintf.c: Likewise.
2590         * stdio-common/vfscanf.c: Likewise.
2591         * stdlib/strfmon.c: Likewise.
2592         * sunrpc/auth_des.c: Likewise.
2593         * sunrpc/auth_none.c: Likewise.
2594         * sunrpc/auth_unix.c: Likewise.
2595         * sunrpc/authdes_prot.c: Likewise.
2596         * sunrpc/authuxprot.c: Likewise.
2597         * sunrpc/clnt_perr.c: Likewise.
2598         * sunrpc/clnt_raw.c: Likewise.
2599         * sunrpc/clnt_tcp.c: Likewise.
2600         * sunrpc/clnt_udp.c: Likewise.
2601         * sunrpc/clnt_unix.c: Likewise.
2602         * sunrpc/key_call.c: Likewise.
2603         * sunrpc/key_prot.c: Likewise.
2604         * sunrpc/openchild.c: Likewise.
2605         * sunrpc/pm_getmaps.c: Likewise.
2606         * sunrpc/pm_getport.c: Likewise.
2607         * sunrpc/pmap_clnt.c: Likewise.
2608         * sunrpc/pmap_prot.c: Likewise.
2609         * sunrpc/pmap_prot2.c: Likewise.
2610         * sunrpc/pmap_rmt.c: Likewise.
2611         * sunrpc/rpc_cmsg.c: Likewise.
2612         * sunrpc/rpc_prot.c: Likewise.
2613         * sunrpc/svc_authux.c: Likewise.
2614         * sunrpc/svc_raw.c: Likewise.
2615         * sunrpc/svc_simple.c: Likewise.
2616         * sunrpc/svc_tcp.c: Likewise.
2617         * sunrpc/svc_udp.c: Likewise.
2618         * sunrpc/svc_unix.c: Likewise.
2619         * sunrpc/xdr.c: Likewise.
2620         * sunrpc/xdr_array.c: Likewise.
2621         * sunrpc/xdr_mem.c: Likewise.
2622         * sunrpc/xdr_rec.c: Likewise.
2623         * sunrpc/xdr_ref.c: Likewise.
2624         * sunrpc/xdr_stdio.c: Likewise.
2625         * sysdeps/generic/_strerror.c: Likewise.
2626         * sysdeps/generic/printf_fphex.c: Likewise.
2627         * sysdeps/generic/tmpfile.c: Likewise.
2628         * sysdeps/gnu/errlist.awk: Likewise.
2629         * sysdeps/gnu/errlist.c: Likewise.
2630
2631         * libio/Makefile (routines): Remove iosprint.
2632         * libio/iosprintf.c: Removed
2633
2634
2635 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
2636
2637         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
2638         non_dynamic_init and exported now.
2639         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
2640         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
2641         !SHARED.
2642         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
2643         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2644         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2645
2646 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
2647
2648         * elf/dl-close.c (free_slotinfo): Check for end of list and return
2649         true in this case.
2650
2651         * locale/iso-639.def: Add language codes for Walloon.
2652
2653         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
2654         total number of relocations performed.
2655
2656         * elf/sprof.c (load_profdata): If do_test provide information as
2657         to why loading failed.
2658         * elf/dl-profile.c (_dl_start_profile): Initialize all of
2659         hist_hdr.dimen.
2660
2661         * csu/set-init.c: Moved to...
2662         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
2663         * csu/Makefile: Don't compile set-init.
2664         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
2665         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
2666         to __libc_init.
2667         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2668         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2669         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
2670         __libc_init.
2671         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
2672         __libc_subinit.
2673
2674 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
2675
2676         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
2677         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
2678         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
2679         (_dl_deallocate_tls): New function.
2680         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
2681         _dl_deallocate_tls.
2682
2683 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
2684
2685         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
2686         * stdio-common/tst-fseek.c (main): Add test for this.
2687
2688 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
2689
2690         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
2691
2692 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
2693
2694         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
2695         pointer before dereferencing.
2696
2697 2002-02-18  Roland McGrath  <roland@frob.com>
2698
2699         * sysdeps/mach/hurd/times.c: Fix typo in last change.
2700
2701         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
2702         Use task_policy in place of task_priority.
2703
2704         * sysdeps/generic/bits/mman.h
2705         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
2706         * sysdeps/mach/msync.c: New file.
2707
2708         * sysdeps/mach/powerpc/syscall.S: New file.
2709
2710         * mach/msg.c [MACH_MSG_OVERWRITE]
2711         (__mach_msg_trap, __mach_msg_overwrite): New functions.
2712         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
2713
2714         * sysdeps/mach/configure.in: Check for clock.defs to put into
2715         mach_interface_list.
2716         * sysdeps/mach/configure: Regenerated.
2717
2718         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
2719         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
2720         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
2721         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
2722         (mach-shortcuts): Add device_read_overwrite_request,
2723         device_read_overwrite, vm_read_overwrite, thread_switch.
2724
2725         * configure.in (base_machine): Set to $machine by default.
2726         * configure: Regenerated.
2727
2728         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
2729         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
2730         * sysdeps/mach/configure: Regenerated.
2731         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
2732
2733         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
2734
2735         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
2736
2737         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
2738         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
2739
2740 2002-02-17  Roland McGrath  <roland@frob.com>
2741
2742         * sysdeps/mach/hurd/times.c
2743         [NO_CREATION_TIME] (startup_time): New static variable.
2744         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
2745         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
2746         creation_time from task_basic_info.
2747         (__times): Use __gettimeofday instead of __host_get_time.
2748
2749         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
2750         Use untyped Mach IPC message format.
2751
2752         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
2753
2754         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
2755         _S_catch_exception_raise_state_identity,
2756         _hurdsig_fault_catch_exception_raise_state,
2757         _hurdsig_fault_catch_exception_raise_state_identity.
2758
2759         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
2760
2761         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
2762         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
2763
2764         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
2765         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
2766
2767         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
2768         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
2769         them as no-op macros.
2770         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
2771         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
2772
2773         * sysdeps/powerpc/dl-machine.h
2774         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
2775
2776         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
2777         Use untyped Mach IPC message format.
2778
2779         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
2780         Handle untyped Mach IPC message formats.
2781
2782         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
2783         Expect different argument conventions when this is defined.
2784         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
2785         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
2786         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
2787         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
2788         for OSF Mach variant.
2789         (faulted): Use mig_reply_error_t for REPLY.
2790         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
2791         in __thread_set_exception_ports call.
2792         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
2793         __mach_port_set_attributes in place of __mach_port_set_qlimit.
2794
2795         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
2796         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
2797         on Darwin, which includes bogons.
2798
2799         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
2800         variable LOADBASE so it's not declared when it's not used.
2801
2802 2002-02-16  Roland McGrath  <roland@frob.com>
2803
2804         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
2805         to use BI.creation_time.
2806
2807         * mach/Machrules (MIG): Add -x c to CPP value passed down.
2808
2809         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
2810         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
2811         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
2812         host_page_size instead of vm_statistics.
2813
2814         * sysdeps/mach/Makefile (mach-before-compile): Don't include
2815         mach_interface.h here, since not all variants use that name.
2816
2817         * sysdeps/mach/configure.in: Add some checks for Mach headers
2818         to ensure a sane installation.
2819         (mach_interface_list): Define this variable by checking for .defs
2820         files found in various variants.
2821         * configure.in (mach_interface_list): AC_SUBST this.
2822         * config.make.in (mach-interface-list): New substituted variable.
2823         * mach/Makefile (user-interfaces): Define this using the value
2824         of $(mach-interface-list) instead of mach, mach4.
2825         Updated other references to mach_interface to use it as well.
2826
2827         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
2828
2829         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
2830         mig_reply_error_t for OSF Mach variant.
2831
2832         * mach/Makefile (routines): Remove bootprivport.
2833         * mach/bootprivport.c: File removed.  It has never been used.
2834
2835         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
2836         Grok the OSF flavor of message format.
2837         (mach_msg_destroy_port): For MAKE_SEND and
2838         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
2839         no-senders notification.
2840
2841 2002-02-06  Roland McGrath  <roland@frob.com>
2842
2843         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
2844         to here if 2.0 compatibility enabled ...
2845         (libc: GLIBC_2.1.3): ... from here.
2846
2847 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
2848
2849         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
2850         generation counter.
2851         * elf/dl-close.c (_dl_close): Likewise.
2852
2853 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
2854
2855         * elf/Makefile: Add rules to build and run tst-tls8.
2856         * elf/tst-tls8.c: New file.
2857         * elf/tst-tlsmod4.c: New file.
2858
2859         * stdlib/test-a64l.c (tests): Add more test cases.
2860
2861         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
2862         Reported by Walter Harms <WHarms@bfs.de>.
2863
2864 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
2865
2866         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
2867         definitions for struct sigcontext.
2868         Suggested by David Mosberger-Tang.
2869
2870 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
2871
2872         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
2873         for removing reference of module in slotinfo list.
2874         (_dl_close): Use remove_slotinfo.
2875         * sysdeps/generic/dl-tls.c: General pretty printing.
2876         (oom): Define only if SHARED.
2877         (_dl_next_tls_modid): Correct starting point for the case we assume
2878         there is a gap.  Add missing instruction grouping (doh!).  Correct
2879         tests for reaching maximum index.
2880         * elf/Makefile: Add rules to build and run tst-tls7.
2881         * elf/tst-tls7.c: New file.
2882         * elf/tst-tlsmod3.c: New file.
2883
2884         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
2885         USE_TLS.
2886         * elf/tst-tlsmod2.c: Likewise.
2887
2888         * elf/dl-close.c (_dl_close): When closing an object using TLS
2889         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
2890         true.  Increment dl_tls_generation only if we closed any TLS-using
2891         object.
2892         * elf/tst-tls6.c: New file.
2893         * elf/Makefile: Add rules to build and run tst-tls6.
2894
2895         * po/da.po: Update from translation team.
2896
2897         * locale/categories.def: Fix typo [PR libc/2948].
2898         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
2899         [PR libc/2949].
2900         * locale/iso-4217.def: Update from official version [PR libc/2950].
2901         * glibcbug.in: Honor TMPDIR [PR libc/2951].
2902         * locale/programs/ld-collate.c (collate_finish): Bail out with a
2903         message if input is too confusion instead of using assert.
2904         (collate_read): Don't crash on unknown symbol [PR libc/2952].
2905         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
2906
2907         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
2908         * elf/tst-tls2.c: Likewise.
2909         * elf/tst-tls3.c: Likewise.
2910
2911 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
2912
2913         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
2914
2915 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
2916
2917         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
2918         if this is really necessary.
2919
2920         * elf/dl-close.c (_dl_close): Implement freeing entries in the
2921         slotinfo array.
2922         (free_mem): Free memory for the slotinfo array if possible.
2923
2924 2002-02-12  Andreas Schwab  <schwab@suse.de>
2925
2926         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
2927
2928 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
2929
2930         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
2931         TLS_DTV_UNALLOCATE.
2932         (oom): New function.
2933         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
2934         (_dl_determine_tlsoffset): Likewise.
2935         (_dl_allocate_tls): Likewise.
2936         (__TLS_GET_ADDR): Define if not already defined.
2937         (_dl_tls_symaddr): New function.
2938         (allocate_and_init): New function.
2939         (__tls_get_addr): Actually implement handling of generation counter
2940         and deferred allocation.
2941         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
2942         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
2943         _dl_tls_generation.
2944         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
2945         Declare _dl_tls_symaddr.
2946         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
2947         SHARED.
2948         * include/link.h (struct link_map):  Remove l_tls_nextimage and
2949         l_tls_previmage.
2950         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
2951         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
2952         (_dl_vsym): Likewise.
2953         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
2954         layout.
2955         (dl_main): Allow PT_TLS be present for empty segment.  Remove
2956         nextimage list handling.  Instead add all modules using TLS to
2957         dl_tls_dtv_slotinfo_list.
2958         * elf/dl-open.c (dl_open_worker): After successfully loading all
2959         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
2960         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
2961         empty segment don't do anything.  Remove handling of initimage list.
2962         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
2963         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
2964         * elf/dl-minimal.c: Define __libc_memalign.
2965         * elf/dl-support.c: Remove _dl_initimage_list.  Add
2966         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
2967         _dl_tls_generation.
2968         * include/stdlib.h: Declare __libc_memalign.
2969
2970         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
2971         * elf/tst-tls4.c: New file.
2972         * elf/tst-tls5.c: New file.
2973         * elf/tst-tlsmod2.c: New file.
2974
2975         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
2976
2977         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
2978
2979         * elf/tst-tls1.c: Use test-skeleton.c.
2980         * elf/tst-tls2.c: Likewise.
2981         * elf/tst-tls3.c: Likewise.
2982
2983         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
2984
2985 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
2986
2987         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
2988
2989 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
2990
2991         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
2992
2993         * elf/tst-tls3.c: New file.
2994         * elf/tst-tlsmod1.c: New file.
2995         * elf/Makefile: Add rules to build and run tst-tls3.
2996
2997         * sysdeps/i386/dl-machine.h: Include <tls.h>.
2998         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
2999         TLS relocations.
3000
3001         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
3002
3003         * po/fr.po: Update from translation team.
3004
3005         * elf/tls-macros.h: Add alternative macros for use in PIC.
3006
3007         * elf/dl-lookup.c: Include <tls.h>.
3008         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
3009
3010         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
3011         required by passing pointer to last element of the list.
3012
3013         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
3014         l_tls_initimage to a place where it actually is performed.
3015
3016         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
3017         after globfree() calls.
3018
3019         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
3020         (openaux): Pass open_mode as new last argument to _dl_map_object.
3021         (_dl_map_object_deps): Add new argument open_mode.  Initialize
3022         open_mode element of args variable with it.
3023         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
3024         _dl_map_object_deps.
3025         * elf/rtld.c (dl_main): Add zero as last parameter to
3026         _dl_map_object_deps call.
3027         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
3028         * elf/nodlopen2.c: New file.
3029         * elf/nodlopenmod2.c: New file.
3030         * elf/Makefile: Add rules to build and run nodlopen2.
3031
3032         * elf/tst-tls1.c: Move TLS helper macros to...
3033         * elf/tls-macros.h: ...here.  New file.
3034         * elf/tst-tls2.c: New file.
3035         * elf/Makefile (tests): Add tst-tls2.
3036         (distribute): Add tls-macros.h.
3037
3038         * po/sv.po: Update from translation team.
3039
3040         * elf/tst-tls1.c (main): Add complete set of tests.  Split
3041         architecture specific definitions from the actual test code.
3042
3043         * po/tr.po: Update from translation team.
3044
3045 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
3046
3047         * elf/Makefile (tests): Add tst-tls1.
3048         * elf/tst-tls1.c: New file.
3049
3050         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
3051         alignment of TCB for now.
3052
3053         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
3054         initialization image for the application itself.
3055
3056         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
3057         loop to initialize TLS block.
3058
3059 2002-02-08  Richard Henderson  <rth@redhat.com>
3060
3061         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
3062         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
3063
3064         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
3065
3066 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
3067
3068         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
3069
3070 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
3071
3072         * po/ca.po: Update from translation team.
3073         * po/sk.po: Likewise.
3074
3075         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
3076         (dl_main): Move dtv/static TLS handling before relocation.
3077         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
3078         TLS_INIT_TP to allocate and install the dtv/static TLS block.
3079         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
3080         so far uses TLS initialize GL(dl_tls_static_size) and
3081         GL(dl_tls_static_align) to account for the TCB.
3082         (_dl_allocate_tls): New function.
3083         * sysdeps/generic/ldsodefs.h (rtld_global): Add
3084         _dl_initial_dtv_malloced.
3085
3086         * configure.in: Test for __builtin_memset more realistically.
3087
3088         * csu/version.c (banner): If TLS support is available say so.
3089
3090 2002-02-04  H.J. Lu  <hjl@gnu.org>
3091
3092         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
3093         __attribute_used__.
3094         (__dl_runtime_resolve): Likewise.
3095
3096         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
3097         declaration.
3098
3099 2001-11-15  H.J. Lu  <hjl@gnu.org>
3100
3101         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
3102         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
3103
3104         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
3105
3106 2002-02-07  H.J. Lu  <hjl@gnu.org>
3107
3108         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
3109         ".set noreorder".
3110         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
3111         Likewise.
3112
3113 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
3114
3115         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
3116
3117         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
3118         ___tls_get_addr_internal.
3119         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
3120
3121         * po/ko.po: Update from translation team.
3122
3123 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
3124
3125         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
3126         attribute, change __pad{1,2} type to unsigned int.
3127         (struct stat64): Remove packed attribute.
3128
3129 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
3130
3131         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
3132
3133 2002-02-07  Andreas Schwab  <schwab@suse.de>
3134
3135         * configure.in: Fix check for -zcombreloc.
3136
3137 2002-02-06  H.J. Lu  <hjl@gnu.org>
3138
3139         * config.h.in (HAVE_BUILTIN_MEMSET): New.
3140         * configure.in: Check if __builtin_memset really works.
3141         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
3142         __GNUC_PREREQ (2, 96) before using __builtin_memset.
3143
3144 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
3145
3146         * io/bug-ftw3.c (main): Don't try the test if root.
3147
3148 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3149
3150         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
3151         constraints.
3152         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
3153         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
3154         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
3155         Likewise.
3156         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
3157         a weak alias for __clone.
3158         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
3159         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
3160         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
3161         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
3162         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
3163         a weak alias for __mmap64.
3164
3165 2002-02-05  H.J. Lu  <hjl@gnu.org>
3166
3167         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
3168         (atomic_add): Likewise.
3169         (compare_and_swap): Likewise.
3170         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
3171
3172 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
3173
3174         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
3175
3176         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
3177         alignment of the TCB and store total size and alignment of static
3178         TLS block in _dl_tls_static_size and _dl_tls_static_align.
3179         tls_index is a typedef.
3180         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
3181         _dl_tls_static_align.
3182         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
3183         * elf/dl-support.c: Define _dl_tls_static_size and
3184         _dl_tls_static_align.
3185
3186 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
3187
3188         * configure.in: Add --without-tls option.
3189         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
3190         --without-tls is given.
3191
3192         * sysdeps/generic/dl-tls.c: Include <tls.h>.
3193
3194         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
3195
3196 2002-02-06  Roland McGrath  <roland@frob.com>
3197
3198         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
3199         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
3200
3201         * scripts/versions.awk: Improve error message for missing version.
3202         Each version inherits from the last one only if they have the same
3203         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
3204         but not GLIBC_x and FOO_y.
3205
3206         * scripts/firstversions.awk: Handle libraries that don't have each
3207         particular version named in the third column of shlib-versions.
3208
3209         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
3210
3211 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
3212
3213         * Versions.def [ld]: Add GLIBC_2.3.
3214         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
3215         * elf/Makefile (dl-routines): Add dl-tls.
3216         (distribute): Add dl-tls.h.
3217         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3218         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
3219         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
3220         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
3221         along with the other info in the link map.  Change queueing of init
3222         images for double linked list.  Use _dl_next_tls_modid to compute
3223         l_tls_modid.
3224         * elf/rtld.c (_dl_start_final): Store alignment requirement
3225         along with the other info in rtld map and executable map.
3226         (dl_main): Add ld.so to the init image list if necessary.  Compute
3227         final module ID with _dl_next_tls_modid.
3228         * include/link.h (struct link_map): Add l_tls_previmage and
3229         l_tls_align.
3230         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
3231         * sysdeps/i386/elf/Versions: New file.
3232         * sysdeps/generic/dl-tls.c: New file.
3233         * sysdeps/generic/dl-tls.h: New file.
3234         * sysdeps/i386/dl-tls.h: New file.
3235
3236 2002-02-06  Roland McGrath  <roland@frob.com>
3237
3238         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
3239         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
3240
3241 2002-01-05  Roland McGrath  <roland@frob.com>
3242
3243         * sysdeps/mach/configure.in: New file.
3244         * sysdeps/mach/configure: New generated file.
3245
3246         * mach/Makefile (user-interfaces): Remove default_pager_helper.
3247         It has never been used by anything.
3248
3249 2002-02-06  H.J. Lu  <hjl@gnu.org>
3250
3251         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
3252         is included.
3253
3254 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
3255
3256         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
3257         attribute((packed)) to counter stupid people misusing gcc options.
3258         (struct stat64): Likewise.
3259
3260 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
3261
3262         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
3263         the variables which are used as booleans.
3264
3265 2002-02-06  Andreas Jaeger  <aj@suse.de>
3266
3267         * include/libc-symbols.h (INTUSE): Renamed from INT.
3268         * elf/dl-deps.c: Change users.
3269         * sysdeps/generic/dl-sysdep.c: Likewise.
3270         * sysdeps/generic/dl-cache.c: Likewise.
3271         * elf/dl-reloc.c: Likewise.
3272         * elf/rtld.c: Likewise.
3273         * elf/dl-version.c: Likewise.
3274         * elf/dl-load.c: Likewise.
3275         * elf/dl-dst.h: Likewise.
3276         * elf/dl-init.c: Likewise.
3277         * elf/dl-error.c: Likewise.
3278         * elf/dl-fini.c: Likewise.
3279         * elf/dl-runtime.c: Likewise.
3280         * elf/do-lookup.h: Likewise.
3281
3282         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
3283         definition.
3284         * stdio-common/_itowa.h: Likewise.
3285
3286 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
3287
3288         * elf/dl-minimal.c: Define _itoa_lower_digits.
3289
3290         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
3291         DT_FLAGS set.
3292
3293         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
3294         loading modules with the DF_STATIC_TLS flag set.
3295         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
3296         element.
3297         * include/link.h (struct link_map): Add l_flags field.
3298         * elf/elf.h (DF_STATIC_TLS): New definition.
3299
3300         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
3301         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
3302
3303         * elf/rtld.c (process_dl_debug): Correct printing help message.
3304         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
3305         for %s.
3306
3307         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
3308         definition and pass &errno in use of this variable.
3309         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
3310
3311 2002-02-04  Andreas Schwab  <schwab@suse.de>
3312
3313         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
3314         * locale/programs/charmap-dir.c: Wrap calls that output messages
3315         with WITH_CUR_LOCALE.  Include "localedef.h" first.
3316         * locale/programs/charmap.c: Likewise.
3317         * locale/programs/ld-address.c: Likewise.
3318         * locale/programs/ld-collate.c: Likewise.
3319         * locale/programs/ld-ctype.c: Likewise.
3320         * locale/programs/ld-identification.c: Likewise.
3321         * locale/programs/ld-measurement.c: Likewise.
3322         * locale/programs/ld-messages.c: Likewise.
3323         * locale/programs/ld-monetary.c: Likewise.
3324         * locale/programs/ld-name.c: Likewise.
3325         * locale/programs/ld-numeric.c: Likewise.
3326         * locale/programs/ld-paper.c: Likewise.
3327         * locale/programs/ld-telephone.c: Likewise.
3328         * locale/programs/ld-time.c: Likewise.
3329         * locale/programs/linereader.c: Likewise.
3330         * locale/programs/linereader.h: Likewise.
3331         * locale/programs/localedef.c: Likewise.
3332         * locale/programs/locfile.c: Likewise.
3333         * locale/programs/repertoire.c: Likewise.
3334
3335 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
3336
3337         * elf/rtld.c (_dl_start_final): Determine load address to locate
3338         ehdr with GL(dl_rtld_map).l_map_start.
3339
3340         * po/ca.po: Update from translation team.
3341
3342         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
3343         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
3344         header entry.
3345         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
3346         _dl_tls_module_cnt.
3347         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
3348
3349 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
3350
3351         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
3352         * include/link.h (struct link_map): Add various members for TLS
3353         information.
3354         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3355         _rtld_tlsoffset, add _dl_initimage_list.
3356         * sysdeps/i386/dl-lookupcfg.h: New file.
3357         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
3358         TLS relocation.  When using TLS we now use RESOLVE_MAP.
3359         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
3360         is used.
3361
3362         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
3363         unused.
3364
3365         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
3366         thread-pointer as soon as possible.
3367         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
3368         elements in rtld_global.
3369         * sysdeps/generic/tls.h: New file.
3370         * elf/Makefile (distribute): Add tls.h.
3371         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
3372         relocations.  Not complete yet.
3373
3374         * resolv/resolv.h: Allow user to define __need_res_state and only
3375         define __res_start structure then.
3376         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
3377
3378         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
3379         dl_cpuclock_offset initialization to _dl_start_final.
3380         (_dl_show_auxv): Avoid unnecessary sign extension.
3381         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
3382
3383 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
3384
3385         * config.h.in: Add HAVE_TLS_SUPPORT.
3386         * sysdeps/i386/elf/configure.in: New file.
3387
3388 2002-02-03  Andreas Schwab  <schwab@suse.de>
3389
3390         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
3391         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
3392
3393 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
3394
3395         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
3396         alloca if the memory reqirements are too high.
3397
3398 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
3399
3400         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
3401         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
3402         the former is available anyway and speed isn't important here.
3403         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
3404         * elf/dl-version.c (match_symbol): Likewise.
3405         (_dl_check_map_versions): Likewise.
3406         * elf/rtld.c (process_envvars): Likewise.
3407         (print_statistics): Likewise.
3408         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
3409         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
3410         bases.  Add assert to catch uses of unimplemented features.
3411         (__strsep): Add assert to catch uses of unimplemented features.
3412         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
3413         and avoid inline optimization.
3414         * elf/rtld.c (process_envvars): Likewise.
3415         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
3416         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
3417         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
3418
3419 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
3420
3421         * stdio-common/_itoa.h: Minor simplifications of the code.
3422         * stdio-common/_itoa.c: Likewise.
3423
3424         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
3425         instead of _dl_printf for debugging info output.
3426
3427         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
3428         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
3429
3430 2002-02-01  H.J. Lu  <hjl@gnu.org>
3431
3432         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
3433         (atomic_add): Likewise.
3434         (compare_and_swap): Return 0 only when failed to compare. Use
3435         branch likely.
3436
3437         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
3438         branch likely.
3439
3440 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
3441
3442         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
3443
3444 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
3445
3446         * elf/dl-minimal.c (__strsep): New minimal implementation.
3447
3448 2002-02-02  Paul Eggert  <eggert@twinsun.com>
3449
3450         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
3451         (__mktime_internal): If no tm_isdst is requested, prefer solutions
3452         with tm_isdst > 0 when the requested time falls within a
3453         spring-forward gap [PR libc/2894].
3454
3455 2002-02-03  Andreas Schwab  <schwab@suse.de>
3456
3457         * stdio-common/tst-rndseek.c: Increase timeout.
3458
3459 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
3460
3461         Change ld.so to not use functions which are exported.  One cannot
3462         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
3463         definitions.
3464         * include/libc-symbols.h: Define INT and INTDEF.
3465         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
3466         _dl_signal_error_internal, _dl_map_object_internal,
3467         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
3468         _dl_lookup_versioned_symbol_internal,
3469         _dl_relocate_object_internal, _dl_debug_state_internal,
3470         _dl_start_profile_internal, and _dl_unload_cache_internal.
3471         * include/dlfcn.h: Declare _dl_catch_error_internal.
3472         * elf/rtld.c: Use INT for calls to any of the *_internal functions
3473         above.  Add INTDEF to function definitions.
3474         * elf/dl-debug.c: Likewise.
3475         * elf/dl-deps.c: Likewise.
3476         * elf/dl-dst.h: Likewise.
3477         * elf/dl-error.c: Likewise.
3478         * elf/dl-fini.c: Likewise.
3479         * elf/dl-init.c: Likewise.
3480         * elf/dl-load.c: Likewise.
3481         * elf/dl-lookup.c: Likewise.
3482         * elf/dl-misc.c: Likewise.
3483         * elf/dl-open.c: Likewise.
3484         * elf/dl-profile.c: Likewise.
3485         * elf/dl-reloc.c: Likewise.
3486         * elf/dl-runtime.c: Likewise.
3487         * elf/dl-version.c: Likewise.
3488         * elf/do-lookup.h: Likewise.
3489         * sysdeps/generic/dl-cache.c: Likewise.
3490         * sysdeps/generic/dl-sysdep.c: Likewise.
3491         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
3492         instead of _dl_init.
3493         * sysdeps/arm/dl-machine.h: Likewise.
3494         * sysdeps/cris/dl-machine.h: Likewise.
3495         * sysdeps/hppa/dl-machine.h: Likewise.
3496         * sysdeps/i386/dl-machine.h: Likewise.
3497         * sysdeps/ia64/dl-machine.h: Likewise.
3498         * sysdeps/m68k/dl-machine.h: Likewise.
3499         * sysdeps/mips/dl-machine.h: Likewise.
3500         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3501         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3502         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3503         * sysdeps/sh/dl-machine.h: Likewise.
3504         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3505         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3506         * sysdeps/x86_64/dl-machine.h: Likewise.
3507         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
3508
3509         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
3510         and _dl_debug_initialize.
3511
3512         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
3513         more information.
3514         * elf/rtld.c (dl_main): Avoid strrchr.
3515         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
3516         result of readlink.  Search from the back for '/'.
3517
3518         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
3519         strncpy if possible.
3520
3521         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
3522         strncmp.
3523         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
3524         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
3525         strspn, and strcspn.
3526         (process_envvars): Don't use strcspn.
3527
3528         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
3529         (_dl_dst_substitute): Likewise.
3530
3531 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
3532
3533         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
3534         code which is never used when relocating ld.so itself.
3535
3536         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
3537         starting ld.so itself.  Move l_addr variable initialization closer
3538         to use.
3539         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
3540
3541 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
3542
3543         * Versions.def (libc): Add GLIBC_PRIVATE.
3544         (libdb, libnss_db, libdb1): Remove.
3545         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
3546         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
3547         (libpthread): Add GLIBC_PRIVATE.
3548         (libresolv): Likewise, remove GLIBC_2.1.
3549         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
3550         GLIBC_2.2.3, GLIBC_2.3.
3551         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
3552         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
3553         _dl_sym, _dl_vsym): Likewise.
3554         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
3555         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
3556         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
3557         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
3558         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
3559         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
3560         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
3561         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
3562         Likewise.
3563         (_dl_object_relocation_scope): Remove.
3564         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
3565         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
3566         __gconv_cache): Move to GLIBC_PRIVATE.
3567         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
3568         __internal_setnetgrent): Likewise.
3569         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
3570         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
3571         * locale/Versions (__collate_element_hash, __collate_element_strings,
3572         __collate_symbol_classes, __collate_symbol_hash,
3573         __collate_symbol_strings, _nl_current_LC_COLLATE,
3574         _nl_current_LC_CTYPE): Likewise.
3575         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
3576         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
3577         (libnss_nis, libnss_nisplus): Likewise.
3578         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
3579         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
3580         (libnss_files): Move all symbols to GLIBC_PRIVATE.
3581         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
3582         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
3583         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
3584         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
3585         __ns_get16, __ns_samename): Likewise.
3586         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
3587         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
3588         GLIBC_PRIVATE.
3589         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
3590         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
3591         __libc_connect): Likewise.
3592         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
3593         Likewise.
3594         * stdlib/Versions (__libc_system): Likewise.
3595         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
3596         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
3597         * sysdeps/ia64/fpu/Versions: Likewise.
3598         * sysdeps/ia64/Versions: Likewise.
3599         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3600         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
3601         to GLIBC_PRIVATE.
3602         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
3603         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
3604         __libc_sigaction): Likewise.
3605         * termios/Versions (__libc_tcdrain): Likewise.
3606
3607         * misc/sys/cdefs (__attribute_noinline__): Define.
3608         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
3609         __attribute_noinline__.
3610
3611         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
3612         * elf/dl-xstat64.c: New file.
3613         * elf/dl-fxstat64.c: New file.
3614         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
3615         don't export __fxstat64 at multiple versions.
3616         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
3617         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
3618
3619 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
3620
3621         * locale/program/ld-collate.c (collate_finish): Assign a wide
3622         char collation sequence value to multi character collating
3623         elements, and avoid over writing by non-character elements.
3624
3625 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
3626
3627         * elf/Makefile (distribute): Add dl-procinfo.c.
3628         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
3629         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
3630
3631 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
3632
3633         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
3634         definition.
3635         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
3636         _rtld_global struct.
3637         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
3638         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
3639         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
3640         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
3641         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
3642         _dl_fpu_control_set): Remove unused externs.
3643         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
3644         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
3645         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
3646         related variables in _rtld_global struct.
3647         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
3648         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
3649         unused extern.
3650
3651 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
3652
3653         * sysdeps/generic/dl-procinfo.c: New file.
3654
3655 2002-02-01  Andreas Schwab  <schwab@suse.de>
3656
3657         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
3658
3659 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
3660
3661         * elf/rtld.c (_dl_start): Mark as internal_function.
3662         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
3663         in register.
3664         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
3665         General pretty printing.
3666
3667 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
3668
3669         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
3670         * elf/dl-reloc.c: Pretty printing.
3671         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
3672         procinfo-related variables in rtld_global struct.
3673         * elf/dl-support.c: Likewise.
3674         * elf/rtld.c: Likewise.
3675         * sysdeps/i386/i686/Makefile: Likewise.
3676         * sysdeps/i386/i686/hp-timing.c: Likewise.
3677         * sysdeps/i386/i686/hp-timing.h: Likewise.
3678         * sysdeps/ia64/Makefile: Likewise.
3679         * sysdeps/ia64/hp-timing.c: Likewise.
3680         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
3681         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
3682         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
3683         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
3684         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
3685         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
3686         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
3687         * sysdeps/x86_64/Makefile: Likewise.
3688
3689         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
3690         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
3691         _dl_debug_fd to rtld_global.
3692         * elf/Versions: Likewise.
3693         * elf/dl-close.c: Likewise.
3694         * elf/dl-iteratephdr.c: Likewise.
3695         * elf/dl-lookup.c: Likewise.
3696         * elf/dl-misc.c: Likewise.
3697         * elf/dl-open.c: Likewise.
3698         * elf/dl-support.c: Likewise.
3699         * elf/do-lookup.h: Likewise.
3700         * elf/rtld.c: Likewise.
3701         * sysdeps/generic/dl-cache.c: Likewise.
3702         * sysdeps/generic/dl-sysdep.c: Likewise.
3703         * sysdeps/ia64/Versions: Likewise.
3704         * sysdeps/unix/clock_gettime.c: Likewise.
3705         * sysdeps/unix/clock_settime.c: Likewise.
3706         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
3707         * sysdeps/sparc/Versions: Removed.
3708         * sysdeps/i386/i686/Versions : Removed.
3709         * sysdeps/x86_64/Versions: Removed.
3710         * configure.in: Define HAVE_PROTECTED if .protected is available.
3711         * config.h.in: Add entry for HAVE_PROTECTED.
3712
3713 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
3714
3715         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
3716         code in struct _rtld_global.  Export this struct, remove all
3717         exports for the signal variables.
3718         * sysdeps/arm/dl-machine: Likewise.
3719         * sysdeps/generic/dl-origin: Likewise.
3720         * sysdeps/generic/dl-sysdep: Likewise.
3721         * sysdeps/generic/dl-cache: Likewise.
3722         * sysdeps/hppa/dl-fptr: Likewise.
3723         * sysdeps/hppa/dl-machine: Likewise.
3724         * sysdeps/cris/dl-machine: Likewise.
3725         * sysdeps/i386/dl-machine: Likewise.
3726         * sysdeps/ia64/dl-machine: Likewise.
3727         * sysdeps/m68k/dl-machine: Likewise.
3728         * sysdeps/mach/hurd/dl-sysdep: Likewise.
3729         * sysdeps/mips/mips64/dl-machine: Likewise.
3730         * sysdeps/mips/dl-machine: Likewise.
3731         * sysdeps/powerpc/elf/libc-start: Likewise.
3732         * sysdeps/powerpc/dl-machine: Likewise.
3733         * sysdeps/powerpc/dl-start: Likewise.
3734         * sysdeps/sparc/sparc32/dl-machine: Likewise.
3735         * sysdeps/sparc/sparc64/dl-machine: Likewise.
3736         * sysdeps/sh/dl-machine: Likewise.
3737         * sysdeps/s390/s390-32/dl-machine: Likewise.
3738         * sysdeps/s390/s390-64/dl-machine: Likewise.
3739         * sysdeps/unix/sysv/aix/libc-start: Likewise.
3740         * sysdeps/unix/sysv/aix/start-libc: Likewise.
3741         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
3742         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
3743         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
3744         * sysdeps/x86_64/dl-machine: Likewise.
3745
3746 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
3747
3748         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
3749         are too high.
3750
3751 2002-01-31  Andreas Schwab  <schwab@suse.de>
3752
3753         * sysdeps/posix/readv.c: Check for ssize_t overflow.
3754
3755 2002-01-31  Andreas Schwab  <schwab@suse.de>
3756
3757         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
3758         reference to _dl_pagesize.
3759
3760 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
3761
3762         * Versions.def [ld]: Add GLIBC_2.3.
3763         * elf/dl-addr.c: Move global variables for SHARED code in struct
3764         _rtld_global.  Export this struct, remove all exports for the
3765         signal variables.
3766         * elf/dl-close.c: Likewise.
3767         * elf/dl-conflict.c: Likewise.
3768         * elf/dl-debug.c: Likewise.
3769         * elf/dl-deps.c: Likewise.
3770         * elf/dl-dst.h: Likewise.
3771         * elf/dl-error.c: Likewise.
3772         * elf/dl-fini.c: Likewise.
3773         * elf/dl-init.c: Likewise.
3774         * elf/dl-iteratephdr.c: Likewise.
3775         * elf/dl-libc.c: Likewise.
3776         * elf/dl-load.c: Likewise.
3777         * elf/dl-lookup.c: Likewise.
3778         * elf/dl-minimal.c: Likewise.
3779         * elf/dl-object.c: Likewise.
3780         * elf/dl-open.c: Likewise.
3781         * elf/dl-profile.c: Likewise.
3782         * elf/dl-profstub.c: Likewise.
3783         * elf/dl-reloc.c: Likewise.
3784         * elf/dl-runtime.c: Likewise.
3785         * elf/dl-support.c: Likewise.
3786         * elf/dl-sym.c: Likewise.
3787         * elf/dl-version.c: Likewise.
3788         * elf/do-lookup.h: Likewise.
3789         * elf/do-rel.h: Likewise.
3790         * elf/dynamic-link.h: Likewise.
3791         * elf/rtld.c: Likewise.
3792         * sysdeps/generic/dl-cache.c: Likewise.
3793         * sysdeps/generic/dl-sysdep.c: Likewise.
3794         * sysdeps/generic/ldsodefs.h: Likewise.
3795         * sysdeps/generic/libc-start.c: Likewise.
3796         * sysdeps/i386/dl-machine.h: Likewise.
3797         * sysdeps/ia64/dl-fptr.c: Likewise.
3798         * sysdeps/ia64/dl-machine.h: Likewise.
3799         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
3800         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
3801         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3802         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
3803         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
3804         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
3805         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
3806         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
3807
3808 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
3809
3810         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
3811         to avoid warning
3812         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
3813
3814         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
3815         SHARED version.
3816         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
3817
3818         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
3819
3820 2002-01-29  Ben Collins  <bcollins@debian.org>
3821
3822         * string/bits/string2.h (__mempcpy): Protect size arg for
3823         addition when using __builtin_memcpy.
3824
3825 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
3826
3827         * stdlib/Makefile (tests): Add tst-qsort.
3828         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
3829
3830         * manual/signal.texi (Process Signal Mask): Document that
3831         pthread_sigmask, not sigprocmask, must be used in MT programs.
3832         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
3833
3834         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
3835         found.
3836         * misc/Makefile (tests): Add tst-hsearch.
3837         * misc/tst-hsearch.c: New file.
3838
3839 2002-01-18  Wolfram Gloger  <wg@malloc.de>
3840
3841         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
3842         * malloc/malloc.h: Likewise.
3843         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
3844         * malloc/arena.c: New file.
3845         * malloc/hooks.c: New file.
3846         * malloc/tst-mallocstate.c: New file.
3847         * malloc/Makefile: Add new testcase tst-mallocstate.
3848         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
3849
3850 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
3851
3852         * stdlib/msort.c: Remove last patch.  The optimization violates the
3853         same rule which qsort.c had problems with.
3854
3855 2002-01-27  Paul Eggert  <eggert@twinsun.com>
3856
3857         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
3858         to a pivot element that lies outside the array to be sorted, as
3859         ISO C99 requires that the comparison function be called only with
3860         addresses of array elements [PR libc/2880].
3861
3862 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
3863
3864         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
3865         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
3866
3867         * timezone/asia: Update from tzdata2002b.
3868         * timezone/australasia: Likewise.
3869         * timezone/backward: Likewise.
3870         * timezone/europe: Likewise.
3871         * timezone/leapseconds: Likewise.
3872         * timezone/iso3166.tab: Likewise.
3873         * timezone/zone.tab: Likewise.
3874
3875 2002-01-23  Richard Henderson  <rth@redhat.com>
3876
3877         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
3878
3879 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
3880
3881         * string/strxfrm.c: Allocate one more byte for rulearr and clear
3882         this element [PR libc/2855].
3883
3884         * string/strcoll.c: Handle zero-length arguments specially
3885         [PR libc/2856].
3886
3887 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
3888
3889         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
3890         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
3891         short lengths and constant src.
3892         (strcpy): Don't optimize for gcc 3.0+.
3893         (__stpcpy): For gcc 3.0+, don't use
3894         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
3895         for short string literal src.
3896
3897 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
3898
3899         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
3900         Set for arm, too.
3901
3902 2001-01-22  Paul Eggert  <eggert@twinsun.com>
3903
3904         * manual/llio.texi (Linked Channels, Cleaning Streams):
3905         Make it clearer that a just-opened input stream might need cleaning.
3906
3907 2002-01-21  H.J. Lu  <hjl@gnu.org>
3908
3909         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3910         Don't use label at end of compound statement.
3911
3912 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
3913
3914         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
3915         Remove test for negative integer arg; sin_pi does it correctly.
3916
3917 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
3918
3919         * nscd/Makefile (distribute): Filter out xmalloc.c.
3920
3921 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
3922
3923         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
3924         Set offset if read end wasn't the buffer end.
3925         (_IO_file_seekoff_mmap): New function.
3926         (_IO_file_xsgetn_mmap): New function.
3927         (_IO_file_jumps_mmap): Use the two new functions.
3928         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
3929         != end buffer.
3930         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
3931         _IO_file_underflow_mmap.
3932         * libio/iofopen.c: Don't position file descriptor at end of file.
3933         * libio/tst-widetext.c: Improve error messages.
3934         * stdio-common/tst-rndseek.c: Likewise.
3935
3936 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
3937
3938         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
3939         end of enum for !_GNU_SOURCE.
3940         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
3941         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
3942         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
3943         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
3944         values unless _GNU_SOURCE.
3945
3946         * iconvdata/tcvn5712-1.c: Minor cleanups.
3947
3948 2002-01-18  Andreas Schwab  <schwab@suse.de>
3949
3950         * sysdeps/unix/sysv/linux/configure.in
3951         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
3952
3953 2002-01-16  Roger Sayle  <roger@eyesopen.com>
3954
3955         * stdlib/msort.c (msort_with_tmp): Replace implementation with
3956         more efficient "Towers of Hanoi" mergesort.
3957         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
3958         for generic, sizeof(int) and sizeof(long) variants respectively.
3959
3960 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
3961
3962         * manual/syslog.texi (openlog): Describe possible problems with
3963         first parameter.
3964         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
3965
3966         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
3967         * nscd/connections.c (begin_drop_privileges): New function.
3968         (finish_drop_privileges): New function.
3969         (nscd_init): Call the new functions which also install all groups
3970         for the server user.
3971         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
3972         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
3973
3974 2002-01-17  H.J. Lu  <hjl@gnu.org>
3975
3976         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
3977         `const' from `got'.
3978
3979 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3980
3981         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
3982         instructions for pointer operations.
3983         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
3984
3985 2002-01-17  Andreas Jaeger  <aj@suse.de>
3986
3987         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
3988         __uint128_t build-in.
3989
3990         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
3991         PowerPC, sync with 2.2 branch.
3992
3993 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
3994
3995         * posix/getconf.c: Update copyright year.
3996         * nss/getent.c: Likewise.
3997         * nscd/nscd_nischeck.c: Likewise.
3998         * iconv/iconvconfig.c: Likewise.
3999         * iconv/iconv_prog.c: Likewise.
4000         * elf/ldconfig.c: Likewise.
4001         * catgets/gencat.c: Likewise.
4002         * csu/version.c: Likewise.
4003         * elf/ldd.bash.in: Likewise.
4004         * elf/sprof.c (print_version): Likewise.
4005         * locale/programs/locale.c: Likewise.
4006         * locale/programs/localedef.c: Likewise.
4007         * nscd/nscd.c (print_version): Likewise.
4008         * debug/xtrace.sh: Likewise.
4009         * malloc/memusage.sh: Likewise.
4010         * malloc/mtrace.pl: Likewise.
4011
4012 2002-01-16  Andreas Schwab  <schwab@suse.de>
4013
4014         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
4015         reliably remove "-ia64" from rtld name.
4016
4017 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
4018
4019         * iconvdata/gb18030.c: Bug fixes and support for more characters.
4020         Patch by Yu Shao <yshao@redhat.com>.
4021
4022 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4023
4024         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
4025         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
4026         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
4027
4028 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4029
4030         * sysdeps/s390/fpu/libm-test-ulps: Update.
4031
4032 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
4033
4034         * elf/elf.h: Update x86 relocations.
4035
4036 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
4037
4038         * locale/programs/charmap.c (new_width): Check whether byte
4039         sequences for both ends of range have the same length.
4040
4041 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
4042
4043         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
4044
4045 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
4046
4047         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
4048         string literals.
4049         (__full_ieee754_sqrt): Add __attribute_used__.
4050
4051 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
4052
4053         * sysdeps/generic/group_member.c (__group_member): Also check
4054         groups[0] [PR libc/2781].
4055
4056 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
4057
4058         * Makefile (distribute): Add scripts/cpp.
4059         * elf/Makefile (distribute): Add reldep6mod[01234].c,
4060         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
4061         unwind-dw2-fde.h, and dwarf2.h.
4062         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
4063         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
4064         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
4065         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
4066
4067 2002-01-07  Roland McGrath  <roland@frob.com>
4068
4069         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
4070         volatile on type of ARGC so the compiler doesn't get clever.
4071
4072 2002-01-07  Andreas Jaeger  <aj@suse.de>
4073
4074         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
4075         * sysdeps/i386/bits/byteswap.h: Likewise.
4076         * sysdeps/ia64/bits/byteswap.h: Likewise.
4077         * sysdeps/m68k/bits/byteswap.h: Likewise.
4078         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
4079         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
4080
4081 2002-01-02  Bruno Haible  <bruno@clisp.org>
4082
4083         * intl/plural.y: Fix %expect count.
4084
4085 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
4086
4087         * elf/Makefile (routines, shared-only-routines): Add
4088         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
4089         * elf/elf.h (PT_GNU_EH_FRAME): Define.
4090         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
4091         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
4092         Optimize if .eh_frame section contains no FDEs.
4093         (__register_frame, __deregister_frame_info_bases,
4094         __deregister_frame): Likewise.
4095         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
4096         DW_CFA_restore handling.
4097
4098 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
4099
4100         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
4101
4102         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
4103         for x < 0.25 and restore original range reduction method.
4104         (__ieee754_lgammal_r): Make sure signgam is set before returning.
4105
4106 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
4107
4108         * libio/fileops.c (_IO_file_underflow_mmap): New function.
4109         (_IO_file_close_mmap): New function.
4110         (_IO_file_jumps_mmap): New variable.
4111         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
4112         trying to convert rest of byte buffer.
4113         (_IO_wfile_underflow_mmap): New function.
4114         (_IO_wfile_jumps_mmap): New variable.
4115         * libio/iofopen.c (__fopen_maybe_mmap): New function.
4116         (__fopen_internal): New function.  Split out from _IO_new_fopen.
4117         (_IO_new_fopen): Call __fopen_internal.
4118         * libio/iofopen64.c: Just call __fopen_internal.
4119         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
4120         successfully.
4121         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
4122         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
4123         _IO_file_close_mmap.
4124
4125         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
4126         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
4127
4128         * stdio-common/Makefile (tests): Add tst-rndseek.
4129         * stdio-common/tst-rndseek.c: New file.
4130
4131 2002-01-05  Roland McGrath  <roland@frob.com>
4132
4133         * config.h.in (HAVE_MIG_RETCODE): New #undef.
4134         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
4135         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
4136         * sysdeps/mach/hurd/configure: Regenerated.
4137
4138 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
4139
4140         * elf/elf.h: Add more TLS definitions.
4141
4142 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
4143
4144         * include/features.h (__GLIBC_MINOR__): Bump to 3.
4145
4146 2002-01-02  Roland McGrath  <roland@frob.com>
4147
4148         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
4149         __sigisemptyset.  Don't use MASK uninitialized.
4150
4151         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
4152         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
4153         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
4154         __sigdelset, __sigaddset, __sigorset.
4155
4156         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
4157         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
4158
4159         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
4160         _hurd_ports is null.
4161
4162         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
4163         for old CMU and new OSF Mach interface flavors.
4164         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
4165         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
4166
4167         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
4168
4169         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
4170         Pass extra arguments to task_create for OSF variant.
4171         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
4172
4173         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
4174         conditional on [HAVE_AUX_VECTOR].
4175
4176         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
4177         mach_msg_timeout_t as type of final argument.
4178
4179         * hurd/privports.c (__get_privileged_ports):
4180         Change host_priv_t to mach_port_t in argument type.
4181         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
4182         Update decls.
4183
4184         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
4185         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
4186         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
4187         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
4188         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
4189         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
4190
4191 2002-01-01  Roland McGrath  <roland@frob.com>
4192
4193         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
4194
4195 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
4196
4197         * include/stdlib.h: Define inlines for the _l variants of the strto*
4198         functions.
4199
4200 2002-01-01  Roland McGrath  <roland@frob.com>
4201
4202         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
4203
4204         * mach/Machrules (MIG): Set CPP as well as CC.
4205
4206 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
4207
4208         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
4209         locale to parse /proc/loadavg [PR libc/2760].
4210
4211 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
4212
4213         * elf/dl-conflict.c: Include sys/param.h.
4214         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
4215         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
4216         warning.
4217         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
4218         literals to avoid warnings.
4219
4220 2001-12-31  Andreas Jaeger  <aj@suse.de>
4221
4222         * configure.in: Don't check for gsed since we do not use it anywhere.
4223
4224 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
4225
4226         * io/fts.c: Update from BSD to fix memory leaks.
4227
4228 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
4229
4230         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
4231         * elf/chroot_canon.c: Likewise.
4232         * elf/dl-object.c: Likewise.
4233         * iconv/iconv_charmap.c: Likewise.
4234         * iconv/iconv_prog.c: Likewise.
4235         * libio/iogetdelim.c: Likewise.
4236         * locale/lc-time.c: Likewise.
4237         * stdlib/canonicalize.c: Likewise.
4238         * sunrpc/svc.c: Likewise.
4239         * sysdeps/generic/glob.c: Likewise.
4240
4241 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4242
4243         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
4244         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
4245         remove high order bit from the program counter.
4246         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
4247
4248 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4249
4250         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
4251         unnecessary code and add missing reloc types.
4252         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
4253         case for reloc type R_390_NONE.
4254
4255 2001-12-28  Andreas Jaeger  <aj@suse.de>
4256
4257         * io/bug-ftw3.c: Include string.h for prototypes.
4258
4259         * crypt/md5test.c (main): Remove unused variable.
4260
4261         * dlfcn/modstatic.c: Add prototype to avoid warning.
4262
4263 2001-12-26  Roland McGrath  <roland@frob.com>
4264
4265         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
4266         check only (SS->pending & MASK) for the signal to return.
4267         From Jeroen Dekkers <jeroen@dekkers.cx>.
4268
4269 2001-12-22  Roland McGrath  <roland@frob.com>
4270
4271         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
4272         Use preprocessor #if conditionals instead of `if' to avoid
4273         warnings about divide by zero in dead code.
4274
4275         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
4276         _hurd_port_init, and __hurd_self_sigstate.
4277
4278         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
4279
4280 2001-12-21  Andreas Jaeger  <aj@suse.de>
4281
4282         * elf/dblloadmod1.c: Add prototype to avoid warning.
4283         * elf/dblloadmod2.c: Likewise.
4284         * elf/dblloadmod3.c: Likewise.
4285         * elf/reldepmod5.c: Likewise.
4286         * elf/reldepmod6.c: Likewise.
4287
4288         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
4289         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
4290         used on all architectures.
4291
4292         * sunrpc/svc_tcp.c: Add noreturn attribute for
4293         svctcp_rendezvous_abort.
4294         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
4295
4296         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
4297         to avoid warning.
4298
4299 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
4300
4301         * manual/llio.texi (aio_fsync): Fix a typo.
4302         Patch by Tammy Fox <tfox@redhat.com>.
4303
4304 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
4305
4306         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
4307         stack bias from child stack pointer before passing it to clone syscall.
4308
4309 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
4310
4311         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
4312         _SC_TZNAME_MAX.
4313         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
4314         Reported by Thorsten Kukuk <kukuk@suse.de>.
4315
4316         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
4317         add some casts.
4318
4319         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
4320
4321 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
4322
4323         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
4324         conforming: return EBADF if file descriptor is invalid and EINVAL
4325         if file descriptor is no valid tty.
4326         * login/tst-grantpt.c: New file.
4327         * login/Makefile (tests): Add tst-grantpt.
4328
4329 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
4330
4331         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
4332         different than implemented in last patch.
4333         * io/bug-ftw3.c: Adjust test for changed handling of
4334         inaccessibility of toplevel dir.
4335
4336 2001-12-16  Roland McGrath  <roland@frob.com>
4337
4338         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
4339         * grp/initgroups.c (internal_getgrouplist): Likewise.
4340
4341         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
4342         `default:' to silence new GCC warning.
4343         Rewrite cast of lvalue to silence new GCC warning.
4344
4345         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
4346
4347         * sysdeps/mach/hurd/spawni.c: New file, by me with a
4348         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
4349
4350 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
4351
4352         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
4353         Patch by Stephen R. van den Berg.
4354
4355         * crypt/md5.h: Define md5_uintptr.
4356
4357 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
4358
4359         * libio/tst_swprintf.c (main): Add test for string argument with
4360         zero precision.
4361         * stdio-common/Makefile (tests): Add tst-sprintf.
4362         * stdio-common/tst-sprintf.c: New file.
4363
4364 2001-12-13  Andreas Schwab  <schwab@suse.de>
4365
4366         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
4367         zero precision with wide character string format.
4368
4369 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
4370
4371         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
4372         but have a user supplied buffer, return the empty buffer, not NULL.
4373
4374 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
4375
4376         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
4377         Patch by Eric Sharkey <sharkey@netrics.com>.
4378
4379         * crypt/md5test.c (main): Add test for multiple calls to
4380         __md5_process_bytes to itererate over input string.
4381
4382 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
4383
4384         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
4385         from __nis_findfastest.  Take timeout value from parameter.
4386         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
4387         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
4388         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
4389
4390 2001-12-12  Andreas Jaeger  <aj@suse.de>
4391
4392         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
4393         combreloc test so that it works in this case.
4394
4395         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
4396
4397 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
4398
4399         * sysdeps/sh/Makefile: New file.
4400         * sysdeps/sh/_mcount.S: New file.
4401         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
4402         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
4403
4404 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
4405
4406         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
4407         limitation [PR libc/2564].
4408
4409 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
4410
4411         * elf/Makefile (dl-routines): Add conflict.
4412         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
4413         (ld.so): Add _begin local symbol.
4414         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
4415         Define.
4416         * elf/dl-deps.c (_dl_build_local_scope): New.
4417         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
4418         of all libraries.
4419         * elf/do-rel.h (VALIDX): Define.
4420         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
4421         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
4422         can be skipped.
4423         * elf/dl-conflict.c: New file.
4424         * elf/dl-lookup.c (_dl_debug_bindings): New.
4425         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
4426         non-NULL.
4427         (_dl_lookup_symbol_skip): Likewise.
4428         (_dl_lookup_versioned_symbol): Likewise.
4429         (_dl_lookup_versioned_symbol_skip): Likewise.
4430         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
4431         define to ElfW(Rel).
4432         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
4433         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
4434         ranges.
4435         Don't adjust address dynamic tags if l_addr is 0.
4436         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
4437         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
4438         (VALIDX, ADDRIDX): Define.
4439         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
4440         (dl_main): Print library list for LD_TRACE_PRELINKING.
4441         If prelinking information can be used, skip relocating libraries and
4442         call _dl_resolve_conflicts instead.
4443         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
4444         * elf/dl-load.c (_dl_map_object): Don't create fake libs
4445         if LD_TRACE_PRELINKING.
4446         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
4447         + DT_ADDRNUM.
4448         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
4449         (DL_DEBUG_PRELINK): Define.
4450         (_dl_resolve_conflicts): Add prototype.
4451
4452         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
4453         .plt for prelinked libraries where prelinking info cannot be used.
4454         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
4455         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
4456         * sysdeps/arm/bits/link.h: New file.
4457         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
4458         content of .got[1].
4459         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
4460         (ELF_MACHINE_PLT_REL): Define.
4461         (elf_machine_rela, elf_machine_rela_relative): New.
4462         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
4463         of adjusting it if prelinked and prelinking cannot be used.
4464         * sysdeps/i386/bits/link.h: New file.
4465         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
4466         content of .got[1].
4467         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
4468         (ELF_MACHINE_PLT_REL): Define.
4469         (elf_machine_rela, elf_machine_rela_relative): New.
4470         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
4471         of adjusting it if prelinked and prelinking cannot be used.
4472         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
4473         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
4474         to find out map for R_PPC_JMP_SLOT relocs.
4475         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
4476         (OPCODE_BA): Define.
4477         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
4478         libraries where prelinking info cannot be used.
4479         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
4480         (elf_machine_fixup_plt): Call sparc_fixup_plt.
4481         (elf_machine_rela): Set value to 0 if relocating conflicts.
4482         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
4483         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
4484         (sparc64_fixup_plt): Fix a typo.
4485         (elf_machine_rela): Set value to 0 if relocating conflicts.
4486         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
4487         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
4488         libraries where prelinking info cannot be used.
4489         * sysdeps/sh/bits/link.h: New file.
4490         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
4491         content of .got[1].
4492         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
4493         of adjusting it if prelinked and prelinking cannot be used.
4494         * sysdeps/s390/s390-32/bits/link.h: New file.
4495         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
4496         Save original content of .got[1].
4497         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
4498         of adjusting it if prelinked and prelinking cannot be used.
4499         * sysdeps/s390/s390-64/bits/link.h: New file.
4500         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
4501         Save original content of .got[1].
4502         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
4503         of adjusting it if prelinked and prelinking cannot be used.
4504         * sysdeps/x86_64/bits/link.h: New file.
4505         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
4506         Save original content of .got[1].
4507         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
4508         of adjusting it if prelinked and prelinking cannot be used.
4509
4510 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
4511
4512         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
4513         where appropriate instead of numbers.  Little optimizations.
4514
4515 2001-12-10  Roland McGrath  <roland@frob.com>
4516
4517         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
4518         set it.
4519
4520         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
4521         set to GLIBC_2.2.5, not GLIBC_2.2.4.
4522
4523         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
4524         Fix conditionals so this is set by default for stdio and not for libio.
4525         * sysdeps/mach/hurd/configure: Regenerated.
4526
4527 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
4528
4529         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
4530
4531 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
4532
4533         * io/Makefile (tests): Add bug-ftw3.
4534         * io/bug-ftw3.c: New file.
4535
4536         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
4537         matches and GLOB_NOCHECK is set.
4538         * posix/globtest.sh: Correct expected result for NOCHECK test.
4539
4540         * po/ca.po: Update from translation team.
4541
4542 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
4543
4544         Implement transliteration of characters in strings of the locale
4545         definitions.
4546         * locale/programs/linereader.c: Adjust for additional parameter to
4547         lr_token.
4548         (get_string): If character <Uxxxx> is not found try to transliterate
4549         it.
4550         * locale/programs/ld-ctype.c: Adjust for additional parameter to
4551         lr_token.  Add const to charmap parameter of all functions.
4552         (find_translit, find_translit2): New functions.
4553         * locale/programs/charmap.c: Adjust for additional parameter to
4554         lr_token.
4555         * locale/programs/repertoire.c: Likewise.
4556         * locale/programs/linereader.h: Likewise.
4557         * locale/programs/ld-address.c: Likewise.  Add const to charmap
4558         parameter of all functions.
4559         * locale/programs/ld-collate.c: Likewise.
4560         * locale/programs/ld-identification.c: Likewise.
4561         * locale/programs/ld-measurement.c: Likewise.
4562         * locale/programs/ld-messages.c: Likewise.
4563         * locale/programs/ld-monetary.c: Likewise.
4564         * locale/programs/ld-name.c: Likewise.
4565         * locale/programs/ld-numeric.c: Likewise.
4566         * locale/programs/ld-paper.c: Likewise.
4567         * locale/programs/ld-paper.c: Likewise.
4568         * locale/programs/ld-telephone.c: Likewise.
4569         * locale/programs/ld-time.c: Likewise.
4570         * locale/programs/locfile.c: Likewise.
4571         * locale/programs/localedef.c: Likewise.
4572         * locale/programs/localedef.h: Likewise.
4573         * locale/programs/locfile.h: Likewise.  Add declaration for
4574         find_translit.
4575         * locale/programs/simple-hash.c: Add const to first parameter of
4576         find_entry, iterate_table, and lookup.
4577         * locale/programs/simple-hash.h: Likewise.
4578         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
4579         instead.
4580         * include/locale.h: Define __LC_LAST.
4581         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
4582
4583 2001-12-07  Geoff Keating  <geoffk@redhat.com>
4584
4585         * sysdeps/powerpc/Dist: Update for recent FP changes.
4586         * sysdeps/powerpc/fpu/Dist: Likewise.
4587
4588 2001-12-07  Andreas Schwab  <schwab@suse.de>
4589
4590         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
4591
4592 2001-12-06  Geoff Keating  <geoffk@redhat.com>
4593
4594         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
4595         save/restore functions here.
4596         (libm-support): Don't define these functions here.
4597         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
4598         functions here.
4599         * sysdeps/powerpc/fe_nomask.c: Move to...
4600         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
4601         * sysdeps/powerpc/fprrest.S: Move to...
4602         * sysdeps/powerpc/fpu/fprrest.S: ... here.
4603         * sysdeps/powerpc/fprsave.S: Move to...
4604         * sysdeps/powerpc/fpu/fprsave.S: ... here.
4605
4606 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
4607
4608         * sysdeps/unix/sysv/linux/opensock.c: New file.
4609
4610 2001-12-06  Geoff Keating  <geoffk@redhat.com>
4611
4612         * config.make.in (with-fp): Define from configure.
4613         * configure.in: Substitute with_fp.
4614         * configure: Regenerate.
4615         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
4616         specified, and don't change FPU environment.
4617
4618 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
4619
4620         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
4621         * assert/assert.c: Check result of __asprintf call and don't use
4622         string if it failed.
4623         * assert/assert-perr.c: Likewise.
4624         * inet/rcmd.c: Likewise.
4625         * locale/programs/localedef.c (main): Check result of
4626         construct_output_path and exit if it failed.
4627         (construct_output_path): Check result of asprintf and mkdir calls and
4628         fail if they failed.
4629         * posix/getopt.c: Check result of __asprintf calls and fail if
4630         they failed.
4631         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
4632
4633 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
4634
4635         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
4636         patch.
4637         * sysdeps/generic/strncase.c: Likewise.
4638         * string/tester.c: Add tests for strcasecmp and strncasecmp.
4639
4640 2001-12-05  Geoff Keating  <geoffk@redhat.com>
4641
4642         * scripts/cpp: Test the exit status from 'type', not 'awk'.
4643
4644         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
4645         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
4646         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
4647         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
4648         * sysdeps/powerpc/fclrexcpt.c: Move to...
4649         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
4650         * sysdeps/powerpc/fpu_control.h: Move to...
4651         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
4652
4653 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
4654
4655         * iconvdata/ibm1129.h: Remove duplicate mappings.
4656         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
4657         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
4658         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4659
4660         * timezone/zic.c: Fix handling of turnaround times.
4661         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
4662
4663 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
4664
4665         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
4666         overflow problem.
4667
4668 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
4669
4670         * posix/regex.c: For use outside glibc defined bounded pointer
4671         macros here.  Patch by Jim Meyering <jim@meyering.net>.
4672
4673         * iconvdata/Makefile (modules): Add TCVN5712-1.
4674         * iconvdata/TESTS: Add TCVN5712-1.
4675         * iconvdata/gconv-modules: Likewise.
4676         * iconvdata/tcvn5712-1.c: New file.
4677         * iconvdata/testdata/TCVN-5712: New file.
4678         * iconvdata/testdata/TCVN-5712..UTF8: New file.
4679
4680 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
4681
4682         * iconvdata/cp1258.c: Optimize conversion from UCS4.
4683
4684 2001-12-02  Roland McGrath  <roland@frob.com>
4685
4686         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
4687
4688         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
4689         Reported by Jeff Bailey <jbailey@nisa.net>.
4690
4691         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
4692         Reported by Jeff Bailey <jbailey@nisa.net>.
4693
4694         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
4695         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
4696         Reported by Jeff Bailey <jbailey@nisa.net>.
4697
4698 2001-12-01  Roland McGrath  <roland@frob.com>
4699
4700         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
4701         missing backslash in test arguments.
4702         * sysdeps/mach/hurd/configure: Regenerated.
4703
4704 2001-11-26  Roland McGrath  <roland@frob.com>
4705
4706         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
4707         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
4708
4709 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
4710
4711         * iconvdata/Makefile (modules): Add ARMSCII-8.
4712         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
4713         * iconvdata/armscii-8.c: New file.
4714
4715 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
4716
4717         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
4718         don't match, fix {{a,b},c} globbing, clean up.
4719         Patch by Flavio Veloso <flaviovs@magnux.com>.
4720         * posix/globtest.sh: Add new tests.
4721
4722 2001-11-29  Andreas Jaeger  <aj@suse.de>
4723
4724         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
4725         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
4726
4727         * sysdeps/generic/abort.c: Include libioP.h for
4728         _IO_flush_all_lockp prototype.
4729
4730 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
4731
4732         * posix/regex.h: Define __restrict_arr correctly.
4733
4734 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
4735
4736         * iconvdata/ibm1163.c: New file.
4737         * iconvdata/ibm1163.h: New file.
4738         * iconvdata/ibm1164.c: New file.
4739         * iconvdata/ibm1164.h: New file.
4740         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
4741         * iconvdata/Makefile: Likewise.
4742         * iconvdata/testdata/IBM1163: New file.
4743         * iconvdata/testdata/IBM1163..UTF8: New file.
4744         * iconvdata/testdata/IBM1164: New file.
4745         * iconvdata/testdata/IBM1164..UTF8: New file.
4746         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4747
4748         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
4749         * iconvdata/ibm1124.h: Likewise.
4750         * iconvdata/ibm1132.h: Likewise.
4751         * iconvdata/ibm1133.h: Likewise.
4752         * iconvdata/ibm1160.h: Likewise.
4753         * iconvdata/ibm1161.h: Likewise.
4754         * iconvdata/ibm1162.h: Likewise.
4755         * iconvdata/ibm856.h: Likewise.
4756         * iconvdata/ibm922.h: Likewise.
4757         * iconvdata/ibm930.h: Likewise.
4758         * iconvdata/ibm932.h: Likewise.
4759         * iconvdata/ibm933.h: Likewise.
4760         * iconvdata/ibm935.h: Likewise.
4761         * iconvdata/ibm937.h: Likewise.
4762         * iconvdata/ibm939.h: Likewise.
4763         * iconvdata/ibm943.h: Likewise.
4764         * iconvdata/ibm930.c: Pretty printing.
4765         * iconvdata/ibm937.c: Avoid access accross array boundary.
4766
4767         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
4768         the current locale's codeset.
4769         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
4770         empty input string.
4771         * iconv/iconv_prog.c: Pass empty strings as default value for to-
4772         and from-charset.  Don't determine locale's charset here.
4773
4774         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
4775         as the old _IO_flush_all but lock only if parameter is nonzero.
4776         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
4777         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
4778         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
4779         if libio is used [PR libc/2575].
4780
4781 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
4782
4783         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
4784         __signbitl): Only define for ISO C99.
4785
4786 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
4787
4788         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
4789         herrnop to NETDB_INTERNAL if we run out of buffer space.
4790
4791 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
4792
4793         * nss/nss_files/files-XXX.c (internal_getent): Correct input
4794         overflow test for platforms with signed char.
4795         Reported by Andrew Haley <aph@cambridge.redhat.com>.
4796
4797 2001-11-28  Bruno Haible  <bruno@clisp.org>
4798
4799         * locale/programs/simple-hash.c (lookup_2): Remove function.
4800         (insert_entry_2): Call lookup instead of lookup_2.
4801
4802 2001-03-04  Bruno Haible  <bruno@clisp.org>
4803
4804         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
4805
4806 2001-10-31  Bruno Haible  <bruno@clisp.org>
4807
4808         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
4809
4810 2001-03-21  Bruno Haible  <bruno@clisp.org>
4811
4812         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
4813         chokes on empty macro arguments.
4814         * intl/plural.y: Add #pragma for alloca on AIX 3.
4815
4816 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
4817
4818         * intl/dcigettext.c (guess_category_value): Only implement for
4819         glibc.  Otherwise rely on function _nl_locale_name which isn't
4820         present in the glibc sources.
4821
4822 2001-09-24  Bruno Haible  <bruno@clisp.org>
4823
4824         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
4825         transliteration when building on a glibc system but outside glibc.
4826
4827 2001-09-22  Bruno Haible  <bruno@clisp.org>
4828
4829         * intl/plural-eval.c: New file, extracted from dcigettext.c.
4830         * intl/dcigettext.c (plural_eval): Remove function, moved to
4831         intl/plural-eval.c.
4832         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
4833         Include plural-eval.c.
4834
4835 2001-09-22  Bruno Haible  <bruno@clisp.org>
4836
4837         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
4838         don't start with a digit; nplurals must be positive.
4839
4840 2001-09-02  Bruno Haible  <bruno@clisp.org>
4841
4842         * intl/plural-exp.h: New file, extracted from gettextP.h.
4843         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
4844         * intl/gettextP.h (struct expression, struct parse_args,
4845         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
4846         * intl/loadmsgcat.c: Include plural-exp.h.
4847         (PLURAL_PARSE): Move macro to plural-exp.h.
4848         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
4849         plural-exp.c.
4850         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
4851         EXTRACT_PLURAL_EXPRESSION.
4852         (_nl_unload_domain): Update.
4853         * intl/dcigettext.c: Include plural-exp.h.
4854         * intl/plural.y: Include plural-exp.h, not gettextP.h.
4855         (FREE_EXPRESSION): Move macro to plural-exp.h.
4856         * intl/Makefile (routines): Add plural-exp.
4857         (distribute): Add plural-exp.h.
4858
4859 2001-07-28  Bruno Haible  <bruno@clisp.org>
4860
4861         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
4862         isdigit, tolower argument to 'unsigned char'.
4863         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
4864         'unsigned char'.
4865         * intl/localealias.c (read_alias_file): Cast isspace argument to
4866         'unsigned char'.
4867
4868 2001-10-20  Bruno Haible  <bruno@clisp.org>
4869
4870         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
4871         anyway.)
4872         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
4873         with the variable 'index' in plural_lookup.
4874         * intl/l10nflist.c (strchr): Likewise.
4875         * intl/localealias.c (strchr): Likewise.
4876
4877         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
4878         * intl/bindtextdom.c: Likewise.
4879         * intl/dcigettext.c: Likewise.
4880         * intl/dgettext.c: Likewise.
4881         * intl/dngettext.c: Likewise.
4882         * intl/explodename.c: Likewise.
4883         * intl/finddomain.c: Likewise.
4884         * intl/gettext.c: Likewise.
4885         * intl/l10nflist.c: Likewise.
4886         * intl/loadmsgcat.c: Likewise.
4887         * intl/localealias.c: Likewise.
4888         * intl/ngettext.c: Likewise.
4889         * intl/textdomain.c: Likewise.
4890         * intl/gettext.h: Assume <limits.h> exists.
4891
4892 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
4893
4894         * stdio-common/Makefile (tests): Add scanf11.
4895         * stdio-common/scanf11.c: New file.
4896
4897 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
4898
4899         * version.h (RELEASE): Define as development.
4900         (VERSION): Set to 2.2.90.
4901
4902 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
4903
4904         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
4905         * nis/nss_nis/nis-grp.c: Likewise.
4906         * nis/nss_nisplus/nisplus-grp.c: Likewise.
4907
4908         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
4909         * nis/nss_nis/nis-pwd.c: Likewise.
4910         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
4911
4912         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
4913         * nis/nss_nisplus/nisplus-parser.c: Likewise.
4914         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
4915
4916         * nscd/grpcache.c: Use strtoul instead of atol.
4917         * nscd/pwdcache.c: Likewise.
4918         * nss/getent.c: Likewise.
4919
4920 2001-11-27  Paul Eggert  <eggert@twinsun.com>
4921
4922         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
4923         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
4924
4925 2001-11-19  Bruno Haible  <bruno@clisp.org>
4926
4927         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
4928         90%.
4929         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
4930         improves the quality of the hash function, especially for short
4931         strings.
4932
4933 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
4934
4935         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
4936         are found call conv_error and not input_error [PR libc/2669].
4937
4938         * math/bits/mathcalls.h: Mark ceil and floor as const.
4939         Reported by David Mosberger.
4940
4941 2001-11-21  Jim Meyering  <meyering@lucent.com>
4942
4943         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
4944         Define to be __-prefixed.
4945         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
4946
4947 2001-11-26  Andreas Jaeger  <aj@suse.de>
4948
4949         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
4950         avoid warning.
4951
4952 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
4953
4954         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
4955         initialization.
4956
4957         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
4958         unused variables.  Fix threshold for returning 1.0.
4959
4960         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
4961         argument.
4962
4963         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
4964         remove unused variables.
4965
4966         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
4967
4968         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
4969         include local math header files.
4970
4971 2001-11-22  Andreas Jaeger  <aj@suse.de>
4972
4973         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
4974         avoid warning.
4975
4976 2001-11-21  Andreas Jaeger  <aj@suse.de>
4977
4978         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
4979
4980         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
4981         sys/debugreg.h
4982
4983 2001-11-15  Andreas Jaeger  <aj@suse.de>
4984
4985         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
4986         compilers that support it.
4987
4988         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
4989         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
4990         * stdlib/stdlib.h: Likewise.
4991
4992 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
4993
4994         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
4995         statement with gotos.
4996         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
4997
4998 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
4999
5000         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
5001
5002 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
5003
5004         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
5005
5006 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
5007             H.J. Lu  <hjl@gnu.org>
5008
5009         * Versions.def (libc): Add GCC_3.0.
5010         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
5011         if gcc supports this flag.
5012         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
5013         (gcc3): Allow glibc to be compiled with gcc 3.x.
5014         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
5015         * config.make.in (static-libgcc, unwind-find-fde): Add.
5016         * Makerules (build-shlib-helper, build-module-helper): Use it.
5017         * scripts/versions.awk: Make sure GLIBC_ versions come first.
5018         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
5019         necessary.
5020         (_fini): Call __deregister_frame_info_bases if
5021         __register_frame_info_bases was used to register.
5022         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
5023         for GLIBC_2.0.
5024         (__register_frame_info_bases, __register_frame_info_table_bases,
5025         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
5026         * elf/Makefile (routines): Add unwind-dw2-fde.
5027         (shared-only-routines): Add unwind-dw2-fde.
5028         * sysdeps/alpha/gccframe.h: New file.
5029         * sysdeps/arm/gccframe.h: New file.
5030         * sysdeps/generic/framestate.c: New file.
5031         * sysdeps/generic/dwarf2.h: New file.
5032         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
5033         * sysdeps/generic/unwind-dw2-fde.c: New file.
5034         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
5035         * sysdeps/generic/unwind-dw2-fde.h: New file.
5036         * sysdeps/generic/unwind-dw2.c: New file.
5037         * sysdeps/generic/unwind-pe.h: New file.
5038         * sysdeps/generic/unwind.h: New file.
5039         * sysdeps/hppa/gccframe.h: New file.
5040         * sysdeps/i386/gccframe.h: New file.
5041         * sysdeps/m68k/gccframe.h: New file.
5042         * sysdeps/mips/gccframe.h: New file.
5043         * sysdeps/powerpc/gccframe.h: New file.
5044         * sysdeps/s390/gccframe.h: New file.
5045         * sysdeps/sh/gccframe.h: New file.
5046         * sysdeps/sparc/gccframe.h: New file.
5047         * sysdeps/vax/gccframe.h: New file.
5048         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
5049         Set on all architectures except ia64.
5050         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
5051         for i386.
5052         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
5053         __deregister_frame_info): Move to elf/Versions.
5054         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
5055         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
5056         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
5057         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
5058         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
5059         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
5060         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
5061         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
5062         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
5063         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
5064         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
5065         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
5066         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
5067         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
5068         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
5069         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
5070         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
5071         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
5072
5073 2001-11-15  Jeff Law  <law@redhat.com>
5074
5075         * posix/regex.c (uintptr_t): Do not provide a definition if the
5076         system provided one.
5077
5078 2001-11-13  Roland McGrath  <roland@frob.com>
5079
5080         * stdio-common/tmpfile.c: Moved to ...
5081         * sysdeps/generic/tmpfile.c: ... here.
5082         * sysdeps/mach/hurd/tmpfile.c: New file.
5083
5084         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
5085         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
5086         (fopenport): Define as weak alias.
5087
5088         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
5089         * libio/libioP.h: ... to here.
5090
5091 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
5092
5093         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
5094         program header twice.  Construct list with the needed information.
5095
5096 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
5097
5098         * po/ca.po: Update from translation team.
5099
5100         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
5101         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
5102         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
5103         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
5104
5105 2001-11-10  Andreas Jaeger  <aj@suse.de>
5106
5107         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
5108         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
5109         Contributed by Stephen L Moshier <moshier@mediaone.net>.
5110
5111 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
5112
5113         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
5114         correctly.
5115         * elf/dl-load.c (is_dst): New function.
5116         (_dl_dst_count): Use is_dst to check for DST variable.
5117         (_dl_dst_substitute): Likewise.
5118
5119 2001-11-09  Roland McGrath  <roland@frob.com>
5120
5121         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
5122         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
5123         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
5124         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
5125         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
5126         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
5127         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
5128         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
5129         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
5130         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
5131         * sysdeps/mach/hurd/powerpc/Dist: New file.
5132
5133         * hurd/privports.c (__get_privileged_ports):
5134         Only contact the proc server if necessary for this call.
5135         Suggested by Neal H Walfield <neal@cs.uml.edu>.
5136         Check error return for mach_port_mod_refs.
5137
5138 2001-11-09  Andreas Schwab  <schwab@suse.de>
5139
5140         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
5141
5142 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
5143
5144         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
5145         object is always the last in the list.
5146         (_dl_map_object_from_fd): Delete code to remove from object list
5147         when DF_1_NOOPEN is seen.  This is done in lose.
5148
5149 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
5150
5151         * elf/dl-object.c (_dl_new_object): Various small optimizations.
5152
5153 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
5154
5155         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
5156         HWCAP_CHECK macro code.
5157
5158         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
5159         Now returns MAP_FAILED on error.
5160         * elf/rtld.c: Adjust caller.
5161         * sysdeps/generic/dl-cache.c: Likewise.
5162         * sysdeps/generic/ldsodefs.h: Adjust description.
5163
5164         * elf/dl-version.c (match_symbol): Optimize error handling for size.
5165         (_dl_check_map_versions): Likewise.
5166
5167 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
5168
5169         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
5170         _dl_signal_error directly, always use lose.  Set fd to -1 after
5171         file is closed.
5172         (lose): Don't call close if fd == -1.
5173
5174 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
5175
5176         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
5177          Also fix typo @code {mbsinit} to @code{mbsinit}.
5178
5179 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
5180
5181         * elf/dl-profile.c: Replace state variable with simple flag named
5182         running.  Remove commented-out code.
5183
5184         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
5185         (_dl_init_paths): Likewise.
5186         (_dl_map_object_from_fd): Likewise.
5187         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
5188
5189 2001-11-06  Roland McGrath  <roland@frob.com>
5190
5191         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
5192         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
5193
5194         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
5195         sysdeps/powerpc/elf/sysdep.h.
5196         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
5197
5198 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
5199
5200         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
5201         speed.
5202         (process_envvars): Some more optimizations.
5203         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
5204
5205         * elf/elf.h: Add dynamic tag definitions for prelinking.
5206
5207         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
5208         Rewrite code to remove environment varables for SUID binaries.
5209         Small optimization in LD_PROFILE handling.
5210         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
5211         changes.
5212         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
5213
5214         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
5215
5216         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
5217         strings.  Change type of second parameter.
5218         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
5219         for last change.
5220
5221         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
5222
5223 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
5224
5225         * manual/string.texi: Fix typos.
5226         * manual/examples/argp-ex2.c: Likewise.
5227
5228 2001-11-05  Roland McGrath  <roland@frob.com>
5229
5230         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
5231         the more-specific unix/sysv/linux/powerpc file and breaks everything.
5232         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
5233         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
5234         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
5235         here, put under [__ELF__].
5236
5237 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
5238
5239         * manual/charset.texi: Extensive editing work.
5240         * manual/nss.texi: Likewise.
5241         Changes by Dennis Grace <dgrace@us.ibm.com>.
5242
5243 2001-11-04  Roland McGrath  <roland@frob.com>
5244
5245         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
5246         parameter to dir_mkfile.
5247
5248 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
5249
5250         * string/bits/string2.h (__strndup): If n is smaller than len, set
5251         len to n + 1.
5252         * string/tester.c (test_strndup): New function.
5253         (main): Call it.
5254
5255 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
5256
5257         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
5258
5259         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
5260         * scripts/cpp: New file.
5261
5262         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
5263         for rtld_search_dirs content.  Minor optimizations.
5264
5265 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
5266
5267         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
5268         avoiding unnecessary duplication.
5269
5270 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
5271
5272         * elf/dl-load.c (_dl_map_object): If library was found using
5273         LD_LIBRARY_PATH, don't try RUNPATH list.
5274
5275 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5276
5277         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
5278         Correct second argument of register_dump call.
5279         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
5280         Likewise.
5281
5282 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
5283
5284         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
5285         modules.
5286         * iconvdata/TESTS: Likewise.
5287         * iconvdata/gconv-modules: Likewise.
5288         * iconvdata/ibm1132.c: New file.
5289         * iconvdata/ibm1132.h: New file.
5290         * iconvdata/ibm1133.c: New file.
5291         * iconvdata/ibm1133.h: New file.
5292         * iconvdata/ibm1162.c: New file.
5293         * iconvdata/ibm1162.h: New file.
5294         * iconvdata/testdata/IBM1132: New file.
5295         * iconvdata/testdata/IBM1132..UTF8: New file.
5296         * iconvdata/testdata/IBM1133: New file.
5297         * iconvdata/testdata/IBM1133..UTF8: New file.
5298         * iconvdata/testdata/IBM1162: New file.
5299         * iconvdata/testdata/IBM1162..UTF8: New file.
5300         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
5301
5302         * string/string.h: Fix typo in comment.
5303         * wcsmbs/wchar.h: Likewise.
5304
5305 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
5306
5307         * manual/getopt.texi (getopt_long, getopt_long_only): Include
5308         const in type of longopts parameter.
5309
5310 2001-10-29  Andreas Jaeger  <aj@suse.de>
5311
5312         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
5313
5314 2001-10-29  Kevin Ryde  <user42@zip.com.au>
5315
5316         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
5317         output, clarify `#' behaviour on 0.
5318         (Floating-Point Conversions): Clarify that %g only uses %e when
5319         the exponent would be greater than 1.
5320
5321 2001-10-28  Roland McGrath  <roland@frob.com>
5322
5323         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
5324         * sysdeps/mach/powerpc/machine-sp.h: New file.
5325         * sysdeps/mach/powerpc/sysdep.h: New file.
5326         * sysdeps/mach/powerpc/thread_state.h: New file.
5327
5328         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
5329         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
5330         expect to need the same thing on every platform.
5331
5332         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
5333         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
5334
5335         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
5336         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
5337         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
5338         Move all these assembly-related definitions to ...
5339         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
5340
5341         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
5342         by Peter Bruin <pjbruin@dds.nl>.
5343
5344         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
5345         packing results for a `poll' call.
5346
5347 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
5348
5349         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
5350         correctly.
5351         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
5352         bracket expression.
5353
5354         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
5355         nrules value.
5356         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
5357
5358 2001-10-24  H.J. Lu  <hjl@gnu.org>
5359
5360         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
5361         Use __BEGIN_DECLS/__END_DECLS around prototypes.
5362         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
5363
5364 2001-10-21  Jim Meyering  <meyering@lucent.com>
5365
5366         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
5367         this code would end up calling gettext even in packages built
5368         with --disable-nls.
5369         * posix/getopt.c (_): Likewise.
5370         * posix/regex.c (_): Likewise.
5371
5372 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
5373
5374         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
5375         lookup not ip6.int.
5376         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
5377         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
5378
5379 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
5380
5381         * misc/sys/cdefs.h (__attribute_used__): Define.
5382         * elf/rtld.c (_dl_start): Add __attribute_used__.
5383         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
5384
5385 2001-10-25  Andreas Schwab  <schwab@suse.de>
5386
5387         * stdlib/a64l.c: Expect least significant digit first.
5388         * stdlib/l64a.c: Produce least significant digit first.
5389         * stdlib/Makefile (tests): Add test-a64l.
5390         * stdlib/test-a64l.c: New file.
5391         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
5392
5393 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
5394
5395         * po/sk.po: Update from translation team.
5396
5397 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
5398
5399         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
5400
5401 2001-10-18  Andreas Schwab  <schwab@suse.de>
5402
5403         * math/libm-test.inc (print_ulps): Print ulp values rounded to
5404         next whole number.
5405         (print_function_ulps): Likewise.
5406         (print_complex_function_ulps): Likewise.
5407         (print_max_error): Likewise.
5408         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
5409
5410 2001-10-16  Andreas Schwab  <schwab@suse.de>
5411
5412         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
5413         implementation.
5414
5415         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
5416         BSD_SETJMP or BSD__SETJMP is defined, resp.
5417         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
5418         a tail call to __sigsetjmp that would require extending the
5419         caller's frame.
5420         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
5421         * sysdeps/m68k/bsd-setjmp.S: Deleted.
5422         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
5423         Reported by Jes Sorensen <jes@trained-monkey.org>.
5424
5425 2001-10-16  Andreas Jaeger  <aj@suse.de>
5426
5427         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
5428         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
5429         close PR libc/2589.
5430
5431 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
5432
5433         * po/ca.po: New file.  Contributed by the translation team.
5434
5435 2001-10-15  Ralf Baechle  <ralf@gnu.org>
5436
5437         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
5438         a varargs prototype.  Remove dependency from kernel header files.
5439
5440         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
5441         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
5442
5443 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
5444
5445         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
5446         to generate hexadecimal identifier.
5447         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
5448
5449 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
5450
5451         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
5452
5453 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
5454
5455         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
5456         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
5457         Contributed by Stephen L Moshier <moshier@mediaone.net>.
5458
5459         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
5460         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5461         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
5462         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
5463         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
5464         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
5465
5466         * timezone/africa: Update from tzdata2001d.
5467         * timezone/asia: Likewise.
5468         * timezone/australasia: Likewise.
5469         * timezone/backward: Likewise.
5470         * timezone/europe: Likewise.
5471         * timezone/leapseconds: Likewise.
5472         * timezone/northamerica: Likewise.
5473         * timezone/southamerica: Likewise.
5474         * timezone/zone.tab: Likewise.
5475
5476 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5477
5478         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
5479         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
5480
5481 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
5482
5483         * elf/elf.h (PT_TLS): New definition.
5484
5485 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
5486
5487         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
5488         bits/errno.h
5489
5490 2001-10-07  Roland McGrath  <roland@frob.com>
5491
5492         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
5493
5494 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
5495
5496         * elf/elf.h: Add more ELFOSABI_* constants.
5497
5498 2001-10-04  Ben Collins  <bcollins@debian.org>
5499
5500         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
5501         decleration of __need_wchar_t.
5502
5503 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
5504
5505         * string/bits/string2.h (__strsep_g): Add prototype.
5506         (__strsep): Use it.
5507         * string/Versions (__strsep): Remove.
5508         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
5509
5510 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
5511
5512         * manua/llio.texi: Clarify file references added by mmap.
5513         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
5514
5515 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
5516
5517         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
5518         Add sc_loadrs and sc_rbs_bas to match current kernel.
5519
5520 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
5521
5522         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
5523
5524         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
5525
5526 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
5527
5528         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
5529         object has been bumped because of relocation dependency, avoid
5530         duplicates in l_scope.
5531         (show_scope): Fix typos.
5532         * elf/Makefile: Add rules to build and run reldep6.
5533         * elf/reldep6.c: New file.
5534         * elf/reldep6mod0.c: New file.
5535         * elf/reldep6mod1.c: New file.
5536         * elf/reldep6mod2.c: New file.
5537         * elf/reldep6mod3.c: New file.
5538         * elf/reldep6mod4.c: New file.
5539
5540 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
5541
5542         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
5543         sparc64_fixup_plt.
5544         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
5545         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
5546         for non-lazy binding. Fix .plt[32768+] handling.
5547         (elf_machine_plt_value): Don't add addend.
5548         (elf_machine_rela): Call sparc64_fixup_plt instead of
5549         elf_machine_fixup_plt.
5550         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
5551         dynamic linker at 0xfffff800XXXXXXXX.
5552
5553         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
5554
5555 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
5556
5557         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
5558
5559 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
5560
5561         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
5562         declare __cmsg_data field if its size would be bigger than 0.
5563         (CMSG_DATA): Adjust accordingly.
5564         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
5565         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
5566         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
5567         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
5568         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5569         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
5570         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5571
5572 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
5573
5574         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
5575         * iconvdata/testdata/IBM1160: New file.
5576         * iconvdata/testdata/IBM1160..UTF8: New file.
5577         * iconvdata/testdata/IBM1161: New file.
5578         * iconvdata/testdata/IBM1161..UTF8: New file.
5579         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5580
5581 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
5582
5583         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
5584         UL_SETFSIZE computations better.
5585
5586         * rt/Makefile: Remove use of filter for librt again.
5587
5588         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
5589         UL_SETFSIZE computations better.
5590
5591         * string/Versions: Export __strsep for GLIBC_2.2.5.
5592         * string/bits/string2.h: Define all __STRING_INLINE functions if
5593         _FORCE_INLINES is defined.
5594         Use int instead of char of parameter types.
5595         (__strsep): Don't use __strsep_g.  Don't define it.
5596         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
5597         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
5598         __strcpy_small.
5599         (__stpcpy_a_small): Renamed from __stpcpy_small.
5600         (__strcspn_c1): Don't define if _FORCE_INLINES.
5601         (__strspn_c1): Likewise.
5602
5603 2001-09-22  Ben Collins  <bcollins@debian.org>
5604
5605         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
5606         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
5607         * sysdeps/ia64/bits/sigaction.h: Likewise.
5608         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
5609
5610 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
5611
5612         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
5613
5614 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
5615
5616         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
5617
5618 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
5619
5620         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
5621
5622 2001-09-20  H.J. Lu  <hjl@gnu.org>
5623
5624         * include/dlfcn.h (__RTLD_SPROF): New definiton.
5625         * elf/dl-open.c (dl_open_worker): Return immediately after loading
5626         for __RTLD_SPROF.
5627         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
5628         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
5629
5630 2001-09-20  H.J. Lu  <hjl@gnu.org>
5631
5632         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
5633         don't add 1.
5634
5635 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
5636
5637         * nss/getent.c: Accept -s parameter to overwrite rules in
5638         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
5639
5640         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
5641         with as many ".0" as necessary to form a complete address
5642         inet_network understands.
5643
5644         * nss/getent.c: Various cleanups.  Use simpler and fewer function
5645         calls.
5646
5647 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5648
5649         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
5650         _JMPBUF_UNWINDS.
5651         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
5652
5653 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
5654
5655         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
5656         IBM1161.
5657         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
5658         * iconvdata/ibm1160.c: New file.
5659         * iconvdata/ibm1160.h: New file.
5660         * iconvdata/ibm1161.c: New file.
5661         * iconvdata/ibm1161.h: New file.
5662         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5663
5664 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
5665
5666         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
5667         difference between base address and first PT_LOAD's virtual address,
5668         not the base address.
5669
5670 2001-09-11  Tom Rix  <trix@redhat.com>
5671
5672         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
5673         ifdef for __getopt_clean_environment.
5674         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
5675
5676 2001-09-22  Andreas Jaeger  <aj@suse.de>
5677
5678         * elf/reldep4.c (main): Add proper prototype to fix warning.
5679
5680         * elf/reldep5.c (main): Remove unused variable.
5681
5682         * math/math_private.h: Add prototypes.
5683
5684 2001-09-21  Andreas Jaeger  <aj@suse.de>
5685
5686         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
5687         * sysdeps/x86_64/Dist: New file.
5688         * sysdeps/x86_64/soft-fp/Dist: New file.
5689
5690         * sysdeps/gnu/Dist: Remove eval.c.
5691
5692 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
5693
5694         * malloc/memusage.c (realloc): Don't count already allocated
5695         memory in the sums.
5696         (me): Always use dlsym() to find the real implementations.
5697
5698         * malloc/memusage.sh: Make -n option actually do something.
5699
5700 2001-09-20  Andreas Jaeger  <aj@suse.de>
5701
5702         * elf/elf.h (R_390_NUM): Correct value.
5703
5704         * Versions.def: Add missing versions 2.2.3 for libthread_db and
5705         libpthread.
5706
5707         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
5708         for x86-64, install x86-64 into */lib64.
5709
5710         * shlib-versions: Add x86-64.
5711
5712         * elf/elf.h: Add x86-64 relocations.
5713
5714 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
5715
5716         * po/fr.po: Update from translation team.
5717
5718 2001-09-19  Andreas Jaeger  <aj@suse.de>
5719
5720         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
5721         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
5722         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
5723         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
5724         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
5725         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
5726         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
5727         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
5728         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
5729         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
5730         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
5731         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
5732         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
5733         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
5734         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
5735         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
5736         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
5737         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
5738         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
5739         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
5740         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
5741         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
5742         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
5743         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
5744         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
5745         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
5746         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
5747         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
5748         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
5749         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
5750         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
5751         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
5752         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
5753         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
5754         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
5755         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
5756         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
5757         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
5758         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
5759         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
5760         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
5761         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
5762         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
5763         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
5764         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
5765         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
5766         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
5767         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
5768         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
5769         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
5770         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
5771         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
5772         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
5773         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
5774         * sysdeps/unix/x86_64/sysdep.S: New file.
5775         * sysdeps/unix/x86_64/sysdep.h: New file.
5776         * sysdeps/x86_64/Implies: New file.
5777         * sysdeps/x86_64/Makefile: New file.
5778         * sysdeps/x86_64/Versions: New file.
5779         * sysdeps/x86_64/__longjmp.S: New file.
5780         * sysdeps/x86_64/abort-instr.h: New file.
5781         * sysdeps/x86_64/atomicity.h: New file.
5782         * sysdeps/x86_64/bits/endian.h: New file.
5783         * sysdeps/x86_64/bits/setjmp.h: New file.
5784         * sysdeps/x86_64/bits/string.h: New file.
5785         * sysdeps/x86_64/bp-asm.h: New file.
5786         * sysdeps/x86_64/bsd-_setjmp.S: New file.
5787         * sysdeps/x86_64/bsd-setjmp.S: New file.
5788         * sysdeps/x86_64/dl-machine.h: New file.
5789         * sysdeps/x86_64/elf/initfini.c: New file.
5790         * sysdeps/x86_64/elf/start.S: New file.
5791         * sysdeps/x86_64/ffs.c: New file.
5792         * sysdeps/x86_64/ffsll.c: New file.
5793         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
5794         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
5795         * sysdeps/x86_64/fpu/e_acosl.c: New file.
5796         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
5797         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
5798         * sysdeps/x86_64/fpu/e_expl.c: New file.
5799         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
5800         * sysdeps/x86_64/fpu/e_log10l.S: New file.
5801         * sysdeps/x86_64/fpu/e_log2l.S: New file.
5802         * sysdeps/x86_64/fpu/e_logl.S: New file.
5803         * sysdeps/x86_64/fpu/e_powl.S: New file.
5804         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
5805         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
5806         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
5807         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
5808         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
5809         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
5810         * sysdeps/x86_64/fpu/fegetenv.c: New file.
5811         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
5812         * sysdeps/x86_64/fpu/fegetround.c: New file.
5813         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
5814         * sysdeps/x86_64/fpu/fesetenv.c: New file.
5815         * sysdeps/x86_64/fpu/fesetround.c: New file.
5816         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
5817         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
5818         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
5819         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
5820         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
5821         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
5822         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
5823         * sysdeps/x86_64/fpu/s_atanl.c: New file.
5824         * sysdeps/x86_64/fpu/s_cosl.S: New file.
5825         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
5826         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
5827         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
5828         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
5829         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
5830         * sysdeps/x86_64/fpu/s_logbl.c: New file.
5831         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
5832         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
5833         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
5834         * sysdeps/x86_64/fpu/s_rintl.c: New file.
5835         * sysdeps/x86_64/fpu/s_significandl.c: New file.
5836         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
5837         * sysdeps/x86_64/fpu/s_sinl.S: New file.
5838         * sysdeps/x86_64/fpu/s_tanl.S: New file.
5839         * sysdeps/x86_64/gmp-mparam.h: New file.
5840         * sysdeps/x86_64/hp-timing.c: New file.
5841         * sysdeps/x86_64/hp-timing.h: New file.
5842         * sysdeps/x86_64/htonl.S: New file.
5843         * sysdeps/x86_64/memusage.h: New file.
5844         * sysdeps/x86_64/setjmp.S: New file.
5845         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
5846         * sysdeps/x86_64/stackinfo.h: New file.
5847         * sysdeps/x86_64/sysdep.h: New file.
5848         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
5849
5850         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
5851         L Moshier.
5852
5853 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
5854
5855         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
5856         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
5857
5858 2001-09-18  Andreas Schwab  <schwab@suse.de>
5859
5860         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
5861         list, now that l_scope is a pointer.
5862
5863         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
5864         scope list.
5865
5866 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
5867
5868         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
5869         (elf_machine_rela_relative): Add a missing declaration.
5870
5871 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
5872
5873         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
5874         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
5875         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
5876         ldd-rewrite scripts.
5877
5878 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
5879
5880         * elf/ldd.bash.in: Update copyright message.
5881
5882 2001-09-17  H.J. Lu  <hjl@gnu.org>
5883
5884         * hurd/hurdmalloc.c (bcopy): Removed.
5885         (realloc): Replace bcopy with memcpy.
5886         * hurd/path-lookup.c (file_name_path_scan): Likewise.
5887         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
5888         * sunrpc/rpcinfo.c (pmapdump): Likewise.
5889
5890         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
5891         (gethostbyaddr): Likewise.
5892         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
5893
5894 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
5895
5896         * sysdeps/gnu/eval.c: Removed.
5897
5898 2001-09-18  Andreas Jaeger  <aj@suse.de>
5899
5900         * sysdeps/i386/fpu/s_logbl.S: Move to ...
5901         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
5902
5903         * sysdeps/i386/fpu/s_rintl.S: Move to ...
5904         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
5905
5906         * sysdeps/i386/fpu/s_significandl.S: Move to ...
5907         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
5908
5909 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
5910
5911         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
5912         nrules value.
5913
5914 2001-09-14  H.J. Lu  <hjl@gnu.org>
5915
5916         * sysdeps/mips/fpu/libm-test-ulps: Updated.
5917
5918 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
5919
5920         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
5921         Patch by Florian La Roche <laroche@redhat.com>.
5922
5923         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
5924
5925         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
5926         ETHER_CRC_LEN.
5927
5928 2001-09-14  Andreas Schwab  <schwab@suse.de>
5929
5930         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
5931         Sumner <bls@sgi.com>.
5932         * posix/execlp.c: Likewise.
5933
5934 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
5935
5936         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
5937         is already found earlier in the search scope.
5938
5939 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
5940
5941         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
5942         filter.
5943
5944 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
5945
5946         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
5947
5948 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
5949
5950         * config.h.in: Enforce optimization to be used.
5951         * Makeconfig (preprocess-versions): Define ASSEMBLER.
5952         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
5953         * posix/Makefile (annexc-CFLAGS): Define to -O.
5954         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
5955
5956 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
5957
5958         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
5959         Patch by Stephan Kulow.
5960
5961 2001-09-08  Ben Collins  <bcollins@debian.org>
5962
5963         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
5964         usage of RESOLVE() (r_type, not reloc->r_type).
5965
5966 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
5967
5968         * elf/dl-object.c: Avoid allocating extra memory block for name.
5969         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
5970         allocated separately.
5971         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
5972
5973 2001-09-08  H.J. Lu  <hjl@gnu.org>
5974
5975         * po/zh_TW.po: Fix a typo.
5976
5977 2001-09-07  Tom Rix  <trix@redhat.com>
5978
5979         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
5980
5981 2001-08-26  Tom Rix  <trix@redhat.com>
5982
5983         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
5984         command line options.
5985         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
5986         * sysdeps/unix/sysv/aix/start.c: Removed.
5987         * sysdeps/unix/sysv/aix/start-libc.c: New file.
5988         * sysdeps/unix/sysv/aix/init-first.c: New file.
5989         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
5990
5991 2001-09-08  Ben Collins  <bcollins@debian.org>
5992
5993         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
5994         * sysdeps/generic/dl-machine.h: Likewise.
5995         * sysdeps/hppa/dl-fptr.c: Likewise.
5996         * sysdeps/ia64/dl-fptr.c: Likewise.
5997         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
5998         * sysdeps/mips/dl-machine.h: Likewise.
5999         * sysdeps/mips/mips64/dl-machine.h: Likewise.
6000         * sysdeps/powerpc/dl-machine.c: Likewise.
6001
6002 2001-09-07  Ben Collins  <bcollins@debian.org>
6003
6004         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
6005
6006         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
6007
6008 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
6009
6010         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
6011         dependencies if necessary.
6012
6013         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
6014         loaded directly) determine length if l_initfini list by iterating
6015         over its elements.  Minor optimizations.
6016         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
6017         for dependency objects.
6018         If object was already loaded check whether any of the dependencies
6019         is already on the relocation dependency list.  If yes, remove the
6020         latter.  Minor optimizations.
6021         * elf/dl-lookup.c (add_dependency): Add check for self reference of
6022         maps here.  Search l_initfini list only if the object was loaded
6023         directly and not only as a dependency.
6024         (_dl_lookup_symbol): Add relocation dependency also if object
6025         is not in global scope.  Remove test for self-reference here.
6026         (_dl_lookup_versioned_symbol): Likewise.
6027         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
6028         element of first name record.
6029         * elf/loadtest.c: Add some more test to recognize early if an object
6030         wasn't unloaded.
6031         * elf/Makefile: Add rules to build and run reldep5.
6032         * elf/reldep5.c: New file.
6033         * elf/reldepmod5.c: New file.
6034         * elf/reldepmod6.c: New file.
6035
6036         * elf/reldep2.c: Fix typo.
6037
6038 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
6039
6040         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
6041         elements.  Change l_scope to be a pointer only.
6042         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
6043         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
6044         here add searchlist of newly open file to the dependency's scope.
6045         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
6046         only searchlist from its scope.  Free own scope array if necessary.
6047         * elf/Makefile (tests): Add dblload and dblunload now.
6048
6049 2001-09-06  Andreas Jaeger  <aj@suse.de>
6050
6051         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
6052         Stephen L Moshier.
6053
6054 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
6055
6056         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
6057         they both fail.
6058         * elf/dblload.c: New file.
6059         * elf/dblloadmod1.c: New file.
6060         * elf/dblloadmod2.c: New file.
6061         * elf/dblloadmod3.c: New file.
6062         * elf/dblunload.c: New file.
6063
6064 2001-09-04  Richard Henderson  <rth@redhat.com>
6065
6066         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
6067         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
6068
6069 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
6070
6071         Correct very misleading message for error in failed runtime relocation.
6072         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
6073         place of the error.
6074         (_dl_signal_cerror): Likewise.
6075         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6076         * elf/dl-close.c: Likewise.
6077         * elf/dl-deps.c: Likewise.
6078         * elf/dl-load.c: Likewise.
6079         * elf/dl-lookup.c: Likewise.
6080         * elf/dl-open.c: Likewise.
6081         * elf/dl-reloc.c: Likewise.
6082         * elf/dl-sym.c: Likewise.
6083         * elf/dl-version.c: Likewise.
6084         * sysdeps/generic/dl-sysdep.c: Likewise.
6085
6086 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
6087
6088         * iconv/strtab.c (strtabinit): Initialize null Strent.
6089         (newstring): Move len == 0 handling...
6090         (strtabadd): ...here.
6091         If len == 1, return null Strent.
6092         When inserting a suffix of an existing string, check if
6093         it is not equal to some suffix already recorded.
6094         Copy left and right members over if adding longer string.
6095
6096 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
6097
6098         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
6099
6100         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
6101         (__syscall_gethostname): Add prototype.
6102
6103 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
6104
6105         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
6106
6107 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
6108
6109         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
6110
6111 2001-08-27  Roland McGrath  <roland@frob.com>
6112
6113         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
6114         short, copy that much into NAME anyway before returning error.
6115
6116 2001-09-01  Richard Henderson  <rth@redhat.com>
6117
6118         * sysdeps/alpha/elf/Dist: Remove file.
6119         * sysdeps/alpha/elf/Makefile: Remove file.
6120         * sysdeps/alpha/elf/crtbegin.S: Remove file.
6121         * sysdeps/alpha/elf/crtend.S: Remove file.
6122         * sysdeps/alpha/elf/initfini.c: New file.
6123
6124 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
6125
6126         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
6127         * iconv/tst-iconv3.c: Likewise.
6128
6129 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
6130
6131         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
6132
6133 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
6134
6135         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
6136         export it.
6137         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
6138         * iconv/iconv_prog.c (insert_cache): New function.
6139         (print_known_names): If cache is used call insert_cache to use the
6140         information from the cache [PR libc/2509].
6141
6142 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
6143
6144         * time/strptime.c (strptime_internal): Recognize 'l' format and
6145         handle it like 'I' for symmetry with strftime.
6146
6147 2001-08-31  Richard Henderson  <rth@redhat.com>
6148
6149         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
6150         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
6151         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
6152         (print_statistics): Make scalar unsigned long long.
6153         * sysdeps/alpha/hp-timing.h: New file.
6154
6155 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
6156
6157         * stdio-common/perror.c (perror): Save errno early, pass it
6158         down to perror_internal.
6159         (perror_internal): Add errnum argument.
6160
6161 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
6162
6163         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
6164         Don't add old memory content for R_ALPHA_REFQUAD.
6165
6166 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
6167
6168         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
6169         memory correctly.
6170
6171         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
6172         instead of open, __close instead of close, __getpagesize instead
6173         of getpagesize.
6174
6175         * string/argz-stringify.c (__argz_stringify): Use __strnlen
6176         instead of strnlen.
6177         * include/string.h (strndupa): Redefine here to use __strnlen
6178         instead of strnlen.
6179         * string/strndup.c (__strndup): Use __strnlen not strnlen.
6180
6181         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
6182         connected).
6183
6184 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
6185
6186         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
6187         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
6188         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
6189         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
6190         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
6191         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
6192         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
6193
6194 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
6195
6196         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
6197
6198 2001-08-30  Andreas Jaeger  <aj@suse.de>
6199
6200         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
6201         contributed Stephen L Moshier.
6202
6203 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
6204
6205         * sunrpc/etc.rpc (sgi_fam): Add.
6206
6207 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
6208
6209         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
6210
6211 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
6212
6213         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
6214         first is from a previous call.
6215         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
6216
6217 2001-08-29  Andreas Schwab  <schwab@suse.de>
6218
6219         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
6220
6221 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
6222
6223         * config.make.in (INSTALL_SCRIPT): Define.
6224         * Makeconfig (INSTALL_SCRIPT): Define.
6225         * Makerules (do-install-script): New macro to install scripts using
6226         INSTALL_SCRIPT.
6227         (install-bin-script): New rule to install scripts with
6228         do-install-script.
6229         (install-bin-script-nosubdir): New rule.
6230         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
6231         (distinfo-vars): Add $(install-bin-script).
6232         * Rules (others): Likewise.
6233         * Makefile (glibcbug): Install with install-bin-script.
6234         * debug/Makefile (xtrace): Likewise.
6235         (catchsegv): Likewise.
6236         * elf/Makefile (ldd): Likewise.
6237         * malloc/Makefile (mtrace): Likewise.
6238         * timezone/Makefile (tzselect): Likewise.
6239
6240 2001-08-29  H.J. Lu  <hjl@gnu.org>
6241
6242         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
6243         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
6244         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
6245
6246 2001-08-29  Andreas Schwab  <schwab@suse.de>
6247
6248         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
6249
6250 2001-08-28  H.J. Lu  <hjl@gnu.org>
6251
6252         * Makeconfig (combreloc-LDFLAGS): New variable.
6253         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
6254         * config.make.in (have-z-combreloc): New variable.
6255         * configure.in: Substitute libc_cv_z_combreloc.
6256
6257 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
6258
6259         * po/sv.po: Update from translation team.
6260         * po/fr.po: Likewise.
6261         * po/da.po: Likewise.
6262
6263 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
6264
6265         * Makerules: Fix a typo: MD% -> MD5.
6266
6267 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
6268
6269         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
6270         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
6271
6272 2001-08-28  Andreas Jaeger  <aj@suse.de>
6273
6274         * manual/libc-texinfo.sh: Add entry about free manuals.
6275
6276         * manual/contrib.texi (Contributors): Fix cross reference.
6277
6278         * manual/libc.texinfo (Copying): Include freemanuals.
6279
6280         * manual/Makefile (appendices): Add freemanuals.
6281
6282         * manual/freemanuals.texi: New file.
6283         Patch by Brian Youmans <3diff@gnu.org>.
6284
6285         * manual/libm-err-tab.pl: Pretty print more platforms, print a
6286         smaller table.
6287
6288         * manual/math.texi (Errors in Math Functions): Fix grammar, start
6289         table on separate page.
6290         Patch by Brian Youmans <3diff@gnu.org>.
6291
6292 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
6293
6294         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
6295         the connection went down after we first used it try to connect
6296         again and resend the message before printing to the console.
6297         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
6298
6299 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
6300
6301         * string/tst-strlen.c (main): Test strnlen (, -1) too.
6302         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
6303         bit set.
6304
6305 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
6306
6307         * iconv/strtab.c (searchstring): Use correct length for comparison.
6308         (strtabadd): Account total size correct if new string has old string as
6309         substring.
6310
6311 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
6312
6313         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
6314
6315 2001-08-27  Andreas Jaeger  <aj@suse.de>
6316
6317         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
6318
6319         * math/libm-test.inc (j0_test): Add extra tests.
6320         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
6321         not x, in Hankel approximation.
6322         Patches by Stephen L Moshier.
6323
6324 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
6325
6326         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
6327         link_map.
6328
6329         * configure.in: Fix test for .rela.dyn section.
6330
6331         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
6332
6333 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
6334
6335         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
6336         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
6337         Pass type_class to _dl_lookup_*.
6338         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
6339         Pass around just type_class instead of noexec, noplt pair.
6340         (_dl_lookup_versioned_symbol): Likewise.
6341         (_dl_lookup_symbol_skip): Pass around just type_class instead of
6342         noexec, noplt pair.
6343         (_dl_lookup_versioned_symbol_skip): Likewise.
6344         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
6345         * elf/do-lookup.h (do_lookup): Likewise.
6346         * include/link.h (struct link_map): Replace noexec and noplt fields
6347         in l_lookup_cache with type_class field.
6348         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
6349         ELF_RTYPE_CLASS_COPY): Define.
6350         Adjust prototypes for _dl_lookup_symbol and
6351         _dl_lookup_versioned_symbol.
6352         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
6353         elf_machine_lookup_noexec_p): Remove.
6354         (elf_machine_type_class): Define.
6355         * sysdeps/arm/dl-machine.h: Likewise.
6356         * sysdeps/hppa/dl-machine.h: Likewise.
6357         * sysdeps/cris/dl-machine.h: Likewise.
6358         * sysdeps/i386/dl-machine.h: Likewise.
6359         * sysdeps/ia64/dl-machine.h: Likewise.
6360         * sysdeps/m68k/dl-machine.h: Likewise.
6361         * sysdeps/mips/mips64/dl-machine.h: Likewise.
6362         * sysdeps/mips/dl-machine.h: Likewise.
6363         * sysdeps/powerpc/dl-machine.h: Likewise.
6364         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6365         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6366         * sysdeps/sh/dl-machine.h: Likewise.
6367         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6368         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6369
6370 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
6371
6372         * manual/message.texi (Advanced gettext functions): Change
6373         description of plural forms for Slovak.
6374         Reported by Marcel Telka <marcel@telka.sk>.
6375
6376         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
6377         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
6378
6379 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
6380
6381         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
6382         typo.  Patch by Florian La Roche <laroche@redhat.com>.
6383
6384 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
6385
6386         * include/link.h (struct link_map): Add l_lookup_cache element.
6387         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
6388         (RESOLVE_MAP): Likewise.
6389         (_dl_relocate_object): Remove cache initialization.
6390         * elf/dl-lookup.c: Rip out cache handling code.
6391         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
6392         declarations.
6393
6394         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
6395         remove some __builtin_expect.
6396         (_dl_lookup_versioned_symbol): Likewise.
6397
6398         * config.h.in: Add HAVE_Z_COMBRELOC.
6399         * configure.in: Add test for -z combreloc.
6400
6401         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
6402         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
6403         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
6404         case to almost no code.
6405
6406 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
6407
6408         * po/tr.po: Update from translation team.
6409
6410 2001-08-24  Andreas Jaeger  <aj@suse.de>
6411
6412         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
6413         make clean works.
6414
6415 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
6416
6417         * elf/rtld.c (print_statistics): Printf % after percent values.
6418         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
6419
6420         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
6421         don't have to compute the hash value and initialize current_value.
6422         Move reference_name variable to where it is needed.
6423         (_dl_lookup_versioned_symbol): Likewise.
6424
6425 2001-08-24  Roland McGrath  <roland@frob.com>
6426
6427         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
6428         Just test that strerror returns non-null for a few errno codes.
6429
6430 2001-08-23  Roland McGrath  <roland@frob.com>
6431
6432         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
6433         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
6434
6435         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
6436
6437         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
6438         __mach_reply_port.
6439
6440 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
6441
6442         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
6443         returns NULL.
6444
6445         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
6446         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
6447         doesn't do it.
6448         * elf/rtld.c: Include <sys/param.h>.
6449         * elf/dl-reloc.c: Likewise.
6450
6451 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
6452
6453         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
6454         empty to prevent junk from being generated.
6455         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
6456
6457 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
6458
6459         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
6460         records.  Rename endrel to relative, initialize it to r, and use it
6461         in elf_machine_rel_relative calls.  Point r after relative relocs.
6462
6463 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
6464
6465         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
6466         of R_386_NONE.
6467
6468 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
6469
6470         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
6471         necessary.  Undefine newly defined macros at the end.
6472         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
6473         Rename from elf_machine_rel_relative.
6474         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
6475         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
6476         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
6477         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
6478         Likewise.
6479         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
6480         Likewise.
6481         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
6482         Fix argument types.
6483         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
6484         Fix argument types.
6485         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
6486         Likewise.  Fix argument types.
6487         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
6488         Likewise.  Fix argument types.
6489         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
6490         Fix argument types.
6491         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
6492         ElfW(Rel) in argument.
6493         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
6494         function.
6495
6496 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
6497
6498         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
6499
6500 2001-08-24  Andreas Jaeger  <aj@suse.de>
6501
6502         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
6503         Stephen L Moshier <moshier@mediaone.net>.
6504
6505 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
6506
6507         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
6508         first if RELCOUNT is set.
6509
6510         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
6511         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
6512         elf_machine_rel_relative.
6513         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
6514         Minor optimizations.
6515         * sysdeps/arm/dl-machine.h: Likewise.
6516         * sysdeps/cris/dl-machine.h: Likewise.
6517         * sysdeps/hppa/dl-machine.h: Likewise.
6518         * sysdeps/i386/dl-machine.h: Likewise.
6519         * sysdeps/ia64/dl-machine.h: Likewise.
6520         * sysdeps/m68k/dl-machine.h: Likewise.
6521         * sysdeps/mips/dl-machine.h: Likewise.
6522         * sysdeps/powerpc/dl-machine.h: Likewise.
6523         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6524         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6525         * sysdeps/sh/dl-machine.h: Likewise.
6526         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6527         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6528
6529 2001-08-23  Roland McGrath  <roland@frob.com>
6530
6531         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
6532
6533         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
6534         sysdeps/mach version.  Implement counting ("recursive") mutexes
6535         on top of cthreads mutexes.
6536         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
6537
6538         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
6539         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
6540         (__libc_cleanup_region_start, __libc_cleanup_region_end,
6541         __libc_clean_end): Define these to call the cleanup function after
6542         normal exit when they're supposed to.
6543
6544         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
6545         Take new first arg DOIT, a boolean saying whether to really install
6546         any cleanup handler.
6547         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
6548         (__libc_cleanup_end): Likewise.
6549         * sysdeps/generic/bits/libc-lock.h: Same changes.
6550         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
6551         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
6552         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
6553         Likewise.
6554         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
6555         * sysdeps/generic/bits/stdio-lock.h
6556         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
6557
6558 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
6559
6560         * elf/ldconfig.c (search_dir): Remove stale symlinks.
6561
6562 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
6563
6564         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
6565         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
6566         lookups in cache.
6567         (_dl_lookup_versioned_symbol): Likewise.
6568         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
6569         relocation lookup.
6570         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
6571         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
6572         (lookup_cache, lookup_cache_versioned): Add declarations.
6573
6574 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
6575
6576         * stdlib/tst-random.c (main): Swap parameters in fail call.
6577         Patch by Pete Bevin <pete@petebevin.com>.
6578
6579 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
6580
6581         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
6582
6583 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
6584
6585         * malloc/obstack.c: Indent preprocessor directives.
6586         Patch by Jim Meyering <meyering@ascend.com>.
6587
6588         * po/ja.po: Update from translation team.
6589
6590 2001-08-23  Roland McGrath  <roland@frob.com>
6591
6592         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
6593
6594         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
6595         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
6596
6597 2001-08-22  Roland McGrath  <roland@frob.com>
6598
6599         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
6600         __libc_lock_define_recursive.
6601         * elf/dl-open.c: Don't declare it here any more.
6602         * elf/dl-close.c: Likewise.
6603         * elf/dl-lookup.c: Likewise.
6604         * elf/dl-iteratephdr.c: Likewise.
6605         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
6606         __libc_lock_unlock_recursive.
6607         * elf/dl-close.c (_dl_close): Likewise
6608         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
6609         * elf/dl-open.c (_dl_open): Likewise
6610
6611         * sysdeps/generic/bits/libc-lock.h
6612         (__libc_lock_define_recursive): New macro.
6613         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
6614         (_IO_lock_lock): Use __libc_lock_lock_recursive.
6615         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
6616
6617         * conform/conformtest.pl (checknamespace): Sort the output list.
6618
6619         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
6620         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
6621         definitions conditional on [__USE_XOPEN].
6622
6623         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
6624         these unconditionally, not only use [__USE_BSD], so as to match
6625         the sysdeps/unix/sysv/linux files.
6626
6627 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
6628
6629         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
6630         avoid warnings.
6631
6632         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
6633         DL_LOOKUP_ADDRESS.
6634
6635 2001-08-22  Roland McGrath  <roland@frob.com>
6636
6637         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
6638         conditionalization of sa_handler/sa_sigaction member types to
6639         match the sysdeps/unix/sysv/linux file.
6640
6641 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
6642
6643         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
6644         symbol sizes a bit better.
6645
6646         * sysdeps/ia64/strncpy.S: Complete rewrite.
6647         Contributed by Jakub Jelinek <jakub@redhat.com>.
6648
6649         * string/stratcliff.c (main): Add strncpy test.
6650
6651 2001-08-22  Roland McGrath  <roland@frob.com>
6652
6653         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
6654         and don't declare unsetenv or _environ directly.
6655         (unsetenv): Return int, not void.  Use __environ instead of _environ.
6656
6657 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
6658
6659         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
6660         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
6661         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
6662         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
6663         test for cmsg struct size.
6664
6665 2001-04-23  Paul Eggert  <eggert@twinsun.com>
6666
6667         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
6668         Rename __argc to ___argc in prototypes to avoid compatibility
6669         problems with systems that reserve the identifier "__argc".
6670         Similarly for __argv.
6671
6672 2001-08-21  Roland McGrath  <roland@frob.com>
6673
6674         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
6675
6676         * mach/Makefile (tests): Removed.
6677         * mach/hello.c: File removed.
6678
6679 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
6680
6681         * po/sv.po: Update from translation team.
6682
6683         * stdio-common/vfscanf.c: Fix handling of %l[].
6684         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
6685
6686         * libio/Makefile (tests): Add tst-sscanf.
6687         * libio/tst-sscanf.c: New file.
6688
6689         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
6690         * malloc/mtrace.c (tr_where): dli_sname always points to a
6691         non-empty string if != NULL.
6692         Reported by Tim Janik <timj@gtk.org>.
6693
6694 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
6695
6696         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
6697         buf.  Free resources on failure.
6698         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
6699         (makefd_xprt): Likewise.
6700         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
6701         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
6702         * sunrpc/auth_unix.c (authunix_create): Likewise.
6703
6704 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
6705
6706         * string/strnlen.c: Remove.
6707         * sysdeps/generic/strnlen.c: New file.
6708         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
6709
6710 2001-08-21  Roland McGrath  <roland@frob.com>
6711
6712         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
6713         as a macro, not an extern inline function.
6714
6715         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
6716         * Versions.def (libc): Add GLIBC_2.2.5 set.
6717         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
6718         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
6719
6720 2001-08-20  Roland McGrath  <roland@frob.com>
6721
6722         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
6723         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
6724
6725 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
6726
6727         * string/bits/string2.h: Remove strnlen optimization here.
6728         * sysdeps/i386/i486/bits/string.h: Add it here.
6729
6730 2001-08-21  Wolfram Gloger  <wg@malloc.de>
6731
6732         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
6733
6734 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
6735
6736         * po/gl.po: Update from translation team.
6737
6738 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
6739
6740         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
6741         * misc/err.c (convert_and_print): Likewise.
6742
6743         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
6744         function calls.
6745
6746 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6747
6748         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
6749         change of the gregset_t type.
6750         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
6751
6752 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6753
6754         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
6755
6756 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
6757
6758         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
6759
6760         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
6761
6762 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
6763
6764         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
6765         before calling the cthreads initialization code.
6766
6767 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
6768
6769         * argp/argp-help.c: Fix two problems introduced in last change.
6770
6771         * include/dirent.h: Include <dirstream.h> first.
6772
6773 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
6774
6775         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
6776
6777         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
6778         * sunrpc/xdr_rec.c: Likewise.
6779         * sunrpc/xdr_mem.c: Likewise.
6780         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
6781         * sunrpc/rpc_cmsg.c: Likewise.
6782         * sunrpc/getrpcport.c (getrpcport): Likewise.
6783         * sunrpc/clnt_simp.c (callrpc): Likewise.
6784         * sunrpc/clnt_gen.c (clnt_create): Likewise.
6785         * string/envz.c: Likewise.
6786
6787         * po/ko.po: Update from translation team.
6788
6789         * argp/argp-help.c: Handle wide oriented stderr stream.
6790
6791 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
6792
6793         * sysdeps/generic/strtol.c: Little optimizations.  Add some
6794         __builtin_expect.
6795
6796         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
6797
6798         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
6799         * wcsmbs/wcwidth.c (wcwdith): Likewise.
6800         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
6801
6802         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
6803
6804         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
6805
6806         * time/time.h (struct timespec): Use __time_t for tv_sec element.
6807
6808         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
6809         wchar_t for function declarations and defintions.
6810
6811         * misc/sys/select.h: Define __need_time_t before including <time.h>.
6812         Define suseconds_t if it hasn't happened yet.
6813
6814         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
6815
6816         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
6817
6818         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
6819         <stddef.h>.
6820
6821         * conform/data/stddef.h-data: Remove wint_t.
6822
6823         * conform/conformtest.pl: Change namespace test to take #undef
6824         lines into account.
6825
6826         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
6827
6828         * conform/data/sys/socket.h-data: Add sockatmark.
6829
6830 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
6831
6832         * io/fts.c: Update from recent BSD source.
6833
6834 2001-08-17  Roland McGrath  <roland@frob.com>
6835
6836         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
6837         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
6838         Likewise.
6839
6840 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
6841
6842         * locale/duplocale.c (__duplocale): Also initialize the special
6843         __ctype_* elements.
6844
6845         * conform/data/netdb.h-data: Adjust gai_strerror return type.
6846
6847 2001-08-17  Andreas Jaeger  <aj@suse.de>
6848
6849         * misc/getpass.c: Include wchar.h for prototypes.
6850         * malloc/obstack.c: Likewise.
6851
6852 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
6853
6854         * sunrpc/svc_simple.c (universal): Use __write instead of write.
6855
6856         * wcsmbs/wcscoll.c: Also define __wcscoll.
6857         * include/wchar.h: Declare __wcscoll.
6858
6859         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
6860         * libio/vwprintf.c: Likewise.
6861         * libio/wprintf.c: Likewise.
6862
6863         * iconv/gconv_cache.c: Use __munmap instead of munmap.
6864
6865 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
6866
6867         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
6868         instead of mbrtowc.
6869         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
6870         wcslen, and __wcscoll instead of wcscoll.
6871
6872         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
6873
6874         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
6875         __getuid instead of getuid.
6876
6877         * stdio-common/perror.c (perror): Use __close instead of close.
6878         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
6879         * libio/freopen.c (freopen): Likewise.
6880         * libio/freopen64.c (freopen64): Likewise.
6881
6882         * libio/tst-ungetwc2.c (main): Define str const.
6883
6884         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
6885         * libio/fwprintf.c: Also define __fwprintf.
6886         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
6887         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
6888         * assert/assert-perr.c: Likewise.
6889         * assert/assert.c: Likewise.
6890         * gmon/gmon.c: Likewise.
6891         * inet/rcmd.c: Likewise.
6892         * malloc/obstack.c: Likewise.
6893         * misc/err.c: Likewise.
6894         * misc/error.c: Likewise.
6895         * misc/getpass.c: Likewise.
6896         * posix/getopt.c: Likewise.
6897         * resolv/res_hconf.c: Likewise.
6898         * stdio-common/perror.c: Likewise.
6899         * stdio-common/psignal.c: Likewise.
6900         * stdlib/fmtmsg.c: Likewise.
6901         * sunrpc/auth_unix.c: Likewise.
6902         * sunrpc/clnt_perr.c: Likewise.
6903         * sunrpc/clnt_tcp.c: Likewise.
6904         * sunrpc/clnt_udp.c: Likewise.
6905         * sunrpc/clnt_unix.c: Likewise.
6906         * sunrpc/svc_simple.c: Likewise.
6907         * sunrpc/svc_tcp.c: Likewise.
6908         * sunrpc/svc_udp.c: Likewise.
6909         * sunrpc/svc_unix.c: Likewise.
6910         * sunrpc/xdr.c: Likewise.
6911         * sunrpc/xdr_array.c: Likewise.
6912         * sunrpc/xdr_rec.c: Likewise.
6913         * sunrpc/xdr_ref.c: Likewise.
6914         * sysdeps/generic/wordexp.c: Likewise.
6915
6916         * po/it.po: Update from translation team.
6917
6918         * misc/err.c: Handle wide oriented stderr stream.
6919
6920 2001-08-14  Tom Rix  <trix@redhat.com>
6921
6922         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
6923         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
6924
6925 2001-08-13  Tom Rix  <trix@redhat.com>
6926
6927         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
6928         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
6929         and __intptr_t.
6930
6931 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6932
6933         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
6934         Store the access registers to the ucontext structure.
6935         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
6936         Likewise.
6937
6938         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
6939         Load the access registers from the ucontext structure.
6940         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
6941         Likewise.
6942
6943         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
6944         offsets to the new ucontext layout.
6945         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
6946
6947         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
6948         of the ucontext structure.
6949         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
6950
6951 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
6952
6953         * misc/error.c (error): Handle wide oriented stderr stream correctly.
6954         (error_at_line): Likewise.
6955
6956         * stdio-common/perror.c (perror): Implement according to standard.
6957         The stream orientation must not be changed if the stream was not
6958         oriented before the call.
6959         * stdio-common/Makefile (tests): Add tst-perror.
6960         * stdio-common/tst-perror.c: New file.
6961
6962
6963 See ChangeLog.12 for earlier changes.