1 2002-03-27 Andreas Jaeger <aj@suse.de>
3 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4 sigcontext): Follow further kernel change.
6 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
9 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
10 Change for struct sigcontext change.
12 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
13 Follow changes in struct sigcontext.
15 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
16 sysycall, use wrapper instead.
18 2002-03-26 Andreas Jaeger <aj@suse.de>
20 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
21 read and write accesses as detailed as possible.
22 (__memcpy_by2): Likewise.
23 (__memcpy_g): Likewise.
26 (__memset_ccn_by4): Likewise.
27 (__memset_ccn_by2): Likewise.
28 (__memset_gcn_by4): Likewise.
29 (__memset_gcn_by2): Likewise.
31 (__memrchr): Likewise.
32 (rawmemchr): Likewise.
33 (__strlen_g): Likewise.
34 (__strcpy_g): Likewise.
35 (__mempcpy_by4): Likewise.
36 (__mempcpy_by2): Likewise.
37 (__mempcpy_byn): Likewise.
38 (__stpcpy_g): Likewise.
39 (__strncpy_by4): Likewise.
40 (__strncpy_by2): Likewise.
41 (__strncpy_byn): Likewise.
42 (__strncpy_gg): Likewise.
43 (__strcat_c): Likewise.
44 (__strcat_g): Likewise.
45 (__strncat_g): Likewise.
46 (__strcmp_gg): Likewise.
47 (__strncmp_g): Likewise.
48 (__strchr_c): Likewise.
49 (__strchr_g): Likewise.
50 (__strchrnul_c): Likewise.
51 (__strchrnul_g): Likewise.
52 (__strrchr_c): Likewise.
53 (__strrchr_g): Likewise.
54 (__strrchr_c): Likewise.
55 (__strrchr_g): Likewise.
56 (__strcspn_c1): Likewise.
57 (__strcspn_cg): Likewise.
58 (__strcspn_g): Likewise.
59 (__strcspn_g): Likewise.
60 (__strspn_c1): Likewise.
61 (__strspn_cg): Likewise.
62 (__strspn_g): Likewise.
63 (__strspn_g): Likewise.
64 (__strpbrk_cg): Likewise.
65 (__strpbrk_g): Likewise.
66 (__strstr_cg): Likewise.
67 (__strstr_g): Likewise.
69 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
70 Michal Ludvig <mludvig@suse.cz>.
72 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
73 compatibilty, adjust for kernel changes.
75 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
76 sigcontext): Adjust for kernel changes.
78 2002-03-25 Andreas Jaeger <aj@suse.de>
80 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
82 Reported by Artur Zaprzala <zybi@talex.com.pl>.
84 2002-03-24 Andreas Jaeger <aj@suse.de>
86 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
88 * stdio-common/tst-fdopen.c (main): Remove unused variable.
90 * iconv/tst-iconv3.c (main): Use correct printf strings.
92 2002-03-18 Roland McGrath <roland@frob.com>
94 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
95 (CMGROUP_MAX): New macro.
97 2002-03-23 Roland McGrath <roland@frob.com>
99 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
100 * sysdeps/posix/shm_unlink.c: Likewise.
102 2002-03-22 Roland McGrath <roland@frob.com>
104 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
105 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
106 under --enable-libio.
107 * sysdeps/mach/hurd/configure: Regenerated.
109 2002-03-23 Roland McGrath <roland@frob.com>
111 * sysdeps/mach/hurd/i386/Makefile
112 (sysdep_routines, shared-only-routines): Don't add framestate,
113 reverting 2001-10-02 change.
114 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
115 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
116 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
117 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
118 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
119 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
120 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
121 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
122 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
123 Do it here instead, only if [$(unwind-find-fde) = yes].
125 2002-03-23 Andreas Jaeger <aj@suse.de>
127 * signal/signal.h: Fix typo. Patch by Steve Kemp
128 <skx@tardis.ed.ac.uk>.
130 2002-03-22 Andreas Jaeger <aj@suse.de>
132 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
135 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
136 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
137 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
138 user_fpregs_struct): Rename fwd.
140 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
141 Follow sigcontext changes.
143 2002-03-22 Andreas Jaeger <aj@suse.de>
145 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
146 changes for NaNs on MIPS.
147 Patch by Hartvig Ekner <hartvige@mips.com>.
149 2002-03-21 Ulrich Drepper <drepper@redhat.com>
151 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
152 Use realloc if too large.
153 (addgrbyid): Likewise.
154 * nscd/hstcache.c (addhstbyname): Likewise.
155 (addhstbyaddr): Likewise.
156 (addhstbynamev6): Likewise.
157 (addhstbyaddrv6): Likewise.
158 * nscd/pwdcache.c (addpwbyname): Likewise.
159 (addpwbyuid): Likewise.
161 2002-03-21 Andreas Jaeger <aj@suse.de>
163 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
164 _fpstate): Add separate struct for x86-64.
166 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
167 user_fpregs_struct): Change member names to follow kernel.
169 2002-03-20 Ulrich Drepper <drepper@redhat.com>
171 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
172 Correctly close the UDP connection right away [PR libc/3120].
174 2002-03-20 Andreas Jaeger <aj@suse.de>
176 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
177 user_fpregs_struct): Fix for changed kernel struct.
178 (struct user_regs_struct): Likewise.
179 (struct user): Likewise.
180 Add 32-bit x86 compatibility.
182 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
184 2002-03-19 Andreas Jaeger <aj@suse.de>
186 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
188 2002-03-18 Andreas Jaeger <aj@suse.de>
190 * iconvdata/Makefile: Only run tests when shared libs are
193 2002-03-17 Andreas Jaeger <aj@suse.de>
195 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
197 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
199 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
202 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
204 Patch by Hartvig Ekner <hartvige@mips.com>.
206 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
207 * sysdeps/generic/unwind-pe.h: Likewise.
209 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
212 * libio/stdio.c (AL2): Define variant when visibility attribute is
215 * include/libc-symbols.h (_INTVARDEF): Define variant when
216 visibility attribute is not supported.
218 2002-03-16 Ulrich Drepper <drepper@redhat.com>
220 * po/fr.po: Update from translation team.
222 2002-02-25 Bruno Haible <bruno@clisp.org>
224 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
226 2002-03-15 Ulrich Drepper <drepper@redhat.com>
228 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
229 buffers if _IO_file_attach failed.
231 * libio/fileops.c (_IO_file_open): Close file descriptor if
232 _IO_SEEKOFF call failed.
234 2002-03-15 H.J. Lu <hjl@gnu.org>
235 Ulrich Drepper <drepper@redhat.com>
237 * configure.in: Check for availability of
238 init_array/fini_array/preinit_array handling in binutils.
239 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
240 * config.make.in (have-initfini-array): New variable.
242 2002-03-15 Ulrich Drepper <drepper@redhat.com>
244 * stdio-common/tst-printf.c (main): Comment out one test which
245 checked the compiler's ability to fold floating-point constants
246 but not really printf.
247 (rfg3): Make s const.
248 * stdio-common/tst-printf.sh: Adjust for removed test.
250 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
251 internal function. Adjust for internal_function calling convention.
252 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
253 as internal_function.
255 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
258 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
259 declaration and definition.
260 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
262 * nss/getXXent_r.c: Likewise.
263 * nss/nsswitch.h (db_lookup_function): Add internal_function to
266 * include/time.h: Declare __localtime_r as hidden.
268 * include/aliases.h: Declare __getaliasent_r as hidden.
269 * include/grp.h: Declare __getgrent_r as hidden.
270 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
271 __getservent_r, and __getprotoent_r as hidden.
272 * include/pwd.h: Declare __getpwent_r as hidden.
273 * include/shadow.h: Declare __getspent_r as hidden.
274 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
276 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
277 and __gconv_transliterate as hidden.
278 Add internal_function to __gconv_get_path declaration.
279 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
280 definition. Add attribute_hidden to __gconv_read_conf definition.
282 2002-03-14 Ulrich Drepper <drepper@redhat.com>
284 * elf/rtld.c: Declare _environ as hidden.
285 * sysdeps/generic/dl-environ.c: Likewise.
286 * sysdeps/generic/dl-sysdep.c: Likewise.
288 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
289 _dl_mcount_internal as hidden.
291 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
292 * sysdeps/generic/dl-brk.c: New file.
293 * sysdeps/generic/dl-sbrk.c: New file.
294 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
295 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
297 * elf/dl-minimal.c (malloc): Declare _end as hidden.
298 (__errno_location): New function. Declare errno as hidden.
299 * elf/rtld.c (_dl_argc): Define as hidden.
300 (_dl_skip_args): Define as hidden.
301 (_begin, _end): Declare as hidden.
302 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
303 * sysdeps/generic/entry.h (_start): Declare as hidden.
304 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
305 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
306 _dl_runtime_resolve and _dl_runtime_profile as hidden.
307 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
309 2002-03-14 Roland McGrath <roland@frob.com>
311 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
313 * Makeconfig (%.v.i, %.v): New implicit rules.
314 (preprocess-versions): Variable removed.
315 ($(common-objpfx)shlib-versions.v.i): New target giving just the
316 shlib-versions input files as dependencies.
317 ($(common-objpfx)soversions.i): Depend on that instead of the input
318 files. Use it as input instead of using a pipeline.
319 (postclean-generated): Append soversions.i, shlib-versions.v, and
320 shlib-versions.v.i here.
321 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
322 the Versions.def input files as dependencies.
323 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
324 ($(common-objpfx)Versions.all): Depend on that instead of the input
325 files. Use it as input instead of using a pipeline.
326 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
327 (postclean-generated): Append those .v and .v.i files here.
329 2002-03-14 Jakub Jelinek <jakub@redhat.com>
331 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
332 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
335 2002-03-14 Jakub Jelinek <jakub@redhat.com>
337 * sysdeps/generic/mp_clz_tab.c: New file.
338 * sysdeps/i386/mp_clz_tab.c: New file.
339 * sysdeps/hppa/mp_clz_tab.c: New file.
340 * sysdeps/powerpc/mp_clz_tab.c: New file.
341 * stdlib/Makefile (aux): Revert last patch.
342 * math/Makefile (gmp-objs): Likewise.
344 2002-03-13 Paul Eggert <eggert@twinsun.com>
346 * time/strftime.c: Comment fixes for references to obsolescent
347 standards, In most cases the simplest fix is to remove the
348 confusing comments. Cross-referencing all the standards properly
349 is a bit of a pain, and it should be enough to put that info in
350 the documentation as I did in my recent time.texi patch.
352 2002-03-13 Paul Eggert <eggert@twinsun.com>
354 * manual/time.texi (Formatting Calendar Time):
355 ISO C99 also specifies the E and O modifiers.
356 %P is a GNU extension, and is not in ISO C99.
357 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
358 %T is also in ISO C99.
359 The RFC 822 example is not valid in arbitrary locales.
360 Reword the POSIX.2 wording slightly, to make it a bit clearer
361 that POSIX.2 formats are also supported by later POSIX versions.
362 If a format was introduced in ISO C99 it is also required by
365 2002-03-13 Ulrich Drepper <drepper@redhat.com>
367 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
368 _sys_nerr_internal with INTVARDEF2.
369 * include/libc-symbols.h (INTVARDEF2): New macro.
370 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
371 (_sys_nerr_internal): Library.
373 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
374 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
376 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
378 2002-03-13 Wolfram Gloger <wg@malloc.de>
380 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
382 2002-03-02 Andreas Schwab <schwab@suse.de>
384 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
385 'h' flag and positional arg.
386 * stdio-common/tst-printf.c (rfg3): New function to test
387 positional arguments.
388 (main): Fix some warnings.
390 2002-03-13 Jakub Jelinek <jakub@redhat.com>
392 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
393 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
395 2002-03-13 Ulrich Drepper <drepper@redhat.com>
397 * grp/initgroups.c (__nss_group_data): Declare as hidden.
399 * include/locale.h (_nl_C_locobj): Declare as hidden.
401 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
402 * time/strptime.c (_nl_C_LC_TIME): Likewise.
404 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
406 * include/sys/gmon.h: Declare _gmonparam as hidden.
408 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
409 (__ctype32_wctrans): Likewise.
410 (__ctype32_width): Likewise.
412 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
415 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
417 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
418 hidden. Change all users of these variables.
420 * posix/regex_internal.h (__re_error_msgid): Renamed from
421 re_error_msgid. Declare as hidden.
422 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
425 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
426 (__printf_function_table): Likewise.
427 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
429 (__printf_function_table): Likewise.
431 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
432 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
434 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
435 * nss/nsswitch.c: Declare _nss_*_database as hidden.
437 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
438 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
440 2002-03-12 Ulrich Drepper <drepper@redhat.com>
442 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
443 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
444 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
445 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
446 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
447 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
448 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
449 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
450 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
451 _nl_C_LC_CTYPE_width: Declare as hidden.
452 * include/locale.h: Declare _nl_locale_file_list.
453 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
454 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
455 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
456 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
457 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
458 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
459 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
460 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
461 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
462 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
463 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
464 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
465 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
466 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
467 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
468 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
469 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
470 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
471 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
472 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
473 _nl_C_LC_CTYPE_width, and as hidden.
474 * locale/findlocale.c: Declare _nl_C as hidden.
475 * locale/newlocale.c: Likewise.
476 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
477 _nl_locale_file_list.
478 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
479 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
480 Define _nl_C_locobj as hidden.
482 * malloc/mtrace.c (_mtrace_file): Define as hidden.
483 (_mtrace_line): Likewise.
485 * include/time.h: Declare __mon_yday as hidden.
486 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
488 * libio/libioP.h: Declare __libio_codecvt as hidden.
489 * libio/fileops.c: Declare __libio_translit as hidden.
490 * libio/iofwide.c: Define __libio_translit as hidden.
492 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
493 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
494 * login/getutline_r.c: Likewise.
495 * login/utmpname.c: Likewise.
497 * login/utmp-private.h: Declare __libc_utmp_file_functions,
498 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
499 __libc_utmp_file_name as hidden.
501 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
502 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
503 * locale/freelocale.c: Likewise.
504 * locale/lc-time.c: Likewise.
506 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
507 (__libc_ptyname2): Likewise.
508 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
510 (__libc_ptyname2): Likewise.
512 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
513 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
514 * sysdeps/generic/init-first.c: Likewise.
515 * sysdeps/i386/init-first.c: Likewise.
516 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
517 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
518 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
519 * sysdeps/sh/init-first.c: Likewise.
520 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
521 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
523 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
524 (_itowa_upper_digits): Likewise.
526 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
527 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
530 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
531 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
532 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
533 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
535 * gmon/gmon.c (__bb_head): Define as hidden.
536 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
538 * argp/argp-parse.c (_argp_hang): Define as static.
540 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
541 handling in latest compilers.
543 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
545 * libio/fileops.c (_IO_file_jumps): Likewise.
546 * libio/stdfiles.c (_IO_list_all): Likewise.
547 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
549 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
551 * include/malloc.h: Add __libc_malloc_initialized declaration
552 here. Mark variable hidden.
553 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
555 * elf/dl-open.c (__libc_argc): Declare as hidden.
556 (__libc_argv): Likewise.
557 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
558 (__libc_argv): Likewise.
559 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
560 __libc_argv as hidden.
561 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
562 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
563 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
564 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
566 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
567 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
568 * stdlib/erand48.c: Likewise.
569 * stdlib/jrand48.c: Likewise.
570 * stdlib/lcong48.c: Likewise.
571 * stdlib/lrand48.c: Likewise.
572 * stdlib/mrand48.c: Likewise.
573 * stdlib/nrand48.c: Likewise.
574 * stdlib/seed48.c: Likewise.
575 * stdlib/srand48.c: Likewise.
577 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
578 (_itoa_lower_digits_internal): New declaration.
579 (_itoa_upper_digits_internal): New declaration.
580 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
581 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
582 (_itoa_upper_digits_internal): New declaration.
583 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
585 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
586 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
588 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
589 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
591 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
592 (_itowa_lower_digits): Likewise.
593 (_itowa_upper_digits): Likewise.
594 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
595 (_itowa_upper_digits): Likewise.
597 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
599 (GERMANIC_PLURAL): Declare as hidden.
601 * posix/getopt.c (__getopt_initialized): Declare as hidden.
602 (attribute_hidden): Define as empty macro if not already defined.
604 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
605 (__gconv_max_path_elem_len): Likewise.
606 (__gconv_path_envvar): Likewise.
608 * math/Makefile (gmp-objs): Remove mp_clz_tab.
609 * stdlib/Makefile (aux): Remove mp_clz_tab.
610 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
612 * stdlib/exit.h (__exit_funcs): Declare as hidden.
614 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
616 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
617 _nl_category_names, _nl_category_name_sizes, _nl_current,
618 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
620 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
621 (_nl_current_default_domain): Likewise
622 (_nl_state_lock): Likewise.
623 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
624 (_nl_current_default_domain): Likewise
625 (_nl_state_lock): Likewise.
626 * intl/bindtextdom.c (_nl_state_lock): Likewise.
628 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
629 (_fpioconst_pow10): Likewise.
631 * include/time.h (_tmbuf): Add attribute_hidden.
633 * time/tzset.c (tzstring_list): Define as static.
635 * include/time.h: Add attribute_hidden to __tzname_cur_max and
636 __use_tzfile declaration.
638 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
639 and __wcsmbs_last_locale declaration.
641 2002-02-25 Paul Eggert <eggert@twinsun.com>
643 * timezone/Makefile (tzbases): Move systemv from here...
644 (tzlinks): to here, since the entries in systemv were all changed
645 from Zone to Link lines in tz-2001a. Bug reported (and patch
646 tested) by Peter Breitenlohner.
648 2002-03-07 Jakub Jelinek <jakub@redhat.com>
650 * time/tst-posixtz.c (tests): Add new tests.
651 (main): Test whether tzset() sets daylight properly.
653 2002-03-06 Jakub Jelinek <jakub@redhat.com>
655 * time/tzset.c (tz_compute): Move __daylight, __tzname and
656 __tzname_cur_max setting...
657 (tzset_internal): ...here.
659 2002-03-06 Jakub Jelinek <jakub@redhat.com>
661 * time/tzset.c (compute_change): Don't return any value.
662 (tz_compute): Likewise. Don't handle southern hemisphere here.
663 (__tz_convert): But here.
665 2002-03-11 Ulrich Drepper <drepper@redhat.com>
667 * manual/examples/mkfsock.c: Include <string.h> as well.
668 Patch by Alain De Carolis <alaind@wseurope.com>.
670 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
672 * posix/regexec.c (re_match): Fix incorrect register sizes.
673 (re_search): Likewise.
675 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
677 * posix/regcomp.c (regfree): Remove a disused condition.
678 * posix/regex_internal.c (re_acquire_state): Likewise.
679 (re_acquire_state_context): Likewise.
680 (register_state): Remove a redundant malloc invocation.
681 * posix/regex_internal.h: (re_state_table_entry): Simplify
684 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
686 * posix/regcomp.c (regcomp): Add __builtin_expect to error
688 (regerror): Likewise.
690 (re_compile_internal): Likewise.
691 (init_dfa): Likewise.
692 (init_word_char): Likewise.
693 (create_initial_state): Likewise.
695 (analyze_tree): Likewise.
696 (duplicate_node): Likewise.
697 (calc_eclosure): Likewise.
698 (calc_eclosure_iter): Likewise.
700 (parse_reg_exp): Likewise.
701 (parse_branch): Likewise.
702 (parse_expression): Likewise.
703 (parse_subexp): Likewise.
704 (parse_dup_op): Likewise.
705 (parse_bracket_exp): Likewise.
706 (build_equiv_class): Likewise.
707 (build_charclass): Likewise.
708 (build_word_op): Likewise.
709 (fetch_number): Likewise.
710 (create_tree): Likewise.
711 (duplicate_tree): Likewise.
712 * posix/regex.c (BE): New macro.
713 * posix/regexec.c (re_match): Add __builtin_expect to error
715 (re_match_2): Likewise.
716 (re_search): Likewise.
717 (re_search_internal): Likewise.
718 (check_matching): Likewise.
719 (proceed_next_node): Likewise.
720 (set_regs): Likewise.
721 (sift_states_backward): Likewise.
722 (add_epsilon_backreference): Likewise.
723 (transit_state): Likewise.
724 (transit_state_sb): Likewise.
725 (transit_state_mb): Likewise.
726 (transit_state_bkref): Likewise.
727 (transit_state_bkref_loop): Likewise.
728 (build_trtable): Likewise.
729 (group_nodes_into_DFAstates): Likewise.
730 (match_ctx_init): Likewise.
731 (match_ctx_add_entry): Likewise.
732 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
733 to error handling conditions.
734 (re_string_construct_toupper): Likewise.
735 (build_wcs_buffer): Likewise.
736 (build_wcs_upper_buffer): Likewise.
737 (build_upper_buffer): Likewise.
738 (re_string_translate_buffer): Likewise.
739 (re_node_set_alloc): Likewise.
740 (re_node_set_init_1): Likewise.
741 (re_node_set_init_2): Likewise.
742 (re_node_set_init_copy): Likewise.
743 (re_node_set_intersect): Likewise.
744 (re_node_set_init_union): Likewise.
745 (re_node_set_merge): Likewise.
746 (re_node_set_insert): Likewise.
747 (re_dfa_add_node): Likewise.
748 (re_acquire_state): Likewise.
749 (re_acquire_state_context): Likewise.
750 (create_new_state_common): Likewise.
751 (register_state): Likewise.
752 (create_ci_new_state): Likewise.
753 (create_cd_new_state): Likewise.
754 (re_string_context_at): Remove redundant condition.
756 2002-01-16 Roger Sayle <roger@eyesopen.com>
758 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
760 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
762 2002-03-11 Jakub Jelinek <jakub@redhat.com>
764 * sysdeps/i386/elf/configure.in: Fix comment.
766 * sysdeps/sparc/sparc64/configure.in: New.
767 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
768 if .dynamic comes before .got.
769 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
771 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
772 HP_TIMING_ACCUM): Fix typos.
774 2002-03-11 Ulrich Drepper <drepper@redhat.com>
776 * string/strfry.c: Add some more randomness to the seed.
777 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
779 * po/es.po: Update from translation team.
780 * po/fr.po: Likewise.
782 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
784 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
785 when determining type of format.
786 Patch by James Antill <james@anqd.org> [PR libc/2787].
788 2002-03-04 Jakub Jelinek <jakub@redhat.com>
790 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
792 2002-03-11 Roland McGrath <roland@frob.com>
794 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
796 * Versions.def (libc): Add GLIBC_2.2.6.
797 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
798 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
799 __errno_location instead of __hurd_errno_location, and don't inline it.
800 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
801 * hurd/errno.c: New file.
802 * hurd/Makefile (routines): Add errno.
804 2002-03-11 Ulrich Drepper <drepper@redhat.com>
806 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
807 ridiculously large widths and precisions [PR libc/3026].
809 2002-03-11 Andreas Jaeger <aj@suse.de>
811 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
813 Patch by Susanne Oberhauser <froh@SuSE.de>.
815 2002-03-11 Ulrich Drepper <drepper@redhat.com>
817 * inet/rexec.c (ahostbuf): Define as static.
819 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
820 (__ctype32_wctrans): Likewise.
821 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
822 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
823 (__ctype32_wctrans): Likewise.
824 (__ctype32_width): Likewise.
826 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
827 They were never exported anyway.
829 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
830 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
832 * include/sys/gmon.h: Declare _gmonparam.
834 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
835 symbols for getdents64. They were never exported.
837 2002-03-09 Roland McGrath <roland@frob.com>
839 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
840 Reported by Jon Arney <jarney1@cox.net>.
842 2002-02-23 Roland McGrath <roland@frob.com>
844 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
846 (__hurd_errno_location): Function removed.
848 2002-03-06 Andreas Jaeger <aj@suse.de>
850 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
853 2002-03-04 Andreas Jaeger <aj@suse.de>
855 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
857 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
860 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
862 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
864 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
866 * sysdeps/x86_64/bits/setjmp.h: New.
868 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
870 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
872 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
874 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
875 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
877 2002-02-28 Bo Thorsen <bo@suse.de>
879 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
882 2002-03-03 Andreas Jaeger <aj@suse.de>
884 * sysdeps/x86_64/bits/wordsize.h: New file.
886 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
887 * elf/tst-tlsmod1.c: Likewise.
889 * posix/regcomp.c: Get regex.h from include dir for internal
892 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
893 to libc-internal.h and include it.
894 * include/libc-internal.h: Add __init_misc.
896 * misc/init-misc.c: Include libc-internal.h for prototypes.
898 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
900 * misc/error.c [_LIBC]: Include libioP.h for prototype of
903 2002-03-03 Ulrich Drepper <drepper@redhat.com>
905 * posix/regcomp.c: Compatibility changes to allow using the code
908 2002-02-28 Hartvig Ekner <hartvige@mips.com>
910 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
913 2002-03-02 Ulrich Drepper <drepper@redhat.com>
915 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
916 of .str elements in the returned data structure.
918 * elf/elf.h: Add Alpha TLS bits.
920 2002-02-28 Jakub Jelinek <jakub@redhat.com>
922 * sysdeps/unix/sysv/linux/nice.c: New file.
924 2002-03-01 Ulrich Drepper <drepper@redhat.com>
926 * elf/Makefile (dl-routines): Add dl-origin.
927 (elide-routines.os): Add dl-origin.
928 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
929 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
931 * include/libc-symbols.c: Define attribute_hidden depending on
932 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
934 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
935 * elf/dl-load.c: Likewise.
936 * elf/rtld.c: Likewise.
937 * include/unistd.h: Declare __libc_enable_secure_internal.
938 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
939 Use INTUSE with __libc_enable_secure.
940 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
942 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
943 * elf/dl-error.c: Likewise,
944 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
946 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
947 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
948 function definition. Use INTDEF with _dl_get_origin.
949 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
951 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
952 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
954 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
955 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
956 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
958 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
959 * elf/dl-deps.c: Likewise.
960 * elf/dl-error.c: Likewise.
961 * elf/dl-fini.c: Likewise.
962 * elf/dl-init.c: Likewise.
963 * elf/dl-load.c: Likewise.
964 * elf/dl-lookup.c: Likewise.
965 * elf/dl-reloc.c: Likewise.
966 * elf/dl-version.c: Likewise.
967 * elf/do-lookup.h: Likewise.
968 * sysdeps/arm/dl-machine.h: Likewise.
969 * sysdeps/cris/dl-machine.h: Likewise.
970 * sysdeps/hppa/dl-machine.h: Likewise.
971 * sysdeps/i386/dl-machine.h: Likewise.
972 * sysdeps/m68k/dl-machine.h: Likewise.
973 * sysdeps/powerpc/dl-machine.h: Likewise.
974 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
975 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
976 * sysdeps/sh/dl-machine.h: Likewise.
977 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
978 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
979 * sysdeps/x86_64/dl-machine.h: Likewise.
980 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
981 _dl_argv[0]. Use INTUSE with _dl_argv.
982 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
983 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
985 2002-02-28 Jakub Jelinek <jakub@redhat.com>
987 * elf/rtld.c (_rtld_global): Remove .protected.
988 (_rtld_local): Strong alias to _rtld_global.
989 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
991 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
992 _rtld_local instead of _rtld_global.
993 (_rtld_local): Add hidden extern, possibly in .sdata section.
994 * configure.in: Add tests for visibility attribute and .sdata.
995 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
996 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
997 * sysdeps/arm/dl-machine.h: Likewise.
998 * sysdeps/generic/ldsodefs.h: Likewise.
999 * sysdeps/hppa/dl-machine.h: Likewise.
1000 * sysdeps/cris/dl-machine.h: Likewise.
1001 * sysdeps/i386/dl-machine.h: Likewise.
1002 * sysdeps/ia64/dl-machine.h: Likewise.
1003 * sysdeps/m68k/dl-machine.h: Likewise.
1004 * sysdeps/mips/mips64/dl-machine.h: Likewise.
1005 * sysdeps/mips/dl-machine.h: Likewise.
1006 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1007 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1008 * sysdeps/sh/dl-machine.h: Likewise.
1009 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1010 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1011 * sysdeps/x86_64/dl-machine.h: Likewise.
1013 2002-02-28 Ulrich Drepper <drepper@redhat.com>
1015 * login/login.c (login): Always initialize ut_line field
1018 2002-02-28 Jakub Jelinek <jakub@redhat.com>
1020 * sysdeps/i386/Makefile (sysdep_routines): Add
1022 (shared-only-routines): Likewise.
1023 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
1024 (shared-only-routines): Likewise.
1025 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
1026 (shared-only-routines): Likewise.
1027 * sysdeps/wordsize-32/divdi3.c: New file.
1029 2002-02-28 Ulrich Drepper <drepper@redhat.com>
1031 * locale/iso-4217.def: Remove obsolete currencies for countries
1034 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
1036 * posix/regcomp.c (regcomp): Remove a redundant condition.
1037 (init_word_char): Add a check on malloc failure.
1038 (create_initial_state): Likewise.
1039 (duplicate_node): Likewise.
1040 (calc_eclosure): Likewise.
1041 (calc_eclosure_iter): Likewise.
1042 (parse_expression): Likewise.
1043 (parse_bracket_exp): Remove unnecessary malloc invocations.
1044 (build_equiv_class): Likewise.
1045 (build_charclass): Likewise.
1046 * posix/regex_internal.c (re_node_set_intersect): Add a check
1048 (re_node_set_add_intersect): Likewise.
1049 (re_node_set_merge): Likewise.
1050 (re_acquire_state): Likewise.
1051 (re_acquire_state_context): Likewise.
1052 (create_newstate_common): Likewise.
1053 (register_state): Likewise.
1054 (create_ci_newstate): Likewise.
1055 (create_cd_newstate): Likewise.
1056 * posix/regex_internal.h: Fix prototypes of re_acquire_state
1057 and re_acquire_state_context.
1058 * posix/regexec.c (regexec): Suit it to the error handling of
1060 (re_match): Likewise.
1061 (re_search): Likewise.
1062 (re_search_internal): Add a check on malloc failure.
1063 (acquire_init_state_context): Likewise.
1064 (check_matching): Likewise.
1065 (proceed_next_node): Likewise.
1066 (set_regs): Likewise.
1067 (sift_states_backward): Likewise.
1068 (sift_states_iter_bkref): Likewise.
1069 (add_epsilon_backreference): Likewise.
1070 (transit_state): Likewise.
1071 (transit_state_sb): Likewise.
1072 (transit_state_mb): Likewise.
1073 (transit_state_bkref_loop): Likewise.
1074 (build_trtable): Likewise.
1075 (group_nodes_into_DFAstates): Likewise.
1076 (match_ctx_init): Likewise.
1077 (match_ctx_add_entry): Likewise.
1079 2002-02-27 Ulrich Drepper <drepper@redhat.com>
1081 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
1082 l_libname if profiling is enabled [PR libc/2916].
1084 * sysdeps/ia64/dl-tls.h: New file.
1086 2002-02-27 Jakub Jelinek <jakub@redhat.com>
1088 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
1089 Work around an Alpha gas bug.
1091 2002-02-27 Ulrich Drepper <drepper@redhat.com>
1093 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
1094 uses read to load the catalog.
1095 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
1097 2002-02-26 Ulrich Drepper <drepper@redhat.com>
1099 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
1100 regex_internal.c, and regex_internal.h.
1101 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
1102 * posix/regex.c: Complete rewrite.
1103 * posix/regexec.c: New file.
1104 * posix/regcomp.c: New file.
1105 * posix/regex_internal.c: New file.
1106 * posix/regex_internal.h: New file.
1107 * posix/regex.h (RE_ICASE): New macro.
1108 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
1110 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
1111 ungetwc. It's a macro.
1112 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
1114 Reported by Jason Merrill <jason@redhat.com>.
1116 2002-02-25 Jakub Jelinek <jakub@redhat.com>
1118 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
1119 position to fp->_offset if it is set.
1120 * stdio-common/Makefile (tests): Add tst-fdopen.
1121 * stdio-common/tst-fdopen.c: New test.
1123 2002-02-25 Jakub Jelinek <jakub@redhat.com>
1125 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
1126 * stdio-common/tst-ungetc.c (main): Add another test.
1128 2002-02-25 Ulrich Drepper <drepper@redhat.com>
1130 * assert/assert-perr.c: Use INTUSE to reference functions and variables
1131 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
1132 aliases. Add prototypes for the new aliases.
1133 * assert/assert.c: Likewise.
1134 * include/libc-symbols.h: Likewise.
1135 * include/stdio.h: Likewise.
1136 * include/netinet/in.h: Likewise.
1137 * include/rpc/auth.h: Likewise.
1138 * include/rpc/auth_unix.h: Likewise.
1139 * include/rpc/key_prot.h: Likewise.
1140 * include/rpc/pmap_prot.h: Likewise.
1141 * include/rpc/pmap_rmt.h: Likewise.
1142 * include/rpc/rpc_msg.h: Likewise.
1143 * include/rpc/xdr.h: Likewise.
1144 * inet/gethstbyad_r.c: Likewise.
1145 * inet/gethstbynm2_r.c: Likewise.
1146 * inet/gethstbynm_r.c: Likewise.
1147 * inet/gethstent_r.c: Likewise.
1148 * inet/in6_addr.c: Likewise.
1149 * libio/__fpurge.c: Likewise.
1150 * libio/filedoalloc.c: Likewise.
1151 * libio/fileops.c: Likewise.
1152 * libio/ftello.c: Likewise.
1153 * libio/ftello64.c: Likewise.
1154 * libio/genops.c: Likewise.
1155 * libio/iofclose.c: Likewise.
1156 * libio/iofdopen.c: Likewise.
1157 * libio/iofflush.c: Likewise.
1158 * libio/iofflush_u.c: Likewise.
1159 * libio/iofgetpos.c: Likewise.
1160 * libio/iofgetpos64.c: Likewise.
1161 * libio/iofgets.c: Likewise.
1162 * libio/iofgets_u.c: Likewise.
1163 * libio/iofopen.c: Likewise.
1164 * libio/iofopncook.c: Likewise.
1165 * libio/iofputs.c: Likewise.
1166 * libio/iofread.c: Likewise.
1167 * libio/iofread_u.c: Likewise.
1168 * libio/iofsetpos.c: Likewise.
1169 * libio/iofsetpos64.c: Likewise.
1170 * libio/ioftell.c: Likewise.
1171 * libio/iofwrite.c: Likewise.
1172 * libio/iogetline.c: Likewise.
1173 * libio/iogets.c: Likewise.
1174 * libio/iogetwline.c: Likewise.
1175 * libio/iolibio.h: Likewise.
1176 * libio/iopadn.c: Likewise.
1177 * libio/iopopen.c: Likewise.
1178 * libio/ioseekoff.c: Likewise.
1179 * libio/ioseekpos.c: Likewise.
1180 * libio/iosetbuffer.c: Likewise.
1181 * libio/iosetvbuf.c: Likewise.
1182 * libio/ioungetc.c: Likewise.
1183 * libio/ioungetwc.c: Likewise.
1184 * libio/iovdprintf.c: Likewise.
1185 * libio/iovsprintf.c: Likewise.
1186 * libio/iovsscanf.c: Likewise.
1187 * libio/libioP.h: Likewise.
1188 * libio/memstream.c: Likewise.
1189 * libio/obprintf.c: Likewise.
1190 * libio/oldfileops.c: Likewise.
1191 * libio/oldiofclose.c: Likewise.
1192 * libio/oldiofdopen.c: Likewise.
1193 * libio/oldiofgetpos.c: Likewise.
1194 * libio/oldiofgetpos64.c: Likewise.
1195 * libio/oldiofopen.c: Likewise.
1196 * libio/oldiofsetpos.c: Likewise.
1197 * libio/oldiofsetpos64.c: Likewise.
1198 * libio/oldiopopen.c: Likewise.
1199 * libio/oldstdfiles.c: Likewise.
1200 * libio/putc.c: Likewise.
1201 * libio/setbuf.c: Likewise.
1202 * libio/setlinebuf.c: Likewise.
1203 * libio/stdfiles.c: Likewise.
1204 * libio/stdio.c: Likewise.
1205 * libio/strops.c: Likewise.
1206 * libio/vasprintf.c: Likewise.
1207 * libio/vscanf.c: Likewise.
1208 * libio/vsnprintf.c: Likewise.
1209 * libio/vswprintf.c: Likewise.
1210 * libio/wfiledoalloc.c: Likewise.
1211 * libio/wfileops.c: Likewise.
1212 * libio/wgenops.c: Likewise.
1213 * libio/wstrops.c: Likewise.
1214 * malloc/mtrace.c: Likewise.
1215 * misc/error.c: Likewise.
1216 * misc/syslog.c: Likewise.
1217 * nss/getXXbyYY_r.c: Likewise.
1218 * nss/getXXent_r.c: Likewise.
1219 * nss/hosts-lookup.c: Likewise.
1220 * stdio-common/getw.c
1221 * stdio-common/printf-prs.c: Likewise.
1222 * stdio-common/printf_fp.c: Likewise.
1223 * stdio-common/printf_size.c: Likewise.
1224 * stdio-common/putw.c: Likewise.
1225 * stdio-common/scanf.c: Likewise.
1226 * stdio-common/sprintf.c: Likewise.
1227 * stdio-common/tmpfile64.c: Likewise.
1228 * stdio-common/vfprintf.c: Likewise.
1229 * stdio-common/vfscanf.c: Likewise.
1230 * stdlib/strfmon.c: Likewise.
1231 * sunrpc/auth_des.c: Likewise.
1232 * sunrpc/auth_none.c: Likewise.
1233 * sunrpc/auth_unix.c: Likewise.
1234 * sunrpc/authdes_prot.c: Likewise.
1235 * sunrpc/authuxprot.c: Likewise.
1236 * sunrpc/clnt_perr.c: Likewise.
1237 * sunrpc/clnt_raw.c: Likewise.
1238 * sunrpc/clnt_tcp.c: Likewise.
1239 * sunrpc/clnt_udp.c: Likewise.
1240 * sunrpc/clnt_unix.c: Likewise.
1241 * sunrpc/key_call.c: Likewise.
1242 * sunrpc/key_prot.c: Likewise.
1243 * sunrpc/openchild.c: Likewise.
1244 * sunrpc/pm_getmaps.c: Likewise.
1245 * sunrpc/pm_getport.c: Likewise.
1246 * sunrpc/pmap_clnt.c: Likewise.
1247 * sunrpc/pmap_prot.c: Likewise.
1248 * sunrpc/pmap_prot2.c: Likewise.
1249 * sunrpc/pmap_rmt.c: Likewise.
1250 * sunrpc/rpc_cmsg.c: Likewise.
1251 * sunrpc/rpc_prot.c: Likewise.
1252 * sunrpc/svc_authux.c: Likewise.
1253 * sunrpc/svc_raw.c: Likewise.
1254 * sunrpc/svc_simple.c: Likewise.
1255 * sunrpc/svc_tcp.c: Likewise.
1256 * sunrpc/svc_udp.c: Likewise.
1257 * sunrpc/svc_unix.c: Likewise.
1258 * sunrpc/xdr.c: Likewise.
1259 * sunrpc/xdr_array.c: Likewise.
1260 * sunrpc/xdr_mem.c: Likewise.
1261 * sunrpc/xdr_rec.c: Likewise.
1262 * sunrpc/xdr_ref.c: Likewise.
1263 * sunrpc/xdr_stdio.c: Likewise.
1264 * sysdeps/generic/_strerror.c: Likewise.
1265 * sysdeps/generic/printf_fphex.c: Likewise.
1266 * sysdeps/generic/tmpfile.c: Likewise.
1267 * sysdeps/gnu/errlist.awk: Likewise.
1268 * sysdeps/gnu/errlist.c: Likewise.
1270 * libio/Makefile (routines): Remove iosprint.
1271 * libio/iosprintf.c: Removed
1274 2002-02-24 Ulrich Drepper <drepper@redhat.com>
1276 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
1277 non_dynamic_init and exported now.
1278 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
1279 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
1281 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1282 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1283 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1285 2002-02-23 Ulrich Drepper <drepper@redhat.com>
1287 * elf/dl-close.c (free_slotinfo): Check for end of list and return
1290 * locale/iso-639.def: Add language codes for Walloon.
1292 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
1293 total number of relocations performed.
1295 * elf/sprof.c (load_profdata): If do_test provide information as
1296 to why loading failed.
1297 * elf/dl-profile.c (_dl_start_profile): Initialize all of
1300 * csu/set-init.c: Moved to...
1301 * sysdeps/mach/hurd/set-init.c: ...here. New file.
1302 * csu/Makefile: Don't compile set-init.
1303 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
1304 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
1306 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1307 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1308 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
1310 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
1313 2002-02-22 Ulrich Drepper <drepper@redhat.com>
1315 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
1316 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
1317 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
1318 (_dl_deallocate_tls): New function.
1319 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
1322 2002-02-21 Jakub Jelinek <jakub@redhat.com>
1324 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
1325 * stdio-common/tst-fseek.c (main): Add test for this.
1327 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
1329 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
1331 2002-02-19 Jakub Jelinek <jakub@redhat.com>
1333 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
1334 pointer before dereferencing.
1336 2002-02-18 Roland McGrath <roland@frob.com>
1338 * sysdeps/mach/hurd/times.c: Fix typo in last change.
1340 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
1341 Use task_policy in place of task_priority.
1343 * sysdeps/generic/bits/mman.h
1344 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
1345 * sysdeps/mach/msync.c: New file.
1347 * sysdeps/mach/powerpc/syscall.S: New file.
1349 * mach/msg.c [MACH_MSG_OVERWRITE]
1350 (__mach_msg_trap, __mach_msg_overwrite): New functions.
1351 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
1353 * sysdeps/mach/configure.in: Check for clock.defs to put into
1354 mach_interface_list.
1355 * sysdeps/mach/configure: Regenerated.
1357 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
1358 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
1359 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
1360 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
1361 (mach-shortcuts): Add device_read_overwrite_request,
1362 device_read_overwrite, vm_read_overwrite, thread_switch.
1364 * configure.in (base_machine): Set to $machine by default.
1365 * configure: Regenerated.
1367 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
1368 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
1369 * sysdeps/mach/configure: Regenerated.
1370 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
1372 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
1374 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
1376 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
1377 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
1379 2002-02-17 Roland McGrath <roland@frob.com>
1381 * sysdeps/mach/hurd/times.c
1382 [NO_CREATION_TIME] (startup_time): New static variable.
1383 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
1384 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
1385 creation_time from task_basic_info.
1386 (__times): Use __gettimeofday instead of __host_get_time.
1388 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
1389 Use untyped Mach IPC message format.
1391 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
1393 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
1394 _S_catch_exception_raise_state_identity,
1395 _hurdsig_fault_catch_exception_raise_state,
1396 _hurdsig_fault_catch_exception_raise_state_identity.
1398 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
1400 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
1401 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
1403 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
1404 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
1406 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
1407 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
1408 them as no-op macros.
1409 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
1410 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
1412 * sysdeps/powerpc/dl-machine.h
1413 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
1415 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
1416 Use untyped Mach IPC message format.
1418 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
1419 Handle untyped Mach IPC message formats.
1421 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
1422 Expect different argument conventions when this is defined.
1423 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
1424 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
1425 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
1426 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
1427 for OSF Mach variant.
1428 (faulted): Use mig_reply_error_t for REPLY.
1429 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
1430 in __thread_set_exception_ports call.
1431 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
1432 __mach_port_set_attributes in place of __mach_port_set_qlimit.
1434 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
1435 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
1436 on Darwin, which includes bogons.
1438 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
1439 variable LOADBASE so it's not declared when it's not used.
1441 2002-02-16 Roland McGrath <roland@frob.com>
1443 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
1444 to use BI.creation_time.
1446 * mach/Machrules (MIG): Add -x c to CPP value passed down.
1448 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
1449 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
1450 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
1451 host_page_size instead of vm_statistics.
1453 * sysdeps/mach/Makefile (mach-before-compile): Don't include
1454 mach_interface.h here, since not all variants use that name.
1456 * sysdeps/mach/configure.in: Add some checks for Mach headers
1457 to ensure a sane installation.
1458 (mach_interface_list): Define this variable by checking for .defs
1459 files found in various variants.
1460 * configure.in (mach_interface_list): AC_SUBST this.
1461 * config.make.in (mach-interface-list): New substituted variable.
1462 * mach/Makefile (user-interfaces): Define this using the value
1463 of $(mach-interface-list) instead of mach, mach4.
1464 Updated other references to mach_interface to use it as well.
1466 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
1468 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
1469 mig_reply_error_t for OSF Mach variant.
1471 * mach/Makefile (routines): Remove bootprivport.
1472 * mach/bootprivport.c: File removed. It has never been used.
1474 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
1475 Grok the OSF flavor of message format.
1476 (mach_msg_destroy_port): For MAKE_SEND and
1477 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
1478 no-senders notification.
1480 2002-02-06 Roland McGrath <roland@frob.com>
1482 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
1483 to here if 2.0 compatibility enabled ...
1484 (libc: GLIBC_2.1.3): ... from here.
1486 2002-02-15 Ulrich Drepper <drepper@redhat.com>
1488 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
1490 * elf/dl-close.c (_dl_close): Likewise.
1492 2002-02-14 Ulrich Drepper <drepper@redhat.com>
1494 * elf/Makefile: Add rules to build and run tst-tls8.
1495 * elf/tst-tls8.c: New file.
1496 * elf/tst-tlsmod4.c: New file.
1498 * stdlib/test-a64l.c (tests): Add more test cases.
1500 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
1501 Reported by Walter Harms <WHarms@bfs.de>.
1503 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
1505 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
1506 definitions for struct sigcontext.
1507 Suggested by David Mosberger-Tang.
1509 2002-02-13 Ulrich Drepper <drepper@redhat.com>
1511 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
1512 for removing reference of module in slotinfo list.
1513 (_dl_close): Use remove_slotinfo.
1514 * sysdeps/generic/dl-tls.c: General pretty printing.
1515 (oom): Define only if SHARED.
1516 (_dl_next_tls_modid): Correct starting point for the case we assume
1517 there is a gap. Add missing instruction grouping (doh!). Correct
1518 tests for reaching maximum index.
1519 * elf/Makefile: Add rules to build and run tst-tls7.
1520 * elf/tst-tls7.c: New file.
1521 * elf/tst-tlsmod3.c: New file.
1523 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
1525 * elf/tst-tlsmod2.c: Likewise.
1527 * elf/dl-close.c (_dl_close): When closing an object using TLS
1528 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
1529 true. Increment dl_tls_generation only if we closed any TLS-using
1531 * elf/tst-tls6.c: New file.
1532 * elf/Makefile: Add rules to build and run tst-tls6.
1534 * po/da.po: Update from translation team.
1536 * locale/categories.def: Fix typo [PR libc/2948].
1537 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
1539 * locale/iso-4217.def: Update from official version [PR libc/2950].
1540 * glibcbug.in: Honor TMPDIR [PR libc/2951].
1541 * locale/programs/ld-collate.c (collate_finish): Bail out with a
1542 message if input is too confusion instead of using assert.
1543 (collate_read): Don't crash on unknown symbol [PR libc/2952].
1544 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
1546 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
1547 * elf/tst-tls2.c: Likewise.
1548 * elf/tst-tls3.c: Likewise.
1550 2002-02-13 Jakub Jelinek <jakub@redhat.com>
1552 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
1554 2002-02-13 Ulrich Drepper <drepper@redhat.com>
1556 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
1557 if this is really necessary.
1559 * elf/dl-close.c (_dl_close): Implement freeing entries in the
1561 (free_mem): Free memory for the slotinfo array if possible.
1563 2002-02-12 Andreas Schwab <schwab@suse.de>
1565 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
1567 2002-02-12 Ulrich Drepper <drepper@redhat.com>
1569 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
1571 (oom): New function.
1572 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
1573 (_dl_determine_tlsoffset): Likewise.
1574 (_dl_allocate_tls): Likewise.
1575 (__TLS_GET_ADDR): Define if not already defined.
1576 (_dl_tls_symaddr): New function.
1577 (allocate_and_init): New function.
1578 (__tls_get_addr): Actually implement handling of generation counter
1579 and deferred allocation.
1580 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
1581 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
1583 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
1584 Declare _dl_tls_symaddr.
1585 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
1587 * include/link.h (struct link_map): Remove l_tls_nextimage and
1589 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
1590 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
1591 (_dl_vsym): Likewise.
1592 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
1594 (dl_main): Allow PT_TLS be present for empty segment. Remove
1595 nextimage list handling. Instead add all modules using TLS to
1596 dl_tls_dtv_slotinfo_list.
1597 * elf/dl-open.c (dl_open_worker): After successfully loading all
1598 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
1599 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
1600 empty segment don't do anything. Remove handling of initimage list.
1601 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
1602 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
1603 * elf/dl-minimal.c: Define __libc_memalign.
1604 * elf/dl-support.c: Remove _dl_initimage_list. Add
1605 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
1607 * include/stdlib.h: Declare __libc_memalign.
1609 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
1610 * elf/tst-tls4.c: New file.
1611 * elf/tst-tls5.c: New file.
1612 * elf/tst-tlsmod2.c: New file.
1614 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
1616 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
1618 * elf/tst-tls1.c: Use test-skeleton.c.
1619 * elf/tst-tls2.c: Likewise.
1620 * elf/tst-tls3.c: Likewise.
1622 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
1624 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
1626 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
1628 2002-02-10 Ulrich Drepper <drepper@redhat.com>
1630 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
1632 * elf/tst-tls3.c: New file.
1633 * elf/tst-tlsmod1.c: New file.
1634 * elf/Makefile: Add rules to build and run tst-tls3.
1636 * sysdeps/i386/dl-machine.h: Include <tls.h>.
1637 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
1640 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
1642 * po/fr.po: Update from translation team.
1644 * elf/tls-macros.h: Add alternative macros for use in PIC.
1646 * elf/dl-lookup.c: Include <tls.h>.
1647 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
1649 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
1650 required by passing pointer to last element of the list.
1652 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
1653 l_tls_initimage to a place where it actually is performed.
1655 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
1656 after globfree() calls.
1658 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
1659 (openaux): Pass open_mode as new last argument to _dl_map_object.
1660 (_dl_map_object_deps): Add new argument open_mode. Initialize
1661 open_mode element of args variable with it.
1662 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
1663 _dl_map_object_deps.
1664 * elf/rtld.c (dl_main): Add zero as last parameter to
1665 _dl_map_object_deps call.
1666 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
1667 * elf/nodlopen2.c: New file.
1668 * elf/nodlopenmod2.c: New file.
1669 * elf/Makefile: Add rules to build and run nodlopen2.
1671 * elf/tst-tls1.c: Move TLS helper macros to...
1672 * elf/tls-macros.h: ...here. New file.
1673 * elf/tst-tls2.c: New file.
1674 * elf/Makefile (tests): Add tst-tls2.
1675 (distribute): Add tls-macros.h.
1677 * po/sv.po: Update from translation team.
1679 * elf/tst-tls1.c (main): Add complete set of tests. Split
1680 architecture specific definitions from the actual test code.
1682 * po/tr.po: Update from translation team.
1684 2002-02-09 Ulrich Drepper <drepper@redhat.com>
1686 * elf/Makefile (tests): Add tst-tls1.
1687 * elf/tst-tls1.c: New file.
1689 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
1690 alignment of TCB for now.
1692 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
1693 initialization image for the application itself.
1695 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
1696 loop to initialize TLS block.
1698 2002-02-08 Richard Henderson <rth@redhat.com>
1700 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
1701 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
1703 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
1705 2002-02-09 Jakub Jelinek <jakub@redhat.com>
1707 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
1709 2002-02-08 Ulrich Drepper <drepper@redhat.com>
1711 * po/ca.po: Update from translation team.
1712 * po/sk.po: Likewise.
1714 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
1715 (dl_main): Move dtv/static TLS handling before relocation.
1716 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
1717 TLS_INIT_TP to allocate and install the dtv/static TLS block.
1718 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
1719 so far uses TLS initialize GL(dl_tls_static_size) and
1720 GL(dl_tls_static_align) to account for the TCB.
1721 (_dl_allocate_tls): New function.
1722 * sysdeps/generic/ldsodefs.h (rtld_global): Add
1723 _dl_initial_dtv_malloced.
1725 * configure.in: Test for __builtin_memset more realistically.
1727 * csu/version.c (banner): If TLS support is available say so.
1729 2002-02-04 H.J. Lu <hjl@gnu.org>
1731 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
1733 (__dl_runtime_resolve): Likewise.
1735 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
1738 2001-11-15 H.J. Lu <hjl@gnu.org>
1740 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
1741 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
1743 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
1745 2002-02-07 H.J. Lu <hjl@gnu.org>
1747 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
1749 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
1752 2002-02-07 Ulrich Drepper <drepper@redhat.com>
1754 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
1756 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
1757 ___tls_get_addr_internal.
1758 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
1760 * po/ko.po: Update from translation team.
1762 2002-02-07 Jakub Jelinek <jakub@redhat.com>
1764 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
1765 attribute, change __pad{1,2} type to unsigned int.
1766 (struct stat64): Remove packed attribute.
1768 2002-02-07 Ulrich Drepper <drepper@redhat.com>
1770 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
1772 2002-02-07 Andreas Schwab <schwab@suse.de>
1774 * configure.in: Fix check for -zcombreloc.
1776 2002-02-06 H.J. Lu <hjl@gnu.org>
1778 * config.h.in (HAVE_BUILTIN_MEMSET): New.
1779 * configure.in: Check if __builtin_memset really works.
1780 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
1781 __GNUC_PREREQ (2, 96) before using __builtin_memset.
1783 2002-02-06 Jakub Jelinek <jakub@redhat.com>
1785 * io/bug-ftw3.c (main): Don't try the test if root.
1787 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1789 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
1791 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
1792 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
1793 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
1795 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
1796 a weak alias for __clone.
1797 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
1798 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
1799 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
1800 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
1801 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
1802 a weak alias for __mmap64.
1804 2002-02-05 H.J. Lu <hjl@gnu.org>
1806 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
1807 (atomic_add): Likewise.
1808 (compare_and_swap): Likewise.
1809 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
1811 2002-02-07 Ulrich Drepper <drepper@redhat.com>
1813 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
1815 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
1816 alignment of the TCB and store total size and alignment of static
1817 TLS block in _dl_tls_static_size and _dl_tls_static_align.
1818 tls_index is a typedef.
1819 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
1820 _dl_tls_static_align.
1821 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
1822 * elf/dl-support.c: Define _dl_tls_static_size and
1823 _dl_tls_static_align.
1825 2002-02-06 Ulrich Drepper <drepper@redhat.com>
1827 * configure.in: Add --without-tls option.
1828 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
1829 --without-tls is given.
1831 * sysdeps/generic/dl-tls.c: Include <tls.h>.
1833 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
1835 2002-02-06 Roland McGrath <roland@frob.com>
1837 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
1838 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
1840 * scripts/versions.awk: Improve error message for missing version.
1841 Each version inherits from the last one only if they have the same
1842 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
1843 but not GLIBC_x and FOO_y.
1845 * scripts/firstversions.awk: Handle libraries that don't have each
1846 particular version named in the third column of shlib-versions.
1848 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
1850 2002-02-06 Ulrich Drepper <drepper@redhat.com>
1852 * Versions.def [ld]: Add GLIBC_2.3.
1853 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
1854 * elf/Makefile (dl-routines): Add dl-tls.
1855 (distribute): Add dl-tls.h.
1856 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
1857 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
1858 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
1859 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
1860 along with the other info in the link map. Change queueing of init
1861 images for double linked list. Use _dl_next_tls_modid to compute
1863 * elf/rtld.c (_dl_start_final): Store alignment requirement
1864 along with the other info in rtld map and executable map.
1865 (dl_main): Add ld.so to the init image list if necessary. Compute
1866 final module ID with _dl_next_tls_modid.
1867 * include/link.h (struct link_map): Add l_tls_previmage and
1869 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
1870 * sysdeps/i386/elf/Versions: New file.
1871 * sysdeps/generic/dl-tls.c: New file.
1872 * sysdeps/generic/dl-tls.h: New file.
1873 * sysdeps/i386/dl-tls.h: New file.
1875 2002-02-06 Roland McGrath <roland@frob.com>
1877 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
1878 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
1880 2002-01-05 Roland McGrath <roland@frob.com>
1882 * sysdeps/mach/configure.in: New file.
1883 * sysdeps/mach/configure: New generated file.
1885 * mach/Makefile (user-interfaces): Remove default_pager_helper.
1886 It has never been used by anything.
1888 2002-02-06 H.J. Lu <hjl@gnu.org>
1890 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
1893 2002-02-06 Ulrich Drepper <drepper@redhat.com>
1895 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
1896 attribute((packed)) to counter stupid people misusing gcc options.
1897 (struct stat64): Likewise.
1899 2002-02-05 Ulrich Drepper <drepper@redhat.com>
1901 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
1902 the variables which are used as booleans.
1904 2002-02-06 Andreas Jaeger <aj@suse.de>
1906 * include/libc-symbols.h (INTUSE): Renamed from INT.
1907 * elf/dl-deps.c: Change users.
1908 * sysdeps/generic/dl-sysdep.c: Likewise.
1909 * sysdeps/generic/dl-cache.c: Likewise.
1910 * elf/dl-reloc.c: Likewise.
1911 * elf/rtld.c: Likewise.
1912 * elf/dl-version.c: Likewise.
1913 * elf/dl-load.c: Likewise.
1914 * elf/dl-dst.h: Likewise.
1915 * elf/dl-init.c: Likewise.
1916 * elf/dl-error.c: Likewise.
1917 * elf/dl-fini.c: Likewise.
1918 * elf/dl-runtime.c: Likewise.
1919 * elf/do-lookup.h: Likewise.
1921 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
1923 * stdio-common/_itowa.h: Likewise.
1925 2002-02-05 Ulrich Drepper <drepper@redhat.com>
1927 * elf/dl-minimal.c: Define _itoa_lower_digits.
1929 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
1932 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
1933 loading modules with the DF_STATIC_TLS flag set.
1934 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
1936 * include/link.h (struct link_map): Add l_flags field.
1937 * elf/elf.h (DF_STATIC_TLS): New definition.
1939 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
1940 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
1942 * elf/rtld.c (process_dl_debug): Correct printing help message.
1943 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
1946 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
1947 definition and pass &errno in use of this variable.
1948 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
1950 2002-02-04 Andreas Schwab <schwab@suse.de>
1952 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
1953 * locale/programs/charmap-dir.c: Wrap calls that output messages
1954 with WITH_CUR_LOCALE. Include "localedef.h" first.
1955 * locale/programs/charmap.c: Likewise.
1956 * locale/programs/ld-address.c: Likewise.
1957 * locale/programs/ld-collate.c: Likewise.
1958 * locale/programs/ld-ctype.c: Likewise.
1959 * locale/programs/ld-identification.c: Likewise.
1960 * locale/programs/ld-measurement.c: Likewise.
1961 * locale/programs/ld-messages.c: Likewise.
1962 * locale/programs/ld-monetary.c: Likewise.
1963 * locale/programs/ld-name.c: Likewise.
1964 * locale/programs/ld-numeric.c: Likewise.
1965 * locale/programs/ld-paper.c: Likewise.
1966 * locale/programs/ld-telephone.c: Likewise.
1967 * locale/programs/ld-time.c: Likewise.
1968 * locale/programs/linereader.c: Likewise.
1969 * locale/programs/linereader.h: Likewise.
1970 * locale/programs/localedef.c: Likewise.
1971 * locale/programs/locfile.c: Likewise.
1972 * locale/programs/repertoire.c: Likewise.
1974 2002-02-05 Ulrich Drepper <drepper@redhat.com>
1976 * elf/rtld.c (_dl_start_final): Determine load address to locate
1977 ehdr with GL(dl_rtld_map).l_map_start.
1979 * po/ca.po: Update from translation team.
1981 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
1982 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
1984 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
1986 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
1988 2002-02-04 Ulrich Drepper <drepper@redhat.com>
1990 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
1991 * include/link.h (struct link_map): Add various members for TLS
1993 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
1994 _rtld_tlsoffset, add _dl_initimage_list.
1995 * sysdeps/i386/dl-lookupcfg.h: New file.
1996 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
1997 TLS relocation. When using TLS we now use RESOLVE_MAP.
1998 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
2001 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
2004 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
2005 thread-pointer as soon as possible.
2006 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
2007 elements in rtld_global.
2008 * sysdeps/generic/tls.h: New file.
2009 * elf/Makefile (distribute): Add tls.h.
2010 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
2011 relocations. Not complete yet.
2013 * resolv/resolv.h: Allow user to define __need_res_state and only
2014 define __res_start structure then.
2015 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
2017 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
2018 dl_cpuclock_offset initialization to _dl_start_final.
2019 (_dl_show_auxv): Avoid unnecessary sign extension.
2020 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
2022 2002-02-03 Ulrich Drepper <drepper@redhat.com>
2024 * config.h.in: Add HAVE_TLS_SUPPORT.
2025 * sysdeps/i386/elf/configure.in: New file.
2027 2002-02-03 Andreas Schwab <schwab@suse.de>
2029 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
2030 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
2032 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
2034 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
2035 alloca if the memory reqirements are too high.
2037 2002-02-03 Ulrich Drepper <drepper@redhat.com>
2039 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
2040 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
2041 the former is available anyway and speed isn't important here.
2042 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2043 * elf/dl-version.c (match_symbol): Likewise.
2044 (_dl_check_map_versions): Likewise.
2045 * elf/rtld.c (process_envvars): Likewise.
2046 (print_statistics): Likewise.
2047 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
2048 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
2049 bases. Add assert to catch uses of unimplemented features.
2050 (__strsep): Add assert to catch uses of unimplemented features.
2051 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
2052 and avoid inline optimization.
2053 * elf/rtld.c (process_envvars): Likewise.
2054 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
2055 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
2056 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
2058 2002-02-02 Ulrich Drepper <drepper@redhat.com>
2060 * stdio-common/_itoa.h: Minor simplifications of the code.
2061 * stdio-common/_itoa.c: Likewise.
2063 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
2064 instead of _dl_printf for debugging info output.
2066 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
2067 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
2069 2002-02-01 H.J. Lu <hjl@gnu.org>
2071 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
2072 (atomic_add): Likewise.
2073 (compare_and_swap): Return 0 only when failed to compare. Use
2076 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
2079 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
2081 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
2083 2002-02-02 Ulrich Drepper <drepper@redhat.com>
2085 * elf/dl-minimal.c (__strsep): New minimal implementation.
2087 2002-02-02 Paul Eggert <eggert@twinsun.com>
2089 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
2090 (__mktime_internal): If no tm_isdst is requested, prefer solutions
2091 with tm_isdst > 0 when the requested time falls within a
2092 spring-forward gap [PR libc/2894].
2094 2002-02-03 Andreas Schwab <schwab@suse.de>
2096 * stdio-common/tst-rndseek.c: Increase timeout.
2098 2002-02-02 Ulrich Drepper <drepper@redhat.com>
2100 Change ld.so to not use functions which are exported. One cannot
2101 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
2103 * include/libc-symbols.h: Define INT and INTDEF.
2104 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
2105 _dl_signal_error_internal, _dl_map_object_internal,
2106 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
2107 _dl_lookup_versioned_symbol_internal,
2108 _dl_relocate_object_internal, _dl_debug_state_internal,
2109 _dl_start_profile_internal, and _dl_unload_cache_internal.
2110 * include/dlfcn.h: Declare _dl_catch_error_internal.
2111 * elf/rtld.c: Use INT for calls to any of the *_internal functions
2112 above. Add INTDEF to function definitions.
2113 * elf/dl-debug.c: Likewise.
2114 * elf/dl-deps.c: Likewise.
2115 * elf/dl-dst.h: Likewise.
2116 * elf/dl-error.c: Likewise.
2117 * elf/dl-fini.c: Likewise.
2118 * elf/dl-init.c: Likewise.
2119 * elf/dl-load.c: Likewise.
2120 * elf/dl-lookup.c: Likewise.
2121 * elf/dl-misc.c: Likewise.
2122 * elf/dl-open.c: Likewise.
2123 * elf/dl-profile.c: Likewise.
2124 * elf/dl-reloc.c: Likewise.
2125 * elf/dl-runtime.c: Likewise.
2126 * elf/dl-version.c: Likewise.
2127 * elf/do-lookup.h: Likewise.
2128 * sysdeps/generic/dl-cache.c: Likewise.
2129 * sysdeps/generic/dl-sysdep.c: Likewise.
2130 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
2131 instead of _dl_init.
2132 * sysdeps/arm/dl-machine.h: Likewise.
2133 * sysdeps/cris/dl-machine.h: Likewise.
2134 * sysdeps/hppa/dl-machine.h: Likewise.
2135 * sysdeps/i386/dl-machine.h: Likewise.
2136 * sysdeps/ia64/dl-machine.h: Likewise.
2137 * sysdeps/m68k/dl-machine.h: Likewise.
2138 * sysdeps/mips/dl-machine.h: Likewise.
2139 * sysdeps/mips/mips64/dl-machine.h: Likewise.
2140 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2141 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2142 * sysdeps/sh/dl-machine.h: Likewise.
2143 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2144 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2145 * sysdeps/x86_64/dl-machine.h: Likewise.
2146 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
2148 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
2149 and _dl_debug_initialize.
2151 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
2153 * elf/rtld.c (dl_main): Avoid strrchr.
2154 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
2155 result of readlink. Search from the back for '/'.
2157 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
2158 strncpy if possible.
2160 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
2162 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
2163 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
2164 strspn, and strcspn.
2165 (process_envvars): Don't use strcspn.
2167 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
2168 (_dl_dst_substitute): Likewise.
2170 2002-02-01 Ulrich Drepper <drepper@redhat.com>
2172 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
2173 code which is never used when relocating ld.so itself.
2175 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
2176 starting ld.so itself. Move l_addr variable initialization closer
2178 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
2180 2002-02-01 Jakub Jelinek <jakub@redhat.com>
2182 * Versions.def (libc): Add GLIBC_PRIVATE.
2183 (libdb, libnss_db, libdb1): Remove.
2184 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
2185 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
2186 (libpthread): Add GLIBC_PRIVATE.
2187 (libresolv): Likewise, remove GLIBC_2.1.
2188 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
2189 GLIBC_2.2.3, GLIBC_2.3.
2190 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
2191 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
2192 _dl_sym, _dl_vsym): Likewise.
2193 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
2194 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
2195 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
2196 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
2197 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
2198 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
2199 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
2200 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
2202 (_dl_object_relocation_scope): Remove.
2203 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
2204 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
2205 __gconv_cache): Move to GLIBC_PRIVATE.
2206 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
2207 __internal_setnetgrent): Likewise.
2208 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
2209 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
2210 * locale/Versions (__collate_element_hash, __collate_element_strings,
2211 __collate_symbol_classes, __collate_symbol_hash,
2212 __collate_symbol_strings, _nl_current_LC_COLLATE,
2213 _nl_current_LC_CTYPE): Likewise.
2214 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
2215 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
2216 (libnss_nis, libnss_nisplus): Likewise.
2217 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
2218 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
2219 (libnss_files): Move all symbols to GLIBC_PRIVATE.
2220 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
2221 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
2222 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
2223 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
2224 __ns_get16, __ns_samename): Likewise.
2225 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
2226 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
2228 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
2229 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
2230 __libc_connect): Likewise.
2231 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
2233 * stdlib/Versions (__libc_system): Likewise.
2234 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
2235 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
2236 * sysdeps/ia64/fpu/Versions: Likewise.
2237 * sysdeps/ia64/Versions: Likewise.
2238 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2239 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
2241 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
2242 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
2243 __libc_sigaction): Likewise.
2244 * termios/Versions (__libc_tcdrain): Likewise.
2246 * misc/sys/cdefs (__attribute_noinline__): Define.
2247 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
2248 __attribute_noinline__.
2250 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
2251 * elf/dl-xstat64.c: New file.
2252 * elf/dl-fxstat64.c: New file.
2253 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
2254 don't export __fxstat64 at multiple versions.
2255 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
2256 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
2258 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
2260 * locale/program/ld-collate.c (collate_finish): Assign a wide
2261 char collation sequence value to multi character collating
2262 elements, and avoid over writing by non-character elements.
2264 2002-02-01 Ulrich Drepper <drepper@redhat.com>
2266 * elf/Makefile (distribute): Add dl-procinfo.c.
2267 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
2268 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
2270 2002-02-01 Jakub Jelinek <jakub@redhat.com>
2272 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
2274 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
2275 _rtld_global struct.
2276 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
2277 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
2278 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
2279 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
2280 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
2281 _dl_fpu_control_set): Remove unused externs.
2282 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
2283 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
2284 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
2285 related variables in _rtld_global struct.
2286 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
2287 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
2290 2002-02-01 Ulrich Drepper <drepper@redhat.com>
2292 * sysdeps/generic/dl-procinfo.c: New file.
2294 2002-02-01 Andreas Schwab <schwab@suse.de>
2296 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
2298 2002-02-01 Ulrich Drepper <drepper@redhat.com>
2300 * elf/rtld.c (_dl_start): Mark as internal_function.
2301 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
2303 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
2304 General pretty printing.
2306 2002-01-31 Ulrich Drepper <drepper@redhat.com>
2308 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
2309 * elf/dl-reloc.c: Pretty printing.
2310 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
2311 procinfo-related variables in rtld_global struct.
2312 * elf/dl-support.c: Likewise.
2313 * elf/rtld.c: Likewise.
2314 * sysdeps/i386/i686/Makefile: Likewise.
2315 * sysdeps/i386/i686/hp-timing.c: Likewise.
2316 * sysdeps/i386/i686/hp-timing.h: Likewise.
2317 * sysdeps/ia64/Makefile: Likewise.
2318 * sysdeps/ia64/hp-timing.c: Likewise.
2319 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
2320 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
2321 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
2322 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
2323 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2324 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
2325 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
2326 * sysdeps/x86_64/Makefile: Likewise.
2328 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
2329 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
2330 _dl_debug_fd to rtld_global.
2331 * elf/Versions: Likewise.
2332 * elf/dl-close.c: Likewise.
2333 * elf/dl-iteratephdr.c: Likewise.
2334 * elf/dl-lookup.c: Likewise.
2335 * elf/dl-misc.c: Likewise.
2336 * elf/dl-open.c: Likewise.
2337 * elf/dl-support.c: Likewise.
2338 * elf/do-lookup.h: Likewise.
2339 * elf/rtld.c: Likewise.
2340 * sysdeps/generic/dl-cache.c: Likewise.
2341 * sysdeps/generic/dl-sysdep.c: Likewise.
2342 * sysdeps/ia64/Versions: Likewise.
2343 * sysdeps/unix/clock_gettime.c: Likewise.
2344 * sysdeps/unix/clock_settime.c: Likewise.
2345 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2346 * sysdeps/sparc/Versions: Removed.
2347 * sysdeps/i386/i686/Versions : Removed.
2348 * sysdeps/x86_64/Versions: Removed.
2349 * configure.in: Define HAVE_PROTECTED if .protected is available.
2350 * config.h.in: Add entry for HAVE_PROTECTED.
2352 2002-01-31 Jakub Jelinek <jakub@redhat.com.
2354 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
2355 code in struct _rtld_global. Export this struct, remove all
2356 exports for the signal variables.
2357 * sysdeps/arm/dl-machine: Likewise.
2358 * sysdeps/generic/dl-origin: Likewise.
2359 * sysdeps/generic/dl-sysdep: Likewise.
2360 * sysdeps/generic/dl-cache: Likewise.
2361 * sysdeps/hppa/dl-fptr: Likewise.
2362 * sysdeps/hppa/dl-machine: Likewise.
2363 * sysdeps/cris/dl-machine: Likewise.
2364 * sysdeps/i386/dl-machine: Likewise.
2365 * sysdeps/ia64/dl-machine: Likewise.
2366 * sysdeps/m68k/dl-machine: Likewise.
2367 * sysdeps/mach/hurd/dl-sysdep: Likewise.
2368 * sysdeps/mips/mips64/dl-machine: Likewise.
2369 * sysdeps/mips/dl-machine: Likewise.
2370 * sysdeps/powerpc/elf/libc-start: Likewise.
2371 * sysdeps/powerpc/dl-machine: Likewise.
2372 * sysdeps/powerpc/dl-start: Likewise.
2373 * sysdeps/sparc/sparc32/dl-machine: Likewise.
2374 * sysdeps/sparc/sparc64/dl-machine: Likewise.
2375 * sysdeps/sh/dl-machine: Likewise.
2376 * sysdeps/s390/s390-32/dl-machine: Likewise.
2377 * sysdeps/s390/s390-64/dl-machine: Likewise.
2378 * sysdeps/unix/sysv/aix/libc-start: Likewise.
2379 * sysdeps/unix/sysv/aix/start-libc: Likewise.
2380 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
2381 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
2382 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
2383 * sysdeps/x86_64/dl-machine: Likewise.
2385 2002-01-31 Ulrich Drepper <drepper@redhat.com>
2387 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
2390 2002-01-31 Andreas Schwab <schwab@suse.de>
2392 * sysdeps/posix/readv.c: Check for ssize_t overflow.
2394 2002-01-31 Andreas Schwab <schwab@suse.de>
2396 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
2397 reference to _dl_pagesize.
2399 2002-01-30 Ulrich Drepper <drepper@redhat.com>
2401 * Versions.def [ld]: Add GLIBC_2.3.
2402 * elf/dl-addr.c: Move global variables for SHARED code in struct
2403 _rtld_global. Export this struct, remove all exports for the
2405 * elf/dl-close.c: Likewise.
2406 * elf/dl-conflict.c: Likewise.
2407 * elf/dl-debug.c: Likewise.
2408 * elf/dl-deps.c: Likewise.
2409 * elf/dl-dst.h: Likewise.
2410 * elf/dl-error.c: Likewise.
2411 * elf/dl-fini.c: Likewise.
2412 * elf/dl-init.c: Likewise.
2413 * elf/dl-iteratephdr.c: Likewise.
2414 * elf/dl-libc.c: Likewise.
2415 * elf/dl-load.c: Likewise.
2416 * elf/dl-lookup.c: Likewise.
2417 * elf/dl-minimal.c: Likewise.
2418 * elf/dl-object.c: Likewise.
2419 * elf/dl-open.c: Likewise.
2420 * elf/dl-profile.c: Likewise.
2421 * elf/dl-profstub.c: Likewise.
2422 * elf/dl-reloc.c: Likewise.
2423 * elf/dl-runtime.c: Likewise.
2424 * elf/dl-support.c: Likewise.
2425 * elf/dl-sym.c: Likewise.
2426 * elf/dl-version.c: Likewise.
2427 * elf/do-lookup.h: Likewise.
2428 * elf/do-rel.h: Likewise.
2429 * elf/dynamic-link.h: Likewise.
2430 * elf/rtld.c: Likewise.
2431 * sysdeps/generic/dl-cache.c: Likewise.
2432 * sysdeps/generic/dl-sysdep.c: Likewise.
2433 * sysdeps/generic/ldsodefs.h: Likewise.
2434 * sysdeps/generic/libc-start.c: Likewise.
2435 * sysdeps/i386/dl-machine.h: Likewise.
2436 * sysdeps/ia64/dl-fptr.c: Likewise.
2437 * sysdeps/ia64/dl-machine.h: Likewise.
2438 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
2439 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2440 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
2441 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
2442 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
2443 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2444 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
2445 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
2447 2002-01-29 Ulrich Drepper <drepper@redhat.com>
2449 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
2451 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
2453 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
2455 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
2457 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
2459 2002-01-29 Ben Collins <bcollins@debian.org>
2461 * string/bits/string2.h (__mempcpy): Protect size arg for
2462 addition when using __builtin_memcpy.
2464 2002-01-29 Ulrich Drepper <drepper@redhat.com>
2466 * stdlib/Makefile (tests): Add tst-qsort.
2467 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
2469 * manual/signal.texi (Process Signal Mask): Document that
2470 pthread_sigmask, not sigprocmask, must be used in MT programs.
2471 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
2473 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
2475 * misc/Makefile (tests): Add tst-hsearch.
2476 * misc/tst-hsearch.c: New file.
2478 2002-01-18 Wolfram Gloger <wg@malloc.de>
2480 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
2481 * malloc/malloc.h: Likewise.
2482 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
2483 * malloc/arena.c: New file.
2484 * malloc/hooks.c: New file.
2485 * malloc/tst-mallocstate.c: New file.
2486 * malloc/Makefile: Add new testcase tst-mallocstate.
2487 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
2489 2002-01-28 Ulrich Drepper <drepper@redhat.com>
2491 * stdlib/msort.c: Remove last patch. The optimization violates the
2492 same rule which qsort.c had problems with.
2494 2002-01-27 Paul Eggert <eggert@twinsun.com>
2496 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
2497 to a pivot element that lies outside the array to be sorted, as
2498 ISO C99 requires that the comparison function be called only with
2499 addresses of array elements [PR libc/2880].
2501 2002-01-28 Ulrich Drepper <drepper@redhat.com>
2503 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
2504 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
2506 * timezone/asia: Update from tzdata2002b.
2507 * timezone/australasia: Likewise.
2508 * timezone/backward: Likewise.
2509 * timezone/europe: Likewise.
2510 * timezone/leapseconds: Likewise.
2511 * timezone/iso3166.tab: Likewise.
2512 * timezone/zone.tab: Likewise.
2514 2002-01-23 Richard Henderson <rth@redhat.com>
2516 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
2518 2002-01-28 Ulrich Drepper <drepper@redhat.com>
2520 * string/strxfrm.c: Allocate one more byte for rulearr and clear
2521 this element [PR libc/2855].
2523 * string/strcoll.c: Handle zero-length arguments specially
2526 2002-01-23 Jakub Jelinek <jakub@redhat.com>
2528 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
2529 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
2530 short lengths and constant src.
2531 (strcpy): Don't optimize for gcc 3.0+.
2532 (__stpcpy): For gcc 3.0+, don't use
2533 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
2534 for short string literal src.
2536 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
2538 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
2541 2001-01-22 Paul Eggert <eggert@twinsun.com>
2543 * manual/llio.texi (Linked Channels, Cleaning Streams):
2544 Make it clearer that a just-opened input stream might need cleaning.
2546 2002-01-21 H.J. Lu <hjl@gnu.org>
2548 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2549 Don't use label at end of compound statement.
2551 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
2553 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
2554 Remove test for negative integer arg; sin_pi does it correctly.
2556 2002-01-20 Ulrich Drepper <drepper@redhat.com>
2558 * nscd/Makefile (distribute): Filter out xmalloc.c.
2560 2002-01-19 Ulrich Drepper <drepper@redhat.com>
2562 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
2563 Set offset if read end wasn't the buffer end.
2564 (_IO_file_seekoff_mmap): New function.
2565 (_IO_file_xsgetn_mmap): New function.
2566 (_IO_file_jumps_mmap): Use the two new functions.
2567 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
2569 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
2570 _IO_file_underflow_mmap.
2571 * libio/iofopen.c: Don't position file descriptor at end of file.
2572 * libio/tst-widetext.c: Improve error messages.
2573 * stdio-common/tst-rndseek.c: Likewise.
2575 2002-01-18 Ulrich Drepper <drepper@redhat.com>
2577 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
2578 end of enum for !_GNU_SOURCE.
2579 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
2580 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
2581 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
2582 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
2583 values unless _GNU_SOURCE.
2585 * iconvdata/tcvn5712-1.c: Minor cleanups.
2587 2002-01-18 Andreas Schwab <schwab@suse.de>
2589 * sysdeps/unix/sysv/linux/configure.in
2590 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
2592 2002-01-16 Roger Sayle <roger@eyesopen.com>
2594 * stdlib/msort.c (msort_with_tmp): Replace implementation with
2595 more efficient "Towers of Hanoi" mergesort.
2596 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
2597 for generic, sizeof(int) and sizeof(long) variants respectively.
2599 2002-01-17 Ulrich Drepper <drepper@redhat.com>
2601 * manual/syslog.texi (openlog): Describe possible problems with
2603 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
2605 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
2606 * nscd/connections.c (begin_drop_privileges): New function.
2607 (finish_drop_privileges): New function.
2608 (nscd_init): Call the new functions which also install all groups
2609 for the server user.
2610 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
2611 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
2613 2002-01-17 H.J. Lu <hjl@gnu.org>
2615 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
2618 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
2620 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
2621 instructions for pointer operations.
2622 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
2624 2002-01-17 Andreas Jaeger <aj@suse.de>
2626 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
2627 __uint128_t build-in.
2629 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
2630 PowerPC, sync with 2.2 branch.
2632 2002-01-16 Ulrich Drepper <drepper@redhat.com>
2634 * posix/getconf.c: Update copyright year.
2635 * nss/getent.c: Likewise.
2636 * nscd/nscd_nischeck.c: Likewise.
2637 * iconv/iconvconfig.c: Likewise.
2638 * iconv/iconv_prog.c: Likewise.
2639 * elf/ldconfig.c: Likewise.
2640 * catgets/gencat.c: Likewise.
2641 * csu/version.c: Likewise.
2642 * elf/ldd.bash.in: Likewise.
2643 * elf/sprof.c (print_version): Likewise.
2644 * locale/programs/locale.c: Likewise.
2645 * locale/programs/localedef.c: Likewise.
2646 * nscd/nscd.c (print_version): Likewise.
2647 * debug/xtrace.sh: Likewise.
2648 * malloc/memusage.sh: Likewise.
2649 * malloc/mtrace.pl: Likewise.
2651 2002-01-16 Andreas Schwab <schwab@suse.de>
2653 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
2654 reliably remove "-ia64" from rtld name.
2656 2002-01-16 Ulrich Drepper <drepper@redhat.com>
2658 * iconvdata/gb18030.c: Bug fixes and support for more characters.
2659 Patch by Yu Shao <yshao@redhat.com>.
2661 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
2663 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
2664 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
2665 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
2667 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
2669 * sysdeps/s390/fpu/libm-test-ulps: Update.
2671 2002-01-11 Ulrich Drepper <drepper@redhat.com>
2673 * elf/elf.h: Update x86 relocations.
2675 2002-01-10 Ulrich Drepper <drepper@redhat.com>
2677 * locale/programs/charmap.c (new_width): Check whether byte
2678 sequences for both ends of range have the same length.
2680 2002-01-09 Jakub Jelinek <jakub@redhat.com>
2682 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
2684 2002-01-09 Jakub Jelinek <jakub@redhat.com>
2686 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
2688 (__full_ieee754_sqrt): Add __attribute_used__.
2690 2002-01-10 Ulrich Drepper <drepper@redhat.com>
2692 * sysdeps/generic/group_member.c (__group_member): Also check
2693 groups[0] [PR libc/2781].
2695 2002-01-08 Ulrich Drepper <drepper@redhat.com>
2697 * Makefile (distribute): Add scripts/cpp.
2698 * elf/Makefile (distribute): Add reldep6mod[01234].c,
2699 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
2700 unwind-dw2-fde.h, and dwarf2.h.
2701 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
2702 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
2703 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
2704 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
2706 2002-01-07 Roland McGrath <roland@frob.com>
2708 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
2709 volatile on type of ARGC so the compiler doesn't get clever.
2711 2002-01-07 Andreas Jaeger <aj@suse.de>
2713 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
2714 * sysdeps/i386/bits/byteswap.h: Likewise.
2715 * sysdeps/ia64/bits/byteswap.h: Likewise.
2716 * sysdeps/m68k/bits/byteswap.h: Likewise.
2717 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
2718 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
2720 2002-01-02 Bruno Haible <bruno@clisp.org>
2722 * intl/plural.y: Fix %expect count.
2724 2002-01-03 Jakub Jelinek <jakub@redhat.com>
2726 * elf/Makefile (routines, shared-only-routines): Add
2727 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
2728 * elf/elf.h (PT_GNU_EH_FRAME): Define.
2729 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
2730 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
2731 Optimize if .eh_frame section contains no FDEs.
2732 (__register_frame, __deregister_frame_info_bases,
2733 __deregister_frame): Likewise.
2734 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
2735 DW_CFA_restore handling.
2737 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
2739 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
2741 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
2742 for x < 0.25 and restore original range reduction method.
2743 (__ieee754_lgammal_r): Make sure signgam is set before returning.
2745 2002-01-07 Ulrich Drepper <drepper@redhat.com>
2747 * libio/fileops.c (_IO_file_underflow_mmap): New function.
2748 (_IO_file_close_mmap): New function.
2749 (_IO_file_jumps_mmap): New variable.
2750 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
2751 trying to convert rest of byte buffer.
2752 (_IO_wfile_underflow_mmap): New function.
2753 (_IO_wfile_jumps_mmap): New variable.
2754 * libio/iofopen.c (__fopen_maybe_mmap): New function.
2755 (__fopen_internal): New function. Split out from _IO_new_fopen.
2756 (_IO_new_fopen): Call __fopen_internal.
2757 * libio/iofopen64.c: Just call __fopen_internal.
2758 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
2760 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
2761 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
2762 _IO_file_close_mmap.
2764 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
2765 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
2767 * stdio-common/Makefile (tests): Add tst-rndseek.
2768 * stdio-common/tst-rndseek.c: New file.
2770 2002-01-05 Roland McGrath <roland@frob.com>
2772 * config.h.in (HAVE_MIG_RETCODE): New #undef.
2773 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
2774 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
2775 * sysdeps/mach/hurd/configure: Regenerated.
2777 2002-01-03 Ulrich Drepper <drepper@redhat.com>
2779 * elf/elf.h: Add more TLS definitions.
2781 2002-01-02 Ulrich Drepper <drepper@redhat.com>
2783 * include/features.h (__GLIBC_MINOR__): Bump to 3.
2785 2002-01-02 Roland McGrath <roland@frob.com>
2787 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
2788 __sigisemptyset. Don't use MASK uninitialized.
2790 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
2791 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
2792 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
2793 __sigdelset, __sigaddset, __sigorset.
2795 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
2796 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
2798 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
2799 _hurd_ports is null.
2801 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
2802 for old CMU and new OSF Mach interface flavors.
2803 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
2804 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2806 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
2808 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
2809 Pass extra arguments to task_create for OSF variant.
2810 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2812 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
2813 conditional on [HAVE_AUX_VECTOR].
2815 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
2816 mach_msg_timeout_t as type of final argument.
2818 * hurd/privports.c (__get_privileged_ports):
2819 Change host_priv_t to mach_port_t in argument type.
2820 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
2823 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
2824 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
2825 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
2826 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
2827 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
2828 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2830 2002-01-01 Roland McGrath <roland@frob.com>
2832 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
2834 2002-01-01 Ulrich Drepper <drepper@redhat.com>
2836 * include/stdlib.h: Define inlines for the _l variants of the strto*
2839 2002-01-01 Roland McGrath <roland@frob.com>
2841 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
2843 * mach/Machrules (MIG): Set CPP as well as CC.
2845 2001-12-31 Ulrich Drepper <drepper@redhat.com>
2847 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
2848 locale to parse /proc/loadavg [PR libc/2760].
2850 2001-12-31 Jakub Jelinek <jakub@redhat.com>
2852 * elf/dl-conflict.c: Include sys/param.h.
2853 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
2854 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
2856 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
2857 literals to avoid warnings.
2859 2001-12-31 Andreas Jaeger <aj@suse.de>
2861 * configure.in: Don't check for gsed since we do not use it anywhere.
2863 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
2865 * io/fts.c: Update from BSD to fix memory leaks.
2867 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
2869 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
2870 * elf/chroot_canon.c: Likewise.
2871 * elf/dl-object.c: Likewise.
2872 * iconv/iconv_charmap.c: Likewise.
2873 * iconv/iconv_prog.c: Likewise.
2874 * libio/iogetdelim.c: Likewise.
2875 * locale/lc-time.c: Likewise.
2876 * stdlib/canonicalize.c: Likewise.
2877 * sunrpc/svc.c: Likewise.
2878 * sysdeps/generic/glob.c: Likewise.
2880 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2882 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
2883 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
2884 remove high order bit from the program counter.
2885 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
2887 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2889 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
2890 unnecessary code and add missing reloc types.
2891 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
2892 case for reloc type R_390_NONE.
2894 2001-12-28 Andreas Jaeger <aj@suse.de>
2896 * io/bug-ftw3.c: Include string.h for prototypes.
2898 * crypt/md5test.c (main): Remove unused variable.
2900 * dlfcn/modstatic.c: Add prototype to avoid warning.
2902 2001-12-26 Roland McGrath <roland@frob.com>
2904 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
2905 check only (SS->pending & MASK) for the signal to return.
2906 From Jeroen Dekkers <jeroen@dekkers.cx>.
2908 2001-12-22 Roland McGrath <roland@frob.com>
2910 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
2911 Use preprocessor #if conditionals instead of `if' to avoid
2912 warnings about divide by zero in dead code.
2914 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
2915 _hurd_port_init, and __hurd_self_sigstate.
2917 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
2919 2001-12-21 Andreas Jaeger <aj@suse.de>
2921 * elf/dblloadmod1.c: Add prototype to avoid warning.
2922 * elf/dblloadmod2.c: Likewise.
2923 * elf/dblloadmod3.c: Likewise.
2924 * elf/reldepmod5.c: Likewise.
2925 * elf/reldepmod6.c: Likewise.
2927 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
2928 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
2929 used on all architectures.
2931 * sunrpc/svc_tcp.c: Add noreturn attribute for
2932 svctcp_rendezvous_abort.
2933 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
2935 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
2938 2001-12-19 Jakub Jelinek <jakub@redhat.com>
2940 * manual/llio.texi (aio_fsync): Fix a typo.
2941 Patch by Tammy Fox <tfox@redhat.com>.
2943 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2945 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
2946 stack bias from child stack pointer before passing it to clone syscall.
2948 2001-12-18 Ulrich Drepper <drepper@redhat.com>
2950 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
2952 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
2953 Reported by Thorsten Kukuk <kukuk@suse.de>.
2955 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
2958 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
2960 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
2962 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
2963 conforming: return EBADF if file descriptor is invalid and EINVAL
2964 if file descriptor is no valid tty.
2965 * login/tst-grantpt.c: New file.
2966 * login/Makefile (tests): Add tst-grantpt.
2968 2001-12-17 Ulrich Drepper <drepper@redhat.com>
2970 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
2971 different than implemented in last patch.
2972 * io/bug-ftw3.c: Adjust test for changed handling of
2973 inaccessibility of toplevel dir.
2975 2001-12-16 Roland McGrath <roland@frob.com>
2977 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
2978 * grp/initgroups.c (internal_getgrouplist): Likewise.
2980 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
2981 `default:' to silence new GCC warning.
2982 Rewrite cast of lvalue to silence new GCC warning.
2984 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
2986 * sysdeps/mach/hurd/spawni.c: New file, by me with a
2987 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
2989 2001-12-14 Ulrich Drepper <drepper@redhat.com>
2991 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
2992 Patch by Stephen R. van den Berg.
2994 * crypt/md5.h: Define md5_uintptr.
2996 2001-12-13 Ulrich Drepper <drepper@redhat.com>
2998 * libio/tst_swprintf.c (main): Add test for string argument with
3000 * stdio-common/Makefile (tests): Add tst-sprintf.
3001 * stdio-common/tst-sprintf.c: New file.
3003 2001-12-13 Andreas Schwab <schwab@suse.de>
3005 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
3006 zero precision with wide character string format.
3008 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
3010 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
3011 but have a user supplied buffer, return the empty buffer, not NULL.
3013 2001-12-13 Ulrich Drepper <drepper@redhat.com>
3015 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
3016 Patch by Eric Sharkey <sharkey@netrics.com>.
3018 * crypt/md5test.c (main): Add test for multiple calls to
3019 __md5_process_bytes to itererate over input string.
3021 2001-12-12 Ulrich Drepper <drepper@redhat.com>
3023 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
3024 from __nis_findfastest. Take timeout value from parameter.
3025 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
3026 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
3027 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
3029 2001-12-12 Andreas Jaeger <aj@suse.de>
3031 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
3032 combreloc test so that it works in this case.
3034 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
3036 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
3038 * sysdeps/sh/Makefile: New file.
3039 * sysdeps/sh/_mcount.S: New file.
3040 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
3041 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
3043 2001-12-11 Ulrich Drepper <drepper@redhat.com>
3045 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
3046 limitation [PR libc/2564].
3048 2001-12-11 Jakub Jelinek <jakub@redhat.com>
3050 * elf/Makefile (dl-routines): Add conflict.
3051 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
3052 (ld.so): Add _begin local symbol.
3053 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
3055 * elf/dl-deps.c (_dl_build_local_scope): New.
3056 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
3058 * elf/do-rel.h (VALIDX): Define.
3059 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
3060 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
3062 * elf/dl-conflict.c: New file.
3063 * elf/dl-lookup.c (_dl_debug_bindings): New.
3064 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
3066 (_dl_lookup_symbol_skip): Likewise.
3067 (_dl_lookup_versioned_symbol): Likewise.
3068 (_dl_lookup_versioned_symbol_skip): Likewise.
3069 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
3070 define to ElfW(Rel).
3071 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
3072 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
3074 Don't adjust address dynamic tags if l_addr is 0.
3075 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
3076 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
3077 (VALIDX, ADDRIDX): Define.
3078 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
3079 (dl_main): Print library list for LD_TRACE_PRELINKING.
3080 If prelinking information can be used, skip relocating libraries and
3081 call _dl_resolve_conflicts instead.
3082 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
3083 * elf/dl-load.c (_dl_map_object): Don't create fake libs
3084 if LD_TRACE_PRELINKING.
3085 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
3087 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
3088 (DL_DEBUG_PRELINK): Define.
3089 (_dl_resolve_conflicts): Add prototype.
3091 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
3092 .plt for prelinked libraries where prelinking info cannot be used.
3093 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
3094 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
3095 * sysdeps/arm/bits/link.h: New file.
3096 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
3098 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
3099 (ELF_MACHINE_PLT_REL): Define.
3100 (elf_machine_rela, elf_machine_rela_relative): New.
3101 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
3102 of adjusting it if prelinked and prelinking cannot be used.
3103 * sysdeps/i386/bits/link.h: New file.
3104 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
3106 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
3107 (ELF_MACHINE_PLT_REL): Define.
3108 (elf_machine_rela, elf_machine_rela_relative): New.
3109 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
3110 of adjusting it if prelinked and prelinking cannot be used.
3111 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
3112 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
3113 to find out map for R_PPC_JMP_SLOT relocs.
3114 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
3115 (OPCODE_BA): Define.
3116 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
3117 libraries where prelinking info cannot be used.
3118 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
3119 (elf_machine_fixup_plt): Call sparc_fixup_plt.
3120 (elf_machine_rela): Set value to 0 if relocating conflicts.
3121 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
3122 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
3123 (sparc64_fixup_plt): Fix a typo.
3124 (elf_machine_rela): Set value to 0 if relocating conflicts.
3125 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
3126 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
3127 libraries where prelinking info cannot be used.
3128 * sysdeps/sh/bits/link.h: New file.
3129 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
3131 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
3132 of adjusting it if prelinked and prelinking cannot be used.
3133 * sysdeps/s390/s390-32/bits/link.h: New file.
3134 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
3135 Save original content of .got[1].
3136 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
3137 of adjusting it if prelinked and prelinking cannot be used.
3138 * sysdeps/s390/s390-64/bits/link.h: New file.
3139 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
3140 Save original content of .got[1].
3141 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
3142 of adjusting it if prelinked and prelinking cannot be used.
3143 * sysdeps/x86_64/bits/link.h: New file.
3144 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
3145 Save original content of .got[1].
3146 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
3147 of adjusting it if prelinked and prelinking cannot be used.
3149 2001-12-11 Ulrich Drepper <drepper@redhat.com>
3151 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
3152 where appropriate instead of numbers. Little optimizations.
3154 2001-12-10 Roland McGrath <roland@frob.com>
3156 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
3159 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
3160 set to GLIBC_2.2.5, not GLIBC_2.2.4.
3162 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
3163 Fix conditionals so this is set by default for stdio and not for libio.
3164 * sysdeps/mach/hurd/configure: Regenerated.
3166 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
3168 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
3170 2001-12-10 Ulrich Drepper <drepper@redhat.com>
3172 * io/Makefile (tests): Add bug-ftw3.
3173 * io/bug-ftw3.c: New file.
3175 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
3176 matches and GLOB_NOCHECK is set.
3177 * posix/globtest.sh: Correct expected result for NOCHECK test.
3179 * po/ca.po: Update from translation team.
3181 2001-12-09 Ulrich Drepper <drepper@redhat.com>
3183 Implement transliteration of characters in strings of the locale
3185 * locale/programs/linereader.c: Adjust for additional parameter to
3187 (get_string): If character <Uxxxx> is not found try to transliterate
3189 * locale/programs/ld-ctype.c: Adjust for additional parameter to
3190 lr_token. Add const to charmap parameter of all functions.
3191 (find_translit, find_translit2): New functions.
3192 * locale/programs/charmap.c: Adjust for additional parameter to
3194 * locale/programs/repertoire.c: Likewise.
3195 * locale/programs/linereader.h: Likewise.
3196 * locale/programs/ld-address.c: Likewise. Add const to charmap
3197 parameter of all functions.
3198 * locale/programs/ld-collate.c: Likewise.
3199 * locale/programs/ld-identification.c: Likewise.
3200 * locale/programs/ld-measurement.c: Likewise.
3201 * locale/programs/ld-messages.c: Likewise.
3202 * locale/programs/ld-monetary.c: Likewise.
3203 * locale/programs/ld-name.c: Likewise.
3204 * locale/programs/ld-numeric.c: Likewise.
3205 * locale/programs/ld-paper.c: Likewise.
3206 * locale/programs/ld-paper.c: Likewise.
3207 * locale/programs/ld-telephone.c: Likewise.
3208 * locale/programs/ld-time.c: Likewise.
3209 * locale/programs/locfile.c: Likewise.
3210 * locale/programs/localedef.c: Likewise.
3211 * locale/programs/localedef.h: Likewise.
3212 * locale/programs/locfile.h: Likewise. Add declaration for
3214 * locale/programs/simple-hash.c: Add const to first parameter of
3215 find_entry, iterate_table, and lookup.
3216 * locale/programs/simple-hash.h: Likewise.
3217 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
3219 * include/locale.h: Define __LC_LAST.
3220 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
3222 2001-12-07 Geoff Keating <geoffk@redhat.com>
3224 * sysdeps/powerpc/Dist: Update for recent FP changes.
3225 * sysdeps/powerpc/fpu/Dist: Likewise.
3227 2001-12-07 Andreas Schwab <schwab@suse.de>
3229 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
3231 2001-12-06 Geoff Keating <geoffk@redhat.com>
3233 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
3234 save/restore functions here.
3235 (libm-support): Don't define these functions here.
3236 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
3238 * sysdeps/powerpc/fe_nomask.c: Move to...
3239 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
3240 * sysdeps/powerpc/fprrest.S: Move to...
3241 * sysdeps/powerpc/fpu/fprrest.S: ... here.
3242 * sysdeps/powerpc/fprsave.S: Move to...
3243 * sysdeps/powerpc/fpu/fprsave.S: ... here.
3245 2001-12-06 Ulrich Drepper <drepper@redhat.com>
3247 * sysdeps/unix/sysv/linux/opensock.c: New file.
3249 2001-12-06 Geoff Keating <geoffk@redhat.com>
3251 * config.make.in (with-fp): Define from configure.
3252 * configure.in: Substitute with_fp.
3253 * configure: Regenerate.
3254 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
3255 specified, and don't change FPU environment.
3257 2001-12-06 Ulrich Drepper <drepper@redhat.com>
3259 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
3260 * assert/assert.c: Check result of __asprintf call and don't use
3261 string if it failed.
3262 * assert/assert-perr.c: Likewise.
3263 * inet/rcmd.c: Likewise.
3264 * locale/programs/localedef.c (main): Check result of
3265 construct_output_path and exit if it failed.
3266 (construct_output_path): Check result of asprintf and mkdir calls and
3267 fail if they failed.
3268 * posix/getopt.c: Check result of __asprintf calls and fail if
3270 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
3272 2001-12-05 Ulrich Drepper <drepper@redhat.com>
3274 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
3276 * sysdeps/generic/strncase.c: Likewise.
3277 * string/tester.c: Add tests for strcasecmp and strncasecmp.
3279 2001-12-05 Geoff Keating <geoffk@redhat.com>
3281 * scripts/cpp: Test the exit status from 'type', not 'awk'.
3283 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
3284 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
3285 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
3286 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
3287 * sysdeps/powerpc/fclrexcpt.c: Move to...
3288 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
3289 * sysdeps/powerpc/fpu_control.h: Move to...
3290 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
3292 2001-12-05 Ulrich Drepper <drepper@redhat.com>
3294 * iconvdata/ibm1129.h: Remove duplicate mappings.
3295 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
3296 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
3297 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
3299 * timezone/zic.c: Fix handling of turnaround times.
3300 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
3302 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
3304 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
3307 2001-12-05 Ulrich Drepper <drepper@redhat.com>
3309 * posix/regex.c: For use outside glibc defined bounded pointer
3310 macros here. Patch by Jim Meyering <jim@meyering.net>.
3312 * iconvdata/Makefile (modules): Add TCVN5712-1.
3313 * iconvdata/TESTS: Add TCVN5712-1.
3314 * iconvdata/gconv-modules: Likewise.
3315 * iconvdata/tcvn5712-1.c: New file.
3316 * iconvdata/testdata/TCVN-5712: New file.
3317 * iconvdata/testdata/TCVN-5712..UTF8: New file.
3319 2001-12-04 Ulrich Drepper <drepper@redhat.com>
3321 * iconvdata/cp1258.c: Optimize conversion from UCS4.
3323 2001-12-02 Roland McGrath <roland@frob.com>
3325 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
3327 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
3328 Reported by Jeff Bailey <jbailey@nisa.net>.
3330 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
3331 Reported by Jeff Bailey <jbailey@nisa.net>.
3333 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
3334 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
3335 Reported by Jeff Bailey <jbailey@nisa.net>.
3337 2001-12-01 Roland McGrath <roland@frob.com>
3339 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
3340 missing backslash in test arguments.
3341 * sysdeps/mach/hurd/configure: Regenerated.
3343 2001-11-26 Roland McGrath <roland@frob.com>
3345 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
3346 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
3348 2001-11-30 Ulrich Drepper <drepper@redhat.com>
3350 * iconvdata/Makefile (modules): Add ARMSCII-8.
3351 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
3352 * iconvdata/armscii-8.c: New file.
3354 2001-11-29 Jakub Jelinek <jakub@redhat.com>
3356 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
3357 don't match, fix {{a,b},c} globbing, clean up.
3358 Patch by Flavio Veloso <flaviovs@magnux.com>.
3359 * posix/globtest.sh: Add new tests.
3361 2001-11-29 Andreas Jaeger <aj@suse.de>
3363 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
3364 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
3366 * sysdeps/generic/abort.c: Include libioP.h for
3367 _IO_flush_all_lockp prototype.
3369 2001-11-29 Ulrich Drepper <drepper@redhat.com>
3371 * posix/regex.h: Define __restrict_arr correctly.
3373 2001-11-28 Ulrich Drepper <drepper@redhat.com>
3375 * iconvdata/ibm1163.c: New file.
3376 * iconvdata/ibm1163.h: New file.
3377 * iconvdata/ibm1164.c: New file.
3378 * iconvdata/ibm1164.h: New file.
3379 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
3380 * iconvdata/Makefile: Likewise.
3381 * iconvdata/testdata/IBM1163: New file.
3382 * iconvdata/testdata/IBM1163..UTF8: New file.
3383 * iconvdata/testdata/IBM1164: New file.
3384 * iconvdata/testdata/IBM1164..UTF8: New file.
3385 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
3387 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
3388 * iconvdata/ibm1124.h: Likewise.
3389 * iconvdata/ibm1132.h: Likewise.
3390 * iconvdata/ibm1133.h: Likewise.
3391 * iconvdata/ibm1160.h: Likewise.
3392 * iconvdata/ibm1161.h: Likewise.
3393 * iconvdata/ibm1162.h: Likewise.
3394 * iconvdata/ibm856.h: Likewise.
3395 * iconvdata/ibm922.h: Likewise.
3396 * iconvdata/ibm930.h: Likewise.
3397 * iconvdata/ibm932.h: Likewise.
3398 * iconvdata/ibm933.h: Likewise.
3399 * iconvdata/ibm935.h: Likewise.
3400 * iconvdata/ibm937.h: Likewise.
3401 * iconvdata/ibm939.h: Likewise.
3402 * iconvdata/ibm943.h: Likewise.
3403 * iconvdata/ibm930.c: Pretty printing.
3404 * iconvdata/ibm937.c: Avoid access accross array boundary.
3406 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
3407 the current locale's codeset.
3408 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
3410 * iconv/iconv_prog.c: Pass empty strings as default value for to-
3411 and from-charset. Don't determine locale's charset here.
3413 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
3414 as the old _IO_flush_all but lock only if parameter is nonzero.
3415 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
3416 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
3417 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
3418 if libio is used [PR libc/2575].
3420 2001-11-28 Jakub Jelinek <jakub@redhat.com>
3422 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
3423 __signbitl): Only define for ISO C99.
3425 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
3427 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
3428 herrnop to NETDB_INTERNAL if we run out of buffer space.
3430 2001-11-28 Ulrich Drepper <drepper@redhat.com>
3432 * nss/nss_files/files-XXX.c (internal_getent): Correct input
3433 overflow test for platforms with signed char.
3434 Reported by Andrew Haley <aph@cambridge.redhat.com>.
3436 2001-11-28 Bruno Haible <bruno@clisp.org>
3438 * locale/programs/simple-hash.c (lookup_2): Remove function.
3439 (insert_entry_2): Call lookup instead of lookup_2.
3441 2001-03-04 Bruno Haible <bruno@clisp.org>
3443 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
3445 2001-10-31 Bruno Haible <bruno@clisp.org>
3447 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
3449 2001-03-21 Bruno Haible <bruno@clisp.org>
3451 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
3452 chokes on empty macro arguments.
3453 * intl/plural.y: Add #pragma for alloca on AIX 3.
3455 2001-11-27 Ulrich Drepper <drepper@redhat.com>
3457 * intl/dcigettext.c (guess_category_value): Only implement for
3458 glibc. Otherwise rely on function _nl_locale_name which isn't
3459 present in the glibc sources.
3461 2001-09-24 Bruno Haible <bruno@clisp.org>
3463 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
3464 transliteration when building on a glibc system but outside glibc.
3466 2001-09-22 Bruno Haible <bruno@clisp.org>
3468 * intl/plural-eval.c: New file, extracted from dcigettext.c.
3469 * intl/dcigettext.c (plural_eval): Remove function, moved to
3471 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
3472 Include plural-eval.c.
3474 2001-09-22 Bruno Haible <bruno@clisp.org>
3476 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
3477 don't start with a digit; nplurals must be positive.
3479 2001-09-02 Bruno Haible <bruno@clisp.org>
3481 * intl/plural-exp.h: New file, extracted from gettextP.h.
3482 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
3483 * intl/gettextP.h (struct expression, struct parse_args,
3484 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
3485 * intl/loadmsgcat.c: Include plural-exp.h.
3486 (PLURAL_PARSE): Move macro to plural-exp.h.
3487 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
3489 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
3490 EXTRACT_PLURAL_EXPRESSION.
3491 (_nl_unload_domain): Update.
3492 * intl/dcigettext.c: Include plural-exp.h.
3493 * intl/plural.y: Include plural-exp.h, not gettextP.h.
3494 (FREE_EXPRESSION): Move macro to plural-exp.h.
3495 * intl/Makefile (routines): Add plural-exp.
3496 (distribute): Add plural-exp.h.
3498 2001-07-28 Bruno Haible <bruno@clisp.org>
3500 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
3501 isdigit, tolower argument to 'unsigned char'.
3502 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
3504 * intl/localealias.c (read_alias_file): Cast isspace argument to
3507 2001-10-20 Bruno Haible <bruno@clisp.org>
3509 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
3511 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
3512 with the variable 'index' in plural_lookup.
3513 * intl/l10nflist.c (strchr): Likewise.
3514 * intl/localealias.c (strchr): Likewise.
3516 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
3517 * intl/bindtextdom.c: Likewise.
3518 * intl/dcigettext.c: Likewise.
3519 * intl/dgettext.c: Likewise.
3520 * intl/dngettext.c: Likewise.
3521 * intl/explodename.c: Likewise.
3522 * intl/finddomain.c: Likewise.
3523 * intl/gettext.c: Likewise.
3524 * intl/l10nflist.c: Likewise.
3525 * intl/loadmsgcat.c: Likewise.
3526 * intl/localealias.c: Likewise.
3527 * intl/ngettext.c: Likewise.
3528 * intl/textdomain.c: Likewise.
3529 * intl/gettext.h: Assume <limits.h> exists.
3531 2001-11-27 Ulrich Drepper <drepper@redhat.com>
3533 * stdio-common/Makefile (tests): Add scanf11.
3534 * stdio-common/scanf11.c: New file.
3536 2001-11-26 Ulrich Drepper <drepper@redhat.com>
3538 * version.h (RELEASE): Define as development.
3539 (VERSION): Set to 2.2.90.
3541 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
3543 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
3544 * nis/nss_nis/nis-grp.c: Likewise.
3545 * nis/nss_nisplus/nisplus-grp.c: Likewise.
3547 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
3548 * nis/nss_nis/nis-pwd.c: Likewise.
3549 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
3551 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
3552 * nis/nss_nisplus/nisplus-parser.c: Likewise.
3553 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
3555 * nscd/grpcache.c: Use strtoul instead of atol.
3556 * nscd/pwdcache.c: Likewise.
3557 * nss/getent.c: Likewise.
3559 2001-11-27 Paul Eggert <eggert@twinsun.com>
3561 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
3562 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
3564 2001-11-19 Bruno Haible <bruno@clisp.org>
3566 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
3568 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
3569 improves the quality of the hash function, especially for short
3572 2001-11-26 Ulrich Drepper <drepper@redhat.com>
3574 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
3575 are found call conv_error and not input_error [PR libc/2669].
3577 * math/bits/mathcalls.h: Mark ceil and floor as const.
3578 Reported by David Mosberger.
3580 2001-11-21 Jim Meyering <meyering@lucent.com>
3582 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
3583 Define to be __-prefixed.
3584 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
3586 2001-11-26 Andreas Jaeger <aj@suse.de>
3588 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
3591 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
3593 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
3596 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
3597 unused variables. Fix threshold for returning 1.0.
3599 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
3602 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
3603 remove unused variables.
3605 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
3607 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
3608 include local math header files.
3610 2001-11-22 Andreas Jaeger <aj@suse.de>
3612 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
3615 2001-11-21 Andreas Jaeger <aj@suse.de>
3617 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
3619 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
3622 2001-11-15 Andreas Jaeger <aj@suse.de>
3624 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
3625 compilers that support it.
3627 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
3628 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
3629 * stdlib/stdlib.h: Likewise.
3631 2001-11-17 Ulrich Drepper <drepper@redhat.com>
3633 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
3634 statement with gotos.
3635 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
3637 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
3639 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
3641 2001-11-15 Ulrich Drepper <drepper@redhat.com>
3643 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
3645 2001-10-02 Jakub Jelinek <jakub@redhat.com>
3646 H.J. Lu <hjl@gnu.org>
3648 * Versions.def (libc): Add GCC_3.0.
3649 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
3650 if gcc supports this flag.
3651 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
3652 (gcc3): Allow glibc to be compiled with gcc 3.x.
3653 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
3654 * config.make.in (static-libgcc, unwind-find-fde): Add.
3655 * Makerules (build-shlib-helper, build-module-helper): Use it.
3656 * scripts/versions.awk: Make sure GLIBC_ versions come first.
3657 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
3659 (_fini): Call __deregister_frame_info_bases if
3660 __register_frame_info_bases was used to register.
3661 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
3663 (__register_frame_info_bases, __register_frame_info_table_bases,
3664 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
3665 * elf/Makefile (routines): Add unwind-dw2-fde.
3666 (shared-only-routines): Add unwind-dw2-fde.
3667 * sysdeps/alpha/gccframe.h: New file.
3668 * sysdeps/arm/gccframe.h: New file.
3669 * sysdeps/generic/framestate.c: New file.
3670 * sysdeps/generic/dwarf2.h: New file.
3671 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
3672 * sysdeps/generic/unwind-dw2-fde.c: New file.
3673 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
3674 * sysdeps/generic/unwind-dw2-fde.h: New file.
3675 * sysdeps/generic/unwind-dw2.c: New file.
3676 * sysdeps/generic/unwind-pe.h: New file.
3677 * sysdeps/generic/unwind.h: New file.
3678 * sysdeps/hppa/gccframe.h: New file.
3679 * sysdeps/i386/gccframe.h: New file.
3680 * sysdeps/m68k/gccframe.h: New file.
3681 * sysdeps/mips/gccframe.h: New file.
3682 * sysdeps/powerpc/gccframe.h: New file.
3683 * sysdeps/s390/gccframe.h: New file.
3684 * sysdeps/sh/gccframe.h: New file.
3685 * sysdeps/sparc/gccframe.h: New file.
3686 * sysdeps/vax/gccframe.h: New file.
3687 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
3688 Set on all architectures except ia64.
3689 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
3691 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
3692 __deregister_frame_info): Move to elf/Versions.
3693 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
3694 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3695 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3696 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
3697 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
3698 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3699 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3700 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3701 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3702 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
3703 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
3704 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
3705 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
3706 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
3707 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
3708 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
3709 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
3710 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
3712 2001-11-15 Jeff Law <law@redhat.com>
3714 * posix/regex.c (uintptr_t): Do not provide a definition if the
3715 system provided one.
3717 2001-11-13 Roland McGrath <roland@frob.com>
3719 * stdio-common/tmpfile.c: Moved to ...
3720 * sysdeps/generic/tmpfile.c: ... here.
3721 * sysdeps/mach/hurd/tmpfile.c: New file.
3723 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
3724 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
3725 (fopenport): Define as weak alias.
3727 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
3728 * libio/libioP.h: ... to here.
3730 2001-11-12 Ulrich Drepper <drepper@redhat.com>
3732 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
3733 program header twice. Construct list with the needed information.
3735 2001-11-10 Ulrich Drepper <drepper@redhat.com>
3737 * po/ca.po: Update from translation team.
3739 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
3740 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
3741 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
3742 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
3744 2001-11-10 Andreas Jaeger <aj@suse.de>
3746 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
3747 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
3748 Contributed by Stephen L Moshier <moshier@mediaone.net>.
3750 2001-11-09 Ulrich Drepper <drepper@redhat.com>
3752 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
3754 * elf/dl-load.c (is_dst): New function.
3755 (_dl_dst_count): Use is_dst to check for DST variable.
3756 (_dl_dst_substitute): Likewise.
3758 2001-11-09 Roland McGrath <roland@frob.com>
3760 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
3761 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
3762 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
3763 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
3764 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
3765 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
3766 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
3767 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
3768 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
3769 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
3770 * sysdeps/mach/hurd/powerpc/Dist: New file.
3772 * hurd/privports.c (__get_privileged_ports):
3773 Only contact the proc server if necessary for this call.
3774 Suggested by Neal H Walfield <neal@cs.uml.edu>.
3775 Check error return for mach_port_mod_refs.
3777 2001-11-09 Andreas Schwab <schwab@suse.de>
3779 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
3781 2001-11-09 Ulrich Drepper <drepper@redhat.com>
3783 * elf/dl-load.c (lose): Remove some unnecessary code. The new
3784 object is always the last in the list.
3785 (_dl_map_object_from_fd): Delete code to remove from object list
3786 when DF_1_NOOPEN is seen. This is done in lose.
3788 2001-11-08 Ulrich Drepper <drepper@redhat.com>
3790 * elf/dl-object.c (_dl_new_object): Various small optimizations.
3792 2001-11-07 Ulrich Drepper <drepper@redhat.com>
3794 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
3795 HWCAP_CHECK macro code.
3797 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
3798 Now returns MAP_FAILED on error.
3799 * elf/rtld.c: Adjust caller.
3800 * sysdeps/generic/dl-cache.c: Likewise.
3801 * sysdeps/generic/ldsodefs.h: Adjust description.
3803 * elf/dl-version.c (match_symbol): Optimize error handling for size.
3804 (_dl_check_map_versions): Likewise.
3806 2001-11-06 Ulrich Drepper <drepper@redhat.com>
3808 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
3809 _dl_signal_error directly, always use lose. Set fd to -1 after
3811 (lose): Don't call close if fd == -1.
3813 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
3815 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
3816 Also fix typo @code {mbsinit} to @code{mbsinit}.
3818 2001-11-06 Ulrich Drepper <drepper@redhat.com>
3820 * elf/dl-profile.c: Replace state variable with simple flag named
3821 running. Remove commented-out code.
3823 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
3824 (_dl_init_paths): Likewise.
3825 (_dl_map_object_from_fd): Likewise.
3826 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
3828 2001-11-06 Roland McGrath <roland@frob.com>
3830 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
3831 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
3833 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
3834 sysdeps/powerpc/elf/sysdep.h.
3835 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
3837 2001-11-05 Ulrich Drepper <drepper@redhat.com>
3839 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
3841 (process_envvars): Some more optimizations.
3842 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
3844 * elf/elf.h: Add dynamic tag definitions for prelinking.
3846 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
3847 Rewrite code to remove environment varables for SUID binaries.
3848 Small optimization in LD_PROFILE handling.
3849 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
3851 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
3853 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
3855 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
3856 strings. Change type of second parameter.
3857 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
3860 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
3862 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
3864 * manual/string.texi: Fix typos.
3865 * manual/examples/argp-ex2.c: Likewise.
3867 2001-11-05 Roland McGrath <roland@frob.com>
3869 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
3870 the more-specific unix/sysv/linux/powerpc file and breaks everything.
3871 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
3872 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
3873 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
3874 here, put under [__ELF__].
3876 2001-11-05 Ulrich Drepper <drepper@redhat.com>
3878 * manual/charset.texi: Extensive editing work.
3879 * manual/nss.texi: Likewise.
3880 Changes by Dennis Grace <dgrace@us.ibm.com>.
3882 2001-11-04 Roland McGrath <roland@frob.com>
3884 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
3885 parameter to dir_mkfile.
3887 2001-11-02 Jakub Jelinek <jakub@redhat.com>
3889 * string/bits/string2.h (__strndup): If n is smaller than len, set
3891 * string/tester.c (test_strndup): New function.
3894 2001-11-01 Ulrich Drepper <drepper@redhat.com>
3896 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
3898 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
3899 * scripts/cpp: New file.
3901 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
3902 for rtld_search_dirs content. Minor optimizations.
3904 2001-10-31 Ulrich Drepper <drepper@redhat.com>
3906 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
3907 avoiding unnecessary duplication.
3909 2001-10-31 Jakub Jelinek <jakub@redhat.com>
3911 * elf/dl-load.c (_dl_map_object): If library was found using
3912 LD_LIBRARY_PATH, don't try RUNPATH list.
3914 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
3916 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
3917 Correct second argument of register_dump call.
3918 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
3921 2001-10-31 Ulrich Drepper <drepper@redhat.com>
3923 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
3925 * iconvdata/TESTS: Likewise.
3926 * iconvdata/gconv-modules: Likewise.
3927 * iconvdata/ibm1132.c: New file.
3928 * iconvdata/ibm1132.h: New file.
3929 * iconvdata/ibm1133.c: New file.
3930 * iconvdata/ibm1133.h: New file.
3931 * iconvdata/ibm1162.c: New file.
3932 * iconvdata/ibm1162.h: New file.
3933 * iconvdata/testdata/IBM1132: New file.
3934 * iconvdata/testdata/IBM1132..UTF8: New file.
3935 * iconvdata/testdata/IBM1133: New file.
3936 * iconvdata/testdata/IBM1133..UTF8: New file.
3937 * iconvdata/testdata/IBM1162: New file.
3938 * iconvdata/testdata/IBM1162..UTF8: New file.
3939 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
3941 * string/string.h: Fix typo in comment.
3942 * wcsmbs/wchar.h: Likewise.
3944 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
3946 * manual/getopt.texi (getopt_long, getopt_long_only): Include
3947 const in type of longopts parameter.
3949 2001-10-29 Andreas Jaeger <aj@suse.de>
3951 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
3953 2001-10-29 Kevin Ryde <user42@zip.com.au>
3955 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
3956 output, clarify `#' behaviour on 0.
3957 (Floating-Point Conversions): Clarify that %g only uses %e when
3958 the exponent would be greater than 1.
3960 2001-10-28 Roland McGrath <roland@frob.com>
3962 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
3963 * sysdeps/mach/powerpc/machine-sp.h: New file.
3964 * sysdeps/mach/powerpc/sysdep.h: New file.
3965 * sysdeps/mach/powerpc/thread_state.h: New file.
3967 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
3968 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
3969 expect to need the same thing on every platform.
3971 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
3972 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
3974 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
3975 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
3976 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
3977 Move all these assembly-related definitions to ...
3978 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
3980 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
3981 by Peter Bruin <pjbruin@dds.nl>.
3983 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
3984 packing results for a `poll' call.
3986 2001-10-26 Ulrich Drepper <drepper@redhat.com>
3988 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
3990 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
3993 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
3995 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
3997 2001-10-24 H.J. Lu <hjl@gnu.org>
3999 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
4000 Use __BEGIN_DECLS/__END_DECLS around prototypes.
4001 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
4003 2001-10-21 Jim Meyering <meyering@lucent.com>
4005 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
4006 this code would end up calling gettext even in packages built
4008 * posix/getopt.c (_): Likewise.
4009 * posix/regex.c (_): Likewise.
4011 2001-10-26 Ulrich Drepper <drepper@redhat.com>
4013 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
4015 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
4016 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
4018 2001-10-19 Jakub Jelinek <jakub@redhat.com>
4020 * misc/sys/cdefs.h (__attribute_used__): Define.
4021 * elf/rtld.c (_dl_start): Add __attribute_used__.
4022 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
4024 2001-10-25 Andreas Schwab <schwab@suse.de>
4026 * stdlib/a64l.c: Expect least significant digit first.
4027 * stdlib/l64a.c: Produce least significant digit first.
4028 * stdlib/Makefile (tests): Add test-a64l.
4029 * stdlib/test-a64l.c: New file.
4030 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
4032 2001-10-21 Ulrich Drepper <drepper@redhat.com>
4034 * po/sk.po: Update from translation team.
4036 2001-10-18 Ulrich Drepper <drepper@redhat.com>
4038 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
4040 2001-10-18 Andreas Schwab <schwab@suse.de>
4042 * math/libm-test.inc (print_ulps): Print ulp values rounded to
4044 (print_function_ulps): Likewise.
4045 (print_complex_function_ulps): Likewise.
4046 (print_max_error): Likewise.
4047 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
4049 2001-10-16 Andreas Schwab <schwab@suse.de>
4051 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
4054 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
4055 BSD_SETJMP or BSD__SETJMP is defined, resp.
4056 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
4057 a tail call to __sigsetjmp that would require extending the
4059 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
4060 * sysdeps/m68k/bsd-setjmp.S: Deleted.
4061 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
4062 Reported by Jes Sorensen <jes@trained-monkey.org>.
4064 2001-10-16 Andreas Jaeger <aj@suse.de>
4066 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
4067 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
4070 2001-10-15 Ulrich Drepper <drepper@redhat.com>
4072 * po/ca.po: New file. Contributed by the translation team.
4074 2001-10-15 Ralf Baechle <ralf@gnu.org>
4076 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
4077 a varargs prototype. Remove dependency from kernel header files.
4079 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
4080 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
4082 2001-10-14 Ulrich Drepper <drepper@redhat.com>
4084 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
4085 to generate hexadecimal identifier.
4086 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
4088 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
4090 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
4092 2001-10-14 Ulrich Drepper <drepper@redhat.com>
4094 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
4095 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
4096 Contributed by Stephen L Moshier <moshier@mediaone.net>.
4098 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
4099 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4100 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
4101 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
4102 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
4103 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
4105 * timezone/africa: Update from tzdata2001d.
4106 * timezone/asia: Likewise.
4107 * timezone/australasia: Likewise.
4108 * timezone/backward: Likewise.
4109 * timezone/europe: Likewise.
4110 * timezone/leapseconds: Likewise.
4111 * timezone/northamerica: Likewise.
4112 * timezone/southamerica: Likewise.
4113 * timezone/zone.tab: Likewise.
4115 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4117 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
4118 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
4120 2001-10-12 Ulrich Drepper <drepper@redhat.com>
4122 * elf/elf.h (PT_TLS): New definition.
4124 2001-10-10 Jeff Bailey <jbailey@nisa.net>
4126 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
4129 2001-10-07 Roland McGrath <roland@frob.com>
4131 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
4133 2001-10-10 Ulrich Drepper <drepper@redhat.com>
4135 * elf/elf.h: Add more ELFOSABI_* constants.
4137 2001-10-04 Ben Collins <bcollins@debian.org>
4139 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
4140 decleration of __need_wchar_t.
4142 2001-10-03 Jakub Jelinek <jakub@redhat.com>
4144 * string/bits/string2.h (__strsep_g): Add prototype.
4146 * string/Versions (__strsep): Remove.
4147 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
4149 2001-10-07 Ulrich Drepper <drepper@redhat.com>
4151 * manua/llio.texi: Clarify file references added by mmap.
4152 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
4154 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
4156 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
4157 Add sc_loadrs and sc_rbs_bas to match current kernel.
4159 2001-09-27 Jakub Jelinek <jakub@redhat.com>
4161 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
4163 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
4165 2001-09-27 Jakub Jelinek <jakub@redhat.com>
4167 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
4168 object has been bumped because of relocation dependency, avoid
4169 duplicates in l_scope.
4170 (show_scope): Fix typos.
4171 * elf/Makefile: Add rules to build and run reldep6.
4172 * elf/reldep6.c: New file.
4173 * elf/reldep6mod0.c: New file.
4174 * elf/reldep6mod1.c: New file.
4175 * elf/reldep6mod2.c: New file.
4176 * elf/reldep6mod3.c: New file.
4177 * elf/reldep6mod4.c: New file.
4179 2001-09-26 Jakub Jelinek <jakub@redhat.com>
4181 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
4183 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
4184 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
4185 for non-lazy binding. Fix .plt[32768+] handling.
4186 (elf_machine_plt_value): Don't add addend.
4187 (elf_machine_rela): Call sparc64_fixup_plt instead of
4188 elf_machine_fixup_plt.
4189 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
4190 dynamic linker at 0xfffff800XXXXXXXX.
4192 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
4194 2001-09-28 Ulrich Drepper <drepper@redhat.com>
4196 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
4198 2001-09-25 Jakub Jelinek <jakub@redhat.com>
4200 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
4201 declare __cmsg_data field if its size would be bigger than 0.
4202 (CMSG_DATA): Adjust accordingly.
4203 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
4204 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
4205 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
4206 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
4207 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4208 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
4209 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4211 2001-09-25 Ulrich Drepper <drepper@redhat.com>
4213 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
4214 * iconvdata/testdata/IBM1160: New file.
4215 * iconvdata/testdata/IBM1160..UTF8: New file.
4216 * iconvdata/testdata/IBM1161: New file.
4217 * iconvdata/testdata/IBM1161..UTF8: New file.
4218 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4220 2001-09-24 Ulrich Drepper <drepper@redhat.com>
4222 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
4223 UL_SETFSIZE computations better.
4225 * rt/Makefile: Remove use of filter for librt again.
4227 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
4228 UL_SETFSIZE computations better.
4230 * string/Versions: Export __strsep for GLIBC_2.2.5.
4231 * string/bits/string2.h: Define all __STRING_INLINE functions if
4232 _FORCE_INLINES is defined.
4233 Use int instead of char of parameter types.
4234 (__strsep): Don't use __strsep_g. Don't define it.
4235 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
4236 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
4238 (__stpcpy_a_small): Renamed from __stpcpy_small.
4239 (__strcspn_c1): Don't define if _FORCE_INLINES.
4240 (__strspn_c1): Likewise.
4242 2001-09-22 Ben Collins <bcollins@debian.org>
4244 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
4245 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
4246 * sysdeps/ia64/bits/sigaction.h: Likewise.
4247 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
4249 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
4251 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
4253 2001-09-24 Jakub Jelinek <jakub@redhat.com>
4255 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
4257 2001-09-24 Ulrich Drepper <drepper@redhat.com>
4259 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
4261 2001-09-20 H.J. Lu <hjl@gnu.org>
4263 * include/dlfcn.h (__RTLD_SPROF): New definiton.
4264 * elf/dl-open.c (dl_open_worker): Return immediately after loading
4266 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
4267 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
4269 2001-09-20 H.J. Lu <hjl@gnu.org>
4271 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
4274 2001-09-22 Ulrich Drepper <drepper@redhat.com>
4276 * nss/getent.c: Accept -s parameter to overwrite rules in
4277 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
4279 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
4280 with as many ".0" as necessary to form a complete address
4281 inet_network understands.
4283 * nss/getent.c: Various cleanups. Use simpler and fewer function
4286 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
4288 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
4290 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
4292 2001-09-22 Ulrich Drepper <drepper@redhat.com>
4294 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
4296 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
4297 * iconvdata/ibm1160.c: New file.
4298 * iconvdata/ibm1160.h: New file.
4299 * iconvdata/ibm1161.c: New file.
4300 * iconvdata/ibm1161.h: New file.
4301 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4303 2001-09-19 Jakub Jelinek <jakub@redhat.com>
4305 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
4306 difference between base address and first PT_LOAD's virtual address,
4307 not the base address.
4309 2001-09-11 Tom Rix <trix@redhat.com>
4311 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
4312 ifdef for __getopt_clean_environment.
4313 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
4315 2001-09-22 Andreas Jaeger <aj@suse.de>
4317 * elf/reldep4.c (main): Add proper prototype to fix warning.
4319 * elf/reldep5.c (main): Remove unused variable.
4321 * math/math_private.h: Add prototypes.
4323 2001-09-21 Andreas Jaeger <aj@suse.de>
4325 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
4326 * sysdeps/x86_64/Dist: New file.
4327 * sysdeps/x86_64/soft-fp/Dist: New file.
4329 * sysdeps/gnu/Dist: Remove eval.c.
4331 2001-09-20 Ulrich Drepper <drepper@redhat.com>
4333 * malloc/memusage.c (realloc): Don't count already allocated
4335 (me): Always use dlsym() to find the real implementations.
4337 * malloc/memusage.sh: Make -n option actually do something.
4339 2001-09-20 Andreas Jaeger <aj@suse.de>
4341 * elf/elf.h (R_390_NUM): Correct value.
4343 * Versions.def: Add missing versions 2.2.3 for libthread_db and
4346 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
4347 for x86-64, install x86-64 into */lib64.
4349 * shlib-versions: Add x86-64.
4351 * elf/elf.h: Add x86-64 relocations.
4353 2001-09-19 Ulrich Drepper <drepper@redhat.com>
4355 * po/fr.po: Update from translation team.
4357 2001-09-19 Andreas Jaeger <aj@suse.de>
4359 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
4360 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
4361 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
4362 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
4363 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
4364 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
4365 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
4366 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
4367 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
4368 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
4369 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
4370 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
4371 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
4372 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
4373 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
4374 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
4375 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
4376 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
4377 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
4378 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
4379 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
4380 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
4381 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
4382 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
4383 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
4384 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
4385 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
4386 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
4387 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
4388 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
4389 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
4390 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
4391 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
4392 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
4393 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
4394 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
4395 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
4396 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
4397 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
4398 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
4399 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
4400 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
4401 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
4402 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
4403 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
4404 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
4405 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
4406 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
4407 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
4408 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
4409 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
4410 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
4411 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
4412 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
4413 * sysdeps/unix/x86_64/sysdep.S: New file.
4414 * sysdeps/unix/x86_64/sysdep.h: New file.
4415 * sysdeps/x86_64/Implies: New file.
4416 * sysdeps/x86_64/Makefile: New file.
4417 * sysdeps/x86_64/Versions: New file.
4418 * sysdeps/x86_64/__longjmp.S: New file.
4419 * sysdeps/x86_64/abort-instr.h: New file.
4420 * sysdeps/x86_64/atomicity.h: New file.
4421 * sysdeps/x86_64/bits/endian.h: New file.
4422 * sysdeps/x86_64/bits/setjmp.h: New file.
4423 * sysdeps/x86_64/bits/string.h: New file.
4424 * sysdeps/x86_64/bp-asm.h: New file.
4425 * sysdeps/x86_64/bsd-_setjmp.S: New file.
4426 * sysdeps/x86_64/bsd-setjmp.S: New file.
4427 * sysdeps/x86_64/dl-machine.h: New file.
4428 * sysdeps/x86_64/elf/initfini.c: New file.
4429 * sysdeps/x86_64/elf/start.S: New file.
4430 * sysdeps/x86_64/ffs.c: New file.
4431 * sysdeps/x86_64/ffsll.c: New file.
4432 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
4433 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
4434 * sysdeps/x86_64/fpu/e_acosl.c: New file.
4435 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
4436 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
4437 * sysdeps/x86_64/fpu/e_expl.c: New file.
4438 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
4439 * sysdeps/x86_64/fpu/e_log10l.S: New file.
4440 * sysdeps/x86_64/fpu/e_log2l.S: New file.
4441 * sysdeps/x86_64/fpu/e_logl.S: New file.
4442 * sysdeps/x86_64/fpu/e_powl.S: New file.
4443 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
4444 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
4445 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
4446 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
4447 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
4448 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
4449 * sysdeps/x86_64/fpu/fegetenv.c: New file.
4450 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
4451 * sysdeps/x86_64/fpu/fegetround.c: New file.
4452 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
4453 * sysdeps/x86_64/fpu/fesetenv.c: New file.
4454 * sysdeps/x86_64/fpu/fesetround.c: New file.
4455 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
4456 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
4457 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
4458 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
4459 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
4460 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
4461 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
4462 * sysdeps/x86_64/fpu/s_atanl.c: New file.
4463 * sysdeps/x86_64/fpu/s_cosl.S: New file.
4464 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
4465 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
4466 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
4467 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
4468 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
4469 * sysdeps/x86_64/fpu/s_logbl.c: New file.
4470 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
4471 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
4472 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
4473 * sysdeps/x86_64/fpu/s_rintl.c: New file.
4474 * sysdeps/x86_64/fpu/s_significandl.c: New file.
4475 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
4476 * sysdeps/x86_64/fpu/s_sinl.S: New file.
4477 * sysdeps/x86_64/fpu/s_tanl.S: New file.
4478 * sysdeps/x86_64/gmp-mparam.h: New file.
4479 * sysdeps/x86_64/hp-timing.c: New file.
4480 * sysdeps/x86_64/hp-timing.h: New file.
4481 * sysdeps/x86_64/htonl.S: New file.
4482 * sysdeps/x86_64/memusage.h: New file.
4483 * sysdeps/x86_64/setjmp.S: New file.
4484 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
4485 * sysdeps/x86_64/stackinfo.h: New file.
4486 * sysdeps/x86_64/sysdep.h: New file.
4487 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
4489 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
4492 2001-09-18 Ulrich Drepper <drepper@redhat.com>
4494 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
4495 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
4497 2001-09-18 Andreas Schwab <schwab@suse.de>
4499 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
4500 list, now that l_scope is a pointer.
4502 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
4505 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
4507 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
4508 (elf_machine_rela_relative): Add a missing declaration.
4510 2001-09-18 Jakub Jelinek <jakub@redhat.com>
4512 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
4513 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
4514 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
4515 ldd-rewrite scripts.
4517 2001-09-18 Ulrich Drepper <drepper@redhat.com>
4519 * elf/ldd.bash.in: Update copyright message.
4521 2001-09-17 H.J. Lu <hjl@gnu.org>
4523 * hurd/hurdmalloc.c (bcopy): Removed.
4524 (realloc): Replace bcopy with memcpy.
4525 * hurd/path-lookup.c (file_name_path_scan): Likewise.
4526 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
4527 * sunrpc/rpcinfo.c (pmapdump): Likewise.
4529 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
4530 (gethostbyaddr): Likewise.
4531 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
4533 2001-09-18 Ulrich Drepper <drepper@redhat.com>
4535 * sysdeps/gnu/eval.c: Removed.
4537 2001-09-18 Andreas Jaeger <aj@suse.de>
4539 * sysdeps/i386/fpu/s_logbl.S: Move to ...
4540 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
4542 * sysdeps/i386/fpu/s_rintl.S: Move to ...
4543 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
4545 * sysdeps/i386/fpu/s_significandl.S: Move to ...
4546 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
4548 2001-09-16 Ulrich Drepper <drepper@redhat.com>
4550 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
4553 2001-09-14 H.J. Lu <hjl@gnu.org>
4555 * sysdeps/mips/fpu/libm-test-ulps: Updated.
4557 2001-09-14 Ulrich Drepper <drepper@redhat.com>
4559 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
4560 Patch by Florian La Roche <laroche@redhat.com>.
4562 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
4564 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
4567 2001-09-14 Andreas Schwab <schwab@suse.de>
4569 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
4570 Sumner <bls@sgi.com>.
4571 * posix/execlp.c: Likewise.
4573 2001-09-13 Jakub Jelinek <jakub@redhat.com>
4575 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
4576 is already found earlier in the search scope.
4578 2001-09-12 Jakub Jelinek <jakub@redhat.com>
4580 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
4583 2001-09-13 Ulrich Drepper <drepper@redhat.com>
4585 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
4587 2001-09-12 Ulrich Drepper <drepper@redhat.com>
4589 * config.h.in: Enforce optimization to be used.
4590 * Makeconfig (preprocess-versions): Define ASSEMBLER.
4591 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
4592 * posix/Makefile (annexc-CFLAGS): Define to -O.
4593 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
4595 2001-09-11 Ulrich Drepper <drepper@redhat.com>
4597 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
4598 Patch by Stephan Kulow.
4600 2001-09-08 Ben Collins <bcollins@debian.org>
4602 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
4603 usage of RESOLVE() (r_type, not reloc->r_type).
4605 2001-09-08 Ulrich Drepper <drepper@redhat.com>
4607 * elf/dl-object.c: Avoid allocating extra memory block for name.
4608 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
4609 allocated separately.
4610 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
4612 2001-09-08 H.J. Lu <hjl@gnu.org>
4614 * po/zh_TW.po: Fix a typo.
4616 2001-09-07 Tom Rix <trix@redhat.com>
4618 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
4620 2001-08-26 Tom Rix <trix@redhat.com>
4622 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
4623 command line options.
4624 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
4625 * sysdeps/unix/sysv/aix/start.c: Removed.
4626 * sysdeps/unix/sysv/aix/start-libc.c: New file.
4627 * sysdeps/unix/sysv/aix/init-first.c: New file.
4628 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
4630 2001-09-08 Ben Collins <bcollins@debian.org>
4632 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
4633 * sysdeps/generic/dl-machine.h: Likewise.
4634 * sysdeps/hppa/dl-fptr.c: Likewise.
4635 * sysdeps/ia64/dl-fptr.c: Likewise.
4636 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4637 * sysdeps/mips/dl-machine.h: Likewise.
4638 * sysdeps/mips/mips64/dl-machine.h: Likewise.
4639 * sysdeps/powerpc/dl-machine.c: Likewise.
4641 2001-09-07 Ben Collins <bcollins@debian.org>
4643 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
4645 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
4647 2001-09-08 Ulrich Drepper <drepper@redhat.com>
4649 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
4650 dependencies if necessary.
4652 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
4653 loaded directly) determine length if l_initfini list by iterating
4654 over its elements. Minor optimizations.
4655 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
4656 for dependency objects.
4657 If object was already loaded check whether any of the dependencies
4658 is already on the relocation dependency list. If yes, remove the
4659 latter. Minor optimizations.
4660 * elf/dl-lookup.c (add_dependency): Add check for self reference of
4661 maps here. Search l_initfini list only if the object was loaded
4662 directly and not only as a dependency.
4663 (_dl_lookup_symbol): Add relocation dependency also if object
4664 is not in global scope. Remove test for self-reference here.
4665 (_dl_lookup_versioned_symbol): Likewise.
4666 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
4667 element of first name record.
4668 * elf/loadtest.c: Add some more test to recognize early if an object
4670 * elf/Makefile: Add rules to build and run reldep5.
4671 * elf/reldep5.c: New file.
4672 * elf/reldepmod5.c: New file.
4673 * elf/reldepmod6.c: New file.
4675 * elf/reldep2.c: Fix typo.
4677 2001-09-07 Ulrich Drepper <drepper@redhat.com>
4679 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
4680 elements. Change l_scope to be a pointer only.
4681 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
4682 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
4683 here add searchlist of newly open file to the dependency's scope.
4684 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
4685 only searchlist from its scope. Free own scope array if necessary.
4686 * elf/Makefile (tests): Add dblload and dblunload now.
4688 2001-09-06 Andreas Jaeger <aj@suse.de>
4690 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
4693 2001-09-05 Ulrich Drepper <drepper@redhat.com>
4695 * elf/Makefile: Add rules to build new tests. Don't run them yet since
4697 * elf/dblload.c: New file.
4698 * elf/dblloadmod1.c: New file.
4699 * elf/dblloadmod2.c: New file.
4700 * elf/dblloadmod3.c: New file.
4701 * elf/dblunload.c: New file.
4703 2001-09-04 Richard Henderson <rth@redhat.com>
4705 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
4706 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
4708 2001-09-04 Ulrich Drepper <drepper@redhat.com>
4710 Correct very misleading message for error in failed runtime relocation.
4711 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
4713 (_dl_signal_cerror): Likewise.
4714 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
4715 * elf/dl-close.c: Likewise.
4716 * elf/dl-deps.c: Likewise.
4717 * elf/dl-load.c: Likewise.
4718 * elf/dl-lookup.c: Likewise.
4719 * elf/dl-open.c: Likewise.
4720 * elf/dl-reloc.c: Likewise.
4721 * elf/dl-sym.c: Likewise.
4722 * elf/dl-version.c: Likewise.
4723 * sysdeps/generic/dl-sysdep.c: Likewise.
4725 2001-09-04 Jakub Jelinek <jakub@redhat.com>
4727 * iconv/strtab.c (strtabinit): Initialize null Strent.
4728 (newstring): Move len == 0 handling...
4729 (strtabadd): ...here.
4730 If len == 1, return null Strent.
4731 When inserting a suffix of an existing string, check if
4732 it is not equal to some suffix already recorded.
4733 Copy left and right members over if adding longer string.
4735 2001-09-04 Jakub Jelinek <jakub@redhat.com>
4737 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
4739 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
4740 (__syscall_gethostname): Add prototype.
4742 2001-09-04 Ulrich Drepper <drepper@redhat.com>
4744 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
4746 2001-09-02 Ulrich Drepper <drepper@redhat.com>
4748 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
4750 2001-08-27 Roland McGrath <roland@frob.com>
4752 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
4753 short, copy that much into NAME anyway before returning error.
4755 2001-09-01 Richard Henderson <rth@redhat.com>
4757 * sysdeps/alpha/elf/Dist: Remove file.
4758 * sysdeps/alpha/elf/Makefile: Remove file.
4759 * sysdeps/alpha/elf/crtbegin.S: Remove file.
4760 * sysdeps/alpha/elf/crtend.S: Remove file.
4761 * sysdeps/alpha/elf/initfini.c: New file.
4763 2001-09-01 Mark Kettenis <kettenis@gnu.org>
4765 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
4766 * iconv/tst-iconv3.c: Likewise.
4768 2001-09-01 Jakub Jelinek <jakub@redhat.com>
4770 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
4772 2001-09-01 Ulrich Drepper <drepper@redhat.com>
4774 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
4776 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
4777 * iconv/iconv_prog.c (insert_cache): New function.
4778 (print_known_names): If cache is used call insert_cache to use the
4779 information from the cache [PR libc/2509].
4781 2001-08-31 Ulrich Drepper <drepper@redhat.com>
4783 * time/strptime.c (strptime_internal): Recognize 'l' format and
4784 handle it like 'I' for symmetry with strftime.
4786 2001-08-31 Richard Henderson <rth@redhat.com>
4788 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
4789 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
4790 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
4791 (print_statistics): Make scalar unsigned long long.
4792 * sysdeps/alpha/hp-timing.h: New file.
4794 2001-08-31 Jakub Jelinek <jakub@redhat.com>
4796 * stdio-common/perror.c (perror): Save errno early, pass it
4797 down to perror_internal.
4798 (perror_internal): Add errnum argument.
4800 2001-08-31 Jakub Jelinek <jakub@redhat.com>
4802 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
4803 Don't add old memory content for R_ALPHA_REFQUAD.
4805 2001-08-30 Ulrich Drepper <drepper@redhat.com>
4807 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
4810 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
4811 instead of open, __close instead of close, __getpagesize instead
4814 * string/argz-stringify.c (__argz_stringify): Use __strnlen
4816 * include/string.h (strndupa): Redefine here to use __strnlen
4818 * string/strndup.c (__strndup): Use __strnlen not strnlen.
4820 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
4823 2001-08-30 Jakub Jelinek <jakub@redhat.com>
4825 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
4826 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
4827 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4828 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
4829 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
4830 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
4831 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
4833 2001-08-30 Ulrich Drepper <drepper@redhat.com>
4835 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
4837 2001-08-30 Andreas Jaeger <aj@suse.de>
4839 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
4840 contributed Stephen L Moshier.
4842 2001-08-30 Jakub Jelinek <jakub@redhat.com>
4844 * sunrpc/etc.rpc (sgi_fam): Add.
4846 2001-08-30 Ulrich Drepper <drepper@redhat.com>
4848 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
4850 2001-08-29 Ulrich Drepper <drepper@redhat.com>
4852 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
4853 first is from a previous call.
4854 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
4856 2001-08-29 Andreas Schwab <schwab@suse.de>
4858 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
4860 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4862 * config.make.in (INSTALL_SCRIPT): Define.
4863 * Makeconfig (INSTALL_SCRIPT): Define.
4864 * Makerules (do-install-script): New macro to install scripts using
4866 (install-bin-script): New rule to install scripts with
4868 (install-bin-script-nosubdir): New rule.
4869 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
4870 (distinfo-vars): Add $(install-bin-script).
4871 * Rules (others): Likewise.
4872 * Makefile (glibcbug): Install with install-bin-script.
4873 * debug/Makefile (xtrace): Likewise.
4874 (catchsegv): Likewise.
4875 * elf/Makefile (ldd): Likewise.
4876 * malloc/Makefile (mtrace): Likewise.
4877 * timezone/Makefile (tzselect): Likewise.
4879 2001-08-29 H.J. Lu <hjl@gnu.org>
4881 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
4882 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
4883 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
4885 2001-08-29 Andreas Schwab <schwab@suse.de>
4887 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
4889 2001-08-28 H.J. Lu <hjl@gnu.org>
4891 * Makeconfig (combreloc-LDFLAGS): New variable.
4892 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
4893 * config.make.in (have-z-combreloc): New variable.
4894 * configure.in: Substitute libc_cv_z_combreloc.
4896 2001-08-29 Ulrich Drepper <drepper@redhat.com>
4898 * po/sv.po: Update from translation team.
4899 * po/fr.po: Likewise.
4900 * po/da.po: Likewise.
4902 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4904 * Makerules: Fix a typo: MD% -> MD5.
4906 2001-08-28 Ulrich Drepper <drepper@redhat.com>
4908 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
4909 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
4911 2001-08-28 Andreas Jaeger <aj@suse.de>
4913 * manual/libc-texinfo.sh: Add entry about free manuals.
4915 * manual/contrib.texi (Contributors): Fix cross reference.
4917 * manual/libc.texinfo (Copying): Include freemanuals.
4919 * manual/Makefile (appendices): Add freemanuals.
4921 * manual/freemanuals.texi: New file.
4922 Patch by Brian Youmans <3diff@gnu.org>.
4924 * manual/libm-err-tab.pl: Pretty print more platforms, print a
4927 * manual/math.texi (Errors in Math Functions): Fix grammar, start
4928 table on separate page.
4929 Patch by Brian Youmans <3diff@gnu.org>.
4931 2001-08-27 Ulrich Drepper <drepper@redhat.com>
4933 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
4934 the connection went down after we first used it try to connect
4935 again and resend the message before printing to the console.
4936 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
4938 2001-08-27 Jakub Jelinek <jakub@redhat.com>
4940 * string/tst-strlen.c (main): Test strnlen (, -1) too.
4941 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
4944 2001-08-27 Ulrich Drepper <drepper@redhat.com>
4946 * iconv/strtab.c (searchstring): Use correct length for comparison.
4947 (strtabadd): Account total size correct if new string has old string as
4950 2001-08-27 Jakub Jelinek <jakub@redhat.com>
4952 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
4954 2001-08-27 Andreas Jaeger <aj@suse.de>
4956 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
4958 * math/libm-test.inc (j0_test): Add extra tests.
4959 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
4960 not x, in Hankel approximation.
4961 Patches by Stephen L Moshier.
4963 2001-08-26 Ulrich Drepper <drepper@redhat.com>
4965 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
4968 * configure.in: Fix test for .rela.dyn section.
4970 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
4972 2001-08-26 Jakub Jelinek <jakub@redhat.com>
4974 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
4975 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
4976 Pass type_class to _dl_lookup_*.
4977 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
4978 Pass around just type_class instead of noexec, noplt pair.
4979 (_dl_lookup_versioned_symbol): Likewise.
4980 (_dl_lookup_symbol_skip): Pass around just type_class instead of
4982 (_dl_lookup_versioned_symbol_skip): Likewise.
4983 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
4984 * elf/do-lookup.h (do_lookup): Likewise.
4985 * include/link.h (struct link_map): Replace noexec and noplt fields
4986 in l_lookup_cache with type_class field.
4987 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
4988 ELF_RTYPE_CLASS_COPY): Define.
4989 Adjust prototypes for _dl_lookup_symbol and
4990 _dl_lookup_versioned_symbol.
4991 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
4992 elf_machine_lookup_noexec_p): Remove.
4993 (elf_machine_type_class): Define.
4994 * sysdeps/arm/dl-machine.h: Likewise.
4995 * sysdeps/hppa/dl-machine.h: Likewise.
4996 * sysdeps/cris/dl-machine.h: Likewise.
4997 * sysdeps/i386/dl-machine.h: Likewise.
4998 * sysdeps/ia64/dl-machine.h: Likewise.
4999 * sysdeps/m68k/dl-machine.h: Likewise.
5000 * sysdeps/mips/mips64/dl-machine.h: Likewise.
5001 * sysdeps/mips/dl-machine.h: Likewise.
5002 * sysdeps/powerpc/dl-machine.h: Likewise.
5003 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5004 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5005 * sysdeps/sh/dl-machine.h: Likewise.
5006 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5007 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5009 2001-08-26 Ulrich Drepper <drepper@redhat.com>
5011 * manual/message.texi (Advanced gettext functions): Change
5012 description of plural forms for Slovak.
5013 Reported by Marcel Telka <marcel@telka.sk>.
5015 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
5016 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
5018 2001-08-26 Jakub Jelinek <jakub@redhat.com>
5020 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
5021 typo. Patch by Florian La Roche <laroche@redhat.com>.
5023 2001-08-26 Ulrich Drepper <drepper@redhat.com>
5025 * include/link.h (struct link_map): Add l_lookup_cache element.
5026 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
5027 (RESOLVE_MAP): Likewise.
5028 (_dl_relocate_object): Remove cache initialization.
5029 * elf/dl-lookup.c: Rip out cache handling code.
5030 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
5033 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
5034 remove some __builtin_expect.
5035 (_dl_lookup_versioned_symbol): Likewise.
5037 * config.h.in: Add HAVE_Z_COMBRELOC.
5038 * configure.in: Add test for -z combreloc.
5040 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
5041 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
5042 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
5043 case to almost no code.
5045 2001-08-25 Ulrich Drepper <drepper@redhat.com>
5047 * po/tr.po: Update from translation team.
5049 2001-08-24 Andreas Jaeger <aj@suse.de>
5051 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
5054 2001-08-24 Ulrich Drepper <drepper@redhat.com>
5056 * elf/rtld.c (print_statistics): Printf % after percent values.
5057 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
5059 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
5060 don't have to compute the hash value and initialize current_value.
5061 Move reference_name variable to where it is needed.
5062 (_dl_lookup_versioned_symbol): Likewise.
5064 2001-08-24 Roland McGrath <roland@frob.com>
5066 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
5067 Just test that strerror returns non-null for a few errno codes.
5069 2001-08-23 Roland McGrath <roland@frob.com>
5071 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
5072 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
5074 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
5076 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
5079 2001-08-24 Ulrich Drepper <drepper@redhat.com>
5081 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
5084 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
5085 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
5087 * elf/rtld.c: Include <sys/param.h>.
5088 * elf/dl-reloc.c: Likewise.
5090 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5092 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
5093 empty to prevent junk from being generated.
5094 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
5096 2001-08-24 Jakub Jelinek <jakub@redhat.com>
5098 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
5099 records. Rename endrel to relative, initialize it to r, and use it
5100 in elf_machine_rel_relative calls. Point r after relative relocs.
5102 2001-08-24 Ulrich Drepper <drepper@redhat.com>
5104 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
5107 2001-08-24 Jakub Jelinek <jakub@redhat.com>
5109 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
5110 necessary. Undefine newly defined macros at the end.
5111 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
5112 Rename from elf_machine_rel_relative.
5113 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
5114 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
5115 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
5116 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
5118 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
5120 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
5122 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
5124 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
5125 Likewise. Fix argument types.
5126 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
5127 Likewise. Fix argument types.
5128 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
5130 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
5131 ElfW(Rel) in argument.
5132 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
5135 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
5137 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
5139 2001-08-24 Andreas Jaeger <aj@suse.de>
5141 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
5142 Stephen L Moshier <moshier@mediaone.net>.
5144 2001-08-24 Ulrich Drepper <drepper@redhat.com>
5146 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
5147 first if RELCOUNT is set.
5149 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
5150 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
5151 elf_machine_rel_relative.
5152 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
5153 Minor optimizations.
5154 * sysdeps/arm/dl-machine.h: Likewise.
5155 * sysdeps/cris/dl-machine.h: Likewise.
5156 * sysdeps/hppa/dl-machine.h: Likewise.
5157 * sysdeps/i386/dl-machine.h: Likewise.
5158 * sysdeps/ia64/dl-machine.h: Likewise.
5159 * sysdeps/m68k/dl-machine.h: Likewise.
5160 * sysdeps/mips/dl-machine.h: Likewise.
5161 * sysdeps/powerpc/dl-machine.h: Likewise.
5162 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5163 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5164 * sysdeps/sh/dl-machine.h: Likewise.
5165 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5166 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5168 2001-08-23 Roland McGrath <roland@frob.com>
5170 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
5172 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
5173 sysdeps/mach version. Implement counting ("recursive") mutexes
5174 on top of cthreads mutexes.
5175 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
5177 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
5178 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
5179 (__libc_cleanup_region_start, __libc_cleanup_region_end,
5180 __libc_clean_end): Define these to call the cleanup function after
5181 normal exit when they're supposed to.
5183 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
5184 Take new first arg DOIT, a boolean saying whether to really install
5185 any cleanup handler.
5186 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
5187 (__libc_cleanup_end): Likewise.
5188 * sysdeps/generic/bits/libc-lock.h: Same changes.
5189 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
5190 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
5191 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
5193 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
5194 * sysdeps/generic/bits/stdio-lock.h
5195 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
5197 2001-08-23 Jakub Jelinek <jakub@redhat.com>
5199 * elf/ldconfig.c (search_dir): Remove stale symlinks.
5201 2001-08-23 Jakub Jelinek <jakub@redhat.com>
5203 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
5204 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
5206 (_dl_lookup_versioned_symbol): Likewise.
5207 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
5209 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
5210 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
5211 (lookup_cache, lookup_cache_versioned): Add declarations.
5213 2001-08-23 Ulrich Drepper <drepper@redhat.com>
5215 * stdlib/tst-random.c (main): Swap parameters in fail call.
5216 Patch by Pete Bevin <pete@petebevin.com>.
5218 2001-08-23 Jakub Jelinek <jakub@redhat.com>
5220 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
5222 2001-08-23 Ulrich Drepper <drepper@redhat.com>
5224 * malloc/obstack.c: Indent preprocessor directives.
5225 Patch by Jim Meyering <meyering@ascend.com>.
5227 * po/ja.po: Update from translation team.
5229 2001-08-23 Roland McGrath <roland@frob.com>
5231 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
5233 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
5234 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
5236 2001-08-22 Roland McGrath <roland@frob.com>
5238 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
5239 __libc_lock_define_recursive.
5240 * elf/dl-open.c: Don't declare it here any more.
5241 * elf/dl-close.c: Likewise.
5242 * elf/dl-lookup.c: Likewise.
5243 * elf/dl-iteratephdr.c: Likewise.
5244 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
5245 __libc_lock_unlock_recursive.
5246 * elf/dl-close.c (_dl_close): Likewise
5247 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
5248 * elf/dl-open.c (_dl_open): Likewise
5250 * sysdeps/generic/bits/libc-lock.h
5251 (__libc_lock_define_recursive): New macro.
5252 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
5253 (_IO_lock_lock): Use __libc_lock_lock_recursive.
5254 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
5256 * conform/conformtest.pl (checknamespace): Sort the output list.
5258 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
5259 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
5260 definitions conditional on [__USE_XOPEN].
5262 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
5263 these unconditionally, not only use [__USE_BSD], so as to match
5264 the sysdeps/unix/sysv/linux files.
5266 2001-08-22 Ulrich Drepper <drepper@redhat.com>
5268 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
5271 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
5274 2001-08-22 Roland McGrath <roland@frob.com>
5276 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
5277 conditionalization of sa_handler/sa_sigaction member types to
5278 match the sysdeps/unix/sysv/linux file.
5280 2001-08-22 Ulrich Drepper <drepper@redhat.com>
5282 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
5283 symbol sizes a bit better.
5285 * sysdeps/ia64/strncpy.S: Complete rewrite.
5286 Contributed by Jakub Jelinek <jakub@redhat.com>.
5288 * string/stratcliff.c (main): Add strncpy test.
5290 2001-08-22 Roland McGrath <roland@frob.com>
5292 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
5293 and don't declare unsetenv or _environ directly.
5294 (unsetenv): Return int, not void. Use __environ instead of _environ.
5296 2001-08-01 Mark Kettenis <kettenis@gnu.org>
5298 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
5299 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
5300 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
5301 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
5302 test for cmsg struct size.
5304 2001-04-23 Paul Eggert <eggert@twinsun.com>
5306 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
5307 Rename __argc to ___argc in prototypes to avoid compatibility
5308 problems with systems that reserve the identifier "__argc".
5309 Similarly for __argv.
5311 2001-08-21 Roland McGrath <roland@frob.com>
5313 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
5315 * mach/Makefile (tests): Removed.
5316 * mach/hello.c: File removed.
5318 2001-08-22 Ulrich Drepper <drepper@redhat.com>
5320 * po/sv.po: Update from translation team.
5322 * stdio-common/vfscanf.c: Fix handling of %l[].
5323 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
5325 * libio/Makefile (tests): Add tst-sscanf.
5326 * libio/tst-sscanf.c: New file.
5328 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
5329 * malloc/mtrace.c (tr_where): dli_sname always points to a
5330 non-empty string if != NULL.
5331 Reported by Tim Janik <timj@gtk.org>.
5333 2001-08-22 Jakub Jelinek <jakub@redhat.com>
5335 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
5336 buf. Free resources on failure.
5337 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
5338 (makefd_xprt): Likewise.
5339 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
5340 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
5341 * sunrpc/auth_unix.c (authunix_create): Likewise.
5343 2001-08-21 Jakub Jelinek <jakub@redhat.com>
5345 * string/strnlen.c: Remove.
5346 * sysdeps/generic/strnlen.c: New file.
5347 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
5349 2001-08-21 Roland McGrath <roland@frob.com>
5351 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
5352 as a macro, not an extern inline function.
5354 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
5355 * Versions.def (libc): Add GLIBC_2.2.5 set.
5356 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
5357 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
5359 2001-08-20 Roland McGrath <roland@frob.com>
5361 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
5362 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
5364 2001-08-21 Ulrich Drepper <drepper@redhat.com>
5366 * string/bits/string2.h: Remove strnlen optimization here.
5367 * sysdeps/i386/i486/bits/string.h: Add it here.
5369 2001-08-21 Wolfram Gloger <wg@malloc.de>
5371 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
5373 2001-08-21 Ulrich Drepper <drepper@redhat.com>
5375 * po/gl.po: Update from translation team.
5377 2001-08-20 Ulrich Drepper <drepper@redhat.com>
5379 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
5380 * misc/err.c (convert_and_print): Likewise.
5382 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
5385 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
5387 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
5388 change of the gregset_t type.
5389 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
5391 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
5393 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
5395 2001-08-20 Ulrich Drepper <drepper@redhat.com>
5397 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
5399 * string/strnlen.c: Fix the implementation. We cannot use memchr.
5401 2001-08-18 Mark Kettenis <kettenis@gnu.org>
5403 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
5404 before calling the cthreads initialization code.
5406 2001-08-20 Ulrich Drepper <drepper@redhat.com>
5408 * argp/argp-help.c: Fix two problems introduced in last change.
5410 * include/dirent.h: Include <dirstream.h> first.
5412 2001-08-19 Ulrich Drepper <drepper@redhat.com>
5414 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
5416 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
5417 * sunrpc/xdr_rec.c: Likewise.
5418 * sunrpc/xdr_mem.c: Likewise.
5419 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
5420 * sunrpc/rpc_cmsg.c: Likewise.
5421 * sunrpc/getrpcport.c (getrpcport): Likewise.
5422 * sunrpc/clnt_simp.c (callrpc): Likewise.
5423 * sunrpc/clnt_gen.c (clnt_create): Likewise.
5424 * string/envz.c: Likewise.
5426 * po/ko.po: Update from translation team.
5428 * argp/argp-help.c: Handle wide oriented stderr stream.
5430 2001-08-18 Ulrich Drepper <drepper@redhat.com>
5432 * sysdeps/generic/strtol.c: Little optimizations. Add some
5435 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
5437 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
5438 * wcsmbs/wcwidth.c (wcwdith): Likewise.
5439 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
5441 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
5443 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
5445 * time/time.h (struct timespec): Use __time_t for tv_sec element.
5447 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
5448 wchar_t for function declarations and defintions.
5450 * misc/sys/select.h: Define __need_time_t before including <time.h>.
5451 Define suseconds_t if it hasn't happened yet.
5453 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
5455 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
5457 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
5460 * conform/data/stddef.h-data: Remove wint_t.
5462 * conform/conformtest.pl: Change namespace test to take #undef
5465 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
5467 * conform/data/sys/socket.h-data: Add sockatmark.
5469 2001-08-17 Ulrich Drepper <drepper@redhat.com>
5471 * io/fts.c: Update from recent BSD source.
5473 2001-08-17 Roland McGrath <roland@frob.com>
5475 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
5476 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
5479 2001-08-17 Ulrich Drepper <drepper@redhat.com>
5481 * locale/duplocale.c (__duplocale): Also initialize the special
5484 * conform/data/netdb.h-data: Adjust gai_strerror return type.
5486 2001-08-17 Andreas Jaeger <aj@suse.de>
5488 * misc/getpass.c: Include wchar.h for prototypes.
5489 * malloc/obstack.c: Likewise.
5491 2001-08-17 Ulrich Drepper <drepper@redhat.com>
5493 * sunrpc/svc_simple.c (universal): Use __write instead of write.
5495 * wcsmbs/wcscoll.c: Also define __wcscoll.
5496 * include/wchar.h: Declare __wcscoll.
5498 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
5499 * libio/vwprintf.c: Likewise.
5500 * libio/wprintf.c: Likewise.
5502 * iconv/gconv_cache.c: Use __munmap instead of munmap.
5504 2001-08-16 Ulrich Drepper <drepper@redhat.com>
5506 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
5508 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
5509 wcslen, and __wcscoll instead of wcscoll.
5511 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
5513 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
5514 __getuid instead of getuid.
5516 * stdio-common/perror.c (perror): Use __close instead of close.
5517 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
5518 * libio/freopen.c (freopen): Likewise.
5519 * libio/freopen64.c (freopen64): Likewise.
5521 * libio/tst-ungetwc2.c (main): Define str const.
5523 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
5524 * libio/fwprintf.c: Also define __fwprintf.
5525 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
5526 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
5527 * assert/assert-perr.c: Likewise.
5528 * assert/assert.c: Likewise.
5529 * gmon/gmon.c: Likewise.
5530 * inet/rcmd.c: Likewise.
5531 * malloc/obstack.c: Likewise.
5532 * misc/err.c: Likewise.
5533 * misc/error.c: Likewise.
5534 * misc/getpass.c: Likewise.
5535 * posix/getopt.c: Likewise.
5536 * resolv/res_hconf.c: Likewise.
5537 * stdio-common/perror.c: Likewise.
5538 * stdio-common/psignal.c: Likewise.
5539 * stdlib/fmtmsg.c: Likewise.
5540 * sunrpc/auth_unix.c: Likewise.
5541 * sunrpc/clnt_perr.c: Likewise.
5542 * sunrpc/clnt_tcp.c: Likewise.
5543 * sunrpc/clnt_udp.c: Likewise.
5544 * sunrpc/clnt_unix.c: Likewise.
5545 * sunrpc/svc_simple.c: Likewise.
5546 * sunrpc/svc_tcp.c: Likewise.
5547 * sunrpc/svc_udp.c: Likewise.
5548 * sunrpc/svc_unix.c: Likewise.
5549 * sunrpc/xdr.c: Likewise.
5550 * sunrpc/xdr_array.c: Likewise.
5551 * sunrpc/xdr_rec.c: Likewise.
5552 * sunrpc/xdr_ref.c: Likewise.
5553 * sysdeps/generic/wordexp.c: Likewise.
5555 * po/it.po: Update from translation team.
5557 * misc/err.c: Handle wide oriented stderr stream.
5559 2001-08-14 Tom Rix <trix@redhat.com>
5561 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
5562 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
5564 2001-08-13 Tom Rix <trix@redhat.com>
5566 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
5567 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
5570 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
5572 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
5573 Store the access registers to the ucontext structure.
5574 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
5577 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
5578 Load the access registers from the ucontext structure.
5579 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
5582 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
5583 offsets to the new ucontext layout.
5584 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
5586 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
5587 of the ucontext structure.
5588 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
5590 2001-08-15 Ulrich Drepper <drepper@redhat.com>
5592 * misc/error.c (error): Handle wide oriented stderr stream correctly.
5593 (error_at_line): Likewise.
5595 * stdio-common/perror.c (perror): Implement according to standard.
5596 The stream orientation must not be changed if the stream was not
5597 oriented before the call.
5598 * stdio-common/Makefile (tests): Add tst-perror.
5599 * stdio-common/tst-perror.c: New file.
5602 See ChangeLog.12 for earlier changes.