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