2002-09-02 Jakub Jelinek <jakub@redhat.com>
[glibc.git] / ChangeLog
blobfa8e13382a30fc06bdc46961d1d9b23717b4c1b3
1 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
3         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
4         as relocated.
6 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
8         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
10 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
12         * locale/localeinfo.h (struct locale_data): Add private.ctype.
13         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
14         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
15         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
16         (__wcsmbs_load_conv): Remove const from argument.
17         (_nl_cleanup_ctype): New proto.
18         (get_gconv_fcts): New function.
19         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
20         (__wcsmbs_to_wc): Rename back to...
21         (to_wc): ... this.
22         (__wcsmbs_gconv_fcts): Rename to...
23         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
24         (lock): Removed.
25         (__libc_setlocale_lock): New extern.
26         (__wcsmbs_load_conv): Remove const from argument.
27         Initialize new_category->private.ctype instead of a global
28         variable.
29         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
30         update_function_ptrs.  No locking is necessary.
31         (_nl_cleanup_ctype): New function.
32         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
33         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
34         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
35         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
36         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
37         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
38         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
39         * wcsmbs/wctob.c (wctob): Likewise.
40         * stdlib/mblen.c (mblen): Likewise.
41         * stdlib/mbtowc.c (mbtowc): Likewise.
42         * stdlib/wctomb.c (wctomb): Likewise.
43         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
44         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
45         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
46         Removed.
48 2002-09-02  Roland McGrath  <roland@frob.com>
50         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
52 2002-09-01  Roland McGrath  <roland@redhat.com>
54         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
55         Variable declarations removed.
56         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
57         these functions to replace them.
58         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
59         functions plus an indirection rather than the old global variables.
60         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
61         Macros removed.
62         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
63         inline functions.
64         * ctype/ctype-info.c: Revert last reversion back the other way.
65         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
66         Define real function versions of include/ctype.h inlines here.
67         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
68         __ctype_tolower_loc, __ctype_toupper_loc.
69         * locale/lc-ctype.c: Revert last reversion back the other way.
70         (_nl_postload_ctype): If current thread uses the global locale,
71         update its tsd vars.
72         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
73         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
74         CTYPE_TOLOWER, CTYPE_TOUPPER.
76         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
77         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
78         from __libc_tsd_threadvar_location.
79         (__libc_tsd_set, __libc_tsd_get): Update uses.
81 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
83         * ctype/ctype.h: Undo the patch before the last one.  Put back the
84         macro definitions for the standard functions to access the
85         classification and mapping arrays.
86         * include/ctype.h: Partly revert last patch.  Move the macro
87         definitions for the exported functions back to the public header.
88         #undef all the macros defined here before redefining.
89         * ctype/ctype-info.c: Revert last patch.
90         * locale/lc-ctype.c: Revert last patch.
92         * ctype/Makefile (routines): Add isctype.
93         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
94         * ctype/ctype.h: Add declaration of isctype.
95         * include/ctype.h: Declare __isctype.
96         * ctype/isctype.c: New file.
98 2002-09-01  Roland McGrath  <roland@redhat.com>
100         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
101         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
103         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
105         * locale/findlocale.c (_nl_remove_locale): Don't search in
106         _nl_locale_file_list if DATA->alloc is ld_archive.
107         Use _nl_unload_locale to do the rest of the work.
109         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
110         of new structure to UNDELETABLE.
112         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
113         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
114         towlower, towupper): Macros removed.
115         * ctype/ctype.h (__tobody): Put parens around macro argument.
116         (__isctype): Macro removed.
117         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
118         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
119         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
120         tolower, toupper): Macros and inlines removed.
121         * include/ctype.h [! NOT_IN_libc]
122         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
123         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
124         tolower, toupper): Define here instead, using _NL_CURRENT.
125         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
126         using _NL_CURRENT.
127         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
128         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
129         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
130         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
131         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
132         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
133         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
134         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
135         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
136         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
137         (ISSORTMASK): Update use.
138         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
139         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
140         (_nss_files_getENTNAME_r): Likewise.
141         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
142         Likewise.
144         * Makerules (all-nonlib): Renamed from all-tests.
145         Include $(others) here too.
146         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
147         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
148         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
149         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
150         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
151         the program modules via cppflags-iterator.mk.
152         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
153         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
155 2002-08-31  Roland McGrath  <roland@redhat.com>
157         * posix/tst-getconf.sh: If no third arg, work with static linking.
159         * locale/categories.def (LC_TIME): No more _nl_postload_time.
161         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
162         [_NL_CURRENT_INDIRECT].
164 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
166         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
168 2002-08-31  Roland McGrath  <roland@redhat.com>
170         * locale/newlocale.c (__newlocale): Don't use strdup for names.
171         Instead, make the single allocation of the structure larger to hold
172         the name strings.
173         * locale/duplocale.c (__duplocale): Don't strdup names individually.
174         Instead, calculate size for a single allocation and copy into it.
175         * locale/freelocale.c (__freelocale): Don't free names individually.
177         * locale/newlocale.c (__newlocale): Don't leak old data or names.
179         * locale/xlocale.h (__locale_struct): Move __names member last,
180         for binary compatibility.
182         * locale/duplocale.c (__duplocale): Free names from the right array.
184         * locale/uselocale.c (__uselocale): Return previous locale when
185         setting a new one.
187         * locale/newlocale.c: Commit changes from 2002-08-30
188         batch where I failed to commit this file:
189         (__newlocale): Fill in __names array.
191 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
193         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
194         errlist-compat.c if versioning==yes.
196 2002-08-31  Andreas Jaeger  <aj@suse.de>
198         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
199         external functions with hidden attribute.
200         (elf_machine_rela): Optimize.
202         * sysdeps/x86_64/memset.S: New file.
203         * sysdeps/x86_64/bzero.S: New file.
204         * sysdeps/x86_64/stpcpy.S: New file.
205         * sysdeps/x86_64/strcat.S: New file.
206         * sysdeps/x86_64/strchr.S: New file.
207         * sysdeps/x86_64/strcpy.S: New file.
208         * sysdeps/x86_64/strcspn.S: New file.
209         * sysdeps/x86_64/strlen.S: New file.
210         * sysdeps/x86_64/strpbrk.S: New file.
211         * sysdeps/x86_64/strspn.S: New file.
212         * sysdeps/x86_64/strcmp.S: New file.
213         * sysdeps/x86_64/strtok_r.S: New file.
214         * sysdeps/x86_64/strtok.S: New file.
215         * sysdeps/x86_64/memcpy.S: New file.
216         * sysdeps/x86_64/mempcpy.S: New file.
218         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
220         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
222 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
224         * stdio-common/Makefile (generated): Add errlist-compat.c.
226         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
228         * locale/localeinfo.h: Pretty printing.
230         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
231         form_number handling.
233 2002-08-31  Andreas Jaeger  <aj@suse.de>
235         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
236         double tests.
238         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
239         __start_context.
241         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
243         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
245         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
246         registers used for passing args.
248         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
249         all needed registers.
251         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
252         registers.
254         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
255         registers.
257 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
259         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
260         always_inline attribute.
262 2002-08-30  Roland McGrath  <roland@redhat.com>
264         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
265         presume it's the stub and bail without error.
267         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
268         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
270         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
272         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
273         macros replace the i686 versions for 64-bit mode.
275         * locale/duplocale.c: Include <string.h>.
277         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
278         [_LIBC] (category_to_name): Don't define the function.  Instead
279         define a macro using _nl_category_names.
281         * locale/xlocale.h (struct __locale_struct): New member `__names'.
282         * locale/xlocale.c (_nl_C_locobj): Update initializer.
283         * locale/global-locale.c (_nl_global_locale): Likewise.
284         * locale/duplocale.c (__duplocale): strdup __names elements.
285         * locale/freelocale.c (__freelocale): Free __names elements.
286         * locale/localename.c (_nl_current_names): Variable removed.
287         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
288         * locale/localeinfo.h (_nl_current_names): Removed decl.
289         * locale/setlocale.c: Use _nl_global_locale->__names in place of
290         _nl_current_names throughout.
292         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
294         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
295         and sys_nerr in the output file.
297         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
298         * scripts/cpp: Just use the environment variable.
300         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
301         * libio/tst-mmap-offend.c (do_test): Likewise.
302         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
303         * libio/tst-mmap-eofsync.c (do_test): Likewise.
304         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
306         * locale/localename.c: If the current locale is the global locale, use
307         _nl_current_names; otherwise use the locale object.
309 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
311         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
312         'm' to enable mmap I/O.
313         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
314         former wasn't used (anymore?).
315         (_IO_FLAGS2_MMAP): New define.
316         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
317         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
318         _IO_FLAGS2_MMAP bit is set.
319         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
320         Enable mmap-using mode only if 'm' was set.
322 2002-08-29  Roland McGrath  <roland@frob.com>
324         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
326         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
327         Change argument type from int to intptr_t.
329         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
330         initializer on [! _HURD_THREADVAR_H] (bad kludge).
331         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
332         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
333         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
335         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
337         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
339         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
341         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
342         * assert/assert-perr.c: Add libc_hidden_def.
343         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
345         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
346         found at all.
347         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
348         sys_errlist stuff to ...
349         * sysdeps/unix/sysv/linux/Versions: ... here.
351         * mach/mach.h: Include <features.h>.
353 2002-08-29  Roland McGrath  <roland@redhat.com>
355         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
356         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
357         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
359         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
361         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
362         (norm_add_slashes): alloca -> __alloca
364 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
366         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
367         string_malloced, it is unlikely to be set.
368         Only call free with non-NULL workspace.
369         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
370         -mcpu=ultrasparc, not only tune for it.
371         (ASFLAGS*): Set unconditionally.
373         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
374         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
375         p_vaddr/p_offset when computing LOADADDR.
377 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
379         * version.h (VERSION): Bump to 2.2.92.
381         * time/Makefile (tst-ftime_l-ENV): New variable.
383         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
385         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
386         <U017A>, <U017D> and <U0179>. Add missing mappings.
387         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
389         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
390         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
391         (struct tostruct): Use ACRINDEX as type for link field.
392         (statuc gmonparam): Likewise for froms.
393         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
394         kcount and froms.
395         (write_call_graph): Use correct type for from_index and to_index.
396         * gmon/mcount.c: Use correct types for frompcindex and toindex
397         variables.
398         Patches by Dan Kegel <dank@kegel.com>.
400         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
401         canonical name.
403         * time/strptime.c (ISSPACE): New #define.  Use isspace or
404         __isspace_l.  Replace calls to isspace.
405         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
407 2002-08-29  Roland McGrath  <roland@redhat.com>
409         * string/tst-strxfrm.c: Remove __ from function names.
411 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
413         * include/wchar.h: Declare __mbsrtowcs_l.
414         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
415         * wcsmbs/mbsrtowcs.c: Add support for compilation with
416         USE_IN_EXTENDED_LOCALE_MODEL.
417         * wcsmbs/mbsrtowcs_l: New file.
418         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
419         define as static.  Change all uses.
420         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
421         Change all callers.
422         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
423         * time/strftime.c: When translating for the extended locale model
424         use the _l functions.
425         * time/Makefile (tests): Add tst-ftime_l.
426         * time/tst-ftime_l.c: New file.
428 2002-08-28  Roland McGrath  <roland@redhat.com>
430         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
431         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
432         from _nl_find_locale ok if for _nl_C_name.
434         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
435         iterator to refer to each category's _nl_current_LC_FOO symbol, so
436         we know they are all linked in.
438         * NEWS: Added 2.2.6 text from 2.2 branch version.
440         * time/strptime.c (strptime_internal): Remove spurious const.
442         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
443         _nl_select_era_entry): Moved to ...
444         * time/era.c: ... here, new file.
445         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
446         Add internal_function to definitions.  Take an additional argument
447         giving the `struct locale_data *' to use.
448         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
449         _nl_parse_alt_digit): Moved to ...
450         * time/alt_digit.c: ... here, new file.
451         * time/lc-time-cleanup.c: New file.
452         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
453         * locale/localeinfo.h (_nl_postload_time): Remove decl.
454         (_nl_cleanup_time): Declare it.
455         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
456         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
457         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
458         * time/strftime.c: Pass locale data to helper functions.
459         * time/strptime.c: Likewise.
461         * locale/localeinfo.h (struct locale_data): New member `private'
462         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
463         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
464         * locale/C-collate.c: Update initializer.
465         * locale/C-identification.c: Likewise.
466         * locale/C-measurement.c: Likewise.
467         * locale/C-telephone.c: Likewise.
468         * locale/C-address.c: Likewise.
469         * locale/C-name.c: Likewise.
470         * locale/C-paper.c: Likewise.
471         * locale/C-time.c: Likewise.
472         * locale/C-numeric.c: Likewise.
473         * locale/C-monetary.c: Likewise.
474         * locale/C-messages.c : Likewise.
475         * locale/C-ctype.c: Likewise.
477         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
478         Redefine this too.
480 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
482         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
483         (_rtld_global): Use it.
485         * sysdeps/gnu/Dist: Remove errlist-compat.c.
486         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
487         object directory.  Pass all Versions files to the awk script.
488         * sysdeps/gnu/errlist-compat.c: Removed.
489         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
490         first Versions file in the search path which has them.
491         Allow multiple errlist symbol versions to have the same count of
492         errors.
493         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
494         of "errlist-compat.c".
495         * sysdeps/gnu/errlist.c: Regenerated.
496         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
497         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
498         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
499         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
500         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
501         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
502         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
503         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
504         ECANCELLED if not defined by kernel headers.
505         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
506         already defined by kernel headers.
507         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
508         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
509         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
510         is a macro.
511         * Versions.def (GLIBC_2.3) [librt]: Add.
513         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
515 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
517         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
518         missing comma to .type directive.
520 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
522         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
523         unconditionally.
524         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
525         check.
526         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
528 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
530         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
531         check to close_and_out close.  Replace return NULL statements where
532         fd might be >= 0 with goto close_and_out.  Close the file descriptor
533         when it is no longer needed.
535 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
537         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
538         string constants.
539         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
540         * sysdeps/arm/dl-machine.h: Likewise.
541         * sysdeps/cris/dl-machine.h: Likewise.
542         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
543         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
545 2002-08-28  Roland McGrath  <roland@redhat.com>
547         * Makeconfig (default_cflags): Revert unintended change.
549 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
551         * version.h (VERSION): Bump to 2.2.91.
553         * configure.in: Disable TLS support by default for now.
555         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
557         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
558         warnings.
560         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
562         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
563         fprintf/fwprintf calls.
565 2002-08-28  Roland McGrath  <roland@redhat.com>
567         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
568         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
570         * locale/setlocale.c: Declare postload functions weak.
572         * elf/tst-tls1-static.c: New file.
573         * elf/tst-tls2-static.c: New file.
574         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
576         Make uselocale support static linking.
577         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
578         This file again just defines _nl_C_locobj.
579         (_nl_C_locobj): Use a categories.def iterator in the initializer.
580         * locale/global-locale.c: New file.  Define _nl_global_locale here,
581         using all weak references in the initializer.
582         * locale/Makefile (aux): Add global-locale.
583         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
584         these unconditional, along with the tsd decl.
585         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
586         Define it under these conditions.
587         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
588         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
589         `extern __thread struct locale_data *const *'.
590         [NL_CURRENT_INDIRECT]
591         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
592         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
593         the thread variable _nl_current_LC_FOO and also a special absolute
594         symbol _nl_current_LC_FOO_used.
595         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
596         Set each _nl_current_LC_FOO symbol to point into the new locale,
597         using weak references to test if _nl_current_LC_FOO_used was linked in.
598         * locale/setlocale.c [! SHARED]: Replace this conditional ...
599         [NL_CURRENT_INDIRECT]: ... with this one.
600         (_nl_current, _nl_C): Variables removed.
601         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
602         weak references to _nl_current_LC_FOO_used.
603         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
604         (free_category): New function, broken out of ...
605         (free_mem): ... here.  Call that.
606         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
607         instead of a loop.
609         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
610         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
611         it is already absolute.
613         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
614         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
615         [$(build-static) = yes] (tests-static): New variable.
616         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
618 2002-08-26  Christoph Hellwig  <hch@lst.de>
620         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
621         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
623 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
625         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
627         * sysdeps/s390/Dist: Add bits/link.h.
629         * sysdeps/sh/Dist: New file.
631         * sysdeps/ia64/Dist: Add ia64libgcc.S.
633         * sysdeps/wordsize-32/Dist: New file.
635         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
636         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
637         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
639         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
640         sys/personality.h.
642         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
643         sparc/dl-brk.S.
645         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
647         * sysdeps/unix/bsd/sun/Dist: New file.
649         * sysdeps/unix/bsd/osf/Dist: New file.
651         * sysdeps/unix/bsd/hp/Dist: New file.
653         * sysdeps/unix/arm/Dist: New file.
655         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
657         * sysdeps/mach/hurd/Dist: Add set-init.c.
659         * sysdeps/i386/Dist: Add bits/link.h.
661         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
663         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
665         * locale/Makefile (distribute): Add hashval.h.
667         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
669         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
671         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
672         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
673         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
674         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
675         implementations.
676         * libio/stdio.h: Likewise.
677         * locale/locale.h: Likewise.
678         * math/math.h: Likewise.
679         * math/bits/mathcalls.h: Likewise.
680         * setjmp/setjmp.h: Likewise.
681         * signal/signal.h: Likewise.
682         * stdlib/stdlib.h: Likewise.
683         * string/string.h: Likewise.
684         * time/time.h: Likewise.
685         * wcsmbs/wchar.h: Likewise.
686         * wctype/wctype.h: Likewise.
688 2002-08-28  Roland McGrath  <roland@redhat.com>
690         * locale/tst-C-locale.c (run_test): Remove __ from function names.
692 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
693             Roland McGrath <roland@redhat.com>
695         * locale/hashval.h (compute_hashval): Use prototype defn.
696         (hashval_t): New macro, defined to unsigned long int
697         if not already defined.
698         (compute_hashval): Return hashval_t instead of unsigned long int.
699         * locale/loadarchive.c (hashval_t): New macro.
700         * locale/programs/locarchive.c: Include hashval.h directly instead
701         of simple-hash.h.
702         (compute_hashval, hashval_t): Define these macros first.
703         (insert_name): Use archive_hashval instead of compute_hashval.
704         (add_locale, delete_locales_from_archive): Likewise.
706 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
708         * locale/programs/locarchive.c (insert_name): Suppress warnings about
709         hash collisions if be_quiet.
711 2002-08-27  Roland McGrath  <roland@redhat.com>
713         * locale/locale.h (__newlocale, __duplocale, __freelocale,
714         __uselocale): Don't declare these any more.
715         * include/locale.h (__uselocale): Declare here instead, using __typeof.
717         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
718         and treat it as an EOF return.
719         * sysdeps/unix/readdir_r.c: Likewise.
721         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
722         From Alexandre Oliva <aoliva@redhat.com>.
723         * sysdeps/gnu/errlist-compat.c: Regenerated.
725 2002-08-27  Brian Youmans  <3diff@gnu.org>
727         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
728         wording at request of copyright holder Stephen Moshier.
729         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
730         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
731         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
732         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
733         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
734         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
735         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
736         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
737         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
738         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
739         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
740         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
741         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
742         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
744 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
746         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
747         * ctype/ctype-extn.c (isblank_l): Add weak alias.
748         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
749         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
750         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
751         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
752         * wctype/iswctype_l.c (iswctype_l): Likewise.
754 2002-08-27  Roland McGrath  <roland@redhat.com>
756         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
758         * ctype/ctype.h (__exctype_l): Don't declare __ name.
759         * stdlib/stdlib.h: Don't declare __*_l names.
760         * include/stdlib.h: Declare them here instead.
761         * include/string.h: Don't declare __*_l names.
762         * string/string.h: Declare them here instead.
763         * time/time.h: Don't declare __*_l names.
764         * include/time.h: Declare them here instead.
765         * wcsmbs/wchar.h: Don't declare __*_l names.
766         * include/wchar.h: Declare them here instead.
767         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
768         Don't declare __*_l names.
769         * include/wctype.h: Declare them here instead.
770         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
771         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
772         * locale/langinfo.h: Don't declare __nl_langinfo_l.
773         * include/langinfo.h: Declare it here with __typeof.
775         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
776         instead, taking an extra __locale_t argument.
777         * time/Makefile (routines): Add strptime_l.
778         * time/time.h (__strptime_l, strptime_l): Declare them.
779         * time/strptime_l.c: New file.
781         * time/time.h (__strftime_l, strftime_l): Declare them.
782         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
783         * time/strftime_l.c: New file.
784         * time/wcsftime_l.c: New file.
785         * time/Makefile (routines): Add strftime_l, wcsftime_l.
786         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
787         strftime_l, wcsftime_l.
788         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
789         or __wcsftime_l instead, taking an extra __locale_t argument.
791         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
792         (libc: GLIBC_2.3): ... here.
794 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
796         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
798         * Makefile (distribute): Add LICENSES.
800         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
801         sys/debugreg.h.
803         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
805         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
807         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
809         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
811         * sysdeps/mach/hurd/alpha/Dist: New file.
813         * sysdeps/arm/Dist: Add bits/link.h.
815         * sunrpc/Makefile: Distribute thrsvc.
817         * stdio-common/Makefile: Remove more left-overs from old stdio.
819         * include/linewrap.h: Removed.
821         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
823         * intl/Makefile (distribute): Add plural-eval.c.
825 2002-08-27  Roland McGrath  <roland@redhat.com>
827         * manual/sysinfo.texi (Mount Information): Correct file name to macro
828         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
829         Say mtab is in either /var/run or /etc.
831 2002-08-26  Roland McGrath  <roland@redhat.com>
833         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
834         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
836         * sysdeps/gnu/Versions: New file.
837         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
838         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
839         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
840         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
841         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
842         and _sys_nerr_internal instead of anything else.  Make it include
843         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
844         Make it emit some asm magic if [EMIT_ERR_MAX].
845         * sysdeps/gnu/errlist.c: Regenerated.
846         * sysdeps/gnu/errlist-compat.awk: New file.
847         * sysdeps/gnu/errlist-compat.c: New file (generated).
848         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
849         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
850         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
851         (SYS_ERRLIST, SYS_NERR): Macros removed.
852         (sys_nerr, _sys_nerr): Remove these weak aliases.
853         * sysdeps/unix/sysv/linux/errlist.c: File removed.
854         * sysdeps/unix/sysv/linux/errlist.h: File removed.
855         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
857         * include/libc-symbols.h (declare_symbol): New macro.
858         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
859         * configure.in: New check to define it.
860         * configure: Regenerated.
862 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
864         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
865         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
867         * Make-dist: Remove traces of old stdio.
868         * Makeconfig: Likewise.
870         * locale/Makefile (localedef-aux): New variable.  Only md5
871         assigned to it.  These files are not ddistributed in this directory.
873         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
874         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
875         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
877         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
879         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
880         set h_errno to NO_RECOVERY [PR libc/4360].
882 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
884         * libio/Makefile (tests): Add bug-fopena+.
885         * libio/bug-fopena+.c: New file.
886         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
887         file for _IO_IS_APPENDING if file isn't opened for reading, too.
889         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
891         * locale/xlocale.c: Fix the last change.  The variable still has
892         to end in _data.
893         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
894         (__libc_tsd_set): Add _data prefix to variable name.
896 2002-08-26  Roland McGrath  <roland@redhat.com>
898         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
899         macro with inline function.
900         (sigset_get_old_mask): Likewise.
901         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
902         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
903         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
904         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
905         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
906         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
907         values.
908         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
909         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
911 2002-07-06  Bruno Haible  <bruno@clisp.org>
913         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
914         sigset_get_old_mask): Make it work with larger sigset_t.
915         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
916         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
917         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
919 2002-08-26  Roland McGrath  <roland@redhat.com>
921         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
922         * manual/filesys.texi (File Times): Document lutimes and futimes.
923         * misc/Makefile (routines): Add them.
924         * misc/Versions (libc: GLIBC_2.3): Likewise.
925         * sysdeps/generic/lutimes.c: New file.
926         * sysdeps/generic/futimes.c: New file.
927         * sysdeps/mach/hurd/lutimes.c: New file.
928         * sysdeps/mach/hurd/futimes.c: New file.
930         * manual/filesys.texi (File Times): Add explicit note about null
931         pointer argument to utimes.
933 2002-08-26  Roland McGrath  <roland@frob.com>
935         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
936         (__ifreq): Add a cast.  Remove an unused variable.
938         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
939         _HURD_THREADVAR_LOCALE.
941 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
943         * posix/regexec.c (re_search_stub): Return correct match length
944         if start != 0.
945         * posix/bug-regex10.c: New test.
946         * posix/Makefile (tests): Add bug-regex10.
948 2002-08-26  Brian Youmans  <3diff@gnu.org>
950         * COPYING.LIB: Replaced with fresh copy from
951         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
952         suggested copying permission notice now says version 2.1 instead
953         of version 2.
955         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
956         from Library GPL.
957         * crypt/crypt_util.c: Likewise.
958         * crypt/ufc.c: Likewise.
959         * elf/dl-conflict.c: Likewise.
960         * elf/dl-iteratephdr.c: Likewise.
961         * iconv/iconvconfig.h: Likewise.
962         * malloc/arena.c: Likewise.
963         * malloc/hooks.c: Likewise.
964         * malloc/malloc.c: Likewise.
965         * posix/glob/Makefile.ami: Likewise.
966         * posix/glob/Makefile.in: Likewise.
967         * stdlib/gmp-impl.h: Likewise.
968         * stdlib/gmp.h: Likewise.
969         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
970         * sysdeps/generic/strnlen.c: Likewise.
971         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
972         * sysdeps/mach/hurd/recvmsg.c: Likewise.
973         * sysdeps/mach/hurd/sendmsg.c: Likewise.
974         * sysdeps/mach/hurd/spawni.c: Likewise.
975         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
976         * sysdeps/mach/powerpc/sysdep.h: Likewise.
977         * sysdeps/mach/powerpc/thread_state.h: Likewise.
978         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
979         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
980         * sysdeps/x86_64/gmp-mparam.h: Likewise.
982         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
983         Lesser GPL copying permission notice from 2 to 2.1.
984         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
985         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
986         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
987         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
988         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
989         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
990         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
991         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
992         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
993         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
994         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
995         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
996         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
997         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
998         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
999         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1000         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1001         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1002         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1003         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1004         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1005         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1006         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1007         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1008         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1009         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1010         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1011         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1012         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1013         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1014         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1015         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1016         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1017         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1018         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1019         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1020         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1021         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1022         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1023         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1024         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1025         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1026         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1027         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1028         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1029         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1030         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1031         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1032         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1033         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1034         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1035         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1036         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1037         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1038         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1040         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
1041         Moshier and Lesser GPL copying permission notice, per license from
1042         Moshier.
1043         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1044         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1045         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1046         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1047         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1048         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1049         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1050         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1051         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1052         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1053         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1054         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1055         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1056         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1058         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
1059         notice, per license from copyright holder Stephen Moshier.
1060         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1061         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1062         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1063         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1064         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1065         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1066         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1067         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1068         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1070 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1072         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
1073         (shared-only-routines): Likewise.
1075 2002-08-26  Roland McGrath  <roland@redhat.com>
1077         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
1078         name of "", store a null pointer instead.
1080         * configure.in (elf): Set to yes for freebsd*, netbsd*.
1081         * configure: Regenerated.
1083         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
1084         Initialize this instead of __libc_tsd_LOCALE_data.
1086         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
1087         ptsname_r to EINVAL.
1089         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
1091         * rt/Makefile: Revert last change, it was inappropriate to presume aio
1092         implementations depend on pthreads.
1093         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
1094         * rt/tst-aio64.c (do_test): Likewise.
1095         * rt/tst-aio2.c (do_test): Likewise.
1096         * rt/tst-aio3.c (do_test): Likewise.
1097         * rt/tst-aio4.c (do_test): Likewise.
1098         * rt/tst-aio5.c (do_test): Likewise.
1099         * rt/tst-aio6.c (do_test): Likewise.
1100         * rt/tst-aio7.c (do_test): Likewise.
1102         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
1103         void so as to avoid compiler warnings.
1105         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
1106         _IO_wide_data_FD, which is never used here.
1108         * libio/iofread.c
1109         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
1110         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
1111         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
1113         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
1114         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
1116         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
1117         (closelog): Likewise.
1119 2002-07-06  Bruno Haible  <bruno@clisp.org>
1121         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
1123         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
1124         * sysdeps/unix/alpha/pipe.S: ... here.
1125         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
1127         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
1129         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
1130         * sysdeps/unix/i386/fork.S: Likewise.
1131         * sysdeps/unix/i386/pipe.S: Likewise.
1132         * sysdeps/unix/i386/wait.S: Likewise.
1134         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
1135         * sysdeps/unix/arm/fork.S: Likewise.
1137         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
1138         arguments.
1139         (DO_CALL): Swap argument order.
1140         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
1141         arguments.
1142         (DO_CALL): Swap argument order.
1143         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
1144         arguments.
1145         (DO_CALL): Swap argument order.
1146         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
1147         arguments.
1148         (DO_CALL): Swap argument order.
1149         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
1150         arguments.
1151         (DO_CALL): Swap argument order.
1152         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
1153         arguments.
1154         (DO_CALL): Swap argument order.
1155         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
1156         arguments.
1157         (DO_CALL): Swap argument order.
1159         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
1160         (L): Define right for ELF.
1161         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
1162         Now defined in sysdeps/i386/sysdep.h.
1164         * sysdeps/posix/readv.c: Ansify function definition.
1165         * sysdeps/posix/writev.c: Likewise.
1167         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
1168         have the same size. Avoid direct cast from size_t to off_t.
1170         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
1171         nul byte in entry[n].ut_user.
1172         (simulate_logout): Likewise.
1174         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
1175         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
1176         existence of corresponding members of 'struct utmp'.
1177         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
1178         !_HAVE_UT_TYPE.
1180         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
1181         allocate a buffer of at least BUFSIZ bytes, not just of
1182         sizeof (struct dirent).
1184         * sysdeps/generic/glob.c: Include <limits.h>.
1185         (NAME_MAX): Define a fallback.
1186         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
1187         stack.
1188         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
1189         (main): Allocate enough room for a 'struct dirent64' on the stack.
1190         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
1191         'struct dirent'.
1193         * sysdeps/unix/sysv/linux/init-first.c: Don't include
1194         kernel-features.h.
1196         * inet/htontest.c: Include <sys/types.h>.
1198         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
1200         * include/sys/sysctl.h: Comment fix.
1202         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
1203         _dl_load_lock.
1204         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
1206         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
1208         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
1209         (__getpeername): New alias.
1210         (__getsockname): New alias.
1211         (__socket): New alias.
1213         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
1215         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
1216         (__fcntl_internal): New alias.
1217         (__profil): New alias.
1219 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1221         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
1222         entry was for getaddr* lookup or not.  Add only matching cache
1223         entry.  Change all callers [PR libc/4317].
1225         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
1226         finding the read position [PR libc/4265].
1227         * libio/Makefile (tests): Add bug-rewind2.
1228         * libio/bug-rewind2.c: New file.
1230         * libio/bug-rewind.c: Fix creation of temp file.
1232 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
1234         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
1235         neither SUCCESS nor TRYAGAIN [PR libc/4259].
1236         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
1237         to ENOENT if no entry is found.
1238         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
1239         failure.
1240         * nis/nss_compat/compat-initgroups.c: Likewise.
1241         * nis/nss_compat/compat-pwd.c: Likewise.
1242         * nis/nss_compat/compat-spwd.c: Likewise.
1243         * nis/nss_nis/nis-alias.c: Likewise.
1244         * nis/nss_nis/nis-ethers.c: Likewise.
1245         * nis/nss_nis/nis-grp.c: Likewise.
1246         * nis/nss_nis/nis-hosts.c: Likewise.
1247         * nis/nss_nis/nis-initgroups.c: Likewise.
1248         * nis/nss_nis/nis-netgrp.c: Likewise.
1249         * nis/nss_nis/nis-network.c: Likewise.
1250         * nis/nss_nis/nis-proto.c: Likewise.
1251         * nis/nss_nis/nis-publickey.c: Likewise.
1252         * nis/nss_nis/nis-pwd.c: Likewise.
1253         * nis/nss_nis/nis-rpc.c: Likewise.
1254         * nis/nss_nis/nis-service.c: Likewise.
1255         * nis/nss_nis/nis-spwd.c: Likewise.
1256         * resolv/nss_dns/dns-host.c: Likewise.
1257         * resolv/nss_dns/dns-network.c: Likewise.
1258         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
1259         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
1260         * nis/nss_nisplus/nisplus-grp.c: Likewise.
1261         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
1262         * nis/nss_nisplus/nisplus-network.c: Likewise.
1263         * nis/nss_nisplus/nisplus-proto.c: Likewise.
1264         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1265         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
1266         * nis/nss_nisplus/nisplus-service.c: Likewise.
1267         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
1268         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
1269         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
1270         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
1271         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
1273         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
1274         declaring __restore and __restore_rt as hidden (if possible).
1276 2002-08-25  Roland McGrath  <roland@redhat.com>
1278         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
1280         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
1281         (getutent_r_file, internal_getut_r): Updated all callers.
1282         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
1284 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
1286         * locale/programs/locale.c: Don't print aliases for non-existing
1287         locales for 'locale -a'.
1288         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
1290 2002-07-19  H.J. Lu  <hjl@gnu.org>
1292         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
1294 2002-07-16  H.J. Lu  <hjl@gnu.org>
1296         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1297         sys/personality.h.
1298         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
1300 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
1302         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
1303         not moved ahead of the fputs call.
1304         * elf/tst-tlsmod2.c (in_dso): Likewise.
1305         * elf/tst-tlsmod3.c (in_dso2): Likewise.
1306         * elf/tst-tlsmod4.c (in_dso): Likewise.
1308 2002-08-25  Andreas Schwab  <schwab@suse.de>
1310         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
1312 2002-08-25  Roland McGrath  <roland@redhat.com>
1314         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
1315         resetting handler, to avoid the possibility of a spurious SIGALRM
1316         delivered to the user's handler.
1317         Reported by Amit D. Chaudhary <amitc@brocade.com>,
1319         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
1320         set -fkeep-inline-functions, which is not needed for the current file.
1322         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
1323         (_dl_setup_hash): Add attribute_hidden.
1324         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
1325         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
1326         (_dl_new_object, _dl_map_object_deps): Likewise.
1327         (_dl_map_object_deps_internal): Remove decl.
1328         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
1330         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
1331         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
1332         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
1333         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
1334         instead relying on the compiler to produce only GOTOFF variable refs.
1336 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
1338         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
1340         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
1341         inline to avoid defining it in every file which includes this header.
1343         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
1344         defining DONT_USE_BOOTSTRAP_MAP.
1346         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
1347         * libio/tst-mmap-setvbuf.c (main): Likewise.
1348         * libio/tst-widetext.c (main): Likewise.
1350         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
1351         message.
1352         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1353         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1355         * sysdeps/i386/elf/configure.in: Unconditionally define
1356         PI_STATIC_AND_HIDDEN.
1357         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
1358         PI_STATIC_AND_HIDDEN is defined as well.
1359         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
1361 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
1363         * sysdeps/ia64/bzero.S: Define __bzero as well.
1365         * locale/programs/charmap.c (charmap_new_char): Don't use
1366         ULONG_MAX as maximum UCS4 value.
1368         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
1370         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
1372         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
1373         * malloc/malloc.c (mALLINFo): Likewise.
1375         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
1377         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
1378         examining result of _IO_do_flush call.
1380         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
1381         Use prec not spec when sizing buffers.
1383         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
1384         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
1385         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
1386         * stdio-common/vfscanf.c (inchar): Likewise.
1387         * misc/efgcvt_r.c (fcvt_r): Likewise.
1388         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
1389         * elf/readlib.c (process_file): Likewise.
1390         * elf/sprof.c (load_profdata): Likewise.
1391         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
1392         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
1393         * locale/programs/charmap.c (charmap_read): Likewise.
1394         * libio/fileops.c: Likewise.
1395         * libio/fmemopen.c: Likewise.
1396         * stdlib/strtod.c: Likewise.
1397         * elf/dl-load.c: Likewise.
1398         * iconv/iconvconfig.c: Likewise.
1399         * iconv/iconv_prog.c (process_block): Likewise.
1400         * elf/rtld.c (dl_main): Likewise.
1402         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
1403         macro to calm down the compiler.
1405         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
1407         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
1409         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
1410         placement of errno definition.
1411         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
1412         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
1413         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
1414         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
1415         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
1417         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
1418         from 1024 to 65536, to avoid buffer overrun.
1420 2002-08-16  Paul Eggert  <eggert@twinsun.com>
1422         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
1423         from 1024 to 65536, to avoid buffer overrun.
1424         * resolv/res_query.c (MAXPACKET): Likewise.
1426 2002-08-24  Andreas Jaeger  <aj@suse.de>
1428         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
1430 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
1432         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
1433         two52 locally.
1434         (log2): Likewise.
1435         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
1436         Patch by Simon Gee <simong@agile.tv>.
1438         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
1439         Prefer reading /proc/stat since it is more uniform across
1440         architectures.
1442         * manual/texinfo.tex: Update to latest official version.
1444         * sysvipc/sys/shm.h: Remove SHMLBA definition.
1445         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
1446         * sysdeps/gnu/bits/shm.h: Likewise.
1447         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
1448         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
1449         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
1450         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
1451         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
1452         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
1453         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
1454         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
1455         since this is what the kernel says.
1457         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
1458         since ssize_t is needed as well.  Replace const with __const.
1460 2002-08-23  Roland McGrath  <roland@redhat.com>
1462         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
1463         __malloc_hook, __realloc_hook, __memalign_hook,
1464         __after_morecore_hook): Variable definitions moved to ...
1465         * malloc/malloc.c: ... here, so as to be before all references.
1467         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
1468         global variable reference in an unused asm parameter, to ensure the
1469         compiler has set up the GOT register before we use it.
1471         * malloc/hooks.c: Move variable definitions ahead of uses.
1472         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
1473         initializers that make reference to variables they define.
1475 2002-08-23  Andreas Jaeger  <aj@suse.de>
1477         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
1478         alloca, free, qsort.
1480         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
1482         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
1483         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1485         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
1486         <hch@lst.de>.
1487         * sysdeps/generic/fgetxattr.c: New file.
1488         * sysdeps/generic/flistxattr.c: New file.
1489         * sysdeps/generic/fremovexattr.c: New file.
1490         * sysdeps/generic/fsetxattr.c: New file.
1491         * sysdeps/generic/getxattr.c: New file.
1492         * sysdeps/generic/listxattr.c: New file.
1493         * sysdeps/generic/lgetxattr.c: New file.
1494         * sysdeps/generic/llistxattr.c: New file.
1495         * sysdeps/generic/lremovexattr.c: New file.
1496         * sysdeps/generic/lsetxattr.c: New file.
1497         * sysdeps/generic/removexattr.c: New file.
1498         * sysdeps/generic/setxattr.c: New file.
1499         * misc/Makefile (headers): Add sys/xattr.h.
1500         (routines): Add *xattr calls.
1501         * misc/Versions: Add *xattr calls with version 2.3.
1502         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
1503         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1504         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1505         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1506         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
1507         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
1508         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1509         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1511 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
1513         * sysdeps/powerpc/elf/libc-start.c
1514         (__cache_line_size): Declare.
1515         (__aux_init_cache): New function.
1516         (__libc_start_main): Change type of `auxvec' parameter to
1517         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
1518         __aux_init_cache.
1519         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
1520         (__cache_line_size): Declare.
1521         (__aux_init_cache): New function.
1522         (DL_PLATFORM_INIT): Define.
1523         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
1524         value to select the correct stride for dcbz.
1526 2002-08-22  Andreas Jaeger  <aj@suse.de>
1528         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
1529         shmat.
1531 2002-08-22  Roland McGrath  <roland@redhat.com>
1533         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
1534         position indicated by locrectab against file bounds before rounding to
1535         page size.  In mapping loop, always set TO before breaking out of
1536         contiguous range coalescing loop.
1538         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
1539         (or MAP_COPY if available) instead of MAP_SHARED.
1541         * scripts/firstversions.awk: When encountering a version newer than
1542         the specified earliest version, be sure to emit the specified earliest
1543         version first if any renaming of an older version to that has been.
1545 2002-08-21  Roland McGrath  <roland@redhat.com>
1547         * configure.in: Make GCC version check require 3.[2-9]* and no others.
1548         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
1549         (Configuring and compiling): Don't mention older GCC versions any more.
1550         * INSTALL: Regenerated.
1552         * manual/install.texi (Configuring and compiling, Installation,
1553         Running make install, Linux): Linux -> GNU/Linux where appropriate.
1555         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
1556         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
1557         and with noinline otherwise.  Remove hack alloca use to prevent
1558         inlining, we can ask for it explicitly nowadays.
1560         * dlfcn/bug-dlsym1.c: New file.
1561         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
1562         * dlfcn/Makefile (distribute): Add them.
1563         (tests): Add bug-dlsym1 here.
1564         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
1565         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
1566         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
1568 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
1570         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
1571         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
1572         before relocation.
1573         (_dl_start): Don't use local bootstrap_map variable if
1574         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
1575         pass bootstrap_map to _dl_start_final in this case either.  Don't
1576         pass start_time to _dl_start_final ever.
1577         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
1579         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
1580         This cripples the scope lists necessary to search for symbols in
1581         dependencies which are not in the global scope.
1583         * include/setjmp.h (__libc_longjmp): Add declaration.
1585 2002-08-21  Andreas Jaeger  <aj@suse.de>
1587         * sysdeps/x86_64/_mcount.S: Fix assembler.
1589         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
1590         with biarch support.
1592 2002-08-21  Andreas Jaeger  <aj@suse.de>
1594         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
1596         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
1598         * sysdeps/x86_64/machine-gmon.h: New file.
1599         * sysdeps/x86_64/_mcount.S: New file.
1601 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
1603         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
1604         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
1605         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
1606         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
1607         to TL_INIT_TP.  Otherwise pass 1.
1608         * include/link.h (struct link_map): Add l_tls_tp_initialized.
1609         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
1611 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
1613         * locale/programs/localedef.c (add_to_readlist): Error about
1614         circular dependencies only if the locale in question hasn't
1615         been finished.
1616         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
1617         CTYPE_LOCALE to load_locale.
1618         * locale/programs/locfile.c (locfile_read): Don't include
1619         unneeded but available locales in locale_mask.
1621         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
1622         print any messages about enlarging archive.
1624 2002-08-20  Brian Youmans  <3diff@gnu.org>
1626         * manual/contrib.texi: Removed licenses, added acknowledgements
1627         for contributions by Intel, IBM, Craig Metz.
1628         * LICENSES: New file, contains the text of all non-FSF licenses in the
1629         distribution that require putting the notice in the accompanying
1630         documentation.
1631         * README.template, README: Mention LICENSES.
1633         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
1634         new one modelled on the modern BSD license, per recent letter
1635         of permission from CMU.
1636         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
1638         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
1639         from IBM to FSF, per the recent Software Letter.  Changed the
1640         distribution terms from GPL to LGPL.
1642         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
1643         copying permission notice (Lesser GPL), per recent IBM Software Letter.
1644         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1645         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1646         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1647         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1648         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1649         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1650         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1651         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1653         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
1654         from IBM to FSF, per the recent Software Letter.  Corrected the
1655         text of the copying permission notice to say Lesser GPL instead
1656         of GPL in warranty disclaimer paragraph.
1657         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1658         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1659         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1660         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1661         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1662         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1663         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1664         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1665         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1666         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1667         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1668         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1669         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1670         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1671         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1672         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1673         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1674         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1675         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1676         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1677         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1679         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
1680         permission notice to say Lesser GPL instead of GPL in warranty
1681         disclaimer paragraph.
1682         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1683         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1684         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1685         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1686         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1687         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1688         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1689         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1690         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1691         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1692         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1693         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1694         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1695         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1696         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1697         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1698         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1699         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1700         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1701         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1702         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1703         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1704         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
1706 2002-08-20  Roland McGrath  <roland@redhat.com>
1708         Fix ABI compatibility with libc compiled with old tools on powerpc.
1709         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1710         and Jack Howarth <howarth@bromo.med.uc.edu>.
1711         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
1712         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
1713         pass -DHAVE_DOT_HIDDEN for these files.
1714         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
1715         __floatdisf.
1716         * sysdeps/powerpc/divdi3.c: New file.
1717         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
1718         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
1720 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
1722         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
1723         partially overlapping mappings.  Remove unneeded (char *) casts.
1724         Never allow duplication of ranges in mapped areas.
1726 2002-08-20  Roland McGrath  <roland@redhat.com>
1728         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
1729         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
1731 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
1733         * include/unistd.h: Don't hide _exit.
1735         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
1736         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
1737         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
1738         argument 1 to TLS_INIT_TP.
1739         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
1741         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
1743         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
1744         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
1745         memory allocation to...
1746         (allocate_dtv): ...here.  New function.
1747         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
1748         call allocate_dtv instead of _dl_allocate_tls_storage.
1749         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
1750         (_dl_get_tls_static_info): New function.
1751         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
1752         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
1754 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
1756         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
1757         immediately if result == NULL.
1759 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
1761         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
1763 2002-08-18  Roland McGrath  <roland@frob.com>
1765         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
1766         instead of __file_name_split.
1767         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
1769         * sysdeps/mach/hurd/dl-sysdep.c
1770         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
1771         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
1773 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
1775         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
1776         in change before last: MAX -> MIN.
1778 2002-08-15  Roland McGrath  <roland@redhat.com>
1780         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
1781         if seek would go past it.
1782         (mmap_remap_check): If file position is at or past EOF after check,
1783         leave read pointers at EOF and don't seek.
1785         * libio/tst-mmap-offend.c: New file.
1786         * libio/Makefile (tests): Add it.
1788         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
1789         the name as passed, rather than the name in the archive dictionary.
1791 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
1793         * csu/Makefile: Define elide-routines.os not static-only-routines.
1795         * include/sched.h (__clone): Add varargs at the end.
1797         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
1798         case.
1799         (TLS_INIT_HELPER): If defined, use it.
1800         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
1802 2002-08-15  Roland McGrath  <roland@redhat.com>
1804         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
1805         on L->l_prev; it can happen under rtld --verify too.
1807         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
1808         header separately, just map an initial window of 2MB from the file
1809         and remap if that is not large enough to cover the whole header.
1811 2002-08-15  Andreas Jaeger  <aj@suse.de>
1813         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
1814         version 2.3.
1815         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1816         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1817         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
1818         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
1819         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1820         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1821         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1822         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1823         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
1824         Patch by Andreas Gruenbacher <agruen@suse.de>.
1826         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
1828 2002-08-14  Roland McGrath  <roland@redhat.com>
1830         * locale/locarchive.h (struct locale_category_data): Give this name to
1831         the type of locale_data_t's elements.
1832         * locale/programs/locarchive.c (cmpcategorysize): New static function.
1833         (add_locale): Use that to sort the categories by size and put all
1834         those that fit into two pages into the LC_ALL block, instead of
1835         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
1836         (show_archive_content): Detect categories inside LC_ALL block
1837         directly, instead of hard-coding.
1838         (oldlocrecentcmp): Compare just on file locations used.
1840 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
1842         * locale/programs/locarchive.c (struct oldlocrecent): New type.
1843         (oldlocrecentcmp): New function.
1844         (enlarge_archive): Re-add locales in the order they were added
1845         to the archive.
1846         (add_locale): Put all the small locale files together, if the small
1847         locale file block would occupy less pages if page size aligned, align
1848         it.
1849         (show_archive_content): Adjust for locale archives optimized for speed.
1851 2002-08-14  Roland McGrath  <roland@frob.com>
1853         * configure.in: Use "MISSING" as not-found value for MIG.
1854         * sysdeps/mach/configure.in: Fatal if mig not found.
1855         * configure, sysdeps/mach/configure: Regenerated.
1857 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
1859         * locale/loadarchive.c (archfname): Add missing slash.
1861         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
1862         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
1864 2002-08-12  Roland McGrath  <roland@redhat.com>
1866         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
1867         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
1868         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
1869         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
1870         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
1871         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
1872         * sysdeps/generic/waitpid.c: Likewise.
1874         * include/net/if.h: New file.  Use libc_hidden_proto
1875         for if_nametoindex and if_indextoname.
1876         * sysdeps/generic/if_index.c: Add libc_hidden_def.
1877         * sysdeps/mach/hurd/if_index.c: Likewise.
1878         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
1880         * include/grp.h (setgroups): Add libc_hidden_proto.
1881         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
1882         * sysdeps/mach/hurd/setgroups.c: Likewise.
1883         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
1884         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1886 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
1888         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
1889         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
1890         * sysdeps/generic/setegid.c (setegid): Likewise.
1891         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
1892         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
1893         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
1894         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
1895         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
1896         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
1897         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
1898         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
1899         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
1900         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
1901         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
1902         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
1903         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
1905         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
1906         __lxstat_internal, __lxstat64_internal): Remove.
1907         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
1908         Add hidden_proto.
1909         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
1910         Remove INTDEF where present, remove #undef at the beginning.
1911         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
1912         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
1913         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
1914         * sysdeps/generic/xstat.c (__xstat): Likewise.
1915         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
1916         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
1917         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
1918         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
1919         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
1920         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
1921         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
1922         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
1923         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
1924         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
1925         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
1926         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
1927         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
1928         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
1929         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
1930         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
1931         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
1932         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
1933         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
1934         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
1935         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
1936         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
1937         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
1938         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
1939         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
1940         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
1941         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
1942         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
1943         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
1944         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
1945         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
1946         * sysdeps/unix/xstat.c (__xstat): Likewise.
1948         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
1949         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
1950         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
1951         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
1952         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
1953         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
1954         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
1956         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
1957         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
1958         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
1959         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
1960         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
1961         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
1962         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
1963         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
1964         Likewise.
1965         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
1966         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
1967         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
1968         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
1969         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
1970         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
1971         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
1972         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
1974         * include/string.h (strcoll): Add libc_hidden_proto.
1975         * string/strcoll.c (strcoll): Add libc_hidden_def.
1977         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
1979 2002-08-11  Philip Blundell  <philb@gnu.org>
1981         * sysdeps/arm/Makefile: New file.
1983 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
1985         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
1986         by another '|', end of regex or enclosing ')', clear branch.
1987         * posix/bug-regex9.c: New test.
1988         * posix/Makefile (tests): Add bug-regex9.
1990 2002-08-12  Roland McGrath  <roland@redhat.com>
1992         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
1993         start count condition, use TOTAL instead of variable that was never
1994         set.  Fix outer loop termination condition to TOTAL >= after update.
1996         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
1997         dl_tls_static_align and dl_tls_static_nelem.
1999 2002-08-11  Roland McGrath  <roland@redhat.com>
2001         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2002         of the TLS macros, otherwise the compiler might not have initialized
2003         the PIC register yet when we use the PLT via asm.
2004         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2005         * elf/tst-tlsmod2.c (in_dso): Likewise.
2007         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2009         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2010         Evaluate argument exactly once.  Remove __volatile__ from asm's.
2012         * include/unistd.h: Use libc_hidden_proto for getdomainname
2013         and getlogin_r.
2014         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2015         * sysdeps/mach/hurd/getdomain.c: Likewise.
2016         * sysdeps/unix/getlogin_r.c: Likewise.
2017         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2018         * sysdeps/generic/getlogin_r.c: Likewise.
2020         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2021         * sunrpc/rtime.c: Add libc_hidden_def.
2023         * include/string.h: Use libc_hidden_proto for basename.
2024         * string/basename.c [_LIBC]: Add libc_hidden_def.
2026         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2028         * locale/loadarchive.c: munmap -> __munmap throughout.
2030         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2031         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2032         * sysdeps/generic/gai_strerror.c: Likewise.
2034         * include/sys/errno.h: New file.
2036         * include/signal.h: No libc_hidden_proto for raise,
2037         __libc_current_sigrtmin, __libc_current_sigrtmax.
2038         These need to be overridden by linuxthreads.
2039         * sysdeps/posix/raise.c: Reverted.
2040         * sysdeps/generic/raise.c: Reverted.
2041         * signal/allocrtsig.c: Reverted.
2043         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
2045 2002-08-10  Roland McGrath  <roland@redhat.com>
2047         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
2048         * locale/localeinfo.h: Declare it.
2049         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
2050         current locale if it's not in the file list.
2051         Call _nl_archive_subfreeres.
2053 2002-08-10  Andreas Jaeger  <aj@suse.de>
2055         * sysdeps/i386/strchr.S: Add comment.
2057 2002-08-10  Roland McGrath  <roland@redhat.com>
2059         * include/wchar.h (putwc): Use libc_hidden_proto.
2060         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
2061         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
2062         * stdio-common/dprintf.c: Add libc_hidden_def.
2063         * stdio-common/fprintf.c: Likewise.
2064         * stdio-common/sprintf.c: Likewise.
2065         * stdio-common/sscanf.c: Likewise.
2066         * libio/iofwrite.c: Likewise.
2067         * libio/memstream.c: Likewise.
2068         * libio/putwc.c: Likewise.
2069         * stdio-common/perror.c: Likewise.
2070         * sysdeps/posix/remove.c: Likewise.
2071         * sysdeps/generic/remove.c: Likewise.
2072         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
2073         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
2075 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
2077         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2078         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
2079         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2080         towlower, towupper): Add libc_hidden_weak.
2082         * include/bits/dlfcn.h: New file.
2083         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
2085         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
2086         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
2087         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
2088         * include/pwd.h (_nss_files_parse_pwent): Likewise.
2089         * include/shadow.h (_nss_files_parse_spent): Likewise.
2090         * include/netdb.h (_nss_files_parse_protoent,
2091         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
2092         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
2093         (LINE_PARSER): Use it.
2094         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
2095         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
2097         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
2098         #endif.
2100         * manual/debug.texi (%MENU%): Remove trailing dot.
2101         Reported by <hayastan132@hotmail.com>.
2103         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
2104         aliases.
2105         (lseek): Dummy.
2106         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
2107         Likewise.
2109 2002-08-09  Roland McGrath  <roland@redhat.com>
2111         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
2112         name to find codeset name (if any) and normalize it.  If the
2113         normalized name differs, look up only that in the archive.
2114         * locale/programs/locarchive.c (add_locale_to_archive): If the name
2115         contains a codeset, normalize the codeset store only the normalized
2116         name in the archive.  If not, add an alias containing the locale's
2117         normalized codeset name.  Apply codeset name normalization when
2118         matching entries in the alias file.
2120         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
2121         decrement HEAD->namehash_used here.
2122         (add_locale): Only need to insert name string when name_offset != 0.
2124         * locale/programs/localedef.c (options): Add -A/--alias-file.
2125         (alias_file): New variable.
2126         (parse_opt): Grok -A, set that.
2127         * locale/programs/localedef.h: Declare it.
2129         * locale/locarchive.h (struct locrecent): Add `refs' member.
2130         * locale/programs/locarchive.c (insert_name): New function, broken out
2131         of ...
2132         (add_locale_to_archive): ... here.  Call that.
2133         (add_alias): New function.
2134         (add_locale): New static function, add_locale_to_archive renamed.
2135         (add_locale_to_archive): Call that and use add_alias to add an alias
2136         for the name with codeset if the given name lacks it.
2137         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
2139         * locale/Makefile (routines): Add loadarchive.
2140         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
2141         (_nl_load_locale_from_archive): New function.
2142         * locale/localeinfo.h: Declare it.
2143         * locale/findlocale.c (_nl_find_locale): If using default locale path,
2144         try _nl_load_locale_from_archive first.
2146         * locale/loadlocale.c (_nl_intern_locale_data): New function,
2147         broken out of _nl_load_locale.
2148         (_nl_load_locale): Call that.
2149         * locale/localeinfo.h: Declare it.
2150         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
2151         (struct locale_data): Remove unused member `options'.
2152         * locale/findlocale.c (_nl_remove_locale): Update uses.
2153         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2154         * locale/C-collate.c: Update initializer.
2155         * locale/C-identification.c: Likewise.
2156         * locale/C-measurement.c: Likewise.
2157         * locale/C-telephone.c: Likewise.
2158         * locale/C-address.c: Likewise.
2159         * locale/C-name.c: Likewise.
2160         * locale/C-paper.c: Likewise.
2161         * locale/C-time.c: Likewise.
2162         * locale/C-numeric.c: Likewise.
2163         * locale/C-monetary.c: Likewise.
2164         * locale/C-messages.c : Likewise.
2165         * locale/C-ctype.c: Likewise.
2167         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
2168         use CHAR_BIT instead of BITSPERBYTE.
2170         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
2171         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
2172         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
2173         (_nl_remove_locale): Likewise.
2174         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2176         * locale/findlocale.c (_nl_default_locale_path): New variable.
2177         (_nl_find_locale): If LOCALE_PATH is null, default to that.
2178         * locale/localeinfo.h: Declare it.
2179         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
2180         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
2181         * locale/newlocale.c (__newlocale): Likewise.
2183         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
2184         * inet/rexec.c (rexec_af): Add libc_hidden_def.
2185         * sysdeps/generic/morecore.c: Likewise.
2186         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
2187         (__libc_current_sigrtmax): Likewise.
2189 2002-08-08  Roland McGrath  <roland@redhat.com>
2191         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
2192         * catgets/open_catalog.c (__open_catalog): Likewise.
2194         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
2195         from typo INITIAL_NUM_NANES.
2196         (create_archive): Update use.
2198 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
2200         * sysdeps/unix/sysv/linux/sigwait.c: New file.
2202 2002-08-08  Roland McGrath  <roland@frob.com>
2204         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
2206 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2208         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
2209         else and undefine after including wcstol_l.c.
2210         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
2212 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
2214         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
2216 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
2218         * configure.in: Make the test for broken_alias_attribute stricter.
2220 2002-05-24  Robert Love  <rml@tech9.net>
2222         * posix/Makefile (routines): Add sched_getaffinity and
2223         sched_setaffinity.
2224         * posix/sched.h: Add declarations for sched_getaffinity and
2225         sched_setaffinity.
2226         * sysdeps/generic/sched_getaffinity.c: New file.
2227         * sysdeps/generic/sched_setaffinity.c: New file.
2228         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
2229         sched_setaffinity.
2231 2002-08-06  Andreas Schwab  <schwab@suse.de>
2233         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
2235 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
2237         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
2238         message.
2240         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
2241         It is known to be defined.
2243         * include/string.h: Define index and rindex only if _ISOMAC is not
2244         defined.
2246         * elf/rtld.c: Include <errno.h>.
2247         * sysdeps/generic/libc-tls.c: Likewise.
2249 2002-08-07  Roland McGrath  <roland@redhat.com>
2251         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
2252         it internally.
2253         (precsize_aton): Likewise.
2255         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
2256         the static symbols added in the last change (doofus is me).
2258         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
2259         loop to notice missing categories in a composite name.
2261         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
2262         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
2263         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
2264         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
2266 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
2268         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
2270 2002-08-07  Roland McGrath  <roland@redhat.com>
2272         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
2273         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
2274         Reported by Jakub Jelinek  <jakub@redhat.com>.
2276 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
2278         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
2279         division.
2281 2002-08-06  Roland McGrath  <roland@redhat.com>
2283         * include/getopt.h: Put private decls inside [_GETOPT_H].
2284         Use libc_hidden_proto for getopt_long, getopt_long_only.
2285         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
2286         Add libc_hidden_def.
2288         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
2289         Define as a macro for __dl_iterate_phdr.
2291         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
2292         made static.  Add __ name as a strong alias.
2293         (internal_endnetgrent): Likewise.
2294         (internal_getnetgrent_r): Likewise.
2296         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
2297         with no __ prefix.
2298         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
2299         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
2300         all *_l functions with no __ prefix.
2301         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
2302         * ctype/ctype_l.c: Likewise.
2303         * locale/nl_langinfo.c: Likewise.
2304         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
2305         * stdlib/stdlib.h [__USE_GNU]: Likewise.
2306         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
2307         * wctype/wctype.h [__USE_GNU]: Likewise.
2308         * string/strcoll_l.c (strcoll_l): Define as weak alias.
2309         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
2310         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
2311         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
2312         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
2313         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
2314         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
2315         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
2316         (__wcscasecmp_l): Add libc_hidden_def.
2317         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
2318         (__wcsncasecmp_l): Add libc_hidden_def.
2319         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
2320         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
2321         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
2322         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
2323         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
2324         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
2325         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
2326         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
2327         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
2328         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
2329         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
2330         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
2331         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
2332         * wctype/wctype_l.c (wctype_l) Define as weak alias.
2334 2002-08-05  Roland McGrath  <roland@redhat.com>
2336         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
2337         netname2user, host2netname, user2netname, key_gendes.
2338         * sunrpc/netname.c: Add libc_hidden_def.
2339         * sunrpc/key_call.c: Likewise.
2341         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
2342         freeaddrinfo.
2343         * inet/getnameinfo.c: Add libc_hidden_def.
2344         * sysdeps/generic/getaddrinfo.c: Likewise.
2345         * sysdeps/posix/getaddrinfo.c: Likewise.
2347         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
2348         * wcsmbs/wmemchr.c: Add libc_hidden_def.
2349         * wcsmbs/wmemset.c: Add libc_hidden_def.
2351         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
2352         (index, rindex): Define as macros for strchr, strrchr.
2354         * string/envz.c (envz_strip): index -> strchr
2356         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
2357         * sunrpc/rpc_prot.c: Add libc_hidden_def.
2359         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
2360         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
2362         * include/stdlib.h: Use libc_hidden_proto for wctomb.
2363         * stdlib/wctomb.c: Add libc_hidden_def.
2365         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
2366         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
2367         * resolv/herror.c: Likewise.
2368         * inet/rcmd.c: Add libc_hidden_def.
2369         * inet/ruserpass.c: Likewise.
2370         * inet/getnetgrent_r.c: Likewise.
2372         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
2373         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
2374         for svcerr_auth, svcerr_noprog, svcerr_progvers.
2375         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
2376         libc_hidden_def.
2377         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
2378         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
2380         * sysdeps/posix/system.c (do_system): New function, guts broken out of
2381         __libc_system.
2382         (__libc_system): Call it, putting just the line == NULL test here.
2384         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
2385         variables work right.
2387         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
2388         * elf/dl-close.c (_dl_close): Likewise.
2390         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
2391         in6addr_any, in6addr_loopback.  Remove decls for
2392         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
2393         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
2394         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
2395         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
2396         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
2397         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
2398         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
2399         in6addr_loopback.
2400         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
2402         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
2403         ether_aton_r.
2404         * inet/ether_aton_r.c: Add libc_hidden_def.
2405         * inet/ether_ntoa_r.c: Likewise.
2407         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
2408         xprt_unregister.
2409         * sunrpc/svc.c: Add libc_hidden_def.
2410         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
2411         pmap_set, pmap_unset.
2412         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
2413         * sunrpc/pm_getport.c: Likewise.
2414         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
2415         * sunrpc/publickey.c: Add libc_hidden_def.
2417 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
2419         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
2420         the other memset call in this function.
2422         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
2423         at correct index.  Clear BSS region now that memalign is used.
2425 2002-08-05  Roland McGrath  <roland@redhat.com>
2427         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
2428         * sysdeps/generic/uname.c: Add libc_hidden_def.
2429         * sysdeps/mach/hurd/uname.c: Likewise.
2431 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
2433         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
2434         wcspbrk): Add libc_hidden_proto.
2435         * time/strftime.c (my_strftime): Add libc_hidden_def.
2436         (strftime): Remove libc_hidden_def.
2437         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
2438         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
2439         * wcsmbs/wcsspn.c (wcsspn): Likewise.
2440         * wcsmbs/wcscmp.c (wcscmp): Likewise.
2441         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
2442         * wcsmbs/wcscoll.c (wcscoll): Likewise.
2444         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
2445         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
2446         __rpc_thread_createerr): Add libc_hidden_proto.
2447         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
2448         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
2449         __rpc_thread_createerr): Add libc_hidden_def.
2451         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
2452         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
2453         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
2454         clnt_perror, clnt_sperror): Add libc_hidden_def.
2455         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
2457         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
2458         libc_hidden_proto.
2459         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
2460         * sunrpc/des_soft.c (des_setparity): Likewise.
2462         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
2463         Add libc_hidden_proto.
2464         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
2465         Add libc_hidden_def.
2467 2002-08-05  Roland McGrath  <roland@redhat.com>
2469         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
2470         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
2471         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
2472         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
2473         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
2474         old data, abandoning the original memory allocated by rtld at startup,
2475         instead of calling realloc normally.
2477 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
2479         * po/fr.po: Update from translation team.
2481 2002-08-04  Roland McGrath  <roland@redhat.com>
2483         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
2484         then generate a dummy module under the given name, obeying the
2485         normal rules for the "caller" field.
2487         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
2488         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
2490         * include/pthread.h: Don't declare __pthread_initialize_minimal as
2491         weak here; we declare it weak or strong in the one place we use it.
2492         * sysdeps/generic/libc-start.c: ... which is here.
2493         Don't make the decl weak if [USE_TLS], since static programs need TLS
2494         setup even when single-threaded.
2496         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
2498         * elf/Makefile (test-srcs): Add $(modules-names) to it.
2499         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
2500         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
2501         all these variables.
2503 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
2505         * include/stdio.h: Don't define macro magic to redirect function
2506         calls if _ISOMAC is defined.
2508         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
2509         ldouble asin tests.
2511 2002-08-04  Roland McGrath  <roland@redhat.com>
2513         * stdlib/lrand48_r.c: Add libc_hidden_def.
2515         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
2516         TCB with __libc_memalign instead of mmap.
2517         (_dl_deallocate_tls): Free it with free instead of munmap.
2519         * Makerules (cpp-srcs-left): When setting this to run
2520         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
2521         words.  Combine the two loops into one on the concatenated list,
2522         including those as well as $(test-srcs).
2524         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
2525         since we align here with optimally minimal waste anyway.
2526         (malloc): Just call that.
2528         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
2529         the right variable.
2531         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
2532         to compute memory location for l_tls_initimage.
2533         * elf/rtld.c (_dl_start): Likewise.
2534         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
2536         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
2537         because the .d file is generated in the non-shared case and
2538         so fails to catch them otherwise.
2540         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
2541         split out of _dl_allocate_tls.
2542         (_dl_allocate_tls_init): Likewise.
2543         (_dl_allocate_tls): Call those.
2544         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
2545         * elf/rtld.c (dl_main): Call them separately instead of calling
2546         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
2547         is finished, so that the initializer data has been relocated before we
2548         copy it into the main thread's TLS block.
2550         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
2551         loop conditions, prevented the last used module from being initialized.
2553 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
2555         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
2556         if glob resp. globfree are not macros.
2557         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
2558         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
2559         Add libc_hidden_ver.
2560         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
2561         libc_hidden_def.
2562         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
2563         instead of libc_hidden_weak.
2564         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
2565         libc_hidden_ver instead of libc_hidden_def.
2566         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
2567         libc_hidden_ver instead of libc_hidden_def.
2568         (wcstoll, wcstoq): Remove libc_hidden_weak.
2569         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
2570         libc_hidden_ver.
2571         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
2572         libc_hidden_ver.
2573         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
2574         libc_hidden_ver.
2575         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
2576         libc_hidden_ver.
2578 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
2580         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
2581         to access _sys_siglist.
2582         * string/strsignal.c: Likewise.
2583         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
2584         * sysdeps/gnu/siglist.c: Likewise.
2585         * sysdeps/unix/siglist.c: Likewise.
2586         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
2588         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
2590         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
2592         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
2593         alias and use it.
2594         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
2596         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
2597         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
2598         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
2600         * include/time.h: Add libc_hidden_proto for __gmtime_r.
2601         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
2603         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
2604         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
2605         and __gconv_get_cache respectively.
2606         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
2607         defined static.  Change all users.
2608         (__gconv_get_cache): New function.
2609         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
2610         (__gconv_get_alias_db): New function.
2611         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
2612         (__conv_modules_db): Likewise.
2613         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
2614         and __gconv_get_alias_db.
2615         * iconv/iconv_prog.c: Use the new functions instead of accessing the
2616         variables.
2618         * include/stdlib.h: Add prototype and libc_hidden_proto for
2619         __default_morecore.
2620         * sysdeps/generic/morecore.c: Include <stdlib.h>.
2622         * malloc/obstack.c: Remove fputs macro.
2624         * malloc/mtrace.c: Remove fopen macro.
2626 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
2628         * manual/debug.texi: Fix spelling to programmatically.
2629         Reported by <hayastan132@hotmail.com>.
2631 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
2633         * include/libio.h: Add libc_hidden_proto for __uflow.
2634         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
2635         fgetpos to _IO_* names.
2636         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
2637         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
2638         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
2639         putwc_unlocked, vswscanf.
2640         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
2641         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
2642         * libio/fseek.c: Likewise.
2643         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
2644         not fopencookie.
2645         * libio/genops.c (__uflow): Add libc_hidden_def.
2646         * libio/iofflush_u.c (fflush_unlocked): Likewise.
2647         * libio/iofgets_u.c (fgets_unlocked): Likewise.
2648         * libio/iofputs_u.c (fputs_unlocked): Likewise.
2649         * libio/iofputws_u.c (fputws_unlocked): Likewise.
2650         * libio/iofread_u.c (fread_unlocked): Likewise.
2651         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2652         * libio/iovswscanf.c (vswscanf): Likewise.
2653         * libio/putwc_u.c (putwc_unlocked): Likewise.
2654         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
2655         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
2656         * malloc/mtrace.c: Likewise.
2658         * sunrpc/clnt_perr.c: Remove fputs macro.
2659         * sunrpc/svc_simple.c: Likewise.
2660         * sunrpc/svc_tcp.c: Likewise.
2661         * sunrpc/svc_udp.c: Likewise.
2662         * sunrpc/xdr_rec.c: Likewise.
2663         * sunrpc/xdr_ref.c: Likewise.
2665         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
2666         iconv_prog, linereader, and charmap-dir.
2667         * locale/Makefile: Likewise for locale and charmap-dir.
2668         * malloc/Makefile: Likewise for memusagestat.
2669         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
2670         * sunrpc/Makefile: Likewise for rpc_main.
2671         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
2672         * timezone/Makefile: Likewise for zic.
2674         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
2676         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
2677         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
2678         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
2679         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
2680         _dl_close.
2682         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
2683         __wunderflow.
2684         * libio/genops.c (__underflow): Add libc_hidden_def.
2685         * libio/wgenops.c (__wuflow): Likewise.
2686         (__wunderflow): Likewise.
2688         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
2689         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
2691         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
2692         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
2694         * include/string.h: Add libc_hidden_proto for __strverscmp.
2695         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
2697         * include/unistd.h: Add libc_hidden_proto for __sysconf.
2698         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
2699         * sysdeps/posix/sysconf.c: Likewise.
2700         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
2701         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
2703         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
2704         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
2705         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
2706         __iswxdigit_l, __towlower_l, __towupper_l.
2707         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
2708         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
2710         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
2711         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
2712         * sysdeps/mach/hurd/xmknod.c: Likewise.
2713         * sysdeps/unix/xmknod.c: Likewise.
2714         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
2715         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
2716         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
2718         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
2720 2002-08-03  Roland McGrath  <roland@redhat.com>
2722         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
2723         setpriority.
2724         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
2725         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
2726         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
2727         * sysdeps/mach/hurd/setpriority.c: Likewise.
2728         * sysdeps/mach/hurd/getpriority.c: Likewise.
2729         * sysdeps/generic/setpriority.c: Likewise.
2730         * sysdeps/generic/getpriority.c: Likewise.
2732         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
2733         * malloc/mcheck.c: Add libc_hidden_def.
2735         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
2736         * misc/hsearch_r.c: Add libc_hidden_def.
2738         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
2739         * posix/fnmatch.c: Add libc_hidden_weak.
2741         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
2742         execl, execle, execlp, execvp, getpid, getsid.
2743         * sysdeps/generic/alarm.c: Add libc_hidden_def.
2744         * sysdeps/unix/alarm.c: Likewise.
2745         * posix/confstr.c: Likewise.
2746         * posix/execvp.c: Likewise.
2747         * posix/execlp.c: Likewise.
2748         * posix/execle.c: Likewise.
2749         * posix/execl.c: Likewise.
2750         * sysdeps/generic/getsid.c: Likewise.
2751         * sysdeps/mach/hurd/getsid.c: Likewise.
2752         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
2753         * sysdeps/mach/hurd/getpid.c: Likewise.
2755         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
2756         qecvt_r, qfcvt_r, lrand48_r.
2757         * misc/efgcvt_r.c: Add libc_hidden_def.
2759         * include/wordexp.h: Use libc_hidden_proto for wordfree.
2760         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
2762         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
2763         * locale/nl_langinfo.c: Add libc_hidden_def.
2765         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
2766         * sysdeps/generic/glob.c: Add libc_hidden_def.
2767         * sysdeps/generic/glob64.c: Likewise.
2768         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
2770         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
2772         * elf/Makefile (CFLAGS-vismod2.c): New variable.
2774         * locale/setlocale.c (_nl_current_names): Variable moved ...
2775         * locale/localename.c (_nl_current_names): ... here, new file.
2776         Make it global, with attribute_hidden.
2777         * locale/localeinfo.h: Declare it.
2778         * locale/Makefile (aux): Add localename.
2779         * locale/localename.c (__current_locale_name): New function.
2780         * include/locale.h (__current_locale_name): Declare it.
2781         * intl/dcigettext.c (guess_category_value): Use that instead of
2782         calling setlocale.
2784         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
2785         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
2786         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
2787         * locale/newlocale.c: Add alias to __ name.
2788         * locale/duplocale.c: Likewise.
2789         * locale/freelocale.c: Likewise.
2790         * locale/uselocale.c: New file.
2791         * locale/Makefile (routines): Add it.
2792         * locale/Versions (libc: GLIBC_2.3): New set.
2793         Add newlocale, duplocale, freelocale, uselocale.
2794         (libc: GLIBC_PRIVATE): Add __uselocale.
2796         * locale/localeinfo.h [SHARED]
2797         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
2798         (_NL_CURRENT_DATA): Define using that.
2799         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
2800         (_NL_CURRENT_DEFINE): Define to empty.
2801         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
2802         conditionalized on this.
2803         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
2804         taking initializer of _nl_C_locobj.
2805         [SHARED] (_nl_global_locale): New variable, using that initializer.
2806         (_nl_C_locobj): Use new macro for initialzier.
2807         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
2808         [! SHARED] (CATEGORY_USED): New macro.
2809         [SHARED] (CATEGORY_USED, _nl_C): New macros.
2810         (setdata, setlocale): Use that macro instead of examining _nl_current.
2811         (setdata): Set the slot in _nl_global_locale.
2812         Conditionalize setting of _nl_current on [! SHARED].
2813         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
2814         declaration as an extern.
2815         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
2817         * include/locale.h: Use libc_hidden_proto for setlocale.
2818         * locale/setlocale.c: Add libc_hidden_def.
2820         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
2822         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
2823         * misc/hsearch_r.c: Add libc_hidden_def.
2824         * misc/lsearch.c: Likewise.
2826         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
2827         endttyent.
2828         * misc/getttyent.c: Add libc_hidden_def.
2830         * include/mcheck.h: Use libc_hidden_proto for mcheck.
2831         * malloc/mcheck.c: Add libc_hidden_def.
2833         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
2834         * include/argz.h: Use libc_hidden_proto for argz_delete.
2835         * string/argz-delete.c: Add libc_hidden_def.
2836         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
2838         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
2839         HIDDEN_JUMPTARGET for _exit.
2840         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
2841         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
2842         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
2843         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
2845         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
2846         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
2847         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
2848         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
2850         * include/stdlib.h: Use libc_hidden_proto for abort,
2851         __strtof_internal, __strtod_internal, __strtold_internal,
2852         __strtol_internal, __strtoll_internal, __strtoul_internal,
2853         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
2854         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
2855         __strtoul_l_internal, __strtoull_l_internal.
2856         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
2857         __wcstod_internal, __wcstold_internal, __wcstol_internal,
2858         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
2859         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
2860         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
2861         __wcsncasecmp_l.
2862         * sysdeps/generic/abort.c: Add libc_hidden_def.
2863         * stdlib/strtod.c: Likewise.
2864         * sysdeps/generic/strtol.c: Likewise.
2865         * sysdeps/wordsize-64/strtol.c: Likewise.
2866         * sysdeps/wordsize-64/wcstol.c: Likewise.
2867         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
2869         * include/stdlib.h: Use libc_hidden_proto for qsort.
2870         * stdlib/msort.c: Add libc_hidden_def.
2872         * include/utime.h: Use libc_hidden_proto for utime.
2873         * sysdeps/generic/utime.c: Add libc_hidden_def.
2874         * sysdeps/unix/utime.c: Likewise.
2876         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
2877         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
2878         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2879         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
2880         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
2882         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
2883         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
2884         and __libc_current_sigrtmax.
2885         * signal/sigismem.c: Add libc_hidden_def.
2886         * signal/sigfillset.c: Likewise.
2887         * signal/sigempty.c: Likewise.
2888         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
2889         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2890         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
2891         * sysdeps/posix/raise.c: Likewise.
2892         * sysdeps/generic/raise.c: Likewise.
2894 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
2896         * include/string.h: Use libc_hidden_proto for __stpcpy.
2897         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
2898         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
2899         * sysdeps/generic/stpcpy.c: Likewise.
2900         * sysdeps/i386/stpcpy.S: Likewise.
2901         * sysdeps/i386/i586/stpcpy.S: Likewise.
2902         * sysdeps/powerpc/stpcpy.S: Likewise.
2903         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
2904         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
2906         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
2907         __strncasecmp_l, __strdup, __strndup, __strerror_r.
2908         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
2909         libc_hidden_def.
2910         * string/strdup.c (__strdup): Likewise.
2911         * string/strndup.c (__strndup): Likewise.
2912         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
2913         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
2915 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
2917         * include/libio.h: New file.
2918         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
2919         * libio/iolibio.h: #include <libio.h>, not "libio.h".
2920         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
2921         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
2922         * sysdeps/unix/common/syscalls.list: Likewise.
2923         * sysdeps/unix/inet/syscalls.list: Likewise.
2924         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
2925         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
2926         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2927         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2928         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2929         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2930         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2931         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2932         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2933         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
2934         * sysdeps/unix/syscalls.list: Likewise.
2936 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
2937             Ulrich Drepper  <drepper@redhat.com>
2939         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
2940         the arguments is big enough to cause an overflow.
2942 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
2944         * assert/assert.c: Use hidden_def not INTDEF.
2946 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
2948         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
2949         not defined.
2951 2002-08-03  Roland McGrath  <roland@redhat.com>
2953         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
2954         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
2955         verr, verrx.
2956         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
2957         * misc/syslog.c: Add libc_hidden_def.
2958         * misc/err.c: Likewise.
2959         * stdlib/exit.c: Likewise.
2960         * stdlib/bsearch.c: Likewise.
2961         * sysdeps/generic/getenv.c: Likewise.
2963         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
2965         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
2966         libc_hidden_weak for every system call symbol defined.
2968         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
2969         timelocal, localtime, strftime.
2970         * time/asctime.c: Add libc_hidden_def.
2971         * time/mktime.c: Likewise.
2972         * time/localtime.c: Likewise.
2973         * time/strftime.c: Likewise.
2974         * time/strptime.c: Likewise.
2975         * sysdeps/generic/time.c: Likewise.
2976         * sysdeps/unix/time.c: Likewise.
2977         * sysdeps/unix/sysv/i386/time.S: Likewise.
2978         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
2980         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
2981         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
2982         * resolv/inet_ntop.c: Likewise.
2983         * resolv/inet_pton.c: Likewise.
2984         * inet/inet_mkadr.c: Add libc_hidden_def.
2985         * inet/inet_netof.c: Likewise.
2986         * resolv/inet_addr.c: Likewise.
2988         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
2989         clauses from conditionals for now.  Will have to be fixed later
2990         for older compilers.
2992         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
2994 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
2996         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
2997         broken alias attribute handling.
2998         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3000 2002-08-02  Roland McGrath  <roland@frob.com>
3002         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3003         since it sets the variables we use in a -D switch.
3005 2002-08-02  Roland McGrath  <roland@redhat.com>
3007         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3008         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3009         matches long int, not int.
3011         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3012         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3013         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3014         * wctype/wctrans.c (wctrans): Likewise.
3015         * wctype/wctype.c (__wctype): Likewise.
3016         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3018 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3020         * assert/assert.c (__assert_fail): Fix typo in comment.
3022         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3023         * sunrpc/rpc_thread.c: Define it without static.
3024         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3026 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
3028         * assert/assert.c (__assert_fail): Remove undef.
3029         Replace INTDEF with libc_hidden_def.
3030         * assert/__assert.c (__assert): Remove INTUSE.
3031         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3032         libc_hidden_weak.
3033         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
3034         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
3035         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
3036         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
3037         libm_hiden_ver): Define.
3038         * include/assert.h (__assert_fail_internal): Remove.
3039         (__assert_fail): Add prototype.  Add hidden_proto.
3040         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
3041         libc_hidden_proto.
3042         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
3043         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
3044         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
3045         Add libc_hidden_proto.
3046         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
3047         __fcntl): Add libc_hidden_proto.  Remove macros.
3048         (__open_internal, __fcntl_internal): Remove.
3049         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
3050         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
3051         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
3052         libc_hiden_proto.
3053         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
3054         libc_hidden_def.
3055         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
3056         Add libc_hidden_def.
3057         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
3058         * sysdeps/generic/open.c (__open): Remove undef.
3059         Add libc_hidden_def.  Remove INTDEF.
3060         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
3061         Add libc_hidden_def.
3062         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
3063         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
3064         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
3065         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3066         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3067         (__libc_fcntl): Add libc_hidden_def.
3068         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
3069         (__open): Remove INTDEF2.  Add libc_hidden_weak.
3070         (__libc_open): Add libc_hidden_def.
3071         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
3072         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
3073         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3074         Add libc_hidden_def.
3075         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
3076         Add libc_hidden_def.
3077         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
3078         undef.
3079         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3080         (__libc_fcntl): Add libc_hidden_def.
3081         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
3082         __getpgid_internal, __chown_internal): Remove.
3083         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
3084         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
3085         __GI___chown): Add.
3086         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
3087         __getpid_internal, __open_internal, __write_internal): Remove.
3088         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
3089         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
3090         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
3091         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
3092         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
3093         Replace INTDEF with libc_hidden_def.
3094         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
3095         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
3096         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
3097         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
3098         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
3099         Add libc_hidden_proto.
3100         * include/sys/poll.h (__poll): Add libc_hidden_proto.
3101         * include/sys/select.h (__select): Likewise.
3102         * include/sys/socket.h (__send): Likewise.
3103         * include/sys/statfs.h (__statfs): Likewise.
3104         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
3105         __getpid, __getpgid, __setpgid, __close, __read, __write,
3106         __getpagesize, __sbrk): Likewise.
3107         (__chown_internal, __dup2_internal, __getpid_internal,
3108         __getpgid_internal, __close_internal, __write_internal,
3109         __getpagesize_internal): Remove.
3110         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
3111         Remove macros.
3112         * include/printf.h (__printf_fp): Add libc_hidden_proto.
3113         * include/sched.h (__sched_setscheduler): Likewise.
3114         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
3115         * include/stdlib.h (__secure_getenv): Likewise.
3116         * include/signal.h (__sigaction, __sigsuspend): Likewise.
3117         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
3118         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
3119         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
3120         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
3121         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
3122         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
3123         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
3124         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
3125         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
3126         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
3127         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
3128         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
3129         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
3130         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
3131         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
3132         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3133         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3134         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3135         * libio/genops.c (__overflow): Add libc_hidden_def.
3136         * libio/iovdprintf.c: Remove libio.h include.
3137         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
3138         libc_hidden_weak): Define to nothing if not defined.
3139         (__overflow, __woverflow): Add libc_hidden_proto.
3140         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
3141         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
3142         (DB_LOOKUP_FCT): Add libc_hidden_proto.
3143         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
3144         (DB_LOOKUP_FCT): Add libc_hidden_proto.
3145         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
3146         and libc_hidden_def.
3147         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
3148         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
3149         (__getpgid): Add libc_hidden_proto.
3150         (__bsd_getpgrp): Remove INTUSE.
3151         * resolv/res_init.c (__res_ninit, __res_randomid): Add
3152         libc_hidden_def.
3153         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
3154         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
3155         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
3156         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
3157         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
3158         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
3159         __rpc_thread_createerr): Add libc_hidden_def.
3160         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
3161         libc_hidden_def.
3162         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
3163         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
3164         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
3165         * sysdeps/generic/chown.c (__chown): Likewise.
3166         * sysdeps/generic/close.c (__close): Likewise.
3167         * sysdeps/generic/dup2.c (__dup2): Likewise.
3168         * sysdeps/generic/pipe.c (__pipe): Likewise.
3169         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
3170         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
3171         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
3172         * sysdeps/generic/read.c (__libc_read): Likewise.
3173         (__read): Add libc_hidden_weak.
3174         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
3175         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
3176         * sysdeps/generic/select.c (__select): Likewise.
3177         * sysdeps/generic/send.c (__send): Likewise.
3178         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
3179         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
3180         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
3181         * sysdeps/generic/statfs.c (__statfs): Likewise.
3182         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
3183         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
3184         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
3185         Remove undef and INTDEF.
3186         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
3187         * sysdeps/generic/getpid.c (__getpid): Likewise.
3188         * sysdeps/generic/write.c (__libc_write): Likewise.
3189         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
3190         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
3191         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
3192         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
3193         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
3194         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
3195         Remove undef and INTDEF.
3196         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
3197         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
3198         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
3199         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
3200         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
3201         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
3202         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
3203         (__pipe): Add libc_hidden_def.
3204         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
3205         libc_hidden_weak.
3206         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
3207         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
3208         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
3209         (__read): Add libc_hidden_weak.
3210         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
3211         (__libc_pwrite64): Add libc_hidden_def.
3212         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
3213         * sysdeps/mach/hurd/select.c (__select): Likewise.
3214         * sysdeps/mach/hurd/send.c (__send): Likewise.
3215         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
3216         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
3217         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
3218         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
3219         * sysdeps/posix/dup2.c: Likewise.
3220         Remove undef and INTDEF.
3221         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
3222         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
3223         (__pwrite64): Add libc_hidden_weak.
3224         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
3225         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
3226         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
3227         * sysdeps/standalone/close.c (__close): Likewise.
3228         * sysdeps/standalone/write.c (__libc_write): Likewise.
3229         (__write): Add libc_hidden_weak.
3230         * sysdeps/standalone/read.c (__read): Likewise.
3231         (__libc_read): Add libc_hidden_def.
3232         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
3233         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
3234         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
3235         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
3236         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
3237         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
3238         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
3239         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
3240         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
3241         __GI___sigaction): Add.
3242         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
3243         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
3244         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
3245         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
3246         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
3247         __GI___setpgid): Add.
3248         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
3249         Remove undef and INTDEF.
3250         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
3251         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
3252         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
3253         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
3254         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
3255         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
3256         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
3257         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
3258         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
3259         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
3260         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
3261         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
3262         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
3263         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
3264         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
3265         __GI___statfs, __GI___send): Add.
3266         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
3267         libc_hidden_ver resp. libc_hidden_def.
3268         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
3269         libc_hidden_def.
3270         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
3271         Likewise.  Remove undef and INTDEF.
3272         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
3273         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
3274         __GI___statfs, __GI___send): Add.
3275         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
3276         libc_hidden_def.
3277         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
3278         Likewise.
3279         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
3280         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
3281         libc_hidden_ver resp. libc_hidden_def.
3282         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
3283         __GI___send): Add.
3284         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
3285         Add libc_hidden_weak.
3286         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
3287         Add libc_hidden_def.
3288         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
3289         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
3290         libc_hidden_weak.
3291         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
3292         resp. libc_hidden_def.
3293         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
3294         libc_hidden_weak.
3295         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
3296         INTDEF.
3297         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
3298         Likewise.  Remove undef.
3299         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
3300         libc_hidden_weak.
3301         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
3302         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
3303         libc_hidden_weak.
3304         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
3305         libc_hidden_def.
3306         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
3307         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
3308         Likewise.  Remove undef and INTDEF.
3309         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
3310         libc_hidden_def.
3311         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
3312         libc_hidden_weak.
3313         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
3314         libc_hidden_def.
3315         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
3316         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
3317         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
3318         libc_hidden_weak.
3319         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
3320         Add libc_hidden_def.
3321         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
3322         __GI___statfs): Add.
3323         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
3324         libc_hidden_weak.
3325         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
3326         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
3327         Remove undef and INTDEF.
3328         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
3329         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
3330         libc_hidden_def.
3331         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
3332         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
3333         libc_hidden_weak.
3334         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
3335         libc_hidden_def.
3336         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
3337         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
3338         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
3339         Add.
3340         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
3341         libc_hidden_def.  Remove undef and INTDEF.
3342         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
3343         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
3344         libc_hidden_def.
3345         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
3346         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
3347         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
3348         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
3349         Remove undef and INTDEF.
3350         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
3351         broken visibility attribute handling.
3352         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
3354 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3356         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
3357         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
3359         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
3360         previous patch.
3362 2002-06-29  Todd Fries  <todd@openbsd.org>
3364         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
3366 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
3368         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
3370 2002-07-30  Roland McGrath  <roland@redhat.com>
3372         * resolv/resolv.h (_res): Define macro unconditionally.
3373         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
3374         * include/resolv.h: ... here.
3375         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
3376         as a __thread variable.
3377         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
3378         a __thread variable instead of a global.
3379         * resolv/res_data.c [_LIBC]: Don't #undef _res.
3381         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
3382         time we test it.
3384         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
3386         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
3387         decls of memset and memcpy.
3389         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
3390         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
3392         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
3394         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
3395         (__libc_tsd_define): Define using __thread.
3397         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
3398         (__rpc_thread_variables): Use __libc_tsd_get.
3399         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
3400         __rpc_thread_variables, which might allocate what we're about to free.
3402         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
3403         thread-local variable.
3404         * resolv/netdb.h (h_errno): Define macro unconditionally.
3405         [_LIBC] (__set_h_errno): Macro moved to ...
3406         * include/netdb.h: ... here.
3407         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
3408         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
3409         [! _LIBC_REENTRANT]: #undef h_errno here.
3411         * include/errno.h: Protect from multiple inclusion.
3413         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
3414         before defining them, since Linux's <linux/posix_types.h> might have
3415         defined them.
3417 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
3419         * malloc/malloc.c (public_cALLOc): Check for overflow on
3420         multiplication.
3421         * sunrpc/xdr_array.c (xdr_array): Likewise.
3422         * sunrpc/rpc/types.h (mem_free): Add comment.
3423         Patch by Solar Designer <solar@openwall.com>.
3425 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
3427         * sysdeps/unix/sysv/linux/kernel-features.h
3428         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
3430 2002-08-01  Roland McGrath  <roland@redhat.com>
3432         * libio/fileops.c (_IO_file_sync_mmap): New function.
3433         (_IO_file_jumps_mmap): Use it.
3434         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
3435         repeat the stat check and resize the mapped buffer as necessary.
3437 2002-07-31  Roland McGrath  <roland@redhat.com>
3439         * libio/fileops.c (decide_maybe_mmap): New static function.
3440         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
3441         mmap the file contents.  Then switch the jump tables to the mmap
3442         tables if it worked, or the vanilla file tables if not.
3443         (_IO_file_underflow_maybe_mmap): New function.
3444         (_IO_file_seekoff_maybe_mmap): New function.
3445         (_IO_file_xsgetn_maybe_mmap): New function.
3446         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
3447         * libio/libioP.h: Declare those.
3448         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
3449         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
3450         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
3451         If the stream is read-only, set its jump tables to those new ones.
3452         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
3453         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
3454         We need the tables set before _IO_file_attach.
3456         * libio/tst-mmap-eofsync.c: New file.
3457         * libio/tst-mmap-fflushsync.c: New file.
3458         * libio/bug-mmap-fflush.c: New file.
3459         * libio/tst-mmap2-eofsync.c: New file.
3460         * libio/Makefile (tests): Add them.
3462         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
3463         _IO_file_underflow_mmap fails, it already set the appropriate bit.
3465 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
3467         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
3468         Declarations moved to <bits/sys_errlist.h>.  Include that file.
3469         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
3470         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
3471         declare sys_errlist and sys_nerr.
3472         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
3473         provide declarations.
3475 2002-07-31  Roland McGrath  <roland@redhat.com>
3477         * elf/rtld.c (dl_main): Fix typo in error message.
3479 2002-07-31  Roland McGrath  <roland@frob.com>
3481         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
3482         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
3483         sysdeps/mach/hurd/dl-sysdep.c change.
3485 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
3487         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
3488         -r`/build/include for kernel headers.
3490         * po/fi.po: New file.
3492 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
3494         * configure.in (static_nss): Set to `yes' if --disable-shared.
3496 2002-07-23  Bruno Haible  <bruno@clisp.org>
3498         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
3499         is set.
3501 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
3503         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
3504         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
3505         arguments.
3507 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
3509         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
3510         alias.
3512 2002-07-21  Bruno Haible  <bruno@clisp.org>
3514         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
3515         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
3516         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
3517         trans_sysdep_tab_offset.
3518         (struct sysdep_segment): New type.
3519         (struct sysdep_string): New type.
3520         (SEGMENTS_END): New macro.
3521         * intl/gettextP.h (struct sysdep_string_desc): New type.
3522         (struct loaded_domain): New fields malloced, n_sysdep_strings,
3523         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
3524         orig_tab, trans_tab, hash_tab to const pointers because they point
3525         into read-only memory.
3526         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
3527         (PRI*): Define fallback values.
3528         (get_sysdep_segment_value): New function.
3529         (_nl_load_domain): Distinguish major and minor revision parts. Add
3530         support for minor revision 1 with system dependent strings.
3531         (_nl_unload_domain): Also free the 'malloced' field.
3532         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
3533         now done in loadmsgcat.c. Add support for system dependent strings.
3535 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
3537         * posix/bug-regex7.c: New file.
3538         * posix/bug-regex8.c: New file.
3539         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
3541 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
3543         * posix/bug-regex4.c (main): Fix typos.
3544         * posix/bug-regex6.c (main): Likewise.
3546 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
3548         * posix/bug-regex6.c (main): Fix warnings.
3550         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
3552         * iconv/iconv_prog.c (main): Improve error message for the cases
3553         where -t and/or -f parameter are missing.
3555 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
3557         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
3558         (re_search): Likewise.
3559         (re_match_2): Likewise.
3560         (re_search_2): Likewise.
3561         (re_search_stub): New function.
3562         (re_search_2_stub): New function.
3563         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
3565 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
3567         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
3568         (re_string_eoi): Use STOP instead of LEN.
3569         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
3570         (re_string_construct): Likewise.
3571         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
3572         * posix/regexec.c (re_search_internal): Add a new argument STOP
3573         so that it can handle the argument STOP of re_search_2 and re_match_2
3574         correctly.
3575         (regexec): Adapt to new I/F of re_search_internal.
3576         (re_search_stub): Likewise.
3578 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
3580         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
3582         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
3584         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
3585         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
3586         of __divdi3.
3588         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
3589         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
3590         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
3591         alias for adjtimex syscall.
3593         * elf/dl-minimal.c: Define __assert_fail_internal.
3594         * assert/assert.c: Likewise.
3595         * include/assert.h: Define __assert_file macro if !SHARED and not
3596         NOT_IN_libc.
3598         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
3599         programs.
3600         * locale/Makefile: Likewise.
3601         * nscd/Makefile: Likewise.
3602         * catgets/Makefile: Likewise.
3604 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
3606         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
3607         compute current position.
3609         * stdio-common/tst-fseek.c (main): Improve error messages.
3611         * libio/tst-freopen.c (main): Remove unused variable.
3613         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
3614         succesful seek call.  Simplify error checking.
3616 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
3618         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
3619         * sysdeps/ia64/fpu/libm_support.h: Likewise.
3621 2002-07-19  Roland McGrath  <roland@frob.com>
3623         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
3624         __libc_enable_secure is set.
3626 2002-07-24  Roland McGrath  <roland@frob.com>
3628         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
3629         This implementation supports only IPv4.
3630         * inet/ifaddrs.h: New file.
3631         * sysdeps/generic/ifaddrs.c: New file.
3632         * sysdeps/gnu/ifaddrs.c: New file.
3633         * inet/test-ifaddrs.c: New file.
3634         * inet/Makefile (routines): Add ifaddrs.
3635         (headers): Add ifaddrs.h here.
3636         (tests): Add test-ifaddrs.
3637         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
3639         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
3640         socket call to get an AF_INET socket, instead of using __opensock.
3641         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
3643         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
3644         if not -1 use it instead of calling __opensock.
3645         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
3646         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
3647         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
3649         * sysdeps/mach/hurd/ifreq.h: New file.
3650         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
3651         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
3652         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
3654         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
3655         which gets moved around.  Calculate size of mmap'd buffer instead.
3657 2002-07-24  Philip Blundell  <philb@gnu.org>
3659         * sysdeps/unix/arm/brk.S: Improve schedule.
3660         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
3661         efficient instruction.
3662         (__socket): Optimize return sequence.
3664 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
3666         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
3667         sockets on old kernels.
3669 2002-07-22  Philip Blundell  <philb@gnu.org>
3671         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
3672         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
3673         alias.
3675 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
3677         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
3678         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
3680         * locale/programs/locarchive.c (add_locale_to_archive): Correct
3681         test to detect duplicate locales.
3683         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
3684         position would be before beginning of file.
3685         (_IO_file_seekoff_mmap): Likewise.
3686         * libio/Makefile (tests): Add bug-fseek.
3687         * libio/bug-fseek.c: New file.
3689         * intl/explodename.c: Remove support for CEN-style locale variables.
3690         It was never used and shouldn't be since it's not portable.
3691         * intl/finddomain.c: Likewise.
3692         * intl/l10nflist.c: Likewise.
3693         * intl/loadinfo.h: Likewise.
3694         * locale/findlocale.c: Likewise.
3696 2002-07-24  Roland McGrath  <roland@frob.com>
3698         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
3699         position, calculate it to take into account an active pushback buffer.
3701         * libio/Makefile (tests): Add bug-ungetc.
3702         * libio/bug-ungetc.c: New file.
3704 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
3706         * sysdeps/generic/libc-tls.c: New file.
3707         * csu/Makefile (routines): Add libc-tls.
3708         (static-only-routines): Add libc-tls.
3709         * elf/dl-support.c (_dl_phdr): New variable.
3710         (_dl_phnum): New variable.
3711         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
3712         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
3713         for !SHARED.  First look through auxiliary vector.  If TLS always
3714         call __pthread_initialize_minimal.
3716         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
3717         in mmap call is never zero.
3719 2002-07-23  Andreas Jaeger  <aj@suse.de>
3721         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
3722         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3724 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
3726         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
3727         creation and removal of the temp file.
3729         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
3730         file creation.
3731         * test-skeleton.c (create_temp_file): New function.
3733 2002-07-22  Andreas Jaeger  <aj@suse.de>
3735         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
3736         local label.
3738 2002-07-21  Roland McGrath  <roland@frob.com>
3740         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
3741         put -I../include before -I../stdlib so we get the right errno.h et al.
3742         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
3743         (CFLAGS-wcstof.c): Likewise.
3744         (CFLAGS-wcstold.c): Likewise.
3745         (CFLAGS-wcstod_l.c): Likewise.
3746         (CFLAGS-wcstof_l.c): Likewise.
3747         (CFLAGS-wcstold_l.c): Likewise.
3749 2002-07-19  Roland McGrath  <roland@frob.com>
3751         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
3753 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
3755         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
3756         __ASSUME_AT_XID is defined.
3757         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
3758         for 2.4.1 and up.
3759         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
3760         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
3762         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
3763         (CFLAGS-wcstof.c): Likewise.
3764         (CFLAGS-wcstold.c): Likewise.
3765         (CFLAGS-wcstod_l.c): Likewise.
3766         (CFLAGS-wcstof_l.c): Likewise.
3767         (CFLAGS-wcstold_l.c): Likewise.
3769 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
3771         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
3772         __priority_which_t): Always typedef to int for C++.
3774 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
3776         * configure.in: Add test for __thread support in compiler.
3777         * config.h.in: Add HAVE___THREAD.
3778         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
3779         * include/sys/errno.h: Moved to...
3780         * stdlib/sys/errno.h: ...here.  New file.
3781         * stdlib/errno.h: New file.  Moved from...
3782         * include/errno.h: ...here.  Changed into an internal header defining
3783         libc-local things like __set_errno.
3784         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
3785         bits/errno.h.
3786         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
3787         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
3788         either.
3789         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
3790         from...
3791         (_dl_start_final): ...here.  Add code to initialize tls elements from
3792         bootstrap_map.
3793         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
3794         if USE_TLS && HAVE___THREAD.
3795         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
3796         * sysdeps/mach/hurd/bits/errno.h: Likewise.
3797         * sysdeps/standalone/arm/bits/errno.h: Likewise.
3798         * sysdeps/standalone/bits/errno.h: Likewise.
3799         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
3800         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
3801         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
3802         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
3803         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
3804         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
3805         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
3806         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
3807         use GL(dl_rtld_map), use map parameter.
3808         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3809         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
3810         USE_TLS && HAVE___THREAD.
3811         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
3812         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
3813         TLS code sequence.
3814         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
3816         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
3817         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
3818         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
3819         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
3820         * sysdeps/unix/sysv/linux/readv.c: Likewise.
3821         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3823 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
3825         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
3826         MS_INVALIDATE values.
3828 2002-07-17  Andreas Schwab  <schwab@suse.de>
3829             Ulrich Drepper  <drepper@redhat.com>
3831         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
3832         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
3833         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3834         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3836 2002-07-01  H.J. Lu  <hjl@gnu.org>
3838         * elf/circleload1.c (load_dso): Call "circlemod1" and check
3839         return value.
3841         * elf/circlemod1.c (circlemod1): Return int.
3842         * elf/circlemod2.c (circlemod2): Likewise.
3843         * elf/circlemod2a.c (circlemod2): Likewise.
3844         * elf/circlemod3.c (circlemod3): Likewise.
3845         (circlemod3a): A new function.
3847 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
3849         * catgets/tst-catgets.c (main): Don't expect results for
3850         untranslated messages.
3852         * glibcbug.in: Fix little typo.  Remove STDIO.
3854         * config.h.in: Fail if __FAST_MATH__ is defined.
3855         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
3856         (CPPFLAGS-test-idouble.c): Likewise.
3857         (CPPFLAGS-test-ildouble.c): Likewise.
3859 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
3861         * intl/tst-gettext.sh: Pass -f option to msgfmt.
3862         * intl/tst-gettext.c: Correctly handle untranslated messages in
3863         positive tests.
3865         * po/de.po: Update from translation team.
3867 2002-07-02  H.J. Lu  <hjl@gnu.org>
3869         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
3870         use ll/sc.
3871         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
3873         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
3874         to 2.4.0 for mips.
3876 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
3878         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
3879         TLS fail if USE_TLS is not defined.
3881         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
3882         and adjust state for seek position.  [PR libc/4070]
3883         * libio/Makefile (tests): Add bug-rewind.
3884         * libio/bug-rewind.c: New file.
3886 2002-07-12  Philip Blundell  <philb@gnu.org>
3888         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
3889         (__backtrace): Use it.
3890         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
3892 2002-07-12  Philip Blundell  <philb@gnu.org>
3894         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
3895         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
3896         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
3897         (elf_machine_rela): Remove unused variable.
3899         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
3900         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
3901         define.
3903 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
3905         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
3907 2002-07-14  Andreas Jaeger  <aj@suse.de>
3909         * sysdeps/x86_64/bits/link.h: Add biarch support.
3911 2002-07-13  Andreas Jaeger  <aj@suse.de>
3913         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
3914         Use correct indices.
3915         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
3917 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3919         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
3920         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
3921         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
3922         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
3923         * sysdeps/s390/s390-32/bits/link.h: Remove.
3924         * sysdeps/s390/s390-64/bits/link.h: Remove.
3925         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
3926         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
3927         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
3928         * sysdeps/s390/bits/wordsize.h: New file.
3929         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
3930         elfclass.h.
3931         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
3932         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
3933         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
3934         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
3935         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
3936         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
3937         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
3938         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
3939         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
3940         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
3941         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
3942         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
3943         resource.h.
3944         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
3945         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
3946         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
3947         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
3948         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
3949         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
3950         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
3951         sigaction.h.
3952         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
3953         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
3954         siginfo.h.
3955         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
3956         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
3957         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
3958         socket.h.
3959         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
3960         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
3961         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
3962         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
3963         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
3964         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
3965         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
3966         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
3967         procfs.h.
3968         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
3969         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
3970         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
3971         ucontext.h.
3972         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
3973         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
3975 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
3977         * Versions.def (libc): Add GLIBC_2.3.
3978         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
3979         * stdlib/canonicalize.c: Add compatibility version for realpath
3980         and make new code available in GLIBC_2.3.
3982 2002-07-06  Bruno Haible  <bruno@clisp.org>
3984         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
3986 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
3988         * resolv/res_hconf.c (_res_hconf_init): Move code into new
3989         function do_init.  Use __libc_once.
3990         (do_init): New function.
3992         * iconvdata/iso8859-11.h: Removed.
3993         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
3994         (distribute): Remove iso8859-11.h.
3995         * iconvdata/tst-tables.sh: Add ISO-8859-11.
3997         * stdio-common/vfscanf.c (inchar): Restore errno from previous
3998         underflow operation if c == (W)EOF.
4000 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4002         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4003         non-zero, adjust exponent.
4004         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4005         Remove NO_LONG_DOUBLE aliases.
4006         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4007         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4008         (__log1pl): Raise divide by zero and invalid exceptions when needed.
4009         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4010         1**y and -1**+-Inf.
4011         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4012         Fix BITS_PER_MP_LIMB 32 extraction.
4013         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4014         exceptions for qNaNs.
4015         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4016         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4017         Raise exceptions when needed.  Don't recurse unnecessarily.
4018         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4019         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4020         exceptions for qNaNs.
4021         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4022         to fix *quo return value sign.
4023         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4024         case -Inf argument.
4025         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4027 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
4029         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4030         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4031         -DNDEBUG.
4033 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4035         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
4036         the result.
4038         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
4039         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
4041         * Versions.def (libthread_db): Add GLIBC_2.3.
4043 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
4045         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
4046         new stream if possible.
4047         * libio/freopen64.c (freopen64): Likewise.
4048         * libio/Makefile (tests): Add tst-freopen.
4049         * libio/tst-freopen.c: New file.
4051 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4053         * libio/stdio.h (obstack_printf): Add format attribute.
4054         (obstack_vprintf): Likewise.
4056 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4058         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
4059         resp. 16 bytes on 32-bit resp. 64-bit platforms.
4060         (re_charset_t, re_string_t): Reorder structure members for 64-bit
4061         architectures.
4063 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4065         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
4066         (init_dfa): ...here.
4068 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
4070         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
4071         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
4072         nodes in parse trees.
4073         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
4074         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
4075         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
4076         nodes which can epsilon transit.
4077         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
4078         to IS_EPSILON_NODE macro.
4079         * posix/regexec.c (update_regs): New function to update registers
4080         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
4081         (proceed_next_node): Use the entities of the nodes to determine
4082         whether the node can transit to.
4083         (set_regs): Use update_regs function to update registers.
4085 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4087         * posix/bug-regex4.c (main): Remove duplicate setlocale.
4088         * posix/bug-regex6.c: New file.
4089         * posix/Makefile (tests): Add bug-regex6.
4090         (bug-regex6-ENV): Set LOCPATH.
4092 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4094         * Versions.def [libpthread]: Add GLIBC_2.2.6.
4095         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
4097 2002-07-06  Bruno Haible  <bruno@clisp.org>
4099         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
4101 2002-07-06  Bruno Haible  <bruno@clisp.org>
4103         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
4104         declarations.
4106         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
4108         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
4110         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
4111         not _UTSNAME_H.
4112         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
4114         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
4115         * sysdeps/generic/bits/ustat.h: Likewise.
4117         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
4119 2002-07-08  Andreas Jaeger  <aj@suse.de>
4121         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
4123 2002-07-08  Andreas Jaeger  <aj@suse.de>
4125         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
4127 2002-07-06  Andreas Jaeger  <aj@suse.de>
4129         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
4130         * sysdeps/x86_64/fpu/s_copysign.S: New file.
4131         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
4132         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
4133         * sysdeps/x86_64/fpu/s_finitel.S: New file.
4134         * sysdeps/x86_64/fpu/s_fmax.S: New file.
4135         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
4136         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
4137         * sysdeps/x86_64/fpu/s_fmin.S: New file.
4138         * sysdeps/x86_64/fpu/s_fminf.S: New file.
4139         * sysdeps/x86_64/fpu/s_fminl.S: New file.
4141 2002-06-05  Brian Youmans <3diff@gnu.org>
4143         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
4144         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
4145         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
4146         * sysdeps/ia64/fpu/e_asin.S: Likewise.
4147         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
4148         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
4149         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
4150         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
4151         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
4152         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
4153         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
4154         * sysdeps/ia64/fpu/e_exp.S: Likewise.
4155         * sysdeps/ia64/fpu/e_expf.S: Likewise.
4156         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
4157         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
4158         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
4159         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
4160         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
4161         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
4162         * sysdeps/ia64/fpu/e_log.S: Likewise.
4163         * sysdeps/ia64/fpu/e_logf.S: Likewise.
4164         * sysdeps/ia64/fpu/e_pow.S: Likewise.
4165         * sysdeps/ia64/fpu/e_powf.S: Likewise.
4166         * sysdeps/ia64/fpu/e_powl.S: Likewise.
4167         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
4168         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
4169         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
4170         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
4171         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
4172         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
4173         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
4174         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
4175         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
4176         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
4177         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
4178         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
4179         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
4180         * sysdeps/ia64/fpu/libm_error.c: Likewise.
4181         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
4182         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
4183         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
4184         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
4185         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
4186         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
4187         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
4188         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
4189         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
4190         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
4191         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
4192         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
4193         * sysdeps/ia64/fpu/s_logb.S: Likewise.
4194         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
4195         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
4196         * sysdeps/ia64/fpu/s_modf.S: Likewise.
4197         * sysdeps/ia64/fpu/s_modff.S: Likewise.
4198         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
4199         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
4200         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
4201         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
4202         * sysdeps/ia64/fpu/s_rint.S: Likewise.
4203         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
4204         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
4205         * sysdeps/ia64/fpu/s_round.S: Likewise.
4206         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
4207         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
4208         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
4209         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
4210         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
4211         * sysdeps/ia64/fpu/s_significand.S: Likewise.
4212         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
4213         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
4214         * sysdeps/ia64/fpu/s_tan.S: Likewise.
4215         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
4216         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
4217         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
4218         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
4219         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
4220         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
4221         reflect IBM donation of math library to FSF
4222         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4223         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4224         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4225         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4226         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4227         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4228         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4229         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4230         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4231         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4232         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4233         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
4234         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
4235         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
4236         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
4237         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4238         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4239         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4240         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4241         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
4242         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
4243         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
4244         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
4245         * sysdeps/vax/__longjmp.c: Likewise.
4246         * sysdeps/vax/setjmp.c: Likewise.
4247         * libio/filedoalloc.c: Fixed BSD copying permission notice to
4248         remove advertising clause
4249         * sysdeps/vax/htonl.s: Likewise.
4250         * sysdeps/vax/htons.s: Likewise.
4251         * libio/wfiledoalloc.c: Likewise.
4252         * stdlib/random.c: Likewise.
4253         * stdlib/random_r.c: Likewise.
4254         * sysdeps/mach/sys/reboot.h: Likewise.
4255         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
4256         * sysdeps/posix/getaddrinfo.c: Likewise.
4257         * sunrpc/des_impl.c: Updated license permission notice to Lesser
4258         GPL and corrected pointer to point to the correct license.
4260 2002-07-04  Andreas Jaeger  <aj@suse.de>
4262         * scripts/config.guess: New upstream version.
4263         * scripts/config.sub: Likewise.
4265 2002-07-02  Andreas Schwab  <schwab@suse.de>
4267         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
4268         in parallel to bumping up the buffer pointer.
4270 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
4272         * math/libm-test.inc (acos_test): Add missing L suffix for
4273         expected result.
4274         (cpow_test): Likewise.
4275         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
4276         error for acos (0.0625).
4278 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
4280         * locale/iso-639.def: Add entry for Ganda.
4281         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
4282         definition.
4283         (address_finish): Handle entries with two letter ISO 639 code.
4285         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
4286         directory if it existed before.
4287         * iconv/iconvconfig.c: Implement --prefix option.
4289         * math/libm-test.inc (cexp_test): Add missing L suffix for
4290         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
4291         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
4292         1.25 i).
4294 2002-05-29  H.J. Lu  <hjl@gnu.org>
4296         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
4297         is turned on.
4299 2002-05-28  H.J. Lu  <hjl@gnu.org>
4301         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
4302         are not dlopened on the dependency list of a dlopened object.
4304 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
4306         * elf/dl-lookup.c (add_dependency): It is not necessary to add
4307         dependencies if they are created between objects which are created
4308         while processing RTLD_NOW for objects loaded as part of the same
4309         dlopen call.
4311 2002-06-14  H.J. Lu  <hjl@gnu.org>
4313         * elf/Makefile (tests): Add circleload1.
4314         (modules-names): Add circlemod1, circlemod2, circlemod3,
4315         circlemod1a, circlemod2a and circlemod3a.
4316         ($(objpfx)circleload1): New target.
4317         ($(objpfx)circleload1.out): Likewise.
4318         ($(objpfx)circlemod1.so): Likewise.
4319         ($(objpfx)circlemod2.so): Likewise.
4320         ($(objpfx)circlemod1a.so): Likewise.
4321         ($(objpfx)circlemod2a.so): Likewise.
4322         * elf/circleload1.c: New file.
4323         * elf/circlemod1.c: New file.
4324         * elf/circlemod1a.c: New file.
4325         * elf/circlemod2.c: New file.
4326         * elf/circlemod2a.c: New file.
4327         * elf/circlemod3.c: New file.
4328         * elf/circlemod3a.c: New file.
4330 2002-06-18  Amos Waterland  <apw@us.ibm.com>
4332         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
4333         file descriptor.
4334         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
4335         add check for fd not open for writing.
4337         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
4338         completed element(s) and do not suspend thread if so.  Patch
4339         heavily modified by drepper.
4341         * rt/tst-aio7.c: New file.  Regression test for problems which the
4342         above three changes fix.
4343         * rt/Makefile (tests): Add tst-aio7.
4345 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
4347         * rt/tst-aio6.c: Fix comment.
4349         * catgets/gencat.c (read_input_file): Handle more than one slash
4350         at end of line correctly [PR libc/3926].
4351         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
4353         * catgets/sample.SJIS: Add test case for above bug.
4354         * catgets/test-gencat.c: Adjust test code.
4355         * catgets/test-gencat.sh: Adjust expected results.
4357         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
4358         to skip relative relocations.
4359         Patch by Geoff Keating <geoffk@redhat.com>.
4361 2002-05-26  Bruno Haible  <bruno@clisp.org>
4363         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
4364         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
4365         All callers changed.
4366         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
4367         STANDARD_FROM_LOOP_ERR_HANDLER.
4368         (utf8_internal_loop): Likewise.
4369         (ucs2_internal_loop): Likewise.
4370         (internal_ucs2_loop): Perform error handling like in
4371         STANDARD_FROM_LOOP_ERR_HANDLER.
4372         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
4373         in STANDARD_FROM_LOOP_ERR_HANDLER.
4374         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
4375         handling.
4376         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
4377         in STANDARD_FROM_LOOP_ERR_HANDLER.
4378         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
4379         handling.
4380         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
4381         in STANDARD_FROM_LOOP_ERR_HANDLER.
4382         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
4383         handling.
4384         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
4385         STANDARD_FROM_LOOP_ERR_HANDLER.
4386         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
4387         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
4388         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
4389         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
4390         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
4391         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
4392         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
4393         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
4394         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
4395         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
4396         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
4397         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
4398         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
4399         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
4400         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
4401         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
4402         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
4403         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
4404         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
4405         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
4406         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
4407         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
4408         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
4409         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
4410         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
4411         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
4412         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
4413         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
4414         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
4415         an error, still set result = __GCONV_ILLEGAL_INPUT.
4416         (BODY for TO_LOOP): Likewise.
4417         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
4418         STANDARD_FROM_LOOP_ERR_HANDLER.
4419         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
4420         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
4421         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
4422         handling.
4423         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
4424         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
4425         STANDARD_FROM_LOOP_ERR_HANDLER.
4426         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
4427         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
4428         STANDARD_FROM_LOOP_ERR_HANDLER.
4429         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
4430         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
4431         STANDARD_FROM_LOOP_ERR_HANDLER.
4432         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
4433         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
4434         STANDARD_FROM_LOOP_ERR_HANDLER.
4435         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
4436         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
4437         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
4438         handling.
4439         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
4440         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
4441         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
4442         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
4444 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4446         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
4447         labels in assembler instructions.
4449 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
4451         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
4452         not enough content is available.
4453         * libio/tst-eof.c: New file.
4454         * libio/Makefile (tests): Add tst-eof.
4456         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
4457         update atime.
4458         * libio/tst-atime.c: New file.
4459         * libio/Makefile (tests): Add tst-atime.
4461         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
4462         handling of overly long words.
4464 2002-06-25  Andreas Jaeger  <aj@suse.de>
4466         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
4467         to not use 32-bit pc relative relocations.
4468         (elf_machine_dynamic): Likewise.
4470 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
4472         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
4473         (__GETDENTS): Check for failed getdents64 syscall.
4474         * dirent/Makefile (tests): Add bug-readdir1.
4475         * dirent/bug-readdir1.c: New file.
4477 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
4479         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
4480         lookups.
4481         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
4482         code.  Print TLS modid and offset for modules containing PT_TLS
4483         segments.
4485 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
4487         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
4488         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
4489         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
4490         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
4492 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
4494         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
4495         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
4496         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
4497         * nss/getXXent_r.c (NEW, NEW1): Define.
4498         (NEW (REENTRANT_GETNAME)): Strong alias to
4499         INTERNAL (REENTRANT_GETNAME).
4500         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
4502 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
4504         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
4505         (_IO_file_jumps_mmap): Use it.
4506         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
4507         * libio/libioP.h: Remove _IO_wdefault_setbuf and
4508         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
4509         prototype.
4510         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
4511         (_IO_wfile_jumps_mmap): Don't use it anymore.
4512         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
4513         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
4514         _IO_wdefault_setbuf.
4515         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
4516         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
4517         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
4519 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
4521         * libio/Makefile (tests): Add tst-mmap-setvbuf.
4522         * libio/tst-mmap-setvbuf.c: New test.
4524 2002-06-21  Andreas Jaeger  <aj@suse.de>
4526         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
4528 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
4530         * include/unistd.h (__fork_internal): Remove.
4531         (__fork): Don't define to __fork_internal.
4532         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
4533         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
4534         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
4535         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
4536         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
4538 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
4540         * po/hr.po: New file.
4542 2002-06-11  Wolfram Gloger  <wg@malloc.de>
4544         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
4545         Reported by Michael Meissner <meissner@redhat.com>.
4547 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
4549         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
4550         Patch by Hans Boehm <hans_boehm@hp.com>.
4552 2002-06-20  Andreas Jaeger  <aj@suse.de>
4554         * math/libm-test.inc: Use exact values as input parameters,
4555         compute output parameters with 36 digits for 128-bit long doubles.
4556         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
4557         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
4558         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
4560 2002-06-13  Stephen L Moshier  <steve@moshier.net>
4562         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
4563         argument or result is subnormal.
4565 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
4567         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
4568         quotient.
4569         * sysdeps/i386/fpu/s_remquof.S: Likewise.
4570         * sysdeps/i386/fpu/s_remquol.S: Likewise.
4572         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
4574 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
4576         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
4577         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
4578         Reported by Peter A. Buhr.
4580 2002-06-15  Roland McGrath  <roland@frob.com>
4582         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
4583         warning.
4585         * sysdeps/mach/hurd/getcwd.c
4586         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
4588         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
4589         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
4591         * sysdeps/alpha/divrem.h: Use local label instead of global one for
4592         jump to local subroutine.
4594 2002-06-14  Roland McGrath  <roland@frob.com>
4596         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
4597         * sysdeps/mach/hurd/Makeconfig: ... here.
4599 2002-06-13  Andreas Schwab  <schwab@suse.de>
4601         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
4602         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
4603         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
4605 2002-06-13  Roland McGrath  <roland@frob.com>
4607         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
4608         * hurd/hurdstartup.c (_hurd_startup): Likewise.
4609         Use intptr_t instead of int for argc in stack layout.
4610         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
4611         (_dl_init_first): Likewise.
4612         (_hurd_stack_setup): Likewise.
4613         (init1): Add a cast.
4614         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
4616         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
4617         argument to pfinet_siocgifconf RPC.
4619 2002-06-13  Andreas Schwab  <schwab@suse.de>
4621         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
4622         expansion order.
4624 2002-06-12  Roland McGrath  <roland@frob.com>
4626         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
4627         if already defined.
4628         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
4629         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
4631 2002-06-11  Roland McGrath  <roland@frob.com>
4633         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
4634         file on [!RTLD_STAT64].
4635         * sysdeps/mach/hurd/fxstat64.c: Likewise.
4637         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
4638         (__fdopen): Use INTUSE.
4639         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
4641         * stdio-common/tmpfile64.c: File removed.
4642         * sysdeps/generic/tmpfile64.c: New file.
4643         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
4644         if not already defined.
4645         (tmpfile): Use it in place of __GT_FILE.
4647         * include/unistd.h: Declare __chown_internal.
4649         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
4650         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
4652 2002-06-09  Roland McGrath  <roland@frob.com>
4654         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
4655         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
4656         value of HURD_INTERFACE_VERSION >= 20020609.
4657         * sysdeps/mach/hurd/configure: Regenerated.
4658         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
4659         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
4660         convert a struct stat64 into a struct stat and return 0 or -1
4661         with errno set to EOVERFLOW.
4662         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
4663         for struct statfs64 to struct statfs.
4664         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
4665         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
4666         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
4667         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
4668         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
4669         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
4670         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4671         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
4672         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
4673         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
4674         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
4675         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
4676         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
4677         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
4678         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
4679         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
4680         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
4681         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
4682         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
4683         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
4684         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
4685         Use struct stat64 for io_stat argument.
4686         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
4687         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
4688         to io_seek.
4689         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
4690         * hurd/fd-write.c (_hurd_fd_write): Likewise.
4691         * hurd/hurd/fd.h: Update decls.
4692         * sysdeps/mach/hurd/getcwd.c
4693         (_hurd_canonicalize_directory_name_internal): Use ino64_t
4694         and struct dirent64.
4695         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
4696         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
4697         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
4698         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
4700 2002-06-08  Roland McGrath  <roland@frob.com>
4702         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
4703         instead of unsigned long int for __allocation and __size members.
4705 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
4707         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
4708         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
4709         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
4710         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
4712 2002-06-07  Roland McGrath  <roland@frob.com>
4714         * sysdeps/mach/hurd/bits/environments.h: File removed.
4716 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
4718         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
4719         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
4720         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
4721         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
4722         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
4723         (sendfile64): Likewise.
4724         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
4725         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
4726         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
4727         Likewise.
4728         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
4730         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
4731         already defined.
4733 2002-06-04  Bruno Haible  <bruno@clisp.org>
4735         * sysdeps/cris/stackinfo.h: New file.
4737         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
4738         to an integer type before performing bit operations on it.
4740 2002-06-05  Roland McGrath  <roland@frob.com>
4742         * sysdeps/generic/sendfile.c: Include <errno.h>.
4743         * sysdeps/generic/sendfile64.c: Likewise.
4745         * io/Makefile (routines): Add sendfile and sendfile64.
4746         (headers): Add sys/sendfile.h to the list.
4747         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
4748         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
4749         * io/sys/sendfile.h: ... here.
4750         * sysdeps/generic/sendfile.c: New file.
4751         * sysdeps/generic/sendfile64.c: New file.
4753         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
4754         Move sendfile, sendfile64 to ...
4755         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
4756         * sysdeps/mach/hurd/sendfile.c: New file.
4757         * sysdeps/mach/hurd/sendfile64.c: New file.
4759         * sysdeps/mach/nanosleep.c: New file.
4761 2002-06-04  Roland McGrath  <roland@frob.com>
4763         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
4764         * sysdeps/alpha/elf/configure: New file (generated).
4766 2002-06-02  Roland McGrath  <roland@frob.com>
4768         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
4770 2002-06-01  Roland McGrath  <roland@frob.com>
4772         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
4773         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
4775 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
4777         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
4778         Add nsmap.
4779         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
4780         Remove nstimes setting.
4781         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
4782         * resolv/res_send.c (res_nsend): Don't close unconditionally if
4783         there is mix of IPv6 and IPv4 nameservers.
4784         Use nsmap array to find free slots and preserve nameserver ordering.
4785         Fix RES_ROTATE.
4787 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
4789         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
4790         use this header with LFS.
4792         * po/sk.po: Update from translation team.
4794 2002-05-28  Andreas Schwab  <schwab@suse.de>
4796         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
4797         message when finding object of wrong class.
4799 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
4801         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
4802         Patch by <radu@netsoft.ro>.
4804 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
4806         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
4807         Add readahead.
4808         * sysdeps/unix/sysv/linux/readahead.c: New file.
4809         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
4810         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
4811         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
4812         Add sendfile64 alias to sendfile syscall.
4813         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4814         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4815         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4816         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
4817         syscall.
4819         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
4820         special section for PIC register loading.
4821         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4823         * config.h.in: Define HAVE_HIDDEN.
4824         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
4826         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
4828 2002-05-28  Roland McGrath  <roland@frob.com>
4830         * sysdeps/mach/alpha/setfpucw.c: New file.
4832 2002-05-26  Roland McGrath  <roland@frob.com>
4834         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
4835         Use integer_t instead of int for IOC_VOID case.
4837 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
4839         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
4841 2002-05-26  Bruno Haible  <bruno@clisp.org>
4843         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
4844         end of the ISO-8859-7 from idx table.
4846 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
4848         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
4850 2002-05-24  David S. Miller  <davem@redhat.com>
4852         * string/bits/string2.h (memset): Do not try to optimize when
4853         not _STRING_ARCH_unaligned if GCC will do the right thing.
4855 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
4857         * posix/regex.c: Define `inline' as a macro into nothing for the
4858         compilers which lack the keyword.
4859         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
4860         for the compatibility of gawk.
4861         * posix/regcomp.c: Add fake implementation of isblank() for the
4862         environments which lack the function.
4863         Don't use free_charset() in case of non-i18n envs.
4864         (build_range_exp): Don't use i18n related code in case of non-i18n
4865         envs.
4866         (build_collating_symbol): Likewise.
4867         (build_equiv_class): Likewise.
4868         (build_charclass): Likewise.
4869         (re_compile_fastmap_iter): Likewise.
4870         (parse_bracket_exp): Likewise.
4871         (build_word_op): Likewise.
4872         (regfree): Don't use free_charset() in case of non-i18n envs.
4873         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
4874         re_token_type_t in case of non-i18n envs.
4875         Don't define re_charset_t in case of non-i18n envs.
4876         Change the type of wcs of re_string_t from wchar_t to wint_t,
4877         since we store also WEOF.
4878         * posix/regex_internal.c: (re_string_realloc_buffers): Change
4879         the type of wcs of re_string_t from wchar_t to wint_t.
4880         (re_string_reconstruct): Likewise.
4881         (create_ci_newstate): Don't use i18n related code in case of
4882         non-i18n envs.
4883         (create_cd_newstate): Likewise.
4885 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
4887         * iconv/loop.c: Fix typo.
4889 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
4891         * inet/ether_line.c (ether_line): Fix a typo causing only
4892         lower 4 bits of each ethernet address byte being assigned.
4893         Don't modify what line points to.
4894         * inet/tst-ether_aton.c (main): Add ether_line tests.
4896 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
4898         * manual/filesys.texi: Don't make readlink example leak memory
4899         when readlink fails.
4901 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
4903         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
4904         some more security checks.
4906 2002-05-17  David S. Miller  <davem@redhat.com>
4908         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
4910 2002-05-16  David S. Miller  <davem@redhat.com>
4912         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
4913         (elf_machine_dynamic): Use it to force PIC register to be loaded.
4914         (elf_machine_load_address): Likewise.
4915         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
4917         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
4918         is unaligned, do not forget to fully initialize %g1 magic value.
4920         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
4921         register definitions and provide 32-bit variants of structures
4922         during 64-bit builds.
4924         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
4925         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
4926         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
4927         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
4928         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
4929         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
4930         Do not clear implicit one bit here, it must be done post-rounding.
4931         Only pad to the left using left shift if value uses less than the
4932         available fractional bits.
4934 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4936         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
4937         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
4938         (shared-only-routines): Likewise.
4939         * sysdeps/powerpc/libgcc-compat.c: New file.
4940         * sysdeps/wordsize-32/cmpdi2.c: Removed.
4941         * sysdeps/wordsize-32/fixdfdi.c: Removed.
4942         * sysdeps/wordsize-32/fixsfdi.c: Removed.
4943         * sysdeps/wordsize-32/shdi3.c: Removed.
4945 2002-05-16  Bruno Haible  <bruno@clisp.org>
4947         * MakeTAGS (libc.pot): Don't sort the output.
4948         * po/header.pot: Update to match xgettext 0.11 output.
4950 2002-05-16  Bruno Haible  <bruno@clisp.org>
4952         * MakeTAGS (subdirs): Remove duplicates.
4954 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
4956         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
4957         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
4958         alias.
4960 2002-05-19  Andreas Jaeger  <aj@suse.de>
4962         * sysdeps/unix/sysv/linux/configure.in: Warn against an
4963         installation in /usr/local.
4965 2002-05-16  Bruno Haible  <bruno@clisp.org>
4967         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
4968         string as argument of #error.
4970 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
4972         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
4973         don't define static.  Remove old __realpath function.  TC1 of
4974         POSIX 2001 will allow the second parameter to be NULL.
4975         * stdlib/test-canon.c: Comment out test for NULL as second
4976         parameter of realpath.
4978         * time/offtime.c (__offtime): Set errno if overflow is detected.
4980         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
4981         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
4982         dl-brk and dl-sbrk.
4984         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
4985         (fdimf): Likewise.
4987 2002-05-15  Roland McGrath  <roland@frob.com>
4989         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
4991 2002-05-12  Bruno Haible  <bruno@clisp.org>
4993         * iconvdata/testdata/EUC-JISX0213: New file.
4994         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
4995         * iconvdata/testdata/SHIFT_JISX0213: New file.
4996         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
4997         * iconvdata/testdata/ISO-2022-JP-3: New file.
4998         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
4999         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5000         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5001         contains comments indicating precomposed characters.
5003 2002-04-21  Bruno Haible  <bruno@clisp.org>
5005         * iconvdata/iso-2022-jp-3.c: New file.
5006         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5007         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5008         (LDFLAGS-ISO-2022-JP-3.so): New variable.
5009         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5010         (distribute): Add iso-2022-jp-3.c.
5012 2002-05-12  Bruno Haible  <bruno@clisp.org>
5014         * iconvdata/tst-table-to.c (main): Restore handling of
5015         transliterations, broken by last patch.
5017 2002-05-12  Bruno Haible  <bruno@clisp.org>
5019         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5021 2002-05-12  Bruno Haible  <bruno@clisp.org>
5023         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5024         when there is not enough room in the output buffer.
5025         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5027 2002-04-20  Bruno Haible  <bruno@clisp.org>
5029         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5030         macros.
5031         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5032         Also make this macro work if FROM_DIRECTION evaluates to 0.
5033         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5034         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
5035         of consume_incomplete.
5036         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5037         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
5038         4, not 8.
5039         * iconvdata/cp1258.c: Likewise.
5040         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5041         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
5042         not 2.
5043         * iconvdata/ibm933.c: Likewise.
5044         * iconvdata/ibm935.c: Likewise.
5045         * iconvdata/ibm937.c: Likewise.
5046         * iconvdata/ibm939.c: Likewise.
5047         * iconvdata/iso-2022-cn.c: Define
5048         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5049         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
5050         * iconvdata/iso-2022-cn-ext.c: Likewise.
5051         * iconvdata/iso-2022-jp.c: Define
5052         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5053         {MIN,MAX}_NEEDED_{FROM,TO}.
5054         * iconvdata/tcvn5712-1.c: Define
5055         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5056         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
5057         * iconvdata/euc-jisx0213.c: Define
5058         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5059         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
5060         * iconvdata/shift_jisx0213.c: Likewise.
5062 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5064         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
5065         shdi3, fixdfdi, fixsfdi in csu dir.
5066         (shared-only-routines): Likewise.
5067         * sysdeps/wordsize-32/cmpdi2.c: New file.
5068         * sysdeps/wordsize-32/shdi3.c: New file.
5069         * sysdeps/wordsize-32/fixdfdi.c: New file.
5070         * sysdeps/wordsize-32/fixsfdi.c: New file.
5071         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
5072         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
5073         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
5075         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
5076         Only use va_arg if the argument will be used [PR libc/3259].
5078 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
5080         * catgets/catgets.c (catopen): Free buffer if internal catalog
5081         open fails.
5083 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
5085         * debug/xtrace.sh: Make more robust.  For realtime tracking use
5086         non-buffering methods.
5087         * debug/pcprofiledump.c: Implement -u option.
5088         Patch by Roger Luethi <rl@hellgate.ch>.
5090 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
5092         * include/netinet/in.h (bindresvport_internal): Add prototype.
5093         * include/rpc/auth.h  (authunix_create_internal,
5094         authunix_create_default_internal, authnone_create_internal,
5095         authdes_pk_create_internal): Add prototypes.
5096         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
5097         clntudp_create_internal, clntudp_bufcreate_internal,
5098         clntunix_create_internal): Add prototypes.
5099         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
5100         svc_getreq_internal, svc_getreq_common_internal,
5101         svc_getreqset_internal, svc_getreq_poll_internal,
5102         svc_register_internal, svc_unregister_internal,
5103         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
5104         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
5105         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
5106         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
5107         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
5108         * inet/rcmd.c (rcmd_af): Use __listen.
5109         (rresvport_af): Use __bind.
5110         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
5111         authunix_create, authunix_create_default, authnone_create,
5112         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
5113         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
5114         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
5115         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
5116         _authenticate, add INTDEF after such function definitions.
5117         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
5118         __setsockopt, __getsockname instead of non-__ variants.
5119         * sunrpc/pmap_rmt.c: Likewise.
5120         * sunrpc/rtime.c: Likewise.
5121         * sunrpc/svc_udp.c: Likewise.
5122         * sunrpc/clnt_unix.c: Likewise.
5123         * sunrpc/svc_unix.c: Likewise.
5124         * sunrpc/bindrsvprt.c: Likewise.
5125         * sunrpc/svc_tcp.c: Likewise.
5126         * sunrpc/auth_none.c: Likewise.
5127         * sunrpc/clnt_raw.c: Likewise.
5128         * sunrpc/clnt_tcp.c: Likewise.
5129         * sunrpc/auth_unix.c: Likewise.
5130         * sunrpc/key_call.c: Likewise.
5131         * sunrpc/clnt_gen.c: Likewise.
5132         * sunrpc/pm_getmaps.c: Likewise.
5133         * sunrpc/clnt_simp.c: Likewise.
5134         * sunrpc/pmap_clnt.c: Likewise.
5135         * sunrpc/svc_run.c: Likewise.
5136         * sunrpc/svc.c: Likewise.
5137         * sunrpc/svc_simple.c: Likewise.
5138         * sunrpc/pm_getport.c: Likewise.
5139         * sunrpc/auth_des.c: Likewise.
5140         * sunrpc/svc_auth.c: Likewise.
5141         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
5142         __register_frame_info_table_bases, __deregister_frame_info_bases):
5143         Add INTDEF.
5144         (__register_frame_info_bases_internal,
5145         __register_frame_info_table_bases_internal,
5146         __deregister_frame_info_bases_internal): Add prototypes.
5147         (__register_frame_info, __register_frame): Use INTUSE in call to
5148         __register_frame_info_bases.
5149         (__register_frame_info_table): Similarly.
5150         (__deregister_frame_info, __deregister_frame): Similarly.
5151         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
5152         sendto as weak alias.
5153         * sysdeps/mach/hurd/sendto.c: Likewise.
5154         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
5155         recvfrom as weak alias.
5156         * sysdeps/mach/hurd/recvfrom.c: Likewise.
5157         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
5158         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
5159         recvmsg as weak alias.
5160         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
5161         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
5162         sendmsg as weak alias.
5163         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
5164         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
5165         setsockopt, add setsockopt as weak alias.
5166         * sysdeps/mach/hurd/setsockopt.c: Likewise.
5167         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
5168         weak alias.
5169         * sysdeps/mach/hurd/bind.c: Likewise.
5170         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
5171         as weak alias.
5172         * sysdeps/mach/hurd/listen.c: Likewise.
5173         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
5174         getsockname, add getsockname as weak alias.
5175         * sysdeps/mach/hurd/getsockname.c: Likewise.
5176         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
5177         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
5178         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
5179         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
5180         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
5181         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
5182         Add aliases.
5183         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5184         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5185         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5186         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5187         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
5188         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
5189         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
5190         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
5191         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
5192         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
5193         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
5194         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
5196 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
5198         * locale/programs/localedef.h (show_archive_content): Add verbose
5199         argument.
5200         * locale/programs/localedef.c (main): Adjust caller.
5201         * locale/programs/locarchive.c (struct nameent, struct dataent): New
5202         types.
5203         (nameentcmp, dataentcmp): New functions.
5204         (xstrcmp): Remove.
5205         (show_archive_content): Print verbose listing with --list-archive -v.
5207 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
5209         * locale/programs/locarchive.c (open_archive): Take extra argument
5210         readonly.  If true open file with O_RDONLY and don't create the
5211         archive if it doesn't exist.
5212         Adapt all callers.
5213         (close_archive): Don't do anything if fd element is -1.
5214         * locale/programs/localedef.h (open_archive): Adjust prototype.
5215         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
5216         call.
5218         * malloc/malloc.c (__posix_memalign): Correct check for size of
5219         alignment value [PR libc/3444].
5221         * include/stdio.h: Remove references to old stdio implementation.
5223         * libio/Makefile (bug-ungetwc2-ENV): Define.
5225 2002-05-13  Roland McGrath  <roland@frob.com>
5227         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
5229         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
5231 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
5233         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5234         Allocate three, not two, more than LEN when appending '/.'.
5235         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
5236         if NAME ends with '/.' if it is shorter than 2 chars.
5238 2002-05-12  Roland McGrath  <roland@frob.com>
5240         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
5241         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
5243         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
5244         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
5246 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
5248         * sysdeps/ia64/Makefile: Remove extra endif.
5249         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
5251 2002-05-10  Andreas Schwab  <schwab@suse.de>
5253         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
5255 2002-05-09  Andreas Jaeger  <aj@suse.de>
5257         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
5258         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
5259         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
5261         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
5262         * sysdeps/wordsize-64/glob.c: ...here.
5263         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
5264         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
5265         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
5267 2002-05-08  Roland McGrath  <roland@frob.com>
5269         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
5270         O_NOTRANS flag in "." lookup.
5272 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
5274         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
5276 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
5278         * locale/duplocale.c (__duplocale): Update special members only
5279         when allocation succeeded.
5281 2002-05-03  Roland McGrath  <roland@frob.com>
5283         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
5284         we can only build libc.so.0.3(GLIBC_2.2.6) now.
5286 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
5288         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
5289         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
5290         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
5291         * sysdeps/ia64/ia64libgcc.S: New file.
5293 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
5295         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
5297         * malloc/memusage.c: Distinguish anonymous mmap.
5299 2002-05-01  Roland McGrath  <roland@frob.com>
5301         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
5302         and use INTDEF on it.
5303         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
5305         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
5307         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
5309 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
5311         * malloc/memusage.c: Add support for tracking mmap & friends.
5312         * malloc/memusage.sh: Implement -m/--mmap option.
5314 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
5316         * locale/programs/locarchive.c (create_archive): Add archivefname
5317         argument, create fname from it.
5318         (enlarge_archive): Honour output_prefix.
5319         (open_archive): Likewise.
5321 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
5323         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
5324         too many stpcpy macros.
5326 2002-04-26  Bruno Haible  <bruno@clisp.org>
5328         * locale/programs/ld-collate.c (collate_read): Cast first argument
5329         for "%.*s" to int.
5331 2002-04-26  Bruno Haible  <bruno@clisp.org>
5333         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
5334         __dcngettext_internal): New declarations.
5335         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
5336         attribute declarations.
5338 2002-04-30  Roland McGrath  <roland@frob.com>
5340         Removed old GNU stdio implementation; GNU libio is now the only option.
5341         * configure.in: Removed --enable-libio option and @stdio@ subst var.
5342         Define USE_IN_LIBIO unconditionally.
5343         * configure: Regenerated.
5344         * Makeconfig (stdio): Set to libio by default.
5345         * config.make.in (stdio): Variable removed.
5346         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
5347         * sysdeps/unix/sysv/linux/configure: Regenerated.
5348         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
5349         * sysdeps/mach/hurd/configure: Regenerated.
5350         * stdio/.cvsignore: File removed.
5351         * stdio/Makefile: File removed.
5352         * stdio/Versions: File removed.
5353         * stdio/__fbufsize.c: File removed.
5354         * stdio/__flbf.c: File removed.
5355         * stdio/__fpending.c: File removed.
5356         * stdio/__fpurge.c: File removed.
5357         * stdio/__freadable.c: File removed.
5358         * stdio/__freading.c: File removed.
5359         * stdio/__fsetlocking.c: File removed.
5360         * stdio/__fwritable.c: File removed.
5361         * stdio/__fwriting.c: File removed.
5362         * stdio/clearerr.c: File removed.
5363         * stdio/fclose.c: File removed.
5364         * stdio/fcloseall.c: File removed.
5365         * stdio/feof.c: File removed.
5366         * stdio/ferror.c: File removed.
5367         * stdio/fflush.c: File removed.
5368         * stdio/fgetc.c: File removed.
5369         * stdio/fgetpos.c: File removed.
5370         * stdio/fgets.c: File removed.
5371         * stdio/fileno.c: File removed.
5372         * stdio/fmemopen.c: File removed.
5373         * stdio/fopen.c: File removed.
5374         * stdio/fopncook.c: File removed.
5375         * stdio/fputc.c: File removed.
5376         * stdio/fputs.c: File removed.
5377         * stdio/fread.c: File removed.
5378         * stdio/freopen.c: File removed.
5379         * stdio/fseek.c: File removed.
5380         * stdio/fsetpos.c: File removed.
5381         * stdio/ftell.c: File removed.
5382         * stdio/fwrite.c: File removed.
5383         * stdio/getc.c: File removed.
5384         * stdio/getchar.c: File removed.
5385         * stdio/getdelim.c: File removed.
5386         * stdio/gets.c: File removed.
5387         * stdio/glue.c: File removed.
5388         * stdio/internals.c: File removed.
5389         * stdio/linewrap.c: File removed.
5390         * stdio/linewrap.h: File removed.
5391         * stdio/memstream.c: File removed.
5392         * stdio/newstream.c: File removed.
5393         * stdio/obstream.c: File removed.
5394         * stdio/putc.c: File removed.
5395         * stdio/putchar.c: File removed.
5396         * stdio/puts.c: File removed.
5397         * stdio/rewind.c: File removed.
5398         * stdio/setbuf.c: File removed.
5399         * stdio/setbuffer.c: File removed.
5400         * stdio/setlinebuf.c: File removed.
5401         * stdio/setvbuf.c: File removed.
5402         * stdio/stdio.h: File removed.
5403         * stdio/ungetc.c: File removed.
5404         * stdio/vasprintf.c: File removed.
5405         * stdio/vscanf.c: File removed.
5406         * stdio/vsnprintf.c: File removed.
5407         * stdio/vsprintf.c: File removed.
5408         * stdio/vsscanf.c: File removed.
5409         * sysdeps/generic/defs.c: File removed.
5410         * sysdeps/generic/fdopen.c: File removed.
5411         * sysdeps/generic/pipestream.c: File removed.
5412         * sysdeps/generic/stdio_init.c: File removed.
5413         * sysdeps/generic/sysd-stdio.c: File removed.
5414         * sysdeps/generic/vdprintf.c: File removed.
5415         * sysdeps/mach/hurd/defs.c: File removed.
5416         * sysdeps/mach/hurd/fdopen.c: File removed.
5417         * sysdeps/mach/hurd/pipestream.c: File removed.
5418         * sysdeps/mach/hurd/stdio_init.c: File removed.
5419         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
5420         * sysdeps/mach/hurd/vdprintf.c: File removed.
5421         * sysdeps/posix/defs.c: File removed.
5422         * sysdeps/posix/fdopen.c: File removed.
5423         * sysdeps/posix/pipestream.c: File removed.
5424         * sysdeps/posix/stdio_init.c: File removed.
5425         * sysdeps/posix/vdprintf.c: File removed.
5426         * sysdeps/unix/pipestream.c: File removed.
5427         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
5428         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
5429         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
5431 2002-04-29  Roland McGrath  <roland@frob.com>
5433         * include/libc-symbols.h (link_warning): Use `unused' attribute.
5435 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
5437         * sysdeps/generic/tls.h: Describe what must be defined.
5439         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
5440         glob_in_dir [PR libc/3385].
5441         * posix/globtest.sh: Add test case.
5443         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
5444         //TRANSLIT twice.
5446 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
5448         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
5449         _internal symbol handling.
5450         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
5452 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
5454         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
5455         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
5457 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
5459         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
5460         not _LIBC and RE_ENABLE_I18N.
5461         (build_range_exp): Implement for not _LIBC.
5462         (build_collating_symbol): Likewise.
5463         (parse_bracket_exp): Unify redundant error handlings.
5464         Don't erase mbcset for non matching list in multibyte envs.
5465         (build_word_op): Add '_' to matching list for \w operator.
5466         * posix/regex_internal.c (re_string_construct): Invoke
5467         build_upper_buffer in case of not RE_ENABLE_I18N.
5468         (re_string_reconstruct): Don't touch cur_state in case of not
5469         RE_ENABLE_I18N.
5470         * posix/regex_internal.h (attribute_hidden): New macro in case of
5471         not _LIBC.
5472         (re_charset_t): Define range_starts/ends in case of not _LIBC.
5473         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
5474         RE_ENABLE_I18N.
5475         (transit_state_mb): Likewise.
5476         (check_node_accept_bytes): Implement the code evaluating range
5477         expression in case of not _LIBC.
5478         (find_collation_sequence_value): Hide in case of not _LIBC.
5480 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
5482         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
5483         i386/semctl.c.
5484         (__old_semctl, __new_semctl): Only use va_arg if the argument will
5485         be used.
5487 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
5489         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
5491         * sysdeps/ia64/strncpy.S: Fix recovery code.
5492         Patch by David Mosberger <davidm@hpl.hp.com>.
5494 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
5496         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
5497         GLIBC_2.2.6.
5499 2002-04-14  Bruno Haible  <bruno@clisp.org>
5501         * posix/regex.c (re_max_failures): Add back symbol for binary
5502         compatibility.
5504 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
5506         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
5507         of buffer building functions.
5508         * posix/regex_internal.c (re_string_allocate): New function.
5509         (re_string_realloc_buffers): New function.
5510         (re_string_skip_chars): New function.
5511         (re_string_reconstruct): New function.
5512         (re_string_construct): Adapt it to new interface of buffer building
5513         functions.
5514         (re_string_construct_common): Likewise.
5515         (build_wcs_buffer): Likewise.
5516         (build_wcs_upper_buffer): Likewise.
5517         (build_upper_buffer): Likewise.
5518         (re_string_translate_buffer): Likewise.
5519         (re_string_context_at): Adapt it to variable length buffers.
5520         * posix/regex_internal.h (re_string_t): Add new fields to handle
5521         variable length buffers.
5522         (re_match_context_t): Likewise.
5523         * posix/regexec.c (re_search_internal): Adapt it to new interface
5524         of re_string_t and re_match_context_t.
5525         (acquire_init_state_context): Likewise.
5526         (check_matching): Likewise.
5527         (check_halt_state_context): Likewise.
5528         (proceed_next_node): Likewise.
5529         (set_regs): Likewise.
5530         (sift_states_backward): Likewise.
5531         (clean_state_log_if_need): Likewise.
5532         (sift_states_iter_mb): Likewise.
5533         (sift_states_iter_bkref): Likewise.
5534         (add_epsilon_backreference): Likewise.
5535         (transit_state): Likewise.
5536         (transit_state_sb): Likewise.
5537         (transit_state_mb): Likewise.
5538         (transit_state_bkref): Likewise.
5539         (transit_state_bkref_loop): Likewise.
5540         (check_node_accept): Likewise.
5541         (match_ctx_init): Likewise.
5542         (extend_buffers): New function.
5544 2002-04-21  Bruno Haible  <bruno@clisp.org>
5546         * iconvdata/tst-table.sh: For the second check, use the truncated
5547         GB18030 charmap table, like for the first check.
5549 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
5551         * elf/dl-load.c (open_verify): Correct __lseek parameters.
5552         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
5554 2002-04-23  H.J. Lu  <hjl@gnu.org>
5556         * include/math.h (isfinite): Fix a typo.
5558 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
5560         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
5561         which is created by the test suite.
5563 2002-04-20  Bruno Haible  <bruno@clisp.org>
5565         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
5566         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
5568 2002-04-20  Bruno Haible  <bruno@clisp.org>
5570         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
5571         to avoid gcc warning.
5573 2002-04-20  Bruno Haible  <bruno@clisp.org>
5575         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
5576         of data->__statep->__count.
5578 2002-04-20  Bruno Haible  <bruno@clisp.org>
5580         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
5581         tag characters.
5582         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
5584 2002-04-24  Roland McGrath  <roland@frob.com>
5586         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
5587         use END macro instead of our own .end directive.
5588         Use `callsys' insn mnemonic instead of `call_pal'.
5590         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
5592         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
5593         macro; we need this for Hurd.
5595         Log entry was missing for 2002/03/24 commit of rev 1.8,
5596         goes with 2002-03-17 changes.
5597         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
5598         (sysdep_routines): Append ioperm here.
5599         (sysdep_headers): Append sys/io.h here.
5601 2002-04-23  Roland McGrath  <roland@frob.com>
5603         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
5604         * sysdeps/mach/hurd/sendto.c: Likewise.
5605         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
5606         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
5607         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
5609 2002-04-22  Roland McGrath  <roland@frob.com>
5611         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
5612         failure from i386_io_perm_* RPCs to ENOSYS.
5614 2002-04-22  Andreas Jaeger  <aj@suse.de>
5616         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
5618         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
5620         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
5621         register instead of destroying %rbx.
5623 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
5625         * string/string.h: Declare strerror_r also for XPG6.
5627 2002-04-19  Roland McGrath  <roland@frob.com>
5629         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
5631 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
5633         * Makefile: Add handling of xtests and xcheck targets.
5634         * MakeTAGS: Likewise.
5635         * Makeconfig: Likewise.
5636         * Makerules: Likewise.
5637         * Rules: Likewise.
5638         * manual/Makefile: Likewise.
5639         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
5640         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
5642 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
5644         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
5645         authnone_private_s.
5646         * sunrpc/auth_none.c: Include bits/libc-lock.h.
5647         Delete #ifdef _RPC_THREAD_SAFE_ block.
5648         (authnone_private): Make a struct, not a pointer to struct.
5649         (authnone_private_guard): New once-control variable.
5650         (authnone_create_once): New function, split out of
5651         authnone_create.  No need to allocate memory.
5652         (authnone_create): Just call authnone_create_once via
5653         __libc_once, then return &authnone_private->no_client.
5654         (authnone_marshal): Access private data via CLIENT argument,
5655         not authnone_private pointer.
5656         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
5657         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
5658         authnone_private_s.
5660 2002-04-12  H.J. Lu  <hjl@gnu.org>
5662         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
5664 2002-04-18  Bruno Haible  <bruno@clisp.org>
5666         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
5667         FROM_DIRECTION): Make the FROM direction stateless.
5668         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
5669         FROM_DIRECTION): Likewise.
5671 2002-04-15  Bruno Haible  <bruno@clisp.org>
5673         * iconvdata/JISX0213.TXT: New file.
5674         * iconvdata/jisx0213.h: New file.
5675         * iconvdata/jisx0213.c: New file.
5676         * iconvdata/euc-jisx0213.c: New file.
5677         * iconvdata/shift_jisx0213.c: New file.
5678         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
5679         * iconvdata/EUC-JISX0213.precomposed: New file.
5680         * iconvdata/SHIFT_JISX0213.precomposed: New file.
5681         * iconvdata/SHIFT_JISX0213.irreversible: New file.
5682         * iconvdata/tst-table-to.c (main): Make it work for encodings for
5683         which the "to" direction is stateful.
5684         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
5685         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
5686         SHIFT_JISX0213.
5687         (libJISX0213-routines): New variable.
5688         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
5689         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
5690         (LDFLAGS-libJISX0213.so): New variable.
5691         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
5692         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
5693         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
5695 2002-04-15  Bruno Haible  <bruno@clisp.org>
5697         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
5698         uint32_t.  Update to Unicode 3.2.
5699         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
5700         (BODY for TO_LOOP): Handle the ASCII range specially.
5701         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
5702         * iconvdata/testdata/BIG5HKSCS: Remove a character.
5703         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
5705 2002-04-15  Bruno Haible  <bruno@clisp.org>
5707         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
5708         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
5710 2002-04-15  Bruno Haible  <bruno@clisp.org>
5712         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
5713         (ucs4_to_cns11643): Update.
5714         * iconvdata/cns11643.c: Update to Unicode 3.2.
5715         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
5716         __cns11643_from_ucs4p2_tab): Regenerated.
5717         (__cns11643_from_ucs4p2c_tab): New array.
5718         * iconvdata/cvs11643l1.c: Update comments.
5719         * iconvdata/EUC-TW.irreversible: Remove two entries.
5721 2002-04-15  Bruno Haible  <bruno@clisp.org>
5723         * locale/C-translit.h.in: Update to Unicode 3.2.
5724         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
5725         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
5727 2002-04-15  Bruno Haible  <bruno@clisp.org>
5729         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
5730         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
5732 2002-04-15  Bruno Haible  <bruno@clisp.org>
5734         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
5735         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
5736         always one byte, not 0 bytes in some cases and 2 bytes in others.
5738         * iconvdata/tst-table-from.c (main): Correct the usage message.
5740 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
5742         * posix/regcomp.c (parse_expression): Fix incorrect error code.
5743         (parse_dup_op): Fix error handling like "a{}".
5744         (parse_bracket_exp): Add error handling.
5745         (fetch_number): Add error handling for "a{<very_large_number>}".
5747 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
5749         * posix/regcomp.c (parse_bracket_symbol): Add error handling
5750         in case that the symbol name is too long.
5751         (build_charclass): Handle [:lower:]/[:uppper:] correctly
5752         in case of REG_ICASE.
5754 2002-04-19  Andreas Jaeger  <aj@suse.de>
5756         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
5757         <hartvige@mips.com>.
5759 2002-04-15  H.J. Lu  <hjl@gnu.org>
5761         * include/math.h (__finitel_internal): Declare only if
5762         __NO_LONG_DOUBLE_MATH is not defined.
5763         (__isinfl_internal): Likewise.
5764         (__isnanl_internal): Likewise.
5766         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
5767         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5768         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5769         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5770         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5771         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5772         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5774         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
5775         __fcntl_internal.
5777         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
5778         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
5780 2002-04-15  Bruno Haible  <bruno@clisp.org>
5782         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
5783         (BODY for TO_LOOP): Likewise.
5784         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
5785         * iconvdata/tst-table.sh: Add support for encodings which contain
5786         precomposed Unicode characters, known to the iconv converter in both
5787         directions but not listed in the charmap.
5788         * iconvdata/IBM856.irreversible: New file.
5789         * iconvdata/IBM922.irreversible: New file.
5790         * iconvdata/IBM1132.irreversible: New file.
5791         * iconvdata/IBM1133.irreversible: New file.
5792         * iconvdata/IBM1160.irreversible: New file.
5793         * iconvdata/IBM1161.irreversible: New file.
5794         * iconvdata/IBM1163.irreversible: New file.
5795         * iconvdata/IBM1164.irreversible: New file.
5796         * iconvdata/ARMSCII-8.irreversible: New file.
5797         * iconvdata/TCVN5712-1.precomposed: New file.
5798         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
5799         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
5800         ARMSCII-8, TCVN5712-1.
5801         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
5802         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
5803         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
5804         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
5806 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
5808         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
5809         for EVENING69.  Include offsets in TZ environment variable.
5811 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
5813         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
5814         avoid compiler warnings.
5816         * locale/programs/localedef.c (main): Always call
5817         construct_output_path.
5819         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
5821         * locale/programs/locfile.c (to_archive): New variable.  To collect
5822         data which has to be added to the locale archive.
5823         (write_all_categories): Take new third parameter with locale name.
5824         Unless no_archive flag set add new locale data to the archive
5825         (write_locale_data): Unless no-archive flag set store generated data
5826         in to_archive data structure instead of generation output file.
5827         Add new parameter with locale category index.
5828         * locale/programs/locfile.h: Add new parameters in declaractions of
5829         write_all_categories and write_locale_data.
5830         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
5831         --add-to-archive, and --delete-from-archive options.  Pass extra
5832         parameter to write_all_categories.
5833         * locale/programs/localedef.h: Add prototypes for functions in
5834         locarchive.c.
5835         * locale/locarchive.h: New file.
5836         * locale/programs/locarchive.c: New file.
5837         * locale/Makefile (distribute): Add programs/locarchive.c and
5838         locarchive.h.
5839         (localedef-modules): Add md5 and locarchive.
5840         Add vpath to crypt subdir for md5.c.
5842         * locale/programs/ld-address.c: Pass locale category ID as new second
5843         parameter to write_locale_data.
5844         * locale/programs/ld-collate.c: Likewise.
5845         * locale/programs/ld-ctype.c: Likewise.
5846         * locale/programs/ld-identification.c: Likewise.
5847         * locale/programs/ld-measurement.c: Likewise.
5848         * locale/programs/ld-messages.c: Likewise.
5849         * locale/programs/ld-monetary.c: Likewise.
5850         * locale/programs/ld-name.c: Likewise.
5851         * locale/programs/ld-numeric.c: Likewise.
5852         * locale/programs/ld-paper.c: Likewise.
5853         * locale/programs/ld-telephone.c: Likewise.
5854         * locale/programs/ld-time.c: Likewise.
5856         * locale/simple-hash.c: Move compute_hashval function from here...
5857         * locale/hashval.h: ...to here.  New file.
5858         * locale/simple-hash.h: Add prototype for compute_hashval.
5860         * include/libintl.h: Minor cleanups.
5862 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
5864         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
5866 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
5868         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
5870 2002-04-14  Bruno Haible  <bruno@clisp.org>
5872         * locale/programs/charmap.c (charmap_read): Don't access result if
5873         result == NULL.
5875 2002-02-17  Andreas Schwab  <schwab@suse.de>
5877         * elf/reldep7.c: New file.
5878         * elf/reldep7mod1.c: New file.
5879         * elf/reldep7mod2.c: New file.
5880         * elf/Makefile: Add rules to build and run reldep7.
5882 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
5884         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
5885         the end of the function.  Pass original flags to recursive call if
5886         add_dependency failed.
5887         (_dl_lookup_versioned_symbol): Likewise.
5889 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
5891         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
5892         early, but check whether it overflowed afterwards.
5893         * time/tst-mktime.c (main): Add new tests.
5895 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
5897         * debug/xtrace.sh: Fix program name in help message.
5898         Patch by Roger Luethi <rl@hellgate.ch>.
5900         * include/sys/stat.h: Add prototypes for __lxstat_internal and
5901         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
5902         NOT_IN_libc.
5903         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
5904         * sysdeps/mach/hurd/lxstat.c: Likewise.
5905         * sysdeps/unix/common/lxstat.c: Likewise.
5906         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
5907         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
5908         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5909         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
5910         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
5911         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
5912         * sysdeps/mach/hurd/lxstat64.c: Likewise.
5913         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
5914         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5916         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
5917         prototypes.  Add __mbrlen and __mbrtowc macros.
5918         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
5919         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
5921         * include/unistd.h: Add prototype for __write_internal and add
5922         __libc_write macro is SHARED.
5923         * sysdeps/generic/write.c: Use INTDEF for __write.
5924         * sysdeps/mach/hurd/write.c: Likewise.
5925         * sysdeps/unix/sysv/aix/write.c: Likewise.
5926         * sysdeps/unix/syscalls.list: Add __libc_write alias.
5928         * assert/assert.c: Replace STR_N_SIZE with something usable in
5929         macro arguments.
5930         * assert/assert-perr.c: Likewise.
5932         * include/sys/socket.h: Declare __libc_sa_len_internal and define
5933         SA_LEN macro to use it if not NOT_IN_libc.
5934         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
5936         * include/fcntl.h: Declare __open_internal and define __open and
5937         __libc_open macros if not NOT_IN_libc.
5938         * sysdeps/generic/open.c: Use INTDEF for __open.
5939         * sysdeps/mach/hurd/open.c: Likewise.
5940         * sysdeps/unix/sysv/aix/open.c: Likewise.
5941         * sysdeps/unix/syscalls.list: Add __open_internal alias.
5943         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
5944         has correct number.
5946         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
5947         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
5948         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
5949         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
5951         * include/wctype.h: Declare __iswalpha_l_internal,
5952         __iswdigit_l_internal, __iswspace_l_internal,
5953         __iswxdigit_l_internal, and __iswctype_internal.  Define
5954         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
5955         __iswxdigit_l macros if not NOT_IN_libc.
5956         * wctype/iswctype.c: Use INTDEF for __iswctype.
5957         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
5959         * include/math.h: Declare __isinf_internal, __isinfl_internal,
5960         __isnan_internal, and __isnanl_internal.
5961         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
5962         __isnan, and __isnanl.
5963         * stdio-common/printf_size.c: Likewise.
5964         * sysdeps/generic/printf_fphex.c: Likewise.
5965         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
5966         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
5967         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
5968         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
5969         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
5970         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5971         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
5972         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
5973         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
5974         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
5975         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
5976         * sysdeps/m68k/s_isinfl.c: Likewise.
5977         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
5978         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
5980         * include/sys/time.h: Declare __gettimeofday_internal and define
5981         __gettimeofday macro if not NOT_IN_libc.
5982         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
5983         * sysdeps/mach/gettimeofday.c: Likewise.
5984         * sysdeps/posix/gettimeofday.c: Likewise.
5985         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
5986         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
5987         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
5988         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
5990         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
5991         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
5992         Remove __lstat and __fstat inline functions.
5993         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
5994         * sysdeps/mach/hurd/fxstat.c: Likewise.
5995         * sysdeps/unix/fxstat.c: Likewise.
5996         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
5997         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
5998         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5999         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6000         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6001         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6002         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6003         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6004         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6006         * include/unistd.h: Declare __getpid_internal and define
6007         __getpid macro if not NOT_IN_libc.
6008         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6009         * sysdeps/generic/getpid.c: Likewise.
6010         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6011         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6013         * include/unistd.h: Declare __getpgid_internal and define
6014         __getpgid macro if not NOT_IN_libc.
6015         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6016         * sysdeps/mach/hurd/getpgid.c: Likewise.
6017         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6018         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6019         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6020         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6022         * include/unistd.h: Declare __getpagesize_internal and define
6023         __getpagesize macro if not NOT_IN_libc.
6024         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6025         __getpagesize.
6026         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6027         * sysdeps/mach/getpagesize.c: Likewise.
6028         * sysdeps/posix/getpagesize.c: Likewise.
6029         * sysdeps/unix/getpagesize.c: Likewise.
6030         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6031         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6032         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6033         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
6035 2002-04-13  Andreas Jaeger  <aj@suse.de>
6037         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
6038         as clobber to reduce register pressure.
6039         (__strpbrk_cg): Likewise.
6040         (__mempcpy_by4): Likewise.
6041         (__strstr_cg): Likewise.
6042         Add prototype for __memrchr.
6044 2002-04-13  Andreas Schwab  <schwab@suse.de>
6046         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
6047         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6048         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6050 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
6052         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
6053         check whether the caller prefers getting the most recent version of
6054         a symbol of the earliest version.
6055         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
6056         _dl_do_lookup to also take the new parameter and pass it on.
6057         Change 'explicit' parameter of _dl_lookup_symbol and
6058         _dl_lookup_versioned_symbol to flags.  Adjust tests.
6059         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6060         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
6061         _dl_lookup_versioned_symbol.
6062         * elf/dl-reloc.c: Likewise.
6063         * elf/dl-runtime.c: Likewise.
6064         * elf/dl-sym.c: Likewise.
6065         * sysdeps/mips/dl-machine.h: Likewise.
6067 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6069         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
6070         in a token.
6071         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
6073 2002-04-10  Andreas Jaeger  <aj@suse.de>
6075         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
6077         * include/argz.h: Remove extra char from last patch.
6079 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
6081         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
6082         * sysdeps/unix/sysv/aix/chown.c: Likewise.
6083         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
6084         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
6085         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
6086         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
6087         __chown_internal.
6088         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6090         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
6091         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
6092         * intl/ngettext.c: Likewise.
6094         * include/sys/socket.h: Declare __connect_internal and define
6095         __connect macro if not NOT_IN_libc.
6096         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
6097         * sysdeps/unix/sysv/aix/connect.c: Likewise.
6098         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
6100         * include/unistd.h: Declare __close_internal and define __close macro
6101         if not NOT_IN_libc.
6102         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
6103         WJUMP3): Add extra parenthesis to avoid expanding element names with
6104         macors like __close.
6105         * sysdeps/unix/syscalls.list: Add __close_internal alias.
6107         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
6108         if not NOT_IN_libc.
6109         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
6110         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
6111         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
6113         * include/unistd.h: Declare __fork_internal and define __fork macro
6114         if not NOT_IN_libc.
6115         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
6116         * sysdeps/unix/sysv/aix/fork.c: Likewise.
6117         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
6119         * include/stdio_ext.h: Declare __fsetlocking_internal and define
6120         __fsetlocking macro to use it if not NOT_IN_libc.
6121         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
6123         * libio/__fbufsize.c: Correct copyright.
6124         * libio/__flbf.c: Likewise.
6125         * libio/__fpending.c: Likewise.
6126         * libio/__fpurge.c: Likewise.
6127         * libio/__freadable.c: Likewise.
6128         * libio/__freading.c: Likewise.
6129         * libio/__fsetlocking.c: Likewise.
6130         * libio/__fwritable.c: Likewise.
6131         * libio/__fwriting.c: Likewise.
6133         * include/stdio.h: Declare __asprintf_internal and define __asprintf
6134         macro to use it if not NOT_IN_libc.
6135         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
6137         * include/mntent.h: Declare __setmntent_internal,
6138         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
6139         __getmntent_r, and __endmntent macros to use these functions if not
6140         NOT_IN_libc.
6141         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
6142         __endmntent.
6144         * include/math.h: Declare __finite_internal, __finitef_internal, and
6145         __finitel_internal.  Redefine isfinite macro if in libc or libm using
6146         these functions.
6147         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
6148         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
6149         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
6150         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
6151         * sysdeps/i386/fpu/s_finitef.S: Likewise.
6152         * sysdeps/i386/fpu/s_finitel.S: Likewise.
6153         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
6154         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
6155         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
6156         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
6158         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
6159         to use this function if not NOT_IN_libc.
6160         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
6161         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
6162         * sysdeps/mach/hurd/fcntl.c: Likewise.
6163         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6164         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6166         * include/argz.h: Declare __argz_count_internal and
6167         __argz_stringify_internal.
6168         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
6169         __argz_stringify.
6170         * string/argz-count.c: Use INTDEF for __argz_count.
6171         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
6173         * include/stdlib.h: Declare __cxa_atexit_internal and define
6174         __cxa_atexit macro if not NOT_IN_libc.
6175         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
6176         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
6178         * assert/assert.c: Use INTDEF for __assert_fail.
6179         * assert/__assert.c: Use INTUSE for call to __assert_fail.
6180         * include/assert.h: Declare __assert_fail_internal.
6182         * extra-lib.mk: Mark assignment to lib with override.
6184 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6186         * Makerules: Use cppflags-iterator.mk to add defines for all test
6187         source files.
6189 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6191         * elf/elf.h: Define R_SH_TLS_xxx macros.
6192         * elf/rtld.c: Remove an extra parenthesis.
6193         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
6194         TLS_GD macros.
6195         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
6196         * sysdeps/sh/dl-lookupcfg.h: New file.
6197         * sysdeps/sh/dl-tls.h: New file.
6198         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
6199         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
6200         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
6201         R_SH_TLS_TPOFF32 relocations.
6203 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6205         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
6206         of NOT_IN_LIBC.
6207         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
6208         * include/stdlib.h: Likewise.
6210 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
6212         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
6213         instead of _RTLD_LOCAL.
6214         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
6215         * include/unistd.h: Likewise.
6216         * sysdeps/generic/ldsodefs.h: Likewise.
6218         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
6219         if in libc or ld.so.
6221 2002-04-08  Andreas Jaeger  <aj@suse.de>
6223         * elf/cache.c (print_entry): Support x86-64.
6225 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6227         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
6228         with one accessing the locale data structures directly.
6229         * stdio-common/printf-prs.c: Include localeinfo.h for new
6230         MB_CUR_MAX definition.
6232         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
6233         is the name of the source file without extension.
6234         * Makefile (distribute): Add cppflags-iterator.mk.
6235         * cppflags-iterator.mk: New file.
6236         * extra-lib.mk: For the sources of the library run
6237         cppflags-iterator.mk.
6239         * include/libintl.h: Declare __dcgettext_internal and
6240         _libc_intl_domainname_internal.  Define __dcgettext using these
6241         two symbols if used in libc itself.
6242         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
6243         _libc_intl_domainname_internal.
6244         * argp/argp-parse.c: Likewise.
6245         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
6246         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
6247         * intl/gettext.c: Likewise.
6248         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
6249         alias.
6250         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
6251         __dcgettext.
6252         * posix/regex_internal.c (gettext): Likewise.
6254 2002-04-08  Andreas Jaeger  <aj@suse.de>
6256         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
6258         * sysdeps/x86_64/fpu/s_llrint.S: New file.
6259         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
6260         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
6261         * sysdeps/x86_64/fpu/s_lrint.S: New file.
6262         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
6263         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
6265 2002-04-08  Roland McGrath  <roland@frob.com>
6267         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
6268         widening __hurd_fail value.
6270 2002-04-07  Roland McGrath  <roland@frob.com>
6272         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
6273         <mach/machine/alpha_instruction.h>.
6274         (_hurd_setup_sighandler): Take proper arguments for current decls.
6275         Update code to use _hurdsig_catch_fault.
6276         Use `callsys' instruction instead of `call_pal'.
6277         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
6279         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
6280         (ALIGN, at, AT, fp): New macros.
6282 2002-04-06  Roland McGrath  <roland@frob.com>
6284         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
6286         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
6287         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
6289         * sysdeps/mach/hurd/bind.c: Use prototype definition.
6290         * sysdeps/mach/hurd/connect.c: Likewise.
6291         * sysdeps/mach/hurd/getsockopt.c: Likewise.
6292         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6294         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
6295         __msg_sig_post RPC.
6297         * hurd/catch-exc.c: Use integer_t instead of int.
6298         * hurd/hurdfault.c: Likewise.
6300         * sysdeps/mach/hurd/alpha/exc2signal.c
6301         (_hurd_exception2signal): Rewritten.
6302         * sysdeps/mach/hurd/alpha/longjmp-ts.c
6303         (_hurd_longjmp_thread_state): Rewritten.
6305 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
6307         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
6308         DB_LOOKUP_FCT prototype.
6309         * nss/getXXent_r.c: Likewise.
6310         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
6311         * inet/getaliasname_r.c: Likewise.
6312         * inet/getnetbyad_r.c: Likewise.
6313         * inet/getnetbynm_r.c: Likewise.
6314         * inet/getnetent_r.c: Likewise.
6315         * inet/getproto_r.c: Likewise.
6316         * inet/getprtent_r.c: Likewise.
6317         * inet/getprtname_r.c: Likewise.
6318         * inet/getrpcbyname_r.c: Likewise.
6319         * inet/getrpcbynumber_r.c: Likewise.
6320         * inet/getrpcent_r.c: Likewise.
6321         * inet/getservent_r.c: Likewise.
6322         * inet/getsrvbynm_r.c: Likewise.
6323         * inet/getsrvbypt_r.c: Likewise.
6324         * shadow/getspent_r.c: Likewise.
6325         * shadow/getspnam_r.c: Likewise.
6327         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
6329         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
6330         Use i686-friendly PIC code.
6331         * sysdeps/i386/elf/setjmp.S: Likewise.
6333         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
6335         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
6336         list.
6337         * elf/Versions: Remove it here.
6339 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
6341         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
6342         direction.  Reported by H . J . Lu <hjl@lucon.org>.
6344 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
6346         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
6347         test just before the test runs.
6348         * intl/tst-translit.sh: Likewise.
6349         * intl/tst-codeset.sh: Likewise.
6351         * timezone/zic.c: Update from tzcode2002c.
6352         * timezone/asia: Update from tzdata2002c.
6353         * timezone/backward: Likewise.
6354         * timezone/europe: Likewise.
6355         * timezone/northamerica: Likewise.
6356         * timezone/northamerica: Likewise.
6357         * timezone/northamerica: Likewise.
6358         * timezone/southamerica: Likewise.
6359         * timezone/zone.tab: Likewise.
6361 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
6363         * sysdeps/generic/brk.c (__curbrk): Declare.
6364         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
6365         * sysdeps/generic/dl-sbrk.c: Likewise.
6366         * sysdeps/unix/arm/dl-brk.S: New file.
6367         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
6368         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
6369         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
6370         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
6371         * sysdeps/unix/i386/dl-brk.S: New file.
6372         * sysdeps/unix/mips/dl-brk.S: New file.
6373         * sysdeps/unix/sparc/dl-brk.S: New file.
6374         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
6375         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
6376         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
6377         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
6379 2002-04-03  Andreas Schwab  <schwab@suse.de>
6381         * Makefile (headers): Add gnu/lib-names.h here instead of
6382         install-others.
6383         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
6384         installation rule.
6385         (install-headers): Add dependency on install-headers-nosubdir.
6386         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
6387         instead of install-others.
6388         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
6389         installation rule.
6391 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
6393         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
6394         Reported by Sam Roberts <sroberts@uniserve.com>.
6396 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
6398         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
6399         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
6400         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
6401         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
6403 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
6405         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
6406         (RTLD_START): Ditto.
6407         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
6408         dependency violation.
6410 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
6412         * time/mktime.c (__mktime_internal): Move check for year < 70 below
6413         all variable declarations.
6415 2002-04-04  Andreas Schwab  <schwab@suse.de>
6417         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
6419 2002-04-04  Andreas Jaeger  <aj@suse.de>
6421         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
6422         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
6424         * sysdeps/x86_64/fpu/s_fabs.c: New file.
6425         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
6426         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
6428         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
6430         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
6432         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
6433         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
6435         * configure.in: Handle all mips entries the same.
6437         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
6438         * sysdeps/mips/mips3/*: Likewise.
6439         * sysdeps/mips/p40/bits/endian.h: Likewise.
6441 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
6443         * misc/dirname.c (dirname): Ignore trailing slashes at end of
6444         non-null result [PR libc/2600].
6446         * misc/tst-dirname.c: Add more tests.
6448 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
6450         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
6451         define a code_set_name provide one based on the filename.
6453         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
6455 2001-12-28  Andreas Jaeger  <aj@suse.de>
6457         * time/mktime.c (__mktime_internal): Check for year < 70
6458         [PR libc/2738].
6460 2002-04-03  Andreas Jaeger  <aj@suse.de>
6462         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
6463         shmat.
6464         Reported by Andi Kleen <ak@suse.de>.
6466 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
6468         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
6469         * sysdeps/generic/w_lgammaf.c: Likewise.
6470         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
6472         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
6473         Adjust for new output format of the backtrace functions.
6475         * misc/syslog.c (vsyslog): Only use cleanup handler if
6476         _LIBC_REENTRANT is defined [PR libc/2924].
6478         * libio/Makefile (tests): Add bug-ungetwc2.
6479         * libio/bug-ungetwc2.c: New file.
6481         * manual/install.texi: Typographical and grammatical cleanup.
6482         Patch by Dennis Grace <dgrace@us.ibm.com>.
6484         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
6485         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
6487         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
6488         always "&".  Adjust callers.
6489         Add "_" prefix to several generated definitions.
6490         Patch by paul@serice.net [PR libc/3158].
6492 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
6494         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
6495         size of _dl_arm_cap_flags.
6496         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
6498         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
6499         Define as 8.
6501 2002-03-22  H.J. Lu  <hjl@gnu.org>
6503         * scripts/firstversions.awk: Check the first version.
6505 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
6507         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
6508         dependencies must be stable to work correctly.
6509         Reported by martin.lubich@datacon.at.
6511         * libio/bug-ungetwc1.c: New file.
6512         * libio/Makefile (tests): Add bug-ungetwc1.
6514         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
6515         if stream was last used for writing.
6517         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
6518         number [PR libc/3111].
6520         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
6521         to ...
6522         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
6524 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
6526         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
6527         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
6528         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
6529         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
6530         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
6532 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
6534         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
6535         dynamic tags.
6537 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
6539         * sysdeps/i386/fpu/s_fabs.S: New file.
6540         * sysdeps/i386/fpu/s_fabsf.S: New file.
6541         * sysdeps/i386/fpu/s_fabsl.S: New file.
6542         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
6543         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
6544         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
6546 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
6548         * rt/tst-shm.c (do_test): Add one more test for size of shared
6549         memory object.
6551 2002-03-29  Wolfram Gloger  <wg@malloc.de>
6553         * malloc/malloc.c: Add short description and prototypes for
6554         malloc_get_state, malloc_set_state and posix_memalign, for
6555         consistency and to avoid warnings with -Wstrict-prototypes.
6556         Reported by Andreas Jaeger <aj@suse.de>.
6558 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
6560         * po/gl.po: Update from translation team.
6562 2002-03-31  Roland McGrath  <roland@frob.com>
6564         * hurd/hurdselect.c (_hurd_select): Fix
6565         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
6566         Use a union rather than casts to compare mach_msg_type_t as int.
6568 2002-03-25  Roland McGrath  <roland@frob.com>
6570         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
6571         check off the end of NAME when it's shorter than 2 chars.
6572         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
6574 2002-03-17  Roland McGrath  <roland@frob.com>
6576         * sysdeps/mach/hurd/i386/sys/io.h: New file.
6577         * sysdeps/mach/hurd/i386/ioperm.c: New file.
6578         * sysdeps/mach/hurd/i386/Dist: Add them.
6579         * sysdeps/mach/hurd/i386/Versions
6580         (libc: GLIBC_2.2.6): New set, add ioperm.
6581         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
6582         (mach_interface_list): Check for mach_i386.defs.
6583         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
6584         * sysdeps/mach/configure: Regenerated.
6586 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
6588         * po/fr.po: Update from translation team.
6590 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6592         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
6593         getpriority from syscalls list.
6595 2002-03-28  Andreas Jaeger  <aj@suse.de>
6597         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
6598         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
6599         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
6600         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
6602 2002-03-27  Andreas Jaeger  <aj@suse.de>
6604         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
6605         sigcontext): Follow further kernel change.
6607         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
6608         kernel change.
6610         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
6611         Change for struct sigcontext change.
6613         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
6614         Follow changes in struct sigcontext.
6616         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
6617         sysycall, use wrapper instead.
6619 2002-03-26  Andreas Jaeger  <aj@suse.de>
6621         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
6622         read and write accesses as detailed as possible.
6623         (__memcpy_by2): Likewise.
6624         (__memcpy_g): Likewise.
6625         (memmove): Likewise.
6626         (memcmp): Likewise.
6627         (__memset_ccn_by4): Likewise.
6628         (__memset_ccn_by2): Likewise.
6629         (__memset_gcn_by4): Likewise.
6630         (__memset_gcn_by2): Likewise.
6631         (memchr): Likewise.
6632         (__memrchr): Likewise.
6633         (rawmemchr): Likewise.
6634         (__strlen_g): Likewise.
6635         (__strcpy_g): Likewise.
6636         (__mempcpy_by4): Likewise.
6637         (__mempcpy_by2): Likewise.
6638         (__mempcpy_byn): Likewise.
6639         (__stpcpy_g): Likewise.
6640         (__strncpy_by4): Likewise.
6641         (__strncpy_by2): Likewise.
6642         (__strncpy_byn): Likewise.
6643         (__strncpy_gg): Likewise.
6644         (__strcat_c): Likewise.
6645         (__strcat_g): Likewise.
6646         (__strncat_g): Likewise.
6647         (__strcmp_gg): Likewise.
6648         (__strncmp_g): Likewise.
6649         (__strchr_c): Likewise.
6650         (__strchr_g): Likewise.
6651         (__strchrnul_c): Likewise.
6652         (__strchrnul_g): Likewise.
6653         (__strrchr_c): Likewise.
6654         (__strrchr_g): Likewise.
6655         (__strrchr_c): Likewise.
6656         (__strrchr_g): Likewise.
6657         (__strcspn_c1): Likewise.
6658         (__strcspn_cg): Likewise.
6659         (__strcspn_g): Likewise.
6660         (__strcspn_g): Likewise.
6661         (__strspn_c1): Likewise.
6662         (__strspn_cg): Likewise.
6663         (__strspn_g): Likewise.
6664         (__strspn_g): Likewise.
6665         (__strpbrk_cg): Likewise.
6666         (__strpbrk_g): Likewise.
6667         (__strstr_cg): Likewise.
6668         (__strstr_g): Likewise.
6670         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
6671         Michal Ludvig <mludvig@suse.cz>.
6673         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
6674         compatibilty, adjust for kernel changes.
6676         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
6677         sigcontext): Adjust for kernel changes.
6679 2002-03-25  Andreas Jaeger  <aj@suse.de>
6681         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
6682         little endian.
6683         Reported by Artur Zaprzala <zybi@talex.com.pl>.
6685 2002-03-24  Andreas Jaeger  <aj@suse.de>
6687         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
6689         * stdio-common/tst-fdopen.c (main): Remove unused variable.
6691         * iconv/tst-iconv3.c (main): Use correct printf strings.
6693 2002-03-18  Roland McGrath  <roland@frob.com>
6695         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
6696         (CMGROUP_MAX): New macro.
6698 2002-03-23  Roland McGrath  <roland@frob.com>
6700         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
6701         * sysdeps/posix/shm_unlink.c: Likewise.
6703 2002-03-22  Roland McGrath  <roland@frob.com>
6705         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
6706         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
6707         under --enable-libio.
6708         * sysdeps/mach/hurd/configure: Regenerated.
6710 2002-03-23  Roland McGrath  <roland@frob.com>
6712         * sysdeps/mach/hurd/i386/Makefile
6713         (sysdep_routines, shared-only-routines): Don't add framestate,
6714         reverting 2001-10-02 change.
6715         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
6716         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
6717         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
6718         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
6719         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
6720         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
6721         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
6722         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
6723         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
6724         Do it here instead, only if [$(unwind-find-fde) = yes].
6726 2002-03-23  Andreas Jaeger  <aj@suse.de>
6728         * signal/signal.h: Fix typo. Patch by Steve Kemp
6729         <skx@tardis.ed.ac.uk>.
6731 2002-03-22  Andreas Jaeger  <aj@suse.de>
6733         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
6734         getresuid.
6736         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
6737         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
6738         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
6739         user_fpregs_struct): Rename fwd.
6741         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
6742         Follow sigcontext changes.
6744 2002-03-22  Andreas Jaeger  <aj@suse.de>
6746         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
6747         changes for NaNs on MIPS.
6748         Patch by Hartvig Ekner <hartvige@mips.com>.
6750 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
6752         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
6753         Use realloc if too large.
6754         (addgrbyid): Likewise.
6755         * nscd/hstcache.c (addhstbyname): Likewise.
6756         (addhstbyaddr): Likewise.
6757         (addhstbynamev6): Likewise.
6758         (addhstbyaddrv6): Likewise.
6759         * nscd/pwdcache.c (addpwbyname): Likewise.
6760         (addpwbyuid): Likewise.
6762 2002-03-21  Andreas Jaeger  <aj@suse.de>
6764         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
6765         _fpstate): Add separate struct for x86-64.
6767         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
6768         user_fpregs_struct): Change member names to follow kernel.
6770 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
6772         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
6773         Correctly close the UDP connection right away [PR libc/3120].
6775 2002-03-20  Andreas Jaeger  <aj@suse.de>
6777         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
6778         user_fpregs_struct): Fix for changed kernel struct.
6779         (struct user_regs_struct): Likewise.
6780         (struct user): Likewise.
6781         Add 32-bit x86 compatibility.
6783         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
6785 2002-03-19  Andreas Jaeger  <aj@suse.de>
6787         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
6789 2002-03-18  Andreas Jaeger  <aj@suse.de>
6791         * iconvdata/Makefile: Only run tests when shared libs are
6792         available.
6794 2002-03-17  Andreas Jaeger  <aj@suse.de>
6796         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
6798         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
6800         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
6801         bits.
6803         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
6804         (CAUSE_SHIFT): New macro.
6805         Patch by Hartvig Ekner <hartvige@mips.com>.
6807         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
6808         * sysdeps/generic/unwind-pe.h: Likewise.
6810         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
6811         type to _IO_setb.
6813         * libio/stdio.c (AL2): Define variant when visibility attribute is
6814         not supported.
6816         * include/libc-symbols.h (_INTVARDEF): Define variant when
6817         visibility attribute is not supported.
6819 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
6821         * po/fr.po: Update from translation team.
6823 2002-02-25  Bruno Haible  <bruno@clisp.org>
6825         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
6827 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
6829         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
6830         buffers if _IO_file_attach failed.
6832         * libio/fileops.c (_IO_file_open): Close file descriptor if
6833         _IO_SEEKOFF call failed.
6835 2002-03-15  H.J. Lu  <hjl@gnu.org>
6836             Ulrich Drepper  <drepper@redhat.com>
6838         * configure.in: Check for availability of
6839         init_array/fini_array/preinit_array handling in binutils.
6840         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
6841         * config.make.in (have-initfini-array): New variable.
6843 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
6845         * stdio-common/tst-printf.c (main): Comment out one test which
6846         checked the compiler's ability to fold floating-point constants
6847         but not really printf.
6848         (rfg3): Make s const.
6849         * stdio-common/tst-printf.sh: Adjust for removed test.
6851         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
6852         internal function.  Adjust for internal_function calling convention.
6853         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
6854         as internal_function.
6856         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
6857         hidden.
6859         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
6860         declaration and definition.
6861         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
6862         declaration.
6863         * nss/getXXent_r.c: Likewise.
6864         * nss/nsswitch.h (db_lookup_function): Add internal_function to
6865         definition.
6867         * include/time.h: Declare __localtime_r as hidden.
6869         * include/aliases.h: Declare __getaliasent_r as hidden.
6870         * include/grp.h: Declare __getgrent_r as hidden.
6871         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
6872         __getservent_r, and __getprotoent_r as hidden.
6873         * include/pwd.h: Declare __getpwent_r as hidden.
6874         * include/shadow.h: Declare __getspent_r as hidden.
6875         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
6877         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
6878         and __gconv_transliterate as hidden.
6879         Add internal_function to __gconv_get_path declaration.
6880         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
6881         definition.  Add attribute_hidden to __gconv_read_conf definition.
6883 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
6885         * elf/rtld.c: Declare _environ as hidden.
6886         * sysdeps/generic/dl-environ.c: Likewise.
6887         * sysdeps/generic/dl-sysdep.c: Likewise.
6889         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
6890         _dl_mcount_internal as hidden.
6892         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
6893         * sysdeps/generic/dl-brk.c: New file.
6894         * sysdeps/generic/dl-sbrk.c: New file.
6895         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
6896         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
6898         * elf/dl-minimal.c (malloc): Declare _end as hidden.
6899         (__errno_location): New function.  Declare errno as hidden.
6900         * elf/rtld.c (_dl_argc): Define as hidden.
6901         (_dl_skip_args): Define as hidden.
6902         (_begin, _end): Declare as hidden.
6903         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
6904         * sysdeps/generic/entry.h (_start): Declare as hidden.
6905         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
6906         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
6907         _dl_runtime_resolve and _dl_runtime_profile as hidden.
6908         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
6910 2002-03-14  Roland McGrath  <roland@frob.com>
6912         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
6914         * Makeconfig (%.v.i, %.v): New implicit rules.
6915         (preprocess-versions): Variable removed.
6916         ($(common-objpfx)shlib-versions.v.i): New target giving just the
6917         shlib-versions input files as dependencies.
6918         ($(common-objpfx)soversions.i): Depend on that instead of the input
6919         files.  Use it as input instead of using a pipeline.
6920         (postclean-generated): Append soversions.i, shlib-versions.v, and
6921         shlib-versions.v.i here.
6922         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
6923         the Versions.def input files as dependencies.
6924         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
6925         ($(common-objpfx)Versions.all): Depend on that instead of the input
6926         files.  Use it as input instead of using a pipeline.
6927         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
6928         (postclean-generated): Append those .v and .v.i files here.
6930 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
6932         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
6933         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
6934         Remove.
6936 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
6938         * sysdeps/generic/mp_clz_tab.c: New file.
6939         * sysdeps/i386/mp_clz_tab.c: New file.
6940         * sysdeps/hppa/mp_clz_tab.c: New file.
6941         * sysdeps/powerpc/mp_clz_tab.c: New file.
6942         * stdlib/Makefile (aux): Revert last patch.
6943         * math/Makefile (gmp-objs): Likewise.
6945 2002-03-13  Paul Eggert  <eggert@twinsun.com>
6947         * time/strftime.c: Comment fixes for references to obsolescent
6948         standards, In most cases the simplest fix is to remove the
6949         confusing comments.  Cross-referencing all the standards properly
6950         is a bit of a pain, and it should be enough to put that info in
6951         the documentation as I did in my recent time.texi patch.
6953 2002-03-13  Paul Eggert  <eggert@twinsun.com>
6955         * manual/time.texi (Formatting Calendar Time):
6956         ISO C99 also specifies the E and O modifiers.
6957         %P is a GNU extension, and is not in ISO C99.
6958         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
6959         %T is also in ISO C99.
6960         The RFC 822 example is not valid in arbitrary locales.
6961         Reword the POSIX.2 wording slightly, to make it a bit clearer
6962         that POSIX.2 formats are also supported by later POSIX versions.
6963         If a format was introduced in ISO C99 it is also required by
6964         POSIX.1-2001.
6966 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
6968         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
6969         _sys_nerr_internal with INTVARDEF2.
6970         * include/libc-symbols.h (INTVARDEF2): New macro.
6971         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
6972         (_sys_nerr_internal): Library.
6974         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
6975         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
6977         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
6979 2002-03-13  Wolfram Gloger  <wg@malloc.de>
6981         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
6983 2002-03-02  Andreas Schwab  <schwab@suse.de>
6985         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
6986         'h' flag and positional arg.
6987         * stdio-common/tst-printf.c (rfg3): New function to test
6988         positional arguments.
6989         (main): Fix some warnings.
6991 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
6993         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
6994         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
6996 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
6998         * grp/initgroups.c (__nss_group_data): Declare as hidden.
7000         * include/locale.h (_nl_C_locobj): Declare as hidden.
7002         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7003         * time/strptime.c (_nl_C_LC_TIME): Likewise.
7005         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7007         * include/sys/gmon.h: Declare _gmonparam as hidden.
7009         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7010         (__ctype32_wctrans): Likewise.
7011         (__ctype32_width): Likewise.
7013         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7014         use of __ttyname.
7016         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7017         Define as hidden.
7018         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
7019         hidden.  Change all users of these variables.
7021         * posix/regex_internal.h (__re_error_msgid): Renamed from
7022         re_error_msgid.  Declare as hidden.
7023         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
7024         hidden.
7026         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7027         (__printf_function_table): Likewise.
7028         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7029         hidden.
7030         (__printf_function_table): Likewise.
7032         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7033         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
7035         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
7036         * nss/nsswitch.c: Declare _nss_*_database as hidden.
7038         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
7039         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
7041 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
7043         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
7044         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7045         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7046         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7047         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7048         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7049         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7050         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7051         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
7052         _nl_C_LC_CTYPE_width: Declare as hidden.
7053         * include/locale.h: Declare _nl_locale_file_list.
7054         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
7055         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
7056         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
7057         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
7058         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
7059         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
7060         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
7061         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
7062         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
7063         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
7064         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
7065         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
7066         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7067         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7068         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7069         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7070         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7071         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7072         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7073         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
7074         _nl_C_LC_CTYPE_width, and as hidden.
7075         * locale/findlocale.c: Declare _nl_C as hidden.
7076         * locale/newlocale.c: Likewise.
7077         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
7078         _nl_locale_file_list.
7079         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
7080         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
7081         Define _nl_C_locobj as hidden.
7083         * malloc/mtrace.c (_mtrace_file): Define as hidden.
7084         (_mtrace_line): Likewise.
7086         * include/time.h: Declare __mon_yday as hidden.
7087         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
7089         * libio/libioP.h: Declare __libio_codecvt as hidden.
7090         * libio/fileops.c: Declare __libio_translit as hidden.
7091         * libio/iofwide.c: Define __libio_translit as hidden.
7093         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
7094         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
7095         * login/getutline_r.c: Likewise.
7096         * login/utmpname.c: Likewise.
7098         * login/utmp-private.h: Declare __libc_utmp_file_functions,
7099         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
7100         __libc_utmp_file_name as hidden.
7102         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
7103         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
7104         * locale/freelocale.c: Likewise.
7105         * locale/lc-time.c: Likewise.
7107         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
7108         (__libc_ptyname2): Likewise.
7109         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
7110         hidden.
7111         (__libc_ptyname2): Likewise.
7113         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
7114         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
7115         * sysdeps/generic/init-first.c: Likewise.
7116         * sysdeps/i386/init-first.c: Likewise.
7117         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
7118         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7119         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7120         * sysdeps/sh/init-first.c: Likewise.
7121         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7122         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7124         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
7125         (_itowa_upper_digits): Likewise.
7127         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
7128         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
7129         as hidden.
7131         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
7132         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
7133         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
7134         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
7136         * gmon/gmon.c (__bb_head): Define as hidden.
7137         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
7139         * argp/argp-parse.c (_argp_hang): Define as static.
7141         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
7142         handling in latest compilers.
7144         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
7145         define alias.
7146         * libio/fileops.c (_IO_file_jumps): Likewise.
7147         * libio/stdfiles.c (_IO_list_all): Likewise.
7148         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
7150         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
7151         include/malloc.h.
7152         * include/malloc.h: Add __libc_malloc_initialized declaration
7153         here.  Mark variable hidden.
7154         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
7156         * elf/dl-open.c (__libc_argc): Declare as hidden.
7157         (__libc_argv): Likewise.
7158         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
7159         (__libc_argv): Likewise.
7160         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
7161         __libc_argv as hidden.
7162         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7163         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7164         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7165         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7167         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
7168         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
7169         * stdlib/erand48.c: Likewise.
7170         * stdlib/jrand48.c: Likewise.
7171         * stdlib/lcong48.c: Likewise.
7172         * stdlib/lrand48.c: Likewise.
7173         * stdlib/mrand48.c: Likewise.
7174         * stdlib/nrand48.c: Likewise.
7175         * stdlib/seed48.c: Likewise.
7176         * stdlib/srand48.c: Likewise.
7178         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
7179         (_itoa_lower_digits_internal): New declaration.
7180         (_itoa_upper_digits_internal): New declaration.
7181         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
7182         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
7183         (_itoa_upper_digits_internal): New declaration.
7184         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
7185         _itoa_lower_digits.
7186         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
7187         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
7189         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
7190         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7192         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
7193         (_itowa_lower_digits): Likewise.
7194         (_itowa_upper_digits): Likewise.
7195         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
7196         (_itowa_upper_digits): Likewise.
7198         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
7199         not already defined.
7200         (GERMANIC_PLURAL): Declare as hidden.
7202         * posix/getopt.c (__getopt_initialized): Declare as hidden.
7203         (attribute_hidden): Define as empty macro if not already defined.
7205         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
7206         (__gconv_max_path_elem_len): Likewise.
7207         (__gconv_path_envvar): Likewise.
7209         * math/Makefile (gmp-objs): Remove mp_clz_tab.
7210         * stdlib/Makefile (aux): Remove mp_clz_tab.
7211         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
7213         * stdlib/exit.h (__exit_funcs): Declare as hidden.
7215         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
7217         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
7218         _nl_category_names, _nl_category_name_sizes, _nl_current,
7219         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
7221         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
7222         (_nl_current_default_domain): Likewise
7223         (_nl_state_lock): Likewise.
7224         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
7225         (_nl_current_default_domain): Likewise
7226         (_nl_state_lock): Likewise.
7227         * intl/bindtextdom.c (_nl_state_lock): Likewise.
7229         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
7230         (_fpioconst_pow10): Likewise.
7232         * include/time.h (_tmbuf): Add attribute_hidden.
7234         * time/tzset.c (tzstring_list): Define as static.
7236         * include/time.h: Add attribute_hidden to __tzname_cur_max and
7237         __use_tzfile declaration.
7239         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
7240         and __wcsmbs_last_locale declaration.
7242 2002-02-25  Paul Eggert  <eggert@twinsun.com>
7244         * timezone/Makefile (tzbases): Move systemv from here...
7245         (tzlinks): to here, since the entries in systemv were all changed
7246         from Zone to Link lines in tz-2001a.  Bug reported (and patch
7247         tested) by Peter Breitenlohner.
7249 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
7251         * time/tst-posixtz.c (tests): Add new tests.
7252         (main): Test whether tzset() sets daylight properly.
7254 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
7256         * time/tzset.c (tz_compute): Move __daylight, __tzname and
7257         __tzname_cur_max setting...
7258         (tzset_internal): ...here.
7260 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
7262         * time/tzset.c (compute_change): Don't return any value.
7263         (tz_compute): Likewise.  Don't handle southern hemisphere here.
7264         (__tz_convert): But here.
7266 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
7268         * manual/examples/mkfsock.c: Include <string.h> as well.
7269         Patch by Alain De Carolis <alaind@wseurope.com>.
7271 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
7273         * posix/regexec.c (re_match): Fix incorrect register sizes.
7274         (re_search): Likewise.
7276 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
7278         * posix/regcomp.c (regfree): Remove a disused condition.
7279         * posix/regex_internal.c (re_acquire_state): Likewise.
7280         (re_acquire_state_context): Likewise.
7281         (register_state): Remove a redundant malloc invocation.
7282         * posix/regex_internal.h: (re_state_table_entry): Simplify
7283         the structure.
7285 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
7287         * posix/regcomp.c (regcomp): Add __builtin_expect to error
7288         handling conditions.
7289         (regerror): Likewise.
7290         (regfree): Likewise.
7291         (re_compile_internal): Likewise.
7292         (init_dfa): Likewise.
7293         (init_word_char): Likewise.
7294         (create_initial_state): Likewise.
7295         (analyze): Likewise.
7296         (analyze_tree): Likewise.
7297         (duplicate_node): Likewise.
7298         (calc_eclosure): Likewise.
7299         (calc_eclosure_iter): Likewise.
7300         (parse): Likewise.
7301         (parse_reg_exp): Likewise.
7302         (parse_branch): Likewise.
7303         (parse_expression): Likewise.
7304         (parse_subexp): Likewise.
7305         (parse_dup_op): Likewise.
7306         (parse_bracket_exp): Likewise.
7307         (build_equiv_class): Likewise.
7308         (build_charclass): Likewise.
7309         (build_word_op): Likewise.
7310         (fetch_number): Likewise.
7311         (create_tree): Likewise.
7312         (duplicate_tree): Likewise.
7313         * posix/regex.c (BE): New macro.
7314         * posix/regexec.c (re_match): Add __builtin_expect to error
7315         handling conditions.
7316         (re_match_2): Likewise.
7317         (re_search): Likewise.
7318         (re_search_internal): Likewise.
7319         (check_matching): Likewise.
7320         (proceed_next_node): Likewise.
7321         (set_regs): Likewise.
7322         (sift_states_backward): Likewise.
7323         (add_epsilon_backreference): Likewise.
7324         (transit_state): Likewise.
7325         (transit_state_sb): Likewise.
7326         (transit_state_mb): Likewise.
7327         (transit_state_bkref): Likewise.
7328         (transit_state_bkref_loop): Likewise.
7329         (build_trtable): Likewise.
7330         (group_nodes_into_DFAstates): Likewise.
7331         (match_ctx_init): Likewise.
7332         (match_ctx_add_entry): Likewise.
7333         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
7334         to error handling conditions.
7335         (re_string_construct_toupper): Likewise.
7336         (build_wcs_buffer): Likewise.
7337         (build_wcs_upper_buffer): Likewise.
7338         (build_upper_buffer): Likewise.
7339         (re_string_translate_buffer): Likewise.
7340         (re_node_set_alloc): Likewise.
7341         (re_node_set_init_1): Likewise.
7342         (re_node_set_init_2): Likewise.
7343         (re_node_set_init_copy): Likewise.
7344         (re_node_set_intersect): Likewise.
7345         (re_node_set_init_union): Likewise.
7346         (re_node_set_merge): Likewise.
7347         (re_node_set_insert): Likewise.
7348         (re_dfa_add_node): Likewise.
7349         (re_acquire_state): Likewise.
7350         (re_acquire_state_context): Likewise.
7351         (create_new_state_common): Likewise.
7352         (register_state): Likewise.
7353         (create_ci_new_state): Likewise.
7354         (create_cd_new_state): Likewise.
7355         (re_string_context_at): Remove redundant condition.
7357 2002-01-16  Roger Sayle  <roger@eyesopen.com>
7359         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
7361         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
7363 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
7365         * sysdeps/i386/elf/configure.in: Fix comment.
7367         * sysdeps/sparc/sparc64/configure.in: New file.
7368         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
7369         if .dynamic comes before .got.
7370         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
7372         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
7373         HP_TIMING_ACCUM): Fix typos.
7375 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
7377         * string/strfry.c: Add some more randomness to the seed.
7378         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
7380         * po/es.po: Update from translation team.
7381         * po/fr.po: Likewise.
7383         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
7385         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
7386         when determining type of format.
7387         Patch by James Antill <james@anqd.org> [PR libc/2787].
7389 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
7391         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
7393 2002-03-11  Roland McGrath  <roland@frob.com>
7395         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
7397         * Versions.def (libc): Add GLIBC_2.2.6.
7398         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
7399         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
7400         __errno_location instead of __hurd_errno_location, and don't inline it.
7401         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
7402         * hurd/errno.c: New file.
7403         * hurd/Makefile (routines): Add errno.
7405 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
7407         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
7408         ridiculously large widths and precisions [PR libc/3026].
7410 2002-03-11  Andreas Jaeger  <aj@suse.de>
7412         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
7413         support.
7414         Patch by Susanne Oberhauser <froh@SuSE.de>.
7416 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
7418         * inet/rexec.c (ahostbuf): Define as static.
7420         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
7421         (__ctype32_wctrans): Likewise.
7422         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
7423         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
7424         (__ctype32_wctrans): Likewise.
7425         (__ctype32_width): Likewise.
7427         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
7428         They were never exported anyway.
7430         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
7431         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
7432         exported.
7433         * include/sys/gmon.h: Declare _gmonparam.
7435         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
7436         symbols for getdents64.  They were never exported.
7438 2002-03-09  Roland McGrath  <roland@frob.com>
7440         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
7441         Reported by Jon Arney <jarney1@cox.net>.
7443 2002-02-23  Roland McGrath  <roland@frob.com>
7445         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
7446         declaration.
7447         (__hurd_errno_location): Function removed.
7449 2002-03-06  Andreas Jaeger  <aj@suse.de>
7451         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
7452         32-bit.
7454 2002-03-04  Andreas Jaeger  <aj@suse.de>
7456         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
7458         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
7459         x86-64.
7461         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
7463         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
7465         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
7467         * sysdeps/x86_64/bits/setjmp.h: New file.
7469         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
7471         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
7473         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
7474         for x86.
7475         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
7476         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
7478 2002-02-28  Bo Thorsen  <bo@suse.de>
7480         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
7481         version.
7483 2002-03-03  Andreas Jaeger  <aj@suse.de>
7485         * sysdeps/x86_64/bits/wordsize.h: New file.
7487         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
7488         * elf/tst-tlsmod1.c: Likewise.
7490         * posix/regcomp.c: Get regex.h from include dir for internal
7491         prototypes.
7493         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
7494         to libc-internal.h and include it.
7495         * include/libc-internal.h: Add __init_misc.
7497         * misc/init-misc.c: Include libc-internal.h for prototypes.
7499         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
7501         * misc/error.c [_LIBC]: Include libioP.h for prototype of
7502         _IO_putc_internal.
7504 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
7506         * posix/regcomp.c: Compatibility changes to allow using the code
7507         outside glibc.
7509 2002-02-28  Hartvig Ekner <hartvige@mips.com>
7511         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
7512         compiled non-PIC.
7514 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
7516         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
7517         of .str elements in the returned data structure.
7519         * elf/elf.h: Add Alpha TLS bits.
7521 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
7523         * sysdeps/unix/sysv/linux/nice.c: New file.
7525 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
7527         * elf/Makefile (dl-routines): Add dl-origin.
7528         (elide-routines.os): Add dl-origin.
7529         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
7530         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
7531         _dl_debug_state.
7532         * include/libc-symbols.c: Define attribute_hidden depending on
7533         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
7535         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
7536         * elf/dl-load.c: Likewise.
7537         * elf/rtld.c: Likewise.
7538         * include/unistd.h: Declare __libc_enable_secure_internal.
7539         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
7540         Use INTUSE with __libc_enable_secure.
7541         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
7543         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
7544         * elf/dl-error.c: Likewise,
7545         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
7547         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
7548         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
7549         function definition.  Use INTDEF with _dl_get_origin.
7550         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
7552         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
7553         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
7555         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
7556         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
7557         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
7559         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
7560         * elf/dl-deps.c: Likewise.
7561         * elf/dl-error.c: Likewise.
7562         * elf/dl-fini.c: Likewise.
7563         * elf/dl-init.c: Likewise.
7564         * elf/dl-load.c: Likewise.
7565         * elf/dl-lookup.c: Likewise.
7566         * elf/dl-reloc.c: Likewise.
7567         * elf/dl-version.c: Likewise.
7568         * elf/do-lookup.h: Likewise.
7569         * sysdeps/arm/dl-machine.h: Likewise.
7570         * sysdeps/cris/dl-machine.h: Likewise.
7571         * sysdeps/hppa/dl-machine.h: Likewise.
7572         * sysdeps/i386/dl-machine.h: Likewise.
7573         * sysdeps/m68k/dl-machine.h: Likewise.
7574         * sysdeps/powerpc/dl-machine.h: Likewise.
7575         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7576         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7577         * sysdeps/sh/dl-machine.h: Likewise.
7578         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
7579         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
7580         * sysdeps/x86_64/dl-machine.h: Likewise.
7581         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
7582         _dl_argv[0].  Use INTUSE with _dl_argv.
7583         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
7584         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
7586 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
7588         * elf/rtld.c (_rtld_global): Remove .protected.
7589         (_rtld_local): Strong alias to _rtld_global.
7590         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
7591         only .os object.
7592         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
7593         _rtld_local instead of _rtld_global.
7594         (_rtld_local): Add hidden extern, possibly in .sdata section.
7595         * configure.in: Add tests for visibility attribute and .sdata.
7596         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
7597         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
7598         * sysdeps/arm/dl-machine.h: Likewise.
7599         * sysdeps/generic/ldsodefs.h: Likewise.
7600         * sysdeps/hppa/dl-machine.h: Likewise.
7601         * sysdeps/cris/dl-machine.h: Likewise.
7602         * sysdeps/i386/dl-machine.h: Likewise.
7603         * sysdeps/ia64/dl-machine.h: Likewise.
7604         * sysdeps/m68k/dl-machine.h: Likewise.
7605         * sysdeps/mips/mips64/dl-machine.h: Likewise.
7606         * sysdeps/mips/dl-machine.h: Likewise.
7607         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7608         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7609         * sysdeps/sh/dl-machine.h: Likewise.
7610         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7611         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7612         * sysdeps/x86_64/dl-machine.h: Likewise.
7614 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
7616         * login/login.c (login): Always initialize ut_line field
7617         [PR libc/2991].
7619 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
7621         * sysdeps/i386/Makefile (sysdep_routines): Add
7622         divdi3 in csu dir.
7623         (shared-only-routines): Likewise.
7624         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
7625         (shared-only-routines): Likewise.
7626         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
7627         (shared-only-routines): Likewise.
7628         * sysdeps/wordsize-32/divdi3.c: New file.
7630 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
7632         * locale/iso-4217.def: Remove obsolete currencies for countries
7633         with Euro.
7635 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
7637         * posix/regcomp.c (regcomp): Remove a redundant condition.
7638         (init_word_char): Add a check on malloc failure.
7639         (create_initial_state): Likewise.
7640         (duplicate_node): Likewise.
7641         (calc_eclosure): Likewise.
7642         (calc_eclosure_iter): Likewise.
7643         (parse_expression): Likewise.
7644         (parse_bracket_exp): Remove unnecessary malloc invocations.
7645         (build_equiv_class): Likewise.
7646         (build_charclass): Likewise.
7647         * posix/regex_internal.c (re_node_set_intersect): Add a check
7648         on malloc failure.
7649         (re_node_set_add_intersect): Likewise.
7650         (re_node_set_merge): Likewise.
7651         (re_acquire_state): Likewise.
7652         (re_acquire_state_context): Likewise.
7653         (create_newstate_common): Likewise.
7654         (register_state): Likewise.
7655         (create_ci_newstate): Likewise.
7656         (create_cd_newstate): Likewise.
7657         * posix/regex_internal.h: Fix prototypes of re_acquire_state
7658         and re_acquire_state_context.
7659         * posix/regexec.c (regexec): Suit it to the error handling of
7660         re_search_internal.
7661         (re_match): Likewise.
7662         (re_search): Likewise.
7663         (re_search_internal): Add a check on malloc failure.
7664         (acquire_init_state_context): Likewise.
7665         (check_matching): Likewise.
7666         (proceed_next_node): Likewise.
7667         (set_regs): Likewise.
7668         (sift_states_backward): Likewise.
7669         (sift_states_iter_bkref): Likewise.
7670         (add_epsilon_backreference): Likewise.
7671         (transit_state): Likewise.
7672         (transit_state_sb): Likewise.
7673         (transit_state_mb): Likewise.
7674         (transit_state_bkref_loop): Likewise.
7675         (build_trtable): Likewise.
7676         (group_nodes_into_DFAstates): Likewise.
7677         (match_ctx_init): Likewise.
7678         (match_ctx_add_entry): Likewise.
7680 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
7682         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
7683         l_libname if profiling is enabled [PR libc/2916].
7685         * sysdeps/ia64/dl-tls.h: New file.
7687 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
7689         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
7690         Work around an Alpha gas bug.
7692 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
7694         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
7695         uses read to load the catalog.
7696         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
7698 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
7700         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
7701         regex_internal.c, and regex_internal.h.
7702         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
7703         * posix/regex.c: Complete rewrite.
7704         * posix/regexec.c: New file.
7705         * posix/regcomp.c: New file.
7706         * posix/regex_internal.c: New file.
7707         * posix/regex_internal.h: New file.
7708         * posix/regex.h (RE_ICASE): New macro.
7709         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
7711         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
7712         ungetwc.  It's a macro.
7713         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
7714         implementation.
7715         Reported by Jason Merrill <jason@redhat.com>.
7717 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
7719         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
7720         position to fp->_offset if it is set.
7721         * stdio-common/Makefile (tests): Add tst-fdopen.
7722         * stdio-common/tst-fdopen.c: New test.
7724 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
7726         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
7727         * stdio-common/tst-ungetc.c (main): Add another test.
7729 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
7731         * assert/assert-perr.c: Use INTUSE to reference functions and variables
7732         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
7733         aliases.  Add prototypes for the new aliases.
7734         * assert/assert.c: Likewise.
7735         * include/libc-symbols.h: Likewise.
7736         * include/stdio.h: Likewise.
7737         * include/netinet/in.h: Likewise.
7738         * include/rpc/auth.h: Likewise.
7739         * include/rpc/auth_unix.h: Likewise.
7740         * include/rpc/key_prot.h: Likewise.
7741         * include/rpc/pmap_prot.h: Likewise.
7742         * include/rpc/pmap_rmt.h: Likewise.
7743         * include/rpc/rpc_msg.h: Likewise.
7744         * include/rpc/xdr.h: Likewise.
7745         * inet/gethstbyad_r.c: Likewise.
7746         * inet/gethstbynm2_r.c: Likewise.
7747         * inet/gethstbynm_r.c: Likewise.
7748         * inet/gethstent_r.c: Likewise.
7749         * inet/in6_addr.c: Likewise.
7750         * libio/__fpurge.c: Likewise.
7751         * libio/filedoalloc.c: Likewise.
7752         * libio/fileops.c: Likewise.
7753         * libio/ftello.c: Likewise.
7754         * libio/ftello64.c: Likewise.
7755         * libio/genops.c: Likewise.
7756         * libio/iofclose.c: Likewise.
7757         * libio/iofdopen.c: Likewise.
7758         * libio/iofflush.c: Likewise.
7759         * libio/iofflush_u.c: Likewise.
7760         * libio/iofgetpos.c: Likewise.
7761         * libio/iofgetpos64.c: Likewise.
7762         * libio/iofgets.c: Likewise.
7763         * libio/iofgets_u.c: Likewise.
7764         * libio/iofopen.c: Likewise.
7765         * libio/iofopncook.c: Likewise.
7766         * libio/iofputs.c: Likewise.
7767         * libio/iofread.c: Likewise.
7768         * libio/iofread_u.c: Likewise.
7769         * libio/iofsetpos.c: Likewise.
7770         * libio/iofsetpos64.c: Likewise.
7771         * libio/ioftell.c: Likewise.
7772         * libio/iofwrite.c: Likewise.
7773         * libio/iogetline.c: Likewise.
7774         * libio/iogets.c: Likewise.
7775         * libio/iogetwline.c: Likewise.
7776         * libio/iolibio.h: Likewise.
7777         * libio/iopadn.c: Likewise.
7778         * libio/iopopen.c: Likewise.
7779         * libio/ioseekoff.c: Likewise.
7780         * libio/ioseekpos.c: Likewise.
7781         * libio/iosetbuffer.c: Likewise.
7782         * libio/iosetvbuf.c: Likewise.
7783         * libio/ioungetc.c: Likewise.
7784         * libio/ioungetwc.c: Likewise.
7785         * libio/iovdprintf.c: Likewise.
7786         * libio/iovsprintf.c: Likewise.
7787         * libio/iovsscanf.c: Likewise.
7788         * libio/libioP.h: Likewise.
7789         * libio/memstream.c: Likewise.
7790         * libio/obprintf.c: Likewise.
7791         * libio/oldfileops.c: Likewise.
7792         * libio/oldiofclose.c: Likewise.
7793         * libio/oldiofdopen.c: Likewise.
7794         * libio/oldiofgetpos.c: Likewise.
7795         * libio/oldiofgetpos64.c: Likewise.
7796         * libio/oldiofopen.c: Likewise.
7797         * libio/oldiofsetpos.c: Likewise.
7798         * libio/oldiofsetpos64.c: Likewise.
7799         * libio/oldiopopen.c: Likewise.
7800         * libio/oldstdfiles.c: Likewise.
7801         * libio/putc.c: Likewise.
7802         * libio/setbuf.c: Likewise.
7803         * libio/setlinebuf.c: Likewise.
7804         * libio/stdfiles.c: Likewise.
7805         * libio/stdio.c: Likewise.
7806         * libio/strops.c: Likewise.
7807         * libio/vasprintf.c: Likewise.
7808         * libio/vscanf.c: Likewise.
7809         * libio/vsnprintf.c: Likewise.
7810         * libio/vswprintf.c: Likewise.
7811         * libio/wfiledoalloc.c: Likewise.
7812         * libio/wfileops.c: Likewise.
7813         * libio/wgenops.c: Likewise.
7814         * libio/wstrops.c: Likewise.
7815         * malloc/mtrace.c: Likewise.
7816         * misc/error.c: Likewise.
7817         * misc/syslog.c: Likewise.
7818         * nss/getXXbyYY_r.c: Likewise.
7819         * nss/getXXent_r.c: Likewise.
7820         * nss/hosts-lookup.c: Likewise.
7821         * stdio-common/getw.c
7822         * stdio-common/printf-prs.c: Likewise.
7823         * stdio-common/printf_fp.c: Likewise.
7824         * stdio-common/printf_size.c: Likewise.
7825         * stdio-common/putw.c: Likewise.
7826         * stdio-common/scanf.c: Likewise.
7827         * stdio-common/sprintf.c: Likewise.
7828         * stdio-common/tmpfile64.c: Likewise.
7829         * stdio-common/vfprintf.c: Likewise.
7830         * stdio-common/vfscanf.c: Likewise.
7831         * stdlib/strfmon.c: Likewise.
7832         * sunrpc/auth_des.c: Likewise.
7833         * sunrpc/auth_none.c: Likewise.
7834         * sunrpc/auth_unix.c: Likewise.
7835         * sunrpc/authdes_prot.c: Likewise.
7836         * sunrpc/authuxprot.c: Likewise.
7837         * sunrpc/clnt_perr.c: Likewise.
7838         * sunrpc/clnt_raw.c: Likewise.
7839         * sunrpc/clnt_tcp.c: Likewise.
7840         * sunrpc/clnt_udp.c: Likewise.
7841         * sunrpc/clnt_unix.c: Likewise.
7842         * sunrpc/key_call.c: Likewise.
7843         * sunrpc/key_prot.c: Likewise.
7844         * sunrpc/openchild.c: Likewise.
7845         * sunrpc/pm_getmaps.c: Likewise.
7846         * sunrpc/pm_getport.c: Likewise.
7847         * sunrpc/pmap_clnt.c: Likewise.
7848         * sunrpc/pmap_prot.c: Likewise.
7849         * sunrpc/pmap_prot2.c: Likewise.
7850         * sunrpc/pmap_rmt.c: Likewise.
7851         * sunrpc/rpc_cmsg.c: Likewise.
7852         * sunrpc/rpc_prot.c: Likewise.
7853         * sunrpc/svc_authux.c: Likewise.
7854         * sunrpc/svc_raw.c: Likewise.
7855         * sunrpc/svc_simple.c: Likewise.
7856         * sunrpc/svc_tcp.c: Likewise.
7857         * sunrpc/svc_udp.c: Likewise.
7858         * sunrpc/svc_unix.c: Likewise.
7859         * sunrpc/xdr.c: Likewise.
7860         * sunrpc/xdr_array.c: Likewise.
7861         * sunrpc/xdr_mem.c: Likewise.
7862         * sunrpc/xdr_rec.c: Likewise.
7863         * sunrpc/xdr_ref.c: Likewise.
7864         * sunrpc/xdr_stdio.c: Likewise.
7865         * sysdeps/generic/_strerror.c: Likewise.
7866         * sysdeps/generic/printf_fphex.c: Likewise.
7867         * sysdeps/generic/tmpfile.c: Likewise.
7868         * sysdeps/gnu/errlist.awk: Likewise.
7869         * sysdeps/gnu/errlist.c: Likewise.
7871         * libio/Makefile (routines): Remove iosprint.
7872         * libio/iosprintf.c: Removed
7875 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
7877         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
7878         non_dynamic_init and exported now.
7879         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
7880         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
7881         !SHARED.
7882         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
7883         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7884         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7886 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
7888         * elf/dl-close.c (free_slotinfo): Check for end of list and return
7889         true in this case.
7891         * locale/iso-639.def: Add language codes for Walloon.
7893         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
7894         total number of relocations performed.
7896         * elf/sprof.c (load_profdata): If do_test provide information as
7897         to why loading failed.
7898         * elf/dl-profile.c (_dl_start_profile): Initialize all of
7899         hist_hdr.dimen.
7901         * csu/set-init.c: Moved to...
7902         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
7903         * csu/Makefile: Don't compile set-init.
7904         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
7905         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
7906         to __libc_init.
7907         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7908         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7909         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
7910         __libc_init.
7911         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
7912         __libc_subinit.
7914 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
7916         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
7917         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
7918         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
7919         (_dl_deallocate_tls): New function.
7920         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
7921         _dl_deallocate_tls.
7923 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
7925         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
7926         * stdio-common/tst-fseek.c (main): Add test for this.
7928 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
7930         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
7932 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
7934         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
7935         pointer before dereferencing.
7937 2002-02-18  Roland McGrath  <roland@frob.com>
7939         * sysdeps/mach/hurd/times.c: Fix typo in last change.
7941         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
7942         Use task_policy in place of task_priority.
7944         * sysdeps/generic/bits/mman.h
7945         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
7946         * sysdeps/mach/msync.c: New file.
7948         * sysdeps/mach/powerpc/syscall.S: New file.
7950         * mach/msg.c [MACH_MSG_OVERWRITE]
7951         (__mach_msg_trap, __mach_msg_overwrite): New functions.
7952         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
7954         * sysdeps/mach/configure.in: Check for clock.defs to put into
7955         mach_interface_list.
7956         * sysdeps/mach/configure: Regenerated.
7958         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
7959         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
7960         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
7961         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
7962         (mach-shortcuts): Add device_read_overwrite_request,
7963         device_read_overwrite, vm_read_overwrite, thread_switch.
7965         * configure.in (base_machine): Set to $machine by default.
7966         * configure: Regenerated.
7968         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
7969         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
7970         * sysdeps/mach/configure: Regenerated.
7971         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
7973         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
7975         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
7977         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
7978         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
7980 2002-02-17  Roland McGrath  <roland@frob.com>
7982         * sysdeps/mach/hurd/times.c
7983         [NO_CREATION_TIME] (startup_time): New static variable.
7984         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
7985         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
7986         creation_time from task_basic_info.
7987         (__times): Use __gettimeofday instead of __host_get_time.
7989         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
7990         Use untyped Mach IPC message format.
7992         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
7994         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
7995         _S_catch_exception_raise_state_identity,
7996         _hurdsig_fault_catch_exception_raise_state,
7997         _hurdsig_fault_catch_exception_raise_state_identity.
7999         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8001         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8002         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8004         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8005         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8007         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8008         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
8009         them as no-op macros.
8010         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8011         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8013         * sysdeps/powerpc/dl-machine.h
8014         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8016         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8017         Use untyped Mach IPC message format.
8019         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8020         Handle untyped Mach IPC message formats.
8022         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8023         Expect different argument conventions when this is defined.
8024         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8025         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8026         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8027         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8028         for OSF Mach variant.
8029         (faulted): Use mig_reply_error_t for REPLY.
8030         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8031         in __thread_set_exception_ports call.
8032         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8033         __mach_port_set_attributes in place of __mach_port_set_qlimit.
8035         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
8036         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
8037         on Darwin, which includes bogons.
8039         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
8040         variable LOADBASE so it's not declared when it's not used.
8042 2002-02-16  Roland McGrath  <roland@frob.com>
8044         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
8045         to use BI.creation_time.
8047         * mach/Machrules (MIG): Add -x c to CPP value passed down.
8049         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
8050         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
8051         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
8052         host_page_size instead of vm_statistics.
8054         * sysdeps/mach/Makefile (mach-before-compile): Don't include
8055         mach_interface.h here, since not all variants use that name.
8057         * sysdeps/mach/configure.in: Add some checks for Mach headers
8058         to ensure a sane installation.
8059         (mach_interface_list): Define this variable by checking for .defs
8060         files found in various variants.
8061         * configure.in (mach_interface_list): AC_SUBST this.
8062         * config.make.in (mach-interface-list): New substituted variable.
8063         * mach/Makefile (user-interfaces): Define this using the value
8064         of $(mach-interface-list) instead of mach, mach4.
8065         Updated other references to mach_interface to use it as well.
8067         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
8069         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
8070         mig_reply_error_t for OSF Mach variant.
8072         * mach/Makefile (routines): Remove bootprivport.
8073         * mach/bootprivport.c: File removed.  It has never been used.
8075         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
8076         Grok the OSF flavor of message format.
8077         (mach_msg_destroy_port): For MAKE_SEND and
8078         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
8079         no-senders notification.
8081 2002-02-06  Roland McGrath  <roland@frob.com>
8083         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
8084         to here if 2.0 compatibility enabled ...
8085         (libc: GLIBC_2.1.3): ... from here.
8087 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
8089         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
8090         generation counter.
8091         * elf/dl-close.c (_dl_close): Likewise.
8093 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
8095         * elf/Makefile: Add rules to build and run tst-tls8.
8096         * elf/tst-tls8.c: New file.
8097         * elf/tst-tlsmod4.c: New file.
8099         * stdlib/test-a64l.c (tests): Add more test cases.
8101         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
8102         Reported by Walter Harms <WHarms@bfs.de>.
8104 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
8106         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
8107         definitions for struct sigcontext.
8108         Suggested by David Mosberger-Tang.
8110 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
8112         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
8113         for removing reference of module in slotinfo list.
8114         (_dl_close): Use remove_slotinfo.
8115         * sysdeps/generic/dl-tls.c: General pretty printing.
8116         (oom): Define only if SHARED.
8117         (_dl_next_tls_modid): Correct starting point for the case we assume
8118         there is a gap.  Add missing instruction grouping (doh!).  Correct
8119         tests for reaching maximum index.
8120         * elf/Makefile: Add rules to build and run tst-tls7.
8121         * elf/tst-tls7.c: New file.
8122         * elf/tst-tlsmod3.c: New file.
8124         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
8125         USE_TLS.
8126         * elf/tst-tlsmod2.c: Likewise.
8128         * elf/dl-close.c (_dl_close): When closing an object using TLS
8129         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
8130         true.  Increment dl_tls_generation only if we closed any TLS-using
8131         object.
8132         * elf/tst-tls6.c: New file.
8133         * elf/Makefile: Add rules to build and run tst-tls6.
8135         * po/da.po: Update from translation team.
8137         * locale/categories.def: Fix typo [PR libc/2948].
8138         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
8139         [PR libc/2949].
8140         * locale/iso-4217.def: Update from official version [PR libc/2950].
8141         * glibcbug.in: Honor TMPDIR [PR libc/2951].
8142         * locale/programs/ld-collate.c (collate_finish): Bail out with a
8143         message if input is too confusion instead of using assert.
8144         (collate_read): Don't crash on unknown symbol [PR libc/2952].
8145         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
8147         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
8148         * elf/tst-tls2.c: Likewise.
8149         * elf/tst-tls3.c: Likewise.
8151 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
8153         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
8155 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
8157         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
8158         if this is really necessary.
8160         * elf/dl-close.c (_dl_close): Implement freeing entries in the
8161         slotinfo array.
8162         (free_mem): Free memory for the slotinfo array if possible.
8164 2002-02-12  Andreas Schwab  <schwab@suse.de>
8166         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
8168 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
8170         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
8171         TLS_DTV_UNALLOCATE.
8172         (oom): New function.
8173         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
8174         (_dl_determine_tlsoffset): Likewise.
8175         (_dl_allocate_tls): Likewise.
8176         (__TLS_GET_ADDR): Define if not already defined.
8177         (_dl_tls_symaddr): New function.
8178         (allocate_and_init): New function.
8179         (__tls_get_addr): Actually implement handling of generation counter
8180         and deferred allocation.
8181         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
8182         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8183         _dl_tls_generation.
8184         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
8185         Declare _dl_tls_symaddr.
8186         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
8187         SHARED.
8188         * include/link.h (struct link_map):  Remove l_tls_nextimage and
8189         l_tls_previmage.
8190         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
8191         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
8192         (_dl_vsym): Likewise.
8193         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
8194         layout.
8195         (dl_main): Allow PT_TLS be present for empty segment.  Remove
8196         nextimage list handling.  Instead add all modules using TLS to
8197         dl_tls_dtv_slotinfo_list.
8198         * elf/dl-open.c (dl_open_worker): After successfully loading all
8199         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
8200         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
8201         empty segment don't do anything.  Remove handling of initimage list.
8202         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
8203         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
8204         * elf/dl-minimal.c: Define __libc_memalign.
8205         * elf/dl-support.c: Remove _dl_initimage_list.  Add
8206         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8207         _dl_tls_generation.
8208         * include/stdlib.h: Declare __libc_memalign.
8210         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
8211         * elf/tst-tls4.c: New file.
8212         * elf/tst-tls5.c: New file.
8213         * elf/tst-tlsmod2.c: New file.
8215         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
8217         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
8219         * elf/tst-tls1.c: Use test-skeleton.c.
8220         * elf/tst-tls2.c: Likewise.
8221         * elf/tst-tls3.c: Likewise.
8223         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
8225 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
8227         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
8229 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
8231         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
8233         * elf/tst-tls3.c: New file.
8234         * elf/tst-tlsmod1.c: New file.
8235         * elf/Makefile: Add rules to build and run tst-tls3.
8237         * sysdeps/i386/dl-machine.h: Include <tls.h>.
8238         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
8239         TLS relocations.
8241         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
8243         * po/fr.po: Update from translation team.
8245         * elf/tls-macros.h: Add alternative macros for use in PIC.
8247         * elf/dl-lookup.c: Include <tls.h>.
8248         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
8250         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
8251         required by passing pointer to last element of the list.
8253         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
8254         l_tls_initimage to a place where it actually is performed.
8256         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
8257         after globfree() calls.
8259         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
8260         (openaux): Pass open_mode as new last argument to _dl_map_object.
8261         (_dl_map_object_deps): Add new argument open_mode.  Initialize
8262         open_mode element of args variable with it.
8263         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
8264         _dl_map_object_deps.
8265         * elf/rtld.c (dl_main): Add zero as last parameter to
8266         _dl_map_object_deps call.
8267         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
8268         * elf/nodlopen2.c: New file.
8269         * elf/nodlopenmod2.c: New file.
8270         * elf/Makefile: Add rules to build and run nodlopen2.
8272         * elf/tst-tls1.c: Move TLS helper macros to...
8273         * elf/tls-macros.h: ...here.  New file.
8274         * elf/tst-tls2.c: New file.
8275         * elf/Makefile (tests): Add tst-tls2.
8276         (distribute): Add tls-macros.h.
8278         * po/sv.po: Update from translation team.
8280         * elf/tst-tls1.c (main): Add complete set of tests.  Split
8281         architecture specific definitions from the actual test code.
8283         * po/tr.po: Update from translation team.
8285 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
8287         * elf/Makefile (tests): Add tst-tls1.
8288         * elf/tst-tls1.c: New file.
8290         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
8291         alignment of TCB for now.
8293         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
8294         initialization image for the application itself.
8296         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
8297         loop to initialize TLS block.
8299 2002-02-08  Richard Henderson  <rth@redhat.com>
8301         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
8302         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
8304         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
8306 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
8308         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
8310 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
8312         * po/ca.po: Update from translation team.
8313         * po/sk.po: Likewise.
8315         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
8316         (dl_main): Move dtv/static TLS handling before relocation.
8317         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
8318         TLS_INIT_TP to allocate and install the dtv/static TLS block.
8319         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
8320         so far uses TLS initialize GL(dl_tls_static_size) and
8321         GL(dl_tls_static_align) to account for the TCB.
8322         (_dl_allocate_tls): New function.
8323         * sysdeps/generic/ldsodefs.h (rtld_global): Add
8324         _dl_initial_dtv_malloced.
8326         * configure.in: Test for __builtin_memset more realistically.
8328         * csu/version.c (banner): If TLS support is available say so.
8330 2002-02-04  H.J. Lu  <hjl@gnu.org>
8332         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
8333         __attribute_used__.
8334         (__dl_runtime_resolve): Likewise.
8336         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
8337         declaration.
8339 2001-11-15  H.J. Lu  <hjl@gnu.org>
8341         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
8342         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
8344         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
8346 2002-02-07  H.J. Lu  <hjl@gnu.org>
8348         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
8349         ".set noreorder".
8350         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
8351         Likewise.
8353 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
8355         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
8357         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
8358         ___tls_get_addr_internal.
8359         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
8361         * po/ko.po: Update from translation team.
8363 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
8365         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
8366         attribute, change __pad{1,2} type to unsigned int.
8367         (struct stat64): Remove packed attribute.
8369 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
8371         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
8373 2002-02-07  Andreas Schwab  <schwab@suse.de>
8375         * configure.in: Fix check for -zcombreloc.
8377 2002-02-06  H.J. Lu  <hjl@gnu.org>
8379         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
8380         * configure.in: Check if __builtin_memset really works.
8381         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
8382         __GNUC_PREREQ (2, 96) before using __builtin_memset.
8384 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
8386         * io/bug-ftw3.c (main): Don't try the test if root.
8388 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8390         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
8391         constraints.
8392         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
8393         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
8394         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
8395         Likewise.
8396         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
8397         a weak alias for __clone.
8398         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
8399         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
8400         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
8401         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
8402         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
8403         a weak alias for __mmap64.
8405 2002-02-05  H.J. Lu  <hjl@gnu.org>
8407         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
8408         (atomic_add): Likewise.
8409         (compare_and_swap): Likewise.
8410         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
8412 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
8414         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
8416         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
8417         alignment of the TCB and store total size and alignment of static
8418         TLS block in _dl_tls_static_size and _dl_tls_static_align.
8419         tls_index is a typedef.
8420         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
8421         _dl_tls_static_align.
8422         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
8423         * elf/dl-support.c: Define _dl_tls_static_size and
8424         _dl_tls_static_align.
8426 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
8428         * configure.in: Add --without-tls option.
8429         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
8430         --without-tls is given.
8432         * sysdeps/generic/dl-tls.c: Include <tls.h>.
8434         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
8436 2002-02-06  Roland McGrath  <roland@frob.com>
8438         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
8439         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
8441         * scripts/versions.awk: Improve error message for missing version.
8442         Each version inherits from the last one only if they have the same
8443         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
8444         but not GLIBC_x and FOO_y.
8446         * scripts/firstversions.awk: Handle libraries that don't have each
8447         particular version named in the third column of shlib-versions.
8449         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
8451 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
8453         * Versions.def [ld]: Add GLIBC_2.3.
8454         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
8455         * elf/Makefile (dl-routines): Add dl-tls.
8456         (distribute): Add dl-tls.h.
8457         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
8458         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
8459         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
8460         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
8461         along with the other info in the link map.  Change queueing of init
8462         images for double linked list.  Use _dl_next_tls_modid to compute
8463         l_tls_modid.
8464         * elf/rtld.c (_dl_start_final): Store alignment requirement
8465         along with the other info in rtld map and executable map.
8466         (dl_main): Add ld.so to the init image list if necessary.  Compute
8467         final module ID with _dl_next_tls_modid.
8468         * include/link.h (struct link_map): Add l_tls_previmage and
8469         l_tls_align.
8470         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
8471         * sysdeps/i386/elf/Versions: New file.
8472         * sysdeps/generic/dl-tls.c: New file.
8473         * sysdeps/generic/dl-tls.h: New file.
8474         * sysdeps/i386/dl-tls.h: New file.
8476 2002-02-06  Roland McGrath  <roland@frob.com>
8478         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
8479         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
8481 2002-01-05  Roland McGrath  <roland@frob.com>
8483         * sysdeps/mach/configure.in: New file.
8484         * sysdeps/mach/configure: New generated file.
8486         * mach/Makefile (user-interfaces): Remove default_pager_helper.
8487         It has never been used by anything.
8489 2002-02-06  H.J. Lu  <hjl@gnu.org>
8491         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
8492         is included.
8494 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
8496         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
8497         attribute((packed)) to counter stupid people misusing gcc options.
8498         (struct stat64): Likewise.
8500 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
8502         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
8503         the variables which are used as booleans.
8505 2002-02-06  Andreas Jaeger  <aj@suse.de>
8507         * include/libc-symbols.h (INTUSE): Renamed from INT.
8508         * elf/dl-deps.c: Change users.
8509         * sysdeps/generic/dl-sysdep.c: Likewise.
8510         * sysdeps/generic/dl-cache.c: Likewise.
8511         * elf/dl-reloc.c: Likewise.
8512         * elf/rtld.c: Likewise.
8513         * elf/dl-version.c: Likewise.
8514         * elf/dl-load.c: Likewise.
8515         * elf/dl-dst.h: Likewise.
8516         * elf/dl-init.c: Likewise.
8517         * elf/dl-error.c: Likewise.
8518         * elf/dl-fini.c: Likewise.
8519         * elf/dl-runtime.c: Likewise.
8520         * elf/do-lookup.h: Likewise.
8522         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
8523         definition.
8524         * stdio-common/_itowa.h: Likewise.
8526 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
8528         * elf/dl-minimal.c: Define _itoa_lower_digits.
8530         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
8531         DT_FLAGS set.
8533         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
8534         loading modules with the DF_STATIC_TLS flag set.
8535         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
8536         element.
8537         * include/link.h (struct link_map): Add l_flags field.
8538         * elf/elf.h (DF_STATIC_TLS): New definition.
8540         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
8541         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
8543         * elf/rtld.c (process_dl_debug): Correct printing help message.
8544         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
8545         for %s.
8547         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
8548         definition and pass &errno in use of this variable.
8549         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
8551 2002-02-04  Andreas Schwab  <schwab@suse.de>
8553         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
8554         * locale/programs/charmap-dir.c: Wrap calls that output messages
8555         with WITH_CUR_LOCALE.  Include "localedef.h" first.
8556         * locale/programs/charmap.c: Likewise.
8557         * locale/programs/ld-address.c: Likewise.
8558         * locale/programs/ld-collate.c: Likewise.
8559         * locale/programs/ld-ctype.c: Likewise.
8560         * locale/programs/ld-identification.c: Likewise.
8561         * locale/programs/ld-measurement.c: Likewise.
8562         * locale/programs/ld-messages.c: Likewise.
8563         * locale/programs/ld-monetary.c: Likewise.
8564         * locale/programs/ld-name.c: Likewise.
8565         * locale/programs/ld-numeric.c: Likewise.
8566         * locale/programs/ld-paper.c: Likewise.
8567         * locale/programs/ld-telephone.c: Likewise.
8568         * locale/programs/ld-time.c: Likewise.
8569         * locale/programs/linereader.c: Likewise.
8570         * locale/programs/linereader.h: Likewise.
8571         * locale/programs/localedef.c: Likewise.
8572         * locale/programs/locfile.c: Likewise.
8573         * locale/programs/repertoire.c: Likewise.
8575 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
8577         * elf/rtld.c (_dl_start_final): Determine load address to locate
8578         ehdr with GL(dl_rtld_map).l_map_start.
8580         * po/ca.po: Update from translation team.
8582         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
8583         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
8584         header entry.
8585         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
8586         _dl_tls_module_cnt.
8587         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
8589 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
8591         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
8592         * include/link.h (struct link_map): Add various members for TLS
8593         information.
8594         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
8595         _rtld_tlsoffset, add _dl_initimage_list.
8596         * sysdeps/i386/dl-lookupcfg.h: New file.
8597         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
8598         TLS relocation.  When using TLS we now use RESOLVE_MAP.
8599         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
8600         is used.
8602         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
8603         unused.
8605         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
8606         thread-pointer as soon as possible.
8607         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
8608         elements in rtld_global.
8609         * sysdeps/generic/tls.h: New file.
8610         * elf/Makefile (distribute): Add tls.h.
8611         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
8612         relocations.  Not complete yet.
8614         * resolv/resolv.h: Allow user to define __need_res_state and only
8615         define __res_start structure then.
8616         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
8618         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
8619         dl_cpuclock_offset initialization to _dl_start_final.
8620         (_dl_show_auxv): Avoid unnecessary sign extension.
8621         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
8623 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
8625         * config.h.in: Add HAVE_TLS_SUPPORT.
8626         * sysdeps/i386/elf/configure.in: New file.
8628 2002-02-03  Andreas Schwab  <schwab@suse.de>
8630         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
8631         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
8633 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
8635         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
8636         alloca if the memory reqirements are too high.
8638 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
8640         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
8641         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
8642         the former is available anyway and speed isn't important here.
8643         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
8644         * elf/dl-version.c (match_symbol): Likewise.
8645         (_dl_check_map_versions): Likewise.
8646         * elf/rtld.c (process_envvars): Likewise.
8647         (print_statistics): Likewise.
8648         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
8649         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
8650         bases.  Add assert to catch uses of unimplemented features.
8651         (__strsep): Add assert to catch uses of unimplemented features.
8652         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
8653         and avoid inline optimization.
8654         * elf/rtld.c (process_envvars): Likewise.
8655         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
8656         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
8657         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
8659 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
8661         * stdio-common/_itoa.h: Minor simplifications of the code.
8662         * stdio-common/_itoa.c: Likewise.
8664         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
8665         instead of _dl_printf for debugging info output.
8667         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
8668         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
8670 2002-02-01  H.J. Lu  <hjl@gnu.org>
8672         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
8673         (atomic_add): Likewise.
8674         (compare_and_swap): Return 0 only when failed to compare. Use
8675         branch likely.
8677         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
8678         branch likely.
8680 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
8682         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
8684 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
8686         * elf/dl-minimal.c (__strsep): New minimal implementation.
8688 2002-02-02  Paul Eggert  <eggert@twinsun.com>
8690         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
8691         (__mktime_internal): If no tm_isdst is requested, prefer solutions
8692         with tm_isdst > 0 when the requested time falls within a
8693         spring-forward gap [PR libc/2894].
8695 2002-02-03  Andreas Schwab  <schwab@suse.de>
8697         * stdio-common/tst-rndseek.c: Increase timeout.
8699 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
8701         Change ld.so to not use functions which are exported.  One cannot
8702         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
8703         definitions.
8704         * include/libc-symbols.h: Define INT and INTDEF.
8705         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
8706         _dl_signal_error_internal, _dl_map_object_internal,
8707         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
8708         _dl_lookup_versioned_symbol_internal,
8709         _dl_relocate_object_internal, _dl_debug_state_internal,
8710         _dl_start_profile_internal, and _dl_unload_cache_internal.
8711         * include/dlfcn.h: Declare _dl_catch_error_internal.
8712         * elf/rtld.c: Use INT for calls to any of the *_internal functions
8713         above.  Add INTDEF to function definitions.
8714         * elf/dl-debug.c: Likewise.
8715         * elf/dl-deps.c: Likewise.
8716         * elf/dl-dst.h: Likewise.
8717         * elf/dl-error.c: Likewise.
8718         * elf/dl-fini.c: Likewise.
8719         * elf/dl-init.c: Likewise.
8720         * elf/dl-load.c: Likewise.
8721         * elf/dl-lookup.c: Likewise.
8722         * elf/dl-misc.c: Likewise.
8723         * elf/dl-open.c: Likewise.
8724         * elf/dl-profile.c: Likewise.
8725         * elf/dl-reloc.c: Likewise.
8726         * elf/dl-runtime.c: Likewise.
8727         * elf/dl-version.c: Likewise.
8728         * elf/do-lookup.h: Likewise.
8729         * sysdeps/generic/dl-cache.c: Likewise.
8730         * sysdeps/generic/dl-sysdep.c: Likewise.
8731         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
8732         instead of _dl_init.
8733         * sysdeps/arm/dl-machine.h: Likewise.
8734         * sysdeps/cris/dl-machine.h: Likewise.
8735         * sysdeps/hppa/dl-machine.h: Likewise.
8736         * sysdeps/i386/dl-machine.h: Likewise.
8737         * sysdeps/ia64/dl-machine.h: Likewise.
8738         * sysdeps/m68k/dl-machine.h: Likewise.
8739         * sysdeps/mips/dl-machine.h: Likewise.
8740         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8741         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8742         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8743         * sysdeps/sh/dl-machine.h: Likewise.
8744         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8745         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8746         * sysdeps/x86_64/dl-machine.h: Likewise.
8747         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
8749         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
8750         and _dl_debug_initialize.
8752         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
8753         more information.
8754         * elf/rtld.c (dl_main): Avoid strrchr.
8755         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
8756         result of readlink.  Search from the back for '/'.
8758         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
8759         strncpy if possible.
8761         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
8762         strncmp.
8763         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
8764         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
8765         strspn, and strcspn.
8766         (process_envvars): Don't use strcspn.
8768         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
8769         (_dl_dst_substitute): Likewise.
8771 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
8773         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
8774         code which is never used when relocating ld.so itself.
8776         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
8777         starting ld.so itself.  Move l_addr variable initialization closer
8778         to use.
8779         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
8781 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
8783         * Versions.def (libc): Add GLIBC_PRIVATE.
8784         (libdb, libnss_db, libdb1): Remove.
8785         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
8786         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
8787         (libpthread): Add GLIBC_PRIVATE.
8788         (libresolv): Likewise, remove GLIBC_2.1.
8789         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
8790         GLIBC_2.2.3, GLIBC_2.3.
8791         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
8792         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
8793         _dl_sym, _dl_vsym): Likewise.
8794         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
8795         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
8796         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
8797         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
8798         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
8799         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
8800         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
8801         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
8802         Likewise.
8803         (_dl_object_relocation_scope): Remove.
8804         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
8805         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
8806         __gconv_cache): Move to GLIBC_PRIVATE.
8807         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
8808         __internal_setnetgrent): Likewise.
8809         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
8810         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
8811         * locale/Versions (__collate_element_hash, __collate_element_strings,
8812         __collate_symbol_classes, __collate_symbol_hash,
8813         __collate_symbol_strings, _nl_current_LC_COLLATE,
8814         _nl_current_LC_CTYPE): Likewise.
8815         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
8816         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
8817         (libnss_nis, libnss_nisplus): Likewise.
8818         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
8819         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
8820         (libnss_files): Move all symbols to GLIBC_PRIVATE.
8821         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
8822         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
8823         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
8824         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
8825         __ns_get16, __ns_samename): Likewise.
8826         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
8827         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
8828         GLIBC_PRIVATE.
8829         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
8830         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
8831         __libc_connect): Likewise.
8832         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
8833         Likewise.
8834         * stdlib/Versions (__libc_system): Likewise.
8835         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
8836         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
8837         * sysdeps/ia64/fpu/Versions: Likewise.
8838         * sysdeps/ia64/Versions: Likewise.
8839         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
8840         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
8841         to GLIBC_PRIVATE.
8842         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
8843         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
8844         __libc_sigaction): Likewise.
8845         * termios/Versions (__libc_tcdrain): Likewise.
8847         * misc/sys/cdefs (__attribute_noinline__): Define.
8848         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
8849         __attribute_noinline__.
8851         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
8852         * elf/dl-xstat64.c: New file.
8853         * elf/dl-fxstat64.c: New file.
8854         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
8855         don't export __fxstat64 at multiple versions.
8856         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
8857         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
8859 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
8861         * locale/program/ld-collate.c (collate_finish): Assign a wide
8862         char collation sequence value to multi character collating
8863         elements, and avoid over writing by non-character elements.
8865 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
8867         * elf/Makefile (distribute): Add dl-procinfo.c.
8868         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
8869         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
8871 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
8873         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
8874         definition.
8875         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
8876         _rtld_global struct.
8877         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
8878         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
8879         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8880         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
8881         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
8882         _dl_fpu_control_set): Remove unused externs.
8883         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
8884         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
8885         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
8886         related variables in _rtld_global struct.
8887         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
8888         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
8889         unused extern.
8891 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
8893         * sysdeps/generic/dl-procinfo.c: New file.
8895 2002-02-01  Andreas Schwab  <schwab@suse.de>
8897         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
8899 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
8901         * elf/rtld.c (_dl_start): Mark as internal_function.
8902         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
8903         in register.
8904         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
8905         General pretty printing.
8907 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
8909         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
8910         * elf/dl-reloc.c: Pretty printing.
8911         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
8912         procinfo-related variables in rtld_global struct.
8913         * elf/dl-support.c: Likewise.
8914         * elf/rtld.c: Likewise.
8915         * sysdeps/i386/i686/Makefile: Likewise.
8916         * sysdeps/i386/i686/hp-timing.c: Likewise.
8917         * sysdeps/i386/i686/hp-timing.h: Likewise.
8918         * sysdeps/ia64/Makefile: Likewise.
8919         * sysdeps/ia64/hp-timing.c: Likewise.
8920         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
8921         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
8922         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
8923         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
8924         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8925         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
8926         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
8927         * sysdeps/x86_64/Makefile: Likewise.
8929         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
8930         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
8931         _dl_debug_fd to rtld_global.
8932         * elf/Versions: Likewise.
8933         * elf/dl-close.c: Likewise.
8934         * elf/dl-iteratephdr.c: Likewise.
8935         * elf/dl-lookup.c: Likewise.
8936         * elf/dl-misc.c: Likewise.
8937         * elf/dl-open.c: Likewise.
8938         * elf/dl-support.c: Likewise.
8939         * elf/do-lookup.h: Likewise.
8940         * elf/rtld.c: Likewise.
8941         * sysdeps/generic/dl-cache.c: Likewise.
8942         * sysdeps/generic/dl-sysdep.c: Likewise.
8943         * sysdeps/ia64/Versions: Likewise.
8944         * sysdeps/unix/clock_gettime.c: Likewise.
8945         * sysdeps/unix/clock_settime.c: Likewise.
8946         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8947         * sysdeps/sparc/Versions: Removed.
8948         * sysdeps/i386/i686/Versions : Removed.
8949         * sysdeps/x86_64/Versions: Removed.
8950         * configure.in: Define HAVE_PROTECTED if .protected is available.
8951         * config.h.in: Add entry for HAVE_PROTECTED.
8953 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
8955         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
8956         code in struct _rtld_global.  Export this struct, remove all
8957         exports for the signal variables.
8958         * sysdeps/arm/dl-machine: Likewise.
8959         * sysdeps/generic/dl-origin: Likewise.
8960         * sysdeps/generic/dl-sysdep: Likewise.
8961         * sysdeps/generic/dl-cache: Likewise.
8962         * sysdeps/hppa/dl-fptr: Likewise.
8963         * sysdeps/hppa/dl-machine: Likewise.
8964         * sysdeps/cris/dl-machine: Likewise.
8965         * sysdeps/i386/dl-machine: Likewise.
8966         * sysdeps/ia64/dl-machine: Likewise.
8967         * sysdeps/m68k/dl-machine: Likewise.
8968         * sysdeps/mach/hurd/dl-sysdep: Likewise.
8969         * sysdeps/mips/mips64/dl-machine: Likewise.
8970         * sysdeps/mips/dl-machine: Likewise.
8971         * sysdeps/powerpc/elf/libc-start: Likewise.
8972         * sysdeps/powerpc/dl-machine: Likewise.
8973         * sysdeps/powerpc/dl-start: Likewise.
8974         * sysdeps/sparc/sparc32/dl-machine: Likewise.
8975         * sysdeps/sparc/sparc64/dl-machine: Likewise.
8976         * sysdeps/sh/dl-machine: Likewise.
8977         * sysdeps/s390/s390-32/dl-machine: Likewise.
8978         * sysdeps/s390/s390-64/dl-machine: Likewise.
8979         * sysdeps/unix/sysv/aix/libc-start: Likewise.
8980         * sysdeps/unix/sysv/aix/start-libc: Likewise.
8981         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
8982         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
8983         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
8984         * sysdeps/x86_64/dl-machine: Likewise.
8986 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
8988         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
8989         are too high.
8991 2002-01-31  Andreas Schwab  <schwab@suse.de>
8993         * sysdeps/posix/readv.c: Check for ssize_t overflow.
8995 2002-01-31  Andreas Schwab  <schwab@suse.de>
8997         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
8998         reference to _dl_pagesize.
9000 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
9002         * Versions.def [ld]: Add GLIBC_2.3.
9003         * elf/dl-addr.c: Move global variables for SHARED code in struct
9004         _rtld_global.  Export this struct, remove all exports for the
9005         signal variables.
9006         * elf/dl-close.c: Likewise.
9007         * elf/dl-conflict.c: Likewise.
9008         * elf/dl-debug.c: Likewise.
9009         * elf/dl-deps.c: Likewise.
9010         * elf/dl-dst.h: Likewise.
9011         * elf/dl-error.c: Likewise.
9012         * elf/dl-fini.c: Likewise.
9013         * elf/dl-init.c: Likewise.
9014         * elf/dl-iteratephdr.c: Likewise.
9015         * elf/dl-libc.c: Likewise.
9016         * elf/dl-load.c: Likewise.
9017         * elf/dl-lookup.c: Likewise.
9018         * elf/dl-minimal.c: Likewise.
9019         * elf/dl-object.c: Likewise.
9020         * elf/dl-open.c: Likewise.
9021         * elf/dl-profile.c: Likewise.
9022         * elf/dl-profstub.c: Likewise.
9023         * elf/dl-reloc.c: Likewise.
9024         * elf/dl-runtime.c: Likewise.
9025         * elf/dl-support.c: Likewise.
9026         * elf/dl-sym.c: Likewise.
9027         * elf/dl-version.c: Likewise.
9028         * elf/do-lookup.h: Likewise.
9029         * elf/do-rel.h: Likewise.
9030         * elf/dynamic-link.h: Likewise.
9031         * elf/rtld.c: Likewise.
9032         * sysdeps/generic/dl-cache.c: Likewise.
9033         * sysdeps/generic/dl-sysdep.c: Likewise.
9034         * sysdeps/generic/ldsodefs.h: Likewise.
9035         * sysdeps/generic/libc-start.c: Likewise.
9036         * sysdeps/i386/dl-machine.h: Likewise.
9037         * sysdeps/ia64/dl-fptr.c: Likewise.
9038         * sysdeps/ia64/dl-machine.h: Likewise.
9039         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
9040         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9041         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
9042         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
9043         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
9044         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9045         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
9046         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
9048 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9050         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
9051         to avoid warning
9052         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
9054         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
9055         SHARED version.
9056         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
9058         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
9060 2002-01-29  Ben Collins  <bcollins@debian.org>
9062         * string/bits/string2.h (__mempcpy): Protect size arg for
9063         addition when using __builtin_memcpy.
9065 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9067         * stdlib/Makefile (tests): Add tst-qsort.
9068         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
9070         * manual/signal.texi (Process Signal Mask): Document that
9071         pthread_sigmask, not sigprocmask, must be used in MT programs.
9072         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
9074         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
9075         found.
9076         * misc/Makefile (tests): Add tst-hsearch.
9077         * misc/tst-hsearch.c: New file.
9079 2002-01-18  Wolfram Gloger  <wg@malloc.de>
9081         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
9082         * malloc/malloc.h: Likewise.
9083         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
9084         * malloc/arena.c: New file.
9085         * malloc/hooks.c: New file.
9086         * malloc/tst-mallocstate.c: New file.
9087         * malloc/Makefile: Add new testcase tst-mallocstate.
9088         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
9090 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9092         * stdlib/msort.c: Remove last patch.  The optimization violates the
9093         same rule which qsort.c had problems with.
9095 2002-01-27  Paul Eggert  <eggert@twinsun.com>
9097         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
9098         to a pivot element that lies outside the array to be sorted, as
9099         ISO C99 requires that the comparison function be called only with
9100         addresses of array elements [PR libc/2880].
9102 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9104         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
9105         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
9107         * timezone/asia: Update from tzdata2002b.
9108         * timezone/australasia: Likewise.
9109         * timezone/backward: Likewise.
9110         * timezone/europe: Likewise.
9111         * timezone/leapseconds: Likewise.
9112         * timezone/iso3166.tab: Likewise.
9113         * timezone/zone.tab: Likewise.
9115 2002-01-23  Richard Henderson  <rth@redhat.com>
9117         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
9119 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9121         * string/strxfrm.c: Allocate one more byte for rulearr and clear
9122         this element [PR libc/2855].
9124         * string/strcoll.c: Handle zero-length arguments specially
9125         [PR libc/2856].
9127 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
9129         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
9130         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
9131         short lengths and constant src.
9132         (strcpy): Don't optimize for gcc 3.0+.
9133         (__stpcpy): For gcc 3.0+, don't use
9134         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
9135         for short string literal src.
9137 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9139         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
9140         Set for arm, too.
9142 2001-01-22  Paul Eggert  <eggert@twinsun.com>
9144         * manual/llio.texi (Linked Channels, Cleaning Streams):
9145         Make it clearer that a just-opened input stream might need cleaning.
9147 2002-01-21  H.J. Lu  <hjl@gnu.org>
9149         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9150         Don't use label at end of compound statement.
9152 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
9154         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
9155         Remove test for negative integer arg; sin_pi does it correctly.
9157 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
9159         * nscd/Makefile (distribute): Filter out xmalloc.c.
9161 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
9163         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
9164         Set offset if read end wasn't the buffer end.
9165         (_IO_file_seekoff_mmap): New function.
9166         (_IO_file_xsgetn_mmap): New function.
9167         (_IO_file_jumps_mmap): Use the two new functions.
9168         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
9169         != end buffer.
9170         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
9171         _IO_file_underflow_mmap.
9172         * libio/iofopen.c: Don't position file descriptor at end of file.
9173         * libio/tst-widetext.c: Improve error messages.
9174         * stdio-common/tst-rndseek.c: Likewise.
9176 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
9178         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
9179         end of enum for !_GNU_SOURCE.
9180         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
9181         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
9182         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
9183         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
9184         values unless _GNU_SOURCE.
9186         * iconvdata/tcvn5712-1.c: Minor cleanups.
9188 2002-01-18  Andreas Schwab  <schwab@suse.de>
9190         * sysdeps/unix/sysv/linux/configure.in
9191         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
9193 2002-01-16  Roger Sayle  <roger@eyesopen.com>
9195         * stdlib/msort.c (msort_with_tmp): Replace implementation with
9196         more efficient "Towers of Hanoi" mergesort.
9197         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
9198         for generic, sizeof(int) and sizeof(long) variants respectively.
9200 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
9202         * manual/syslog.texi (openlog): Describe possible problems with
9203         first parameter.
9204         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
9206         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
9207         * nscd/connections.c (begin_drop_privileges): New function.
9208         (finish_drop_privileges): New function.
9209         (nscd_init): Call the new functions which also install all groups
9210         for the server user.
9211         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
9212         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
9214 2002-01-17  H.J. Lu  <hjl@gnu.org>
9216         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
9217         `const' from `got'.
9219 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9221         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
9222         instructions for pointer operations.
9223         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
9225 2002-01-17  Andreas Jaeger  <aj@suse.de>
9227         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
9228         __uint128_t build-in.
9230         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
9231         PowerPC, sync with 2.2 branch.
9233 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
9235         * posix/getconf.c: Update copyright year.
9236         * nss/getent.c: Likewise.
9237         * nscd/nscd_nischeck.c: Likewise.
9238         * iconv/iconvconfig.c: Likewise.
9239         * iconv/iconv_prog.c: Likewise.
9240         * elf/ldconfig.c: Likewise.
9241         * catgets/gencat.c: Likewise.
9242         * csu/version.c: Likewise.
9243         * elf/ldd.bash.in: Likewise.
9244         * elf/sprof.c (print_version): Likewise.
9245         * locale/programs/locale.c: Likewise.
9246         * locale/programs/localedef.c: Likewise.
9247         * nscd/nscd.c (print_version): Likewise.
9248         * debug/xtrace.sh: Likewise.
9249         * malloc/memusage.sh: Likewise.
9250         * malloc/mtrace.pl: Likewise.
9252 2002-01-16  Andreas Schwab  <schwab@suse.de>
9254         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
9255         reliably remove "-ia64" from rtld name.
9257 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
9259         * iconvdata/gb18030.c: Bug fixes and support for more characters.
9260         Patch by Yu Shao <yshao@redhat.com>.
9262 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9264         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
9265         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
9266         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
9268 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9270         * sysdeps/s390/fpu/libm-test-ulps: Update.
9272 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
9274         * elf/elf.h: Update x86 relocations.
9276 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
9278         * locale/programs/charmap.c (new_width): Check whether byte
9279         sequences for both ends of range have the same length.
9281 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
9283         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
9285 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
9287         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
9288         string literals.
9289         (__full_ieee754_sqrt): Add __attribute_used__.
9291 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
9293         * sysdeps/generic/group_member.c (__group_member): Also check
9294         groups[0] [PR libc/2781].
9296 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
9298         * Makefile (distribute): Add scripts/cpp.
9299         * elf/Makefile (distribute): Add reldep6mod[01234].c,
9300         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
9301         unwind-dw2-fde.h, and dwarf2.h.
9302         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
9303         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
9304         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
9305         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
9307 2002-01-07  Roland McGrath  <roland@frob.com>
9309         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
9310         volatile on type of ARGC so the compiler doesn't get clever.
9312 2002-01-07  Andreas Jaeger  <aj@suse.de>
9314         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
9315         * sysdeps/i386/bits/byteswap.h: Likewise.
9316         * sysdeps/ia64/bits/byteswap.h: Likewise.
9317         * sysdeps/m68k/bits/byteswap.h: Likewise.
9318         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
9319         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
9321 2002-01-02  Bruno Haible  <bruno@clisp.org>
9323         * intl/plural.y: Fix %expect count.
9325 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
9327         * elf/Makefile (routines, shared-only-routines): Add
9328         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
9329         * elf/elf.h (PT_GNU_EH_FRAME): Define.
9330         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
9331         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
9332         Optimize if .eh_frame section contains no FDEs.
9333         (__register_frame, __deregister_frame_info_bases,
9334         __deregister_frame): Likewise.
9335         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
9336         DW_CFA_restore handling.
9338 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
9340         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
9342         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
9343         for x < 0.25 and restore original range reduction method.
9344         (__ieee754_lgammal_r): Make sure signgam is set before returning.
9346 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
9348         * libio/fileops.c (_IO_file_underflow_mmap): New function.
9349         (_IO_file_close_mmap): New function.
9350         (_IO_file_jumps_mmap): New variable.
9351         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
9352         trying to convert rest of byte buffer.
9353         (_IO_wfile_underflow_mmap): New function.
9354         (_IO_wfile_jumps_mmap): New variable.
9355         * libio/iofopen.c (__fopen_maybe_mmap): New function.
9356         (__fopen_internal): New function.  Split out from _IO_new_fopen.
9357         (_IO_new_fopen): Call __fopen_internal.
9358         * libio/iofopen64.c: Just call __fopen_internal.
9359         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
9360         successfully.
9361         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
9362         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
9363         _IO_file_close_mmap.
9365         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
9366         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
9368         * stdio-common/Makefile (tests): Add tst-rndseek.
9369         * stdio-common/tst-rndseek.c: New file.
9371 2002-01-05  Roland McGrath  <roland@frob.com>
9373         * config.h.in (HAVE_MIG_RETCODE): New #undef.
9374         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
9375         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
9376         * sysdeps/mach/hurd/configure: Regenerated.
9378 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
9380         * elf/elf.h: Add more TLS definitions.
9382 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
9384         * include/features.h (__GLIBC_MINOR__): Bump to 3.
9386 2002-01-02  Roland McGrath  <roland@frob.com>
9388         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
9389         __sigisemptyset.  Don't use MASK uninitialized.
9391         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
9392         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
9393         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
9394         __sigdelset, __sigaddset, __sigorset.
9396         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
9397         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
9399         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
9400         _hurd_ports is null.
9402         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
9403         for old CMU and new OSF Mach interface flavors.
9404         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
9405         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
9407         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
9409         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
9410         Pass extra arguments to task_create for OSF variant.
9411         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
9413         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
9414         conditional on [HAVE_AUX_VECTOR].
9416         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
9417         mach_msg_timeout_t as type of final argument.
9419         * hurd/privports.c (__get_privileged_ports):
9420         Change host_priv_t to mach_port_t in argument type.
9421         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
9422         Update decls.
9424         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
9425         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
9426         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
9427         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
9428         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
9429         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
9431 2002-01-01  Roland McGrath  <roland@frob.com>
9433         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
9435 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
9437         * include/stdlib.h: Define inlines for the _l variants of the strto*
9438         functions.
9440 2002-01-01  Roland McGrath  <roland@frob.com>
9442         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
9444         * mach/Machrules (MIG): Set CPP as well as CC.
9446 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
9448         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
9449         locale to parse /proc/loadavg [PR libc/2760].
9451 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
9453         * elf/dl-conflict.c: Include sys/param.h.
9454         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
9455         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
9456         warning.
9457         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
9458         literals to avoid warnings.
9460 2001-12-31  Andreas Jaeger  <aj@suse.de>
9462         * configure.in: Don't check for gsed since we do not use it anywhere.
9464 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
9466         * io/fts.c: Update from BSD to fix memory leaks.
9468 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
9470         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
9471         * elf/chroot_canon.c: Likewise.
9472         * elf/dl-object.c: Likewise.
9473         * iconv/iconv_charmap.c: Likewise.
9474         * iconv/iconv_prog.c: Likewise.
9475         * libio/iogetdelim.c: Likewise.
9476         * locale/lc-time.c: Likewise.
9477         * stdlib/canonicalize.c: Likewise.
9478         * sunrpc/svc.c: Likewise.
9479         * sysdeps/generic/glob.c: Likewise.
9481 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9483         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
9484         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
9485         remove high order bit from the program counter.
9486         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
9488 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9490         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
9491         unnecessary code and add missing reloc types.
9492         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
9493         case for reloc type R_390_NONE.
9495 2001-12-28  Andreas Jaeger  <aj@suse.de>
9497         * io/bug-ftw3.c: Include string.h for prototypes.
9499         * crypt/md5test.c (main): Remove unused variable.
9501         * dlfcn/modstatic.c: Add prototype to avoid warning.
9503 2001-12-26  Roland McGrath  <roland@frob.com>
9505         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
9506         check only (SS->pending & MASK) for the signal to return.
9507         From Jeroen Dekkers <jeroen@dekkers.cx>.
9509 2001-12-22  Roland McGrath  <roland@frob.com>
9511         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
9512         Use preprocessor #if conditionals instead of `if' to avoid
9513         warnings about divide by zero in dead code.
9515         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
9516         _hurd_port_init, and __hurd_self_sigstate.
9518         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
9520 2001-12-21  Andreas Jaeger  <aj@suse.de>
9522         * elf/dblloadmod1.c: Add prototype to avoid warning.
9523         * elf/dblloadmod2.c: Likewise.
9524         * elf/dblloadmod3.c: Likewise.
9525         * elf/reldepmod5.c: Likewise.
9526         * elf/reldepmod6.c: Likewise.
9528         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
9529         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
9530         used on all architectures.
9532         * sunrpc/svc_tcp.c: Add noreturn attribute for
9533         svctcp_rendezvous_abort.
9534         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
9536         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
9537         to avoid warning.
9539 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
9541         * manual/llio.texi (aio_fsync): Fix a typo.
9542         Patch by Tammy Fox <tfox@redhat.com>.
9544 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
9546         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
9547         stack bias from child stack pointer before passing it to clone syscall.
9549 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
9551         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
9552         _SC_TZNAME_MAX.
9553         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
9554         Reported by Thorsten Kukuk <kukuk@suse.de>.
9556         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
9557         add some casts.
9559         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
9561 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
9563         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
9564         conforming: return EBADF if file descriptor is invalid and EINVAL
9565         if file descriptor is no valid tty.
9566         * login/tst-grantpt.c: New file.
9567         * login/Makefile (tests): Add tst-grantpt.
9569 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
9571         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
9572         different than implemented in last patch.
9573         * io/bug-ftw3.c: Adjust test for changed handling of
9574         inaccessibility of toplevel dir.
9576 2001-12-16  Roland McGrath  <roland@frob.com>
9578         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
9579         * grp/initgroups.c (internal_getgrouplist): Likewise.
9581         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
9582         `default:' to silence new GCC warning.
9583         Rewrite cast of lvalue to silence new GCC warning.
9585         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
9587         * sysdeps/mach/hurd/spawni.c: New file, by me with a
9588         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
9590 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
9592         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
9593         Patch by Stephen R. van den Berg.
9595         * crypt/md5.h: Define md5_uintptr.
9597 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
9599         * libio/tst_swprintf.c (main): Add test for string argument with
9600         zero precision.
9601         * stdio-common/Makefile (tests): Add tst-sprintf.
9602         * stdio-common/tst-sprintf.c: New file.
9604 2001-12-13  Andreas Schwab  <schwab@suse.de>
9606         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
9607         zero precision with wide character string format.
9609 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
9611         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
9612         but have a user supplied buffer, return the empty buffer, not NULL.
9614 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
9616         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
9617         Patch by Eric Sharkey <sharkey@netrics.com>.
9619         * crypt/md5test.c (main): Add test for multiple calls to
9620         __md5_process_bytes to itererate over input string.
9622 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
9624         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
9625         from __nis_findfastest.  Take timeout value from parameter.
9626         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
9627         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
9628         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
9630 2001-12-12  Andreas Jaeger  <aj@suse.de>
9632         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
9633         combreloc test so that it works in this case.
9635         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
9637 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
9639         * sysdeps/sh/Makefile: New file.
9640         * sysdeps/sh/_mcount.S: New file.
9641         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
9642         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
9644 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
9646         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
9647         limitation [PR libc/2564].
9649 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
9651         * elf/Makefile (dl-routines): Add conflict.
9652         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
9653         (ld.so): Add _begin local symbol.
9654         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
9655         Define.
9656         * elf/dl-deps.c (_dl_build_local_scope): New function.
9657         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
9658         of all libraries.
9659         * elf/do-rel.h (VALIDX): Define.
9660         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
9661         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
9662         can be skipped.
9663         * elf/dl-conflict.c: New file.
9664         * elf/dl-lookup.c (_dl_debug_bindings): New function.
9665         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
9666         non-NULL.
9667         (_dl_lookup_symbol_skip): Likewise.
9668         (_dl_lookup_versioned_symbol): Likewise.
9669         (_dl_lookup_versioned_symbol_skip): Likewise.
9670         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
9671         define to ElfW(Rel).
9672         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
9673         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
9674         ranges.
9675         Don't adjust address dynamic tags if l_addr is 0.
9676         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
9677         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
9678         (VALIDX, ADDRIDX): Define.
9679         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
9680         (dl_main): Print library list for LD_TRACE_PRELINKING.
9681         If prelinking information can be used, skip relocating libraries and
9682         call _dl_resolve_conflicts instead.
9683         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
9684         * elf/dl-load.c (_dl_map_object): Don't create fake libs
9685         if LD_TRACE_PRELINKING.
9686         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
9687         + DT_ADDRNUM.
9688         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
9689         (DL_DEBUG_PRELINK): Define.
9690         (_dl_resolve_conflicts): Add prototype.
9692         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
9693         .plt for prelinked libraries where prelinking info cannot be used.
9694         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
9695         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
9696         * sysdeps/arm/bits/link.h: New file.
9697         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
9698         content of .got[1].
9699         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
9700         (ELF_MACHINE_PLT_REL): Define.
9701         (elf_machine_rela, elf_machine_rela_relative): New functions.
9702         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
9703         of adjusting it if prelinked and prelinking cannot be used.
9704         * sysdeps/i386/bits/link.h: New file.
9705         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
9706         content of .got[1].
9707         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
9708         (ELF_MACHINE_PLT_REL): Define.
9709         (elf_machine_rela, elf_machine_rela_relative): New functions.
9710         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
9711         of adjusting it if prelinked and prelinking cannot be used.
9712         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
9713         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
9714         to find out map for R_PPC_JMP_SLOT relocs.
9715         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
9716         (OPCODE_BA): Define.
9717         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
9718         libraries where prelinking info cannot be used.
9719         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
9720         (elf_machine_fixup_plt): Call sparc_fixup_plt.
9721         (elf_machine_rela): Set value to 0 if relocating conflicts.
9722         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
9723         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
9724         (sparc64_fixup_plt): Fix a typo.
9725         (elf_machine_rela): Set value to 0 if relocating conflicts.
9726         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
9727         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
9728         libraries where prelinking info cannot be used.
9729         * sysdeps/sh/bits/link.h: New file.
9730         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
9731         content of .got[1].
9732         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
9733         of adjusting it if prelinked and prelinking cannot be used.
9734         * sysdeps/s390/s390-32/bits/link.h: New file.
9735         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
9736         Save original content of .got[1].
9737         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
9738         of adjusting it if prelinked and prelinking cannot be used.
9739         * sysdeps/s390/s390-64/bits/link.h: New file.
9740         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
9741         Save original content of .got[1].
9742         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
9743         of adjusting it if prelinked and prelinking cannot be used.
9744         * sysdeps/x86_64/bits/link.h: New file.
9745         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
9746         Save original content of .got[1].
9747         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
9748         of adjusting it if prelinked and prelinking cannot be used.
9750 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
9752         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
9753         where appropriate instead of numbers.  Little optimizations.
9755 2001-12-10  Roland McGrath  <roland@frob.com>
9757         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
9758         set it.
9760         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
9761         set to GLIBC_2.2.5, not GLIBC_2.2.4.
9763         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
9764         Fix conditionals so this is set by default for stdio and not for libio.
9765         * sysdeps/mach/hurd/configure: Regenerated.
9767 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
9769         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
9771 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
9773         * io/Makefile (tests): Add bug-ftw3.
9774         * io/bug-ftw3.c: New file.
9776         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
9777         matches and GLOB_NOCHECK is set.
9778         * posix/globtest.sh: Correct expected result for NOCHECK test.
9780         * po/ca.po: Update from translation team.
9782 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
9784         Implement transliteration of characters in strings of the locale
9785         definitions.
9786         * locale/programs/linereader.c: Adjust for additional parameter to
9787         lr_token.
9788         (get_string): If character <Uxxxx> is not found try to transliterate
9789         it.
9790         * locale/programs/ld-ctype.c: Adjust for additional parameter to
9791         lr_token.  Add const to charmap parameter of all functions.
9792         (find_translit, find_translit2): New functions.
9793         * locale/programs/charmap.c: Adjust for additional parameter to
9794         lr_token.
9795         * locale/programs/repertoire.c: Likewise.
9796         * locale/programs/linereader.h: Likewise.
9797         * locale/programs/ld-address.c: Likewise.  Add const to charmap
9798         parameter of all functions.
9799         * locale/programs/ld-collate.c: Likewise.
9800         * locale/programs/ld-identification.c: Likewise.
9801         * locale/programs/ld-measurement.c: Likewise.
9802         * locale/programs/ld-messages.c: Likewise.
9803         * locale/programs/ld-monetary.c: Likewise.
9804         * locale/programs/ld-name.c: Likewise.
9805         * locale/programs/ld-numeric.c: Likewise.
9806         * locale/programs/ld-paper.c: Likewise.
9807         * locale/programs/ld-paper.c: Likewise.
9808         * locale/programs/ld-telephone.c: Likewise.
9809         * locale/programs/ld-time.c: Likewise.
9810         * locale/programs/locfile.c: Likewise.
9811         * locale/programs/localedef.c: Likewise.
9812         * locale/programs/localedef.h: Likewise.
9813         * locale/programs/locfile.h: Likewise.  Add declaration for
9814         find_translit.
9815         * locale/programs/simple-hash.c: Add const to first parameter of
9816         find_entry, iterate_table, and lookup.
9817         * locale/programs/simple-hash.h: Likewise.
9818         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
9819         instead.
9820         * include/locale.h: Define __LC_LAST.
9821         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
9823 2001-12-07  Geoff Keating  <geoffk@redhat.com>
9825         * sysdeps/powerpc/Dist: Update for recent FP changes.
9826         * sysdeps/powerpc/fpu/Dist: Likewise.
9828 2001-12-07  Andreas Schwab  <schwab@suse.de>
9830         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
9832 2001-12-06  Geoff Keating  <geoffk@redhat.com>
9834         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
9835         save/restore functions here.
9836         (libm-support): Don't define these functions here.
9837         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
9838         functions here.
9839         * sysdeps/powerpc/fe_nomask.c: Move to...
9840         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
9841         * sysdeps/powerpc/fprrest.S: Move to...
9842         * sysdeps/powerpc/fpu/fprrest.S: ... here.
9843         * sysdeps/powerpc/fprsave.S: Move to...
9844         * sysdeps/powerpc/fpu/fprsave.S: ... here.
9846 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
9848         * sysdeps/unix/sysv/linux/opensock.c: New file.
9850 2001-12-06  Geoff Keating  <geoffk@redhat.com>
9852         * config.make.in (with-fp): Define from configure.
9853         * configure.in: Substitute with_fp.
9854         * configure: Regenerate.
9855         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
9856         specified, and don't change FPU environment.
9858 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
9860         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
9861         * assert/assert.c: Check result of __asprintf call and don't use
9862         string if it failed.
9863         * assert/assert-perr.c: Likewise.
9864         * inet/rcmd.c: Likewise.
9865         * locale/programs/localedef.c (main): Check result of
9866         construct_output_path and exit if it failed.
9867         (construct_output_path): Check result of asprintf and mkdir calls and
9868         fail if they failed.
9869         * posix/getopt.c: Check result of __asprintf calls and fail if
9870         they failed.
9871         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
9873 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
9875         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
9876         patch.
9877         * sysdeps/generic/strncase.c: Likewise.
9878         * string/tester.c: Add tests for strcasecmp and strncasecmp.
9880 2001-12-05  Geoff Keating  <geoffk@redhat.com>
9882         * scripts/cpp: Test the exit status from 'type', not 'awk'.
9884         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
9885         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
9886         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
9887         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
9888         * sysdeps/powerpc/fclrexcpt.c: Move to...
9889         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
9890         * sysdeps/powerpc/fpu_control.h: Move to...
9891         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
9893 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
9895         * iconvdata/ibm1129.h: Remove duplicate mappings.
9896         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
9897         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
9898         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9900         * timezone/zic.c: Fix handling of turnaround times.
9901         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
9903 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
9905         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
9906         overflow problem.
9908 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
9910         * posix/regex.c: For use outside glibc defined bounded pointer
9911         macros here.  Patch by Jim Meyering <jim@meyering.net>.
9913         * iconvdata/Makefile (modules): Add TCVN5712-1.
9914         * iconvdata/TESTS: Add TCVN5712-1.
9915         * iconvdata/gconv-modules: Likewise.
9916         * iconvdata/tcvn5712-1.c: New file.
9917         * iconvdata/testdata/TCVN-5712: New file.
9918         * iconvdata/testdata/TCVN-5712..UTF8: New file.
9920 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
9922         * iconvdata/cp1258.c: Optimize conversion from UCS4.
9924 2001-12-02  Roland McGrath  <roland@frob.com>
9926         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
9928         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
9929         Reported by Jeff Bailey <jbailey@nisa.net>.
9931         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
9932         Reported by Jeff Bailey <jbailey@nisa.net>.
9934         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
9935         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
9936         Reported by Jeff Bailey <jbailey@nisa.net>.
9938 2001-12-01  Roland McGrath  <roland@frob.com>
9940         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
9941         missing backslash in test arguments.
9942         * sysdeps/mach/hurd/configure: Regenerated.
9944 2001-11-26  Roland McGrath  <roland@frob.com>
9946         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
9947         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
9949 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
9951         * iconvdata/Makefile (modules): Add ARMSCII-8.
9952         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
9953         * iconvdata/armscii-8.c: New file.
9955 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
9957         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
9958         don't match, fix {{a,b},c} globbing, clean up.
9959         Patch by Flavio Veloso <flaviovs@magnux.com>.
9960         * posix/globtest.sh: Add new tests.
9962 2001-11-29  Andreas Jaeger  <aj@suse.de>
9964         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
9965         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
9967         * sysdeps/generic/abort.c: Include libioP.h for
9968         _IO_flush_all_lockp prototype.
9970 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
9972         * posix/regex.h: Define __restrict_arr correctly.
9974 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
9976         * iconvdata/ibm1163.c: New file.
9977         * iconvdata/ibm1163.h: New file.
9978         * iconvdata/ibm1164.c: New file.
9979         * iconvdata/ibm1164.h: New file.
9980         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
9981         * iconvdata/Makefile: Likewise.
9982         * iconvdata/testdata/IBM1163: New file.
9983         * iconvdata/testdata/IBM1163..UTF8: New file.
9984         * iconvdata/testdata/IBM1164: New file.
9985         * iconvdata/testdata/IBM1164..UTF8: New file.
9986         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9988         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
9989         * iconvdata/ibm1124.h: Likewise.
9990         * iconvdata/ibm1132.h: Likewise.
9991         * iconvdata/ibm1133.h: Likewise.
9992         * iconvdata/ibm1160.h: Likewise.
9993         * iconvdata/ibm1161.h: Likewise.
9994         * iconvdata/ibm1162.h: Likewise.
9995         * iconvdata/ibm856.h: Likewise.
9996         * iconvdata/ibm922.h: Likewise.
9997         * iconvdata/ibm930.h: Likewise.
9998         * iconvdata/ibm932.h: Likewise.
9999         * iconvdata/ibm933.h: Likewise.
10000         * iconvdata/ibm935.h: Likewise.
10001         * iconvdata/ibm937.h: Likewise.
10002         * iconvdata/ibm939.h: Likewise.
10003         * iconvdata/ibm943.h: Likewise.
10004         * iconvdata/ibm930.c: Pretty printing.
10005         * iconvdata/ibm937.c: Avoid access accross array boundary.
10007         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10008         the current locale's codeset.
10009         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10010         empty input string.
10011         * iconv/iconv_prog.c: Pass empty strings as default value for to-
10012         and from-charset.  Don't determine locale's charset here.
10014         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
10015         as the old _IO_flush_all but lock only if parameter is nonzero.
10016         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10017         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10018         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10019         if libio is used [PR libc/2575].
10021 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
10023         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10024         __signbitl): Only define for ISO C99.
10026 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10028         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10029         herrnop to NETDB_INTERNAL if we run out of buffer space.
10031 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10033         * nss/nss_files/files-XXX.c (internal_getent): Correct input
10034         overflow test for platforms with signed char.
10035         Reported by Andrew Haley <aph@cambridge.redhat.com>.
10037 2001-11-28  Bruno Haible  <bruno@clisp.org>
10039         * locale/programs/simple-hash.c (lookup_2): Remove function.
10040         (insert_entry_2): Call lookup instead of lookup_2.
10042 2001-03-04  Bruno Haible  <bruno@clisp.org>
10044         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
10046 2001-10-31  Bruno Haible  <bruno@clisp.org>
10048         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
10050 2001-03-21  Bruno Haible  <bruno@clisp.org>
10052         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
10053         chokes on empty macro arguments.
10054         * intl/plural.y: Add #pragma for alloca on AIX 3.
10056 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10058         * intl/dcigettext.c (guess_category_value): Only implement for
10059         glibc.  Otherwise rely on function _nl_locale_name which isn't
10060         present in the glibc sources.
10062 2001-09-24  Bruno Haible  <bruno@clisp.org>
10064         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
10065         transliteration when building on a glibc system but outside glibc.
10067 2001-09-22  Bruno Haible  <bruno@clisp.org>
10069         * intl/plural-eval.c: New file, extracted from dcigettext.c.
10070         * intl/dcigettext.c (plural_eval): Remove function, moved to
10071         intl/plural-eval.c.
10072         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
10073         Include plural-eval.c.
10075 2001-09-22  Bruno Haible  <bruno@clisp.org>
10077         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
10078         don't start with a digit; nplurals must be positive.
10080 2001-09-02  Bruno Haible  <bruno@clisp.org>
10082         * intl/plural-exp.h: New file, extracted from gettextP.h.
10083         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
10084         * intl/gettextP.h (struct expression, struct parse_args,
10085         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
10086         * intl/loadmsgcat.c: Include plural-exp.h.
10087         (PLURAL_PARSE): Move macro to plural-exp.h.
10088         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
10089         plural-exp.c.
10090         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
10091         EXTRACT_PLURAL_EXPRESSION.
10092         (_nl_unload_domain): Update.
10093         * intl/dcigettext.c: Include plural-exp.h.
10094         * intl/plural.y: Include plural-exp.h, not gettextP.h.
10095         (FREE_EXPRESSION): Move macro to plural-exp.h.
10096         * intl/Makefile (routines): Add plural-exp.
10097         (distribute): Add plural-exp.h.
10099 2001-07-28  Bruno Haible  <bruno@clisp.org>
10101         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
10102         isdigit, tolower argument to 'unsigned char'.
10103         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
10104         'unsigned char'.
10105         * intl/localealias.c (read_alias_file): Cast isspace argument to
10106         'unsigned char'.
10108 2001-10-20  Bruno Haible  <bruno@clisp.org>
10110         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
10111         anyway.)
10112         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
10113         with the variable 'index' in plural_lookup.
10114         * intl/l10nflist.c (strchr): Likewise.
10115         * intl/localealias.c (strchr): Likewise.
10117         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
10118         * intl/bindtextdom.c: Likewise.
10119         * intl/dcigettext.c: Likewise.
10120         * intl/dgettext.c: Likewise.
10121         * intl/dngettext.c: Likewise.
10122         * intl/explodename.c: Likewise.
10123         * intl/finddomain.c: Likewise.
10124         * intl/gettext.c: Likewise.
10125         * intl/l10nflist.c: Likewise.
10126         * intl/loadmsgcat.c: Likewise.
10127         * intl/localealias.c: Likewise.
10128         * intl/ngettext.c: Likewise.
10129         * intl/textdomain.c: Likewise.
10130         * intl/gettext.h: Assume <limits.h> exists.
10132 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10134         * stdio-common/Makefile (tests): Add scanf11.
10135         * stdio-common/scanf11.c: New file.
10137 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
10139         * version.h (RELEASE): Define as development.
10140         (VERSION): Set to 2.2.90.
10142 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10144         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
10145         * nis/nss_nis/nis-grp.c: Likewise.
10146         * nis/nss_nisplus/nisplus-grp.c: Likewise.
10148         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
10149         * nis/nss_nis/nis-pwd.c: Likewise.
10150         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
10152         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
10153         * nis/nss_nisplus/nisplus-parser.c: Likewise.
10154         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10156         * nscd/grpcache.c: Use strtoul instead of atol.
10157         * nscd/pwdcache.c: Likewise.
10158         * nss/getent.c: Likewise.
10160 2001-11-27  Paul Eggert  <eggert@twinsun.com>
10162         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
10163         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
10165 2001-11-19  Bruno Haible  <bruno@clisp.org>
10167         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
10168         90%.
10169         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
10170         improves the quality of the hash function, especially for short
10171         strings.
10173 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
10175         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
10176         are found call conv_error and not input_error [PR libc/2669].
10178         * math/bits/mathcalls.h: Mark ceil and floor as const.
10179         Reported by David Mosberger.
10181 2001-11-21  Jim Meyering  <meyering@lucent.com>
10183         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
10184         Define to be __-prefixed.
10185         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
10187 2001-11-26  Andreas Jaeger  <aj@suse.de>
10189         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
10190         avoid warning.
10192 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
10194         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
10195         initialization.
10197         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
10198         unused variables.  Fix threshold for returning 1.0.
10200         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
10201         argument.
10203         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
10204         remove unused variables.
10206         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
10208         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
10209         include local math header files.
10211 2001-11-22  Andreas Jaeger  <aj@suse.de>
10213         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
10214         avoid warning.
10216 2001-11-21  Andreas Jaeger  <aj@suse.de>
10218         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
10220         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
10221         sys/debugreg.h
10223 2001-11-15  Andreas Jaeger  <aj@suse.de>
10225         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
10226         compilers that support it.
10228         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
10229         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
10230         * stdlib/stdlib.h: Likewise.
10232 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
10234         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
10235         statement with gotos.
10236         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
10238 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
10240         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
10242 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
10244         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
10246 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
10247             H.J. Lu  <hjl@gnu.org>
10249         * Versions.def (libc): Add GCC_3.0.
10250         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
10251         if gcc supports this flag.
10252         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
10253         (gcc3): Allow glibc to be compiled with gcc 3.x.
10254         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
10255         * config.make.in (static-libgcc, unwind-find-fde): Add.
10256         * Makerules (build-shlib-helper, build-module-helper): Use it.
10257         * scripts/versions.awk: Make sure GLIBC_ versions come first.
10258         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
10259         necessary.
10260         (_fini): Call __deregister_frame_info_bases if
10261         __register_frame_info_bases was used to register.
10262         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
10263         for GLIBC_2.0.
10264         (__register_frame_info_bases, __register_frame_info_table_bases,
10265         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
10266         * elf/Makefile (routines): Add unwind-dw2-fde.
10267         (shared-only-routines): Add unwind-dw2-fde.
10268         * sysdeps/alpha/gccframe.h: New file.
10269         * sysdeps/arm/gccframe.h: New file.
10270         * sysdeps/generic/framestate.c: New file.
10271         * sysdeps/generic/dwarf2.h: New file.
10272         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
10273         * sysdeps/generic/unwind-dw2-fde.c: New file.
10274         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
10275         * sysdeps/generic/unwind-dw2-fde.h: New file.
10276         * sysdeps/generic/unwind-dw2.c: New file.
10277         * sysdeps/generic/unwind-pe.h: New file.
10278         * sysdeps/generic/unwind.h: New file.
10279         * sysdeps/hppa/gccframe.h: New file.
10280         * sysdeps/i386/gccframe.h: New file.
10281         * sysdeps/m68k/gccframe.h: New file.
10282         * sysdeps/mips/gccframe.h: New file.
10283         * sysdeps/powerpc/gccframe.h: New file.
10284         * sysdeps/s390/gccframe.h: New file.
10285         * sysdeps/sh/gccframe.h: New file.
10286         * sysdeps/sparc/gccframe.h: New file.
10287         * sysdeps/vax/gccframe.h: New file.
10288         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10289         Set on all architectures except ia64.
10290         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
10291         for i386.
10292         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
10293         __deregister_frame_info): Move to elf/Versions.
10294         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
10295         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
10296         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
10297         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
10298         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
10299         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
10300         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
10301         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
10302         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
10303         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
10304         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
10305         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
10306         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10307         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
10308         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
10309         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
10310         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
10311         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
10313 2001-11-15  Jeff Law  <law@redhat.com>
10315         * posix/regex.c (uintptr_t): Do not provide a definition if the
10316         system provided one.
10318 2001-11-13  Roland McGrath  <roland@frob.com>
10320         * stdio-common/tmpfile.c: Moved to ...
10321         * sysdeps/generic/tmpfile.c: ... here.
10322         * sysdeps/mach/hurd/tmpfile.c: New file.
10324         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
10325         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
10326         (fopenport): Define as weak alias.
10328         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
10329         * libio/libioP.h: ... to here.
10331 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
10333         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
10334         program header twice.  Construct list with the needed information.
10336 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
10338         * po/ca.po: Update from translation team.
10340         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
10341         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
10342         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
10343         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10345 2001-11-10  Andreas Jaeger  <aj@suse.de>
10347         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
10348         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10349         Contributed by Stephen L Moshier <moshier@mediaone.net>.
10351 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
10353         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
10354         correctly.
10355         * elf/dl-load.c (is_dst): New function.
10356         (_dl_dst_count): Use is_dst to check for DST variable.
10357         (_dl_dst_substitute): Likewise.
10359 2001-11-09  Roland McGrath  <roland@frob.com>
10361         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
10362         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
10363         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
10364         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
10365         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
10366         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
10367         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
10368         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
10369         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
10370         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
10371         * sysdeps/mach/hurd/powerpc/Dist: New file.
10373         * hurd/privports.c (__get_privileged_ports):
10374         Only contact the proc server if necessary for this call.
10375         Suggested by Neal H Walfield <neal@cs.uml.edu>.
10376         Check error return for mach_port_mod_refs.
10378 2001-11-09  Andreas Schwab  <schwab@suse.de>
10380         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
10382 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
10384         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
10385         object is always the last in the list.
10386         (_dl_map_object_from_fd): Delete code to remove from object list
10387         when DF_1_NOOPEN is seen.  This is done in lose.
10389 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
10391         * elf/dl-object.c (_dl_new_object): Various small optimizations.
10393 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
10395         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
10396         HWCAP_CHECK macro code.
10398         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
10399         Now returns MAP_FAILED on error.
10400         * elf/rtld.c: Adjust caller.
10401         * sysdeps/generic/dl-cache.c: Likewise.
10402         * sysdeps/generic/ldsodefs.h: Adjust description.
10404         * elf/dl-version.c (match_symbol): Optimize error handling for size.
10405         (_dl_check_map_versions): Likewise.
10407 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
10409         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
10410         _dl_signal_error directly, always use lose.  Set fd to -1 after
10411         file is closed.
10412         (lose): Don't call close if fd == -1.
10414 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
10416         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
10417          Also fix typo @code {mbsinit} to @code{mbsinit}.
10419 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
10421         * elf/dl-profile.c: Replace state variable with simple flag named
10422         running.  Remove commented-out code.
10424         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
10425         (_dl_init_paths): Likewise.
10426         (_dl_map_object_from_fd): Likewise.
10427         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10429 2001-11-06  Roland McGrath  <roland@frob.com>
10431         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
10432         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
10434         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
10435         sysdeps/powerpc/elf/sysdep.h.
10436         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
10438 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
10440         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
10441         speed.
10442         (process_envvars): Some more optimizations.
10443         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
10445         * elf/elf.h: Add dynamic tag definitions for prelinking.
10447         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
10448         Rewrite code to remove environment varables for SUID binaries.
10449         Small optimization in LD_PROFILE handling.
10450         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
10451         changes.
10452         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10454         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
10456         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
10457         strings.  Change type of second parameter.
10458         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
10459         for last change.
10461         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
10463 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10465         * manual/string.texi: Fix typos.
10466         * manual/examples/argp-ex2.c: Likewise.
10468 2001-11-05  Roland McGrath  <roland@frob.com>
10470         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
10471         the more-specific unix/sysv/linux/powerpc file and breaks everything.
10472         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
10473         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
10474         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
10475         here, put under [__ELF__].
10477 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
10479         * manual/charset.texi: Extensive editing work.
10480         * manual/nss.texi: Likewise.
10481         Changes by Dennis Grace <dgrace@us.ibm.com>.
10483 2001-11-04  Roland McGrath  <roland@frob.com>
10485         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
10486         parameter to dir_mkfile.
10488 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
10490         * string/bits/string2.h (__strndup): If n is smaller than len, set
10491         len to n + 1.
10492         * string/tester.c (test_strndup): New function.
10493         (main): Call it.
10495 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
10497         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
10499         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
10500         * scripts/cpp: New file.
10502         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
10503         for rtld_search_dirs content.  Minor optimizations.
10505 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
10507         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
10508         avoiding unnecessary duplication.
10510 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
10512         * elf/dl-load.c (_dl_map_object): If library was found using
10513         LD_LIBRARY_PATH, don't try RUNPATH list.
10515 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10517         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
10518         Correct second argument of register_dump call.
10519         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
10520         Likewise.
10522 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
10524         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
10525         modules.
10526         * iconvdata/TESTS: Likewise.
10527         * iconvdata/gconv-modules: Likewise.
10528         * iconvdata/ibm1132.c: New file.
10529         * iconvdata/ibm1132.h: New file.
10530         * iconvdata/ibm1133.c: New file.
10531         * iconvdata/ibm1133.h: New file.
10532         * iconvdata/ibm1162.c: New file.
10533         * iconvdata/ibm1162.h: New file.
10534         * iconvdata/testdata/IBM1132: New file.
10535         * iconvdata/testdata/IBM1132..UTF8: New file.
10536         * iconvdata/testdata/IBM1133: New file.
10537         * iconvdata/testdata/IBM1133..UTF8: New file.
10538         * iconvdata/testdata/IBM1162: New file.
10539         * iconvdata/testdata/IBM1162..UTF8: New file.
10540         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
10542         * string/string.h: Fix typo in comment.
10543         * wcsmbs/wchar.h: Likewise.
10545 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
10547         * manual/getopt.texi (getopt_long, getopt_long_only): Include
10548         const in type of longopts parameter.
10550 2001-10-29  Andreas Jaeger  <aj@suse.de>
10552         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
10554 2001-10-29  Kevin Ryde  <user42@zip.com.au>
10556         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
10557         output, clarify `#' behaviour on 0.
10558         (Floating-Point Conversions): Clarify that %g only uses %e when
10559         the exponent would be greater than 1.
10561 2001-10-28  Roland McGrath  <roland@frob.com>
10563         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
10564         * sysdeps/mach/powerpc/machine-sp.h: New file.
10565         * sysdeps/mach/powerpc/sysdep.h: New file.
10566         * sysdeps/mach/powerpc/thread_state.h: New file.
10568         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
10569         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
10570         expect to need the same thing on every platform.
10572         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
10573         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
10575         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
10576         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
10577         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
10578         Move all these assembly-related definitions to ...
10579         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
10581         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
10582         by Peter Bruin <pjbruin@dds.nl>.
10584         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
10585         packing results for a `poll' call.
10587 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
10589         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
10590         correctly.
10591         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
10592         bracket expression.
10594         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
10595         nrules value.
10596         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
10598 2001-10-24  H.J. Lu  <hjl@gnu.org>
10600         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
10601         Use __BEGIN_DECLS/__END_DECLS around prototypes.
10602         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
10604 2001-10-21  Jim Meyering  <meyering@lucent.com>
10606         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
10607         this code would end up calling gettext even in packages built
10608         with --disable-nls.
10609         * posix/getopt.c (_): Likewise.
10610         * posix/regex.c (_): Likewise.
10612 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
10614         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
10615         lookup not ip6.int.
10616         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
10617         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
10619 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
10621         * misc/sys/cdefs.h (__attribute_used__): Define.
10622         * elf/rtld.c (_dl_start): Add __attribute_used__.
10623         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
10625 2001-10-25  Andreas Schwab  <schwab@suse.de>
10627         * stdlib/a64l.c: Expect least significant digit first.
10628         * stdlib/l64a.c: Produce least significant digit first.
10629         * stdlib/Makefile (tests): Add test-a64l.
10630         * stdlib/test-a64l.c: New file.
10631         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
10633 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
10635         * po/sk.po: Update from translation team.
10637 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
10639         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
10641 2001-10-18  Andreas Schwab  <schwab@suse.de>
10643         * math/libm-test.inc (print_ulps): Print ulp values rounded to
10644         next whole number.
10645         (print_function_ulps): Likewise.
10646         (print_complex_function_ulps): Likewise.
10647         (print_max_error): Likewise.
10648         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
10650 2001-10-16  Andreas Schwab  <schwab@suse.de>
10652         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
10653         implementation.
10655         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
10656         BSD_SETJMP or BSD__SETJMP is defined, resp.
10657         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
10658         a tail call to __sigsetjmp that would require extending the
10659         caller's frame.
10660         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
10661         * sysdeps/m68k/bsd-setjmp.S: Deleted.
10662         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
10663         Reported by Jes Sorensen <jes@trained-monkey.org>.
10665 2001-10-16  Andreas Jaeger  <aj@suse.de>
10667         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
10668         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
10669         close PR libc/2589.
10671 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
10673         * po/ca.po: New file.  Contributed by the translation team.
10675 2001-10-15  Ralf Baechle  <ralf@gnu.org>
10677         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
10678         a varargs prototype.  Remove dependency from kernel header files.
10680         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
10681         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
10683 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
10685         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
10686         to generate hexadecimal identifier.
10687         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
10689 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
10691         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
10693 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
10695         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
10696         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
10697         Contributed by Stephen L Moshier <moshier@mediaone.net>.
10699         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
10700         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10701         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
10702         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
10703         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
10704         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
10706         * timezone/africa: Update from tzdata2001d.
10707         * timezone/asia: Likewise.
10708         * timezone/australasia: Likewise.
10709         * timezone/backward: Likewise.
10710         * timezone/europe: Likewise.
10711         * timezone/leapseconds: Likewise.
10712         * timezone/northamerica: Likewise.
10713         * timezone/southamerica: Likewise.
10714         * timezone/zone.tab: Likewise.
10716 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10718         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
10719         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
10721 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
10723         * elf/elf.h (PT_TLS): New definition.
10725 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
10727         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
10728         bits/errno.h
10730 2001-10-07  Roland McGrath  <roland@frob.com>
10732         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
10734 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
10736         * elf/elf.h: Add more ELFOSABI_* constants.
10738 2001-10-04  Ben Collins  <bcollins@debian.org>
10740         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
10741         decleration of __need_wchar_t.
10743 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
10745         * string/bits/string2.h (__strsep_g): Add prototype.
10746         (__strsep): Use it.
10747         * string/Versions (__strsep): Remove.
10748         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
10750 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
10752         * manua/llio.texi: Clarify file references added by mmap.
10753         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
10755 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
10757         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
10758         Add sc_loadrs and sc_rbs_bas to match current kernel.
10760 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
10762         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
10764         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
10766 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
10768         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
10769         object has been bumped because of relocation dependency, avoid
10770         duplicates in l_scope.
10771         (show_scope): Fix typos.
10772         * elf/Makefile: Add rules to build and run reldep6.
10773         * elf/reldep6.c: New file.
10774         * elf/reldep6mod0.c: New file.
10775         * elf/reldep6mod1.c: New file.
10776         * elf/reldep6mod2.c: New file.
10777         * elf/reldep6mod3.c: New file.
10778         * elf/reldep6mod4.c: New file.
10780 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
10782         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
10783         sparc64_fixup_plt.
10784         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
10785         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
10786         for non-lazy binding. Fix .plt[32768+] handling.
10787         (elf_machine_plt_value): Don't add addend.
10788         (elf_machine_rela): Call sparc64_fixup_plt instead of
10789         elf_machine_fixup_plt.
10790         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
10791         dynamic linker at 0xfffff800XXXXXXXX.
10793         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
10795 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
10797         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
10799 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
10801         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
10802         declare __cmsg_data field if its size would be bigger than 0.
10803         (CMSG_DATA): Adjust accordingly.
10804         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
10805         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
10806         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
10807         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
10808         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10809         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
10810         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10812 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
10814         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
10815         * iconvdata/testdata/IBM1160: New file.
10816         * iconvdata/testdata/IBM1160..UTF8: New file.
10817         * iconvdata/testdata/IBM1161: New file.
10818         * iconvdata/testdata/IBM1161..UTF8: New file.
10819         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10821 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
10823         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
10824         UL_SETFSIZE computations better.
10826         * rt/Makefile: Remove use of filter for librt again.
10828         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
10829         UL_SETFSIZE computations better.
10831         * string/Versions: Export __strsep for GLIBC_2.2.5.
10832         * string/bits/string2.h: Define all __STRING_INLINE functions if
10833         _FORCE_INLINES is defined.
10834         Use int instead of char of parameter types.
10835         (__strsep): Don't use __strsep_g.  Don't define it.
10836         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
10837         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
10838         __strcpy_small.
10839         (__stpcpy_a_small): Renamed from __stpcpy_small.
10840         (__strcspn_c1): Don't define if _FORCE_INLINES.
10841         (__strspn_c1): Likewise.
10843 2001-09-22  Ben Collins  <bcollins@debian.org>
10845         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
10846         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
10847         * sysdeps/ia64/bits/sigaction.h: Likewise.
10848         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
10850 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
10852         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
10854 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
10856         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
10858 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
10860         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
10862 2001-09-20  H.J. Lu  <hjl@gnu.org>
10864         * include/dlfcn.h (__RTLD_SPROF): New definiton.
10865         * elf/dl-open.c (dl_open_worker): Return immediately after loading
10866         for __RTLD_SPROF.
10867         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
10868         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
10870 2001-09-20  H.J. Lu  <hjl@gnu.org>
10872         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
10873         don't add 1.
10875 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
10877         * nss/getent.c: Accept -s parameter to overwrite rules in
10878         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
10880         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
10881         with as many ".0" as necessary to form a complete address
10882         inet_network understands.
10884         * nss/getent.c: Various cleanups.  Use simpler and fewer function
10885         calls.
10887 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10889         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
10890         _JMPBUF_UNWINDS.
10891         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
10893 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
10895         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
10896         IBM1161.
10897         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
10898         * iconvdata/ibm1160.c: New file.
10899         * iconvdata/ibm1160.h: New file.
10900         * iconvdata/ibm1161.c: New file.
10901         * iconvdata/ibm1161.h: New file.
10902         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10904 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
10906         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
10907         difference between base address and first PT_LOAD's virtual address,
10908         not the base address.
10910 2001-09-11  Tom Rix  <trix@redhat.com>
10912         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
10913         ifdef for __getopt_clean_environment.
10914         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
10916 2001-09-22  Andreas Jaeger  <aj@suse.de>
10918         * elf/reldep4.c (main): Add proper prototype to fix warning.
10920         * elf/reldep5.c (main): Remove unused variable.
10922         * math/math_private.h: Add prototypes.
10924 2001-09-21  Andreas Jaeger  <aj@suse.de>
10926         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
10927         * sysdeps/x86_64/Dist: New file.
10928         * sysdeps/x86_64/soft-fp/Dist: New file.
10930         * sysdeps/gnu/Dist: Remove eval.c.
10932 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
10934         * malloc/memusage.c (realloc): Don't count already allocated
10935         memory in the sums.
10936         (me): Always use dlsym() to find the real implementations.
10938         * malloc/memusage.sh: Make -n option actually do something.
10940 2001-09-20  Andreas Jaeger  <aj@suse.de>
10942         * elf/elf.h (R_390_NUM): Correct value.
10944         * Versions.def: Add missing versions 2.2.3 for libthread_db and
10945         libpthread.
10947         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
10948         for x86-64, install x86-64 into */lib64.
10950         * shlib-versions: Add x86-64.
10952         * elf/elf.h: Add x86-64 relocations.
10954 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
10956         * po/fr.po: Update from translation team.
10958 2001-09-19  Andreas Jaeger  <aj@suse.de>
10960         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
10961         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
10962         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
10963         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
10964         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
10965         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
10966         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
10967         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
10968         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
10969         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
10970         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
10971         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
10972         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
10973         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
10974         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
10975         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
10976         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
10977         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
10978         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
10979         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
10980         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
10981         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
10982         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
10983         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
10984         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
10985         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
10986         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
10987         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
10988         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
10989         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
10990         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
10991         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
10992         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
10993         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
10994         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
10995         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
10996         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
10997         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
10998         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
10999         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11000         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11001         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11002         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11003         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11004         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11005         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11006         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11007         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11008         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11009         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11010         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11011         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11012         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11013         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11014         * sysdeps/unix/x86_64/sysdep.S: New file.
11015         * sysdeps/unix/x86_64/sysdep.h: New file.
11016         * sysdeps/x86_64/Implies: New file.
11017         * sysdeps/x86_64/Makefile: New file.
11018         * sysdeps/x86_64/Versions: New file.
11019         * sysdeps/x86_64/__longjmp.S: New file.
11020         * sysdeps/x86_64/abort-instr.h: New file.
11021         * sysdeps/x86_64/atomicity.h: New file.
11022         * sysdeps/x86_64/bits/endian.h: New file.
11023         * sysdeps/x86_64/bits/setjmp.h: New file.
11024         * sysdeps/x86_64/bits/string.h: New file.
11025         * sysdeps/x86_64/bp-asm.h: New file.
11026         * sysdeps/x86_64/bsd-_setjmp.S: New file.
11027         * sysdeps/x86_64/bsd-setjmp.S: New file.
11028         * sysdeps/x86_64/dl-machine.h: New file.
11029         * sysdeps/x86_64/elf/initfini.c: New file.
11030         * sysdeps/x86_64/elf/start.S: New file.
11031         * sysdeps/x86_64/ffs.c: New file.
11032         * sysdeps/x86_64/ffsll.c: New file.
11033         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
11034         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
11035         * sysdeps/x86_64/fpu/e_acosl.c: New file.
11036         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
11037         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
11038         * sysdeps/x86_64/fpu/e_expl.c: New file.
11039         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
11040         * sysdeps/x86_64/fpu/e_log10l.S: New file.
11041         * sysdeps/x86_64/fpu/e_log2l.S: New file.
11042         * sysdeps/x86_64/fpu/e_logl.S: New file.
11043         * sysdeps/x86_64/fpu/e_powl.S: New file.
11044         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
11045         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
11046         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
11047         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
11048         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
11049         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
11050         * sysdeps/x86_64/fpu/fegetenv.c: New file.
11051         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
11052         * sysdeps/x86_64/fpu/fegetround.c: New file.
11053         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
11054         * sysdeps/x86_64/fpu/fesetenv.c: New file.
11055         * sysdeps/x86_64/fpu/fesetround.c: New file.
11056         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
11057         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
11058         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
11059         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
11060         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
11061         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
11062         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
11063         * sysdeps/x86_64/fpu/s_atanl.c: New file.
11064         * sysdeps/x86_64/fpu/s_cosl.S: New file.
11065         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
11066         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
11067         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
11068         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
11069         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
11070         * sysdeps/x86_64/fpu/s_logbl.c: New file.
11071         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
11072         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
11073         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
11074         * sysdeps/x86_64/fpu/s_rintl.c: New file.
11075         * sysdeps/x86_64/fpu/s_significandl.c: New file.
11076         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
11077         * sysdeps/x86_64/fpu/s_sinl.S: New file.
11078         * sysdeps/x86_64/fpu/s_tanl.S: New file.
11079         * sysdeps/x86_64/gmp-mparam.h: New file.
11080         * sysdeps/x86_64/hp-timing.c: New file.
11081         * sysdeps/x86_64/hp-timing.h: New file.
11082         * sysdeps/x86_64/htonl.S: New file.
11083         * sysdeps/x86_64/memusage.h: New file.
11084         * sysdeps/x86_64/setjmp.S: New file.
11085         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
11086         * sysdeps/x86_64/stackinfo.h: New file.
11087         * sysdeps/x86_64/sysdep.h: New file.
11088         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
11090         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
11091         L Moshier.
11093 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11095         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
11096         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
11098 2001-09-18  Andreas Schwab  <schwab@suse.de>
11100         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
11101         list, now that l_scope is a pointer.
11103         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
11104         scope list.
11106 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
11108         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
11109         (elf_machine_rela_relative): Add a missing declaration.
11111 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
11113         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
11114         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
11115         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
11116         ldd-rewrite scripts.
11118 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11120         * elf/ldd.bash.in: Update copyright message.
11122 2001-09-17  H.J. Lu  <hjl@gnu.org>
11124         * hurd/hurdmalloc.c (bcopy): Removed.
11125         (realloc): Replace bcopy with memcpy.
11126         * hurd/path-lookup.c (file_name_path_scan): Likewise.
11127         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
11128         * sunrpc/rpcinfo.c (pmapdump): Likewise.
11130         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
11131         (gethostbyaddr): Likewise.
11132         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
11134 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11136         * sysdeps/gnu/eval.c: Removed.
11138 2001-09-18  Andreas Jaeger  <aj@suse.de>
11140         * sysdeps/i386/fpu/s_logbl.S: Move to ...
11141         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
11143         * sysdeps/i386/fpu/s_rintl.S: Move to ...
11144         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
11146         * sysdeps/i386/fpu/s_significandl.S: Move to ...
11147         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
11149 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
11151         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11152         nrules value.
11154 2001-09-14  H.J. Lu  <hjl@gnu.org>
11156         * sysdeps/mips/fpu/libm-test-ulps: Updated.
11158 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
11160         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
11161         Patch by Florian La Roche <laroche@redhat.com>.
11163         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
11165         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
11166         ETHER_CRC_LEN.
11168 2001-09-14  Andreas Schwab  <schwab@suse.de>
11170         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
11171         Sumner <bls@sgi.com>.
11172         * posix/execlp.c: Likewise.
11174 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
11176         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
11177         is already found earlier in the search scope.
11179 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
11181         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
11182         filter.
11184 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
11186         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
11188 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
11190         * config.h.in: Enforce optimization to be used.
11191         * Makeconfig (preprocess-versions): Define ASSEMBLER.
11192         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
11193         * posix/Makefile (annexc-CFLAGS): Define to -O.
11194         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
11196 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
11198         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
11199         Patch by Stephan Kulow.
11201 2001-09-08  Ben Collins  <bcollins@debian.org>
11203         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
11204         usage of RESOLVE() (r_type, not reloc->r_type).
11206 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
11208         * elf/dl-object.c: Avoid allocating extra memory block for name.
11209         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
11210         allocated separately.
11211         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
11213 2001-09-08  H.J. Lu  <hjl@gnu.org>
11215         * po/zh_TW.po: Fix a typo.
11217 2001-09-07  Tom Rix  <trix@redhat.com>
11219         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
11221 2001-08-26  Tom Rix  <trix@redhat.com>
11223         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
11224         command line options.
11225         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
11226         * sysdeps/unix/sysv/aix/start.c: Removed.
11227         * sysdeps/unix/sysv/aix/start-libc.c: New file.
11228         * sysdeps/unix/sysv/aix/init-first.c: New file.
11229         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
11231 2001-09-08  Ben Collins  <bcollins@debian.org>
11233         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
11234         * sysdeps/generic/dl-machine.h: Likewise.
11235         * sysdeps/hppa/dl-fptr.c: Likewise.
11236         * sysdeps/ia64/dl-fptr.c: Likewise.
11237         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
11238         * sysdeps/mips/dl-machine.h: Likewise.
11239         * sysdeps/mips/mips64/dl-machine.h: Likewise.
11240         * sysdeps/powerpc/dl-machine.c: Likewise.
11242 2001-09-07  Ben Collins  <bcollins@debian.org>
11244         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
11246         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
11248 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
11250         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
11251         dependencies if necessary.
11253         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
11254         loaded directly) determine length if l_initfini list by iterating
11255         over its elements.  Minor optimizations.
11256         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
11257         for dependency objects.
11258         If object was already loaded check whether any of the dependencies
11259         is already on the relocation dependency list.  If yes, remove the
11260         latter.  Minor optimizations.
11261         * elf/dl-lookup.c (add_dependency): Add check for self reference of
11262         maps here.  Search l_initfini list only if the object was loaded
11263         directly and not only as a dependency.
11264         (_dl_lookup_symbol): Add relocation dependency also if object
11265         is not in global scope.  Remove test for self-reference here.
11266         (_dl_lookup_versioned_symbol): Likewise.
11267         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
11268         element of first name record.
11269         * elf/loadtest.c: Add some more test to recognize early if an object
11270         wasn't unloaded.
11271         * elf/Makefile: Add rules to build and run reldep5.
11272         * elf/reldep5.c: New file.
11273         * elf/reldepmod5.c: New file.
11274         * elf/reldepmod6.c: New file.
11276         * elf/reldep2.c: Fix typo.
11278 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
11280         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
11281         elements.  Change l_scope to be a pointer only.
11282         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
11283         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
11284         here add searchlist of newly open file to the dependency's scope.
11285         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
11286         only searchlist from its scope.  Free own scope array if necessary.
11287         * elf/Makefile (tests): Add dblload and dblunload now.
11289 2001-09-06  Andreas Jaeger  <aj@suse.de>
11291         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
11292         Stephen L Moshier.
11294 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
11296         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
11297         they both fail.
11298         * elf/dblload.c: New file.
11299         * elf/dblloadmod1.c: New file.
11300         * elf/dblloadmod2.c: New file.
11301         * elf/dblloadmod3.c: New file.
11302         * elf/dblunload.c: New file.
11304 2001-09-04  Richard Henderson  <rth@redhat.com>
11306         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
11307         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
11309 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
11311         Correct very misleading message for error in failed runtime relocation.
11312         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
11313         place of the error.
11314         (_dl_signal_cerror): Likewise.
11315         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
11316         * elf/dl-close.c: Likewise.
11317         * elf/dl-deps.c: Likewise.
11318         * elf/dl-load.c: Likewise.
11319         * elf/dl-lookup.c: Likewise.
11320         * elf/dl-open.c: Likewise.
11321         * elf/dl-reloc.c: Likewise.
11322         * elf/dl-sym.c: Likewise.
11323         * elf/dl-version.c: Likewise.
11324         * sysdeps/generic/dl-sysdep.c: Likewise.
11326 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
11328         * iconv/strtab.c (strtabinit): Initialize null Strent.
11329         (newstring): Move len == 0 handling...
11330         (strtabadd): ...here.
11331         If len == 1, return null Strent.
11332         When inserting a suffix of an existing string, check if
11333         it is not equal to some suffix already recorded.
11334         Copy left and right members over if adding longer string.
11336 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
11338         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
11340         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
11341         (__syscall_gethostname): Add prototype.
11343 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
11345         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
11347 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
11349         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
11351 2001-08-27  Roland McGrath  <roland@frob.com>
11353         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
11354         short, copy that much into NAME anyway before returning error.
11356 2001-09-01  Richard Henderson  <rth@redhat.com>
11358         * sysdeps/alpha/elf/Dist: Remove file.
11359         * sysdeps/alpha/elf/Makefile: Remove file.
11360         * sysdeps/alpha/elf/crtbegin.S: Remove file.
11361         * sysdeps/alpha/elf/crtend.S: Remove file.
11362         * sysdeps/alpha/elf/initfini.c: New file.
11364 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
11366         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
11367         * iconv/tst-iconv3.c: Likewise.
11369 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
11371         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
11373 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
11375         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
11376         export it.
11377         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
11378         * iconv/iconv_prog.c (insert_cache): New function.
11379         (print_known_names): If cache is used call insert_cache to use the
11380         information from the cache [PR libc/2509].
11382 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
11384         * time/strptime.c (strptime_internal): Recognize 'l' format and
11385         handle it like 'I' for symmetry with strftime.
11387 2001-08-31  Richard Henderson  <rth@redhat.com>
11389         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
11390         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
11391         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
11392         (print_statistics): Make scalar unsigned long long.
11393         * sysdeps/alpha/hp-timing.h: New file.
11395 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
11397         * stdio-common/perror.c (perror): Save errno early, pass it
11398         down to perror_internal.
11399         (perror_internal): Add errnum argument.
11401 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
11403         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
11404         Don't add old memory content for R_ALPHA_REFQUAD.
11406 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
11408         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
11409         memory correctly.
11411         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
11412         instead of open, __close instead of close, __getpagesize instead
11413         of getpagesize.
11415         * string/argz-stringify.c (__argz_stringify): Use __strnlen
11416         instead of strnlen.
11417         * include/string.h (strndupa): Redefine here to use __strnlen
11418         instead of strnlen.
11419         * string/strndup.c (__strndup): Use __strnlen not strnlen.
11421         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
11422         connected).
11424 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
11426         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
11427         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
11428         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
11429         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
11430         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
11431         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
11432         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
11434 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
11436         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
11438 2001-08-30  Andreas Jaeger  <aj@suse.de>
11440         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
11441         contributed Stephen L Moshier.
11443 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
11445         * sunrpc/etc.rpc (sgi_fam): Add.
11447 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
11449         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
11451 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
11453         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
11454         first is from a previous call.
11455         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
11457 2001-08-29  Andreas Schwab  <schwab@suse.de>
11459         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
11461 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
11463         * config.make.in (INSTALL_SCRIPT): Define.
11464         * Makeconfig (INSTALL_SCRIPT): Define.
11465         * Makerules (do-install-script): New macro to install scripts using
11466         INSTALL_SCRIPT.
11467         (install-bin-script): New rule to install scripts with
11468         do-install-script.
11469         (install-bin-script-nosubdir): New rule.
11470         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
11471         (distinfo-vars): Add $(install-bin-script).
11472         * Rules (others): Likewise.
11473         * Makefile (glibcbug): Install with install-bin-script.
11474         * debug/Makefile (xtrace): Likewise.
11475         (catchsegv): Likewise.
11476         * elf/Makefile (ldd): Likewise.
11477         * malloc/Makefile (mtrace): Likewise.
11478         * timezone/Makefile (tzselect): Likewise.
11480 2001-08-29  H.J. Lu  <hjl@gnu.org>
11482         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
11483         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
11484         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
11486 2001-08-29  Andreas Schwab  <schwab@suse.de>
11488         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
11490 2001-08-28  H.J. Lu  <hjl@gnu.org>
11492         * Makeconfig (combreloc-LDFLAGS): New variable.
11493         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
11494         * config.make.in (have-z-combreloc): New variable.
11495         * configure.in: Substitute libc_cv_z_combreloc.
11497 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
11499         * po/sv.po: Update from translation team.
11500         * po/fr.po: Likewise.
11501         * po/da.po: Likewise.
11503 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
11505         * Makerules: Fix a typo: MD% -> MD5.
11507 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
11509         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
11510         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
11512 2001-08-28  Andreas Jaeger  <aj@suse.de>
11514         * manual/libc-texinfo.sh: Add entry about free manuals.
11516         * manual/contrib.texi (Contributors): Fix cross reference.
11518         * manual/libc.texinfo (Copying): Include freemanuals.
11520         * manual/Makefile (appendices): Add freemanuals.
11522         * manual/freemanuals.texi: New file.
11523         Patch by Brian Youmans <3diff@gnu.org>.
11525         * manual/libm-err-tab.pl: Pretty print more platforms, print a
11526         smaller table.
11528         * manual/math.texi (Errors in Math Functions): Fix grammar, start
11529         table on separate page.
11530         Patch by Brian Youmans <3diff@gnu.org>.
11532 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
11534         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
11535         the connection went down after we first used it try to connect
11536         again and resend the message before printing to the console.
11537         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
11539 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
11541         * string/tst-strlen.c (main): Test strnlen (, -1) too.
11542         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
11543         bit set.
11545 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
11547         * iconv/strtab.c (searchstring): Use correct length for comparison.
11548         (strtabadd): Account total size correct if new string has old string as
11549         substring.
11551 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
11553         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
11555 2001-08-27  Andreas Jaeger  <aj@suse.de>
11557         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
11559         * math/libm-test.inc (j0_test): Add extra tests.
11560         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
11561         not x, in Hankel approximation.
11562         Patches by Stephen L Moshier.
11564 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
11566         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
11567         link_map.
11569         * configure.in: Fix test for .rela.dyn section.
11571         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
11573 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
11575         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
11576         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
11577         Pass type_class to _dl_lookup_*.
11578         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
11579         Pass around just type_class instead of noexec, noplt pair.
11580         (_dl_lookup_versioned_symbol): Likewise.
11581         (_dl_lookup_symbol_skip): Pass around just type_class instead of
11582         noexec, noplt pair.
11583         (_dl_lookup_versioned_symbol_skip): Likewise.
11584         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
11585         * elf/do-lookup.h (do_lookup): Likewise.
11586         * include/link.h (struct link_map): Replace noexec and noplt fields
11587         in l_lookup_cache with type_class field.
11588         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
11589         ELF_RTYPE_CLASS_COPY): Define.
11590         Adjust prototypes for _dl_lookup_symbol and
11591         _dl_lookup_versioned_symbol.
11592         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
11593         elf_machine_lookup_noexec_p): Remove.
11594         (elf_machine_type_class): Define.
11595         * sysdeps/arm/dl-machine.h: Likewise.
11596         * sysdeps/hppa/dl-machine.h: Likewise.
11597         * sysdeps/cris/dl-machine.h: Likewise.
11598         * sysdeps/i386/dl-machine.h: Likewise.
11599         * sysdeps/ia64/dl-machine.h: Likewise.
11600         * sysdeps/m68k/dl-machine.h: Likewise.
11601         * sysdeps/mips/mips64/dl-machine.h: Likewise.
11602         * sysdeps/mips/dl-machine.h: Likewise.
11603         * sysdeps/powerpc/dl-machine.h: Likewise.
11604         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11605         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11606         * sysdeps/sh/dl-machine.h: Likewise.
11607         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11608         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11610 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
11612         * manual/message.texi (Advanced gettext functions): Change
11613         description of plural forms for Slovak.
11614         Reported by Marcel Telka <marcel@telka.sk>.
11616         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
11617         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
11619 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
11621         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
11622         typo.  Patch by Florian La Roche <laroche@redhat.com>.
11624 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
11626         * include/link.h (struct link_map): Add l_lookup_cache element.
11627         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
11628         (RESOLVE_MAP): Likewise.
11629         (_dl_relocate_object): Remove cache initialization.
11630         * elf/dl-lookup.c: Rip out cache handling code.
11631         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
11632         declarations.
11634         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
11635         remove some __builtin_expect.
11636         (_dl_lookup_versioned_symbol): Likewise.
11638         * config.h.in: Add HAVE_Z_COMBRELOC.
11639         * configure.in: Add test for -z combreloc.
11641         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
11642         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
11643         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
11644         case to almost no code.
11646 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
11648         * po/tr.po: Update from translation team.
11650 2001-08-24  Andreas Jaeger  <aj@suse.de>
11652         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
11653         make clean works.
11655 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
11657         * elf/rtld.c (print_statistics): Printf % after percent values.
11658         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
11660         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
11661         don't have to compute the hash value and initialize current_value.
11662         Move reference_name variable to where it is needed.
11663         (_dl_lookup_versioned_symbol): Likewise.
11665 2001-08-24  Roland McGrath  <roland@frob.com>
11667         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
11668         Just test that strerror returns non-null for a few errno codes.
11670 2001-08-23  Roland McGrath  <roland@frob.com>
11672         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
11673         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
11675         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
11677         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
11678         __mach_reply_port.
11680 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
11682         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
11683         returns NULL.
11685         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
11686         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
11687         doesn't do it.
11688         * elf/rtld.c: Include <sys/param.h>.
11689         * elf/dl-reloc.c: Likewise.
11691 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
11693         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
11694         empty to prevent junk from being generated.
11695         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
11697 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
11699         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
11700         records.  Rename endrel to relative, initialize it to r, and use it
11701         in elf_machine_rel_relative calls.  Point r after relative relocs.
11703 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
11705         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
11706         of R_386_NONE.
11708 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
11710         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
11711         necessary.  Undefine newly defined macros at the end.
11712         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
11713         Rename from elf_machine_rel_relative.
11714         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
11715         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
11716         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
11717         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
11718         Likewise.
11719         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
11720         Likewise.
11721         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
11722         Fix argument types.
11723         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
11724         Fix argument types.
11725         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
11726         Likewise.  Fix argument types.
11727         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
11728         Likewise.  Fix argument types.
11729         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
11730         Fix argument types.
11731         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
11732         ElfW(Rel) in argument.
11733         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
11734         function.
11736 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
11738         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
11740 2001-08-24  Andreas Jaeger  <aj@suse.de>
11742         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
11743         Stephen L Moshier <moshier@mediaone.net>.
11745 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
11747         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
11748         first if RELCOUNT is set.
11750         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
11751         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
11752         elf_machine_rel_relative.
11753         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
11754         Minor optimizations.
11755         * sysdeps/arm/dl-machine.h: Likewise.
11756         * sysdeps/cris/dl-machine.h: Likewise.
11757         * sysdeps/hppa/dl-machine.h: Likewise.
11758         * sysdeps/i386/dl-machine.h: Likewise.
11759         * sysdeps/ia64/dl-machine.h: Likewise.
11760         * sysdeps/m68k/dl-machine.h: Likewise.
11761         * sysdeps/mips/dl-machine.h: Likewise.
11762         * sysdeps/powerpc/dl-machine.h: Likewise.
11763         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11764         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11765         * sysdeps/sh/dl-machine.h: Likewise.
11766         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11767         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11769 2001-08-23  Roland McGrath  <roland@frob.com>
11771         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
11773         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
11774         sysdeps/mach version.  Implement counting ("recursive") mutexes
11775         on top of cthreads mutexes.
11776         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
11778         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
11779         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
11780         (__libc_cleanup_region_start, __libc_cleanup_region_end,
11781         __libc_clean_end): Define these to call the cleanup function after
11782         normal exit when they're supposed to.
11784         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
11785         Take new first arg DOIT, a boolean saying whether to really install
11786         any cleanup handler.
11787         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
11788         (__libc_cleanup_end): Likewise.
11789         * sysdeps/generic/bits/libc-lock.h: Same changes.
11790         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
11791         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
11792         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
11793         Likewise.
11794         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
11795         * sysdeps/generic/bits/stdio-lock.h
11796         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
11798 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
11800         * elf/ldconfig.c (search_dir): Remove stale symlinks.
11802 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
11804         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
11805         functions.
11806         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
11807         lookups in cache.
11808         (_dl_lookup_versioned_symbol): Likewise.
11809         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
11810         relocation lookup.
11811         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
11812         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
11813         (lookup_cache, lookup_cache_versioned): Add declarations.
11815 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
11817         * stdlib/tst-random.c (main): Swap parameters in fail call.
11818         Patch by Pete Bevin <pete@petebevin.com>.
11820 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
11822         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
11824 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
11826         * malloc/obstack.c: Indent preprocessor directives.
11827         Patch by Jim Meyering <meyering@ascend.com>.
11829         * po/ja.po: Update from translation team.
11831 2001-08-23  Roland McGrath  <roland@frob.com>
11833         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
11835         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
11836         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
11838 2001-08-22  Roland McGrath  <roland@frob.com>
11840         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
11841         __libc_lock_define_recursive.
11842         * elf/dl-open.c: Don't declare it here any more.
11843         * elf/dl-close.c: Likewise.
11844         * elf/dl-lookup.c: Likewise.
11845         * elf/dl-iteratephdr.c: Likewise.
11846         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
11847         __libc_lock_unlock_recursive.
11848         * elf/dl-close.c (_dl_close): Likewise
11849         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
11850         * elf/dl-open.c (_dl_open): Likewise
11852         * sysdeps/generic/bits/libc-lock.h
11853         (__libc_lock_define_recursive): New macro.
11854         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
11855         (_IO_lock_lock): Use __libc_lock_lock_recursive.
11856         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
11858         * conform/conformtest.pl (checknamespace): Sort the output list.
11860         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
11861         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
11862         definitions conditional on [__USE_XOPEN].
11864         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
11865         these unconditionally, not only use [__USE_BSD], so as to match
11866         the sysdeps/unix/sysv/linux files.
11868 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
11870         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
11871         avoid warnings.
11873         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
11874         DL_LOOKUP_ADDRESS.
11876 2001-08-22  Roland McGrath  <roland@frob.com>
11878         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
11879         conditionalization of sa_handler/sa_sigaction member types to
11880         match the sysdeps/unix/sysv/linux file.
11882 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
11884         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
11885         symbol sizes a bit better.
11887         * sysdeps/ia64/strncpy.S: Complete rewrite.
11888         Contributed by Jakub Jelinek <jakub@redhat.com>.
11890         * string/stratcliff.c (main): Add strncpy test.
11892 2001-08-22  Roland McGrath  <roland@frob.com>
11894         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
11895         and don't declare unsetenv or _environ directly.
11896         (unsetenv): Return int, not void.  Use __environ instead of _environ.
11898 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
11900         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
11901         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
11902         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
11903         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
11904         test for cmsg struct size.
11906 2001-04-23  Paul Eggert  <eggert@twinsun.com>
11908         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
11909         Rename __argc to ___argc in prototypes to avoid compatibility
11910         problems with systems that reserve the identifier "__argc".
11911         Similarly for __argv.
11913 2001-08-21  Roland McGrath  <roland@frob.com>
11915         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
11917         * mach/Makefile (tests): Removed.
11918         * mach/hello.c: File removed.
11920 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
11922         * po/sv.po: Update from translation team.
11924         * stdio-common/vfscanf.c: Fix handling of %l[].
11925         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
11927         * libio/Makefile (tests): Add tst-sscanf.
11928         * libio/tst-sscanf.c: New file.
11930         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
11931         * malloc/mtrace.c (tr_where): dli_sname always points to a
11932         non-empty string if != NULL.
11933         Reported by Tim Janik <timj@gtk.org>.
11935 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
11937         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
11938         buf.  Free resources on failure.
11939         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
11940         (makefd_xprt): Likewise.
11941         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
11942         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
11943         * sunrpc/auth_unix.c (authunix_create): Likewise.
11945 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
11947         * string/strnlen.c: Remove.
11948         * sysdeps/generic/strnlen.c: New file.
11949         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
11951 2001-08-21  Roland McGrath  <roland@frob.com>
11953         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
11954         as a macro, not an extern inline function.
11956         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
11957         * Versions.def (libc): Add GLIBC_2.2.5 set.
11958         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
11959         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
11961 2001-08-20  Roland McGrath  <roland@frob.com>
11963         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
11964         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
11966 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
11968         * string/bits/string2.h: Remove strnlen optimization here.
11969         * sysdeps/i386/i486/bits/string.h: Add it here.
11971 2001-08-21  Wolfram Gloger  <wg@malloc.de>
11973         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
11975 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
11977         * po/gl.po: Update from translation team.
11979 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
11981         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
11982         * misc/err.c (convert_and_print): Likewise.
11984         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
11985         function calls.
11987 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11989         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
11990         change of the gregset_t type.
11991         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
11993 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
11995         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
11997 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
11999         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12001         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
12003 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
12005         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12006         before calling the cthreads initialization code.
12008 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12010         * argp/argp-help.c: Fix two problems introduced in last change.
12012         * include/dirent.h: Include <dirstream.h> first.
12014 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
12016         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12018         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12019         * sunrpc/xdr_rec.c: Likewise.
12020         * sunrpc/xdr_mem.c: Likewise.
12021         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12022         * sunrpc/rpc_cmsg.c: Likewise.
12023         * sunrpc/getrpcport.c (getrpcport): Likewise.
12024         * sunrpc/clnt_simp.c (callrpc): Likewise.
12025         * sunrpc/clnt_gen.c (clnt_create): Likewise.
12026         * string/envz.c: Likewise.
12028         * po/ko.po: Update from translation team.
12030         * argp/argp-help.c: Handle wide oriented stderr stream.
12032 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
12034         * sysdeps/generic/strtol.c: Little optimizations.  Add some
12035         __builtin_expect.
12037         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
12039         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
12040         * wcsmbs/wcwidth.c (wcwdith): Likewise.
12041         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
12043         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
12045         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
12047         * time/time.h (struct timespec): Use __time_t for tv_sec element.
12049         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
12050         wchar_t for function declarations and defintions.
12052         * misc/sys/select.h: Define __need_time_t before including <time.h>.
12053         Define suseconds_t if it hasn't happened yet.
12055         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
12057         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
12059         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
12060         <stddef.h>.
12062         * conform/data/stddef.h-data: Remove wint_t.
12064         * conform/conformtest.pl: Change namespace test to take #undef
12065         lines into account.
12067         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
12069         * conform/data/sys/socket.h-data: Add sockatmark.
12071 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12073         * io/fts.c: Update from recent BSD source.
12075 2001-08-17  Roland McGrath  <roland@frob.com>
12077         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
12078         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
12079         Likewise.
12081 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12083         * locale/duplocale.c (__duplocale): Also initialize the special
12084         __ctype_* elements.
12086         * conform/data/netdb.h-data: Adjust gai_strerror return type.
12088 2001-08-17  Andreas Jaeger  <aj@suse.de>
12090         * misc/getpass.c: Include wchar.h for prototypes.
12091         * malloc/obstack.c: Likewise.
12093 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12095         * sunrpc/svc_simple.c (universal): Use __write instead of write.
12097         * wcsmbs/wcscoll.c: Also define __wcscoll.
12098         * include/wchar.h: Declare __wcscoll.
12100         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
12101         * libio/vwprintf.c: Likewise.
12102         * libio/wprintf.c: Likewise.
12104         * iconv/gconv_cache.c: Use __munmap instead of munmap.
12106 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
12108         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
12109         instead of mbrtowc.
12110         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
12111         wcslen, and __wcscoll instead of wcscoll.
12113         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
12115         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
12116         __getuid instead of getuid.
12118         * stdio-common/perror.c (perror): Use __close instead of close.
12119         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
12120         * libio/freopen.c (freopen): Likewise.
12121         * libio/freopen64.c (freopen64): Likewise.
12123         * libio/tst-ungetwc2.c (main): Define str const.
12125         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
12126         * libio/fwprintf.c: Also define __fwprintf.
12127         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
12128         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
12129         * assert/assert-perr.c: Likewise.
12130         * assert/assert.c: Likewise.
12131         * gmon/gmon.c: Likewise.
12132         * inet/rcmd.c: Likewise.
12133         * malloc/obstack.c: Likewise.
12134         * misc/err.c: Likewise.
12135         * misc/error.c: Likewise.
12136         * misc/getpass.c: Likewise.
12137         * posix/getopt.c: Likewise.
12138         * resolv/res_hconf.c: Likewise.
12139         * stdio-common/perror.c: Likewise.
12140         * stdio-common/psignal.c: Likewise.
12141         * stdlib/fmtmsg.c: Likewise.
12142         * sunrpc/auth_unix.c: Likewise.
12143         * sunrpc/clnt_perr.c: Likewise.
12144         * sunrpc/clnt_tcp.c: Likewise.
12145         * sunrpc/clnt_udp.c: Likewise.
12146         * sunrpc/clnt_unix.c: Likewise.
12147         * sunrpc/svc_simple.c: Likewise.
12148         * sunrpc/svc_tcp.c: Likewise.
12149         * sunrpc/svc_udp.c: Likewise.
12150         * sunrpc/svc_unix.c: Likewise.
12151         * sunrpc/xdr.c: Likewise.
12152         * sunrpc/xdr_array.c: Likewise.
12153         * sunrpc/xdr_rec.c: Likewise.
12154         * sunrpc/xdr_ref.c: Likewise.
12155         * sysdeps/generic/wordexp.c: Likewise.
12157         * po/it.po: Update from translation team.
12159         * misc/err.c: Handle wide oriented stderr stream.
12161 2001-08-14  Tom Rix  <trix@redhat.com>
12163         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
12164         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
12166 2001-08-13  Tom Rix  <trix@redhat.com>
12168         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
12169         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
12170         and __intptr_t.
12172 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12174         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
12175         Store the access registers to the ucontext structure.
12176         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
12177         Likewise.
12179         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
12180         Load the access registers from the ucontext structure.
12181         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
12182         Likewise.
12184         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
12185         offsets to the new ucontext layout.
12186         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
12188         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
12189         of the ucontext structure.
12190         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12192 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
12194         * misc/error.c (error): Handle wide oriented stderr stream correctly.
12195         (error_at_line): Likewise.
12197         * stdio-common/perror.c (perror): Implement according to standard.
12198         The stream orientation must not be changed if the stream was not
12199         oriented before the call.
12200         * stdio-common/Makefile (tests): Add tst-perror.
12201         * stdio-common/tst-perror.c: New file.
12204 See ChangeLog.12 for earlier changes.