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