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