Update.
[glibc.git] / ChangeLog
blob70a07d1410365e4bdbb89d94419f59ee6c1207f1
1 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
3         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
4         unconditionally.
5         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
6         check.
7         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
9 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
11         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
12         check to close_and_out close.  Replace return NULL statements where
13         fd might be >= 0 with goto close_and_out.  Close the file descriptor
14         when it is no longer needed.
16 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
18         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
19         string constants.
20         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
21         * sysdeps/arm/dl-machine.h: Likewise.
22         * sysdeps/cris/dl-machine.h: Likewise.
23         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
24         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
26 2002-08-28  Roland McGrath  <roland@redhat.com>
28         * Makeconfig (default_cflags): Revert unintended change.
30 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
32         * version.h (VERSION): Bump to 2.2.91.
34         * configure.in: Disable TLS support by default for now.
36         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
38         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
39         warnings.
41         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
43         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
44         fprintf/fwprintf calls.
46 2002-08-28  Roland McGrath  <roland@redhat.com>
48         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
49         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
51         * locale/setlocale.c: Declare postload functions weak.
53         * elf/tst-tls1-static.c: New file.
54         * elf/tst-tls2-static.c: New file.
55         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
57         Make uselocale support static linking.
58         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
59         This file again just defines _nl_C_locobj.
60         (_nl_C_locobj): Use a categories.def iterator in the initializer.
61         * locale/global-locale.c: New file.  Define _nl_global_locale here,
62         using all weak references in the initializer.
63         * locale/Makefile (aux): Add global-locale.
64         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
65         these unconditional, along with the tsd decl.
66         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
67         Define it under these conditions.
68         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
69         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
70         `extern __thread struct locale_data *const *'.
71         [NL_CURRENT_INDIRECT]
72         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
73         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
74         the thread variable _nl_current_LC_FOO and also a special absolute
75         symbol _nl_current_LC_FOO_used.
76         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
77         Set each _nl_current_LC_FOO symbol to point into the new locale,
78         using weak references to test if _nl_current_LC_FOO_used was linked in.
79         * locale/setlocale.c [! SHARED]: Replace this conditional ...
80         [NL_CURRENT_INDIRECT]: ... with this one.
81         (_nl_current, _nl_C): Variables removed.
82         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
83         weak references to _nl_current_LC_FOO_used.
84         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
85         (free_category): New function, broken out of ...
86         (free_mem): ... here.  Call that.
87         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
88         instead of a loop.
90         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
91         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
92         it is already absolute.
94         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
95         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
96         [$(build-static) = yes] (tests-static): New variable.
97         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
99 2002-08-26  Christoph Hellwig  <hch@lst.de>
101         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
102         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
104 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
106         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
108         * sysdeps/s390/Dist: Add bits/link.h.
110         * sysdeps/sh/Dist: New file.
112         * sysdeps/ia64/Dist: Add ia64libgcc.S.
114         * sysdeps/wordsize-32/Dist: New file.
116         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
117         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
118         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
120         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
121         sys/personality.h.
123         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
124         sparc/dl-brk.S.
126         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
128         * sysdeps/unix/bsd/sun/Dist: New file.
130         * sysdeps/unix/bsd/osf/Dist: New file.
132         * sysdeps/unix/bsd/hp/Dist: New file.
134         * sysdeps/unix/arm/Dist: New file.
136         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
138         * sysdeps/mach/hurd/Dist: Add set-init.c.
140         * sysdeps/i386/Dist: Add bits/link.h.
142         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
144         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
146         * locale/Makefile (distribute): Add hashval.h.
148         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
150         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
152         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
153         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
154         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
155         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
156         implementations.
157         * libio/stdio.h: Likewise.
158         * locale/locale.h: Likewise.
159         * math/math.h: Likewise.
160         * math/bits/mathcalls.h: Likewise.
161         * setjmp/setjmp.h: Likewise.
162         * signal/signal.h: Likewise.
163         * stdlib/stdlib.h: Likewise.
164         * string/string.h: Likewise.
165         * time/time.h: Likewise.
166         * wcsmbs/wchar.h: Likewise.
167         * wctype/wctype.h: Likewise.
169 2002-08-28  Roland McGrath  <roland@redhat.com>
171         * locale/tst-C-locale.c (run_test): Remove __ from function names.
173 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
174             Roland McGrath <roland@redhat.com>
176         * locale/hashval.h (compute_hashval): Use prototype defn.
177         (hashval_t): New macro, defined to unsigned long int
178         if not already defined.
179         (compute_hashval): Return hashval_t instead of unsigned long int.
180         * locale/loadarchive.c (hashval_t): New macro.
181         * locale/programs/locarchive.c: Include hashval.h directly instead
182         of simple-hash.h.
183         (compute_hashval, hashval_t): Define these macros first.
184         (insert_name): Use archive_hashval instead of compute_hashval.
185         (add_locale, delete_locales_from_archive): Likewise.
187 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
189         * locale/programs/locarchive.c (insert_name): Suppress warnings about
190         hash collisions if be_quiet.
192 2002-08-27  Roland McGrath  <roland@redhat.com>
194         * locale/locale.h (__newlocale, __duplocale, __freelocale,
195         __uselocale): Don't declare these any more.
196         * include/locale.h (__uselocale): Declare here instead, using __typeof.
198         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
199         and treat it as an EOF return.
200         * sysdeps/unix/readdir_r.c: Likewise.
202         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
203         From Alexandre Oliva <aoliva@redhat.com>.
204         * sysdeps/gnu/errlist-compat.c: Regenerated.
206 2002-08-27  Brian Youmans  <3diff@gnu.org>
208         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
209         wording at request of copyright holder Stephen Moshier.
210         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
211         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
212         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
213         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
214         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
215         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
216         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
217         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
218         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
219         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
220         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
221         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
222         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
223         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
225 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
227         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
228         * ctype/ctype-extn.c (isblank_l): Add weak alias.
229         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
230         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
231         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
232         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
233         * wctype/iswctype_l.c (iswctype_l): Likewise.
235 2002-08-27  Roland McGrath  <roland@redhat.com>
237         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
239         * ctype/ctype.h (__exctype_l): Don't declare __ name.
240         * stdlib/stdlib.h: Don't declare __*_l names.
241         * include/stdlib.h: Declare them here instead.
242         * include/string.h: Don't declare __*_l names.
243         * string/string.h: Declare them here instead.
244         * time/time.h: Don't declare __*_l names.
245         * include/time.h: Declare them here instead.
246         * wcsmbs/wchar.h: Don't declare __*_l names.
247         * include/wchar.h: Declare them here instead.
248         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
249         Don't declare __*_l names.
250         * include/wctype.h: Declare them here instead.
251         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
252         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
253         * locale/langinfo.h: Don't declare __nl_langinfo_l.
254         * include/langinfo.h: Declare it here with __typeof.
256         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
257         instead, taking an extra __locale_t argument.
258         * time/Makefile (routines): Add strptime_l.
259         * time/time.h (__strptime_l, strptime_l): Declare them.
260         * time/strptime_l.c: New file.
262         * time/time.h (__strftime_l, strftime_l): Declare them.
263         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
264         * time/strftime_l.c: New file.
265         * time/wcsftime_l.c: New file.
266         * time/Makefile (routines): Add strftime_l, wcsftime_l.
267         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
268         strftime_l, wcsftime_l.
269         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
270         or __wcsftime_l instead, taking an extra __locale_t argument.
272         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
273         (libc: GLIBC_2.3): ... here.
275 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
277         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
279         * Makefile (distribute): Add LICENSES.
281         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
282         sys/debugreg.h.
284         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
286         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
288         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
290         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
292         * sysdeps/mach/hurd/alpha/Dist: New file.
294         * sysdeps/arm/Dist: Add bits/link.h.
296         * sunrpc/Makefile: Distribute thrsvc.
298         * stdio-common/Makefile: Remove more left-overs from old stdio.
300         * include/linewrap.h: Removed.
302         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
304         * intl/Makefile (distribute): Add plural-eval.c.
306 2002-08-27  Roland McGrath  <roland@redhat.com>
308         * manual/sysinfo.texi (Mount Information): Correct file name to macro
309         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
310         Say mtab is in either /var/run or /etc.
312 2002-08-26  Roland McGrath  <roland@redhat.com>
314         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
315         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
317         * sysdeps/gnu/Versions: New file.
318         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
319         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
320         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
321         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
322         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
323         and _sys_nerr_internal instead of anything else.  Make it include
324         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
325         Make it emit some asm magic if [EMIT_ERR_MAX].
326         * sysdeps/gnu/errlist.c: Regenerated.
327         * sysdeps/gnu/errlist-compat.awk: New file.
328         * sysdeps/gnu/errlist-compat.c: New file (generated).
329         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
330         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
331         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
332         (SYS_ERRLIST, SYS_NERR): Macros removed.
333         (sys_nerr, _sys_nerr): Remove these weak aliases.
334         * sysdeps/unix/sysv/linux/errlist.c: File removed.
335         * sysdeps/unix/sysv/linux/errlist.h: File removed.
336         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
338         * include/libc-symbols.h (declare_symbol): New macro.
339         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
340         * configure.in: New check to define it.
341         * configure: Regenerated.
343 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
345         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
346         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
348         * Make-dist: Remove traces of old stdio.
349         * Makeconfig: Likewise.
351         * locale/Makefile (localedef-aux): New variable.  Only md5
352         assigned to it.  These files are not ddistributed in this directory.
354         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
355         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
356         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
358         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
360         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
361         set h_errno to NO_RECOVERY [PR libc/4360].
363 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
365         * libio/Makefile (tests): Add bug-fopena+.
366         * libio/bug-fopena+.c: New file.
367         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
368         file for _IO_IS_APPENDING if file isn't opened for reading, too.
370         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
372         * locale/xlocale.c: Fix the last change.  The variable still has
373         to end in _data.
374         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
375         (__libc_tsd_set): Add _data prefix to variable name.
377 2002-08-26  Roland McGrath  <roland@redhat.com>
379         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
380         macro with inline function.
381         (sigset_get_old_mask): Likewise.
382         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
383         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
384         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
385         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
386         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
387         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
388         values.
389         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
390         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
392 2002-07-06  Bruno Haible  <bruno@clisp.org>
394         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
395         sigset_get_old_mask): Make it work with larger sigset_t.
396         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
397         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
398         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
400 2002-08-26  Roland McGrath  <roland@redhat.com>
402         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
403         * manual/filesys.texi (File Times): Document lutimes and futimes.
404         * misc/Makefile (routines): Add them.
405         * misc/Versions (libc: GLIBC_2.3): Likewise.
406         * sysdeps/generic/lutimes.c: New file.
407         * sysdeps/generic/futimes.c: New file.
408         * sysdeps/mach/hurd/lutimes.c: New file.
409         * sysdeps/mach/hurd/futimes.c: New file.
411         * manual/filesys.texi (File Times): Add explicit note about null
412         pointer argument to utimes.
414 2002-08-26  Roland McGrath  <roland@frob.com>
416         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
417         (__ifreq): Add a cast.  Remove an unused variable.
419         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
420         _HURD_THREADVAR_LOCALE.
422 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
424         * posix/regexec.c (re_search_stub): Return correct match length
425         if start != 0.
426         * posix/bug-regex10.c: New test.
427         * posix/Makefile (tests): Add bug-regex10.
429 2002-08-26  Brian Youmans  <3diff@gnu.org>
431         * COPYING.LIB: Replaced with fresh copy from
432         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
433         suggested copying permission notice now says version 2.1 instead
434         of version 2.
436         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
437         from Library GPL.
438         * crypt/crypt_util.c: Likewise.
439         * crypt/ufc.c: Likewise.
440         * elf/dl-conflict.c: Likewise.
441         * elf/dl-iteratephdr.c: Likewise.
442         * iconv/iconvconfig.h: Likewise.
443         * malloc/arena.c: Likewise.
444         * malloc/hooks.c: Likewise.
445         * malloc/malloc.c: Likewise.
446         * posix/glob/Makefile.ami: Likewise.
447         * posix/glob/Makefile.in: Likewise.
448         * stdlib/gmp-impl.h: Likewise.
449         * stdlib/gmp.h: Likewise.
450         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
451         * sysdeps/generic/strnlen.c: Likewise.
452         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
453         * sysdeps/mach/hurd/recvmsg.c: Likewise.
454         * sysdeps/mach/hurd/sendmsg.c: Likewise.
455         * sysdeps/mach/hurd/spawni.c: Likewise.
456         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
457         * sysdeps/mach/powerpc/sysdep.h: Likewise.
458         * sysdeps/mach/powerpc/thread_state.h: Likewise.
459         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
460         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
461         * sysdeps/x86_64/gmp-mparam.h: Likewise.
463         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
464         Lesser GPL copying permission notice from 2 to 2.1.
465         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
466         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
467         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
468         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
469         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
470         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
471         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
472         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
473         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
474         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
475         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
476         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
477         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
478         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
479         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
480         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
481         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
482         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
483         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
484         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
485         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
486         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
487         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
488         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
489         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
490         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
491         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
492         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
493         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
494         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
495         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
496         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
497         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
498         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
499         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
500         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
501         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
502         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
503         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
504         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
505         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
506         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
507         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
508         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
509         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
510         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
511         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
512         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
513         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
514         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
515         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
516         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
517         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
518         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
519         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
521         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
522         Moshier and Lesser GPL copying permission notice, per license from
523         Moshier.
524         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
525         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
526         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
527         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
528         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
529         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
530         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
531         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
532         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
533         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
534         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
535         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
536         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
537         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
539         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
540         notice, per license from copyright holder Stephen Moshier.
541         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
542         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
543         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
544         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
545         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
546         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
547         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
548         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
549         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
551 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
553         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
554         (shared-only-routines): Likewise.
556 2002-08-26  Roland McGrath  <roland@redhat.com>
558         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
559         name of "", store a null pointer instead.
561         * configure.in (elf): Set to yes for freebsd*, netbsd*.
562         * configure: Regenerated.
564         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
565         Initialize this instead of __libc_tsd_LOCALE_data.
567         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
568         ptsname_r to EINVAL.
570         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
572         * rt/Makefile: Revert last change, it was inappropriate to presume aio
573         implementations depend on pthreads.
574         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
575         * rt/tst-aio64.c (do_test): Likewise.
576         * rt/tst-aio2.c (do_test): Likewise.
577         * rt/tst-aio3.c (do_test): Likewise.
578         * rt/tst-aio4.c (do_test): Likewise.
579         * rt/tst-aio5.c (do_test): Likewise.
580         * rt/tst-aio6.c (do_test): Likewise.
581         * rt/tst-aio7.c (do_test): Likewise.
583         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
584         void so as to avoid compiler warnings.
586         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
587         _IO_wide_data_FD, which is never used here.
589         * libio/iofread.c
590         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
591         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
592         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
594         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
595         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
597         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
598         (closelog): Likewise.
600 2002-07-06  Bruno Haible  <bruno@clisp.org>
602         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
604         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
605         * sysdeps/unix/alpha/pipe.S: ... here.
606         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
608         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
610         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
611         * sysdeps/unix/i386/fork.S: Likewise.
612         * sysdeps/unix/i386/pipe.S: Likewise.
613         * sysdeps/unix/i386/wait.S: Likewise.
615         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
616         * sysdeps/unix/arm/fork.S: Likewise.
618         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
619         arguments.
620         (DO_CALL): Swap argument order.
621         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
622         arguments.
623         (DO_CALL): Swap argument order.
624         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
625         arguments.
626         (DO_CALL): Swap argument order.
627         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
628         arguments.
629         (DO_CALL): Swap argument order.
630         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
631         arguments.
632         (DO_CALL): Swap argument order.
633         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
634         arguments.
635         (DO_CALL): Swap argument order.
636         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
637         arguments.
638         (DO_CALL): Swap argument order.
640         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
641         (L): Define right for ELF.
642         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
643         Now defined in sysdeps/i386/sysdep.h.
645         * sysdeps/posix/readv.c: Ansify function definition.
646         * sysdeps/posix/writev.c: Likewise.
648         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
649         have the same size. Avoid direct cast from size_t to off_t.
651         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
652         nul byte in entry[n].ut_user.
653         (simulate_logout): Likewise.
655         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
656         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
657         existence of corresponding members of 'struct utmp'.
658         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
659         !_HAVE_UT_TYPE.
661         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
662         allocate a buffer of at least BUFSIZ bytes, not just of
663         sizeof (struct dirent).
665         * sysdeps/generic/glob.c: Include <limits.h>.
666         (NAME_MAX): Define a fallback.
667         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
668         stack.
669         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
670         (main): Allocate enough room for a 'struct dirent64' on the stack.
671         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
672         'struct dirent'.
674         * sysdeps/unix/sysv/linux/init-first.c: Don't include
675         kernel-features.h.
677         * inet/htontest.c: Include <sys/types.h>.
679         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
681         * include/sys/sysctl.h: Comment fix.
683         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
684         _dl_load_lock.
685         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
687         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
689         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
690         (__getpeername): New alias.
691         (__getsockname): New alias.
692         (__socket): New alias.
694         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
696         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
697         (__fcntl_internal): New alias.
698         (__profil): New alias.
700 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
702         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
703         entry was for getaddr* lookup or not.  Add only matching cache
704         entry.  Change all callers [PR libc/4317].
706         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
707         finding the read position [PR libc/4265].
708         * libio/Makefile (tests): Add bug-rewind2.
709         * libio/bug-rewind2.c: New file.
711         * libio/bug-rewind.c: Fix creation of temp file.
713 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
715         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
716         neither SUCCESS nor TRYAGAIN [PR libc/4259].
717         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
718         to ENOENT if no entry is found.
719         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
720         failure.
721         * nis/nss_compat/compat-initgroups.c: Likewise.
722         * nis/nss_compat/compat-pwd.c: Likewise.
723         * nis/nss_compat/compat-spwd.c: Likewise.
724         * nis/nss_nis/nis-alias.c: Likewise.
725         * nis/nss_nis/nis-ethers.c: Likewise.
726         * nis/nss_nis/nis-grp.c: Likewise.
727         * nis/nss_nis/nis-hosts.c: Likewise.
728         * nis/nss_nis/nis-initgroups.c: Likewise.
729         * nis/nss_nis/nis-netgrp.c: Likewise.
730         * nis/nss_nis/nis-network.c: Likewise.
731         * nis/nss_nis/nis-proto.c: Likewise.
732         * nis/nss_nis/nis-publickey.c: Likewise.
733         * nis/nss_nis/nis-pwd.c: Likewise.
734         * nis/nss_nis/nis-rpc.c: Likewise.
735         * nis/nss_nis/nis-service.c: Likewise.
736         * nis/nss_nis/nis-spwd.c: Likewise.
737         * resolv/nss_dns/dns-host.c: Likewise.
738         * resolv/nss_dns/dns-network.c: Likewise.
739         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
740         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
741         * nis/nss_nisplus/nisplus-grp.c: Likewise.
742         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
743         * nis/nss_nisplus/nisplus-network.c: Likewise.
744         * nis/nss_nisplus/nisplus-proto.c: Likewise.
745         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
746         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
747         * nis/nss_nisplus/nisplus-service.c: Likewise.
748         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
749         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
750         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
751         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
752         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
754         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
755         declaring __restore and __restore_rt as hidden (if possible).
757 2002-08-25  Roland McGrath  <roland@redhat.com>
759         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
761         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
762         (getutent_r_file, internal_getut_r): Updated all callers.
763         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
765 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
767         * locale/programs/locale.c: Don't print aliases for non-existing
768         locales for 'locale -a'.
769         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
771 2002-07-19  H.J. Lu  <hjl@gnu.org>
773         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
775 2002-07-16  H.J. Lu  <hjl@gnu.org>
777         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
778         sys/personality.h.
779         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
781 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
783         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
784         not moved ahead of the fputs call.
785         * elf/tst-tlsmod2.c (in_dso): Likewise.
786         * elf/tst-tlsmod3.c (in_dso2): Likewise.
787         * elf/tst-tlsmod4.c (in_dso): Likewise.
789 2002-08-25  Andreas Schwab  <schwab@suse.de>
791         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
793 2002-08-25  Roland McGrath  <roland@redhat.com>
795         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
796         resetting handler, to avoid the possibility of a spurious SIGALRM
797         delivered to the user's handler.
798         Reported by Amit D. Chaudhary <amitc@brocade.com>,
800         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
801         set -fkeep-inline-functions, which is not needed for the current file.
803         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
804         (_dl_setup_hash): Add attribute_hidden.
805         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
806         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
807         (_dl_new_object, _dl_map_object_deps): Likewise.
808         (_dl_map_object_deps_internal): Remove decl.
809         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
811         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
812         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
813         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
814         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
815         instead relying on the compiler to produce only GOTOFF variable refs.
817 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
819         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
821         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
822         inline to avoid defining it in every file which includes this header.
824         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
825         defining DONT_USE_BOOTSTRAP_MAP.
827         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
828         * libio/tst-mmap-setvbuf.c (main): Likewise.
829         * libio/tst-widetext.c (main): Likewise.
831         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
832         message.
833         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
834         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
836         * sysdeps/i386/elf/configure.in: Unconditionally define
837         PI_STATIC_AND_HIDDEN.
838         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
839         PI_STATIC_AND_HIDDEN is defined as well.
840         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
842 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
844         * sysdeps/ia64/bzero.S: Define __bzero as well.
846         * locale/programs/charmap.c (charmap_new_char): Don't use
847         ULONG_MAX as maximum UCS4 value.
849         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
851         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
853         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
854         * malloc/malloc.c (mALLINFo): Likewise.
856         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
858         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
859         examining result of _IO_do_flush call.
861         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
862         Use prec not spec when sizing buffers.
864         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
865         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
866         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
867         * stdio-common/vfscanf.c (inchar): Likewise.
868         * misc/efgcvt_r.c (fcvt_r): Likewise.
869         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
870         * elf/readlib.c (process_file): Likewise.
871         * elf/sprof.c (load_profdata): Likewise.
872         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
873         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
874         * locale/programs/charmap.c (charmap_read): Likewise.
875         * libio/fileops.c: Likewise.
876         * libio/fmemopen.c: Likewise.
877         * stdlib/strtod.c: Likewise.
878         * elf/dl-load.c: Likewise.
879         * iconv/iconvconfig.c: Likewise.
880         * iconv/iconv_prog.c (process_block): Likewise.
881         * elf/rtld.c (dl_main): Likewise.
883         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
884         macro to calm down the compiler.
886         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
888         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
890         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
891         placement of errno definition.
892         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
893         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
894         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
895         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
896         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
898         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
899         from 1024 to 65536, to avoid buffer overrun.
901 2002-08-16  Paul Eggert  <eggert@twinsun.com>
903         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
904         from 1024 to 65536, to avoid buffer overrun.
905         * resolv/res_query.c (MAXPACKET): Likewise.
907 2002-08-24  Andreas Jaeger  <aj@suse.de>
909         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
911 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
913         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
914         two52 locally.
915         (log2): Likewise.
916         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
917         Patch by Simon Gee <simong@agile.tv>.
919         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
920         Prefer reading /proc/stat since it is more uniform across
921         architectures.
923         * manual/texinfo.tex: Update to latest official version.
925         * sysvipc/sys/shm.h: Remove SHMLBA definition.
926         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
927         * sysdeps/gnu/bits/shm.h: Likewise.
928         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
929         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
930         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
931         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
932         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
933         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
934         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
935         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
936         since this is what the kernel says.
938         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
939         since ssize_t is needed as well.  Replace const with __const.
941 2002-08-23  Roland McGrath  <roland@redhat.com>
943         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
944         __malloc_hook, __realloc_hook, __memalign_hook,
945         __after_morecore_hook): Variable definitions moved to ...
946         * malloc/malloc.c: ... here, so as to be before all references.
948         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
949         global variable reference in an unused asm parameter, to ensure the
950         compiler has set up the GOT register before we use it.
952         * malloc/hooks.c: Move variable definitions ahead of uses.
953         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
954         initializers that make reference to variables they define.
956 2002-08-23  Andreas Jaeger  <aj@suse.de>
958         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
959         alloca, free, qsort.
961         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
963         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
964         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
966         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
967         <hch@lst.de>.
968         * sysdeps/generic/fgetxattr.c: New file.
969         * sysdeps/generic/flistxattr.c: New file.
970         * sysdeps/generic/fremovexattr.c: New file.
971         * sysdeps/generic/fsetxattr.c: New file.
972         * sysdeps/generic/getxattr.c: New file.
973         * sysdeps/generic/listxattr.c: New file.
974         * sysdeps/generic/lgetxattr.c: New file.
975         * sysdeps/generic/llistxattr.c: New file.
976         * sysdeps/generic/lremovexattr.c: New file.
977         * sysdeps/generic/lsetxattr.c: New file.
978         * sysdeps/generic/removexattr.c: New file.
979         * sysdeps/generic/setxattr.c: New file.
980         * misc/Makefile (headers): Add sys/xattr.h.
981         (routines): Add *xattr calls.
982         * misc/Versions: Add *xattr calls with version 2.3.
983         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
984         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
985         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
986         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
987         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
988         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
989         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
990         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
992 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
994         * sysdeps/powerpc/elf/libc-start.c
995         (__cache_line_size): Declare.
996         (__aux_init_cache): New.
997         (__libc_start_main): Change type of `auxvec' parameter to
998         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
999         __aux_init_cache.
1000         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
1001         (__cache_line_size): Declare.
1002         (__aux_init_cache): New.
1003         (DL_PLATFORM_INIT): Define.
1004         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
1005         value to select the correct stride for dcbz.
1007 2002-08-22  Andreas Jaeger  <aj@suse.de>
1009         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
1010         shmat.
1012 2002-08-22  Roland McGrath  <roland@redhat.com>
1014         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
1015         position indicated by locrectab against file bounds before rounding to
1016         page size.  In mapping loop, always set TO before breaking out of
1017         contiguous range coalescing loop.
1019         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
1020         (or MAP_COPY if available) instead of MAP_SHARED.
1022         * scripts/firstversions.awk: When encountering a version newer than
1023         the specified earliest version, be sure to emit the specified earliest
1024         version first if any renaming of an older version to that has been.
1026 2002-08-21  Roland McGrath  <roland@redhat.com>
1028         * configure.in: Make GCC version check require 3.[2-9]* and no others.
1029         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
1030         (Configuring and compiling): Don't mention older GCC versions any more.
1031         * INSTALL: Regenerated.
1033         * manual/install.texi (Configuring and compiling, Installation,
1034         Running make install, Linux): Linux -> GNU/Linux where appropriate.
1036         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
1037         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
1038         and with noinline otherwise.  Remove hack alloca use to prevent
1039         inlining, we can ask for it explicitly nowadays.
1041         * dlfcn/bug-dlsym1.c: New file.
1042         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
1043         * dlfcn/Makefile (distribute): Add them.
1044         (tests): Add bug-dlsym1 here.
1045         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
1046         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
1047         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
1049 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
1051         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
1052         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
1053         before relocation.
1054         (_dl_start): Don't use local bootstrap_map variable if
1055         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
1056         pass bootstrap_map to _dl_start_final in this case either.  Don't
1057         pass start_time to _dl_start_final ever.
1058         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
1060         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
1061         This cripples the scope lists necessary to search for symbols in
1062         dependencies which are not in the global scope.
1064         * include/setjmp.h (__libc_longjmp): Add declaration.
1066 2002-08-21  Andreas Jaeger  <aj@suse.de>
1068         * sysdeps/x86_64/_mcount.S: Fix assembler.
1070         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
1071         with biarch support.
1073 2002-08-21  Andreas Jaeger  <aj@suse.de>
1075         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
1077         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
1079         * sysdeps/x86_64/machine-gmon.h: New file.
1080         * sysdeps/x86_64/_mcount.S: New file.
1082 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
1084         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
1085         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
1086         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
1087         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
1088         to TL_INIT_TP.  Otherwise pass 1.
1089         * include/link.h (struct link_map): Add l_tls_tp_initialized.
1090         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
1092 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
1094         * locale/programs/localedef.c (add_to_readlist): Error about
1095         circular dependencies only if the locale in question hasn't
1096         been finished.
1097         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
1098         CTYPE_LOCALE to load_locale.
1099         * locale/programs/locfile.c (locfile_read): Don't include
1100         unneeded but available locales in locale_mask.
1102         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
1103         print any messages about enlarging archive.
1105 2002-08-20  Brian Youmans  <3diff@gnu.org>
1107         * manual/contrib.texi: Removed licenses, added acknowledgements
1108         for contributions by Intel, IBM, Craig Metz.
1109         * LICENSES: New file, contains the text of all non-FSF licenses in the
1110         distribution that require putting the notice in the accompanying
1111         documentation.
1112         * README.template, README: Mention LICENSES.
1114         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
1115         new one modelled on the modern BSD license, per recent letter
1116         of permission from CMU.
1117         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
1119         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
1120         from IBM to FSF, per the recent Software Letter.  Changed the
1121         distribution terms from GPL to LGPL.
1123         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
1124         copying permission notice (Lesser GPL), per recent IBM Software Letter.
1125         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1126         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1127         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1128         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1129         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1130         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1131         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1132         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1134         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
1135         from IBM to FSF, per the recent Software Letter.  Corrected the
1136         text of the copying permission notice to say Lesser GPL instead
1137         of GPL in warranty disclaimer paragraph.
1138         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1139         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1140         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1141         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1142         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1143         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1144         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1145         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1146         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1147         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1148         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1149         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1150         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1151         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1152         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1153         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1154         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1155         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1156         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1157         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1158         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1160         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
1161         permission notice to say Lesser GPL instead of GPL in warranty
1162         disclaimer paragraph.
1163         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1164         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1165         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1166         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1167         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1168         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1169         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1170         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1171         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1172         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1173         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1174         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1175         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1176         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1177         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1178         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1179         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1180         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1181         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1182         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1183         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1184         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1185         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
1187 2002-08-20  Roland McGrath  <roland@redhat.com>
1189         Fix ABI compatibility with libc compiled with old tools on powerpc.
1190         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1191         and Jack Howarth <howarth@bromo.med.uc.edu>.
1192         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
1193         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
1194         pass -DHAVE_DOT_HIDDEN for these files.
1195         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
1196         __floatdisf.
1197         * sysdeps/powerpc/divdi3.c: New file.
1198         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
1199         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
1201 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
1203         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
1204         partially overlapping mappings.  Remove unneeded (char *) casts.
1205         Never allow duplication of ranges in mapped areas.
1207 2002-08-20  Roland McGrath  <roland@redhat.com>
1209         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
1210         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
1212 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
1214         * include/unistd.h: Don't hide _exit.
1216         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
1217         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
1218         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
1219         argument 1 to TLS_INIT_TP.
1220         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
1222         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
1224         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
1225         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
1226         memory allocation to...
1227         (allocate_dtv): ...here.  New function.
1228         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
1229         call allocate_dtv instead of _dl_allocate_tls_storage.
1230         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
1231         (_dl_get_tls_static_info): New function.
1232         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
1233         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
1235 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
1237         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
1238         immediately if result == NULL.
1240 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
1242         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
1244 2002-08-18  Roland McGrath  <roland@frob.com>
1246         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
1247         instead of __file_name_split.
1248         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
1250         * sysdeps/mach/hurd/dl-sysdep.c
1251         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
1252         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
1254 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
1256         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
1257         in change before last: MAX -> MIN.
1259 2002-08-15  Roland McGrath  <roland@redhat.com>
1261         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
1262         if seek would go past it.
1263         (mmap_remap_check): If file position is at or past EOF after check,
1264         leave read pointers at EOF and don't seek.
1266         * libio/tst-mmap-offend.c: New file.
1267         * libio/Makefile (tests): Add it.
1269         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
1270         the name as passed, rather than the name in the archive dictionary.
1272 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
1274         * csu/Makefile: Define elide-routines.os not static-only-routines.
1276         * include/sched.h (__clone): Add varargs at the end.
1278         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
1279         case.
1280         (TLS_INIT_HELPER): If defined, use it.
1281         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
1283 2002-08-15  Roland McGrath  <roland@redhat.com>
1285         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
1286         on L->l_prev; it can happen under rtld --verify too.
1288         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
1289         header separately, just map an initial window of 2MB from the file
1290         and remap if that is not large enough to cover the whole header.
1292 2002-08-15  Andreas Jaeger  <aj@suse.de>
1294         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
1295         version 2.3.
1296         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1297         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1298         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
1299         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
1300         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1301         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1302         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1303         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1304         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
1305         Patch by Andreas Gruenbacher <agruen@suse.de>.
1307         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
1309 2002-08-14  Roland McGrath  <roland@redhat.com>
1311         * locale/locarchive.h (struct locale_category_data): Give this name to
1312         the type of locale_data_t's elements.
1313         * locale/programs/locarchive.c (cmpcategorysize): New static function.
1314         (add_locale): Use that to sort the categories by size and put all
1315         those that fit into two pages into the LC_ALL block, instead of
1316         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
1317         (show_archive_content): Detect categories inside LC_ALL block
1318         directly, instead of hard-coding.
1319         (oldlocrecentcmp): Compare just on file locations used.
1321 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
1323         * locale/programs/locarchive.c (struct oldlocrecent): New.
1324         (oldlocrecentcmp): New.
1325         (enlarge_archive): Re-add locales in the order they were added
1326         to the archive.
1327         (add_locale): Put all the small locale files together, if the small
1328         locale file block would occupy less pages if page size aligned, align
1329         it.
1330         (show_archive_content): Adjust for locale archives optimized for speed.
1332 2002-08-14  Roland McGrath  <roland@frob.com>
1334         * configure.in: Use "MISSING" as not-found value for MIG.
1335         * sysdeps/mach/configure.in: Fatal if mig not found.
1336         * configure, sysdeps/mach/configure: Regenerated.
1338 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
1340         * locale/loadarchive.c (archfname): Add missing slash.
1342         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
1343         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
1345 2002-08-12  Roland McGrath  <roland@redhat.com>
1347         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
1348         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
1349         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
1350         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
1351         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
1352         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
1353         * sysdeps/generic/waitpid.c: Likewise.
1355         * include/net/if.h: New file.  Use libc_hidden_proto
1356         for if_nametoindex and if_indextoname.
1357         * sysdeps/generic/if_index.c: Add libc_hidden_def.
1358         * sysdeps/mach/hurd/if_index.c: Likewise.
1359         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
1361         * include/grp.h (setgroups): Add libc_hidden_proto.
1362         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
1363         * sysdeps/mach/hurd/setgroups.c: Likewise.
1364         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
1365         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1367 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
1369         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
1370         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
1371         * sysdeps/generic/setegid.c (setegid): Likewise.
1372         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
1373         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
1374         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
1375         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
1376         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
1377         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
1378         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
1379         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
1380         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
1381         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
1382         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
1383         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
1384         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
1386         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
1387         __lxstat_internal, __lxstat64_internal): Remove.
1388         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
1389         Add hidden_proto.
1390         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
1391         Remove INTDEF where present, remove #undef at the beginning.
1392         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
1393         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
1394         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
1395         * sysdeps/generic/xstat.c (__xstat): Likewise.
1396         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
1397         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
1398         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
1399         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
1400         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
1401         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
1402         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
1403         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
1404         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
1405         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
1406         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
1407         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
1408         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
1409         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
1410         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
1411         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
1412         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
1413         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
1414         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
1415         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
1416         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
1417         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
1418         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
1419         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
1420         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
1421         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
1422         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
1423         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
1424         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
1425         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
1426         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
1427         * sysdeps/unix/xstat.c (__xstat): Likewise.
1429         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
1430         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
1431         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
1432         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
1433         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
1434         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
1435         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
1437         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
1438         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
1439         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
1440         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
1441         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
1442         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
1443         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
1444         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
1445         Likewise.
1446         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
1447         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
1448         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
1449         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
1450         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
1451         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
1452         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
1453         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
1455         * include/string.h (strcoll): Add libc_hidden_proto.
1456         * string/strcoll.c (strcoll): Add libc_hidden_def.
1458         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
1460 2002-08-11  Philip Blundell  <philb@gnu.org>
1462         * sysdeps/arm/Makefile: New file.
1464 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
1466         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
1467         by another '|', end of regex or enclosing ')', clear branch.
1468         * posix/bug-regex9.c: New test.
1469         * posix/Makefile (tests): Add bug-regex9.
1471 2002-08-12  Roland McGrath  <roland@redhat.com>
1473         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
1474         start count condition, use TOTAL instead of variable that was never
1475         set.  Fix outer loop termination condition to TOTAL >= after update.
1477         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
1478         dl_tls_static_align and dl_tls_static_nelem.
1480 2002-08-11  Roland McGrath  <roland@redhat.com>
1482         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
1483         of the TLS macros, otherwise the compiler might not have initialized
1484         the PIC register yet when we use the PLT via asm.
1485         * elf/tst-tlsmod3.c (in_dso2): Likewise.
1486         * elf/tst-tlsmod2.c (in_dso): Likewise.
1488         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
1490         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
1491         Evaluate argument exactly once.  Remove __volatile__ from asm's.
1493         * include/unistd.h: Use libc_hidden_proto for getdomainname
1494         and getlogin_r.
1495         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
1496         * sysdeps/mach/hurd/getdomain.c: Likewise.
1497         * sysdeps/unix/getlogin_r.c: Likewise.
1498         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
1499         * sysdeps/generic/getlogin_r.c: Likewise.
1501         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
1502         * sunrpc/rtime.c: Add libc_hidden_def.
1504         * include/string.h: Use libc_hidden_proto for basename.
1505         * string/basename.c [_LIBC]: Add libc_hidden_def.
1507         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
1509         * locale/loadarchive.c: munmap -> __munmap throughout.
1511         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
1512         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
1513         * sysdeps/generic/gai_strerror.c: Likewise.
1515         * include/sys/errno.h: New file.
1517         * include/signal.h: No libc_hidden_proto for raise,
1518         __libc_current_sigrtmin, __libc_current_sigrtmax.
1519         These need to be overridden by linuxthreads.
1520         * sysdeps/posix/raise.c: Reverted.
1521         * sysdeps/generic/raise.c: Reverted.
1522         * signal/allocrtsig.c: Reverted.
1524         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
1526 2002-08-10  Roland McGrath  <roland@redhat.com>
1528         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
1529         * locale/localeinfo.h: Declare it.
1530         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
1531         current locale if it's not in the file list.
1532         Call _nl_archive_subfreeres.
1534 2002-08-10  Andreas Jaeger  <aj@suse.de>
1536         * sysdeps/i386/strchr.S: Add comment.
1538 2002-08-10  Roland McGrath  <roland@redhat.com>
1540         * include/wchar.h (putwc): Use libc_hidden_proto.
1541         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
1542         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
1543         * stdio-common/dprintf.c: Add libc_hidden_def.
1544         * stdio-common/fprintf.c: Likewise.
1545         * stdio-common/sprintf.c: Likewise.
1546         * stdio-common/sscanf.c: Likewise.
1547         * libio/iofwrite.c: Likewise.
1548         * libio/memstream.c: Likewise.
1549         * libio/putwc.c: Likewise.
1550         * stdio-common/perror.c: Likewise.
1551         * sysdeps/posix/remove.c: Likewise.
1552         * sysdeps/generic/remove.c: Likewise.
1553         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
1554         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
1556 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
1558         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
1559         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
1560         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
1561         towlower, towupper): Add libc_hidden_weak.
1563         * include/bits/dlfcn.h: New file.
1564         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
1566         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
1567         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
1568         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
1569         * include/pwd.h (_nss_files_parse_pwent): Likewise.
1570         * include/shadow.h (_nss_files_parse_spent): Likewise.
1571         * include/netdb.h (_nss_files_parse_protoent,
1572         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
1573         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
1574         (LINE_PARSER): Use it.
1575         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
1576         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
1578         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
1579         #endif.
1581         * manual/debug.texi (%MENU%): Remove trailing dot.
1582         Reported by <hayastan132@hotmail.com>.
1584         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
1585         aliases.
1586         (lseek): Dummy.
1587         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
1588         Likewise.
1590 2002-08-09  Roland McGrath  <roland@redhat.com>
1592         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
1593         name to find codeset name (if any) and normalize it.  If the
1594         normalized name differs, look up only that in the archive.
1595         * locale/programs/locarchive.c (add_locale_to_archive): If the name
1596         contains a codeset, normalize the codeset store only the normalized
1597         name in the archive.  If not, add an alias containing the locale's
1598         normalized codeset name.  Apply codeset name normalization when
1599         matching entries in the alias file.
1601         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
1602         decrement HEAD->namehash_used here.
1603         (add_locale): Only need to insert name string when name_offset != 0.
1605         * locale/programs/localedef.c (options): Add -A/--alias-file.
1606         (alias_file): New variable.
1607         (parse_opt): Grok -A, set that.
1608         * locale/programs/localedef.h: Declare it.
1610         * locale/locarchive.h (struct locrecent): Add `refs' member.
1611         * locale/programs/locarchive.c (insert_name): New function, broken out
1612         of ...
1613         (add_locale_to_archive): ... here.  Call that.
1614         (add_alias): New function.
1615         (add_locale): New static function, add_locale_to_archive renamed.
1616         (add_locale_to_archive): Call that and use add_alias to add an alias
1617         for the name with codeset if the given name lacks it.
1618         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
1620         * locale/Makefile (routines): Add loadarchive.
1621         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
1622         (_nl_load_locale_from_archive): New function.
1623         * locale/localeinfo.h: Declare it.
1624         * locale/findlocale.c (_nl_find_locale): If using default locale path,
1625         try _nl_load_locale_from_archive first.
1627         * locale/loadlocale.c (_nl_intern_locale_data): New function,
1628         broken out of _nl_load_locale.
1629         (_nl_load_locale): Call that.
1630         * locale/localeinfo.h: Declare it.
1631         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
1632         (struct locale_data): Remove unused member `options'.
1633         * locale/findlocale.c (_nl_remove_locale): Update uses.
1634         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
1635         * locale/C-collate.c: Update initializer.
1636         * locale/C-identification.c: Likewise.
1637         * locale/C-measurement.c: Likewise.
1638         * locale/C-telephone.c: Likewise.
1639         * locale/C-address.c: Likewise.
1640         * locale/C-name.c: Likewise.
1641         * locale/C-paper.c: Likewise.
1642         * locale/C-time.c: Likewise.
1643         * locale/C-numeric.c: Likewise.
1644         * locale/C-monetary.c: Likewise.
1645         * locale/C-messages.c : Likewise.
1646         * locale/C-ctype.c: Likewise.
1648         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
1649         use CHAR_BIT instead of BITSPERBYTE.
1651         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
1652         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
1653         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
1654         (_nl_remove_locale): Likewise.
1655         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
1657         * locale/findlocale.c (_nl_default_locale_path): New variable.
1658         (_nl_find_locale): If LOCALE_PATH is null, default to that.
1659         * locale/localeinfo.h: Declare it.
1660         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
1661         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
1662         * locale/newlocale.c (__newlocale): Likewise.
1664         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
1665         * inet/rexec.c (rexec_af): Add libc_hidden_def.
1666         * sysdeps/generic/morecore.c: Likewise.
1667         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
1668         (__libc_current_sigrtmax): Likewise.
1670 2002-08-08  Roland McGrath  <roland@redhat.com>
1672         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
1673         * catgets/open_catalog.c (__open_catalog): Likewise.
1675         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
1676         from typo INITIAL_NUM_NANES.
1677         (create_archive): Update use.
1679 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
1681         * sysdeps/unix/sysv/linux/sigwait.c: New file.
1683 2002-08-08  Roland McGrath  <roland@frob.com>
1685         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
1687 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
1689         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
1690         else and undefine after including wcstol_l.c.
1691         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
1693 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
1695         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
1697 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
1699         * configure.in: Make the test for broken_alias_attribute stricter.
1701 2002-05-24  Robert Love  <rml@tech9.net>
1703         * posix/Makefile (routines): Add sched_getaffinity and
1704         sched_setaffinity.
1705         * posix/sched.h: Add declarations for sched_getaffinity and
1706         sched_setaffinity.
1707         * sysdeps/generic/sched_getaffinity.c: New file.
1708         * sysdeps/generic/sched_setaffinity.c: New file.
1709         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
1710         sched_setaffinity.
1712 2002-08-06  Andreas Schwab  <schwab@suse.de>
1714         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
1716 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
1718         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
1719         message.
1721         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
1722         It is known to be defined.
1724         * include/string.h: Define index and rindex only if _ISOMAC is not
1725         defined.
1727         * elf/rtld.c: Include <errno.h>.
1728         * sysdeps/generic/libc-tls.c: Likewise.
1730 2002-08-07  Roland McGrath  <roland@redhat.com>
1732         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
1733         it internally.
1734         (precsize_aton): Likewise.
1736         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
1737         the static symbols added in the last change (doofus is me).
1739         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
1740         loop to notice missing categories in a composite name.
1742         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
1743         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
1744         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
1745         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
1747 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
1749         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
1751 2002-08-07  Roland McGrath  <roland@redhat.com>
1753         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
1754         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
1755         Reported by Jakub Jelinek  <jakub@redhat.com>.
1757 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
1759         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
1760         division.
1762 2002-08-06  Roland McGrath  <roland@redhat.com>
1764         * include/getopt.h: Put private decls inside [_GETOPT_H].
1765         Use libc_hidden_proto for getopt_long, getopt_long_only.
1766         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
1767         Add libc_hidden_def.
1769         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
1770         Define as a macro for __dl_iterate_phdr.
1772         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
1773         made static.  Add __ name as a strong alias.
1774         (internal_endnetgrent): Likewise.
1775         (internal_getnetgrent_r): Likewise.
1777         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
1778         with no __ prefix.
1779         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
1780         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
1781         all *_l functions with no __ prefix.
1782         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
1783         * ctype/ctype_l.c: Likewise.
1784         * locale/nl_langinfo.c: Likewise.
1785         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
1786         * stdlib/stdlib.h [__USE_GNU]: Likewise.
1787         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
1788         * wctype/wctype.h [__USE_GNU]: Likewise.
1789         * string/strcoll_l.c (strcoll_l): Define as weak alias.
1790         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
1791         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
1792         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
1793         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
1794         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
1795         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
1796         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
1797         (__wcscasecmp_l): Add libc_hidden_def.
1798         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
1799         (__wcsncasecmp_l): Add libc_hidden_def.
1800         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
1801         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
1802         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
1803         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
1804         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
1805         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
1806         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
1807         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
1808         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
1809         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
1810         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
1811         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
1812         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
1813         * wctype/wctype_l.c (wctype_l) Define as weak alias.
1815 2002-08-05  Roland McGrath  <roland@redhat.com>
1817         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
1818         netname2user, host2netname, user2netname, key_gendes.
1819         * sunrpc/netname.c: Add libc_hidden_def.
1820         * sunrpc/key_call.c: Likewise.
1822         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
1823         freeaddrinfo.
1824         * inet/getnameinfo.c: Add libc_hidden_def.
1825         * sysdeps/generic/getaddrinfo.c: Likewise.
1826         * sysdeps/posix/getaddrinfo.c: Likewise.
1828         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
1829         * wcsmbs/wmemchr.c: Add libc_hidden_def.
1830         * wcsmbs/wmemset.c: Add libc_hidden_def.
1832         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
1833         (index, rindex): Define as macros for strchr, strrchr.
1835         * string/envz.c (envz_strip): index -> strchr
1837         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
1838         * sunrpc/rpc_prot.c: Add libc_hidden_def.
1840         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
1841         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
1843         * include/stdlib.h: Use libc_hidden_proto for wctomb.
1844         * stdlib/wctomb.c: Add libc_hidden_def.
1846         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
1847         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
1848         * resolv/herror.c: Likewise.
1849         * inet/rcmd.c: Add libc_hidden_def.
1850         * inet/ruserpass.c: Likewise.
1851         * inet/getnetgrent_r.c: Likewise.
1853         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
1854         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
1855         for svcerr_auth, svcerr_noprog, svcerr_progvers.
1856         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
1857         libc_hidden_def.
1858         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
1859         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
1861         * sysdeps/posix/system.c (do_system): New function, guts broken out of
1862         __libc_system.
1863         (__libc_system): Call it, putting just the line == NULL test here.
1865         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
1866         variables work right.
1868         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
1869         * elf/dl-close.c (_dl_close): Likewise.
1871         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
1872         in6addr_any, in6addr_loopback.  Remove decls for
1873         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
1874         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
1875         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
1876         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
1877         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
1878         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
1879         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
1880         in6addr_loopback.
1881         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
1883         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
1884         ether_aton_r.
1885         * inet/ether_aton_r.c: Add libc_hidden_def.
1886         * inet/ether_ntoa_r.c: Likewise.
1888         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
1889         xprt_unregister.
1890         * sunrpc/svc.c: Add libc_hidden_def.
1891         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
1892         pmap_set, pmap_unset.
1893         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
1894         * sunrpc/pm_getport.c: Likewise.
1895         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
1896         * sunrpc/publickey.c: Add libc_hidden_def.
1898 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
1900         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
1901         the other memset call in this function.
1903         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
1904         at correct index.  Clear BSS region now that memalign is used.
1906 2002-08-05  Roland McGrath  <roland@redhat.com>
1908         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
1909         * sysdeps/generic/uname.c: Add libc_hidden_def.
1910         * sysdeps/mach/hurd/uname.c: Likewise.
1912 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
1914         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
1915         wcspbrk): Add libc_hidden_proto.
1916         * time/strftime.c (my_strftime): Add libc_hidden_def.
1917         (strftime): Remove libc_hidden_def.
1918         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
1919         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
1920         * wcsmbs/wcsspn.c (wcsspn): Likewise.
1921         * wcsmbs/wcscmp.c (wcscmp): Likewise.
1922         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
1923         * wcsmbs/wcscoll.c (wcscoll): Likewise.
1925         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
1926         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
1927         __rpc_thread_createerr): Add libc_hidden_proto.
1928         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
1929         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
1930         __rpc_thread_createerr): Add libc_hidden_def.
1932         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
1933         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
1934         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
1935         clnt_perror, clnt_sperror): Add libc_hidden_def.
1936         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
1938         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
1939         libc_hidden_proto.
1940         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
1941         * sunrpc/des_soft.c (des_setparity): Likewise.
1943         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
1944         Add libc_hidden_proto.
1945         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
1946         Add libc_hidden_def.
1948 2002-08-05  Roland McGrath  <roland@redhat.com>
1950         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
1951         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
1952         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
1953         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
1954         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
1955         old data, abandoning the original memory allocated by rtld at startup,
1956         instead of calling realloc normally.
1958 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
1960         * po/fr.po: Update from translation team.
1962 2002-08-04  Roland McGrath  <roland@redhat.com>
1964         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
1965         then generate a dummy module under the given name, obeying the
1966         normal rules for the "caller" field.
1968         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
1969         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
1971         * include/pthread.h: Don't declare __pthread_initialize_minimal as
1972         weak here; we declare it weak or strong in the one place we use it.
1973         * sysdeps/generic/libc-start.c: ... which is here.
1974         Don't make the decl weak if [USE_TLS], since static programs need TLS
1975         setup even when single-threaded.
1977         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
1979         * elf/Makefile (test-srcs): Add $(modules-names) to it.
1980         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
1981         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
1982         all these variables.
1984 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
1986         * include/stdio.h: Don't define macro magic to redirect function
1987         calls if _ISOMAC is defined.
1989         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
1990         ldouble asin tests.
1992 2002-08-04  Roland McGrath  <roland@redhat.com>
1994         * stdlib/lrand48_r.c: Add libc_hidden_def.
1996         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
1997         TCB with __libc_memalign instead of mmap.
1998         (_dl_deallocate_tls): Free it with free instead of munmap.
2000         * Makerules (cpp-srcs-left): When setting this to run
2001         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
2002         words.  Combine the two loops into one on the concatenated list,
2003         including those as well as $(test-srcs).
2005         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
2006         since we align here with optimally minimal waste anyway.
2007         (malloc): Just call that.
2009         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
2010         the right variable.
2012         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
2013         to compute memory location for l_tls_initimage.
2014         * elf/rtld.c (_dl_start): Likewise.
2015         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
2017         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
2018         because the .d file is generated in the non-shared case and
2019         so fails to catch them otherwise.
2021         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
2022         split out of _dl_allocate_tls.
2023         (_dl_allocate_tls_init): Likewise.
2024         (_dl_allocate_tls): Call those.
2025         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
2026         * elf/rtld.c (dl_main): Call them separately instead of calling
2027         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
2028         is finished, so that the initializer data has been relocated before we
2029         copy it into the main thread's TLS block.
2031         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
2032         loop conditions, prevented the last used module from being initialized.
2034 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
2036         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
2037         if glob resp. globfree are not macros.
2038         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
2039         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
2040         Add libc_hidden_ver.
2041         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
2042         libc_hidden_def.
2043         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
2044         instead of libc_hidden_weak.
2045         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
2046         libc_hidden_ver instead of libc_hidden_def.
2047         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
2048         libc_hidden_ver instead of libc_hidden_def.
2049         (wcstoll, wcstoq): Remove libc_hidden_weak.
2050         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
2051         libc_hidden_ver.
2052         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
2053         libc_hidden_ver.
2054         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
2055         libc_hidden_ver.
2056         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
2057         libc_hidden_ver.
2059 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
2061         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
2062         to access _sys_siglist.
2063         * string/strsignal.c: Likewise.
2064         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
2065         * sysdeps/gnu/siglist.c: Likewise.
2066         * sysdeps/unix/siglist.c: Likewise.
2067         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
2069         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
2071         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
2073         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
2074         alias and use it.
2075         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
2077         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
2078         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
2079         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
2081         * include/time.h: Add libc_hidden_proto for __gmtime_r.
2082         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
2084         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
2085         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
2086         and __gconv_get_cache respectively.
2087         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
2088         defined static.  Change all users.
2089         (__gconv_get_cache): New function.
2090         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
2091         (__gconv_get_alias_db): New function.
2092         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
2093         (__conv_modules_db): Likewise.
2094         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
2095         and __gconv_get_alias_db.
2096         * iconv/iconv_prog.c: Use the new functions instead of accessing the
2097         variables.
2099         * include/stdlib.h: Add prototype and libc_hidden_proto for
2100         __default_morecore.
2101         * sysdeps/generic/morecore.c: Include <stdlib.h>.
2103         * malloc/obstack.c: Remove fputs macro.
2105         * malloc/mtrace.c: Remove fopen macro.
2107 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
2109         * manual/debug.texi: Fix spelling to programmatically.
2110         Reported by <hayastan132@hotmail.com>.
2112 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
2114         * include/libio.h: Add libc_hidden_proto for __uflow.
2115         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
2116         fgetpos to _IO_* names.
2117         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
2118         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
2119         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
2120         putwc_unlocked, vswscanf.
2121         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
2122         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
2123         * libio/fseek.c: Likewise.
2124         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
2125         not fopencookie.
2126         * libio/genops.c (__uflow): Add libc_hidden_def.
2127         * libio/iofflush_u.c (fflush_unlocked): Likewise.
2128         * libio/iofgets_u.c (fgets_unlocked): Likewise.
2129         * libio/iofputs_u.c (fputs_unlocked): Likewise.
2130         * libio/iofputws_u.c (fputws_unlocked): Likewise.
2131         * libio/iofread_u.c (fread_unlocked): Likewise.
2132         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2133         * libio/iovswscanf.c (vswscanf): Likewise.
2134         * libio/putwc_u.c (putwc_unlocked): Likewise.
2135         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
2136         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
2137         * malloc/mtrace.c: Likewise.
2139         * sunrpc/clnt_perr.c: Remove fputs macro.
2140         * sunrpc/svc_simple.c: Likewise.
2141         * sunrpc/svc_tcp.c: Likewise.
2142         * sunrpc/svc_udp.c: Likewise.
2143         * sunrpc/xdr_rec.c: Likewise.
2144         * sunrpc/xdr_ref.c: Likewise.
2146         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
2147         iconv_prog, linereader, and charmap-dir.
2148         * locale/Makefile: Likewise for locale and charmap-dir.
2149         * malloc/Makefile: Likewise for memusagestat.
2150         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
2151         * sunrpc/Makefile: Likewise for rpc_main.
2152         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
2153         * timezone/Makefile: Likewise for zic.
2155         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
2157         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
2158         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
2159         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
2160         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
2161         _dl_close.
2163         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
2164         __wunderflow.
2165         * libio/genops.c (__underflow): Add libc_hidden_def.
2166         * libio/wgenops.c (__wuflow): Likewise.
2167         (__wunderflow): Likewise.
2169         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
2170         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
2172         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
2173         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
2175         * include/string.h: Add libc_hidden_proto for __strverscmp.
2176         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
2178         * include/unistd.h: Add libc_hidden_proto for __sysconf.
2179         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
2180         * sysdeps/posix/sysconf.c: Likewise.
2181         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
2182         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
2184         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
2185         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
2186         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
2187         __iswxdigit_l, __towlower_l, __towupper_l.
2188         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
2189         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
2191         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
2192         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
2193         * sysdeps/mach/hurd/xmknod.c: Likewise.
2194         * sysdeps/unix/xmknod.c: Likewise.
2195         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
2196         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
2197         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
2199         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
2201 2002-08-03  Roland McGrath  <roland@redhat.com>
2203         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
2204         setpriority.
2205         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
2206         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
2207         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
2208         * sysdeps/mach/hurd/setpriority.c: Likewise.
2209         * sysdeps/mach/hurd/getpriority.c: Likewise.
2210         * sysdeps/generic/setpriority.c: Likewise.
2211         * sysdeps/generic/getpriority.c: Likewise.
2213         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
2214         * malloc/mcheck.c: Add libc_hidden_def.
2216         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
2217         * misc/hsearch_r.c: Add libc_hidden_def.
2219         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
2220         * posix/fnmatch.c: Add libc_hidden_weak.
2222         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
2223         execl, execle, execlp, execvp, getpid, getsid.
2224         * sysdeps/generic/alarm.c: Add libc_hidden_def.
2225         * sysdeps/unix/alarm.c: Likewise.
2226         * posix/confstr.c: Likewise.
2227         * posix/execvp.c: Likewise.
2228         * posix/execlp.c: Likewise.
2229         * posix/execle.c: Likewise.
2230         * posix/execl.c: Likewise.
2231         * sysdeps/generic/getsid.c: Likewise.
2232         * sysdeps/mach/hurd/getsid.c: Likewise.
2233         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
2234         * sysdeps/mach/hurd/getpid.c: Likewise.
2236         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
2237         qecvt_r, qfcvt_r, lrand48_r.
2238         * misc/efgcvt_r.c: Add libc_hidden_def.
2240         * include/wordexp.h: Use libc_hidden_proto for wordfree.
2241         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
2243         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
2244         * locale/nl_langinfo.c: Add libc_hidden_def.
2246         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
2247         * sysdeps/generic/glob.c: Add libc_hidden_def.
2248         * sysdeps/generic/glob64.c: Likewise.
2249         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
2251         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
2253         * elf/Makefile (CFLAGS-vismod2.c): New variable.
2255         * locale/setlocale.c (_nl_current_names): Variable moved ...
2256         * locale/localename.c (_nl_current_names): ... here, new file.
2257         Make it global, with attribute_hidden.
2258         * locale/localeinfo.h: Declare it.
2259         * locale/Makefile (aux): Add localename.
2260         * locale/localename.c (__current_locale_name): New function.
2261         * include/locale.h (__current_locale_name): Declare it.
2262         * intl/dcigettext.c (guess_category_value): Use that instead of
2263         calling setlocale.
2265         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
2266         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
2267         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
2268         * locale/newlocale.c: Add alias to __ name.
2269         * locale/duplocale.c: Likewise.
2270         * locale/freelocale.c: Likewise.
2271         * locale/uselocale.c: New file.
2272         * locale/Makefile (routines): Add it.
2273         * locale/Versions (libc: GLIBC_2.3): New set.
2274         Add newlocale, duplocale, freelocale, uselocale.
2275         (libc: GLIBC_PRIVATE): Add __uselocale.
2277         * locale/localeinfo.h [SHARED]
2278         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
2279         (_NL_CURRENT_DATA): Define using that.
2280         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
2281         (_NL_CURRENT_DEFINE): Define to empty.
2282         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
2283         conditionalized on this.
2284         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
2285         taking initializer of _nl_C_locobj.
2286         [SHARED] (_nl_global_locale): New variable, using that initializer.
2287         (_nl_C_locobj): Use new macro for initialzier.
2288         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
2289         [! SHARED] (CATEGORY_USED): New macro.
2290         [SHARED] (CATEGORY_USED, _nl_C): New macros.
2291         (setdata, setlocale): Use that macro instead of examining _nl_current.
2292         (setdata): Set the slot in _nl_global_locale.
2293         Conditionalize setting of _nl_current on [! SHARED].
2294         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
2295         declaration as an extern.
2296         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
2298         * include/locale.h: Use libc_hidden_proto for setlocale.
2299         * locale/setlocale.c: Add libc_hidden_def.
2301         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
2303         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
2304         * misc/hsearch_r.c: Add libc_hidden_def.
2305         * misc/lsearch.c: Likewise.
2307         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
2308         endttyent.
2309         * misc/getttyent.c: Add libc_hidden_def.
2311         * include/mcheck.h: Use libc_hidden_proto for mcheck.
2312         * malloc/mcheck.c: Add libc_hidden_def.
2314         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
2315         * include/argz.h: Use libc_hidden_proto for argz_delete.
2316         * string/argz-delete.c: Add libc_hidden_def.
2317         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
2319         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
2320         HIDDEN_JUMPTARGET for _exit.
2321         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
2322         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
2323         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
2324         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
2326         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
2327         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
2328         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
2329         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
2331         * include/stdlib.h: Use libc_hidden_proto for abort,
2332         __strtof_internal, __strtod_internal, __strtold_internal,
2333         __strtol_internal, __strtoll_internal, __strtoul_internal,
2334         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
2335         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
2336         __strtoul_l_internal, __strtoull_l_internal.
2337         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
2338         __wcstod_internal, __wcstold_internal, __wcstol_internal,
2339         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
2340         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
2341         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
2342         __wcsncasecmp_l.
2343         * sysdeps/generic/abort.c: Add libc_hidden_def.
2344         * stdlib/strtod.c: Likewise.
2345         * sysdeps/generic/strtol.c: Likewise.
2346         * sysdeps/wordsize-64/strtol.c: Likewise.
2347         * sysdeps/wordsize-64/wcstol.c: Likewise.
2348         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
2350         * include/stdlib.h: Use libc_hidden_proto for qsort.
2351         * stdlib/msort.c: Add libc_hidden_def.
2353         * include/utime.h: Use libc_hidden_proto for utime.
2354         * sysdeps/generic/utime.c: Add libc_hidden_def.
2355         * sysdeps/unix/utime.c: Likewise.
2357         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
2358         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
2359         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2360         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
2361         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
2363         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
2364         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
2365         and __libc_current_sigrtmax.
2366         * signal/sigismem.c: Add libc_hidden_def.
2367         * signal/sigfillset.c: Likewise.
2368         * signal/sigempty.c: Likewise.
2369         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
2370         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2371         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
2372         * sysdeps/posix/raise.c: Likewise.
2373         * sysdeps/generic/raise.c: Likewise.
2375 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
2377         * include/string.h: Use libc_hidden_proto for __stpcpy.
2378         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
2379         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
2380         * sysdeps/generic/stpcpy.c: Likewise.
2381         * sysdeps/i386/stpcpy.S: Likewise.
2382         * sysdeps/i386/i586/stpcpy.S: Likewise.
2383         * sysdeps/powerpc/stpcpy.S: Likewise.
2384         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
2385         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
2387         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
2388         __strncasecmp_l, __strdup, __strndup, __strerror_r.
2389         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
2390         libc_hidden_def.
2391         * string/strdup.c (__strdup): Likewise.
2392         * string/strndup.c (__strndup): Likewise.
2393         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
2394         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
2396 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
2398         * include/libio.h: New file.
2399         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
2400         * libio/iolibio.h: #include <libio.h>, not "libio.h".
2401         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
2402         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
2403         * sysdeps/unix/common/syscalls.list: Likewise.
2404         * sysdeps/unix/inet/syscalls.list: Likewise.
2405         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
2406         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
2407         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2408         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2409         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2410         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2411         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2412         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2413         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2414         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
2415         * sysdeps/unix/syscalls.list: Likewise.
2417 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
2418             Ulrich Drepper  <drepper@redhat.com>
2420         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
2421         the arguments is big enough to cause an overflow.
2423 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
2425         * assert/assert.c: Use hidden_def not INTDEF.
2427 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
2429         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
2430         not defined.
2432 2002-08-03  Roland McGrath  <roland@redhat.com>
2434         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
2435         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
2436         verr, verrx.
2437         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
2438         * misc/syslog.c: Add libc_hidden_def.
2439         * misc/err.c: Likewise.
2440         * stdlib/exit.c: Likewise.
2441         * stdlib/bsearch.c: Likewise.
2442         * sysdeps/generic/getenv.c: Likewise.
2444         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
2446         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
2447         libc_hidden_weak for every system call symbol defined.
2449         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
2450         timelocal, localtime, strftime.
2451         * time/asctime.c: Add libc_hidden_def.
2452         * time/mktime.c: Likewise.
2453         * time/localtime.c: Likewise.
2454         * time/strftime.c: Likewise.
2455         * time/strptime.c: Likewise.
2456         * sysdeps/generic/time.c: Likewise.
2457         * sysdeps/unix/time.c: Likewise.
2458         * sysdeps/unix/sysv/i386/time.S: Likewise.
2459         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
2461         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
2462         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
2463         * resolv/inet_ntop.c: Likewise.
2464         * resolv/inet_pton.c: Likewise.
2465         * inet/inet_mkadr.c: Add libc_hidden_def.
2466         * inet/inet_netof.c: Likewise.
2467         * resolv/inet_addr.c: Likewise.
2469         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
2470         clauses from conditionals for now.  Will have to be fixed later
2471         for older compilers.
2473         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
2475 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
2477         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
2478         broken alias attribute handling.
2479         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
2481 2002-08-02  Roland McGrath  <roland@frob.com>
2483         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
2484         since it sets the variables we use in a -D switch.
2486 2002-08-02  Roland McGrath  <roland@redhat.com>
2488         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
2489         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
2490         matches long int, not int.
2492         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
2493         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
2494         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2495         * wctype/wctrans.c (wctrans): Likewise.
2496         * wctype/wctype.c (__wctype): Likewise.
2497         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
2499 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
2501         * assert/assert.c (__assert_fail): Fix typo in comment.
2503         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
2504         * sunrpc/rpc_thread.c: Define it without static.
2505         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
2507 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
2509         * assert/assert.c (__assert_fail): Remove undef.
2510         Replace INTDEF with libc_hidden_def.
2511         * assert/__assert.c (__assert): Remove INTUSE.
2512         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
2513         libc_hidden_weak.
2514         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
2515         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
2516         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
2517         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
2518         libm_hiden_ver): Define.
2519         * include/assert.h (__assert_fail_internal): Remove.
2520         (__assert_fail): Add prototype.  Add hidden_proto.
2521         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
2522         libc_hidden_proto.
2523         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
2524         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
2525         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
2526         Add libc_hidden_proto.
2527         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
2528         __fcntl): Add libc_hidden_proto.  Remove macros.
2529         (__open_internal, __fcntl_internal): Remove.
2530         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
2531         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
2532         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
2533         libc_hiden_proto.
2534         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
2535         libc_hidden_def.
2536         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
2537         Add libc_hidden_def.
2538         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
2539         * sysdeps/generic/open.c (__open): Remove undef.
2540         Add libc_hidden_def.  Remove INTDEF.
2541         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
2542         Add libc_hidden_def.
2543         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
2544         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
2545         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
2546         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
2547         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
2548         (__libc_fcntl): Add libc_hidden_def.
2549         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
2550         (__open): Remove INTDEF2.  Add libc_hidden_weak.
2551         (__libc_open): Add libc_hidden_def.
2552         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
2553         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
2554         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
2555         Add libc_hidden_def.
2556         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
2557         Add libc_hidden_def.
2558         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
2559         undef.
2560         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
2561         (__libc_fcntl): Add libc_hidden_def.
2562         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
2563         __getpgid_internal, __chown_internal): Remove.
2564         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
2565         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
2566         __GI___chown): Add.
2567         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
2568         __getpid_internal, __open_internal, __write_internal): Remove.
2569         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
2570         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
2571         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
2572         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
2573         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
2574         Replace INTDEF with libc_hidden_def.
2575         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
2576         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
2577         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
2578         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
2579         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
2580         Add libc_hidden_proto.
2581         * include/sys/poll.h (__poll): Add libc_hidden_proto.
2582         * include/sys/select.h (__select): Likewise.
2583         * include/sys/socket.h (__send): Likewise.
2584         * include/sys/statfs.h (__statfs): Likewise.
2585         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
2586         __getpid, __getpgid, __setpgid, __close, __read, __write,
2587         __getpagesize, __sbrk): Likewise.
2588         (__chown_internal, __dup2_internal, __getpid_internal,
2589         __getpgid_internal, __close_internal, __write_internal,
2590         __getpagesize_internal): Remove.
2591         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
2592         Remove macros.
2593         * include/printf.h (__printf_fp): Add libc_hidden_proto.
2594         * include/sched.h (__sched_setscheduler): Likewise.
2595         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
2596         * include/stdlib.h (__secure_getenv): Likewise.
2597         * include/signal.h (__sigaction, __sigsuspend): Likewise.
2598         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
2599         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
2600         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
2601         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
2602         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
2603         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
2604         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
2605         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
2606         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
2607         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
2608         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
2609         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
2610         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
2611         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
2612         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
2613         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
2614         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
2615         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
2616         * libio/genops.c (__overflow): Add libc_hidden_def.
2617         * libio/iovdprintf.c: Remove libio.h include.
2618         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
2619         libc_hidden_weak): Define to nothing if not defined.
2620         (__overflow, __woverflow): Add libc_hidden_proto.
2621         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
2622         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
2623         (DB_LOOKUP_FCT): Add libc_hidden_proto.
2624         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
2625         (DB_LOOKUP_FCT): Add libc_hidden_proto.
2626         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
2627         and libc_hidden_def.
2628         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
2629         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
2630         (__getpgid): Add libc_hidden_proto.
2631         (__bsd_getpgrp): Remove INTUSE.
2632         * resolv/res_init.c (__res_ninit, __res_randomid): Add
2633         libc_hidden_def.
2634         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
2635         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
2636         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
2637         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
2638         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
2639         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
2640         __rpc_thread_createerr): Add libc_hidden_def.
2641         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
2642         libc_hidden_def.
2643         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
2644         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
2645         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
2646         * sysdeps/generic/chown.c (__chown): Likewise.
2647         * sysdeps/generic/close.c (__close): Likewise.
2648         * sysdeps/generic/dup2.c (__dup2): Likewise.
2649         * sysdeps/generic/pipe.c (__pipe): Likewise.
2650         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
2651         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
2652         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
2653         * sysdeps/generic/read.c (__libc_read): Likewise.
2654         (__read): Add libc_hidden_weak.
2655         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
2656         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
2657         * sysdeps/generic/select.c (__select): Likewise.
2658         * sysdeps/generic/send.c (__send): Likewise.
2659         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
2660         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
2661         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
2662         * sysdeps/generic/statfs.c (__statfs): Likewise.
2663         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
2664         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
2665         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
2666         Remove undef and INTDEF.
2667         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
2668         * sysdeps/generic/getpid.c (__getpid): Likewise.
2669         * sysdeps/generic/write.c (__libc_write): Likewise.
2670         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
2671         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
2672         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
2673         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
2674         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
2675         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
2676         Remove undef and INTDEF.
2677         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
2678         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
2679         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
2680         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
2681         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
2682         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
2683         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
2684         (__pipe): Add libc_hidden_def.
2685         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
2686         libc_hidden_weak.
2687         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
2688         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
2689         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
2690         (__read): Add libc_hidden_weak.
2691         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
2692         (__libc_pwrite64): Add libc_hidden_def.
2693         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
2694         * sysdeps/mach/hurd/select.c (__select): Likewise.
2695         * sysdeps/mach/hurd/send.c (__send): Likewise.
2696         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
2697         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
2698         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
2699         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
2700         * sysdeps/posix/dup2.c: Likewise.
2701         Remove undef and INTDEF.
2702         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
2703         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
2704         (__pwrite64): Add libc_hidden_weak.
2705         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
2706         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
2707         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
2708         * sysdeps/standalone/close.c (__close): Likewise.
2709         * sysdeps/standalone/write.c (__libc_write): Likewise.
2710         (__write): Add libc_hidden_weak.
2711         * sysdeps/standalone/read.c (__read): Likewise.
2712         (__libc_read): Add libc_hidden_def.
2713         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
2714         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
2715         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
2716         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
2717         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
2718         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
2719         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
2720         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
2721         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
2722         __GI___sigaction): Add.
2723         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
2724         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
2725         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
2726         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
2727         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
2728         __GI___setpgid): Add.
2729         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
2730         Remove undef and INTDEF.
2731         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
2732         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
2733         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
2734         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
2735         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
2736         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
2737         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
2738         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
2739         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
2740         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
2741         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
2742         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
2743         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
2744         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
2745         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
2746         __GI___statfs, __GI___send): Add.
2747         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
2748         libc_hidden_ver resp. libc_hidden_def.
2749         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
2750         libc_hidden_def.
2751         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
2752         Likewise.  Remove undef and INTDEF.
2753         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
2754         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
2755         __GI___statfs, __GI___send): Add.
2756         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
2757         libc_hidden_def.
2758         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
2759         Likewise.
2760         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
2761         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
2762         libc_hidden_ver resp. libc_hidden_def.
2763         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
2764         __GI___send): Add.
2765         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
2766         Add libc_hidden_weak.
2767         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
2768         Add libc_hidden_def.
2769         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
2770         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
2771         libc_hidden_weak.
2772         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
2773         resp. libc_hidden_def.
2774         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
2775         libc_hidden_weak.
2776         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
2777         INTDEF.
2778         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
2779         Likewise.  Remove undef.
2780         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
2781         libc_hidden_weak.
2782         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
2783         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
2784         libc_hidden_weak.
2785         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
2786         libc_hidden_def.
2787         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
2788         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
2789         Likewise.  Remove undef and INTDEF.
2790         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
2791         libc_hidden_def.
2792         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
2793         libc_hidden_weak.
2794         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
2795         libc_hidden_def.
2796         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
2797         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
2798         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
2799         libc_hidden_weak.
2800         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
2801         Add libc_hidden_def.
2802         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
2803         __GI___statfs): Add.
2804         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
2805         libc_hidden_weak.
2806         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
2807         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
2808         Remove undef and INTDEF.
2809         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
2810         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
2811         libc_hidden_def.
2812         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
2813         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
2814         libc_hidden_weak.
2815         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
2816         libc_hidden_def.
2817         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
2818         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
2819         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
2820         Add.
2821         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
2822         libc_hidden_def.  Remove undef and INTDEF.
2823         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
2824         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
2825         libc_hidden_def.
2826         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
2827         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
2828         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
2829         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
2830         Remove undef and INTDEF.
2831         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
2832         broken visibility attribute handling.
2833         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
2835 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
2837         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
2838         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
2840         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
2841         previous patch.
2843 2002-06-29  Todd Fries  <todd@openbsd.org>
2845         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
2847 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
2849         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
2851 2002-07-30  Roland McGrath  <roland@redhat.com>
2853         * resolv/resolv.h (_res): Define macro unconditionally.
2854         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
2855         * include/resolv.h: ... here.
2856         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
2857         as a __thread variable.
2858         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
2859         a __thread variable instead of a global.
2860         * resolv/res_data.c [_LIBC]: Don't #undef _res.
2862         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
2863         time we test it.
2865         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
2867         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
2868         decls of memset and memcpy.
2870         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
2871         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
2873         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
2875         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
2876         (__libc_tsd_define): Define using __thread.
2878         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
2879         (__rpc_thread_variables): Use __libc_tsd_get.
2880         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
2881         __rpc_thread_variables, which might allocate what we're about to free.
2883         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
2884         thread-local variable.
2885         * resolv/netdb.h (h_errno): Define macro unconditionally.
2886         [_LIBC] (__set_h_errno): Macro moved to ...
2887         * include/netdb.h: ... here.
2888         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
2889         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
2890         [! _LIBC_REENTRANT]: #undef h_errno here.
2892         * include/errno.h: Protect from multiple inclusion.
2894         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
2895         before defining them, since Linux's <linux/posix_types.h> might have
2896         defined them.
2898 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
2900         * malloc/malloc.c (public_cALLOc): Check for overflow on
2901         multiplication.
2902         * sunrpc/xdr_array.c (xdr_array): Likewise.
2903         * sunrpc/rpc/types.h (mem_free): Add comment.
2904         Patch by Solar Designer <solar@openwall.com>.
2906 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
2908         * sysdeps/unix/sysv/linux/kernel-features.h
2909         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
2911 2002-08-01  Roland McGrath  <roland@redhat.com>
2913         * libio/fileops.c (_IO_file_sync_mmap): New function.
2914         (_IO_file_jumps_mmap): Use it.
2915         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
2916         repeat the stat check and resize the mapped buffer as necessary.
2918 2002-07-31  Roland McGrath  <roland@redhat.com>
2920         * libio/fileops.c (decide_maybe_mmap): New static function.
2921         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
2922         mmap the file contents.  Then switch the jump tables to the mmap
2923         tables if it worked, or the vanilla file tables if not.
2924         (_IO_file_underflow_maybe_mmap): New function.
2925         (_IO_file_seekoff_maybe_mmap): New function.
2926         (_IO_file_xsgetn_maybe_mmap): New function.
2927         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
2928         * libio/libioP.h: Declare those.
2929         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
2930         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
2931         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
2932         If the stream is read-only, set its jump tables to those new ones.
2933         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
2934         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
2935         We need the tables set before _IO_file_attach.
2937         * libio/tst-mmap-eofsync.c: New file.
2938         * libio/tst-mmap-fflushsync.c: New file.
2939         * libio/bug-mmap-fflush.c: New file.
2940         * libio/tst-mmap2-eofsync.c: New file.
2941         * libio/Makefile (tests): Add them.
2943         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
2944         _IO_file_underflow_mmap fails, it already set the appropriate bit.
2946 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
2948         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
2949         Declarations moved to <bits/sys_errlist.h>.  Include that file.
2950         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
2951         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
2952         declare sys_errlist and sys_nerr.
2953         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
2954         provide declarations.
2956 2002-07-31  Roland McGrath  <roland@redhat.com>
2958         * elf/rtld.c (dl_main): Fix typo in error message.
2960 2002-07-31  Roland McGrath  <roland@frob.com>
2962         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
2963         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
2964         sysdeps/mach/hurd/dl-sysdep.c change.
2966 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
2968         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
2969         -r`/build/include for kernel headers.
2971         * po/fi.po: New file.
2973 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
2975         * configure.in (static_nss): Set to `yes' if --disable-shared.
2977 2002-07-23  Bruno Haible  <bruno@clisp.org>
2979         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
2980         is set.
2982 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
2984         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
2985         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
2986         arguments.
2988 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
2990         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
2991         alias.
2993 2002-07-21  Bruno Haible  <bruno@clisp.org>
2995         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
2996         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
2997         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
2998         trans_sysdep_tab_offset.
2999         (struct sysdep_segment): New type.
3000         (struct sysdep_string): New type.
3001         (SEGMENTS_END): New macro.
3002         * intl/gettextP.h (struct sysdep_string_desc): New type.
3003         (struct loaded_domain): New fields malloced, n_sysdep_strings,
3004         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
3005         orig_tab, trans_tab, hash_tab to const pointers because they point
3006         into read-only memory.
3007         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
3008         (PRI*): Define fallback values.
3009         (get_sysdep_segment_value): New function.
3010         (_nl_load_domain): Distinguish major and minor revision parts. Add
3011         support for minor revision 1 with system dependent strings.
3012         (_nl_unload_domain): Also free the 'malloced' field.
3013         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
3014         now done in loadmsgcat.c. Add support for system dependent strings.
3016 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
3018         * posix/bug-regex7.c: New file.
3019         * posix/bug-regex8.c: New file.
3020         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
3022 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
3024         * posix/bug-regex4.c (main): Fix typos.
3025         * posix/bug-regex6.c (main): Likewise.
3027 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
3029         * posix/bug-regex6.c (main): Fix warnings.
3031         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
3033         * iconv/iconv_prog.c (main): Improve error message for the cases
3034         where -t and/or -f parameter are missing.
3036 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
3038         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
3039         (re_search): Likewise.
3040         (re_match_2): Likewise.
3041         (re_search_2): Likewise.
3042         (re_search_stub): New function.
3043         (re_search_2_stub): New function.
3044         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
3046 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
3048         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
3049         (re_string_eoi): Use STOP instead of LEN.
3050         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
3051         (re_string_construct): Likewise.
3052         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
3053         * posix/regexec.c (re_search_internal): Add a new argument STOP
3054         so that it can handle the argument STOP of re_search_2 and re_match_2
3055         correctly.
3056         (regexec): Adapt to new I/F of re_search_internal.
3057         (re_search_stub): Likewise.
3059 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
3061         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
3063         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
3065         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
3066         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
3067         of __divdi3.
3069         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
3070         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
3071         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
3072         alias for adjtimex syscall.
3074         * elf/dl-minimal.c: Define __assert_fail_internal.
3075         * assert/assert.c: Likewise.
3076         * include/assert.h: Define __assert_file macro if !SHARED and not
3077         NOT_IN_libc.
3079         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
3080         programs.
3081         * locale/Makefile: Likewise.
3082         * nscd/Makefile: Likewise.
3083         * catgets/Makefile: Likewise.
3085 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
3087         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
3088         compute current position.
3090         * stdio-common/tst-fseek.c (main): Improve error messages.
3092         * libio/tst-freopen.c (main): Remove unused variable.
3094         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
3095         succesful seek call.  Simplify error checking.
3097 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
3099         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
3100         * sysdeps/ia64/fpu/libm_support.h: Likewise.
3102 2002-07-19  Roland McGrath  <roland@frob.com>
3104         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
3105         __libc_enable_secure is set.
3107 2002-07-24  Roland McGrath  <roland@frob.com>
3109         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
3110         This implementation supports only IPv4.
3111         * inet/ifaddrs.h: New file.
3112         * sysdeps/generic/ifaddrs.c: New file.
3113         * sysdeps/gnu/ifaddrs.c: New file.
3114         * inet/test-ifaddrs.c: New file.
3115         * inet/Makefile (routines): Add ifaddrs.
3116         (headers): Add ifaddrs.h here.
3117         (tests): Add test-ifaddrs.
3118         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
3120         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
3121         socket call to get an AF_INET socket, instead of using __opensock.
3122         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
3124         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
3125         if not -1 use it instead of calling __opensock.
3126         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
3127         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
3128         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
3130         * sysdeps/mach/hurd/ifreq.h: New file.
3131         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
3132         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
3133         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
3135         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
3136         which gets moved around.  Calculate size of mmap'd buffer instead.
3138 2002-07-24  Philip Blundell  <philb@gnu.org>
3140         * sysdeps/unix/arm/brk.S: Improve schedule.
3141         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
3142         efficient instruction.
3143         (__socket): Optimize return sequence.
3145 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
3147         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
3148         sockets on old kernels.
3150 2002-07-22  Philip Blundell  <philb@gnu.org>
3152         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
3153         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
3154         alias.
3156 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
3158         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
3159         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
3161         * locale/programs/locarchive.c (add_locale_to_archive): Correct
3162         test to detect duplicate locales.
3164         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
3165         position would be before beginning of file.
3166         (_IO_file_seekoff_mmap): Likewise.
3167         * libio/Makefile (tests): Add bug-fseek.
3168         * libio/bug-fseek.c: New file.
3170         * intl/explodename.c: Remove support for CEN-style locale variables.
3171         It was never used and shouldn't be since it's not portable.
3172         * intl/finddomain.c: Likewise.
3173         * intl/l10nflist.c: Likewise.
3174         * intl/loadinfo.h: Likewise.
3175         * locale/findlocale.c: Likewise.
3177 2002-07-24  Roland McGrath  <roland@frob.com>
3179         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
3180         position, calculate it to take into account an active pushback buffer.
3182         * libio/Makefile (tests): Add bug-ungetc.
3183         * libio/bug-ungetc.c: New file.
3185 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
3187         * sysdeps/generic/libc-tls.c: New file.
3188         * csu/Makefile (routines): Add libc-tls.
3189         (static-only-routines): Add libc-tls.
3190         * elf/dl-support.c (_dl_phdr): New variable.
3191         (_dl_phnum): New variable.
3192         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
3193         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
3194         for !SHARED.  First look through auxiliary vector.  If TLS always
3195         call __pthread_initialize_minimal.
3197         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
3198         in mmap call is never zero.
3200 2002-07-23  Andreas Jaeger  <aj@suse.de>
3202         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
3203         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3205 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
3207         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
3208         creation and removal of the temp file.
3210         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
3211         file creation.
3212         * test-skeleton.c (create_temp_file): New function.
3214 2002-07-22  Andreas Jaeger  <aj@suse.de>
3216         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
3217         local label.
3219 2002-07-21  Roland McGrath  <roland@frob.com>
3221         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
3222         put -I../include before -I../stdlib so we get the right errno.h et al.
3223         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
3224         (CFLAGS-wcstof.c): Likewise.
3225         (CFLAGS-wcstold.c): Likewise.
3226         (CFLAGS-wcstod_l.c): Likewise.
3227         (CFLAGS-wcstof_l.c): Likewise.
3228         (CFLAGS-wcstold_l.c): Likewise.
3230 2002-07-19  Roland McGrath  <roland@frob.com>
3232         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
3234 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
3236         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
3237         __ASSUME_AT_XID is defined.
3238         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
3239         for 2.4.1 and up.
3240         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
3241         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
3243         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
3244         (CFLAGS-wcstof.c): Likewise.
3245         (CFLAGS-wcstold.c): Likewise.
3246         (CFLAGS-wcstod_l.c): Likewise.
3247         (CFLAGS-wcstof_l.c): Likewise.
3248         (CFLAGS-wcstold_l.c): Likewise.
3250 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
3252         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
3253         __priority_which_t): Always typedef to int for C++.
3255 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
3257         * configure.in: Add test for __thread support in compiler.
3258         * config.h.in: Add HAVE___THREAD.
3259         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
3260         * include/sys/errno.h: Moved to...
3261         * stdlib/sys/errno.h: ...here.  New file.
3262         * stdlib/errno.h: New file.  Moved from...
3263         * include/errno.h: ...here.  Changed into an internal header defining
3264         libc-local things like __set_errno.
3265         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
3266         bits/errno.h.
3267         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
3268         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
3269         either.
3270         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
3271         from...
3272         (_dl_start_final): ...here.  Add code to initialize tls elements from
3273         bootstrap_map.
3274         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
3275         if USE_TLS && HAVE___THREAD.
3276         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
3277         * sysdeps/mach/hurd/bits/errno.h: Likewise.
3278         * sysdeps/standalone/arm/bits/errno.h: Likewise.
3279         * sysdeps/standalone/bits/errno.h: Likewise.
3280         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
3281         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
3282         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
3283         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
3284         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
3285         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
3286         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
3287         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
3288         use GL(dl_rtld_map), use map parameter.
3289         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3290         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
3291         USE_TLS && HAVE___THREAD.
3292         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
3293         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
3294         TLS code sequence.
3295         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
3297         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
3298         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
3299         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
3300         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
3301         * sysdeps/unix/sysv/linux/readv.c: Likewise.
3302         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3304 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
3306         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
3307         MS_INVALIDATE values.
3309 2002-07-17  Andreas Schwab  <schwab@suse.de>
3310             Ulrich Drepper  <drepper@redhat.com>
3312         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
3313         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
3314         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3315         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3317 2002-07-01  H.J. Lu  <hjl@gnu.org>
3319         * elf/circleload1.c (load_dso): Call "circlemod1" and check
3320         return value.
3322         * elf/circlemod1.c (circlemod1): Return int.
3323         * elf/circlemod2.c (circlemod2): Likewise.
3324         * elf/circlemod2a.c (circlemod2): Likewise.
3325         * elf/circlemod3.c (circlemod3): Likewise.
3326         (circlemod3a): A new function.
3328 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
3330         * catgets/tst-catgets.c (main): Don't expect results for
3331         untranslated messages.
3333         * glibcbug.in: Fix little typo.  Remove STDIO.
3335         * config.h.in: Fail if __FAST_MATH__ is defined.
3336         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
3337         (CPPFLAGS-test-idouble.c): Likewise.
3338         (CPPFLAGS-test-ildouble.c): Likewise.
3340 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
3342         * intl/tst-gettext.sh: Pass -f option to msgfmt.
3343         * intl/tst-gettext.c: Correctly handle untranslated messages in
3344         positive tests.
3346         * po/de.po: Update from translation team.
3348 2002-07-02  H.J. Lu  <hjl@gnu.org>
3350         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
3351         use ll/sc.
3352         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
3354         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
3355         to 2.4.0 for mips.
3357 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
3359         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
3360         TLS fail if USE_TLS is not defined.
3362         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
3363         and adjust state for seek position.  [PR libc/4070]
3364         * libio/Makefile (tests): Add bug-rewind.
3365         * libio/bug-rewind.c: New file.
3367 2002-07-12  Philip Blundell  <philb@gnu.org>
3369         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
3370         (__backtrace): Use it.
3371         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
3373 2002-07-12  Philip Blundell  <philb@gnu.org>
3375         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
3376         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
3377         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
3378         (elf_machine_rela): Remove unused variable.
3380         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
3381         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
3382         define.
3384 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
3386         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
3388 2002-07-14  Andreas Jaeger  <aj@suse.de>
3390         * sysdeps/x86_64/bits/link.h: Add biarch support.
3392 2002-07-13  Andreas Jaeger  <aj@suse.de>
3394         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
3395         Use correct indices.
3396         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
3398 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3400         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
3401         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
3402         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
3403         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
3404         * sysdeps/s390/s390-32/bits/link.h: Remove.
3405         * sysdeps/s390/s390-64/bits/link.h: Remove.
3406         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
3407         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
3408         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
3409         * sysdeps/s390/bits/wordsize.h: New file.
3410         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
3411         elfclass.h.
3412         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
3413         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
3414         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
3415         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
3416         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
3417         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
3418         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
3419         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
3420         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
3421         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
3422         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
3423         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
3424         resource.h.
3425         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
3426         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
3427         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
3428         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
3429         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
3430         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
3431         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
3432         sigaction.h.
3433         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
3434         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
3435         siginfo.h.
3436         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
3437         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
3438         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
3439         socket.h.
3440         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
3441         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
3442         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
3443         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
3444         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
3445         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
3446         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
3447         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
3448         procfs.h.
3449         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
3450         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
3451         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
3452         ucontext.h.
3453         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
3454         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
3456 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
3458         * Versions.def (libc): Add GLIBC_2.3.
3459         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
3460         * stdlib/canonicalize.c: Add compatibility version for realpath
3461         and make new code available in GLIBC_2.3.
3463 2002-07-06  Bruno Haible  <bruno@clisp.org>
3465         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
3467 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
3469         * resolv/res_hconf.c (_res_hconf_init): Move code into new
3470         function do_init.  Use __libc_once.
3471         (do_init): New function.
3473         * iconvdata/iso8859-11.h: Removed.
3474         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
3475         (distribute): Remove iso8859-11.h.
3476         * iconvdata/tst-tables.sh: Add ISO-8859-11.
3478         * stdio-common/vfscanf.c (inchar): Restore errno from previous
3479         underflow operation if c == (W)EOF.
3481 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
3483         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
3484         non-zero, adjust exponent.
3485         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
3486         Remove NO_LONG_DOUBLE aliases.
3487         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
3488         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
3489         (__log1pl): Raise divide by zero and invalid exceptions when needed.
3490         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
3491         1**y and -1**+-Inf.
3492         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
3493         Fix BITS_PER_MP_LIMB 32 extraction.
3494         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
3495         exceptions for qNaNs.
3496         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
3497         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
3498         Raise exceptions when needed.  Don't recurse unnecessarily.
3499         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
3500         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
3501         exceptions for qNaNs.
3502         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
3503         to fix *quo return value sign.
3504         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
3505         case -Inf argument.
3506         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
3508 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
3510         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
3511         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
3512         -DNDEBUG.
3514 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
3516         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
3517         the result.
3519         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
3520         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
3522         * Versions.def (libthread_db): Add GLIBC_2.3.
3524 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
3526         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
3527         new stream if possible.
3528         * libio/freopen64.c (freopen64): Likewise.
3529         * libio/Makefile (tests): Add tst-freopen.
3530         * libio/tst-freopen.c: New file.
3532 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
3534         * libio/stdio.h (obstack_printf): Add format attribute.
3535         (obstack_vprintf): Likewise.
3537 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
3539         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
3540         resp. 16 bytes on 32-bit resp. 64-bit platforms.
3541         (re_charset_t, re_string_t): Reorder structure members for 64-bit
3542         architectures.
3544 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
3546         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
3547         (init_dfa): ...here.
3549 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
3551         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
3552         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
3553         nodes in parse trees.
3554         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
3555         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
3556         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
3557         nodes which can epsilon transit.
3558         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
3559         to IS_EPSILON_NODE macro.
3560         * posix/regexec.c (update_regs): New function to update registers
3561         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
3562         (proceed_next_node): Use the entities of the nodes to determine
3563         whether the node can transit to.
3564         (set_regs): Use update_regs function to update registers.
3566 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
3568         * posix/bug-regex4.c (main): Remove duplicate setlocale.
3569         * posix/bug-regex6.c: New file.
3570         * posix/Makefile (tests): Add bug-regex6.
3571         (bug-regex6-ENV): Set LOCPATH.
3573 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
3575         * Versions.def [libpthread]: Add GLIBC_2.2.6.
3576         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
3578 2002-07-06  Bruno Haible  <bruno@clisp.org>
3580         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
3582 2002-07-06  Bruno Haible  <bruno@clisp.org>
3584         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
3585         declarations.
3587         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
3589         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
3591         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
3592         not _UTSNAME_H.
3593         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
3595         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
3596         * sysdeps/generic/bits/ustat.h: Likewise.
3598         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
3600 2002-07-08  Andreas Jaeger  <aj@suse.de>
3602         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
3604 2002-07-08  Andreas Jaeger  <aj@suse.de>
3606         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
3608 2002-07-06  Andreas Jaeger  <aj@suse.de>
3610         * sysdeps/x86_64/fpu/bits/mathinline.h: New.
3611         * sysdeps/x86_64/fpu/s_copysign.S: New.
3612         * sysdeps/x86_64/fpu/s_copysignf.S: New.
3613         * sysdeps/x86_64/fpu/s_copysignl.S: New.
3614         * sysdeps/x86_64/fpu/s_finitel.S: New.
3615         * sysdeps/x86_64/fpu/s_fmax.S: New.
3616         * sysdeps/x86_64/fpu/s_fmaxf.S: New.
3617         * sysdeps/x86_64/fpu/s_fmaxl.S: New.
3618         * sysdeps/x86_64/fpu/s_fmin.S: New.
3619         * sysdeps/x86_64/fpu/s_fminf.S: New.
3620         * sysdeps/x86_64/fpu/s_fminl.S: New.
3622 2002-06-05  Brian Youmans <3diff@gnu.org>
3624         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
3625         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
3626         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
3627         * sysdeps/ia64/fpu/e_asin.S: Likewise.
3628         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
3629         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
3630         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
3631         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
3632         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
3633         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
3634         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
3635         * sysdeps/ia64/fpu/e_exp.S: Likewise.
3636         * sysdeps/ia64/fpu/e_expf.S: Likewise.
3637         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
3638         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
3639         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
3640         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
3641         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
3642         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
3643         * sysdeps/ia64/fpu/e_log.S: Likewise.
3644         * sysdeps/ia64/fpu/e_logf.S: Likewise.
3645         * sysdeps/ia64/fpu/e_pow.S: Likewise.
3646         * sysdeps/ia64/fpu/e_powf.S: Likewise.
3647         * sysdeps/ia64/fpu/e_powl.S: Likewise.
3648         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
3649         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
3650         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
3651         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
3652         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
3653         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
3654         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
3655         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
3656         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
3657         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
3658         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
3659         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
3660         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
3661         * sysdeps/ia64/fpu/libm_error.c: Likewise.
3662         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
3663         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
3664         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
3665         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
3666         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
3667         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
3668         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
3669         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
3670         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
3671         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
3672         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
3673         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
3674         * sysdeps/ia64/fpu/s_logb.S: Likewise.
3675         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
3676         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
3677         * sysdeps/ia64/fpu/s_modf.S: Likewise.
3678         * sysdeps/ia64/fpu/s_modff.S: Likewise.
3679         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
3680         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
3681         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
3682         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
3683         * sysdeps/ia64/fpu/s_rint.S: Likewise.
3684         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
3685         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
3686         * sysdeps/ia64/fpu/s_round.S: Likewise.
3687         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
3688         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
3689         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
3690         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
3691         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
3692         * sysdeps/ia64/fpu/s_significand.S: Likewise.
3693         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
3694         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
3695         * sysdeps/ia64/fpu/s_tan.S: Likewise.
3696         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
3697         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
3698         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
3699         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
3700         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
3701         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
3702         reflect IBM donation of math library to FSF
3703         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3704         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3705         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3706         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3707         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3708         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3709         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3710         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3711         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3712         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3713         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3714         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3715         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3716         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3717         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3718         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3719         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3720         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3721         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3722         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3723         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3724         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
3725         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
3726         * sysdeps/vax/__longjmp.c: Likewise.
3727         * sysdeps/vax/setjmp.c: Likewise.
3728         * libio/filedoalloc.c: Fixed BSD copying permission notice to
3729         remove advertising clause
3730         * sysdeps/vax/htonl.s: Likewise.
3731         * sysdeps/vax/htons.s: Likewise.
3732         * libio/wfiledoalloc.c: Likewise.
3733         * stdlib/random.c: Likewise.
3734         * stdlib/random_r.c: Likewise.
3735         * sysdeps/mach/sys/reboot.h: Likewise.
3736         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
3737         * sysdeps/posix/getaddrinfo.c: Likewise.
3738         * sunrpc/des_impl.c: Updated license permission notice to Lesser
3739         GPL and corrected pointer to point to the correct license.
3741 2002-07-04  Andreas Jaeger  <aj@suse.de>
3743         * scripts/config.guess: New upstream version.
3744         * scripts/config.sub: Likewise.
3746 2002-07-02  Andreas Schwab  <schwab@suse.de>
3748         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
3749         in parallel to bumping up the buffer pointer.
3751 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
3753         * math/libm-test.inc (acos_test): Add missing L suffix for
3754         expected result.
3755         (cpow_test): Likewise.
3756         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
3757         error for acos (0.0625).
3759 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
3761         * locale/iso-639.def: Add entry for Ganda.
3762         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
3763         definition.
3764         (address_finish): Handle entries with two letter ISO 639 code.
3766         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
3767         directory if it existed before.
3768         * iconv/iconvconfig.c: Implement --prefix option.
3770         * math/libm-test.inc (cexp_test): Add missing L suffix for
3771         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
3772         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
3773         1.25 i).
3775 2002-05-29  H.J. Lu  <hjl@gnu.org>
3777         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
3778         is turned on.
3780 2002-05-28  H.J. Lu  <hjl@gnu.org>
3782         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
3783         are not dlopened on the dependency list of a dlopened object.
3785 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
3787         * elf/dl-lookup.c (add_dependency): It is not necessary to add
3788         dependencies if they are created between objects which are created
3789         while processing RTLD_NOW for objects loaded as part of the same
3790         dlopen call.
3792 2002-06-14  H.J. Lu  <hjl@gnu.org>
3794         * elf/Makefile (tests): Add circleload1.
3795         (modules-names): Add circlemod1, circlemod2, circlemod3,
3796         circlemod1a, circlemod2a and circlemod3a.
3797         ($(objpfx)circleload1): New target.
3798         ($(objpfx)circleload1.out): Likewise.
3799         ($(objpfx)circlemod1.so): Likewise.
3800         ($(objpfx)circlemod2.so): Likewise.
3801         ($(objpfx)circlemod1a.so): Likewise.
3802         ($(objpfx)circlemod2a.so): Likewise.
3803         * elf/circleload1.c: New file.
3804         * elf/circlemod1.c: New file.
3805         * elf/circlemod1a.c: New file.
3806         * elf/circlemod2.c: New file.
3807         * elf/circlemod2a.c: New file.
3808         * elf/circlemod3.c: New file.
3809         * elf/circlemod3a.c: New file.
3811 2002-06-18  Amos Waterland  <apw@us.ibm.com>
3813         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
3814         file descriptor.
3815         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
3816         add check for fd not open for writing.
3818         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
3819         completed element(s) and do not suspend thread if so.  Patch
3820         heavily modified by drepper.
3822         * rt/tst-aio7.c: New file.  Regression test for problems which the
3823         above three changes fix.
3824         * rt/Makefile (tests): Add tst-aio7.
3826 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
3828         * rt/tst-aio6.c: Fix comment.
3830         * catgets/gencat.c (read_input_file): Handle more than one slash
3831         at end of line correctly [PR libc/3926].
3832         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
3834         * catgets/sample.SJIS: Add test case for above bug.
3835         * catgets/test-gencat.c: Adjust test code.
3836         * catgets/test-gencat.sh: Adjust expected results.
3838         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
3839         to skip relative relocations.
3840         Patch by Geoff Keating <geoffk@redhat.com>.
3842 2002-05-26  Bruno Haible  <bruno@clisp.org>
3844         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
3845         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
3846         All callers changed.
3847         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
3848         STANDARD_FROM_LOOP_ERR_HANDLER.
3849         (utf8_internal_loop): Likewise.
3850         (ucs2_internal_loop): Likewise.
3851         (internal_ucs2_loop): Perform error handling like in
3852         STANDARD_FROM_LOOP_ERR_HANDLER.
3853         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
3854         in STANDARD_FROM_LOOP_ERR_HANDLER.
3855         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3856         handling.
3857         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
3858         in STANDARD_FROM_LOOP_ERR_HANDLER.
3859         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3860         handling.
3861         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
3862         in STANDARD_FROM_LOOP_ERR_HANDLER.
3863         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3864         handling.
3865         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
3866         STANDARD_FROM_LOOP_ERR_HANDLER.
3867         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
3868         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
3869         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
3870         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
3871         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
3872         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
3873         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
3874         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
3875         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
3876         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
3877         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
3878         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
3879         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
3880         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
3881         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
3882         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
3883         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
3884         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
3885         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
3886         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
3887         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
3888         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
3889         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
3890         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
3891         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
3892         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
3893         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
3894         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
3895         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
3896         an error, still set result = __GCONV_ILLEGAL_INPUT.
3897         (BODY for TO_LOOP): Likewise.
3898         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
3899         STANDARD_FROM_LOOP_ERR_HANDLER.
3900         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3901         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
3902         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3903         handling.
3904         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3905         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
3906         STANDARD_FROM_LOOP_ERR_HANDLER.
3907         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3908         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
3909         STANDARD_FROM_LOOP_ERR_HANDLER.
3910         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3911         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
3912         STANDARD_FROM_LOOP_ERR_HANDLER.
3913         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3914         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
3915         STANDARD_FROM_LOOP_ERR_HANDLER.
3916         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3917         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
3918         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3919         handling.
3920         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3921         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
3922         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
3923         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
3925 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3927         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
3928         labels in assembler instructions.
3930 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
3932         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
3933         not enough content is available.
3934         * libio/tst-eof.c: New file.
3935         * libio/Makefile (tests): Add tst-eof.
3937         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
3938         update atime.
3939         * libio/tst-atime.c: New file.
3940         * libio/Makefile (tests): Add tst-atime.
3942         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
3943         handling of overly long words.
3945 2002-06-25  Andreas Jaeger  <aj@suse.de>
3947         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
3948         to not use 32-bit pc relative relocations.
3949         (elf_machine_dynamic): Likewise.
3951 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
3953         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
3954         (__GETDENTS): Check for failed getdents64 syscall.
3955         * dirent/Makefile (tests): Add bug-readdir1.
3956         * dirent/bug-readdir1.c: New file.
3958 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
3960         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
3961         lookups.
3962         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
3963         code.  Print TLS modid and offset for modules containing PT_TLS
3964         segments.
3966 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
3968         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
3969         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
3970         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
3971         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
3973 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
3975         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
3976         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
3977         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
3978         * nss/getXXent_r.c (NEW, NEW1): Define.
3979         (NEW (REENTRANT_GETNAME)): Strong alias to
3980         INTERNAL (REENTRANT_GETNAME).
3981         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
3983 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
3985         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
3986         (_IO_file_jumps_mmap): Use it.
3987         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
3988         * libio/libioP.h: Remove _IO_wdefault_setbuf and
3989         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
3990         prototype.
3991         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
3992         (_IO_wfile_jumps_mmap): Don't use it anymore.
3993         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
3994         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
3995         _IO_wdefault_setbuf.
3996         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
3997         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
3998         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
4000 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
4002         * libio/Makefile (tests): Add tst-mmap-setvbuf.
4003         * libio/tst-mmap-setvbuf.c: New test.
4005 2002-06-21  Andreas Jaeger  <aj@suse.de>
4007         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
4009 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
4011         * include/unistd.h (__fork_internal): Remove.
4012         (__fork): Don't define to __fork_internal.
4013         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
4014         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
4015         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
4016         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
4017         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
4019 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
4021         * po/hr.po: New file.
4023 2002-06-11  Wolfram Gloger  <wg@malloc.de>
4025         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
4026         Reported by Michael Meissner <meissner@redhat.com>.
4028 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
4030         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
4031         Patch by Hans Boehm <hans_boehm@hp.com>.
4033 2002-06-20  Andreas Jaeger  <aj@suse.de>
4035         * math/libm-test.inc: Use exact values as input parameters,
4036         compute output parameters with 36 digits for 128-bit long doubles.
4037         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
4038         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
4039         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
4041 2002-06-13  Stephen L Moshier  <steve@moshier.net>
4043         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
4044         argument or result is subnormal.
4046 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
4048         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
4049         quotient.
4050         * sysdeps/i386/fpu/s_remquof.S: Likewise.
4051         * sysdeps/i386/fpu/s_remquol.S: Likewise.
4053         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
4055 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
4057         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
4058         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
4059         Reported by Peter A. Buhr.
4061 2002-06-15  Roland McGrath  <roland@frob.com>
4063         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
4064         warning.
4066         * sysdeps/mach/hurd/getcwd.c
4067         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
4069         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
4070         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
4072         * sysdeps/alpha/divrem.h: Use local label instead of global one for
4073         jump to local subroutine.
4075 2002-06-14  Roland McGrath  <roland@frob.com>
4077         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
4078         * sysdeps/mach/hurd/Makeconfig: ... here.
4080 2002-06-13  Andreas Schwab  <schwab@suse.de>
4082         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
4083         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
4084         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
4086 2002-06-13  Roland McGrath  <roland@frob.com>
4088         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
4089         * hurd/hurdstartup.c (_hurd_startup): Likewise.
4090         Use intptr_t instead of int for argc in stack layout.
4091         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
4092         (_dl_init_first): Likewise.
4093         (_hurd_stack_setup): Likewise.
4094         (init1): Add a cast.
4095         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
4097         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
4098         argument to pfinet_siocgifconf RPC.
4100 2002-06-13  Andreas Schwab  <schwab@suse.de>
4102         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
4103         expansion order.
4105 2002-06-12  Roland McGrath  <roland@frob.com>
4107         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
4108         if already defined.
4109         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
4110         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
4112 2002-06-11  Roland McGrath  <roland@frob.com>
4114         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
4115         file on [!RTLD_STAT64].
4116         * sysdeps/mach/hurd/fxstat64.c: Likewise.
4118         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
4119         (__fdopen): Use INTUSE.
4120         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
4122         * stdio-common/tmpfile64.c: File removed.
4123         * sysdeps/generic/tmpfile64.c: New file.
4124         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
4125         if not already defined.
4126         (tmpfile): Use it in place of __GT_FILE.
4128         * include/unistd.h: Declare __chown_internal.
4130         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
4131         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
4133 2002-06-09  Roland McGrath  <roland@frob.com>
4135         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
4136         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
4137         value of HURD_INTERFACE_VERSION >= 20020609.
4138         * sysdeps/mach/hurd/configure: Regenerated.
4139         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
4140         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
4141         convert a struct stat64 into a struct stat and return 0 or -1
4142         with errno set to EOVERFLOW.
4143         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
4144         for struct statfs64 to struct statfs.
4145         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
4146         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
4147         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
4148         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
4149         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
4150         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
4151         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4152         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
4153         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
4154         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
4155         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
4156         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
4157         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
4158         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
4159         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
4160         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
4161         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
4162         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
4163         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
4164         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
4165         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
4166         Use struct stat64 for io_stat argument.
4167         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
4168         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
4169         to io_seek.
4170         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
4171         * hurd/fd-write.c (_hurd_fd_write): Likewise.
4172         * hurd/hurd/fd.h: Update decls.
4173         * sysdeps/mach/hurd/getcwd.c
4174         (_hurd_canonicalize_directory_name_internal): Use ino64_t
4175         and struct dirent64.
4176         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
4177         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
4178         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
4179         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
4181 2002-06-08  Roland McGrath  <roland@frob.com>
4183         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
4184         instead of unsigned long int for __allocation and __size members.
4186 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
4188         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
4189         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
4190         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
4191         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
4193 2002-06-07  Roland McGrath  <roland@frob.com>
4195         * sysdeps/mach/hurd/bits/environments.h: File removed.
4197 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
4199         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
4200         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
4201         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
4202         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
4203         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
4204         (sendfile64): Likewise.
4205         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
4206         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
4207         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
4208         Likewise.
4209         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
4211         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
4212         already defined.
4214 2002-06-04  Bruno Haible  <bruno@clisp.org>
4216         * sysdeps/cris/stackinfo.h: New file.
4218         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
4219         to an integer type before performing bit operations on it.
4221 2002-06-05  Roland McGrath  <roland@frob.com>
4223         * sysdeps/generic/sendfile.c: Include <errno.h>.
4224         * sysdeps/generic/sendfile64.c: Likewise.
4226         * io/Makefile (routines): Add sendfile and sendfile64.
4227         (headers): Add sys/sendfile.h to the list.
4228         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
4229         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
4230         * io/sys/sendfile.h: ... here.
4231         * sysdeps/generic/sendfile.c: New file.
4232         * sysdeps/generic/sendfile64.c: New file.
4234         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
4235         Move sendfile, sendfile64 to ...
4236         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
4237         * sysdeps/mach/hurd/sendfile.c: New file.
4238         * sysdeps/mach/hurd/sendfile64.c: New file.
4240         * sysdeps/mach/nanosleep.c: New file.
4242 2002-06-04  Roland McGrath  <roland@frob.com>
4244         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
4245         * sysdeps/alpha/elf/configure: New file (generated).
4247 2002-06-02  Roland McGrath  <roland@frob.com>
4249         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
4251 2002-06-01  Roland McGrath  <roland@frob.com>
4253         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
4254         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
4256 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
4258         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
4259         Add nsmap.
4260         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
4261         Remove nstimes setting.
4262         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
4263         * resolv/res_send.c (res_nsend): Don't close unconditionally if
4264         there is mix of IPv6 and IPv4 nameservers.
4265         Use nsmap array to find free slots and preserve nameserver ordering.
4266         Fix RES_ROTATE.
4268 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
4270         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
4271         use this header with LFS.
4273         * po/sk.po: Update from translation team.
4275 2002-05-28  Andreas Schwab  <schwab@suse.de>
4277         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
4278         message when finding object of wrong class.
4280 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
4282         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
4283         Patch by <radu@netsoft.ro>.
4285 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
4287         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
4288         Add readahead.
4289         * sysdeps/unix/sysv/linux/readahead.c: New file.
4290         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
4291         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
4292         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
4293         Add sendfile64 alias to sendfile syscall.
4294         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4295         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4296         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4297         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
4298         syscall.
4300         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
4301         special section for PIC register loading.
4302         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4304         * config.h.in: Define HAVE_HIDDEN.
4305         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
4307         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
4309 2002-05-28  Roland McGrath  <roland@frob.com>
4311         * sysdeps/mach/alpha/setfpucw.c: New file.
4313 2002-05-26  Roland McGrath  <roland@frob.com>
4315         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
4316         Use integer_t instead of int for IOC_VOID case.
4318 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
4320         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
4322 2002-05-26  Bruno Haible  <bruno@clisp.org>
4324         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
4325         end of the ISO-8859-7 from idx table.
4327 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
4329         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
4331 2002-05-24  David S. Miller  <davem@redhat.com>
4333         * string/bits/string2.h (memset): Do not try to optimize when
4334         not _STRING_ARCH_unaligned if GCC will do the right thing.
4336 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
4338         * posix/regex.c: Define `inline' as a macro into nothing for the
4339         compilers which lack the keyword.
4340         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
4341         for the compatibility of gawk.
4342         * posix/regcomp.c: Add fake implementation of isblank() for the
4343         environments which lack the function.
4344         Don't use free_charset() in case of non-i18n envs.
4345         (build_range_exp): Don't use i18n related code in case of non-i18n
4346         envs.
4347         (build_collating_symbol): Likewise.
4348         (build_equiv_class): Likewise.
4349         (build_charclass): Likewise.
4350         (re_compile_fastmap_iter): Likewise.
4351         (parse_bracket_exp): Likewise.
4352         (build_word_op): Likewise.
4353         (regfree): Don't use free_charset() in case of non-i18n envs.
4354         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
4355         re_token_type_t in case of non-i18n envs.
4356         Don't define re_charset_t in case of non-i18n envs.
4357         Change the type of wcs of re_string_t from wchar_t to wint_t,
4358         since we store also WEOF.
4359         * posix/regex_internal.c: (re_string_realloc_buffers): Change
4360         the type of wcs of re_string_t from wchar_t to wint_t.
4361         (re_string_reconstruct): Likewise.
4362         (create_ci_newstate): Don't use i18n related code in case of
4363         non-i18n envs.
4364         (create_cd_newstate): Likewise.
4366 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
4368         * iconv/loop.c: Fix typo.
4370 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
4372         * inet/ether_line.c (ether_line): Fix a typo causing only
4373         lower 4 bits of each ethernet address byte being assigned.
4374         Don't modify what line points to.
4375         * inet/tst-ether_aton.c (main): Add ether_line tests.
4377 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
4379         * manual/filesys.texi: Don't make readlink example leak memory
4380         when readlink fails.
4382 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
4384         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
4385         some more security checks.
4387 2002-05-17  David S. Miller  <davem@redhat.com>
4389         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
4391 2002-05-16  David S. Miller  <davem@redhat.com>
4393         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
4394         (elf_machine_dynamic): Use it to force PIC register to be loaded.
4395         (elf_machine_load_address): Likewise.
4396         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
4398         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
4399         is unaligned, do not forget to fully initialize %g1 magic value.
4401         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
4402         register definitions and provide 32-bit variants of structures
4403         during 64-bit builds.
4405         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
4406         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
4407         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
4408         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
4409         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
4410         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
4411         Do not clear implicit one bit here, it must be done post-rounding.
4412         Only pad to the left using left shift if value uses less than the
4413         available fractional bits.
4415 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4417         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
4418         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
4419         (shared-only-routines): Likewise.
4420         * sysdeps/powerpc/libgcc-compat.c: New file.
4421         * sysdeps/wordsize-32/cmpdi2.c: Removed.
4422         * sysdeps/wordsize-32/fixdfdi.c: Removed.
4423         * sysdeps/wordsize-32/fixsfdi.c: Removed.
4424         * sysdeps/wordsize-32/shdi3.c: Removed.
4426 2002-05-16  Bruno Haible  <bruno@clisp.org>
4428         * MakeTAGS (libc.pot): Don't sort the output.
4429         * po/header.pot: Update to match xgettext 0.11 output.
4431 2002-05-16  Bruno Haible  <bruno@clisp.org>
4433         * MakeTAGS (subdirs): Remove duplicates.
4435 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
4437         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
4438         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
4439         alias.
4441 2002-05-19  Andreas Jaeger  <aj@suse.de>
4443         * sysdeps/unix/sysv/linux/configure.in: Warn against an
4444         installation in /usr/local.
4446 2002-05-16  Bruno Haible  <bruno@clisp.org>
4448         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
4449         string as argument of #error.
4451 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
4453         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
4454         don't define static.  Remove old __realpath function.  TC1 of
4455         POSIX 2001 will allow the second parameter to be NULL.
4456         * stdlib/test-canon.c: Comment out test for NULL as second
4457         parameter of realpath.
4459         * time/offtime.c (__offtime): Set errno if overflow is detected.
4461         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
4462         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
4463         dl-brk and dl-sbrk.
4465         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
4466         (fdimf): Likewise.
4468 2002-05-15  Roland McGrath  <roland@frob.com>
4470         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
4472 2002-05-12  Bruno Haible  <bruno@clisp.org>
4474         * iconvdata/testdata/EUC-JISX0213: New file.
4475         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
4476         * iconvdata/testdata/SHIFT_JISX0213: New file.
4477         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
4478         * iconvdata/testdata/ISO-2022-JP-3: New file.
4479         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
4480         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
4481         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
4482         contains comments indicating precomposed characters.
4484 2002-04-21  Bruno Haible  <bruno@clisp.org>
4486         * iconvdata/iso-2022-jp-3.c: New file.
4487         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
4488         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
4489         (LDFLAGS-ISO-2022-JP-3.so): New variable.
4490         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
4491         (distribute): Add iso-2022-jp-3.c.
4493 2002-05-12  Bruno Haible  <bruno@clisp.org>
4495         * iconvdata/tst-table-to.c (main): Restore handling of
4496         transliterations, broken by last patch.
4498 2002-05-12  Bruno Haible  <bruno@clisp.org>
4500         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
4502 2002-05-12  Bruno Haible  <bruno@clisp.org>
4504         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
4505         when there is not enough room in the output buffer.
4506         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
4508 2002-04-20  Bruno Haible  <bruno@clisp.org>
4510         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
4511         macros.
4512         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
4513         Also make this macro work if FROM_DIRECTION evaluates to 0.
4514         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
4515         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
4516         of consume_incomplete.
4517         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
4518         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
4519         4, not 8.
4520         * iconvdata/cp1258.c: Likewise.
4521         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
4522         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
4523         not 2.
4524         * iconvdata/ibm933.c: Likewise.
4525         * iconvdata/ibm935.c: Likewise.
4526         * iconvdata/ibm937.c: Likewise.
4527         * iconvdata/ibm939.c: Likewise.
4528         * iconvdata/iso-2022-cn.c: Define
4529         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
4530         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
4531         * iconvdata/iso-2022-cn-ext.c: Likewise.
4532         * iconvdata/iso-2022-jp.c: Define
4533         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
4534         {MIN,MAX}_NEEDED_{FROM,TO}.
4535         * iconvdata/tcvn5712-1.c: Define
4536         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
4537         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
4538         * iconvdata/euc-jisx0213.c: Define
4539         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
4540         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
4541         * iconvdata/shift_jisx0213.c: Likewise.
4543 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4545         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
4546         shdi3, fixdfdi, fixsfdi in csu dir.
4547         (shared-only-routines): Likewise.
4548         * sysdeps/wordsize-32/cmpdi2.c: New file.
4549         * sysdeps/wordsize-32/shdi3.c: New file.
4550         * sysdeps/wordsize-32/fixdfdi.c: New file.
4551         * sysdeps/wordsize-32/fixsfdi.c: New file.
4552         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
4553         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
4554         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
4556         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
4557         Only use va_arg if the argument will be used [PR libc/3259].
4559 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
4561         * catgets/catgets.c (catopen): Free buffer if internal catalog
4562         open fails.
4564 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
4566         * debug/xtrace.sh: Make more robust.  For realtime tracking use
4567         non-buffering methods.
4568         * debug/pcprofiledump.c: Implement -u option.
4569         Patch by Roger Luethi <rl@hellgate.ch>.
4571 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
4573         * include/netinet/in.h (bindresvport_internal): Add prototype.
4574         * include/rpc/auth.h  (authunix_create_internal,
4575         authunix_create_default_internal, authnone_create_internal,
4576         authdes_pk_create_internal): Add prototypes.
4577         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
4578         clntudp_create_internal, clntudp_bufcreate_internal,
4579         clntunix_create_internal): Add prototypes.
4580         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
4581         svc_getreq_internal, svc_getreq_common_internal,
4582         svc_getreqset_internal, svc_getreq_poll_internal,
4583         svc_register_internal, svc_unregister_internal,
4584         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
4585         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
4586         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
4587         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
4588         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
4589         * inet/rcmd.c (rcmd_af): Use __listen.
4590         (rresvport_af): Use __bind.
4591         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
4592         authunix_create, authunix_create_default, authnone_create,
4593         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
4594         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
4595         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
4596         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
4597         _authenticate, add INTDEF after such function definitions.
4598         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
4599         __setsockopt, __getsockname instead of non-__ variants.
4600         * sunrpc/pmap_rmt.c: Likewise.
4601         * sunrpc/rtime.c: Likewise.
4602         * sunrpc/svc_udp.c: Likewise.
4603         * sunrpc/clnt_unix.c: Likewise.
4604         * sunrpc/svc_unix.c: Likewise.
4605         * sunrpc/bindrsvprt.c: Likewise.
4606         * sunrpc/svc_tcp.c: Likewise.
4607         * sunrpc/auth_none.c: Likewise.
4608         * sunrpc/clnt_raw.c: Likewise.
4609         * sunrpc/clnt_tcp.c: Likewise.
4610         * sunrpc/auth_unix.c: Likewise.
4611         * sunrpc/key_call.c: Likewise.
4612         * sunrpc/clnt_gen.c: Likewise.
4613         * sunrpc/pm_getmaps.c: Likewise.
4614         * sunrpc/clnt_simp.c: Likewise.
4615         * sunrpc/pmap_clnt.c: Likewise.
4616         * sunrpc/svc_run.c: Likewise.
4617         * sunrpc/svc.c: Likewise.
4618         * sunrpc/svc_simple.c: Likewise.
4619         * sunrpc/pm_getport.c: Likewise.
4620         * sunrpc/auth_des.c: Likewise.
4621         * sunrpc/svc_auth.c: Likewise.
4622         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
4623         __register_frame_info_table_bases, __deregister_frame_info_bases):
4624         Add INTDEF.
4625         (__register_frame_info_bases_internal,
4626         __register_frame_info_table_bases_internal,
4627         __deregister_frame_info_bases_internal): Add prototypes.
4628         (__register_frame_info, __register_frame): Use INTUSE in call to
4629         __register_frame_info_bases.
4630         (__register_frame_info_table): Similarly.
4631         (__deregister_frame_info, __deregister_frame): Similarly.
4632         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
4633         sendto as weak alias.
4634         * sysdeps/mach/hurd/sendto.c: Likewise.
4635         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
4636         recvfrom as weak alias.
4637         * sysdeps/mach/hurd/recvfrom.c: Likewise.
4638         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
4639         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
4640         recvmsg as weak alias.
4641         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
4642         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
4643         sendmsg as weak alias.
4644         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
4645         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
4646         setsockopt, add setsockopt as weak alias.
4647         * sysdeps/mach/hurd/setsockopt.c: Likewise.
4648         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
4649         weak alias.
4650         * sysdeps/mach/hurd/bind.c: Likewise.
4651         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
4652         as weak alias.
4653         * sysdeps/mach/hurd/listen.c: Likewise.
4654         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
4655         getsockname, add getsockname as weak alias.
4656         * sysdeps/mach/hurd/getsockname.c: Likewise.
4657         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
4658         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
4659         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
4660         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
4661         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
4662         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
4663         Add aliases.
4664         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4665         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4666         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4667         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4668         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
4669         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
4670         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
4671         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
4672         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
4673         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
4674         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
4675         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
4677 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
4679         * locale/programs/localedef.h (show_archive_content): Add verbose
4680         argument.
4681         * locale/programs/localedef.c (main): Adjust caller.
4682         * locale/programs/locarchive.c (struct nameent, struct dataent): New.
4683         (nameentcmp, dataentcmp): New functions.
4684         (xstrcmp): Remove.
4685         (show_archive_content): Print verbose listing with --list-archive -v.
4687 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
4689         * locale/programs/locarchive.c (open_archive): Take extra argument
4690         readonly.  If true open file with O_RDONLY and don't create the
4691         archive if it doesn't exist.
4692         Adapt all callers.
4693         (close_archive): Don't do anything if fd element is -1.
4694         * locale/programs/localedef.h (open_archive): Adjust prototype.
4695         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
4696         call.
4698         * malloc/malloc.c (__posix_memalign): Correct check for size of
4699         alignment value [PR libc/3444].
4701         * include/stdio.h: Remove references to old stdio implementation.
4703         * libio/Makefile (bug-ungetwc2-ENV): Define.
4705 2002-05-13  Roland McGrath  <roland@frob.com>
4707         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
4709         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
4711 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
4713         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
4714         Allocate three, not two, more than LEN when appending '/.'.
4715         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
4716         if NAME ends with '/.' if it is shorter than 2 chars.
4718 2002-05-12  Roland McGrath  <roland@frob.com>
4720         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
4721         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
4723         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
4724         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
4726 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
4728         * sysdeps/ia64/Makefile: Remove extra endif.
4729         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
4731 2002-05-10  Andreas Schwab  <schwab@suse.de>
4733         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
4735 2002-05-09  Andreas Jaeger  <aj@suse.de>
4737         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
4738         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
4739         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
4741         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
4742         * sysdeps/wordsize-64/glob.c: ...here.
4743         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
4744         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
4745         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
4747 2002-05-08  Roland McGrath  <roland@frob.com>
4749         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
4750         O_NOTRANS flag in "." lookup.
4752 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
4754         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
4756 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
4758         * locale/duplocale.c (__duplocale): Update special members only
4759         when allocation succeeded.
4761 2002-05-03  Roland McGrath  <roland@frob.com>
4763         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
4764         we can only build libc.so.0.3(GLIBC_2.2.6) now.
4766 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
4768         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
4769         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
4770         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
4771         * sysdeps/ia64/ia64libgcc.S: New file.
4773 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
4775         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
4777         * malloc/memusage.c: Distinguish anonymous mmap.
4779 2002-05-01  Roland McGrath  <roland@frob.com>
4781         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
4782         and use INTDEF on it.
4783         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
4785         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
4787         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
4789 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
4791         * malloc/memusage.c: Add support for tracking mmap & friends.
4792         * malloc/memusage.sh: Implement -m/--mmap option.
4794 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
4796         * locale/programs/locarchive.c (create_archive): Add archivefname
4797         argument, create fname from it.
4798         (enlarge_archive): Honour output_prefix.
4799         (open_archive): Likewise.
4801 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
4803         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
4804         too many stpcpy macros.
4806 2002-04-26  Bruno Haible  <bruno@clisp.org>
4808         * locale/programs/ld-collate.c (collate_read): Cast first argument
4809         for "%.*s" to int.
4811 2002-04-26  Bruno Haible  <bruno@clisp.org>
4813         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
4814         __dcngettext_internal): New declarations.
4815         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
4816         attribute declarations.
4818 2002-04-30  Roland McGrath  <roland@frob.com>
4820         Removed old GNU stdio implementation; GNU libio is now the only option.
4821         * configure.in: Removed --enable-libio option and @stdio@ subst var.
4822         Define USE_IN_LIBIO unconditionally.
4823         * configure: Regenerated.
4824         * Makeconfig (stdio): Set to libio by default.
4825         * config.make.in (stdio): Variable removed.
4826         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
4827         * sysdeps/unix/sysv/linux/configure: Regenerated.
4828         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
4829         * sysdeps/mach/hurd/configure: Regenerated.
4830         * stdio/.cvsignore: File removed.
4831         * stdio/Makefile: File removed.
4832         * stdio/Versions: File removed.
4833         * stdio/__fbufsize.c: File removed.
4834         * stdio/__flbf.c: File removed.
4835         * stdio/__fpending.c: File removed.
4836         * stdio/__fpurge.c: File removed.
4837         * stdio/__freadable.c: File removed.
4838         * stdio/__freading.c: File removed.
4839         * stdio/__fsetlocking.c: File removed.
4840         * stdio/__fwritable.c: File removed.
4841         * stdio/__fwriting.c: File removed.
4842         * stdio/clearerr.c: File removed.
4843         * stdio/fclose.c: File removed.
4844         * stdio/fcloseall.c: File removed.
4845         * stdio/feof.c: File removed.
4846         * stdio/ferror.c: File removed.
4847         * stdio/fflush.c: File removed.
4848         * stdio/fgetc.c: File removed.
4849         * stdio/fgetpos.c: File removed.
4850         * stdio/fgets.c: File removed.
4851         * stdio/fileno.c: File removed.
4852         * stdio/fmemopen.c: File removed.
4853         * stdio/fopen.c: File removed.
4854         * stdio/fopncook.c: File removed.
4855         * stdio/fputc.c: File removed.
4856         * stdio/fputs.c: File removed.
4857         * stdio/fread.c: File removed.
4858         * stdio/freopen.c: File removed.
4859         * stdio/fseek.c: File removed.
4860         * stdio/fsetpos.c: File removed.
4861         * stdio/ftell.c: File removed.
4862         * stdio/fwrite.c: File removed.
4863         * stdio/getc.c: File removed.
4864         * stdio/getchar.c: File removed.
4865         * stdio/getdelim.c: File removed.
4866         * stdio/gets.c: File removed.
4867         * stdio/glue.c: File removed.
4868         * stdio/internals.c: File removed.
4869         * stdio/linewrap.c: File removed.
4870         * stdio/linewrap.h: File removed.
4871         * stdio/memstream.c: File removed.
4872         * stdio/newstream.c: File removed.
4873         * stdio/obstream.c: File removed.
4874         * stdio/putc.c: File removed.
4875         * stdio/putchar.c: File removed.
4876         * stdio/puts.c: File removed.
4877         * stdio/rewind.c: File removed.
4878         * stdio/setbuf.c: File removed.
4879         * stdio/setbuffer.c: File removed.
4880         * stdio/setlinebuf.c: File removed.
4881         * stdio/setvbuf.c: File removed.
4882         * stdio/stdio.h: File removed.
4883         * stdio/ungetc.c: File removed.
4884         * stdio/vasprintf.c: File removed.
4885         * stdio/vscanf.c: File removed.
4886         * stdio/vsnprintf.c: File removed.
4887         * stdio/vsprintf.c: File removed.
4888         * stdio/vsscanf.c: File removed.
4889         * sysdeps/generic/defs.c: File removed.
4890         * sysdeps/generic/fdopen.c: File removed.
4891         * sysdeps/generic/pipestream.c: File removed.
4892         * sysdeps/generic/stdio_init.c: File removed.
4893         * sysdeps/generic/sysd-stdio.c: File removed.
4894         * sysdeps/generic/vdprintf.c: File removed.
4895         * sysdeps/mach/hurd/defs.c: File removed.
4896         * sysdeps/mach/hurd/fdopen.c: File removed.
4897         * sysdeps/mach/hurd/pipestream.c: File removed.
4898         * sysdeps/mach/hurd/stdio_init.c: File removed.
4899         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
4900         * sysdeps/mach/hurd/vdprintf.c: File removed.
4901         * sysdeps/posix/defs.c: File removed.
4902         * sysdeps/posix/fdopen.c: File removed.
4903         * sysdeps/posix/pipestream.c: File removed.
4904         * sysdeps/posix/stdio_init.c: File removed.
4905         * sysdeps/posix/vdprintf.c: File removed.
4906         * sysdeps/unix/pipestream.c: File removed.
4907         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
4908         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
4909         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
4911 2002-04-29  Roland McGrath  <roland@frob.com>
4913         * include/libc-symbols.h (link_warning): Use `unused' attribute.
4915 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
4917         * sysdeps/generic/tls.h: Describe what must be defined.
4919         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
4920         glob_in_dir [PR libc/3385].
4921         * posix/globtest.sh: Add test case.
4923         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
4924         //TRANSLIT twice.
4926 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
4928         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
4929         _internal symbol handling.
4930         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4932 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
4934         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
4935         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
4937 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
4939         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
4940         not _LIBC and RE_ENABLE_I18N.
4941         (build_range_exp): Implement for not _LIBC.
4942         (build_collating_symbol): Likewise.
4943         (parse_bracket_exp): Unify redundant error handlings.
4944         Don't erase mbcset for non matching list in multibyte envs.
4945         (build_word_op): Add '_' to matching list for \w operator.
4946         * posix/regex_internal.c (re_string_construct): Invoke
4947         build_upper_buffer in case of not RE_ENABLE_I18N.
4948         (re_string_reconstruct): Don't touch cur_state in case of not
4949         RE_ENABLE_I18N.
4950         * posix/regex_internal.h (attribute_hidden): New macro in case of
4951         not _LIBC.
4952         (re_charset_t): Define range_starts/ends in case of not _LIBC.
4953         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
4954         RE_ENABLE_I18N.
4955         (transit_state_mb): Likewise.
4956         (check_node_accept_bytes): Implement the code evaluating range
4957         expression in case of not _LIBC.
4958         (find_collation_sequence_value): Hide in case of not _LIBC.
4960 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
4962         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
4963         i386/semctl.c.
4964         (__old_semctl, __new_semctl): Only use va_arg if the argument will
4965         be used.
4967 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
4969         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
4971         * sysdeps/ia64/strncpy.S: Fix recovery code.
4972         Patch by David Mosberger <davidm@hpl.hp.com>.
4974 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
4976         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
4977         GLIBC_2.2.6.
4979 2002-04-14  Bruno Haible  <bruno@clisp.org>
4981         * posix/regex.c (re_max_failures): Add back symbol for binary
4982         compatibility.
4984 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
4986         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
4987         of buffer building functions.
4988         * posix/regex_internal.c (re_string_allocate): New function.
4989         (re_string_realloc_buffers): New function.
4990         (re_string_skip_chars): New function.
4991         (re_string_reconstruct): New function.
4992         (re_string_construct): Adapt it to new interface of buffer building
4993         functions.
4994         (re_string_construct_common): Likewise.
4995         (build_wcs_buffer): Likewise.
4996         (build_wcs_upper_buffer): Likewise.
4997         (build_upper_buffer): Likewise.
4998         (re_string_translate_buffer): Likewise.
4999         (re_string_context_at): Adapt it to variable length buffers.
5000         * posix/regex_internal.h (re_string_t): Add new fields to handle
5001         variable length buffers.
5002         (re_match_context_t): Likewise.
5003         * posix/regexec.c (re_search_internal): Adapt it to new interface
5004         of re_string_t and re_match_context_t.
5005         (acquire_init_state_context): Likewise.
5006         (check_matching): Likewise.
5007         (check_halt_state_context): Likewise.
5008         (proceed_next_node): Likewise.
5009         (set_regs): Likewise.
5010         (sift_states_backward): Likewise.
5011         (clean_state_log_if_need): Likewise.
5012         (sift_states_iter_mb): Likewise.
5013         (sift_states_iter_bkref): Likewise.
5014         (add_epsilon_backreference): Likewise.
5015         (transit_state): Likewise.
5016         (transit_state_sb): Likewise.
5017         (transit_state_mb): Likewise.
5018         (transit_state_bkref): Likewise.
5019         (transit_state_bkref_loop): Likewise.
5020         (check_node_accept): Likewise.
5021         (match_ctx_init): Likewise.
5022         (extend_buffers): New function.
5024 2002-04-21  Bruno Haible  <bruno@clisp.org>
5026         * iconvdata/tst-table.sh: For the second check, use the truncated
5027         GB18030 charmap table, like for the first check.
5029 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
5031         * elf/dl-load.c (open_verify): Correct __lseek parameters.
5032         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
5034 2002-04-23  H.J. Lu  <hjl@gnu.org>
5036         * include/math.h (isfinite): Fix a typo.
5038 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
5040         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
5041         which is created by the test suite.
5043 2002-04-20  Bruno Haible  <bruno@clisp.org>
5045         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
5046         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
5048 2002-04-20  Bruno Haible  <bruno@clisp.org>
5050         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
5051         to avoid gcc warning.
5053 2002-04-20  Bruno Haible  <bruno@clisp.org>
5055         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
5056         of data->__statep->__count.
5058 2002-04-20  Bruno Haible  <bruno@clisp.org>
5060         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
5061         tag characters.
5062         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
5064 2002-04-24  Roland McGrath  <roland@frob.com>
5066         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
5067         use END macro instead of our own .end directive.
5068         Use `callsys' insn mnemonic instead of `call_pal'.
5070         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
5072         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
5073         macro; we need this for Hurd.
5075         Log entry was missing for 2002/03/24 commit of rev 1.8,
5076         goes with 2002-03-17 changes.
5077         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
5078         (sysdep_routines): Append ioperm here.
5079         (sysdep_headers): Append sys/io.h here.
5081 2002-04-23  Roland McGrath  <roland@frob.com>
5083         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
5084         * sysdeps/mach/hurd/sendto.c: Likewise.
5085         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
5086         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
5087         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
5089 2002-04-22  Roland McGrath  <roland@frob.com>
5091         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
5092         failure from i386_io_perm_* RPCs to ENOSYS.
5094 2002-04-22  Andreas Jaeger  <aj@suse.de>
5096         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
5098         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
5100         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
5101         register instead of destroying %rbx.
5103 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
5105         * string/string.h: Declare strerror_r also for XPG6.
5107 2002-04-19  Roland McGrath  <roland@frob.com>
5109         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
5111 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
5113         * Makefile: Add handling of xtests and xcheck targets.
5114         * MakeTAGS: Likewise.
5115         * Makeconfig: Likewise.
5116         * Makerules: Likewise.
5117         * Rules: Likewise.
5118         * manual/Makefile: Likewise.
5119         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
5120         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
5122 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
5124         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
5125         authnone_private_s.
5126         * sunrpc/auth_none.c: Include bits/libc-lock.h.
5127         Delete #ifdef _RPC_THREAD_SAFE_ block.
5128         (authnone_private): Make a struct, not a pointer to struct.
5129         (authnone_private_guard): New once-control variable.
5130         (authnone_create_once): New function, split out of
5131         authnone_create.  No need to allocate memory.
5132         (authnone_create): Just call authnone_create_once via
5133         __libc_once, then return &authnone_private->no_client.
5134         (authnone_marshal): Access private data via CLIENT argument,
5135         not authnone_private pointer.
5136         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
5137         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
5138         authnone_private_s.
5140 2002-04-12  H.J. Lu  <hjl@gnu.org>
5142         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
5144 2002-04-18  Bruno Haible  <bruno@clisp.org>
5146         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
5147         FROM_DIRECTION): Make the FROM direction stateless.
5148         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
5149         FROM_DIRECTION): Likewise.
5151 2002-04-15  Bruno Haible  <bruno@clisp.org>
5153         * iconvdata/JISX0213.TXT: New file.
5154         * iconvdata/jisx0213.h: New file.
5155         * iconvdata/jisx0213.c: New file.
5156         * iconvdata/euc-jisx0213.c: New file.
5157         * iconvdata/shift_jisx0213.c: New file.
5158         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
5159         * iconvdata/EUC-JISX0213.precomposed: New file.
5160         * iconvdata/SHIFT_JISX0213.precomposed: New file.
5161         * iconvdata/SHIFT_JISX0213.irreversible: New file.
5162         * iconvdata/tst-table-to.c (main): Make it work for encodings for
5163         which the "to" direction is stateful.
5164         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
5165         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
5166         SHIFT_JISX0213.
5167         (libJISX0213-routines): New variable.
5168         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
5169         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
5170         (LDFLAGS-libJISX0213.so): New variable.
5171         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
5172         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
5173         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
5175 2002-04-15  Bruno Haible  <bruno@clisp.org>
5177         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
5178         uint32_t.  Update to Unicode 3.2.
5179         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
5180         (BODY for TO_LOOP): Handle the ASCII range specially.
5181         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
5182         * iconvdata/testdata/BIG5HKSCS: Remove a character.
5183         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
5185 2002-04-15  Bruno Haible  <bruno@clisp.org>
5187         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
5188         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
5190 2002-04-15  Bruno Haible  <bruno@clisp.org>
5192         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
5193         (ucs4_to_cns11643): Update.
5194         * iconvdata/cns11643.c: Update to Unicode 3.2.
5195         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
5196         __cns11643_from_ucs4p2_tab): Regenerated.
5197         (__cns11643_from_ucs4p2c_tab): New array.
5198         * iconvdata/cvs11643l1.c: Update comments.
5199         * iconvdata/EUC-TW.irreversible: Remove two entries.
5201 2002-04-15  Bruno Haible  <bruno@clisp.org>
5203         * locale/C-translit.h.in: Update to Unicode 3.2.
5204         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
5205         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
5207 2002-04-15  Bruno Haible  <bruno@clisp.org>
5209         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
5210         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
5212 2002-04-15  Bruno Haible  <bruno@clisp.org>
5214         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
5215         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
5216         always one byte, not 0 bytes in some cases and 2 bytes in others.
5218         * iconvdata/tst-table-from.c (main): Correct the usage message.
5220 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
5222         * posix/regcomp.c (parse_expression): Fix incorrect error code.
5223         (parse_dup_op): Fix error handling like "a{}".
5224         (parse_bracket_exp): Add error handling.
5225         (fetch_number): Add error handling for "a{<very_large_number>}".
5227 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
5229         * posix/regcomp.c (parse_bracket_symbol): Add error handling
5230         in case that the symbol name is too long.
5231         (build_charclass): Handle [:lower:]/[:uppper:] correctly
5232         in case of REG_ICASE.
5234 2002-04-19  Andreas Jaeger  <aj@suse.de>
5236         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
5237         <hartvige@mips.com>.
5239 2002-04-15  H.J. Lu  <hjl@gnu.org>
5241         * include/math.h (__finitel_internal): Declare only if
5242         __NO_LONG_DOUBLE_MATH is not defined.
5243         (__isinfl_internal): Likewise.
5244         (__isnanl_internal): Likewise.
5246         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
5247         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5248         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5249         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5250         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5251         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5252         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5254         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
5255         __fcntl_internal.
5257         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
5258         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
5260 2002-04-15  Bruno Haible  <bruno@clisp.org>
5262         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
5263         (BODY for TO_LOOP): Likewise.
5264         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
5265         * iconvdata/tst-table.sh: Add support for encodings which contain
5266         precomposed Unicode characters, known to the iconv converter in both
5267         directions but not listed in the charmap.
5268         * iconvdata/IBM856.irreversible: New file.
5269         * iconvdata/IBM922.irreversible: New file.
5270         * iconvdata/IBM1132.irreversible: New file.
5271         * iconvdata/IBM1133.irreversible: New file.
5272         * iconvdata/IBM1160.irreversible: New file.
5273         * iconvdata/IBM1161.irreversible: New file.
5274         * iconvdata/IBM1163.irreversible: New file.
5275         * iconvdata/IBM1164.irreversible: New file.
5276         * iconvdata/ARMSCII-8.irreversible: New file.
5277         * iconvdata/TCVN5712-1.precomposed: New file.
5278         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
5279         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
5280         ARMSCII-8, TCVN5712-1.
5281         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
5282         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
5283         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
5284         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
5286 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
5288         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
5289         for EVENING69.  Include offsets in TZ environment variable.
5291 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
5293         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
5294         avoid compiler warnings.
5296         * locale/programs/localedef.c (main): Always call
5297         construct_output_path.
5299         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
5301         * locale/programs/locfile.c (to_archive): New variable.  To collect
5302         data which has to be added to the locale archive.
5303         (write_all_categories): Take new third parameter with locale name.
5304         Unless no_archive flag set add new locale data to the archive
5305         (write_locale_data): Unless no-archive flag set store generated data
5306         in to_archive data structure instead of generation output file.
5307         Add new parameter with locale category index.
5308         * locale/programs/locfile.h: Add new parameters in declaractions of
5309         write_all_categories and write_locale_data.
5310         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
5311         --add-to-archive, and --delete-from-archive options.  Pass extra
5312         parameter to write_all_categories.
5313         * locale/programs/localedef.h: Add prototypes for functions in
5314         locarchive.c.
5315         * locale/locarchive.h: New file.
5316         * locale/programs/locarchive.c: New file.
5317         * locale/Makefile (distribute): Add programs/locarchive.c and
5318         locarchive.h.
5319         (localedef-modules): Add md5 and locarchive.
5320         Add vpath to crypt subdir for md5.c.
5322         * locale/programs/ld-address.c: Pass locale category ID as new second
5323         parameter to write_locale_data.
5324         * locale/programs/ld-collate.c: Likewise.
5325         * locale/programs/ld-ctype.c: Likewise.
5326         * locale/programs/ld-identification.c: Likewise.
5327         * locale/programs/ld-measurement.c: Likewise.
5328         * locale/programs/ld-messages.c: Likewise.
5329         * locale/programs/ld-monetary.c: Likewise.
5330         * locale/programs/ld-name.c: Likewise.
5331         * locale/programs/ld-numeric.c: Likewise.
5332         * locale/programs/ld-paper.c: Likewise.
5333         * locale/programs/ld-telephone.c: Likewise.
5334         * locale/programs/ld-time.c: Likewise.
5336         * locale/simple-hash.c: Move compute_hashval function from here...
5337         * locale/hashval.h: ...to here.  New file.
5338         * locale/simple-hash.h: Add prototype for compute_hashval.
5340         * include/libintl.h: Minor cleanups.
5342 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
5344         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
5346 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
5348         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
5350 2002-04-14  Bruno Haible  <bruno@clisp.org>
5352         * locale/programs/charmap.c (charmap_read): Don't access result if
5353         result == NULL.
5355 2002-02-17  Andreas Schwab  <schwab@suse.de>
5357         * elf/reldep7.c: New file.
5358         * elf/reldep7mod1.c: New file.
5359         * elf/reldep7mod2.c: New file.
5360         * elf/Makefile: Add rules to build and run reldep7.
5362 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
5364         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
5365         the end of the function.  Pass original flags to recursive call if
5366         add_dependency failed.
5367         (_dl_lookup_versioned_symbol): Likewise.
5369 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
5371         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
5372         early, but check whether it overflowed afterwards.
5373         * time/tst-mktime.c (main): Add new tests.
5375 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
5377         * debug/xtrace.sh: Fix program name in help message.
5378         Patch by Roger Luethi <rl@hellgate.ch>.
5380         * include/sys/stat.h: Add prototypes for __lxstat_internal and
5381         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
5382         NOT_IN_libc.
5383         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
5384         * sysdeps/mach/hurd/lxstat.c: Likewise.
5385         * sysdeps/unix/common/lxstat.c: Likewise.
5386         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
5387         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
5388         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5389         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
5390         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
5391         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
5392         * sysdeps/mach/hurd/lxstat64.c: Likewise.
5393         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
5394         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5396         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
5397         prototypes.  Add __mbrlen and __mbrtowc macros.
5398         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
5399         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
5401         * include/unistd.h: Add prototype for __write_internal and add
5402         __libc_write macro is SHARED.
5403         * sysdeps/generic/write.c: Use INTDEF for __write.
5404         * sysdeps/mach/hurd/write.c: Likewise.
5405         * sysdeps/unix/sysv/aix/write.c: Likewise.
5406         * sysdeps/unix/syscalls.list: Add __libc_write alias.
5408         * assert/assert.c: Replace STR_N_SIZE with something usable in
5409         macro arguments.
5410         * assert/assert-perr.c: Likewise.
5412         * include/sys/socket.h: Declare __libc_sa_len_internal and define
5413         SA_LEN macro to use it if not NOT_IN_libc.
5414         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
5416         * include/fcntl.h: Declare __open_internal and define __open and
5417         __libc_open macros if not NOT_IN_libc.
5418         * sysdeps/generic/open.c: Use INTDEF for __open.
5419         * sysdeps/mach/hurd/open.c: Likewise.
5420         * sysdeps/unix/sysv/aix/open.c: Likewise.
5421         * sysdeps/unix/syscalls.list: Add __open_internal alias.
5423         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
5424         has correct number.
5426         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
5427         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
5428         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
5429         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
5431         * include/wctype.h: Declare __iswalpha_l_internal,
5432         __iswdigit_l_internal, __iswspace_l_internal,
5433         __iswxdigit_l_internal, and __iswctype_internal.  Define
5434         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
5435         __iswxdigit_l macros if not NOT_IN_libc.
5436         * wctype/iswctype.c: Use INTDEF for __iswctype.
5437         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
5439         * include/math.h: Declare __isinf_internal, __isinfl_internal,
5440         __isnan_internal, and __isnanl_internal.
5441         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
5442         __isnan, and __isnanl.
5443         * stdio-common/printf_size.c: Likewise.
5444         * sysdeps/generic/printf_fphex.c: Likewise.
5445         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
5446         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
5447         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
5448         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
5449         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
5450         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5451         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
5452         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
5453         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
5454         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
5455         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
5456         * sysdeps/m68k/s_isinfl.c: Likewise.
5457         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
5458         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
5460         * include/sys/time.h: Declare __gettimeofday_internal and define
5461         __gettimeofday macro if not NOT_IN_libc.
5462         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
5463         * sysdeps/mach/gettimeofday.c: Likewise.
5464         * sysdeps/posix/gettimeofday.c: Likewise.
5465         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
5466         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
5467         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
5468         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
5470         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
5471         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
5472         Remove __lstat and __fstat inline functions.
5473         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
5474         * sysdeps/mach/hurd/fxstat.c: Likewise.
5475         * sysdeps/unix/fxstat.c: Likewise.
5476         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
5477         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
5478         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5479         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
5480         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
5481         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
5482         * sysdeps/mach/hurd/fxstat64.c: Likewise.
5483         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
5484         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
5486         * include/unistd.h: Declare __getpid_internal and define
5487         __getpid macro if not NOT_IN_libc.
5488         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
5489         * sysdeps/generic/getpid.c: Likewise.
5490         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
5491         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
5493         * include/unistd.h: Declare __getpgid_internal and define
5494         __getpgid macro if not NOT_IN_libc.
5495         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
5496         * sysdeps/mach/hurd/getpgid.c: Likewise.
5497         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
5498         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
5499         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
5500         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
5502         * include/unistd.h: Declare __getpagesize_internal and define
5503         __getpagesize macro if not NOT_IN_libc.
5504         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
5505         __getpagesize.
5506         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
5507         * sysdeps/mach/getpagesize.c: Likewise.
5508         * sysdeps/posix/getpagesize.c: Likewise.
5509         * sysdeps/unix/getpagesize.c: Likewise.
5510         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
5511         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
5512         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
5513         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
5515 2002-04-13  Andreas Jaeger  <aj@suse.de>
5517         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
5518         as clobber to reduce register pressure.
5519         (__strpbrk_cg): Likewise.
5520         (__mempcpy_by4): Likewise.
5521         (__strstr_cg): Likewise.
5522         Add prototype for __memrchr.
5524 2002-04-13  Andreas Schwab  <schwab@suse.de>
5526         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
5527         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5528         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5530 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
5532         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
5533         check whether the caller prefers getting the most recent version of
5534         a symbol of the earliest version.
5535         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
5536         _dl_do_lookup to also take the new parameter and pass it on.
5537         Change 'explicit' parameter of _dl_lookup_symbol and
5538         _dl_lookup_versioned_symbol to flags.  Adjust tests.
5539         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
5540         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
5541         _dl_lookup_versioned_symbol.
5542         * elf/dl-reloc.c: Likewise.
5543         * elf/dl-runtime.c: Likewise.
5544         * elf/dl-sym.c: Likewise.
5545         * sysdeps/mips/dl-machine.h: Likewise.
5547 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
5549         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
5550         in a token.
5551         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
5553 2002-04-10  Andreas Jaeger  <aj@suse.de>
5555         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
5557         * include/argz.h: Remove extra char from last patch.
5559 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
5561         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
5562         * sysdeps/unix/sysv/aix/chown.c: Likewise.
5563         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
5564         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
5565         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
5566         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
5567         __chown_internal.
5568         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
5570         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
5571         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
5572         * intl/ngettext.c: Likewise.
5574         * include/sys/socket.h: Declare __connect_internal and define
5575         __connect macro if not NOT_IN_libc.
5576         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
5577         * sysdeps/unix/sysv/aix/connect.c: Likewise.
5578         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
5580         * include/unistd.h: Declare __close_internal and define __close macro
5581         if not NOT_IN_libc.
5582         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
5583         WJUMP3): Add extra parenthesis to avoid expanding element names with
5584         macors like __close.
5585         * sysdeps/unix/syscalls.list: Add __close_internal alias.
5587         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
5588         if not NOT_IN_libc.
5589         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
5590         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
5591         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
5593         * include/unistd.h: Declare __fork_internal and define __fork macro
5594         if not NOT_IN_libc.
5595         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
5596         * sysdeps/unix/sysv/aix/fork.c: Likewise.
5597         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
5599         * include/stdio_ext.h: Declare __fsetlocking_internal and define
5600         __fsetlocking macro to use it if not NOT_IN_libc.
5601         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
5603         * libio/__fbufsize.c: Correct copyright.
5604         * libio/__flbf.c: Likewise.
5605         * libio/__fpending.c: Likewise.
5606         * libio/__fpurge.c: Likewise.
5607         * libio/__freadable.c: Likewise.
5608         * libio/__freading.c: Likewise.
5609         * libio/__fsetlocking.c: Likewise.
5610         * libio/__fwritable.c: Likewise.
5611         * libio/__fwriting.c: Likewise.
5613         * include/stdio.h: Declare __asprintf_internal and define __asprintf
5614         macro to use it if not NOT_IN_libc.
5615         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
5617         * include/mntent.h: Declare __setmntent_internal,
5618         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
5619         __getmntent_r, and __endmntent macros to use these functions if not
5620         NOT_IN_libc.
5621         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
5622         __endmntent.
5624         * include/math.h: Declare __finite_internal, __finitef_internal, and
5625         __finitel_internal.  Redefine isfinite macro if in libc or libm using
5626         these functions.
5627         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
5628         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
5629         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
5630         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
5631         * sysdeps/i386/fpu/s_finitef.S: Likewise.
5632         * sysdeps/i386/fpu/s_finitel.S: Likewise.
5633         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
5634         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
5635         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
5636         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
5638         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
5639         to use this function if not NOT_IN_libc.
5640         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
5641         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
5642         * sysdeps/mach/hurd/fcntl.c: Likewise.
5643         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
5644         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
5646         * include/argz.h: Declare __argz_count_internal and
5647         __argz_stringify_internal.
5648         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
5649         __argz_stringify.
5650         * string/argz-count.c: Use INTDEF for __argz_count.
5651         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
5653         * include/stdlib.h: Declare __cxa_atexit_internal and define
5654         __cxa_atexit macro if not NOT_IN_libc.
5655         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
5656         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
5658         * assert/assert.c: Use INTDEF for __assert_fail.
5659         * assert/__assert.c: Use INTUSE for call to __assert_fail.
5660         * include/assert.h: Declare __assert_fail_internal.
5662         * extra-lib.mk: Mark assignment to lib with override.
5664 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
5666         * Makerules: Use cppflags-iterator.mk to add defines for all test
5667         source files.
5669 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
5671         * elf/elf.h: Define R_SH_TLS_xxx macros.
5672         * elf/rtld.c: Remove an extra parenthesis.
5673         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
5674         TLS_GD macros.
5675         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
5676         * sysdeps/sh/dl-lookupcfg.h: New file.
5677         * sysdeps/sh/dl-tls.h: New file.
5678         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
5679         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
5680         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
5681         R_SH_TLS_TPOFF32 relocations.
5683 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
5685         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
5686         of NOT_IN_LIBC.
5687         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
5688         * include/stdlib.h: Likewise.
5690 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
5692         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
5693         instead of _RTLD_LOCAL.
5694         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
5695         * include/unistd.h: Likewise.
5696         * sysdeps/generic/ldsodefs.h: Likewise.
5698         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
5699         if in libc or ld.so.
5701 2002-04-08  Andreas Jaeger  <aj@suse.de>
5703         * elf/cache.c (print_entry): Support x86-64.
5705 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
5707         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
5708         with one accessing the locale data structures directly.
5709         * stdio-common/printf-prs.c: Include localeinfo.h for new
5710         MB_CUR_MAX definition.
5712         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
5713         is the name of the source file without extension.
5714         * Makefile (distribute): Add cppflags-iterator.mk.
5715         * cppflags-iterator.mk: New file.
5716         * extra-lib.mk: For the sources of the library run
5717         cppflags-iterator.mk.
5719         * include/libintl.h: Declare __dcgettext_internal and
5720         _libc_intl_domainname_internal.  Define __dcgettext using these
5721         two symbols if used in libc itself.
5722         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
5723         _libc_intl_domainname_internal.
5724         * argp/argp-parse.c: Likewise.
5725         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
5726         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
5727         * intl/gettext.c: Likewise.
5728         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
5729         alias.
5730         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
5731         __dcgettext.
5732         * posix/regex_internal.c (gettext): Likewise.
5734 2002-04-08  Andreas Jaeger  <aj@suse.de>
5736         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
5738         * sysdeps/x86_64/fpu/s_llrint.S: New.
5739         * sysdeps/x86_64/fpu/s_llrintf.S: New.
5740         * sysdeps/x86_64/fpu/s_llrintl.S: New.
5741         * sysdeps/x86_64/fpu/s_lrint.S: New.
5742         * sysdeps/x86_64/fpu/s_lrintf.S: New
5743         * sysdeps/x86_64/fpu/s_lrintl.S: New.
5745 2002-04-08  Roland McGrath  <roland@frob.com>
5747         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
5748         widening __hurd_fail value.
5750 2002-04-07  Roland McGrath  <roland@frob.com>
5752         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
5753         <mach/machine/alpha_instruction.h>.
5754         (_hurd_setup_sighandler): Take proper arguments for current decls.
5755         Update code to use _hurdsig_catch_fault.
5756         Use `callsys' instruction instead of `call_pal'.
5757         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
5759         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
5760         (ALIGN, at, AT, fp): New macros.
5762 2002-04-06  Roland McGrath  <roland@frob.com>
5764         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
5766         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
5767         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
5769         * sysdeps/mach/hurd/bind.c: Use prototype definition.
5770         * sysdeps/mach/hurd/connect.c: Likewise.
5771         * sysdeps/mach/hurd/getsockopt.c: Likewise.
5772         * sysdeps/mach/hurd/setsockopt.c: Likewise.
5774         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
5775         __msg_sig_post RPC.
5777         * hurd/catch-exc.c: Use integer_t instead of int.
5778         * hurd/hurdfault.c: Likewise.
5780         * sysdeps/mach/hurd/alpha/exc2signal.c
5781         (_hurd_exception2signal): Rewritten.
5782         * sysdeps/mach/hurd/alpha/longjmp-ts.c
5783         (_hurd_longjmp_thread_state): Rewritten.
5785 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
5787         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
5788         DB_LOOKUP_FCT prototype.
5789         * nss/getXXent_r.c: Likewise.
5790         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
5791         * inet/getaliasname_r.c: Likewise.
5792         * inet/getnetbyad_r.c: Likewise.
5793         * inet/getnetbynm_r.c: Likewise.
5794         * inet/getnetent_r.c: Likewise.
5795         * inet/getproto_r.c: Likewise.
5796         * inet/getprtent_r.c: Likewise.
5797         * inet/getprtname_r.c: Likewise.
5798         * inet/getrpcbyname_r.c: Likewise.
5799         * inet/getrpcbynumber_r.c: Likewise.
5800         * inet/getrpcent_r.c: Likewise.
5801         * inet/getservent_r.c: Likewise.
5802         * inet/getsrvbynm_r.c: Likewise.
5803         * inet/getsrvbypt_r.c: Likewise.
5804         * shadow/getspent_r.c: Likewise.
5805         * shadow/getspnam_r.c: Likewise.
5807         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
5809         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
5810         Use i686-friendly PIC code.
5811         * sysdeps/i386/elf/setjmp.S: Likewise.
5813         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
5815         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
5816         list.
5817         * elf/Versions: Remove it here.
5819 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
5821         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
5822         direction.  Reported by H . J . Lu <hjl@lucon.org>.
5824 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
5826         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
5827         test just before the test runs.
5828         * intl/tst-translit.sh: Likewise.
5829         * intl/tst-codeset.sh: Likewise.
5831         * timezone/zic.c: Update from tzcode2002c.
5832         * timezone/asia: Update from tzdata2002c.
5833         * timezone/backward: Likewise.
5834         * timezone/europe: Likewise.
5835         * timezone/northamerica: Likewise.
5836         * timezone/northamerica: Likewise.
5837         * timezone/northamerica: Likewise.
5838         * timezone/southamerica: Likewise.
5839         * timezone/zone.tab: Likewise.
5841 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
5843         * sysdeps/generic/brk.c (__curbrk): Declare.
5844         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
5845         * sysdeps/generic/dl-sbrk.c: Likewise.
5846         * sysdeps/unix/arm/dl-brk.S: New file.
5847         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
5848         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
5849         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
5850         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
5851         * sysdeps/unix/i386/dl-brk.S: New file.
5852         * sysdeps/unix/mips/dl-brk.S: New file.
5853         * sysdeps/unix/sparc/dl-brk.S: New file.
5854         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
5855         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
5856         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
5857         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
5859 2002-04-03  Andreas Schwab  <schwab@suse.de>
5861         * Makefile (headers): Add gnu/lib-names.h here instead of
5862         install-others.
5863         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
5864         installation rule.
5865         (install-headers): Add dependency on install-headers-nosubdir.
5866         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
5867         instead of install-others.
5868         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
5869         installation rule.
5871 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
5873         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
5874         Reported by Sam Roberts <sroberts@uniserve.com>.
5876 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
5878         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
5879         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
5880         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
5881         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
5883 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
5885         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
5886         (RTLD_START): Ditto.
5887         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
5888         dependency violation.
5890 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
5892         * time/mktime.c (__mktime_internal): Move check for year < 70 below
5893         all variable declarations.
5895 2002-04-04  Andreas Schwab  <schwab@suse.de>
5897         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
5899 2002-04-04  Andreas Jaeger  <aj@suse.de>
5901         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
5902         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
5904         * sysdeps/x86_64/fpu/s_fabs.c: New file.
5905         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
5906         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
5908         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
5910         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
5912         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
5913         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
5915         * configure.in: Handle all mips entries the same.
5917         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
5918         * sysdeps/mips/mips3/*: Likewise.
5919         * sysdeps/mips/p40/bits/endian.h: Likewise.
5921 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
5923         * misc/dirname.c (dirname): Ignore trailing slashes at end of
5924         non-null result [PR libc/2600].
5926         * misc/tst-dirname.c: Add more tests.
5928 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
5930         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
5931         define a code_set_name provide one based on the filename.
5933         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
5935 2001-12-28  Andreas Jaeger  <aj@suse.de>
5937         * time/mktime.c (__mktime_internal): Check for year < 70
5938         [PR libc/2738].
5940 2002-04-03  Andreas Jaeger  <aj@suse.de>
5942         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
5943         shmat.
5944         Reported by Andi Kleen <ak@suse.de>.
5946 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
5948         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
5949         * sysdeps/generic/w_lgammaf.c: Likewise.
5950         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
5952         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
5953         Adjust for new output format of the backtrace functions.
5955         * misc/syslog.c (vsyslog): Only use cleanup handler if
5956         _LIBC_REENTRANT is defined [PR libc/2924].
5958         * libio/Makefile (tests): Add bug-ungetwc2.
5959         * libio/bug-ungetwc2.c: New file.
5961         * manual/install.texi: Typographical and grammatical cleanup.
5962         Patch by Dennis Grace <dgrace@us.ibm.com>.
5964         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
5965         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
5967         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
5968         always "&".  Adjust callers.
5969         Add "_" prefix to several generated definitions.
5970         Patch by paul@serice.net [PR libc/3158].
5972 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
5974         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
5975         size of _dl_arm_cap_flags.
5976         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
5978         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
5979         Define as 8.
5981 2002-03-22  H.J. Lu  <hjl@gnu.org>
5983         * scripts/firstversions.awk: Check the first version.
5985 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
5987         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
5988         dependencies must be stable to work correctly.
5989         Reported by martin.lubich@datacon.at.
5991         * libio/bug-ungetwc1.c: New file.
5992         * libio/Makefile (tests): Add bug-ungetwc1.
5994         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
5995         if stream was last used for writing.
5997         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
5998         number [PR libc/3111].
6000         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
6001         to ...
6002         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
6004 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
6006         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
6007         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
6008         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
6009         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
6010         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
6012 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
6014         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
6015         dynamic tags.
6017 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
6019         * sysdeps/i386/fpu/s_fabs.S: New file.
6020         * sysdeps/i386/fpu/s_fabsf.S: New file.
6021         * sysdeps/i386/fpu/s_fabsl.S: New file.
6022         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
6023         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
6024         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
6026 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
6028         * rt/tst-shm.c (do_test): Add one more test for size of shared
6029         memory object.
6031 2002-03-29  Wolfram Gloger  <wg@malloc.de>
6033         * malloc/malloc.c: Add short description and prototypes for
6034         malloc_get_state, malloc_set_state and posix_memalign, for
6035         consistency and to avoid warnings with -Wstrict-prototypes.
6036         Reported by Andreas Jaeger <aj@suse.de>.
6038 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
6040         * po/gl.po: Update from translation team.
6042 2002-03-31  Roland McGrath  <roland@frob.com>
6044         * hurd/hurdselect.c (_hurd_select): Fix
6045         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
6046         Use a union rather than casts to compare mach_msg_type_t as int.
6048 2002-03-25  Roland McGrath  <roland@frob.com>
6050         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
6051         check off the end of NAME when it's shorter than 2 chars.
6052         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
6054 2002-03-17  Roland McGrath  <roland@frob.com>
6056         * sysdeps/mach/hurd/i386/sys/io.h: New file.
6057         * sysdeps/mach/hurd/i386/ioperm.c: New file.
6058         * sysdeps/mach/hurd/i386/Dist: Add them.
6059         * sysdeps/mach/hurd/i386/Versions
6060         (libc: GLIBC_2.2.6): New set, add ioperm.
6061         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
6062         (mach_interface_list): Check for mach_i386.defs.
6063         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
6064         * sysdeps/mach/configure: Regenerated.
6066 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
6068         * po/fr.po: Update from translation team.
6070 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6072         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
6073         getpriority from syscalls list.
6075 2002-03-28  Andreas Jaeger  <aj@suse.de>
6077         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
6078         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
6079         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
6080         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
6082 2002-03-27  Andreas Jaeger  <aj@suse.de>
6084         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
6085         sigcontext): Follow further kernel change.
6087         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
6088         kernel change.
6090         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
6091         Change for struct sigcontext change.
6093         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
6094         Follow changes in struct sigcontext.
6096         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
6097         sysycall, use wrapper instead.
6099 2002-03-26  Andreas Jaeger  <aj@suse.de>
6101         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
6102         read and write accesses as detailed as possible.
6103         (__memcpy_by2): Likewise.
6104         (__memcpy_g): Likewise.
6105         (memmove): Likewise.
6106         (memcmp): Likewise.
6107         (__memset_ccn_by4): Likewise.
6108         (__memset_ccn_by2): Likewise.
6109         (__memset_gcn_by4): Likewise.
6110         (__memset_gcn_by2): Likewise.
6111         (memchr): Likewise.
6112         (__memrchr): Likewise.
6113         (rawmemchr): Likewise.
6114         (__strlen_g): Likewise.
6115         (__strcpy_g): Likewise.
6116         (__mempcpy_by4): Likewise.
6117         (__mempcpy_by2): Likewise.
6118         (__mempcpy_byn): Likewise.
6119         (__stpcpy_g): Likewise.
6120         (__strncpy_by4): Likewise.
6121         (__strncpy_by2): Likewise.
6122         (__strncpy_byn): Likewise.
6123         (__strncpy_gg): Likewise.
6124         (__strcat_c): Likewise.
6125         (__strcat_g): Likewise.
6126         (__strncat_g): Likewise.
6127         (__strcmp_gg): Likewise.
6128         (__strncmp_g): Likewise.
6129         (__strchr_c): Likewise.
6130         (__strchr_g): Likewise.
6131         (__strchrnul_c): Likewise.
6132         (__strchrnul_g): Likewise.
6133         (__strrchr_c): Likewise.
6134         (__strrchr_g): Likewise.
6135         (__strrchr_c): Likewise.
6136         (__strrchr_g): Likewise.
6137         (__strcspn_c1): Likewise.
6138         (__strcspn_cg): Likewise.
6139         (__strcspn_g): Likewise.
6140         (__strcspn_g): Likewise.
6141         (__strspn_c1): Likewise.
6142         (__strspn_cg): Likewise.
6143         (__strspn_g): Likewise.
6144         (__strspn_g): Likewise.
6145         (__strpbrk_cg): Likewise.
6146         (__strpbrk_g): Likewise.
6147         (__strstr_cg): Likewise.
6148         (__strstr_g): Likewise.
6150         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
6151         Michal Ludvig <mludvig@suse.cz>.
6153         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
6154         compatibilty, adjust for kernel changes.
6156         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
6157         sigcontext): Adjust for kernel changes.
6159 2002-03-25  Andreas Jaeger  <aj@suse.de>
6161         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
6162         little endian.
6163         Reported by Artur Zaprzala <zybi@talex.com.pl>.
6165 2002-03-24  Andreas Jaeger  <aj@suse.de>
6167         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
6169         * stdio-common/tst-fdopen.c (main): Remove unused variable.
6171         * iconv/tst-iconv3.c (main): Use correct printf strings.
6173 2002-03-18  Roland McGrath  <roland@frob.com>
6175         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
6176         (CMGROUP_MAX): New macro.
6178 2002-03-23  Roland McGrath  <roland@frob.com>
6180         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
6181         * sysdeps/posix/shm_unlink.c: Likewise.
6183 2002-03-22  Roland McGrath  <roland@frob.com>
6185         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
6186         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
6187         under --enable-libio.
6188         * sysdeps/mach/hurd/configure: Regenerated.
6190 2002-03-23  Roland McGrath  <roland@frob.com>
6192         * sysdeps/mach/hurd/i386/Makefile
6193         (sysdep_routines, shared-only-routines): Don't add framestate,
6194         reverting 2001-10-02 change.
6195         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
6196         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
6197         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
6198         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
6199         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
6200         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
6201         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
6202         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
6203         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
6204         Do it here instead, only if [$(unwind-find-fde) = yes].
6206 2002-03-23  Andreas Jaeger  <aj@suse.de>
6208         * signal/signal.h: Fix typo. Patch by Steve Kemp
6209         <skx@tardis.ed.ac.uk>.
6211 2002-03-22  Andreas Jaeger  <aj@suse.de>
6213         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
6214         getresuid.
6216         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
6217         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
6218         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
6219         user_fpregs_struct): Rename fwd.
6221         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
6222         Follow sigcontext changes.
6224 2002-03-22  Andreas Jaeger  <aj@suse.de>
6226         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
6227         changes for NaNs on MIPS.
6228         Patch by Hartvig Ekner <hartvige@mips.com>.
6230 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
6232         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
6233         Use realloc if too large.
6234         (addgrbyid): Likewise.
6235         * nscd/hstcache.c (addhstbyname): Likewise.
6236         (addhstbyaddr): Likewise.
6237         (addhstbynamev6): Likewise.
6238         (addhstbyaddrv6): Likewise.
6239         * nscd/pwdcache.c (addpwbyname): Likewise.
6240         (addpwbyuid): Likewise.
6242 2002-03-21  Andreas Jaeger  <aj@suse.de>
6244         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
6245         _fpstate): Add separate struct for x86-64.
6247         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
6248         user_fpregs_struct): Change member names to follow kernel.
6250 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
6252         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
6253         Correctly close the UDP connection right away [PR libc/3120].
6255 2002-03-20  Andreas Jaeger  <aj@suse.de>
6257         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
6258         user_fpregs_struct): Fix for changed kernel struct.
6259         (struct user_regs_struct): Likewise.
6260         (struct user): Likewise.
6261         Add 32-bit x86 compatibility.
6263         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
6265 2002-03-19  Andreas Jaeger  <aj@suse.de>
6267         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
6269 2002-03-18  Andreas Jaeger  <aj@suse.de>
6271         * iconvdata/Makefile: Only run tests when shared libs are
6272         available.
6274 2002-03-17  Andreas Jaeger  <aj@suse.de>
6276         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
6278         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
6280         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
6281         bits.
6283         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
6284         (CAUSE_SHIFT): New.
6285         Patch by Hartvig Ekner <hartvige@mips.com>.
6287         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
6288         * sysdeps/generic/unwind-pe.h: Likewise.
6290         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
6291         type to _IO_setb.
6293         * libio/stdio.c (AL2): Define variant when visibility attribute is
6294         not supported.
6296         * include/libc-symbols.h (_INTVARDEF): Define variant when
6297         visibility attribute is not supported.
6299 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
6301         * po/fr.po: Update from translation team.
6303 2002-02-25  Bruno Haible  <bruno@clisp.org>
6305         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
6307 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
6309         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
6310         buffers if _IO_file_attach failed.
6312         * libio/fileops.c (_IO_file_open): Close file descriptor if
6313         _IO_SEEKOFF call failed.
6315 2002-03-15  H.J. Lu  <hjl@gnu.org>
6316             Ulrich Drepper  <drepper@redhat.com>
6318         * configure.in: Check for availability of
6319         init_array/fini_array/preinit_array handling in binutils.
6320         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
6321         * config.make.in (have-initfini-array): New variable.
6323 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
6325         * stdio-common/tst-printf.c (main): Comment out one test which
6326         checked the compiler's ability to fold floating-point constants
6327         but not really printf.
6328         (rfg3): Make s const.
6329         * stdio-common/tst-printf.sh: Adjust for removed test.
6331         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
6332         internal function.  Adjust for internal_function calling convention.
6333         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
6334         as internal_function.
6336         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
6337         hidden.
6339         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
6340         declaration and definition.
6341         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
6342         declaration.
6343         * nss/getXXent_r.c: Likewise.
6344         * nss/nsswitch.h (db_lookup_function): Add internal_function to
6345         definition.
6347         * include/time.h: Declare __localtime_r as hidden.
6349         * include/aliases.h: Declare __getaliasent_r as hidden.
6350         * include/grp.h: Declare __getgrent_r as hidden.
6351         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
6352         __getservent_r, and __getprotoent_r as hidden.
6353         * include/pwd.h: Declare __getpwent_r as hidden.
6354         * include/shadow.h: Declare __getspent_r as hidden.
6355         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
6357         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
6358         and __gconv_transliterate as hidden.
6359         Add internal_function to __gconv_get_path declaration.
6360         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
6361         definition.  Add attribute_hidden to __gconv_read_conf definition.
6363 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
6365         * elf/rtld.c: Declare _environ as hidden.
6366         * sysdeps/generic/dl-environ.c: Likewise.
6367         * sysdeps/generic/dl-sysdep.c: Likewise.
6369         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
6370         _dl_mcount_internal as hidden.
6372         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
6373         * sysdeps/generic/dl-brk.c: New file.
6374         * sysdeps/generic/dl-sbrk.c: New file.
6375         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
6376         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
6378         * elf/dl-minimal.c (malloc): Declare _end as hidden.
6379         (__errno_location): New function.  Declare errno as hidden.
6380         * elf/rtld.c (_dl_argc): Define as hidden.
6381         (_dl_skip_args): Define as hidden.
6382         (_begin, _end): Declare as hidden.
6383         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
6384         * sysdeps/generic/entry.h (_start): Declare as hidden.
6385         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
6386         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
6387         _dl_runtime_resolve and _dl_runtime_profile as hidden.
6388         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
6390 2002-03-14  Roland McGrath  <roland@frob.com>
6392         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
6394         * Makeconfig (%.v.i, %.v): New implicit rules.
6395         (preprocess-versions): Variable removed.
6396         ($(common-objpfx)shlib-versions.v.i): New target giving just the
6397         shlib-versions input files as dependencies.
6398         ($(common-objpfx)soversions.i): Depend on that instead of the input
6399         files.  Use it as input instead of using a pipeline.
6400         (postclean-generated): Append soversions.i, shlib-versions.v, and
6401         shlib-versions.v.i here.
6402         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
6403         the Versions.def input files as dependencies.
6404         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
6405         ($(common-objpfx)Versions.all): Depend on that instead of the input
6406         files.  Use it as input instead of using a pipeline.
6407         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
6408         (postclean-generated): Append those .v and .v.i files here.
6410 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
6412         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
6413         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
6414         Remove.
6416 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
6418         * sysdeps/generic/mp_clz_tab.c: New file.
6419         * sysdeps/i386/mp_clz_tab.c: New file.
6420         * sysdeps/hppa/mp_clz_tab.c: New file.
6421         * sysdeps/powerpc/mp_clz_tab.c: New file.
6422         * stdlib/Makefile (aux): Revert last patch.
6423         * math/Makefile (gmp-objs): Likewise.
6425 2002-03-13  Paul Eggert  <eggert@twinsun.com>
6427         * time/strftime.c: Comment fixes for references to obsolescent
6428         standards, In most cases the simplest fix is to remove the
6429         confusing comments.  Cross-referencing all the standards properly
6430         is a bit of a pain, and it should be enough to put that info in
6431         the documentation as I did in my recent time.texi patch.
6433 2002-03-13  Paul Eggert  <eggert@twinsun.com>
6435         * manual/time.texi (Formatting Calendar Time):
6436         ISO C99 also specifies the E and O modifiers.
6437         %P is a GNU extension, and is not in ISO C99.
6438         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
6439         %T is also in ISO C99.
6440         The RFC 822 example is not valid in arbitrary locales.
6441         Reword the POSIX.2 wording slightly, to make it a bit clearer
6442         that POSIX.2 formats are also supported by later POSIX versions.
6443         If a format was introduced in ISO C99 it is also required by
6444         POSIX.1-2001.
6446 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
6448         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
6449         _sys_nerr_internal with INTVARDEF2.
6450         * include/libc-symbols.h (INTVARDEF2): New macro.
6451         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
6452         (_sys_nerr_internal): Library.
6454         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
6455         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
6457         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
6459 2002-03-13  Wolfram Gloger  <wg@malloc.de>
6461         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
6463 2002-03-02  Andreas Schwab  <schwab@suse.de>
6465         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
6466         'h' flag and positional arg.
6467         * stdio-common/tst-printf.c (rfg3): New function to test
6468         positional arguments.
6469         (main): Fix some warnings.
6471 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
6473         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
6474         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
6476 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
6478         * grp/initgroups.c (__nss_group_data): Declare as hidden.
6480         * include/locale.h (_nl_C_locobj): Declare as hidden.
6482         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
6483         * time/strptime.c (_nl_C_LC_TIME): Likewise.
6485         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
6487         * include/sys/gmon.h: Declare _gmonparam as hidden.
6489         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
6490         (__ctype32_wctrans): Likewise.
6491         (__ctype32_width): Likewise.
6493         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
6494         use of __ttyname.
6496         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
6497         Define as hidden.
6498         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
6499         hidden.  Change all users of these variables.
6501         * posix/regex_internal.h (__re_error_msgid): Renamed from
6502         re_error_msgid.  Declare as hidden.
6503         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
6504         hidden.
6506         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
6507         (__printf_function_table): Likewise.
6508         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
6509         hidden.
6510         (__printf_function_table): Likewise.
6512         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
6513         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
6515         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
6516         * nss/nsswitch.c: Declare _nss_*_database as hidden.
6518         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
6519         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
6521 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
6523         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
6524         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
6525         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
6526         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
6527         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
6528         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
6529         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
6530         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
6531         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
6532         _nl_C_LC_CTYPE_width: Declare as hidden.
6533         * include/locale.h: Declare _nl_locale_file_list.
6534         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
6535         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
6536         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
6537         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
6538         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
6539         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
6540         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
6541         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
6542         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
6543         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
6544         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
6545         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
6546         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
6547         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
6548         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
6549         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
6550         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
6551         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
6552         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
6553         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
6554         _nl_C_LC_CTYPE_width, and as hidden.
6555         * locale/findlocale.c: Declare _nl_C as hidden.
6556         * locale/newlocale.c: Likewise.
6557         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
6558         _nl_locale_file_list.
6559         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
6560         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
6561         Define _nl_C_locobj as hidden.
6563         * malloc/mtrace.c (_mtrace_file): Define as hidden.
6564         (_mtrace_line): Likewise.
6566         * include/time.h: Declare __mon_yday as hidden.
6567         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
6569         * libio/libioP.h: Declare __libio_codecvt as hidden.
6570         * libio/fileops.c: Declare __libio_translit as hidden.
6571         * libio/iofwide.c: Define __libio_translit as hidden.
6573         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
6574         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
6575         * login/getutline_r.c: Likewise.
6576         * login/utmpname.c: Likewise.
6578         * login/utmp-private.h: Declare __libc_utmp_file_functions,
6579         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
6580         __libc_utmp_file_name as hidden.
6582         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
6583         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
6584         * locale/freelocale.c: Likewise.
6585         * locale/lc-time.c: Likewise.
6587         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
6588         (__libc_ptyname2): Likewise.
6589         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
6590         hidden.
6591         (__libc_ptyname2): Likewise.
6593         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
6594         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
6595         * sysdeps/generic/init-first.c: Likewise.
6596         * sysdeps/i386/init-first.c: Likewise.
6597         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
6598         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6599         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6600         * sysdeps/sh/init-first.c: Likewise.
6601         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
6602         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
6604         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
6605         (_itowa_upper_digits): Likewise.
6607         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
6608         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
6609         as hidden.
6611         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
6612         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
6613         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
6614         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
6616         * gmon/gmon.c (__bb_head): Define as hidden.
6617         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
6619         * argp/argp-parse.c (_argp_hang): Define as static.
6621         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
6622         handling in latest compilers.
6624         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
6625         define alias.
6626         * libio/fileops.c (_IO_file_jumps): Likewise.
6627         * libio/stdfiles.c (_IO_list_all): Likewise.
6628         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
6630         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
6631         include/malloc.h.
6632         * include/malloc.h: Add __libc_malloc_initialized declaration
6633         here.  Mark variable hidden.
6634         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
6636         * elf/dl-open.c (__libc_argc): Declare as hidden.
6637         (__libc_argv): Likewise.
6638         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
6639         (__libc_argv): Likewise.
6640         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
6641         __libc_argv as hidden.
6642         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6643         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6644         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
6645         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
6647         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
6648         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
6649         * stdlib/erand48.c: Likewise.
6650         * stdlib/jrand48.c: Likewise.
6651         * stdlib/lcong48.c: Likewise.
6652         * stdlib/lrand48.c: Likewise.
6653         * stdlib/mrand48.c: Likewise.
6654         * stdlib/nrand48.c: Likewise.
6655         * stdlib/seed48.c: Likewise.
6656         * stdlib/srand48.c: Likewise.
6658         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
6659         (_itoa_lower_digits_internal): New declaration.
6660         (_itoa_upper_digits_internal): New declaration.
6661         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
6662         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
6663         (_itoa_upper_digits_internal): New declaration.
6664         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
6665         _itoa_lower_digits.
6666         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
6667         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
6669         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
6670         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
6672         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
6673         (_itowa_lower_digits): Likewise.
6674         (_itowa_upper_digits): Likewise.
6675         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
6676         (_itowa_upper_digits): Likewise.
6678         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
6679         not already defined.
6680         (GERMANIC_PLURAL): Declare as hidden.
6682         * posix/getopt.c (__getopt_initialized): Declare as hidden.
6683         (attribute_hidden): Define as empty macro if not already defined.
6685         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
6686         (__gconv_max_path_elem_len): Likewise.
6687         (__gconv_path_envvar): Likewise.
6689         * math/Makefile (gmp-objs): Remove mp_clz_tab.
6690         * stdlib/Makefile (aux): Remove mp_clz_tab.
6691         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
6693         * stdlib/exit.h (__exit_funcs): Declare as hidden.
6695         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
6697         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
6698         _nl_category_names, _nl_category_name_sizes, _nl_current,
6699         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
6701         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
6702         (_nl_current_default_domain): Likewise
6703         (_nl_state_lock): Likewise.
6704         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
6705         (_nl_current_default_domain): Likewise
6706         (_nl_state_lock): Likewise.
6707         * intl/bindtextdom.c (_nl_state_lock): Likewise.
6709         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
6710         (_fpioconst_pow10): Likewise.
6712         * include/time.h (_tmbuf): Add attribute_hidden.
6714         * time/tzset.c (tzstring_list): Define as static.
6716         * include/time.h: Add attribute_hidden to __tzname_cur_max and
6717         __use_tzfile declaration.
6719         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
6720         and __wcsmbs_last_locale declaration.
6722 2002-02-25  Paul Eggert  <eggert@twinsun.com>
6724         * timezone/Makefile (tzbases): Move systemv from here...
6725         (tzlinks): to here, since the entries in systemv were all changed
6726         from Zone to Link lines in tz-2001a.  Bug reported (and patch
6727         tested) by Peter Breitenlohner.
6729 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
6731         * time/tst-posixtz.c (tests): Add new tests.
6732         (main): Test whether tzset() sets daylight properly.
6734 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
6736         * time/tzset.c (tz_compute): Move __daylight, __tzname and
6737         __tzname_cur_max setting...
6738         (tzset_internal): ...here.
6740 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
6742         * time/tzset.c (compute_change): Don't return any value.
6743         (tz_compute): Likewise.  Don't handle southern hemisphere here.
6744         (__tz_convert): But here.
6746 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
6748         * manual/examples/mkfsock.c: Include <string.h> as well.
6749         Patch by Alain De Carolis <alaind@wseurope.com>.
6751 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
6753         * posix/regexec.c (re_match): Fix incorrect register sizes.
6754         (re_search): Likewise.
6756 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
6758         * posix/regcomp.c (regfree): Remove a disused condition.
6759         * posix/regex_internal.c (re_acquire_state): Likewise.
6760         (re_acquire_state_context): Likewise.
6761         (register_state): Remove a redundant malloc invocation.
6762         * posix/regex_internal.h: (re_state_table_entry): Simplify
6763         the structure.
6765 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
6767         * posix/regcomp.c (regcomp): Add __builtin_expect to error
6768         handling conditions.
6769         (regerror): Likewise.
6770         (regfree): Likewise.
6771         (re_compile_internal): Likewise.
6772         (init_dfa): Likewise.
6773         (init_word_char): Likewise.
6774         (create_initial_state): Likewise.
6775         (analyze): Likewise.
6776         (analyze_tree): Likewise.
6777         (duplicate_node): Likewise.
6778         (calc_eclosure): Likewise.
6779         (calc_eclosure_iter): Likewise.
6780         (parse): Likewise.
6781         (parse_reg_exp): Likewise.
6782         (parse_branch): Likewise.
6783         (parse_expression): Likewise.
6784         (parse_subexp): Likewise.
6785         (parse_dup_op): Likewise.
6786         (parse_bracket_exp): Likewise.
6787         (build_equiv_class): Likewise.
6788         (build_charclass): Likewise.
6789         (build_word_op): Likewise.
6790         (fetch_number): Likewise.
6791         (create_tree): Likewise.
6792         (duplicate_tree): Likewise.
6793         * posix/regex.c (BE): New macro.
6794         * posix/regexec.c (re_match): Add __builtin_expect to error
6795         handling conditions.
6796         (re_match_2): Likewise.
6797         (re_search): Likewise.
6798         (re_search_internal): Likewise.
6799         (check_matching): Likewise.
6800         (proceed_next_node): Likewise.
6801         (set_regs): Likewise.
6802         (sift_states_backward): Likewise.
6803         (add_epsilon_backreference): Likewise.
6804         (transit_state): Likewise.
6805         (transit_state_sb): Likewise.
6806         (transit_state_mb): Likewise.
6807         (transit_state_bkref): Likewise.
6808         (transit_state_bkref_loop): Likewise.
6809         (build_trtable): Likewise.
6810         (group_nodes_into_DFAstates): Likewise.
6811         (match_ctx_init): Likewise.
6812         (match_ctx_add_entry): Likewise.
6813         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
6814         to error handling conditions.
6815         (re_string_construct_toupper): Likewise.
6816         (build_wcs_buffer): Likewise.
6817         (build_wcs_upper_buffer): Likewise.
6818         (build_upper_buffer): Likewise.
6819         (re_string_translate_buffer): Likewise.
6820         (re_node_set_alloc): Likewise.
6821         (re_node_set_init_1): Likewise.
6822         (re_node_set_init_2): Likewise.
6823         (re_node_set_init_copy): Likewise.
6824         (re_node_set_intersect): Likewise.
6825         (re_node_set_init_union): Likewise.
6826         (re_node_set_merge): Likewise.
6827         (re_node_set_insert): Likewise.
6828         (re_dfa_add_node): Likewise.
6829         (re_acquire_state): Likewise.
6830         (re_acquire_state_context): Likewise.
6831         (create_new_state_common): Likewise.
6832         (register_state): Likewise.
6833         (create_ci_new_state): Likewise.
6834         (create_cd_new_state): Likewise.
6835         (re_string_context_at): Remove redundant condition.
6837 2002-01-16  Roger Sayle  <roger@eyesopen.com>
6839         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
6841         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
6843 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
6845         * sysdeps/i386/elf/configure.in: Fix comment.
6847         * sysdeps/sparc/sparc64/configure.in: New.
6848         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
6849         if .dynamic comes before .got.
6850         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
6852         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
6853         HP_TIMING_ACCUM): Fix typos.
6855 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
6857         * string/strfry.c: Add some more randomness to the seed.
6858         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
6860         * po/es.po: Update from translation team.
6861         * po/fr.po: Likewise.
6863         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
6865         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
6866         when determining type of format.
6867         Patch by James Antill <james@anqd.org> [PR libc/2787].
6869 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
6871         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
6873 2002-03-11  Roland McGrath  <roland@frob.com>
6875         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
6877         * Versions.def (libc): Add GLIBC_2.2.6.
6878         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
6879         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
6880         __errno_location instead of __hurd_errno_location, and don't inline it.
6881         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
6882         * hurd/errno.c: New file.
6883         * hurd/Makefile (routines): Add errno.
6885 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
6887         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
6888         ridiculously large widths and precisions [PR libc/3026].
6890 2002-03-11  Andreas Jaeger  <aj@suse.de>
6892         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
6893         support.
6894         Patch by Susanne Oberhauser <froh@SuSE.de>.
6896 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
6898         * inet/rexec.c (ahostbuf): Define as static.
6900         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
6901         (__ctype32_wctrans): Likewise.
6902         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
6903         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
6904         (__ctype32_wctrans): Likewise.
6905         (__ctype32_width): Likewise.
6907         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
6908         They were never exported anyway.
6910         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
6911         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
6912         exported.
6913         * include/sys/gmon.h: Declare _gmonparam.
6915         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
6916         symbols for getdents64.  They were never exported.
6918 2002-03-09  Roland McGrath  <roland@frob.com>
6920         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
6921         Reported by Jon Arney <jarney1@cox.net>.
6923 2002-02-23  Roland McGrath  <roland@frob.com>
6925         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
6926         declaration.
6927         (__hurd_errno_location): Function removed.
6929 2002-03-06  Andreas Jaeger  <aj@suse.de>
6931         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
6932         32-bit.
6934 2002-03-04  Andreas Jaeger  <aj@suse.de>
6936         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
6938         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
6939         x86-64.
6941         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
6943         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
6945         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
6947         * sysdeps/x86_64/bits/setjmp.h: New.
6949         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
6951         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
6953         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
6954         for x86.
6955         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
6956         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
6958 2002-02-28  Bo Thorsen  <bo@suse.de>
6960         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
6961         version.
6963 2002-03-03  Andreas Jaeger  <aj@suse.de>
6965         * sysdeps/x86_64/bits/wordsize.h: New file.
6967         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
6968         * elf/tst-tlsmod1.c: Likewise.
6970         * posix/regcomp.c: Get regex.h from include dir for internal
6971         prototypes.
6973         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
6974         to libc-internal.h and include it.
6975         * include/libc-internal.h: Add __init_misc.
6977         * misc/init-misc.c: Include libc-internal.h for prototypes.
6979         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
6981         * misc/error.c [_LIBC]: Include libioP.h for prototype of
6982         _IO_putc_internal.
6984 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
6986         * posix/regcomp.c: Compatibility changes to allow using the code
6987         outside glibc.
6989 2002-02-28  Hartvig Ekner <hartvige@mips.com>
6991         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
6992         compiled non-PIC.
6994 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
6996         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
6997         of .str elements in the returned data structure.
6999         * elf/elf.h: Add Alpha TLS bits.
7001 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
7003         * sysdeps/unix/sysv/linux/nice.c: New file.
7005 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
7007         * elf/Makefile (dl-routines): Add dl-origin.
7008         (elide-routines.os): Add dl-origin.
7009         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
7010         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
7011         _dl_debug_state.
7012         * include/libc-symbols.c: Define attribute_hidden depending on
7013         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
7015         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
7016         * elf/dl-load.c: Likewise.
7017         * elf/rtld.c: Likewise.
7018         * include/unistd.h: Declare __libc_enable_secure_internal.
7019         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
7020         Use INTUSE with __libc_enable_secure.
7021         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
7023         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
7024         * elf/dl-error.c: Likewise,
7025         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
7027         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
7028         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
7029         function definition.  Use INTDEF with _dl_get_origin.
7030         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
7032         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
7033         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
7035         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
7036         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
7037         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
7039         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
7040         * elf/dl-deps.c: Likewise.
7041         * elf/dl-error.c: Likewise.
7042         * elf/dl-fini.c: Likewise.
7043         * elf/dl-init.c: Likewise.
7044         * elf/dl-load.c: Likewise.
7045         * elf/dl-lookup.c: Likewise.
7046         * elf/dl-reloc.c: Likewise.
7047         * elf/dl-version.c: Likewise.
7048         * elf/do-lookup.h: Likewise.
7049         * sysdeps/arm/dl-machine.h: Likewise.
7050         * sysdeps/cris/dl-machine.h: Likewise.
7051         * sysdeps/hppa/dl-machine.h: Likewise.
7052         * sysdeps/i386/dl-machine.h: Likewise.
7053         * sysdeps/m68k/dl-machine.h: Likewise.
7054         * sysdeps/powerpc/dl-machine.h: Likewise.
7055         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7056         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7057         * sysdeps/sh/dl-machine.h: Likewise.
7058         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
7059         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
7060         * sysdeps/x86_64/dl-machine.h: Likewise.
7061         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
7062         _dl_argv[0].  Use INTUSE with _dl_argv.
7063         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
7064         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
7066 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
7068         * elf/rtld.c (_rtld_global): Remove .protected.
7069         (_rtld_local): Strong alias to _rtld_global.
7070         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
7071         only .os object.
7072         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
7073         _rtld_local instead of _rtld_global.
7074         (_rtld_local): Add hidden extern, possibly in .sdata section.
7075         * configure.in: Add tests for visibility attribute and .sdata.
7076         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
7077         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
7078         * sysdeps/arm/dl-machine.h: Likewise.
7079         * sysdeps/generic/ldsodefs.h: Likewise.
7080         * sysdeps/hppa/dl-machine.h: Likewise.
7081         * sysdeps/cris/dl-machine.h: Likewise.
7082         * sysdeps/i386/dl-machine.h: Likewise.
7083         * sysdeps/ia64/dl-machine.h: Likewise.
7084         * sysdeps/m68k/dl-machine.h: Likewise.
7085         * sysdeps/mips/mips64/dl-machine.h: Likewise.
7086         * sysdeps/mips/dl-machine.h: Likewise.
7087         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7088         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7089         * sysdeps/sh/dl-machine.h: Likewise.
7090         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7091         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7092         * sysdeps/x86_64/dl-machine.h: Likewise.
7094 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
7096         * login/login.c (login): Always initialize ut_line field
7097         [PR libc/2991].
7099 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
7101         * sysdeps/i386/Makefile (sysdep_routines): Add
7102         divdi3 in csu dir.
7103         (shared-only-routines): Likewise.
7104         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
7105         (shared-only-routines): Likewise.
7106         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
7107         (shared-only-routines): Likewise.
7108         * sysdeps/wordsize-32/divdi3.c: New file.
7110 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
7112         * locale/iso-4217.def: Remove obsolete currencies for countries
7113         with Euro.
7115 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
7117         * posix/regcomp.c (regcomp): Remove a redundant condition.
7118         (init_word_char): Add a check on malloc failure.
7119         (create_initial_state): Likewise.
7120         (duplicate_node): Likewise.
7121         (calc_eclosure): Likewise.
7122         (calc_eclosure_iter): Likewise.
7123         (parse_expression): Likewise.
7124         (parse_bracket_exp): Remove unnecessary malloc invocations.
7125         (build_equiv_class): Likewise.
7126         (build_charclass): Likewise.
7127         * posix/regex_internal.c (re_node_set_intersect): Add a check
7128         on malloc failure.
7129         (re_node_set_add_intersect): Likewise.
7130         (re_node_set_merge): Likewise.
7131         (re_acquire_state): Likewise.
7132         (re_acquire_state_context): Likewise.
7133         (create_newstate_common): Likewise.
7134         (register_state): Likewise.
7135         (create_ci_newstate): Likewise.
7136         (create_cd_newstate): Likewise.
7137         * posix/regex_internal.h: Fix prototypes of re_acquire_state
7138         and re_acquire_state_context.
7139         * posix/regexec.c (regexec): Suit it to the error handling of
7140         re_search_internal.
7141         (re_match): Likewise.
7142         (re_search): Likewise.
7143         (re_search_internal): Add a check on malloc failure.
7144         (acquire_init_state_context): Likewise.
7145         (check_matching): Likewise.
7146         (proceed_next_node): Likewise.
7147         (set_regs): Likewise.
7148         (sift_states_backward): Likewise.
7149         (sift_states_iter_bkref): Likewise.
7150         (add_epsilon_backreference): Likewise.
7151         (transit_state): Likewise.
7152         (transit_state_sb): Likewise.
7153         (transit_state_mb): Likewise.
7154         (transit_state_bkref_loop): Likewise.
7155         (build_trtable): Likewise.
7156         (group_nodes_into_DFAstates): Likewise.
7157         (match_ctx_init): Likewise.
7158         (match_ctx_add_entry): Likewise.
7160 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
7162         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
7163         l_libname if profiling is enabled [PR libc/2916].
7165         * sysdeps/ia64/dl-tls.h: New file.
7167 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
7169         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
7170         Work around an Alpha gas bug.
7172 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
7174         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
7175         uses read to load the catalog.
7176         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
7178 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
7180         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
7181         regex_internal.c, and regex_internal.h.
7182         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
7183         * posix/regex.c: Complete rewrite.
7184         * posix/regexec.c: New file.
7185         * posix/regcomp.c: New file.
7186         * posix/regex_internal.c: New file.
7187         * posix/regex_internal.h: New file.
7188         * posix/regex.h (RE_ICASE): New macro.
7189         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
7191         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
7192         ungetwc.  It's a macro.
7193         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
7194         implementation.
7195         Reported by Jason Merrill <jason@redhat.com>.
7197 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
7199         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
7200         position to fp->_offset if it is set.
7201         * stdio-common/Makefile (tests): Add tst-fdopen.
7202         * stdio-common/tst-fdopen.c: New test.
7204 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
7206         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
7207         * stdio-common/tst-ungetc.c (main): Add another test.
7209 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
7211         * assert/assert-perr.c: Use INTUSE to reference functions and variables
7212         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
7213         aliases.  Add prototypes for the new aliases.
7214         * assert/assert.c: Likewise.
7215         * include/libc-symbols.h: Likewise.
7216         * include/stdio.h: Likewise.
7217         * include/netinet/in.h: Likewise.
7218         * include/rpc/auth.h: Likewise.
7219         * include/rpc/auth_unix.h: Likewise.
7220         * include/rpc/key_prot.h: Likewise.
7221         * include/rpc/pmap_prot.h: Likewise.
7222         * include/rpc/pmap_rmt.h: Likewise.
7223         * include/rpc/rpc_msg.h: Likewise.
7224         * include/rpc/xdr.h: Likewise.
7225         * inet/gethstbyad_r.c: Likewise.
7226         * inet/gethstbynm2_r.c: Likewise.
7227         * inet/gethstbynm_r.c: Likewise.
7228         * inet/gethstent_r.c: Likewise.
7229         * inet/in6_addr.c: Likewise.
7230         * libio/__fpurge.c: Likewise.
7231         * libio/filedoalloc.c: Likewise.
7232         * libio/fileops.c: Likewise.
7233         * libio/ftello.c: Likewise.
7234         * libio/ftello64.c: Likewise.
7235         * libio/genops.c: Likewise.
7236         * libio/iofclose.c: Likewise.
7237         * libio/iofdopen.c: Likewise.
7238         * libio/iofflush.c: Likewise.
7239         * libio/iofflush_u.c: Likewise.
7240         * libio/iofgetpos.c: Likewise.
7241         * libio/iofgetpos64.c: Likewise.
7242         * libio/iofgets.c: Likewise.
7243         * libio/iofgets_u.c: Likewise.
7244         * libio/iofopen.c: Likewise.
7245         * libio/iofopncook.c: Likewise.
7246         * libio/iofputs.c: Likewise.
7247         * libio/iofread.c: Likewise.
7248         * libio/iofread_u.c: Likewise.
7249         * libio/iofsetpos.c: Likewise.
7250         * libio/iofsetpos64.c: Likewise.
7251         * libio/ioftell.c: Likewise.
7252         * libio/iofwrite.c: Likewise.
7253         * libio/iogetline.c: Likewise.
7254         * libio/iogets.c: Likewise.
7255         * libio/iogetwline.c: Likewise.
7256         * libio/iolibio.h: Likewise.
7257         * libio/iopadn.c: Likewise.
7258         * libio/iopopen.c: Likewise.
7259         * libio/ioseekoff.c: Likewise.
7260         * libio/ioseekpos.c: Likewise.
7261         * libio/iosetbuffer.c: Likewise.
7262         * libio/iosetvbuf.c: Likewise.
7263         * libio/ioungetc.c: Likewise.
7264         * libio/ioungetwc.c: Likewise.
7265         * libio/iovdprintf.c: Likewise.
7266         * libio/iovsprintf.c: Likewise.
7267         * libio/iovsscanf.c: Likewise.
7268         * libio/libioP.h: Likewise.
7269         * libio/memstream.c: Likewise.
7270         * libio/obprintf.c: Likewise.
7271         * libio/oldfileops.c: Likewise.
7272         * libio/oldiofclose.c: Likewise.
7273         * libio/oldiofdopen.c: Likewise.
7274         * libio/oldiofgetpos.c: Likewise.
7275         * libio/oldiofgetpos64.c: Likewise.
7276         * libio/oldiofopen.c: Likewise.
7277         * libio/oldiofsetpos.c: Likewise.
7278         * libio/oldiofsetpos64.c: Likewise.
7279         * libio/oldiopopen.c: Likewise.
7280         * libio/oldstdfiles.c: Likewise.
7281         * libio/putc.c: Likewise.
7282         * libio/setbuf.c: Likewise.
7283         * libio/setlinebuf.c: Likewise.
7284         * libio/stdfiles.c: Likewise.
7285         * libio/stdio.c: Likewise.
7286         * libio/strops.c: Likewise.
7287         * libio/vasprintf.c: Likewise.
7288         * libio/vscanf.c: Likewise.
7289         * libio/vsnprintf.c: Likewise.
7290         * libio/vswprintf.c: Likewise.
7291         * libio/wfiledoalloc.c: Likewise.
7292         * libio/wfileops.c: Likewise.
7293         * libio/wgenops.c: Likewise.
7294         * libio/wstrops.c: Likewise.
7295         * malloc/mtrace.c: Likewise.
7296         * misc/error.c: Likewise.
7297         * misc/syslog.c: Likewise.
7298         * nss/getXXbyYY_r.c: Likewise.
7299         * nss/getXXent_r.c: Likewise.
7300         * nss/hosts-lookup.c: Likewise.
7301         * stdio-common/getw.c
7302         * stdio-common/printf-prs.c: Likewise.
7303         * stdio-common/printf_fp.c: Likewise.
7304         * stdio-common/printf_size.c: Likewise.
7305         * stdio-common/putw.c: Likewise.
7306         * stdio-common/scanf.c: Likewise.
7307         * stdio-common/sprintf.c: Likewise.
7308         * stdio-common/tmpfile64.c: Likewise.
7309         * stdio-common/vfprintf.c: Likewise.
7310         * stdio-common/vfscanf.c: Likewise.
7311         * stdlib/strfmon.c: Likewise.
7312         * sunrpc/auth_des.c: Likewise.
7313         * sunrpc/auth_none.c: Likewise.
7314         * sunrpc/auth_unix.c: Likewise.
7315         * sunrpc/authdes_prot.c: Likewise.
7316         * sunrpc/authuxprot.c: Likewise.
7317         * sunrpc/clnt_perr.c: Likewise.
7318         * sunrpc/clnt_raw.c: Likewise.
7319         * sunrpc/clnt_tcp.c: Likewise.
7320         * sunrpc/clnt_udp.c: Likewise.
7321         * sunrpc/clnt_unix.c: Likewise.
7322         * sunrpc/key_call.c: Likewise.
7323         * sunrpc/key_prot.c: Likewise.
7324         * sunrpc/openchild.c: Likewise.
7325         * sunrpc/pm_getmaps.c: Likewise.
7326         * sunrpc/pm_getport.c: Likewise.
7327         * sunrpc/pmap_clnt.c: Likewise.
7328         * sunrpc/pmap_prot.c: Likewise.
7329         * sunrpc/pmap_prot2.c: Likewise.
7330         * sunrpc/pmap_rmt.c: Likewise.
7331         * sunrpc/rpc_cmsg.c: Likewise.
7332         * sunrpc/rpc_prot.c: Likewise.
7333         * sunrpc/svc_authux.c: Likewise.
7334         * sunrpc/svc_raw.c: Likewise.
7335         * sunrpc/svc_simple.c: Likewise.
7336         * sunrpc/svc_tcp.c: Likewise.
7337         * sunrpc/svc_udp.c: Likewise.
7338         * sunrpc/svc_unix.c: Likewise.
7339         * sunrpc/xdr.c: Likewise.
7340         * sunrpc/xdr_array.c: Likewise.
7341         * sunrpc/xdr_mem.c: Likewise.
7342         * sunrpc/xdr_rec.c: Likewise.
7343         * sunrpc/xdr_ref.c: Likewise.
7344         * sunrpc/xdr_stdio.c: Likewise.
7345         * sysdeps/generic/_strerror.c: Likewise.
7346         * sysdeps/generic/printf_fphex.c: Likewise.
7347         * sysdeps/generic/tmpfile.c: Likewise.
7348         * sysdeps/gnu/errlist.awk: Likewise.
7349         * sysdeps/gnu/errlist.c: Likewise.
7351         * libio/Makefile (routines): Remove iosprint.
7352         * libio/iosprintf.c: Removed
7355 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
7357         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
7358         non_dynamic_init and exported now.
7359         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
7360         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
7361         !SHARED.
7362         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
7363         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7364         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7366 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
7368         * elf/dl-close.c (free_slotinfo): Check for end of list and return
7369         true in this case.
7371         * locale/iso-639.def: Add language codes for Walloon.
7373         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
7374         total number of relocations performed.
7376         * elf/sprof.c (load_profdata): If do_test provide information as
7377         to why loading failed.
7378         * elf/dl-profile.c (_dl_start_profile): Initialize all of
7379         hist_hdr.dimen.
7381         * csu/set-init.c: Moved to...
7382         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
7383         * csu/Makefile: Don't compile set-init.
7384         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
7385         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
7386         to __libc_init.
7387         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7388         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7389         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
7390         __libc_init.
7391         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
7392         __libc_subinit.
7394 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
7396         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
7397         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
7398         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
7399         (_dl_deallocate_tls): New function.
7400         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
7401         _dl_deallocate_tls.
7403 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
7405         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
7406         * stdio-common/tst-fseek.c (main): Add test for this.
7408 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
7410         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
7412 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
7414         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
7415         pointer before dereferencing.
7417 2002-02-18  Roland McGrath  <roland@frob.com>
7419         * sysdeps/mach/hurd/times.c: Fix typo in last change.
7421         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
7422         Use task_policy in place of task_priority.
7424         * sysdeps/generic/bits/mman.h
7425         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
7426         * sysdeps/mach/msync.c: New file.
7428         * sysdeps/mach/powerpc/syscall.S: New file.
7430         * mach/msg.c [MACH_MSG_OVERWRITE]
7431         (__mach_msg_trap, __mach_msg_overwrite): New functions.
7432         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
7434         * sysdeps/mach/configure.in: Check for clock.defs to put into
7435         mach_interface_list.
7436         * sysdeps/mach/configure: Regenerated.
7438         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
7439         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
7440         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
7441         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
7442         (mach-shortcuts): Add device_read_overwrite_request,
7443         device_read_overwrite, vm_read_overwrite, thread_switch.
7445         * configure.in (base_machine): Set to $machine by default.
7446         * configure: Regenerated.
7448         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
7449         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
7450         * sysdeps/mach/configure: Regenerated.
7451         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
7453         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
7455         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
7457         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
7458         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
7460 2002-02-17  Roland McGrath  <roland@frob.com>
7462         * sysdeps/mach/hurd/times.c
7463         [NO_CREATION_TIME] (startup_time): New static variable.
7464         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
7465         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
7466         creation_time from task_basic_info.
7467         (__times): Use __gettimeofday instead of __host_get_time.
7469         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
7470         Use untyped Mach IPC message format.
7472         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
7474         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
7475         _S_catch_exception_raise_state_identity,
7476         _hurdsig_fault_catch_exception_raise_state,
7477         _hurdsig_fault_catch_exception_raise_state_identity.
7479         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
7481         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
7482         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
7484         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
7485         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
7487         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
7488         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
7489         them as no-op macros.
7490         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
7491         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
7493         * sysdeps/powerpc/dl-machine.h
7494         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
7496         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
7497         Use untyped Mach IPC message format.
7499         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
7500         Handle untyped Mach IPC message formats.
7502         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
7503         Expect different argument conventions when this is defined.
7504         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
7505         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
7506         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
7507         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
7508         for OSF Mach variant.
7509         (faulted): Use mig_reply_error_t for REPLY.
7510         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
7511         in __thread_set_exception_ports call.
7512         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
7513         __mach_port_set_attributes in place of __mach_port_set_qlimit.
7515         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
7516         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
7517         on Darwin, which includes bogons.
7519         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
7520         variable LOADBASE so it's not declared when it's not used.
7522 2002-02-16  Roland McGrath  <roland@frob.com>
7524         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
7525         to use BI.creation_time.
7527         * mach/Machrules (MIG): Add -x c to CPP value passed down.
7529         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
7530         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
7531         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
7532         host_page_size instead of vm_statistics.
7534         * sysdeps/mach/Makefile (mach-before-compile): Don't include
7535         mach_interface.h here, since not all variants use that name.
7537         * sysdeps/mach/configure.in: Add some checks for Mach headers
7538         to ensure a sane installation.
7539         (mach_interface_list): Define this variable by checking for .defs
7540         files found in various variants.
7541         * configure.in (mach_interface_list): AC_SUBST this.
7542         * config.make.in (mach-interface-list): New substituted variable.
7543         * mach/Makefile (user-interfaces): Define this using the value
7544         of $(mach-interface-list) instead of mach, mach4.
7545         Updated other references to mach_interface to use it as well.
7547         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
7549         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
7550         mig_reply_error_t for OSF Mach variant.
7552         * mach/Makefile (routines): Remove bootprivport.
7553         * mach/bootprivport.c: File removed.  It has never been used.
7555         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
7556         Grok the OSF flavor of message format.
7557         (mach_msg_destroy_port): For MAKE_SEND and
7558         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
7559         no-senders notification.
7561 2002-02-06  Roland McGrath  <roland@frob.com>
7563         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
7564         to here if 2.0 compatibility enabled ...
7565         (libc: GLIBC_2.1.3): ... from here.
7567 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
7569         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
7570         generation counter.
7571         * elf/dl-close.c (_dl_close): Likewise.
7573 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
7575         * elf/Makefile: Add rules to build and run tst-tls8.
7576         * elf/tst-tls8.c: New file.
7577         * elf/tst-tlsmod4.c: New file.
7579         * stdlib/test-a64l.c (tests): Add more test cases.
7581         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
7582         Reported by Walter Harms <WHarms@bfs.de>.
7584 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
7586         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
7587         definitions for struct sigcontext.
7588         Suggested by David Mosberger-Tang.
7590 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
7592         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
7593         for removing reference of module in slotinfo list.
7594         (_dl_close): Use remove_slotinfo.
7595         * sysdeps/generic/dl-tls.c: General pretty printing.
7596         (oom): Define only if SHARED.
7597         (_dl_next_tls_modid): Correct starting point for the case we assume
7598         there is a gap.  Add missing instruction grouping (doh!).  Correct
7599         tests for reaching maximum index.
7600         * elf/Makefile: Add rules to build and run tst-tls7.
7601         * elf/tst-tls7.c: New file.
7602         * elf/tst-tlsmod3.c: New file.
7604         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
7605         USE_TLS.
7606         * elf/tst-tlsmod2.c: Likewise.
7608         * elf/dl-close.c (_dl_close): When closing an object using TLS
7609         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
7610         true.  Increment dl_tls_generation only if we closed any TLS-using
7611         object.
7612         * elf/tst-tls6.c: New file.
7613         * elf/Makefile: Add rules to build and run tst-tls6.
7615         * po/da.po: Update from translation team.
7617         * locale/categories.def: Fix typo [PR libc/2948].
7618         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
7619         [PR libc/2949].
7620         * locale/iso-4217.def: Update from official version [PR libc/2950].
7621         * glibcbug.in: Honor TMPDIR [PR libc/2951].
7622         * locale/programs/ld-collate.c (collate_finish): Bail out with a
7623         message if input is too confusion instead of using assert.
7624         (collate_read): Don't crash on unknown symbol [PR libc/2952].
7625         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
7627         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
7628         * elf/tst-tls2.c: Likewise.
7629         * elf/tst-tls3.c: Likewise.
7631 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
7633         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
7635 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
7637         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
7638         if this is really necessary.
7640         * elf/dl-close.c (_dl_close): Implement freeing entries in the
7641         slotinfo array.
7642         (free_mem): Free memory for the slotinfo array if possible.
7644 2002-02-12  Andreas Schwab  <schwab@suse.de>
7646         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
7648 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
7650         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
7651         TLS_DTV_UNALLOCATE.
7652         (oom): New function.
7653         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
7654         (_dl_determine_tlsoffset): Likewise.
7655         (_dl_allocate_tls): Likewise.
7656         (__TLS_GET_ADDR): Define if not already defined.
7657         (_dl_tls_symaddr): New function.
7658         (allocate_and_init): New function.
7659         (__tls_get_addr): Actually implement handling of generation counter
7660         and deferred allocation.
7661         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
7662         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
7663         _dl_tls_generation.
7664         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
7665         Declare _dl_tls_symaddr.
7666         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
7667         SHARED.
7668         * include/link.h (struct link_map):  Remove l_tls_nextimage and
7669         l_tls_previmage.
7670         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
7671         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
7672         (_dl_vsym): Likewise.
7673         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
7674         layout.
7675         (dl_main): Allow PT_TLS be present for empty segment.  Remove
7676         nextimage list handling.  Instead add all modules using TLS to
7677         dl_tls_dtv_slotinfo_list.
7678         * elf/dl-open.c (dl_open_worker): After successfully loading all
7679         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
7680         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
7681         empty segment don't do anything.  Remove handling of initimage list.
7682         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
7683         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
7684         * elf/dl-minimal.c: Define __libc_memalign.
7685         * elf/dl-support.c: Remove _dl_initimage_list.  Add
7686         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
7687         _dl_tls_generation.
7688         * include/stdlib.h: Declare __libc_memalign.
7690         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
7691         * elf/tst-tls4.c: New file.
7692         * elf/tst-tls5.c: New file.
7693         * elf/tst-tlsmod2.c: New file.
7695         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
7697         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
7699         * elf/tst-tls1.c: Use test-skeleton.c.
7700         * elf/tst-tls2.c: Likewise.
7701         * elf/tst-tls3.c: Likewise.
7703         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
7705 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
7707         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
7709 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
7711         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
7713         * elf/tst-tls3.c: New file.
7714         * elf/tst-tlsmod1.c: New file.
7715         * elf/Makefile: Add rules to build and run tst-tls3.
7717         * sysdeps/i386/dl-machine.h: Include <tls.h>.
7718         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
7719         TLS relocations.
7721         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
7723         * po/fr.po: Update from translation team.
7725         * elf/tls-macros.h: Add alternative macros for use in PIC.
7727         * elf/dl-lookup.c: Include <tls.h>.
7728         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
7730         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
7731         required by passing pointer to last element of the list.
7733         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
7734         l_tls_initimage to a place where it actually is performed.
7736         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
7737         after globfree() calls.
7739         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
7740         (openaux): Pass open_mode as new last argument to _dl_map_object.
7741         (_dl_map_object_deps): Add new argument open_mode.  Initialize
7742         open_mode element of args variable with it.
7743         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
7744         _dl_map_object_deps.
7745         * elf/rtld.c (dl_main): Add zero as last parameter to
7746         _dl_map_object_deps call.
7747         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
7748         * elf/nodlopen2.c: New file.
7749         * elf/nodlopenmod2.c: New file.
7750         * elf/Makefile: Add rules to build and run nodlopen2.
7752         * elf/tst-tls1.c: Move TLS helper macros to...
7753         * elf/tls-macros.h: ...here.  New file.
7754         * elf/tst-tls2.c: New file.
7755         * elf/Makefile (tests): Add tst-tls2.
7756         (distribute): Add tls-macros.h.
7758         * po/sv.po: Update from translation team.
7760         * elf/tst-tls1.c (main): Add complete set of tests.  Split
7761         architecture specific definitions from the actual test code.
7763         * po/tr.po: Update from translation team.
7765 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
7767         * elf/Makefile (tests): Add tst-tls1.
7768         * elf/tst-tls1.c: New file.
7770         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
7771         alignment of TCB for now.
7773         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
7774         initialization image for the application itself.
7776         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
7777         loop to initialize TLS block.
7779 2002-02-08  Richard Henderson  <rth@redhat.com>
7781         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
7782         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
7784         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
7786 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
7788         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
7790 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
7792         * po/ca.po: Update from translation team.
7793         * po/sk.po: Likewise.
7795         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
7796         (dl_main): Move dtv/static TLS handling before relocation.
7797         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
7798         TLS_INIT_TP to allocate and install the dtv/static TLS block.
7799         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
7800         so far uses TLS initialize GL(dl_tls_static_size) and
7801         GL(dl_tls_static_align) to account for the TCB.
7802         (_dl_allocate_tls): New function.
7803         * sysdeps/generic/ldsodefs.h (rtld_global): Add
7804         _dl_initial_dtv_malloced.
7806         * configure.in: Test for __builtin_memset more realistically.
7808         * csu/version.c (banner): If TLS support is available say so.
7810 2002-02-04  H.J. Lu  <hjl@gnu.org>
7812         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
7813         __attribute_used__.
7814         (__dl_runtime_resolve): Likewise.
7816         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
7817         declaration.
7819 2001-11-15  H.J. Lu  <hjl@gnu.org>
7821         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
7822         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
7824         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
7826 2002-02-07  H.J. Lu  <hjl@gnu.org>
7828         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
7829         ".set noreorder".
7830         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
7831         Likewise.
7833 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
7835         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
7837         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
7838         ___tls_get_addr_internal.
7839         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
7841         * po/ko.po: Update from translation team.
7843 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
7845         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
7846         attribute, change __pad{1,2} type to unsigned int.
7847         (struct stat64): Remove packed attribute.
7849 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
7851         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
7853 2002-02-07  Andreas Schwab  <schwab@suse.de>
7855         * configure.in: Fix check for -zcombreloc.
7857 2002-02-06  H.J. Lu  <hjl@gnu.org>
7859         * config.h.in (HAVE_BUILTIN_MEMSET): New.
7860         * configure.in: Check if __builtin_memset really works.
7861         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
7862         __GNUC_PREREQ (2, 96) before using __builtin_memset.
7864 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7866         * io/bug-ftw3.c (main): Don't try the test if root.
7868 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7870         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
7871         constraints.
7872         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
7873         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
7874         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
7875         Likewise.
7876         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
7877         a weak alias for __clone.
7878         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
7879         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
7880         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
7881         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
7882         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
7883         a weak alias for __mmap64.
7885 2002-02-05  H.J. Lu  <hjl@gnu.org>
7887         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
7888         (atomic_add): Likewise.
7889         (compare_and_swap): Likewise.
7890         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
7892 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
7894         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
7896         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
7897         alignment of the TCB and store total size and alignment of static
7898         TLS block in _dl_tls_static_size and _dl_tls_static_align.
7899         tls_index is a typedef.
7900         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
7901         _dl_tls_static_align.
7902         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
7903         * elf/dl-support.c: Define _dl_tls_static_size and
7904         _dl_tls_static_align.
7906 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
7908         * configure.in: Add --without-tls option.
7909         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
7910         --without-tls is given.
7912         * sysdeps/generic/dl-tls.c: Include <tls.h>.
7914         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
7916 2002-02-06  Roland McGrath  <roland@frob.com>
7918         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
7919         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
7921         * scripts/versions.awk: Improve error message for missing version.
7922         Each version inherits from the last one only if they have the same
7923         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
7924         but not GLIBC_x and FOO_y.
7926         * scripts/firstversions.awk: Handle libraries that don't have each
7927         particular version named in the third column of shlib-versions.
7929         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
7931 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
7933         * Versions.def [ld]: Add GLIBC_2.3.
7934         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
7935         * elf/Makefile (dl-routines): Add dl-tls.
7936         (distribute): Add dl-tls.h.
7937         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
7938         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
7939         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
7940         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
7941         along with the other info in the link map.  Change queueing of init
7942         images for double linked list.  Use _dl_next_tls_modid to compute
7943         l_tls_modid.
7944         * elf/rtld.c (_dl_start_final): Store alignment requirement
7945         along with the other info in rtld map and executable map.
7946         (dl_main): Add ld.so to the init image list if necessary.  Compute
7947         final module ID with _dl_next_tls_modid.
7948         * include/link.h (struct link_map): Add l_tls_previmage and
7949         l_tls_align.
7950         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
7951         * sysdeps/i386/elf/Versions: New file.
7952         * sysdeps/generic/dl-tls.c: New file.
7953         * sysdeps/generic/dl-tls.h: New file.
7954         * sysdeps/i386/dl-tls.h: New file.
7956 2002-02-06  Roland McGrath  <roland@frob.com>
7958         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
7959         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
7961 2002-01-05  Roland McGrath  <roland@frob.com>
7963         * sysdeps/mach/configure.in: New file.
7964         * sysdeps/mach/configure: New generated file.
7966         * mach/Makefile (user-interfaces): Remove default_pager_helper.
7967         It has never been used by anything.
7969 2002-02-06  H.J. Lu  <hjl@gnu.org>
7971         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
7972         is included.
7974 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
7976         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
7977         attribute((packed)) to counter stupid people misusing gcc options.
7978         (struct stat64): Likewise.
7980 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
7982         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
7983         the variables which are used as booleans.
7985 2002-02-06  Andreas Jaeger  <aj@suse.de>
7987         * include/libc-symbols.h (INTUSE): Renamed from INT.
7988         * elf/dl-deps.c: Change users.
7989         * sysdeps/generic/dl-sysdep.c: Likewise.
7990         * sysdeps/generic/dl-cache.c: Likewise.
7991         * elf/dl-reloc.c: Likewise.
7992         * elf/rtld.c: Likewise.
7993         * elf/dl-version.c: Likewise.
7994         * elf/dl-load.c: Likewise.
7995         * elf/dl-dst.h: Likewise.
7996         * elf/dl-init.c: Likewise.
7997         * elf/dl-error.c: Likewise.
7998         * elf/dl-fini.c: Likewise.
7999         * elf/dl-runtime.c: Likewise.
8000         * elf/do-lookup.h: Likewise.
8002         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
8003         definition.
8004         * stdio-common/_itowa.h: Likewise.
8006 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
8008         * elf/dl-minimal.c: Define _itoa_lower_digits.
8010         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
8011         DT_FLAGS set.
8013         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
8014         loading modules with the DF_STATIC_TLS flag set.
8015         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
8016         element.
8017         * include/link.h (struct link_map): Add l_flags field.
8018         * elf/elf.h (DF_STATIC_TLS): New definition.
8020         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
8021         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
8023         * elf/rtld.c (process_dl_debug): Correct printing help message.
8024         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
8025         for %s.
8027         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
8028         definition and pass &errno in use of this variable.
8029         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
8031 2002-02-04  Andreas Schwab  <schwab@suse.de>
8033         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
8034         * locale/programs/charmap-dir.c: Wrap calls that output messages
8035         with WITH_CUR_LOCALE.  Include "localedef.h" first.
8036         * locale/programs/charmap.c: Likewise.
8037         * locale/programs/ld-address.c: Likewise.
8038         * locale/programs/ld-collate.c: Likewise.
8039         * locale/programs/ld-ctype.c: Likewise.
8040         * locale/programs/ld-identification.c: Likewise.
8041         * locale/programs/ld-measurement.c: Likewise.
8042         * locale/programs/ld-messages.c: Likewise.
8043         * locale/programs/ld-monetary.c: Likewise.
8044         * locale/programs/ld-name.c: Likewise.
8045         * locale/programs/ld-numeric.c: Likewise.
8046         * locale/programs/ld-paper.c: Likewise.
8047         * locale/programs/ld-telephone.c: Likewise.
8048         * locale/programs/ld-time.c: Likewise.
8049         * locale/programs/linereader.c: Likewise.
8050         * locale/programs/linereader.h: Likewise.
8051         * locale/programs/localedef.c: Likewise.
8052         * locale/programs/locfile.c: Likewise.
8053         * locale/programs/repertoire.c: Likewise.
8055 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
8057         * elf/rtld.c (_dl_start_final): Determine load address to locate
8058         ehdr with GL(dl_rtld_map).l_map_start.
8060         * po/ca.po: Update from translation team.
8062         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
8063         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
8064         header entry.
8065         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
8066         _dl_tls_module_cnt.
8067         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
8069 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
8071         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
8072         * include/link.h (struct link_map): Add various members for TLS
8073         information.
8074         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
8075         _rtld_tlsoffset, add _dl_initimage_list.
8076         * sysdeps/i386/dl-lookupcfg.h: New file.
8077         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
8078         TLS relocation.  When using TLS we now use RESOLVE_MAP.
8079         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
8080         is used.
8082         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
8083         unused.
8085         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
8086         thread-pointer as soon as possible.
8087         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
8088         elements in rtld_global.
8089         * sysdeps/generic/tls.h: New file.
8090         * elf/Makefile (distribute): Add tls.h.
8091         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
8092         relocations.  Not complete yet.
8094         * resolv/resolv.h: Allow user to define __need_res_state and only
8095         define __res_start structure then.
8096         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
8098         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
8099         dl_cpuclock_offset initialization to _dl_start_final.
8100         (_dl_show_auxv): Avoid unnecessary sign extension.
8101         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
8103 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
8105         * config.h.in: Add HAVE_TLS_SUPPORT.
8106         * sysdeps/i386/elf/configure.in: New file.
8108 2002-02-03  Andreas Schwab  <schwab@suse.de>
8110         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
8111         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
8113 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
8115         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
8116         alloca if the memory reqirements are too high.
8118 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
8120         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
8121         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
8122         the former is available anyway and speed isn't important here.
8123         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
8124         * elf/dl-version.c (match_symbol): Likewise.
8125         (_dl_check_map_versions): Likewise.
8126         * elf/rtld.c (process_envvars): Likewise.
8127         (print_statistics): Likewise.
8128         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
8129         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
8130         bases.  Add assert to catch uses of unimplemented features.
8131         (__strsep): Add assert to catch uses of unimplemented features.
8132         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
8133         and avoid inline optimization.
8134         * elf/rtld.c (process_envvars): Likewise.
8135         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
8136         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
8137         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
8139 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
8141         * stdio-common/_itoa.h: Minor simplifications of the code.
8142         * stdio-common/_itoa.c: Likewise.
8144         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
8145         instead of _dl_printf for debugging info output.
8147         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
8148         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
8150 2002-02-01  H.J. Lu  <hjl@gnu.org>
8152         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
8153         (atomic_add): Likewise.
8154         (compare_and_swap): Return 0 only when failed to compare. Use
8155         branch likely.
8157         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
8158         branch likely.
8160 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
8162         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
8164 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
8166         * elf/dl-minimal.c (__strsep): New minimal implementation.
8168 2002-02-02  Paul Eggert  <eggert@twinsun.com>
8170         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
8171         (__mktime_internal): If no tm_isdst is requested, prefer solutions
8172         with tm_isdst > 0 when the requested time falls within a
8173         spring-forward gap [PR libc/2894].
8175 2002-02-03  Andreas Schwab  <schwab@suse.de>
8177         * stdio-common/tst-rndseek.c: Increase timeout.
8179 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
8181         Change ld.so to not use functions which are exported.  One cannot
8182         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
8183         definitions.
8184         * include/libc-symbols.h: Define INT and INTDEF.
8185         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
8186         _dl_signal_error_internal, _dl_map_object_internal,
8187         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
8188         _dl_lookup_versioned_symbol_internal,
8189         _dl_relocate_object_internal, _dl_debug_state_internal,
8190         _dl_start_profile_internal, and _dl_unload_cache_internal.
8191         * include/dlfcn.h: Declare _dl_catch_error_internal.
8192         * elf/rtld.c: Use INT for calls to any of the *_internal functions
8193         above.  Add INTDEF to function definitions.
8194         * elf/dl-debug.c: Likewise.
8195         * elf/dl-deps.c: Likewise.
8196         * elf/dl-dst.h: Likewise.
8197         * elf/dl-error.c: Likewise.
8198         * elf/dl-fini.c: Likewise.
8199         * elf/dl-init.c: Likewise.
8200         * elf/dl-load.c: Likewise.
8201         * elf/dl-lookup.c: Likewise.
8202         * elf/dl-misc.c: Likewise.
8203         * elf/dl-open.c: Likewise.
8204         * elf/dl-profile.c: Likewise.
8205         * elf/dl-reloc.c: Likewise.
8206         * elf/dl-runtime.c: Likewise.
8207         * elf/dl-version.c: Likewise.
8208         * elf/do-lookup.h: Likewise.
8209         * sysdeps/generic/dl-cache.c: Likewise.
8210         * sysdeps/generic/dl-sysdep.c: Likewise.
8211         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
8212         instead of _dl_init.
8213         * sysdeps/arm/dl-machine.h: Likewise.
8214         * sysdeps/cris/dl-machine.h: Likewise.
8215         * sysdeps/hppa/dl-machine.h: Likewise.
8216         * sysdeps/i386/dl-machine.h: Likewise.
8217         * sysdeps/ia64/dl-machine.h: Likewise.
8218         * sysdeps/m68k/dl-machine.h: Likewise.
8219         * sysdeps/mips/dl-machine.h: Likewise.
8220         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8221         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8222         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8223         * sysdeps/sh/dl-machine.h: Likewise.
8224         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8225         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8226         * sysdeps/x86_64/dl-machine.h: Likewise.
8227         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
8229         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
8230         and _dl_debug_initialize.
8232         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
8233         more information.
8234         * elf/rtld.c (dl_main): Avoid strrchr.
8235         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
8236         result of readlink.  Search from the back for '/'.
8238         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
8239         strncpy if possible.
8241         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
8242         strncmp.
8243         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
8244         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
8245         strspn, and strcspn.
8246         (process_envvars): Don't use strcspn.
8248         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
8249         (_dl_dst_substitute): Likewise.
8251 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
8253         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
8254         code which is never used when relocating ld.so itself.
8256         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
8257         starting ld.so itself.  Move l_addr variable initialization closer
8258         to use.
8259         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
8261 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
8263         * Versions.def (libc): Add GLIBC_PRIVATE.
8264         (libdb, libnss_db, libdb1): Remove.
8265         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
8266         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
8267         (libpthread): Add GLIBC_PRIVATE.
8268         (libresolv): Likewise, remove GLIBC_2.1.
8269         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
8270         GLIBC_2.2.3, GLIBC_2.3.
8271         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
8272         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
8273         _dl_sym, _dl_vsym): Likewise.
8274         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
8275         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
8276         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
8277         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
8278         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
8279         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
8280         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
8281         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
8282         Likewise.
8283         (_dl_object_relocation_scope): Remove.
8284         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
8285         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
8286         __gconv_cache): Move to GLIBC_PRIVATE.
8287         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
8288         __internal_setnetgrent): Likewise.
8289         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
8290         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
8291         * locale/Versions (__collate_element_hash, __collate_element_strings,
8292         __collate_symbol_classes, __collate_symbol_hash,
8293         __collate_symbol_strings, _nl_current_LC_COLLATE,
8294         _nl_current_LC_CTYPE): Likewise.
8295         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
8296         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
8297         (libnss_nis, libnss_nisplus): Likewise.
8298         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
8299         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
8300         (libnss_files): Move all symbols to GLIBC_PRIVATE.
8301         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
8302         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
8303         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
8304         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
8305         __ns_get16, __ns_samename): Likewise.
8306         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
8307         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
8308         GLIBC_PRIVATE.
8309         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
8310         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
8311         __libc_connect): Likewise.
8312         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
8313         Likewise.
8314         * stdlib/Versions (__libc_system): Likewise.
8315         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
8316         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
8317         * sysdeps/ia64/fpu/Versions: Likewise.
8318         * sysdeps/ia64/Versions: Likewise.
8319         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
8320         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
8321         to GLIBC_PRIVATE.
8322         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
8323         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
8324         __libc_sigaction): Likewise.
8325         * termios/Versions (__libc_tcdrain): Likewise.
8327         * misc/sys/cdefs (__attribute_noinline__): Define.
8328         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
8329         __attribute_noinline__.
8331         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
8332         * elf/dl-xstat64.c: New file.
8333         * elf/dl-fxstat64.c: New file.
8334         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
8335         don't export __fxstat64 at multiple versions.
8336         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
8337         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
8339 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
8341         * locale/program/ld-collate.c (collate_finish): Assign a wide
8342         char collation sequence value to multi character collating
8343         elements, and avoid over writing by non-character elements.
8345 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
8347         * elf/Makefile (distribute): Add dl-procinfo.c.
8348         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
8349         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
8351 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
8353         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
8354         definition.
8355         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
8356         _rtld_global struct.
8357         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
8358         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
8359         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8360         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
8361         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
8362         _dl_fpu_control_set): Remove unused externs.
8363         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
8364         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
8365         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
8366         related variables in _rtld_global struct.
8367         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
8368         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
8369         unused extern.
8371 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
8373         * sysdeps/generic/dl-procinfo.c: New file.
8375 2002-02-01  Andreas Schwab  <schwab@suse.de>
8377         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
8379 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
8381         * elf/rtld.c (_dl_start): Mark as internal_function.
8382         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
8383         in register.
8384         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
8385         General pretty printing.
8387 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
8389         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
8390         * elf/dl-reloc.c: Pretty printing.
8391         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
8392         procinfo-related variables in rtld_global struct.
8393         * elf/dl-support.c: Likewise.
8394         * elf/rtld.c: Likewise.
8395         * sysdeps/i386/i686/Makefile: Likewise.
8396         * sysdeps/i386/i686/hp-timing.c: Likewise.
8397         * sysdeps/i386/i686/hp-timing.h: Likewise.
8398         * sysdeps/ia64/Makefile: Likewise.
8399         * sysdeps/ia64/hp-timing.c: Likewise.
8400         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
8401         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
8402         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
8403         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
8404         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8405         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
8406         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
8407         * sysdeps/x86_64/Makefile: Likewise.
8409         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
8410         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
8411         _dl_debug_fd to rtld_global.
8412         * elf/Versions: Likewise.
8413         * elf/dl-close.c: Likewise.
8414         * elf/dl-iteratephdr.c: Likewise.
8415         * elf/dl-lookup.c: Likewise.
8416         * elf/dl-misc.c: Likewise.
8417         * elf/dl-open.c: Likewise.
8418         * elf/dl-support.c: Likewise.
8419         * elf/do-lookup.h: Likewise.
8420         * elf/rtld.c: Likewise.
8421         * sysdeps/generic/dl-cache.c: Likewise.
8422         * sysdeps/generic/dl-sysdep.c: Likewise.
8423         * sysdeps/ia64/Versions: Likewise.
8424         * sysdeps/unix/clock_gettime.c: Likewise.
8425         * sysdeps/unix/clock_settime.c: Likewise.
8426         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8427         * sysdeps/sparc/Versions: Removed.
8428         * sysdeps/i386/i686/Versions : Removed.
8429         * sysdeps/x86_64/Versions: Removed.
8430         * configure.in: Define HAVE_PROTECTED if .protected is available.
8431         * config.h.in: Add entry for HAVE_PROTECTED.
8433 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
8435         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
8436         code in struct _rtld_global.  Export this struct, remove all
8437         exports for the signal variables.
8438         * sysdeps/arm/dl-machine: Likewise.
8439         * sysdeps/generic/dl-origin: Likewise.
8440         * sysdeps/generic/dl-sysdep: Likewise.
8441         * sysdeps/generic/dl-cache: Likewise.
8442         * sysdeps/hppa/dl-fptr: Likewise.
8443         * sysdeps/hppa/dl-machine: Likewise.
8444         * sysdeps/cris/dl-machine: Likewise.
8445         * sysdeps/i386/dl-machine: Likewise.
8446         * sysdeps/ia64/dl-machine: Likewise.
8447         * sysdeps/m68k/dl-machine: Likewise.
8448         * sysdeps/mach/hurd/dl-sysdep: Likewise.
8449         * sysdeps/mips/mips64/dl-machine: Likewise.
8450         * sysdeps/mips/dl-machine: Likewise.
8451         * sysdeps/powerpc/elf/libc-start: Likewise.
8452         * sysdeps/powerpc/dl-machine: Likewise.
8453         * sysdeps/powerpc/dl-start: Likewise.
8454         * sysdeps/sparc/sparc32/dl-machine: Likewise.
8455         * sysdeps/sparc/sparc64/dl-machine: Likewise.
8456         * sysdeps/sh/dl-machine: Likewise.
8457         * sysdeps/s390/s390-32/dl-machine: Likewise.
8458         * sysdeps/s390/s390-64/dl-machine: Likewise.
8459         * sysdeps/unix/sysv/aix/libc-start: Likewise.
8460         * sysdeps/unix/sysv/aix/start-libc: Likewise.
8461         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
8462         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
8463         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
8464         * sysdeps/x86_64/dl-machine: Likewise.
8466 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
8468         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
8469         are too high.
8471 2002-01-31  Andreas Schwab  <schwab@suse.de>
8473         * sysdeps/posix/readv.c: Check for ssize_t overflow.
8475 2002-01-31  Andreas Schwab  <schwab@suse.de>
8477         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
8478         reference to _dl_pagesize.
8480 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
8482         * Versions.def [ld]: Add GLIBC_2.3.
8483         * elf/dl-addr.c: Move global variables for SHARED code in struct
8484         _rtld_global.  Export this struct, remove all exports for the
8485         signal variables.
8486         * elf/dl-close.c: Likewise.
8487         * elf/dl-conflict.c: Likewise.
8488         * elf/dl-debug.c: Likewise.
8489         * elf/dl-deps.c: Likewise.
8490         * elf/dl-dst.h: Likewise.
8491         * elf/dl-error.c: Likewise.
8492         * elf/dl-fini.c: Likewise.
8493         * elf/dl-init.c: Likewise.
8494         * elf/dl-iteratephdr.c: Likewise.
8495         * elf/dl-libc.c: Likewise.
8496         * elf/dl-load.c: Likewise.
8497         * elf/dl-lookup.c: Likewise.
8498         * elf/dl-minimal.c: Likewise.
8499         * elf/dl-object.c: Likewise.
8500         * elf/dl-open.c: Likewise.
8501         * elf/dl-profile.c: Likewise.
8502         * elf/dl-profstub.c: Likewise.
8503         * elf/dl-reloc.c: Likewise.
8504         * elf/dl-runtime.c: Likewise.
8505         * elf/dl-support.c: Likewise.
8506         * elf/dl-sym.c: Likewise.
8507         * elf/dl-version.c: Likewise.
8508         * elf/do-lookup.h: Likewise.
8509         * elf/do-rel.h: Likewise.
8510         * elf/dynamic-link.h: Likewise.
8511         * elf/rtld.c: Likewise.
8512         * sysdeps/generic/dl-cache.c: Likewise.
8513         * sysdeps/generic/dl-sysdep.c: Likewise.
8514         * sysdeps/generic/ldsodefs.h: Likewise.
8515         * sysdeps/generic/libc-start.c: Likewise.
8516         * sysdeps/i386/dl-machine.h: Likewise.
8517         * sysdeps/ia64/dl-fptr.c: Likewise.
8518         * sysdeps/ia64/dl-machine.h: Likewise.
8519         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
8520         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8521         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
8522         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
8523         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
8524         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
8525         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
8526         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
8528 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
8530         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
8531         to avoid warning
8532         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
8534         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
8535         SHARED version.
8536         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
8538         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
8540 2002-01-29  Ben Collins  <bcollins@debian.org>
8542         * string/bits/string2.h (__mempcpy): Protect size arg for
8543         addition when using __builtin_memcpy.
8545 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
8547         * stdlib/Makefile (tests): Add tst-qsort.
8548         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
8550         * manual/signal.texi (Process Signal Mask): Document that
8551         pthread_sigmask, not sigprocmask, must be used in MT programs.
8552         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
8554         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
8555         found.
8556         * misc/Makefile (tests): Add tst-hsearch.
8557         * misc/tst-hsearch.c: New file.
8559 2002-01-18  Wolfram Gloger  <wg@malloc.de>
8561         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
8562         * malloc/malloc.h: Likewise.
8563         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
8564         * malloc/arena.c: New file.
8565         * malloc/hooks.c: New file.
8566         * malloc/tst-mallocstate.c: New file.
8567         * malloc/Makefile: Add new testcase tst-mallocstate.
8568         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
8570 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
8572         * stdlib/msort.c: Remove last patch.  The optimization violates the
8573         same rule which qsort.c had problems with.
8575 2002-01-27  Paul Eggert  <eggert@twinsun.com>
8577         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
8578         to a pivot element that lies outside the array to be sorted, as
8579         ISO C99 requires that the comparison function be called only with
8580         addresses of array elements [PR libc/2880].
8582 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
8584         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
8585         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
8587         * timezone/asia: Update from tzdata2002b.
8588         * timezone/australasia: Likewise.
8589         * timezone/backward: Likewise.
8590         * timezone/europe: Likewise.
8591         * timezone/leapseconds: Likewise.
8592         * timezone/iso3166.tab: Likewise.
8593         * timezone/zone.tab: Likewise.
8595 2002-01-23  Richard Henderson  <rth@redhat.com>
8597         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
8599 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
8601         * string/strxfrm.c: Allocate one more byte for rulearr and clear
8602         this element [PR libc/2855].
8604         * string/strcoll.c: Handle zero-length arguments specially
8605         [PR libc/2856].
8607 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
8609         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
8610         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
8611         short lengths and constant src.
8612         (strcpy): Don't optimize for gcc 3.0+.
8613         (__stpcpy): For gcc 3.0+, don't use
8614         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
8615         for short string literal src.
8617 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
8619         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
8620         Set for arm, too.
8622 2001-01-22  Paul Eggert  <eggert@twinsun.com>
8624         * manual/llio.texi (Linked Channels, Cleaning Streams):
8625         Make it clearer that a just-opened input stream might need cleaning.
8627 2002-01-21  H.J. Lu  <hjl@gnu.org>
8629         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
8630         Don't use label at end of compound statement.
8632 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
8634         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
8635         Remove test for negative integer arg; sin_pi does it correctly.
8637 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
8639         * nscd/Makefile (distribute): Filter out xmalloc.c.
8641 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
8643         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
8644         Set offset if read end wasn't the buffer end.
8645         (_IO_file_seekoff_mmap): New function.
8646         (_IO_file_xsgetn_mmap): New function.
8647         (_IO_file_jumps_mmap): Use the two new functions.
8648         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
8649         != end buffer.
8650         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
8651         _IO_file_underflow_mmap.
8652         * libio/iofopen.c: Don't position file descriptor at end of file.
8653         * libio/tst-widetext.c: Improve error messages.
8654         * stdio-common/tst-rndseek.c: Likewise.
8656 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
8658         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
8659         end of enum for !_GNU_SOURCE.
8660         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
8661         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
8662         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
8663         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
8664         values unless _GNU_SOURCE.
8666         * iconvdata/tcvn5712-1.c: Minor cleanups.
8668 2002-01-18  Andreas Schwab  <schwab@suse.de>
8670         * sysdeps/unix/sysv/linux/configure.in
8671         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
8673 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8675         * stdlib/msort.c (msort_with_tmp): Replace implementation with
8676         more efficient "Towers of Hanoi" mergesort.
8677         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
8678         for generic, sizeof(int) and sizeof(long) variants respectively.
8680 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
8682         * manual/syslog.texi (openlog): Describe possible problems with
8683         first parameter.
8684         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
8686         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
8687         * nscd/connections.c (begin_drop_privileges): New function.
8688         (finish_drop_privileges): New function.
8689         (nscd_init): Call the new functions which also install all groups
8690         for the server user.
8691         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
8692         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
8694 2002-01-17  H.J. Lu  <hjl@gnu.org>
8696         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
8697         `const' from `got'.
8699 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8701         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
8702         instructions for pointer operations.
8703         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
8705 2002-01-17  Andreas Jaeger  <aj@suse.de>
8707         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
8708         __uint128_t build-in.
8710         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
8711         PowerPC, sync with 2.2 branch.
8713 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
8715         * posix/getconf.c: Update copyright year.
8716         * nss/getent.c: Likewise.
8717         * nscd/nscd_nischeck.c: Likewise.
8718         * iconv/iconvconfig.c: Likewise.
8719         * iconv/iconv_prog.c: Likewise.
8720         * elf/ldconfig.c: Likewise.
8721         * catgets/gencat.c: Likewise.
8722         * csu/version.c: Likewise.
8723         * elf/ldd.bash.in: Likewise.
8724         * elf/sprof.c (print_version): Likewise.
8725         * locale/programs/locale.c: Likewise.
8726         * locale/programs/localedef.c: Likewise.
8727         * nscd/nscd.c (print_version): Likewise.
8728         * debug/xtrace.sh: Likewise.
8729         * malloc/memusage.sh: Likewise.
8730         * malloc/mtrace.pl: Likewise.
8732 2002-01-16  Andreas Schwab  <schwab@suse.de>
8734         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
8735         reliably remove "-ia64" from rtld name.
8737 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
8739         * iconvdata/gb18030.c: Bug fixes and support for more characters.
8740         Patch by Yu Shao <yshao@redhat.com>.
8742 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8744         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
8745         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
8746         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
8748 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8750         * sysdeps/s390/fpu/libm-test-ulps: Update.
8752 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
8754         * elf/elf.h: Update x86 relocations.
8756 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
8758         * locale/programs/charmap.c (new_width): Check whether byte
8759         sequences for both ends of range have the same length.
8761 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
8763         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
8765 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
8767         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
8768         string literals.
8769         (__full_ieee754_sqrt): Add __attribute_used__.
8771 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
8773         * sysdeps/generic/group_member.c (__group_member): Also check
8774         groups[0] [PR libc/2781].
8776 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
8778         * Makefile (distribute): Add scripts/cpp.
8779         * elf/Makefile (distribute): Add reldep6mod[01234].c,
8780         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
8781         unwind-dw2-fde.h, and dwarf2.h.
8782         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
8783         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
8784         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
8785         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
8787 2002-01-07  Roland McGrath  <roland@frob.com>
8789         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
8790         volatile on type of ARGC so the compiler doesn't get clever.
8792 2002-01-07  Andreas Jaeger  <aj@suse.de>
8794         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
8795         * sysdeps/i386/bits/byteswap.h: Likewise.
8796         * sysdeps/ia64/bits/byteswap.h: Likewise.
8797         * sysdeps/m68k/bits/byteswap.h: Likewise.
8798         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
8799         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
8801 2002-01-02  Bruno Haible  <bruno@clisp.org>
8803         * intl/plural.y: Fix %expect count.
8805 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
8807         * elf/Makefile (routines, shared-only-routines): Add
8808         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
8809         * elf/elf.h (PT_GNU_EH_FRAME): Define.
8810         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
8811         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
8812         Optimize if .eh_frame section contains no FDEs.
8813         (__register_frame, __deregister_frame_info_bases,
8814         __deregister_frame): Likewise.
8815         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
8816         DW_CFA_restore handling.
8818 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
8820         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
8822         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
8823         for x < 0.25 and restore original range reduction method.
8824         (__ieee754_lgammal_r): Make sure signgam is set before returning.
8826 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
8828         * libio/fileops.c (_IO_file_underflow_mmap): New function.
8829         (_IO_file_close_mmap): New function.
8830         (_IO_file_jumps_mmap): New variable.
8831         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
8832         trying to convert rest of byte buffer.
8833         (_IO_wfile_underflow_mmap): New function.
8834         (_IO_wfile_jumps_mmap): New variable.
8835         * libio/iofopen.c (__fopen_maybe_mmap): New function.
8836         (__fopen_internal): New function.  Split out from _IO_new_fopen.
8837         (_IO_new_fopen): Call __fopen_internal.
8838         * libio/iofopen64.c: Just call __fopen_internal.
8839         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
8840         successfully.
8841         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
8842         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
8843         _IO_file_close_mmap.
8845         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
8846         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
8848         * stdio-common/Makefile (tests): Add tst-rndseek.
8849         * stdio-common/tst-rndseek.c: New file.
8851 2002-01-05  Roland McGrath  <roland@frob.com>
8853         * config.h.in (HAVE_MIG_RETCODE): New #undef.
8854         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
8855         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
8856         * sysdeps/mach/hurd/configure: Regenerated.
8858 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
8860         * elf/elf.h: Add more TLS definitions.
8862 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
8864         * include/features.h (__GLIBC_MINOR__): Bump to 3.
8866 2002-01-02  Roland McGrath  <roland@frob.com>
8868         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
8869         __sigisemptyset.  Don't use MASK uninitialized.
8871         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
8872         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
8873         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
8874         __sigdelset, __sigaddset, __sigorset.
8876         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
8877         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
8879         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
8880         _hurd_ports is null.
8882         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
8883         for old CMU and new OSF Mach interface flavors.
8884         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
8885         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
8887         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
8889         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
8890         Pass extra arguments to task_create for OSF variant.
8891         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
8893         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
8894         conditional on [HAVE_AUX_VECTOR].
8896         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
8897         mach_msg_timeout_t as type of final argument.
8899         * hurd/privports.c (__get_privileged_ports):
8900         Change host_priv_t to mach_port_t in argument type.
8901         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
8902         Update decls.
8904         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
8905         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
8906         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
8907         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
8908         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
8909         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
8911 2002-01-01  Roland McGrath  <roland@frob.com>
8913         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
8915 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
8917         * include/stdlib.h: Define inlines for the _l variants of the strto*
8918         functions.
8920 2002-01-01  Roland McGrath  <roland@frob.com>
8922         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
8924         * mach/Machrules (MIG): Set CPP as well as CC.
8926 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
8928         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
8929         locale to parse /proc/loadavg [PR libc/2760].
8931 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
8933         * elf/dl-conflict.c: Include sys/param.h.
8934         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
8935         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
8936         warning.
8937         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
8938         literals to avoid warnings.
8940 2001-12-31  Andreas Jaeger  <aj@suse.de>
8942         * configure.in: Don't check for gsed since we do not use it anywhere.
8944 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
8946         * io/fts.c: Update from BSD to fix memory leaks.
8948 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
8950         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
8951         * elf/chroot_canon.c: Likewise.
8952         * elf/dl-object.c: Likewise.
8953         * iconv/iconv_charmap.c: Likewise.
8954         * iconv/iconv_prog.c: Likewise.
8955         * libio/iogetdelim.c: Likewise.
8956         * locale/lc-time.c: Likewise.
8957         * stdlib/canonicalize.c: Likewise.
8958         * sunrpc/svc.c: Likewise.
8959         * sysdeps/generic/glob.c: Likewise.
8961 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8963         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
8964         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
8965         remove high order bit from the program counter.
8966         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
8968 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8970         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
8971         unnecessary code and add missing reloc types.
8972         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
8973         case for reloc type R_390_NONE.
8975 2001-12-28  Andreas Jaeger  <aj@suse.de>
8977         * io/bug-ftw3.c: Include string.h for prototypes.
8979         * crypt/md5test.c (main): Remove unused variable.
8981         * dlfcn/modstatic.c: Add prototype to avoid warning.
8983 2001-12-26  Roland McGrath  <roland@frob.com>
8985         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
8986         check only (SS->pending & MASK) for the signal to return.
8987         From Jeroen Dekkers <jeroen@dekkers.cx>.
8989 2001-12-22  Roland McGrath  <roland@frob.com>
8991         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
8992         Use preprocessor #if conditionals instead of `if' to avoid
8993         warnings about divide by zero in dead code.
8995         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
8996         _hurd_port_init, and __hurd_self_sigstate.
8998         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
9000 2001-12-21  Andreas Jaeger  <aj@suse.de>
9002         * elf/dblloadmod1.c: Add prototype to avoid warning.
9003         * elf/dblloadmod2.c: Likewise.
9004         * elf/dblloadmod3.c: Likewise.
9005         * elf/reldepmod5.c: Likewise.
9006         * elf/reldepmod6.c: Likewise.
9008         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
9009         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
9010         used on all architectures.
9012         * sunrpc/svc_tcp.c: Add noreturn attribute for
9013         svctcp_rendezvous_abort.
9014         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
9016         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
9017         to avoid warning.
9019 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
9021         * manual/llio.texi (aio_fsync): Fix a typo.
9022         Patch by Tammy Fox <tfox@redhat.com>.
9024 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
9026         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
9027         stack bias from child stack pointer before passing it to clone syscall.
9029 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
9031         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
9032         _SC_TZNAME_MAX.
9033         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
9034         Reported by Thorsten Kukuk <kukuk@suse.de>.
9036         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
9037         add some casts.
9039         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
9041 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
9043         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
9044         conforming: return EBADF if file descriptor is invalid and EINVAL
9045         if file descriptor is no valid tty.
9046         * login/tst-grantpt.c: New file.
9047         * login/Makefile (tests): Add tst-grantpt.
9049 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
9051         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
9052         different than implemented in last patch.
9053         * io/bug-ftw3.c: Adjust test for changed handling of
9054         inaccessibility of toplevel dir.
9056 2001-12-16  Roland McGrath  <roland@frob.com>
9058         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
9059         * grp/initgroups.c (internal_getgrouplist): Likewise.
9061         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
9062         `default:' to silence new GCC warning.
9063         Rewrite cast of lvalue to silence new GCC warning.
9065         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
9067         * sysdeps/mach/hurd/spawni.c: New file, by me with a
9068         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
9070 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
9072         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
9073         Patch by Stephen R. van den Berg.
9075         * crypt/md5.h: Define md5_uintptr.
9077 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
9079         * libio/tst_swprintf.c (main): Add test for string argument with
9080         zero precision.
9081         * stdio-common/Makefile (tests): Add tst-sprintf.
9082         * stdio-common/tst-sprintf.c: New file.
9084 2001-12-13  Andreas Schwab  <schwab@suse.de>
9086         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
9087         zero precision with wide character string format.
9089 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
9091         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
9092         but have a user supplied buffer, return the empty buffer, not NULL.
9094 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
9096         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
9097         Patch by Eric Sharkey <sharkey@netrics.com>.
9099         * crypt/md5test.c (main): Add test for multiple calls to
9100         __md5_process_bytes to itererate over input string.
9102 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
9104         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
9105         from __nis_findfastest.  Take timeout value from parameter.
9106         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
9107         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
9108         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
9110 2001-12-12  Andreas Jaeger  <aj@suse.de>
9112         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
9113         combreloc test so that it works in this case.
9115         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
9117 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
9119         * sysdeps/sh/Makefile: New file.
9120         * sysdeps/sh/_mcount.S: New file.
9121         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
9122         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
9124 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
9126         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
9127         limitation [PR libc/2564].
9129 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
9131         * elf/Makefile (dl-routines): Add conflict.
9132         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
9133         (ld.so): Add _begin local symbol.
9134         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
9135         Define.
9136         * elf/dl-deps.c (_dl_build_local_scope): New.
9137         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
9138         of all libraries.
9139         * elf/do-rel.h (VALIDX): Define.
9140         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
9141         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
9142         can be skipped.
9143         * elf/dl-conflict.c: New file.
9144         * elf/dl-lookup.c (_dl_debug_bindings): New.
9145         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
9146         non-NULL.
9147         (_dl_lookup_symbol_skip): Likewise.
9148         (_dl_lookup_versioned_symbol): Likewise.
9149         (_dl_lookup_versioned_symbol_skip): Likewise.
9150         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
9151         define to ElfW(Rel).
9152         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
9153         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
9154         ranges.
9155         Don't adjust address dynamic tags if l_addr is 0.
9156         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
9157         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
9158         (VALIDX, ADDRIDX): Define.
9159         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
9160         (dl_main): Print library list for LD_TRACE_PRELINKING.
9161         If prelinking information can be used, skip relocating libraries and
9162         call _dl_resolve_conflicts instead.
9163         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
9164         * elf/dl-load.c (_dl_map_object): Don't create fake libs
9165         if LD_TRACE_PRELINKING.
9166         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
9167         + DT_ADDRNUM.
9168         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
9169         (DL_DEBUG_PRELINK): Define.
9170         (_dl_resolve_conflicts): Add prototype.
9172         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
9173         .plt for prelinked libraries where prelinking info cannot be used.
9174         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
9175         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
9176         * sysdeps/arm/bits/link.h: New file.
9177         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
9178         content of .got[1].
9179         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
9180         (ELF_MACHINE_PLT_REL): Define.
9181         (elf_machine_rela, elf_machine_rela_relative): New.
9182         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
9183         of adjusting it if prelinked and prelinking cannot be used.
9184         * sysdeps/i386/bits/link.h: New file.
9185         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
9186         content of .got[1].
9187         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
9188         (ELF_MACHINE_PLT_REL): Define.
9189         (elf_machine_rela, elf_machine_rela_relative): New.
9190         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
9191         of adjusting it if prelinked and prelinking cannot be used.
9192         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
9193         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
9194         to find out map for R_PPC_JMP_SLOT relocs.
9195         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
9196         (OPCODE_BA): Define.
9197         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
9198         libraries where prelinking info cannot be used.
9199         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
9200         (elf_machine_fixup_plt): Call sparc_fixup_plt.
9201         (elf_machine_rela): Set value to 0 if relocating conflicts.
9202         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
9203         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
9204         (sparc64_fixup_plt): Fix a typo.
9205         (elf_machine_rela): Set value to 0 if relocating conflicts.
9206         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
9207         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
9208         libraries where prelinking info cannot be used.
9209         * sysdeps/sh/bits/link.h: New file.
9210         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
9211         content of .got[1].
9212         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
9213         of adjusting it if prelinked and prelinking cannot be used.
9214         * sysdeps/s390/s390-32/bits/link.h: New file.
9215         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
9216         Save original content of .got[1].
9217         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
9218         of adjusting it if prelinked and prelinking cannot be used.
9219         * sysdeps/s390/s390-64/bits/link.h: New file.
9220         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
9221         Save original content of .got[1].
9222         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
9223         of adjusting it if prelinked and prelinking cannot be used.
9224         * sysdeps/x86_64/bits/link.h: New file.
9225         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
9226         Save original content of .got[1].
9227         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
9228         of adjusting it if prelinked and prelinking cannot be used.
9230 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
9232         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
9233         where appropriate instead of numbers.  Little optimizations.
9235 2001-12-10  Roland McGrath  <roland@frob.com>
9237         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
9238         set it.
9240         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
9241         set to GLIBC_2.2.5, not GLIBC_2.2.4.
9243         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
9244         Fix conditionals so this is set by default for stdio and not for libio.
9245         * sysdeps/mach/hurd/configure: Regenerated.
9247 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
9249         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
9251 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
9253         * io/Makefile (tests): Add bug-ftw3.
9254         * io/bug-ftw3.c: New file.
9256         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
9257         matches and GLOB_NOCHECK is set.
9258         * posix/globtest.sh: Correct expected result for NOCHECK test.
9260         * po/ca.po: Update from translation team.
9262 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
9264         Implement transliteration of characters in strings of the locale
9265         definitions.
9266         * locale/programs/linereader.c: Adjust for additional parameter to
9267         lr_token.
9268         (get_string): If character <Uxxxx> is not found try to transliterate
9269         it.
9270         * locale/programs/ld-ctype.c: Adjust for additional parameter to
9271         lr_token.  Add const to charmap parameter of all functions.
9272         (find_translit, find_translit2): New functions.
9273         * locale/programs/charmap.c: Adjust for additional parameter to
9274         lr_token.
9275         * locale/programs/repertoire.c: Likewise.
9276         * locale/programs/linereader.h: Likewise.
9277         * locale/programs/ld-address.c: Likewise.  Add const to charmap
9278         parameter of all functions.
9279         * locale/programs/ld-collate.c: Likewise.
9280         * locale/programs/ld-identification.c: Likewise.
9281         * locale/programs/ld-measurement.c: Likewise.
9282         * locale/programs/ld-messages.c: Likewise.
9283         * locale/programs/ld-monetary.c: Likewise.
9284         * locale/programs/ld-name.c: Likewise.
9285         * locale/programs/ld-numeric.c: Likewise.
9286         * locale/programs/ld-paper.c: Likewise.
9287         * locale/programs/ld-paper.c: Likewise.
9288         * locale/programs/ld-telephone.c: Likewise.
9289         * locale/programs/ld-time.c: Likewise.
9290         * locale/programs/locfile.c: Likewise.
9291         * locale/programs/localedef.c: Likewise.
9292         * locale/programs/localedef.h: Likewise.
9293         * locale/programs/locfile.h: Likewise.  Add declaration for
9294         find_translit.
9295         * locale/programs/simple-hash.c: Add const to first parameter of
9296         find_entry, iterate_table, and lookup.
9297         * locale/programs/simple-hash.h: Likewise.
9298         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
9299         instead.
9300         * include/locale.h: Define __LC_LAST.
9301         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
9303 2001-12-07  Geoff Keating  <geoffk@redhat.com>
9305         * sysdeps/powerpc/Dist: Update for recent FP changes.
9306         * sysdeps/powerpc/fpu/Dist: Likewise.
9308 2001-12-07  Andreas Schwab  <schwab@suse.de>
9310         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
9312 2001-12-06  Geoff Keating  <geoffk@redhat.com>
9314         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
9315         save/restore functions here.
9316         (libm-support): Don't define these functions here.
9317         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
9318         functions here.
9319         * sysdeps/powerpc/fe_nomask.c: Move to...
9320         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
9321         * sysdeps/powerpc/fprrest.S: Move to...
9322         * sysdeps/powerpc/fpu/fprrest.S: ... here.
9323         * sysdeps/powerpc/fprsave.S: Move to...
9324         * sysdeps/powerpc/fpu/fprsave.S: ... here.
9326 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
9328         * sysdeps/unix/sysv/linux/opensock.c: New file.
9330 2001-12-06  Geoff Keating  <geoffk@redhat.com>
9332         * config.make.in (with-fp): Define from configure.
9333         * configure.in: Substitute with_fp.
9334         * configure: Regenerate.
9335         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
9336         specified, and don't change FPU environment.
9338 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
9340         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
9341         * assert/assert.c: Check result of __asprintf call and don't use
9342         string if it failed.
9343         * assert/assert-perr.c: Likewise.
9344         * inet/rcmd.c: Likewise.
9345         * locale/programs/localedef.c (main): Check result of
9346         construct_output_path and exit if it failed.
9347         (construct_output_path): Check result of asprintf and mkdir calls and
9348         fail if they failed.
9349         * posix/getopt.c: Check result of __asprintf calls and fail if
9350         they failed.
9351         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
9353 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
9355         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
9356         patch.
9357         * sysdeps/generic/strncase.c: Likewise.
9358         * string/tester.c: Add tests for strcasecmp and strncasecmp.
9360 2001-12-05  Geoff Keating  <geoffk@redhat.com>
9362         * scripts/cpp: Test the exit status from 'type', not 'awk'.
9364         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
9365         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
9366         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
9367         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
9368         * sysdeps/powerpc/fclrexcpt.c: Move to...
9369         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
9370         * sysdeps/powerpc/fpu_control.h: Move to...
9371         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
9373 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
9375         * iconvdata/ibm1129.h: Remove duplicate mappings.
9376         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
9377         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
9378         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9380         * timezone/zic.c: Fix handling of turnaround times.
9381         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
9383 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
9385         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
9386         overflow problem.
9388 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
9390         * posix/regex.c: For use outside glibc defined bounded pointer
9391         macros here.  Patch by Jim Meyering <jim@meyering.net>.
9393         * iconvdata/Makefile (modules): Add TCVN5712-1.
9394         * iconvdata/TESTS: Add TCVN5712-1.
9395         * iconvdata/gconv-modules: Likewise.
9396         * iconvdata/tcvn5712-1.c: New file.
9397         * iconvdata/testdata/TCVN-5712: New file.
9398         * iconvdata/testdata/TCVN-5712..UTF8: New file.
9400 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
9402         * iconvdata/cp1258.c: Optimize conversion from UCS4.
9404 2001-12-02  Roland McGrath  <roland@frob.com>
9406         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
9408         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
9409         Reported by Jeff Bailey <jbailey@nisa.net>.
9411         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
9412         Reported by Jeff Bailey <jbailey@nisa.net>.
9414         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
9415         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
9416         Reported by Jeff Bailey <jbailey@nisa.net>.
9418 2001-12-01  Roland McGrath  <roland@frob.com>
9420         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
9421         missing backslash in test arguments.
9422         * sysdeps/mach/hurd/configure: Regenerated.
9424 2001-11-26  Roland McGrath  <roland@frob.com>
9426         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
9427         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
9429 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
9431         * iconvdata/Makefile (modules): Add ARMSCII-8.
9432         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
9433         * iconvdata/armscii-8.c: New file.
9435 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
9437         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
9438         don't match, fix {{a,b},c} globbing, clean up.
9439         Patch by Flavio Veloso <flaviovs@magnux.com>.
9440         * posix/globtest.sh: Add new tests.
9442 2001-11-29  Andreas Jaeger  <aj@suse.de>
9444         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
9445         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
9447         * sysdeps/generic/abort.c: Include libioP.h for
9448         _IO_flush_all_lockp prototype.
9450 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
9452         * posix/regex.h: Define __restrict_arr correctly.
9454 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
9456         * iconvdata/ibm1163.c: New file.
9457         * iconvdata/ibm1163.h: New file.
9458         * iconvdata/ibm1164.c: New file.
9459         * iconvdata/ibm1164.h: New file.
9460         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
9461         * iconvdata/Makefile: Likewise.
9462         * iconvdata/testdata/IBM1163: New file.
9463         * iconvdata/testdata/IBM1163..UTF8: New file.
9464         * iconvdata/testdata/IBM1164: New file.
9465         * iconvdata/testdata/IBM1164..UTF8: New file.
9466         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9468         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
9469         * iconvdata/ibm1124.h: Likewise.
9470         * iconvdata/ibm1132.h: Likewise.
9471         * iconvdata/ibm1133.h: Likewise.
9472         * iconvdata/ibm1160.h: Likewise.
9473         * iconvdata/ibm1161.h: Likewise.
9474         * iconvdata/ibm1162.h: Likewise.
9475         * iconvdata/ibm856.h: Likewise.
9476         * iconvdata/ibm922.h: Likewise.
9477         * iconvdata/ibm930.h: Likewise.
9478         * iconvdata/ibm932.h: Likewise.
9479         * iconvdata/ibm933.h: Likewise.
9480         * iconvdata/ibm935.h: Likewise.
9481         * iconvdata/ibm937.h: Likewise.
9482         * iconvdata/ibm939.h: Likewise.
9483         * iconvdata/ibm943.h: Likewise.
9484         * iconvdata/ibm930.c: Pretty printing.
9485         * iconvdata/ibm937.c: Avoid access accross array boundary.
9487         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
9488         the current locale's codeset.
9489         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
9490         empty input string.
9491         * iconv/iconv_prog.c: Pass empty strings as default value for to-
9492         and from-charset.  Don't determine locale's charset here.
9494         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
9495         as the old _IO_flush_all but lock only if parameter is nonzero.
9496         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
9497         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
9498         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
9499         if libio is used [PR libc/2575].
9501 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
9503         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
9504         __signbitl): Only define for ISO C99.
9506 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
9508         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
9509         herrnop to NETDB_INTERNAL if we run out of buffer space.
9511 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
9513         * nss/nss_files/files-XXX.c (internal_getent): Correct input
9514         overflow test for platforms with signed char.
9515         Reported by Andrew Haley <aph@cambridge.redhat.com>.
9517 2001-11-28  Bruno Haible  <bruno@clisp.org>
9519         * locale/programs/simple-hash.c (lookup_2): Remove function.
9520         (insert_entry_2): Call lookup instead of lookup_2.
9522 2001-03-04  Bruno Haible  <bruno@clisp.org>
9524         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
9526 2001-10-31  Bruno Haible  <bruno@clisp.org>
9528         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
9530 2001-03-21  Bruno Haible  <bruno@clisp.org>
9532         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
9533         chokes on empty macro arguments.
9534         * intl/plural.y: Add #pragma for alloca on AIX 3.
9536 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
9538         * intl/dcigettext.c (guess_category_value): Only implement for
9539         glibc.  Otherwise rely on function _nl_locale_name which isn't
9540         present in the glibc sources.
9542 2001-09-24  Bruno Haible  <bruno@clisp.org>
9544         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
9545         transliteration when building on a glibc system but outside glibc.
9547 2001-09-22  Bruno Haible  <bruno@clisp.org>
9549         * intl/plural-eval.c: New file, extracted from dcigettext.c.
9550         * intl/dcigettext.c (plural_eval): Remove function, moved to
9551         intl/plural-eval.c.
9552         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
9553         Include plural-eval.c.
9555 2001-09-22  Bruno Haible  <bruno@clisp.org>
9557         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
9558         don't start with a digit; nplurals must be positive.
9560 2001-09-02  Bruno Haible  <bruno@clisp.org>
9562         * intl/plural-exp.h: New file, extracted from gettextP.h.
9563         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
9564         * intl/gettextP.h (struct expression, struct parse_args,
9565         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
9566         * intl/loadmsgcat.c: Include plural-exp.h.
9567         (PLURAL_PARSE): Move macro to plural-exp.h.
9568         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
9569         plural-exp.c.
9570         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
9571         EXTRACT_PLURAL_EXPRESSION.
9572         (_nl_unload_domain): Update.
9573         * intl/dcigettext.c: Include plural-exp.h.
9574         * intl/plural.y: Include plural-exp.h, not gettextP.h.
9575         (FREE_EXPRESSION): Move macro to plural-exp.h.
9576         * intl/Makefile (routines): Add plural-exp.
9577         (distribute): Add plural-exp.h.
9579 2001-07-28  Bruno Haible  <bruno@clisp.org>
9581         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
9582         isdigit, tolower argument to 'unsigned char'.
9583         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
9584         'unsigned char'.
9585         * intl/localealias.c (read_alias_file): Cast isspace argument to
9586         'unsigned char'.
9588 2001-10-20  Bruno Haible  <bruno@clisp.org>
9590         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
9591         anyway.)
9592         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
9593         with the variable 'index' in plural_lookup.
9594         * intl/l10nflist.c (strchr): Likewise.
9595         * intl/localealias.c (strchr): Likewise.
9597         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
9598         * intl/bindtextdom.c: Likewise.
9599         * intl/dcigettext.c: Likewise.
9600         * intl/dgettext.c: Likewise.
9601         * intl/dngettext.c: Likewise.
9602         * intl/explodename.c: Likewise.
9603         * intl/finddomain.c: Likewise.
9604         * intl/gettext.c: Likewise.
9605         * intl/l10nflist.c: Likewise.
9606         * intl/loadmsgcat.c: Likewise.
9607         * intl/localealias.c: Likewise.
9608         * intl/ngettext.c: Likewise.
9609         * intl/textdomain.c: Likewise.
9610         * intl/gettext.h: Assume <limits.h> exists.
9612 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
9614         * stdio-common/Makefile (tests): Add scanf11.
9615         * stdio-common/scanf11.c: New file.
9617 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
9619         * version.h (RELEASE): Define as development.
9620         (VERSION): Set to 2.2.90.
9622 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
9624         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
9625         * nis/nss_nis/nis-grp.c: Likewise.
9626         * nis/nss_nisplus/nisplus-grp.c: Likewise.
9628         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
9629         * nis/nss_nis/nis-pwd.c: Likewise.
9630         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
9632         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
9633         * nis/nss_nisplus/nisplus-parser.c: Likewise.
9634         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9636         * nscd/grpcache.c: Use strtoul instead of atol.
9637         * nscd/pwdcache.c: Likewise.
9638         * nss/getent.c: Likewise.
9640 2001-11-27  Paul Eggert  <eggert@twinsun.com>
9642         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
9643         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
9645 2001-11-19  Bruno Haible  <bruno@clisp.org>
9647         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
9648         90%.
9649         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
9650         improves the quality of the hash function, especially for short
9651         strings.
9653 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
9655         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
9656         are found call conv_error and not input_error [PR libc/2669].
9658         * math/bits/mathcalls.h: Mark ceil and floor as const.
9659         Reported by David Mosberger.
9661 2001-11-21  Jim Meyering  <meyering@lucent.com>
9663         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
9664         Define to be __-prefixed.
9665         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
9667 2001-11-26  Andreas Jaeger  <aj@suse.de>
9669         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
9670         avoid warning.
9672 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
9674         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
9675         initialization.
9677         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
9678         unused variables.  Fix threshold for returning 1.0.
9680         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
9681         argument.
9683         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
9684         remove unused variables.
9686         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
9688         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
9689         include local math header files.
9691 2001-11-22  Andreas Jaeger  <aj@suse.de>
9693         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
9694         avoid warning.
9696 2001-11-21  Andreas Jaeger  <aj@suse.de>
9698         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
9700         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
9701         sys/debugreg.h
9703 2001-11-15  Andreas Jaeger  <aj@suse.de>
9705         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
9706         compilers that support it.
9708         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
9709         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9710         * stdlib/stdlib.h: Likewise.
9712 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
9714         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
9715         statement with gotos.
9716         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
9718 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
9720         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
9722 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
9724         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
9726 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
9727             H.J. Lu  <hjl@gnu.org>
9729         * Versions.def (libc): Add GCC_3.0.
9730         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
9731         if gcc supports this flag.
9732         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
9733         (gcc3): Allow glibc to be compiled with gcc 3.x.
9734         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
9735         * config.make.in (static-libgcc, unwind-find-fde): Add.
9736         * Makerules (build-shlib-helper, build-module-helper): Use it.
9737         * scripts/versions.awk: Make sure GLIBC_ versions come first.
9738         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
9739         necessary.
9740         (_fini): Call __deregister_frame_info_bases if
9741         __register_frame_info_bases was used to register.
9742         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
9743         for GLIBC_2.0.
9744         (__register_frame_info_bases, __register_frame_info_table_bases,
9745         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
9746         * elf/Makefile (routines): Add unwind-dw2-fde.
9747         (shared-only-routines): Add unwind-dw2-fde.
9748         * sysdeps/alpha/gccframe.h: New file.
9749         * sysdeps/arm/gccframe.h: New file.
9750         * sysdeps/generic/framestate.c: New file.
9751         * sysdeps/generic/dwarf2.h: New file.
9752         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
9753         * sysdeps/generic/unwind-dw2-fde.c: New file.
9754         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
9755         * sysdeps/generic/unwind-dw2-fde.h: New file.
9756         * sysdeps/generic/unwind-dw2.c: New file.
9757         * sysdeps/generic/unwind-pe.h: New file.
9758         * sysdeps/generic/unwind.h: New file.
9759         * sysdeps/hppa/gccframe.h: New file.
9760         * sysdeps/i386/gccframe.h: New file.
9761         * sysdeps/m68k/gccframe.h: New file.
9762         * sysdeps/mips/gccframe.h: New file.
9763         * sysdeps/powerpc/gccframe.h: New file.
9764         * sysdeps/s390/gccframe.h: New file.
9765         * sysdeps/sh/gccframe.h: New file.
9766         * sysdeps/sparc/gccframe.h: New file.
9767         * sysdeps/vax/gccframe.h: New file.
9768         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
9769         Set on all architectures except ia64.
9770         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
9771         for i386.
9772         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
9773         __deregister_frame_info): Move to elf/Versions.
9774         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
9775         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
9776         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
9777         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
9778         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
9779         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
9780         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
9781         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
9782         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
9783         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
9784         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
9785         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
9786         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9787         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
9788         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
9789         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
9790         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
9791         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
9793 2001-11-15  Jeff Law  <law@redhat.com>
9795         * posix/regex.c (uintptr_t): Do not provide a definition if the
9796         system provided one.
9798 2001-11-13  Roland McGrath  <roland@frob.com>
9800         * stdio-common/tmpfile.c: Moved to ...
9801         * sysdeps/generic/tmpfile.c: ... here.
9802         * sysdeps/mach/hurd/tmpfile.c: New file.
9804         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
9805         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
9806         (fopenport): Define as weak alias.
9808         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
9809         * libio/libioP.h: ... to here.
9811 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
9813         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
9814         program header twice.  Construct list with the needed information.
9816 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
9818         * po/ca.po: Update from translation team.
9820         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
9821         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
9822         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
9823         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
9825 2001-11-10  Andreas Jaeger  <aj@suse.de>
9827         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
9828         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9829         Contributed by Stephen L Moshier <moshier@mediaone.net>.
9831 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
9833         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
9834         correctly.
9835         * elf/dl-load.c (is_dst): New function.
9836         (_dl_dst_count): Use is_dst to check for DST variable.
9837         (_dl_dst_substitute): Likewise.
9839 2001-11-09  Roland McGrath  <roland@frob.com>
9841         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
9842         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
9843         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
9844         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
9845         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
9846         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
9847         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
9848         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
9849         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
9850         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
9851         * sysdeps/mach/hurd/powerpc/Dist: New file.
9853         * hurd/privports.c (__get_privileged_ports):
9854         Only contact the proc server if necessary for this call.
9855         Suggested by Neal H Walfield <neal@cs.uml.edu>.
9856         Check error return for mach_port_mod_refs.
9858 2001-11-09  Andreas Schwab  <schwab@suse.de>
9860         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
9862 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
9864         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
9865         object is always the last in the list.
9866         (_dl_map_object_from_fd): Delete code to remove from object list
9867         when DF_1_NOOPEN is seen.  This is done in lose.
9869 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
9871         * elf/dl-object.c (_dl_new_object): Various small optimizations.
9873 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
9875         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
9876         HWCAP_CHECK macro code.
9878         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
9879         Now returns MAP_FAILED on error.
9880         * elf/rtld.c: Adjust caller.
9881         * sysdeps/generic/dl-cache.c: Likewise.
9882         * sysdeps/generic/ldsodefs.h: Adjust description.
9884         * elf/dl-version.c (match_symbol): Optimize error handling for size.
9885         (_dl_check_map_versions): Likewise.
9887 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
9889         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
9890         _dl_signal_error directly, always use lose.  Set fd to -1 after
9891         file is closed.
9892         (lose): Don't call close if fd == -1.
9894 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
9896         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
9897          Also fix typo @code {mbsinit} to @code{mbsinit}.
9899 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
9901         * elf/dl-profile.c: Replace state variable with simple flag named
9902         running.  Remove commented-out code.
9904         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
9905         (_dl_init_paths): Likewise.
9906         (_dl_map_object_from_fd): Likewise.
9907         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
9909 2001-11-06  Roland McGrath  <roland@frob.com>
9911         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
9912         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
9914         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
9915         sysdeps/powerpc/elf/sysdep.h.
9916         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
9918 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
9920         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
9921         speed.
9922         (process_envvars): Some more optimizations.
9923         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
9925         * elf/elf.h: Add dynamic tag definitions for prelinking.
9927         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
9928         Rewrite code to remove environment varables for SUID binaries.
9929         Small optimization in LD_PROFILE handling.
9930         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
9931         changes.
9932         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9934         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
9936         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
9937         strings.  Change type of second parameter.
9938         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
9939         for last change.
9941         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
9943 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
9945         * manual/string.texi: Fix typos.
9946         * manual/examples/argp-ex2.c: Likewise.
9948 2001-11-05  Roland McGrath  <roland@frob.com>
9950         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
9951         the more-specific unix/sysv/linux/powerpc file and breaks everything.
9952         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
9953         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
9954         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
9955         here, put under [__ELF__].
9957 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
9959         * manual/charset.texi: Extensive editing work.
9960         * manual/nss.texi: Likewise.
9961         Changes by Dennis Grace <dgrace@us.ibm.com>.
9963 2001-11-04  Roland McGrath  <roland@frob.com>
9965         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
9966         parameter to dir_mkfile.
9968 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
9970         * string/bits/string2.h (__strndup): If n is smaller than len, set
9971         len to n + 1.
9972         * string/tester.c (test_strndup): New function.
9973         (main): Call it.
9975 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
9977         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
9979         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
9980         * scripts/cpp: New file.
9982         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
9983         for rtld_search_dirs content.  Minor optimizations.
9985 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
9987         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
9988         avoiding unnecessary duplication.
9990 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
9992         * elf/dl-load.c (_dl_map_object): If library was found using
9993         LD_LIBRARY_PATH, don't try RUNPATH list.
9995 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9997         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
9998         Correct second argument of register_dump call.
9999         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
10000         Likewise.
10002 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
10004         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
10005         modules.
10006         * iconvdata/TESTS: Likewise.
10007         * iconvdata/gconv-modules: Likewise.
10008         * iconvdata/ibm1132.c: New file.
10009         * iconvdata/ibm1132.h: New file.
10010         * iconvdata/ibm1133.c: New file.
10011         * iconvdata/ibm1133.h: New file.
10012         * iconvdata/ibm1162.c: New file.
10013         * iconvdata/ibm1162.h: New file.
10014         * iconvdata/testdata/IBM1132: New file.
10015         * iconvdata/testdata/IBM1132..UTF8: New file.
10016         * iconvdata/testdata/IBM1133: New file.
10017         * iconvdata/testdata/IBM1133..UTF8: New file.
10018         * iconvdata/testdata/IBM1162: New file.
10019         * iconvdata/testdata/IBM1162..UTF8: New file.
10020         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
10022         * string/string.h: Fix typo in comment.
10023         * wcsmbs/wchar.h: Likewise.
10025 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
10027         * manual/getopt.texi (getopt_long, getopt_long_only): Include
10028         const in type of longopts parameter.
10030 2001-10-29  Andreas Jaeger  <aj@suse.de>
10032         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
10034 2001-10-29  Kevin Ryde  <user42@zip.com.au>
10036         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
10037         output, clarify `#' behaviour on 0.
10038         (Floating-Point Conversions): Clarify that %g only uses %e when
10039         the exponent would be greater than 1.
10041 2001-10-28  Roland McGrath  <roland@frob.com>
10043         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
10044         * sysdeps/mach/powerpc/machine-sp.h: New file.
10045         * sysdeps/mach/powerpc/sysdep.h: New file.
10046         * sysdeps/mach/powerpc/thread_state.h: New file.
10048         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
10049         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
10050         expect to need the same thing on every platform.
10052         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
10053         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
10055         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
10056         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
10057         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
10058         Move all these assembly-related definitions to ...
10059         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
10061         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
10062         by Peter Bruin <pjbruin@dds.nl>.
10064         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
10065         packing results for a `poll' call.
10067 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
10069         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
10070         correctly.
10071         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
10072         bracket expression.
10074         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
10075         nrules value.
10076         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
10078 2001-10-24  H.J. Lu  <hjl@gnu.org>
10080         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
10081         Use __BEGIN_DECLS/__END_DECLS around prototypes.
10082         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
10084 2001-10-21  Jim Meyering  <meyering@lucent.com>
10086         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
10087         this code would end up calling gettext even in packages built
10088         with --disable-nls.
10089         * posix/getopt.c (_): Likewise.
10090         * posix/regex.c (_): Likewise.
10092 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
10094         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
10095         lookup not ip6.int.
10096         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
10097         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
10099 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
10101         * misc/sys/cdefs.h (__attribute_used__): Define.
10102         * elf/rtld.c (_dl_start): Add __attribute_used__.
10103         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
10105 2001-10-25  Andreas Schwab  <schwab@suse.de>
10107         * stdlib/a64l.c: Expect least significant digit first.
10108         * stdlib/l64a.c: Produce least significant digit first.
10109         * stdlib/Makefile (tests): Add test-a64l.
10110         * stdlib/test-a64l.c: New file.
10111         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
10113 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
10115         * po/sk.po: Update from translation team.
10117 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
10119         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
10121 2001-10-18  Andreas Schwab  <schwab@suse.de>
10123         * math/libm-test.inc (print_ulps): Print ulp values rounded to
10124         next whole number.
10125         (print_function_ulps): Likewise.
10126         (print_complex_function_ulps): Likewise.
10127         (print_max_error): Likewise.
10128         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
10130 2001-10-16  Andreas Schwab  <schwab@suse.de>
10132         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
10133         implementation.
10135         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
10136         BSD_SETJMP or BSD__SETJMP is defined, resp.
10137         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
10138         a tail call to __sigsetjmp that would require extending the
10139         caller's frame.
10140         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
10141         * sysdeps/m68k/bsd-setjmp.S: Deleted.
10142         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
10143         Reported by Jes Sorensen <jes@trained-monkey.org>.
10145 2001-10-16  Andreas Jaeger  <aj@suse.de>
10147         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
10148         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
10149         close PR libc/2589.
10151 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
10153         * po/ca.po: New file.  Contributed by the translation team.
10155 2001-10-15  Ralf Baechle  <ralf@gnu.org>
10157         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
10158         a varargs prototype.  Remove dependency from kernel header files.
10160         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
10161         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
10163 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
10165         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
10166         to generate hexadecimal identifier.
10167         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
10169 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
10171         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
10173 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
10175         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
10176         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
10177         Contributed by Stephen L Moshier <moshier@mediaone.net>.
10179         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
10180         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10181         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
10182         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
10183         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
10184         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
10186         * timezone/africa: Update from tzdata2001d.
10187         * timezone/asia: Likewise.
10188         * timezone/australasia: Likewise.
10189         * timezone/backward: Likewise.
10190         * timezone/europe: Likewise.
10191         * timezone/leapseconds: Likewise.
10192         * timezone/northamerica: Likewise.
10193         * timezone/southamerica: Likewise.
10194         * timezone/zone.tab: Likewise.
10196 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10198         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
10199         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
10201 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
10203         * elf/elf.h (PT_TLS): New definition.
10205 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
10207         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
10208         bits/errno.h
10210 2001-10-07  Roland McGrath  <roland@frob.com>
10212         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
10214 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
10216         * elf/elf.h: Add more ELFOSABI_* constants.
10218 2001-10-04  Ben Collins  <bcollins@debian.org>
10220         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
10221         decleration of __need_wchar_t.
10223 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
10225         * string/bits/string2.h (__strsep_g): Add prototype.
10226         (__strsep): Use it.
10227         * string/Versions (__strsep): Remove.
10228         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
10230 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
10232         * manua/llio.texi: Clarify file references added by mmap.
10233         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
10235 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
10237         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
10238         Add sc_loadrs and sc_rbs_bas to match current kernel.
10240 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
10242         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
10244         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
10246 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
10248         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
10249         object has been bumped because of relocation dependency, avoid
10250         duplicates in l_scope.
10251         (show_scope): Fix typos.
10252         * elf/Makefile: Add rules to build and run reldep6.
10253         * elf/reldep6.c: New file.
10254         * elf/reldep6mod0.c: New file.
10255         * elf/reldep6mod1.c: New file.
10256         * elf/reldep6mod2.c: New file.
10257         * elf/reldep6mod3.c: New file.
10258         * elf/reldep6mod4.c: New file.
10260 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
10262         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
10263         sparc64_fixup_plt.
10264         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
10265         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
10266         for non-lazy binding. Fix .plt[32768+] handling.
10267         (elf_machine_plt_value): Don't add addend.
10268         (elf_machine_rela): Call sparc64_fixup_plt instead of
10269         elf_machine_fixup_plt.
10270         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
10271         dynamic linker at 0xfffff800XXXXXXXX.
10273         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
10275 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
10277         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
10279 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
10281         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
10282         declare __cmsg_data field if its size would be bigger than 0.
10283         (CMSG_DATA): Adjust accordingly.
10284         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
10285         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
10286         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
10287         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
10288         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10289         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
10290         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10292 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
10294         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
10295         * iconvdata/testdata/IBM1160: New file.
10296         * iconvdata/testdata/IBM1160..UTF8: New file.
10297         * iconvdata/testdata/IBM1161: New file.
10298         * iconvdata/testdata/IBM1161..UTF8: New file.
10299         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10301 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
10303         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
10304         UL_SETFSIZE computations better.
10306         * rt/Makefile: Remove use of filter for librt again.
10308         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
10309         UL_SETFSIZE computations better.
10311         * string/Versions: Export __strsep for GLIBC_2.2.5.
10312         * string/bits/string2.h: Define all __STRING_INLINE functions if
10313         _FORCE_INLINES is defined.
10314         Use int instead of char of parameter types.
10315         (__strsep): Don't use __strsep_g.  Don't define it.
10316         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
10317         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
10318         __strcpy_small.
10319         (__stpcpy_a_small): Renamed from __stpcpy_small.
10320         (__strcspn_c1): Don't define if _FORCE_INLINES.
10321         (__strspn_c1): Likewise.
10323 2001-09-22  Ben Collins  <bcollins@debian.org>
10325         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
10326         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
10327         * sysdeps/ia64/bits/sigaction.h: Likewise.
10328         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
10330 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
10332         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
10334 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
10336         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
10338 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
10340         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
10342 2001-09-20  H.J. Lu  <hjl@gnu.org>
10344         * include/dlfcn.h (__RTLD_SPROF): New definiton.
10345         * elf/dl-open.c (dl_open_worker): Return immediately after loading
10346         for __RTLD_SPROF.
10347         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
10348         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
10350 2001-09-20  H.J. Lu  <hjl@gnu.org>
10352         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
10353         don't add 1.
10355 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
10357         * nss/getent.c: Accept -s parameter to overwrite rules in
10358         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
10360         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
10361         with as many ".0" as necessary to form a complete address
10362         inet_network understands.
10364         * nss/getent.c: Various cleanups.  Use simpler and fewer function
10365         calls.
10367 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10369         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
10370         _JMPBUF_UNWINDS.
10371         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
10373 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
10375         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
10376         IBM1161.
10377         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
10378         * iconvdata/ibm1160.c: New file.
10379         * iconvdata/ibm1160.h: New file.
10380         * iconvdata/ibm1161.c: New file.
10381         * iconvdata/ibm1161.h: New file.
10382         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10384 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
10386         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
10387         difference between base address and first PT_LOAD's virtual address,
10388         not the base address.
10390 2001-09-11  Tom Rix  <trix@redhat.com>
10392         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
10393         ifdef for __getopt_clean_environment.
10394         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
10396 2001-09-22  Andreas Jaeger  <aj@suse.de>
10398         * elf/reldep4.c (main): Add proper prototype to fix warning.
10400         * elf/reldep5.c (main): Remove unused variable.
10402         * math/math_private.h: Add prototypes.
10404 2001-09-21  Andreas Jaeger  <aj@suse.de>
10406         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
10407         * sysdeps/x86_64/Dist: New file.
10408         * sysdeps/x86_64/soft-fp/Dist: New file.
10410         * sysdeps/gnu/Dist: Remove eval.c.
10412 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
10414         * malloc/memusage.c (realloc): Don't count already allocated
10415         memory in the sums.
10416         (me): Always use dlsym() to find the real implementations.
10418         * malloc/memusage.sh: Make -n option actually do something.
10420 2001-09-20  Andreas Jaeger  <aj@suse.de>
10422         * elf/elf.h (R_390_NUM): Correct value.
10424         * Versions.def: Add missing versions 2.2.3 for libthread_db and
10425         libpthread.
10427         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
10428         for x86-64, install x86-64 into */lib64.
10430         * shlib-versions: Add x86-64.
10432         * elf/elf.h: Add x86-64 relocations.
10434 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
10436         * po/fr.po: Update from translation team.
10438 2001-09-19  Andreas Jaeger  <aj@suse.de>
10440         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
10441         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
10442         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
10443         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
10444         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
10445         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
10446         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
10447         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
10448         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
10449         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
10450         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
10451         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
10452         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
10453         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
10454         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
10455         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
10456         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
10457         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
10458         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
10459         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
10460         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
10461         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
10462         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
10463         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
10464         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
10465         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
10466         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
10467         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
10468         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
10469         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
10470         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
10471         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
10472         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
10473         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
10474         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
10475         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
10476         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
10477         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
10478         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
10479         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
10480         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
10481         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
10482         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
10483         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
10484         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
10485         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
10486         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
10487         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
10488         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
10489         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
10490         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
10491         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
10492         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
10493         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
10494         * sysdeps/unix/x86_64/sysdep.S: New file.
10495         * sysdeps/unix/x86_64/sysdep.h: New file.
10496         * sysdeps/x86_64/Implies: New file.
10497         * sysdeps/x86_64/Makefile: New file.
10498         * sysdeps/x86_64/Versions: New file.
10499         * sysdeps/x86_64/__longjmp.S: New file.
10500         * sysdeps/x86_64/abort-instr.h: New file.
10501         * sysdeps/x86_64/atomicity.h: New file.
10502         * sysdeps/x86_64/bits/endian.h: New file.
10503         * sysdeps/x86_64/bits/setjmp.h: New file.
10504         * sysdeps/x86_64/bits/string.h: New file.
10505         * sysdeps/x86_64/bp-asm.h: New file.
10506         * sysdeps/x86_64/bsd-_setjmp.S: New file.
10507         * sysdeps/x86_64/bsd-setjmp.S: New file.
10508         * sysdeps/x86_64/dl-machine.h: New file.
10509         * sysdeps/x86_64/elf/initfini.c: New file.
10510         * sysdeps/x86_64/elf/start.S: New file.
10511         * sysdeps/x86_64/ffs.c: New file.
10512         * sysdeps/x86_64/ffsll.c: New file.
10513         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
10514         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
10515         * sysdeps/x86_64/fpu/e_acosl.c: New file.
10516         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
10517         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
10518         * sysdeps/x86_64/fpu/e_expl.c: New file.
10519         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
10520         * sysdeps/x86_64/fpu/e_log10l.S: New file.
10521         * sysdeps/x86_64/fpu/e_log2l.S: New file.
10522         * sysdeps/x86_64/fpu/e_logl.S: New file.
10523         * sysdeps/x86_64/fpu/e_powl.S: New file.
10524         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
10525         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
10526         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
10527         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
10528         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
10529         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
10530         * sysdeps/x86_64/fpu/fegetenv.c: New file.
10531         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
10532         * sysdeps/x86_64/fpu/fegetround.c: New file.
10533         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
10534         * sysdeps/x86_64/fpu/fesetenv.c: New file.
10535         * sysdeps/x86_64/fpu/fesetround.c: New file.
10536         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
10537         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
10538         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
10539         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
10540         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
10541         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
10542         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
10543         * sysdeps/x86_64/fpu/s_atanl.c: New file.
10544         * sysdeps/x86_64/fpu/s_cosl.S: New file.
10545         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
10546         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
10547         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
10548         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
10549         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
10550         * sysdeps/x86_64/fpu/s_logbl.c: New file.
10551         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
10552         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
10553         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
10554         * sysdeps/x86_64/fpu/s_rintl.c: New file.
10555         * sysdeps/x86_64/fpu/s_significandl.c: New file.
10556         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
10557         * sysdeps/x86_64/fpu/s_sinl.S: New file.
10558         * sysdeps/x86_64/fpu/s_tanl.S: New file.
10559         * sysdeps/x86_64/gmp-mparam.h: New file.
10560         * sysdeps/x86_64/hp-timing.c: New file.
10561         * sysdeps/x86_64/hp-timing.h: New file.
10562         * sysdeps/x86_64/htonl.S: New file.
10563         * sysdeps/x86_64/memusage.h: New file.
10564         * sysdeps/x86_64/setjmp.S: New file.
10565         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
10566         * sysdeps/x86_64/stackinfo.h: New file.
10567         * sysdeps/x86_64/sysdep.h: New file.
10568         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
10570         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
10571         L Moshier.
10573 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
10575         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
10576         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
10578 2001-09-18  Andreas Schwab  <schwab@suse.de>
10580         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
10581         list, now that l_scope is a pointer.
10583         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
10584         scope list.
10586 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
10588         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
10589         (elf_machine_rela_relative): Add a missing declaration.
10591 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
10593         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
10594         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
10595         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
10596         ldd-rewrite scripts.
10598 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
10600         * elf/ldd.bash.in: Update copyright message.
10602 2001-09-17  H.J. Lu  <hjl@gnu.org>
10604         * hurd/hurdmalloc.c (bcopy): Removed.
10605         (realloc): Replace bcopy with memcpy.
10606         * hurd/path-lookup.c (file_name_path_scan): Likewise.
10607         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
10608         * sunrpc/rpcinfo.c (pmapdump): Likewise.
10610         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
10611         (gethostbyaddr): Likewise.
10612         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
10614 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
10616         * sysdeps/gnu/eval.c: Removed.
10618 2001-09-18  Andreas Jaeger  <aj@suse.de>
10620         * sysdeps/i386/fpu/s_logbl.S: Move to ...
10621         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
10623         * sysdeps/i386/fpu/s_rintl.S: Move to ...
10624         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
10626         * sysdeps/i386/fpu/s_significandl.S: Move to ...
10627         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
10629 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
10631         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
10632         nrules value.
10634 2001-09-14  H.J. Lu  <hjl@gnu.org>
10636         * sysdeps/mips/fpu/libm-test-ulps: Updated.
10638 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
10640         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
10641         Patch by Florian La Roche <laroche@redhat.com>.
10643         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
10645         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
10646         ETHER_CRC_LEN.
10648 2001-09-14  Andreas Schwab  <schwab@suse.de>
10650         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
10651         Sumner <bls@sgi.com>.
10652         * posix/execlp.c: Likewise.
10654 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
10656         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
10657         is already found earlier in the search scope.
10659 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
10661         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
10662         filter.
10664 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
10666         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
10668 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
10670         * config.h.in: Enforce optimization to be used.
10671         * Makeconfig (preprocess-versions): Define ASSEMBLER.
10672         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
10673         * posix/Makefile (annexc-CFLAGS): Define to -O.
10674         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
10676 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
10678         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
10679         Patch by Stephan Kulow.
10681 2001-09-08  Ben Collins  <bcollins@debian.org>
10683         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
10684         usage of RESOLVE() (r_type, not reloc->r_type).
10686 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
10688         * elf/dl-object.c: Avoid allocating extra memory block for name.
10689         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
10690         allocated separately.
10691         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
10693 2001-09-08  H.J. Lu  <hjl@gnu.org>
10695         * po/zh_TW.po: Fix a typo.
10697 2001-09-07  Tom Rix  <trix@redhat.com>
10699         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
10701 2001-08-26  Tom Rix  <trix@redhat.com>
10703         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
10704         command line options.
10705         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
10706         * sysdeps/unix/sysv/aix/start.c: Removed.
10707         * sysdeps/unix/sysv/aix/start-libc.c: New file.
10708         * sysdeps/unix/sysv/aix/init-first.c: New file.
10709         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
10711 2001-09-08  Ben Collins  <bcollins@debian.org>
10713         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
10714         * sysdeps/generic/dl-machine.h: Likewise.
10715         * sysdeps/hppa/dl-fptr.c: Likewise.
10716         * sysdeps/ia64/dl-fptr.c: Likewise.
10717         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10718         * sysdeps/mips/dl-machine.h: Likewise.
10719         * sysdeps/mips/mips64/dl-machine.h: Likewise.
10720         * sysdeps/powerpc/dl-machine.c: Likewise.
10722 2001-09-07  Ben Collins  <bcollins@debian.org>
10724         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
10726         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
10728 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
10730         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
10731         dependencies if necessary.
10733         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
10734         loaded directly) determine length if l_initfini list by iterating
10735         over its elements.  Minor optimizations.
10736         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
10737         for dependency objects.
10738         If object was already loaded check whether any of the dependencies
10739         is already on the relocation dependency list.  If yes, remove the
10740         latter.  Minor optimizations.
10741         * elf/dl-lookup.c (add_dependency): Add check for self reference of
10742         maps here.  Search l_initfini list only if the object was loaded
10743         directly and not only as a dependency.
10744         (_dl_lookup_symbol): Add relocation dependency also if object
10745         is not in global scope.  Remove test for self-reference here.
10746         (_dl_lookup_versioned_symbol): Likewise.
10747         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
10748         element of first name record.
10749         * elf/loadtest.c: Add some more test to recognize early if an object
10750         wasn't unloaded.
10751         * elf/Makefile: Add rules to build and run reldep5.
10752         * elf/reldep5.c: New file.
10753         * elf/reldepmod5.c: New file.
10754         * elf/reldepmod6.c: New file.
10756         * elf/reldep2.c: Fix typo.
10758 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
10760         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
10761         elements.  Change l_scope to be a pointer only.
10762         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
10763         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
10764         here add searchlist of newly open file to the dependency's scope.
10765         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
10766         only searchlist from its scope.  Free own scope array if necessary.
10767         * elf/Makefile (tests): Add dblload and dblunload now.
10769 2001-09-06  Andreas Jaeger  <aj@suse.de>
10771         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
10772         Stephen L Moshier.
10774 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
10776         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
10777         they both fail.
10778         * elf/dblload.c: New file.
10779         * elf/dblloadmod1.c: New file.
10780         * elf/dblloadmod2.c: New file.
10781         * elf/dblloadmod3.c: New file.
10782         * elf/dblunload.c: New file.
10784 2001-09-04  Richard Henderson  <rth@redhat.com>
10786         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
10787         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
10789 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
10791         Correct very misleading message for error in failed runtime relocation.
10792         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
10793         place of the error.
10794         (_dl_signal_cerror): Likewise.
10795         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
10796         * elf/dl-close.c: Likewise.
10797         * elf/dl-deps.c: Likewise.
10798         * elf/dl-load.c: Likewise.
10799         * elf/dl-lookup.c: Likewise.
10800         * elf/dl-open.c: Likewise.
10801         * elf/dl-reloc.c: Likewise.
10802         * elf/dl-sym.c: Likewise.
10803         * elf/dl-version.c: Likewise.
10804         * sysdeps/generic/dl-sysdep.c: Likewise.
10806 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
10808         * iconv/strtab.c (strtabinit): Initialize null Strent.
10809         (newstring): Move len == 0 handling...
10810         (strtabadd): ...here.
10811         If len == 1, return null Strent.
10812         When inserting a suffix of an existing string, check if
10813         it is not equal to some suffix already recorded.
10814         Copy left and right members over if adding longer string.
10816 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
10818         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
10820         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
10821         (__syscall_gethostname): Add prototype.
10823 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
10825         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
10827 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
10829         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
10831 2001-08-27  Roland McGrath  <roland@frob.com>
10833         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
10834         short, copy that much into NAME anyway before returning error.
10836 2001-09-01  Richard Henderson  <rth@redhat.com>
10838         * sysdeps/alpha/elf/Dist: Remove file.
10839         * sysdeps/alpha/elf/Makefile: Remove file.
10840         * sysdeps/alpha/elf/crtbegin.S: Remove file.
10841         * sysdeps/alpha/elf/crtend.S: Remove file.
10842         * sysdeps/alpha/elf/initfini.c: New file.
10844 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
10846         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
10847         * iconv/tst-iconv3.c: Likewise.
10849 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
10851         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
10853 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
10855         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
10856         export it.
10857         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
10858         * iconv/iconv_prog.c (insert_cache): New function.
10859         (print_known_names): If cache is used call insert_cache to use the
10860         information from the cache [PR libc/2509].
10862 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
10864         * time/strptime.c (strptime_internal): Recognize 'l' format and
10865         handle it like 'I' for symmetry with strftime.
10867 2001-08-31  Richard Henderson  <rth@redhat.com>
10869         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
10870         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
10871         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
10872         (print_statistics): Make scalar unsigned long long.
10873         * sysdeps/alpha/hp-timing.h: New file.
10875 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
10877         * stdio-common/perror.c (perror): Save errno early, pass it
10878         down to perror_internal.
10879         (perror_internal): Add errnum argument.
10881 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
10883         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
10884         Don't add old memory content for R_ALPHA_REFQUAD.
10886 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
10888         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
10889         memory correctly.
10891         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
10892         instead of open, __close instead of close, __getpagesize instead
10893         of getpagesize.
10895         * string/argz-stringify.c (__argz_stringify): Use __strnlen
10896         instead of strnlen.
10897         * include/string.h (strndupa): Redefine here to use __strnlen
10898         instead of strnlen.
10899         * string/strndup.c (__strndup): Use __strnlen not strnlen.
10901         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
10902         connected).
10904 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
10906         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
10907         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
10908         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
10909         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
10910         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
10911         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
10912         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
10914 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
10916         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
10918 2001-08-30  Andreas Jaeger  <aj@suse.de>
10920         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
10921         contributed Stephen L Moshier.
10923 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
10925         * sunrpc/etc.rpc (sgi_fam): Add.
10927 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
10929         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
10931 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
10933         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
10934         first is from a previous call.
10935         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
10937 2001-08-29  Andreas Schwab  <schwab@suse.de>
10939         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
10941 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
10943         * config.make.in (INSTALL_SCRIPT): Define.
10944         * Makeconfig (INSTALL_SCRIPT): Define.
10945         * Makerules (do-install-script): New macro to install scripts using
10946         INSTALL_SCRIPT.
10947         (install-bin-script): New rule to install scripts with
10948         do-install-script.
10949         (install-bin-script-nosubdir): New rule.
10950         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
10951         (distinfo-vars): Add $(install-bin-script).
10952         * Rules (others): Likewise.
10953         * Makefile (glibcbug): Install with install-bin-script.
10954         * debug/Makefile (xtrace): Likewise.
10955         (catchsegv): Likewise.
10956         * elf/Makefile (ldd): Likewise.
10957         * malloc/Makefile (mtrace): Likewise.
10958         * timezone/Makefile (tzselect): Likewise.
10960 2001-08-29  H.J. Lu  <hjl@gnu.org>
10962         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
10963         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
10964         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
10966 2001-08-29  Andreas Schwab  <schwab@suse.de>
10968         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
10970 2001-08-28  H.J. Lu  <hjl@gnu.org>
10972         * Makeconfig (combreloc-LDFLAGS): New variable.
10973         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
10974         * config.make.in (have-z-combreloc): New variable.
10975         * configure.in: Substitute libc_cv_z_combreloc.
10977 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
10979         * po/sv.po: Update from translation team.
10980         * po/fr.po: Likewise.
10981         * po/da.po: Likewise.
10983 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
10985         * Makerules: Fix a typo: MD% -> MD5.
10987 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
10989         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
10990         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
10992 2001-08-28  Andreas Jaeger  <aj@suse.de>
10994         * manual/libc-texinfo.sh: Add entry about free manuals.
10996         * manual/contrib.texi (Contributors): Fix cross reference.
10998         * manual/libc.texinfo (Copying): Include freemanuals.
11000         * manual/Makefile (appendices): Add freemanuals.
11002         * manual/freemanuals.texi: New file.
11003         Patch by Brian Youmans <3diff@gnu.org>.
11005         * manual/libm-err-tab.pl: Pretty print more platforms, print a
11006         smaller table.
11008         * manual/math.texi (Errors in Math Functions): Fix grammar, start
11009         table on separate page.
11010         Patch by Brian Youmans <3diff@gnu.org>.
11012 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
11014         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
11015         the connection went down after we first used it try to connect
11016         again and resend the message before printing to the console.
11017         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
11019 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
11021         * string/tst-strlen.c (main): Test strnlen (, -1) too.
11022         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
11023         bit set.
11025 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
11027         * iconv/strtab.c (searchstring): Use correct length for comparison.
11028         (strtabadd): Account total size correct if new string has old string as
11029         substring.
11031 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
11033         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
11035 2001-08-27  Andreas Jaeger  <aj@suse.de>
11037         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
11039         * math/libm-test.inc (j0_test): Add extra tests.
11040         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
11041         not x, in Hankel approximation.
11042         Patches by Stephen L Moshier.
11044 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
11046         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
11047         link_map.
11049         * configure.in: Fix test for .rela.dyn section.
11051         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
11053 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
11055         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
11056         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
11057         Pass type_class to _dl_lookup_*.
11058         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
11059         Pass around just type_class instead of noexec, noplt pair.
11060         (_dl_lookup_versioned_symbol): Likewise.
11061         (_dl_lookup_symbol_skip): Pass around just type_class instead of
11062         noexec, noplt pair.
11063         (_dl_lookup_versioned_symbol_skip): Likewise.
11064         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
11065         * elf/do-lookup.h (do_lookup): Likewise.
11066         * include/link.h (struct link_map): Replace noexec and noplt fields
11067         in l_lookup_cache with type_class field.
11068         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
11069         ELF_RTYPE_CLASS_COPY): Define.
11070         Adjust prototypes for _dl_lookup_symbol and
11071         _dl_lookup_versioned_symbol.
11072         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
11073         elf_machine_lookup_noexec_p): Remove.
11074         (elf_machine_type_class): Define.
11075         * sysdeps/arm/dl-machine.h: Likewise.
11076         * sysdeps/hppa/dl-machine.h: Likewise.
11077         * sysdeps/cris/dl-machine.h: Likewise.
11078         * sysdeps/i386/dl-machine.h: Likewise.
11079         * sysdeps/ia64/dl-machine.h: Likewise.
11080         * sysdeps/m68k/dl-machine.h: Likewise.
11081         * sysdeps/mips/mips64/dl-machine.h: Likewise.
11082         * sysdeps/mips/dl-machine.h: Likewise.
11083         * sysdeps/powerpc/dl-machine.h: Likewise.
11084         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11085         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11086         * sysdeps/sh/dl-machine.h: Likewise.
11087         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11088         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11090 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
11092         * manual/message.texi (Advanced gettext functions): Change
11093         description of plural forms for Slovak.
11094         Reported by Marcel Telka <marcel@telka.sk>.
11096         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
11097         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
11099 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
11101         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
11102         typo.  Patch by Florian La Roche <laroche@redhat.com>.
11104 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
11106         * include/link.h (struct link_map): Add l_lookup_cache element.
11107         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
11108         (RESOLVE_MAP): Likewise.
11109         (_dl_relocate_object): Remove cache initialization.
11110         * elf/dl-lookup.c: Rip out cache handling code.
11111         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
11112         declarations.
11114         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
11115         remove some __builtin_expect.
11116         (_dl_lookup_versioned_symbol): Likewise.
11118         * config.h.in: Add HAVE_Z_COMBRELOC.
11119         * configure.in: Add test for -z combreloc.
11121         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
11122         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
11123         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
11124         case to almost no code.
11126 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
11128         * po/tr.po: Update from translation team.
11130 2001-08-24  Andreas Jaeger  <aj@suse.de>
11132         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
11133         make clean works.
11135 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
11137         * elf/rtld.c (print_statistics): Printf % after percent values.
11138         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
11140         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
11141         don't have to compute the hash value and initialize current_value.
11142         Move reference_name variable to where it is needed.
11143         (_dl_lookup_versioned_symbol): Likewise.
11145 2001-08-24  Roland McGrath  <roland@frob.com>
11147         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
11148         Just test that strerror returns non-null for a few errno codes.
11150 2001-08-23  Roland McGrath  <roland@frob.com>
11152         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
11153         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
11155         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
11157         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
11158         __mach_reply_port.
11160 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
11162         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
11163         returns NULL.
11165         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
11166         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
11167         doesn't do it.
11168         * elf/rtld.c: Include <sys/param.h>.
11169         * elf/dl-reloc.c: Likewise.
11171 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
11173         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
11174         empty to prevent junk from being generated.
11175         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
11177 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
11179         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
11180         records.  Rename endrel to relative, initialize it to r, and use it
11181         in elf_machine_rel_relative calls.  Point r after relative relocs.
11183 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
11185         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
11186         of R_386_NONE.
11188 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
11190         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
11191         necessary.  Undefine newly defined macros at the end.
11192         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
11193         Rename from elf_machine_rel_relative.
11194         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
11195         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
11196         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
11197         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
11198         Likewise.
11199         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
11200         Likewise.
11201         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
11202         Fix argument types.
11203         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
11204         Fix argument types.
11205         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
11206         Likewise.  Fix argument types.
11207         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
11208         Likewise.  Fix argument types.
11209         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
11210         Fix argument types.
11211         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
11212         ElfW(Rel) in argument.
11213         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
11214         function.
11216 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
11218         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
11220 2001-08-24  Andreas Jaeger  <aj@suse.de>
11222         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
11223         Stephen L Moshier <moshier@mediaone.net>.
11225 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
11227         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
11228         first if RELCOUNT is set.
11230         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
11231         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
11232         elf_machine_rel_relative.
11233         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
11234         Minor optimizations.
11235         * sysdeps/arm/dl-machine.h: Likewise.
11236         * sysdeps/cris/dl-machine.h: Likewise.
11237         * sysdeps/hppa/dl-machine.h: Likewise.
11238         * sysdeps/i386/dl-machine.h: Likewise.
11239         * sysdeps/ia64/dl-machine.h: Likewise.
11240         * sysdeps/m68k/dl-machine.h: Likewise.
11241         * sysdeps/mips/dl-machine.h: Likewise.
11242         * sysdeps/powerpc/dl-machine.h: Likewise.
11243         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11244         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11245         * sysdeps/sh/dl-machine.h: Likewise.
11246         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11247         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11249 2001-08-23  Roland McGrath  <roland@frob.com>
11251         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
11253         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
11254         sysdeps/mach version.  Implement counting ("recursive") mutexes
11255         on top of cthreads mutexes.
11256         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
11258         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
11259         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
11260         (__libc_cleanup_region_start, __libc_cleanup_region_end,
11261         __libc_clean_end): Define these to call the cleanup function after
11262         normal exit when they're supposed to.
11264         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
11265         Take new first arg DOIT, a boolean saying whether to really install
11266         any cleanup handler.
11267         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
11268         (__libc_cleanup_end): Likewise.
11269         * sysdeps/generic/bits/libc-lock.h: Same changes.
11270         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
11271         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
11272         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
11273         Likewise.
11274         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
11275         * sysdeps/generic/bits/stdio-lock.h
11276         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
11278 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
11280         * elf/ldconfig.c (search_dir): Remove stale symlinks.
11282 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
11284         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
11285         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
11286         lookups in cache.
11287         (_dl_lookup_versioned_symbol): Likewise.
11288         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
11289         relocation lookup.
11290         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
11291         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
11292         (lookup_cache, lookup_cache_versioned): Add declarations.
11294 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
11296         * stdlib/tst-random.c (main): Swap parameters in fail call.
11297         Patch by Pete Bevin <pete@petebevin.com>.
11299 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
11301         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
11303 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
11305         * malloc/obstack.c: Indent preprocessor directives.
11306         Patch by Jim Meyering <meyering@ascend.com>.
11308         * po/ja.po: Update from translation team.
11310 2001-08-23  Roland McGrath  <roland@frob.com>
11312         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
11314         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
11315         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
11317 2001-08-22  Roland McGrath  <roland@frob.com>
11319         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
11320         __libc_lock_define_recursive.
11321         * elf/dl-open.c: Don't declare it here any more.
11322         * elf/dl-close.c: Likewise.
11323         * elf/dl-lookup.c: Likewise.
11324         * elf/dl-iteratephdr.c: Likewise.
11325         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
11326         __libc_lock_unlock_recursive.
11327         * elf/dl-close.c (_dl_close): Likewise
11328         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
11329         * elf/dl-open.c (_dl_open): Likewise
11331         * sysdeps/generic/bits/libc-lock.h
11332         (__libc_lock_define_recursive): New macro.
11333         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
11334         (_IO_lock_lock): Use __libc_lock_lock_recursive.
11335         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
11337         * conform/conformtest.pl (checknamespace): Sort the output list.
11339         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
11340         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
11341         definitions conditional on [__USE_XOPEN].
11343         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
11344         these unconditionally, not only use [__USE_BSD], so as to match
11345         the sysdeps/unix/sysv/linux files.
11347 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
11349         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
11350         avoid warnings.
11352         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
11353         DL_LOOKUP_ADDRESS.
11355 2001-08-22  Roland McGrath  <roland@frob.com>
11357         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
11358         conditionalization of sa_handler/sa_sigaction member types to
11359         match the sysdeps/unix/sysv/linux file.
11361 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
11363         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
11364         symbol sizes a bit better.
11366         * sysdeps/ia64/strncpy.S: Complete rewrite.
11367         Contributed by Jakub Jelinek <jakub@redhat.com>.
11369         * string/stratcliff.c (main): Add strncpy test.
11371 2001-08-22  Roland McGrath  <roland@frob.com>
11373         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
11374         and don't declare unsetenv or _environ directly.
11375         (unsetenv): Return int, not void.  Use __environ instead of _environ.
11377 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
11379         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
11380         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
11381         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
11382         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
11383         test for cmsg struct size.
11385 2001-04-23  Paul Eggert  <eggert@twinsun.com>
11387         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
11388         Rename __argc to ___argc in prototypes to avoid compatibility
11389         problems with systems that reserve the identifier "__argc".
11390         Similarly for __argv.
11392 2001-08-21  Roland McGrath  <roland@frob.com>
11394         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
11396         * mach/Makefile (tests): Removed.
11397         * mach/hello.c: File removed.
11399 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
11401         * po/sv.po: Update from translation team.
11403         * stdio-common/vfscanf.c: Fix handling of %l[].
11404         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
11406         * libio/Makefile (tests): Add tst-sscanf.
11407         * libio/tst-sscanf.c: New file.
11409         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
11410         * malloc/mtrace.c (tr_where): dli_sname always points to a
11411         non-empty string if != NULL.
11412         Reported by Tim Janik <timj@gtk.org>.
11414 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
11416         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
11417         buf.  Free resources on failure.
11418         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
11419         (makefd_xprt): Likewise.
11420         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
11421         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
11422         * sunrpc/auth_unix.c (authunix_create): Likewise.
11424 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
11426         * string/strnlen.c: Remove.
11427         * sysdeps/generic/strnlen.c: New file.
11428         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
11430 2001-08-21  Roland McGrath  <roland@frob.com>
11432         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
11433         as a macro, not an extern inline function.
11435         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
11436         * Versions.def (libc): Add GLIBC_2.2.5 set.
11437         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
11438         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
11440 2001-08-20  Roland McGrath  <roland@frob.com>
11442         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
11443         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
11445 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
11447         * string/bits/string2.h: Remove strnlen optimization here.
11448         * sysdeps/i386/i486/bits/string.h: Add it here.
11450 2001-08-21  Wolfram Gloger  <wg@malloc.de>
11452         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
11454 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
11456         * po/gl.po: Update from translation team.
11458 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
11460         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
11461         * misc/err.c (convert_and_print): Likewise.
11463         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
11464         function calls.
11466 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11468         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
11469         change of the gregset_t type.
11470         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
11472 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
11474         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
11476 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
11478         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
11480         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
11482 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
11484         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
11485         before calling the cthreads initialization code.
11487 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
11489         * argp/argp-help.c: Fix two problems introduced in last change.
11491         * include/dirent.h: Include <dirstream.h> first.
11493 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
11495         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
11497         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
11498         * sunrpc/xdr_rec.c: Likewise.
11499         * sunrpc/xdr_mem.c: Likewise.
11500         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
11501         * sunrpc/rpc_cmsg.c: Likewise.
11502         * sunrpc/getrpcport.c (getrpcport): Likewise.
11503         * sunrpc/clnt_simp.c (callrpc): Likewise.
11504         * sunrpc/clnt_gen.c (clnt_create): Likewise.
11505         * string/envz.c: Likewise.
11507         * po/ko.po: Update from translation team.
11509         * argp/argp-help.c: Handle wide oriented stderr stream.
11511 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
11513         * sysdeps/generic/strtol.c: Little optimizations.  Add some
11514         __builtin_expect.
11516         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
11518         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
11519         * wcsmbs/wcwidth.c (wcwdith): Likewise.
11520         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
11522         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
11524         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
11526         * time/time.h (struct timespec): Use __time_t for tv_sec element.
11528         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
11529         wchar_t for function declarations and defintions.
11531         * misc/sys/select.h: Define __need_time_t before including <time.h>.
11532         Define suseconds_t if it hasn't happened yet.
11534         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
11536         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
11538         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
11539         <stddef.h>.
11541         * conform/data/stddef.h-data: Remove wint_t.
11543         * conform/conformtest.pl: Change namespace test to take #undef
11544         lines into account.
11546         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
11548         * conform/data/sys/socket.h-data: Add sockatmark.
11550 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
11552         * io/fts.c: Update from recent BSD source.
11554 2001-08-17  Roland McGrath  <roland@frob.com>
11556         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
11557         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
11558         Likewise.
11560 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
11562         * locale/duplocale.c (__duplocale): Also initialize the special
11563         __ctype_* elements.
11565         * conform/data/netdb.h-data: Adjust gai_strerror return type.
11567 2001-08-17  Andreas Jaeger  <aj@suse.de>
11569         * misc/getpass.c: Include wchar.h for prototypes.
11570         * malloc/obstack.c: Likewise.
11572 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
11574         * sunrpc/svc_simple.c (universal): Use __write instead of write.
11576         * wcsmbs/wcscoll.c: Also define __wcscoll.
11577         * include/wchar.h: Declare __wcscoll.
11579         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
11580         * libio/vwprintf.c: Likewise.
11581         * libio/wprintf.c: Likewise.
11583         * iconv/gconv_cache.c: Use __munmap instead of munmap.
11585 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
11587         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
11588         instead of mbrtowc.
11589         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
11590         wcslen, and __wcscoll instead of wcscoll.
11592         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
11594         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
11595         __getuid instead of getuid.
11597         * stdio-common/perror.c (perror): Use __close instead of close.
11598         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
11599         * libio/freopen.c (freopen): Likewise.
11600         * libio/freopen64.c (freopen64): Likewise.
11602         * libio/tst-ungetwc2.c (main): Define str const.
11604         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
11605         * libio/fwprintf.c: Also define __fwprintf.
11606         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
11607         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
11608         * assert/assert-perr.c: Likewise.
11609         * assert/assert.c: Likewise.
11610         * gmon/gmon.c: Likewise.
11611         * inet/rcmd.c: Likewise.
11612         * malloc/obstack.c: Likewise.
11613         * misc/err.c: Likewise.
11614         * misc/error.c: Likewise.
11615         * misc/getpass.c: Likewise.
11616         * posix/getopt.c: Likewise.
11617         * resolv/res_hconf.c: Likewise.
11618         * stdio-common/perror.c: Likewise.
11619         * stdio-common/psignal.c: Likewise.
11620         * stdlib/fmtmsg.c: Likewise.
11621         * sunrpc/auth_unix.c: Likewise.
11622         * sunrpc/clnt_perr.c: Likewise.
11623         * sunrpc/clnt_tcp.c: Likewise.
11624         * sunrpc/clnt_udp.c: Likewise.
11625         * sunrpc/clnt_unix.c: Likewise.
11626         * sunrpc/svc_simple.c: Likewise.
11627         * sunrpc/svc_tcp.c: Likewise.
11628         * sunrpc/svc_udp.c: Likewise.
11629         * sunrpc/svc_unix.c: Likewise.
11630         * sunrpc/xdr.c: Likewise.
11631         * sunrpc/xdr_array.c: Likewise.
11632         * sunrpc/xdr_rec.c: Likewise.
11633         * sunrpc/xdr_ref.c: Likewise.
11634         * sysdeps/generic/wordexp.c: Likewise.
11636         * po/it.po: Update from translation team.
11638         * misc/err.c: Handle wide oriented stderr stream.
11640 2001-08-14  Tom Rix  <trix@redhat.com>
11642         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
11643         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
11645 2001-08-13  Tom Rix  <trix@redhat.com>
11647         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
11648         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
11649         and __intptr_t.
11651 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11653         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
11654         Store the access registers to the ucontext structure.
11655         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
11656         Likewise.
11658         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
11659         Load the access registers from the ucontext structure.
11660         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
11661         Likewise.
11663         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
11664         offsets to the new ucontext layout.
11665         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
11667         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
11668         of the ucontext structure.
11669         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
11671 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
11673         * misc/error.c (error): Handle wide oriented stderr stream correctly.
11674         (error_at_line): Likewise.
11676         * stdio-common/perror.c (perror): Implement according to standard.
11677         The stream orientation must not be changed if the stream was not
11678         oriented before the call.
11679         * stdio-common/Makefile (tests): Add tst-perror.
11680         * stdio-common/tst-perror.c: New file.
11683 See ChangeLog.12 for earlier changes.