* NEWS: Added 2.2.6 text from 2.2 branch version.
[platform/upstream/glibc.git] / ChangeLog
1 2002-08-28  Roland McGrath  <roland@redhat.com>
2
3         * NEWS: Added 2.2.6 text from 2.2 branch version.
4
5         * time/strptime.c (strptime_internal): Remove spurious const.
6
7         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
8         _nl_select_era_entry): Moved to ...
9         * time/era.c: ... here, new file.
10         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
11         Add internal_function to definitions.  Take an additional argument
12         giving the `struct locale_data *' to use.
13         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
14         _nl_parse_alt_digit): Moved to ...
15         * time/alt_digit.c: ... here, new file.
16         * time/lc-time-cleanup.c: New file.
17         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
18         * locale/localeinfo.h (_nl_postload_time): Remove decl.
19         (_nl_cleanup_time): Declare it.
20         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
21         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
22         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
23         * time/strftime.c: Pass locale data to helper functions.
24         * time/strptime.c: Likewise.
25
26         * locale/localeinfo.h (struct locale_data): New member `private'
27         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
28         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
29         * locale/C-collate.c: Update initializer.
30         * locale/C-identification.c: Likewise.
31         * locale/C-measurement.c: Likewise.
32         * locale/C-telephone.c: Likewise.
33         * locale/C-address.c: Likewise.
34         * locale/C-name.c: Likewise.
35         * locale/C-paper.c: Likewise.
36         * locale/C-time.c: Likewise.
37         * locale/C-numeric.c: Likewise.
38         * locale/C-monetary.c: Likewise.
39         * locale/C-messages.c : Likewise.
40         * locale/C-ctype.c: Likewise.
41
42         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
43         Redefine this too.
44
45 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
46
47         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
48         (_rtld_global): Use it.
49
50         * sysdeps/gnu/Dist: Remove errlist-compat.c.
51         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
52         object directory.  Pass all Versions files to the awk script.
53         * sysdeps/gnu/errlist-compat.c: Removed.
54         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
55         first Versions file in the search path which has them.
56         Allow multiple errlist symbol versions to have the same count of
57         errors.
58         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
59         of "errlist-compat.c".
60         * sysdeps/gnu/errlist.c: Regenerated.
61         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
62         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
63         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
64         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
65         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
66         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
67         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
68         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
69         ECANCELLED if not defined by kernel headers.
70         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
71         already defined by kernel headers.
72         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
73         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
74         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
75         is a macro.
76         * Versions.def (GLIBC_2.3) [librt]: Add.
77
78         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
79
80 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
81
82         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
83         missing comma to .type directive.
84
85 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
86
87         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
88         unconditionally.
89         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
90         check.
91         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
92
93 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
94
95         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
96         check to close_and_out close.  Replace return NULL statements where
97         fd might be >= 0 with goto close_and_out.  Close the file descriptor
98         when it is no longer needed.
99
100 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
101
102         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
103         string constants.
104         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
105         * sysdeps/arm/dl-machine.h: Likewise.
106         * sysdeps/cris/dl-machine.h: Likewise.
107         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
108         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
109
110 2002-08-28  Roland McGrath  <roland@redhat.com>
111
112         * Makeconfig (default_cflags): Revert unintended change.
113
114 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
115
116         * version.h (VERSION): Bump to 2.2.91.
117
118         * configure.in: Disable TLS support by default for now.
119
120         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
121
122         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
123         warnings.
124
125         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
126
127         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
128         fprintf/fwprintf calls.
129
130 2002-08-28  Roland McGrath  <roland@redhat.com>
131
132         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
133         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
134
135         * locale/setlocale.c: Declare postload functions weak.
136
137         * elf/tst-tls1-static.c: New file.
138         * elf/tst-tls2-static.c: New file.
139         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
140
141         Make uselocale support static linking.
142         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
143         This file again just defines _nl_C_locobj.
144         (_nl_C_locobj): Use a categories.def iterator in the initializer.
145         * locale/global-locale.c: New file.  Define _nl_global_locale here,
146         using all weak references in the initializer.
147         * locale/Makefile (aux): Add global-locale.
148         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
149         these unconditional, along with the tsd decl.
150         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
151         Define it under these conditions.
152         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
153         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
154         `extern __thread struct locale_data *const *'.
155         [NL_CURRENT_INDIRECT]
156         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
157         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
158         the thread variable _nl_current_LC_FOO and also a special absolute
159         symbol _nl_current_LC_FOO_used.
160         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
161         Set each _nl_current_LC_FOO symbol to point into the new locale,
162         using weak references to test if _nl_current_LC_FOO_used was linked in.
163         * locale/setlocale.c [! SHARED]: Replace this conditional ...
164         [NL_CURRENT_INDIRECT]: ... with this one.
165         (_nl_current, _nl_C): Variables removed.
166         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
167         weak references to _nl_current_LC_FOO_used.
168         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
169         (free_category): New function, broken out of ...
170         (free_mem): ... here.  Call that.
171         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
172         instead of a loop.
173
174         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
175         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
176         it is already absolute.
177
178         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
179         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
180         [$(build-static) = yes] (tests-static): New variable.
181         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
182
183 2002-08-26  Christoph Hellwig  <hch@lst.de>
184
185         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
186         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
187
188 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
189
190         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
191
192         * sysdeps/s390/Dist: Add bits/link.h.
193
194         * sysdeps/sh/Dist: New file.
195
196         * sysdeps/ia64/Dist: Add ia64libgcc.S.
197
198         * sysdeps/wordsize-32/Dist: New file.
199
200         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
201         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
202         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
203
204         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
205         sys/personality.h.
206
207         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
208         sparc/dl-brk.S.
209
210         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
211
212         * sysdeps/unix/bsd/sun/Dist: New file.
213
214         * sysdeps/unix/bsd/osf/Dist: New file.
215
216         * sysdeps/unix/bsd/hp/Dist: New file.
217
218         * sysdeps/unix/arm/Dist: New file.
219
220         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
221
222         * sysdeps/mach/hurd/Dist: Add set-init.c.
223
224         * sysdeps/i386/Dist: Add bits/link.h.
225
226         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
227
228         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
229
230         * locale/Makefile (distribute): Add hashval.h.
231
232         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
233
234         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
235
236         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
237         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
238         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
239         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
240         implementations.
241         * libio/stdio.h: Likewise.
242         * locale/locale.h: Likewise.
243         * math/math.h: Likewise.
244         * math/bits/mathcalls.h: Likewise.
245         * setjmp/setjmp.h: Likewise.
246         * signal/signal.h: Likewise.
247         * stdlib/stdlib.h: Likewise.
248         * string/string.h: Likewise.
249         * time/time.h: Likewise.
250         * wcsmbs/wchar.h: Likewise.
251         * wctype/wctype.h: Likewise.
252
253 2002-08-28  Roland McGrath  <roland@redhat.com>
254
255         * locale/tst-C-locale.c (run_test): Remove __ from function names.
256
257 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
258             Roland McGrath <roland@redhat.com>
259
260         * locale/hashval.h (compute_hashval): Use prototype defn.
261         (hashval_t): New macro, defined to unsigned long int
262         if not already defined.
263         (compute_hashval): Return hashval_t instead of unsigned long int.
264         * locale/loadarchive.c (hashval_t): New macro.
265         * locale/programs/locarchive.c: Include hashval.h directly instead
266         of simple-hash.h.
267         (compute_hashval, hashval_t): Define these macros first.
268         (insert_name): Use archive_hashval instead of compute_hashval.
269         (add_locale, delete_locales_from_archive): Likewise.
270
271 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
272
273         * locale/programs/locarchive.c (insert_name): Suppress warnings about
274         hash collisions if be_quiet.
275
276 2002-08-27  Roland McGrath  <roland@redhat.com>
277
278         * locale/locale.h (__newlocale, __duplocale, __freelocale,
279         __uselocale): Don't declare these any more.
280         * include/locale.h (__uselocale): Declare here instead, using __typeof.
281
282         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
283         and treat it as an EOF return.
284         * sysdeps/unix/readdir_r.c: Likewise.
285
286         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
287         From Alexandre Oliva <aoliva@redhat.com>.
288         * sysdeps/gnu/errlist-compat.c: Regenerated.
289
290 2002-08-27  Brian Youmans  <3diff@gnu.org>
291
292         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
293         wording at request of copyright holder Stephen Moshier.
294         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
295         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
296         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
297         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
298         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
299         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
300         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
301         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
302         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
303         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
304         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
305         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
306         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
307         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
308
309 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
310
311         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
312         * ctype/ctype-extn.c (isblank_l): Add weak alias.
313         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
314         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
315         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
316         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
317         * wctype/iswctype_l.c (iswctype_l): Likewise.
318
319 2002-08-27  Roland McGrath  <roland@redhat.com>
320
321         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
322
323         * ctype/ctype.h (__exctype_l): Don't declare __ name.
324         * stdlib/stdlib.h: Don't declare __*_l names.
325         * include/stdlib.h: Declare them here instead.
326         * include/string.h: Don't declare __*_l names.
327         * string/string.h: Declare them here instead.
328         * time/time.h: Don't declare __*_l names.
329         * include/time.h: Declare them here instead.
330         * wcsmbs/wchar.h: Don't declare __*_l names.
331         * include/wchar.h: Declare them here instead.
332         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
333         Don't declare __*_l names.
334         * include/wctype.h: Declare them here instead.
335         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
336         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
337         * locale/langinfo.h: Don't declare __nl_langinfo_l.
338         * include/langinfo.h: Declare it here with __typeof.
339
340         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
341         instead, taking an extra __locale_t argument.
342         * time/Makefile (routines): Add strptime_l.
343         * time/time.h (__strptime_l, strptime_l): Declare them.
344         * time/strptime_l.c: New file.
345
346         * time/time.h (__strftime_l, strftime_l): Declare them.
347         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
348         * time/strftime_l.c: New file.
349         * time/wcsftime_l.c: New file.
350         * time/Makefile (routines): Add strftime_l, wcsftime_l.
351         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
352         strftime_l, wcsftime_l.
353         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
354         or __wcsftime_l instead, taking an extra __locale_t argument.
355
356         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
357         (libc: GLIBC_2.3): ... here.
358
359 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
360
361         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
362
363         * Makefile (distribute): Add LICENSES.
364
365         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
366         sys/debugreg.h.
367
368         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
369
370         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
371
372         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
373
374         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
375
376         * sysdeps/mach/hurd/alpha/Dist: New file.
377
378         * sysdeps/arm/Dist: Add bits/link.h.
379
380         * sunrpc/Makefile: Distribute thrsvc.
381
382         * stdio-common/Makefile: Remove more left-overs from old stdio.
383
384         * include/linewrap.h: Removed.
385
386         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
387
388         * intl/Makefile (distribute): Add plural-eval.c.
389
390 2002-08-27  Roland McGrath  <roland@redhat.com>
391
392         * manual/sysinfo.texi (Mount Information): Correct file name to macro
393         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
394         Say mtab is in either /var/run or /etc.
395
396 2002-08-26  Roland McGrath  <roland@redhat.com>
397
398         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
399         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
400
401         * sysdeps/gnu/Versions: New file.
402         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
403         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
404         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
405         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
406         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
407         and _sys_nerr_internal instead of anything else.  Make it include
408         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
409         Make it emit some asm magic if [EMIT_ERR_MAX].
410         * sysdeps/gnu/errlist.c: Regenerated.
411         * sysdeps/gnu/errlist-compat.awk: New file.
412         * sysdeps/gnu/errlist-compat.c: New file (generated).
413         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
414         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
415         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
416         (SYS_ERRLIST, SYS_NERR): Macros removed.
417         (sys_nerr, _sys_nerr): Remove these weak aliases.
418         * sysdeps/unix/sysv/linux/errlist.c: File removed.
419         * sysdeps/unix/sysv/linux/errlist.h: File removed.
420         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
421
422         * include/libc-symbols.h (declare_symbol): New macro.
423         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
424         * configure.in: New check to define it.
425         * configure: Regenerated.
426
427 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
428
429         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
430         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
431
432         * Make-dist: Remove traces of old stdio.
433         * Makeconfig: Likewise.
434
435         * locale/Makefile (localedef-aux): New variable.  Only md5
436         assigned to it.  These files are not ddistributed in this directory.
437
438         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
439         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
440         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
441
442         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
443
444         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
445         set h_errno to NO_RECOVERY [PR libc/4360].
446
447 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
448
449         * libio/Makefile (tests): Add bug-fopena+.
450         * libio/bug-fopena+.c: New file.
451         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
452         file for _IO_IS_APPENDING if file isn't opened for reading, too.
453
454         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
455
456         * locale/xlocale.c: Fix the last change.  The variable still has
457         to end in _data.
458         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
459         (__libc_tsd_set): Add _data prefix to variable name.
460
461 2002-08-26  Roland McGrath  <roland@redhat.com>
462
463         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
464         macro with inline function.
465         (sigset_get_old_mask): Likewise.
466         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
467         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
468         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
469         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
470         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
471         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
472         values.
473         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
474         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
475
476 2002-07-06  Bruno Haible  <bruno@clisp.org>
477
478         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
479         sigset_get_old_mask): Make it work with larger sigset_t.
480         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
481         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
482         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
483
484 2002-08-26  Roland McGrath  <roland@redhat.com>
485
486         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
487         * manual/filesys.texi (File Times): Document lutimes and futimes.
488         * misc/Makefile (routines): Add them.
489         * misc/Versions (libc: GLIBC_2.3): Likewise.
490         * sysdeps/generic/lutimes.c: New file.
491         * sysdeps/generic/futimes.c: New file.
492         * sysdeps/mach/hurd/lutimes.c: New file.
493         * sysdeps/mach/hurd/futimes.c: New file.
494
495         * manual/filesys.texi (File Times): Add explicit note about null
496         pointer argument to utimes.
497
498 2002-08-26  Roland McGrath  <roland@frob.com>
499
500         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
501         (__ifreq): Add a cast.  Remove an unused variable.
502
503         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
504         _HURD_THREADVAR_LOCALE.
505
506 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
507
508         * posix/regexec.c (re_search_stub): Return correct match length
509         if start != 0.
510         * posix/bug-regex10.c: New test.
511         * posix/Makefile (tests): Add bug-regex10.
512
513 2002-08-26  Brian Youmans  <3diff@gnu.org>
514
515         * COPYING.LIB: Replaced with fresh copy from
516         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
517         suggested copying permission notice now says version 2.1 instead
518         of version 2.
519
520         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
521         from Library GPL.
522         * crypt/crypt_util.c: Likewise.
523         * crypt/ufc.c: Likewise.
524         * elf/dl-conflict.c: Likewise.
525         * elf/dl-iteratephdr.c: Likewise.
526         * iconv/iconvconfig.h: Likewise.
527         * malloc/arena.c: Likewise.
528         * malloc/hooks.c: Likewise.
529         * malloc/malloc.c: Likewise.
530         * posix/glob/Makefile.ami: Likewise.
531         * posix/glob/Makefile.in: Likewise.
532         * stdlib/gmp-impl.h: Likewise.
533         * stdlib/gmp.h: Likewise.
534         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
535         * sysdeps/generic/strnlen.c: Likewise.
536         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
537         * sysdeps/mach/hurd/recvmsg.c: Likewise.
538         * sysdeps/mach/hurd/sendmsg.c: Likewise.
539         * sysdeps/mach/hurd/spawni.c: Likewise.
540         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
541         * sysdeps/mach/powerpc/sysdep.h: Likewise.
542         * sysdeps/mach/powerpc/thread_state.h: Likewise.
543         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
544         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
545         * sysdeps/x86_64/gmp-mparam.h: Likewise.
546
547         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
548         Lesser GPL copying permission notice from 2 to 2.1.
549         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
550         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
551         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
552         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
553         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
554         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
555         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
556         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
557         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
558         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
559         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
560         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
561         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
562         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
563         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
564         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
565         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
566         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
567         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
568         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
569         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
570         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
571         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
572         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
573         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
574         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
575         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
576         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
577         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
578         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
579         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
580         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
581         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
582         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
583         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
584         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
585         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
586         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
587         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
588         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
589         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
590         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
591         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
592         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
593         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
594         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
595         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
596         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
597         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
598         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
599         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
600         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
601         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
602         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
603         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
604
605         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
606         Moshier and Lesser GPL copying permission notice, per license from
607         Moshier.
608         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
609         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
610         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
611         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
612         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
613         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
614         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
615         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
616         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
617         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
618         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
619         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
620         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
621         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
622
623         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
624         notice, per license from copyright holder Stephen Moshier.
625         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
626         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
627         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
628         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
629         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
630         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
631         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
632         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
633         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
634
635 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
636
637         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
638         (shared-only-routines): Likewise.
639
640 2002-08-26  Roland McGrath  <roland@redhat.com>
641
642         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
643         name of "", store a null pointer instead.
644
645         * configure.in (elf): Set to yes for freebsd*, netbsd*.
646         * configure: Regenerated.
647
648         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
649         Initialize this instead of __libc_tsd_LOCALE_data.
650
651         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
652         ptsname_r to EINVAL.
653
654         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
655
656         * rt/Makefile: Revert last change, it was inappropriate to presume aio
657         implementations depend on pthreads.
658         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
659         * rt/tst-aio64.c (do_test): Likewise.
660         * rt/tst-aio2.c (do_test): Likewise.
661         * rt/tst-aio3.c (do_test): Likewise.
662         * rt/tst-aio4.c (do_test): Likewise.
663         * rt/tst-aio5.c (do_test): Likewise.
664         * rt/tst-aio6.c (do_test): Likewise.
665         * rt/tst-aio7.c (do_test): Likewise.
666
667         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
668         void so as to avoid compiler warnings.
669
670         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
671         _IO_wide_data_FD, which is never used here.
672
673         * libio/iofread.c
674         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
675         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
676         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
677
678         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
679         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
680
681         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
682         (closelog): Likewise.
683
684 2002-07-06  Bruno Haible  <bruno@clisp.org>
685
686         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
687
688         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
689         * sysdeps/unix/alpha/pipe.S: ... here.
690         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
691
692         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
693
694         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
695         * sysdeps/unix/i386/fork.S: Likewise.
696         * sysdeps/unix/i386/pipe.S: Likewise.
697         * sysdeps/unix/i386/wait.S: Likewise.
698
699         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
700         * sysdeps/unix/arm/fork.S: Likewise.
701
702         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
703         arguments.
704         (DO_CALL): Swap argument order.
705         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
706         arguments.
707         (DO_CALL): Swap argument order.
708         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
709         arguments.
710         (DO_CALL): Swap argument order.
711         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
712         arguments.
713         (DO_CALL): Swap argument order.
714         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
715         arguments.
716         (DO_CALL): Swap argument order.
717         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
718         arguments.
719         (DO_CALL): Swap argument order.
720         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
721         arguments.
722         (DO_CALL): Swap argument order.
723
724         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
725         (L): Define right for ELF.
726         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
727         Now defined in sysdeps/i386/sysdep.h.
728
729         * sysdeps/posix/readv.c: Ansify function definition.
730         * sysdeps/posix/writev.c: Likewise.
731
732         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
733         have the same size. Avoid direct cast from size_t to off_t.
734
735         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
736         nul byte in entry[n].ut_user.
737         (simulate_logout): Likewise.
738
739         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
740         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
741         existence of corresponding members of 'struct utmp'.
742         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
743         !_HAVE_UT_TYPE.
744
745         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
746         allocate a buffer of at least BUFSIZ bytes, not just of
747         sizeof (struct dirent).
748
749         * sysdeps/generic/glob.c: Include <limits.h>.
750         (NAME_MAX): Define a fallback.
751         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
752         stack.
753         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
754         (main): Allocate enough room for a 'struct dirent64' on the stack.
755         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
756         'struct dirent'.
757
758         * sysdeps/unix/sysv/linux/init-first.c: Don't include
759         kernel-features.h.
760
761         * inet/htontest.c: Include <sys/types.h>.
762
763         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
764
765         * include/sys/sysctl.h: Comment fix.
766
767         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
768         _dl_load_lock.
769         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
770
771         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
772
773         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
774         (__getpeername): New alias.
775         (__getsockname): New alias.
776         (__socket): New alias.
777
778         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
779
780         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
781         (__fcntl_internal): New alias.
782         (__profil): New alias.
783
784 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
785
786         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
787         entry was for getaddr* lookup or not.  Add only matching cache
788         entry.  Change all callers [PR libc/4317].
789
790         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
791         finding the read position [PR libc/4265].
792         * libio/Makefile (tests): Add bug-rewind2.
793         * libio/bug-rewind2.c: New file.
794
795         * libio/bug-rewind.c: Fix creation of temp file.
796
797 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
798
799         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
800         neither SUCCESS nor TRYAGAIN [PR libc/4259].
801         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
802         to ENOENT if no entry is found.
803         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
804         failure.
805         * nis/nss_compat/compat-initgroups.c: Likewise.
806         * nis/nss_compat/compat-pwd.c: Likewise.
807         * nis/nss_compat/compat-spwd.c: Likewise.
808         * nis/nss_nis/nis-alias.c: Likewise.
809         * nis/nss_nis/nis-ethers.c: Likewise.
810         * nis/nss_nis/nis-grp.c: Likewise.
811         * nis/nss_nis/nis-hosts.c: Likewise.
812         * nis/nss_nis/nis-initgroups.c: Likewise.
813         * nis/nss_nis/nis-netgrp.c: Likewise.
814         * nis/nss_nis/nis-network.c: Likewise.
815         * nis/nss_nis/nis-proto.c: Likewise.
816         * nis/nss_nis/nis-publickey.c: Likewise.
817         * nis/nss_nis/nis-pwd.c: Likewise.
818         * nis/nss_nis/nis-rpc.c: Likewise.
819         * nis/nss_nis/nis-service.c: Likewise.
820         * nis/nss_nis/nis-spwd.c: Likewise.
821         * resolv/nss_dns/dns-host.c: Likewise.
822         * resolv/nss_dns/dns-network.c: Likewise.
823         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
824         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
825         * nis/nss_nisplus/nisplus-grp.c: Likewise.
826         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
827         * nis/nss_nisplus/nisplus-network.c: Likewise.
828         * nis/nss_nisplus/nisplus-proto.c: Likewise.
829         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
830         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
831         * nis/nss_nisplus/nisplus-service.c: Likewise.
832         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
833         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
834         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
835         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
836         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
837
838         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
839         declaring __restore and __restore_rt as hidden (if possible).
840
841 2002-08-25  Roland McGrath  <roland@redhat.com>
842
843         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
844
845         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
846         (getutent_r_file, internal_getut_r): Updated all callers.
847         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
848
849 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
850
851         * locale/programs/locale.c: Don't print aliases for non-existing
852         locales for 'locale -a'.
853         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
854
855 2002-07-19  H.J. Lu  <hjl@gnu.org>
856
857         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
858
859 2002-07-16  H.J. Lu  <hjl@gnu.org>
860
861         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
862         sys/personality.h.
863         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
864
865 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
866
867         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
868         not moved ahead of the fputs call.
869         * elf/tst-tlsmod2.c (in_dso): Likewise.
870         * elf/tst-tlsmod3.c (in_dso2): Likewise.
871         * elf/tst-tlsmod4.c (in_dso): Likewise.
872
873 2002-08-25  Andreas Schwab  <schwab@suse.de>
874
875         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
876
877 2002-08-25  Roland McGrath  <roland@redhat.com>
878
879         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
880         resetting handler, to avoid the possibility of a spurious SIGALRM
881         delivered to the user's handler.
882         Reported by Amit D. Chaudhary <amitc@brocade.com>,
883
884         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
885         set -fkeep-inline-functions, which is not needed for the current file.
886
887         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
888         (_dl_setup_hash): Add attribute_hidden.
889         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
890         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
891         (_dl_new_object, _dl_map_object_deps): Likewise.
892         (_dl_map_object_deps_internal): Remove decl.
893         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
894
895         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
896         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
897         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
898         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
899         instead relying on the compiler to produce only GOTOFF variable refs.
900
901 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
902
903         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
904
905         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
906         inline to avoid defining it in every file which includes this header.
907
908         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
909         defining DONT_USE_BOOTSTRAP_MAP.
910
911         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
912         * libio/tst-mmap-setvbuf.c (main): Likewise.
913         * libio/tst-widetext.c (main): Likewise.
914
915         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
916         message.
917         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
918         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
919
920         * sysdeps/i386/elf/configure.in: Unconditionally define
921         PI_STATIC_AND_HIDDEN.
922         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
923         PI_STATIC_AND_HIDDEN is defined as well.
924         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
925
926 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
927
928         * sysdeps/ia64/bzero.S: Define __bzero as well.
929
930         * locale/programs/charmap.c (charmap_new_char): Don't use
931         ULONG_MAX as maximum UCS4 value.
932
933         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
934
935         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
936
937         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
938         * malloc/malloc.c (mALLINFo): Likewise.
939
940         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
941
942         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
943         examining result of _IO_do_flush call.
944
945         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
946         Use prec not spec when sizing buffers.
947
948         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
949         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
950         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
951         * stdio-common/vfscanf.c (inchar): Likewise.
952         * misc/efgcvt_r.c (fcvt_r): Likewise.
953         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
954         * elf/readlib.c (process_file): Likewise.
955         * elf/sprof.c (load_profdata): Likewise.
956         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
957         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
958         * locale/programs/charmap.c (charmap_read): Likewise.
959         * libio/fileops.c: Likewise.
960         * libio/fmemopen.c: Likewise.
961         * stdlib/strtod.c: Likewise.
962         * elf/dl-load.c: Likewise.
963         * iconv/iconvconfig.c: Likewise.
964         * iconv/iconv_prog.c (process_block): Likewise.
965         * elf/rtld.c (dl_main): Likewise.
966
967         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
968         macro to calm down the compiler.
969
970         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
971
972         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
973
974         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
975         placement of errno definition.
976         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
977         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
978         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
979         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
980         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
981
982         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
983         from 1024 to 65536, to avoid buffer overrun.
984
985 2002-08-16  Paul Eggert  <eggert@twinsun.com>
986
987         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
988         from 1024 to 65536, to avoid buffer overrun.
989         * resolv/res_query.c (MAXPACKET): Likewise.
990
991 2002-08-24  Andreas Jaeger  <aj@suse.de>
992
993         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
994
995 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
996
997         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
998         two52 locally.
999         (log2): Likewise.
1000         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
1001         Patch by Simon Gee <simong@agile.tv>.
1002
1003         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
1004         Prefer reading /proc/stat since it is more uniform across
1005         architectures.
1006
1007         * manual/texinfo.tex: Update to latest official version.
1008
1009         * sysvipc/sys/shm.h: Remove SHMLBA definition.
1010         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
1011         * sysdeps/gnu/bits/shm.h: Likewise.
1012         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
1013         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
1014         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
1015         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
1016         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
1017         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
1018         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
1019         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
1020         since this is what the kernel says.
1021
1022         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
1023         since ssize_t is needed as well.  Replace const with __const.
1024
1025 2002-08-23  Roland McGrath  <roland@redhat.com>
1026
1027         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
1028         __malloc_hook, __realloc_hook, __memalign_hook,
1029         __after_morecore_hook): Variable definitions moved to ...
1030         * malloc/malloc.c: ... here, so as to be before all references.
1031
1032         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
1033         global variable reference in an unused asm parameter, to ensure the
1034         compiler has set up the GOT register before we use it.
1035
1036         * malloc/hooks.c: Move variable definitions ahead of uses.
1037         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
1038         initializers that make reference to variables they define.
1039
1040 2002-08-23  Andreas Jaeger  <aj@suse.de>
1041
1042         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
1043         alloca, free, qsort.
1044
1045         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
1046
1047         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
1048         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1049
1050         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
1051         <hch@lst.de>.
1052         * sysdeps/generic/fgetxattr.c: New file.
1053         * sysdeps/generic/flistxattr.c: New file.
1054         * sysdeps/generic/fremovexattr.c: New file.
1055         * sysdeps/generic/fsetxattr.c: New file.
1056         * sysdeps/generic/getxattr.c: New file.
1057         * sysdeps/generic/listxattr.c: New file.
1058         * sysdeps/generic/lgetxattr.c: New file.
1059         * sysdeps/generic/llistxattr.c: New file.
1060         * sysdeps/generic/lremovexattr.c: New file.
1061         * sysdeps/generic/lsetxattr.c: New file.
1062         * sysdeps/generic/removexattr.c: New file.
1063         * sysdeps/generic/setxattr.c: New file.
1064         * misc/Makefile (headers): Add sys/xattr.h.
1065         (routines): Add *xattr calls.
1066         * misc/Versions: Add *xattr calls with version 2.3.
1067         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
1068         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1069         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1070         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1071         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
1072         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
1073         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1074         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1075
1076 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
1077
1078         * sysdeps/powerpc/elf/libc-start.c
1079         (__cache_line_size): Declare.
1080         (__aux_init_cache): New.
1081         (__libc_start_main): Change type of `auxvec' parameter to
1082         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
1083         __aux_init_cache.
1084         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
1085         (__cache_line_size): Declare.
1086         (__aux_init_cache): New.
1087         (DL_PLATFORM_INIT): Define.
1088         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
1089         value to select the correct stride for dcbz.
1090
1091 2002-08-22  Andreas Jaeger  <aj@suse.de>
1092
1093         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
1094         shmat.
1095
1096 2002-08-22  Roland McGrath  <roland@redhat.com>
1097
1098         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
1099         position indicated by locrectab against file bounds before rounding to
1100         page size.  In mapping loop, always set TO before breaking out of
1101         contiguous range coalescing loop.
1102
1103         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
1104         (or MAP_COPY if available) instead of MAP_SHARED.
1105
1106         * scripts/firstversions.awk: When encountering a version newer than
1107         the specified earliest version, be sure to emit the specified earliest
1108         version first if any renaming of an older version to that has been.
1109
1110 2002-08-21  Roland McGrath  <roland@redhat.com>
1111
1112         * configure.in: Make GCC version check require 3.[2-9]* and no others.
1113         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
1114         (Configuring and compiling): Don't mention older GCC versions any more.
1115         * INSTALL: Regenerated.
1116
1117         * manual/install.texi (Configuring and compiling, Installation,
1118         Running make install, Linux): Linux -> GNU/Linux where appropriate.
1119
1120         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
1121         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
1122         and with noinline otherwise.  Remove hack alloca use to prevent
1123         inlining, we can ask for it explicitly nowadays.
1124
1125         * dlfcn/bug-dlsym1.c: New file.
1126         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
1127         * dlfcn/Makefile (distribute): Add them.
1128         (tests): Add bug-dlsym1 here.
1129         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
1130         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
1131         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
1132
1133 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
1134
1135         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
1136         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
1137         before relocation.
1138         (_dl_start): Don't use local bootstrap_map variable if
1139         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
1140         pass bootstrap_map to _dl_start_final in this case either.  Don't
1141         pass start_time to _dl_start_final ever.
1142         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
1143
1144         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
1145         This cripples the scope lists necessary to search for symbols in
1146         dependencies which are not in the global scope.
1147
1148         * include/setjmp.h (__libc_longjmp): Add declaration.
1149
1150 2002-08-21  Andreas Jaeger  <aj@suse.de>
1151
1152         * sysdeps/x86_64/_mcount.S: Fix assembler.
1153
1154         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
1155         with biarch support.
1156
1157 2002-08-21  Andreas Jaeger  <aj@suse.de>
1158
1159         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
1160
1161         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
1162
1163         * sysdeps/x86_64/machine-gmon.h: New file.
1164         * sysdeps/x86_64/_mcount.S: New file.
1165
1166 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
1167
1168         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
1169         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
1170         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
1171         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
1172         to TL_INIT_TP.  Otherwise pass 1.
1173         * include/link.h (struct link_map): Add l_tls_tp_initialized.
1174         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
1175
1176 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
1177
1178         * locale/programs/localedef.c (add_to_readlist): Error about
1179         circular dependencies only if the locale in question hasn't
1180         been finished.
1181         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
1182         CTYPE_LOCALE to load_locale.
1183         * locale/programs/locfile.c (locfile_read): Don't include
1184         unneeded but available locales in locale_mask.
1185
1186         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
1187         print any messages about enlarging archive.
1188
1189 2002-08-20  Brian Youmans  <3diff@gnu.org>
1190
1191         * manual/contrib.texi: Removed licenses, added acknowledgements
1192         for contributions by Intel, IBM, Craig Metz.
1193         * LICENSES: New file, contains the text of all non-FSF licenses in the
1194         distribution that require putting the notice in the accompanying
1195         documentation.
1196         * README.template, README: Mention LICENSES.
1197
1198         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
1199         new one modelled on the modern BSD license, per recent letter
1200         of permission from CMU.
1201         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
1202
1203         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
1204         from IBM to FSF, per the recent Software Letter.  Changed the
1205         distribution terms from GPL to LGPL.
1206
1207         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
1208         copying permission notice (Lesser GPL), per recent IBM Software Letter.
1209         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1210         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1211         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1212         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1213         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1214         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1215         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1216         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1217
1218         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
1219         from IBM to FSF, per the recent Software Letter.  Corrected the
1220         text of the copying permission notice to say Lesser GPL instead
1221         of GPL in warranty disclaimer paragraph.
1222         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1223         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1224         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1225         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1226         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1227         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1228         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1229         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1230         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1231         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1232         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1233         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1234         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1235         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1236         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1237         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1238         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1239         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1240         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1241         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1242         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1243
1244         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
1245         permission notice to say Lesser GPL instead of GPL in warranty
1246         disclaimer paragraph.
1247         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1248         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1249         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1250         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1251         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1252         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1253         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1254         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1255         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1256         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1257         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1258         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1259         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1260         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1261         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1262         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1263         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1264         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1265         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1266         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1267         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1268         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1269         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
1270
1271 2002-08-20  Roland McGrath  <roland@redhat.com>
1272
1273         Fix ABI compatibility with libc compiled with old tools on powerpc.
1274         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1275         and Jack Howarth <howarth@bromo.med.uc.edu>.
1276         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
1277         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
1278         pass -DHAVE_DOT_HIDDEN for these files.
1279         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
1280         __floatdisf.
1281         * sysdeps/powerpc/divdi3.c: New file.
1282         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
1283         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
1284
1285 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
1286
1287         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
1288         partially overlapping mappings.  Remove unneeded (char *) casts.
1289         Never allow duplication of ranges in mapped areas.
1290
1291 2002-08-20  Roland McGrath  <roland@redhat.com>
1292
1293         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
1294         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
1295
1296 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
1297
1298         * include/unistd.h: Don't hide _exit.
1299
1300         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
1301         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
1302         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
1303         argument 1 to TLS_INIT_TP.
1304         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
1305
1306         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
1307
1308         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
1309         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
1310         memory allocation to...
1311         (allocate_dtv): ...here.  New function.
1312         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
1313         call allocate_dtv instead of _dl_allocate_tls_storage.
1314         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
1315         (_dl_get_tls_static_info): New function.
1316         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
1317         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
1318
1319 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
1320
1321         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
1322         immediately if result == NULL.
1323
1324 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
1325
1326         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
1327
1328 2002-08-18  Roland McGrath  <roland@frob.com>
1329
1330         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
1331         instead of __file_name_split.
1332         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
1333
1334         * sysdeps/mach/hurd/dl-sysdep.c
1335         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
1336         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
1337
1338 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
1339
1340         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
1341         in change before last: MAX -> MIN.
1342
1343 2002-08-15  Roland McGrath  <roland@redhat.com>
1344
1345         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
1346         if seek would go past it.
1347         (mmap_remap_check): If file position is at or past EOF after check,
1348         leave read pointers at EOF and don't seek.
1349
1350         * libio/tst-mmap-offend.c: New file.
1351         * libio/Makefile (tests): Add it.
1352
1353         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
1354         the name as passed, rather than the name in the archive dictionary.
1355
1356 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
1357
1358         * csu/Makefile: Define elide-routines.os not static-only-routines.
1359
1360         * include/sched.h (__clone): Add varargs at the end.
1361
1362         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
1363         case.
1364         (TLS_INIT_HELPER): If defined, use it.
1365         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
1366
1367 2002-08-15  Roland McGrath  <roland@redhat.com>
1368
1369         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
1370         on L->l_prev; it can happen under rtld --verify too.
1371
1372         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
1373         header separately, just map an initial window of 2MB from the file
1374         and remap if that is not large enough to cover the whole header.
1375
1376 2002-08-15  Andreas Jaeger  <aj@suse.de>
1377
1378         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
1379         version 2.3.
1380         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1381         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1382         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
1383         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
1384         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1385         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1386         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1387         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1388         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
1389         Patch by Andreas Gruenbacher <agruen@suse.de>.
1390
1391         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
1392
1393 2002-08-14  Roland McGrath  <roland@redhat.com>
1394
1395         * locale/locarchive.h (struct locale_category_data): Give this name to
1396         the type of locale_data_t's elements.
1397         * locale/programs/locarchive.c (cmpcategorysize): New static function.
1398         (add_locale): Use that to sort the categories by size and put all
1399         those that fit into two pages into the LC_ALL block, instead of
1400         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
1401         (show_archive_content): Detect categories inside LC_ALL block
1402         directly, instead of hard-coding.
1403         (oldlocrecentcmp): Compare just on file locations used.
1404
1405 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
1406
1407         * locale/programs/locarchive.c (struct oldlocrecent): New.
1408         (oldlocrecentcmp): New.
1409         (enlarge_archive): Re-add locales in the order they were added
1410         to the archive.
1411         (add_locale): Put all the small locale files together, if the small
1412         locale file block would occupy less pages if page size aligned, align
1413         it.
1414         (show_archive_content): Adjust for locale archives optimized for speed.
1415
1416 2002-08-14  Roland McGrath  <roland@frob.com>
1417
1418         * configure.in: Use "MISSING" as not-found value for MIG.
1419         * sysdeps/mach/configure.in: Fatal if mig not found.
1420         * configure, sysdeps/mach/configure: Regenerated.
1421
1422 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
1423
1424         * locale/loadarchive.c (archfname): Add missing slash.
1425
1426         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
1427         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
1428
1429 2002-08-12  Roland McGrath  <roland@redhat.com>
1430
1431         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
1432         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
1433         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
1434         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
1435         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
1436         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
1437         * sysdeps/generic/waitpid.c: Likewise.
1438
1439         * include/net/if.h: New file.  Use libc_hidden_proto
1440         for if_nametoindex and if_indextoname.
1441         * sysdeps/generic/if_index.c: Add libc_hidden_def.
1442         * sysdeps/mach/hurd/if_index.c: Likewise.
1443         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
1444
1445         * include/grp.h (setgroups): Add libc_hidden_proto.
1446         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
1447         * sysdeps/mach/hurd/setgroups.c: Likewise.
1448         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
1449         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1450
1451 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
1452
1453         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
1454         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
1455         * sysdeps/generic/setegid.c (setegid): Likewise.
1456         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
1457         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
1458         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
1459         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
1460         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
1461         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
1462         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
1463         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
1464         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
1465         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
1466         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
1467         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
1468         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
1469
1470         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
1471         __lxstat_internal, __lxstat64_internal): Remove.
1472         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
1473         Add hidden_proto.
1474         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
1475         Remove INTDEF where present, remove #undef at the beginning.
1476         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
1477         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
1478         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
1479         * sysdeps/generic/xstat.c (__xstat): Likewise.
1480         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
1481         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
1482         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
1483         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
1484         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
1485         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
1486         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
1487         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
1488         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
1489         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
1490         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
1491         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
1492         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
1493         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
1494         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
1495         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
1496         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
1497         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
1498         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
1499         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
1500         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
1501         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
1502         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
1503         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
1504         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
1505         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
1506         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
1507         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
1508         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
1509         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
1510         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
1511         * sysdeps/unix/xstat.c (__xstat): Likewise.
1512
1513         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
1514         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
1515         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
1516         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
1517         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
1518         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
1519         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
1520
1521         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
1522         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
1523         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
1524         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
1525         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
1526         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
1527         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
1528         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
1529         Likewise.
1530         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
1531         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
1532         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
1533         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
1534         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
1535         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
1536         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
1537         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
1538
1539         * include/string.h (strcoll): Add libc_hidden_proto.
1540         * string/strcoll.c (strcoll): Add libc_hidden_def.
1541
1542         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
1543
1544 2002-08-11  Philip Blundell  <philb@gnu.org>
1545
1546         * sysdeps/arm/Makefile: New file.
1547
1548 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
1549
1550         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
1551         by another '|', end of regex or enclosing ')', clear branch.
1552         * posix/bug-regex9.c: New test.
1553         * posix/Makefile (tests): Add bug-regex9.
1554
1555 2002-08-12  Roland McGrath  <roland@redhat.com>
1556
1557         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
1558         start count condition, use TOTAL instead of variable that was never
1559         set.  Fix outer loop termination condition to TOTAL >= after update.
1560
1561         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
1562         dl_tls_static_align and dl_tls_static_nelem.
1563
1564 2002-08-11  Roland McGrath  <roland@redhat.com>
1565
1566         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
1567         of the TLS macros, otherwise the compiler might not have initialized
1568         the PIC register yet when we use the PLT via asm.
1569         * elf/tst-tlsmod3.c (in_dso2): Likewise.
1570         * elf/tst-tlsmod2.c (in_dso): Likewise.
1571
1572         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
1573
1574         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
1575         Evaluate argument exactly once.  Remove __volatile__ from asm's.
1576
1577         * include/unistd.h: Use libc_hidden_proto for getdomainname
1578         and getlogin_r.
1579         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
1580         * sysdeps/mach/hurd/getdomain.c: Likewise.
1581         * sysdeps/unix/getlogin_r.c: Likewise.
1582         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
1583         * sysdeps/generic/getlogin_r.c: Likewise.
1584
1585         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
1586         * sunrpc/rtime.c: Add libc_hidden_def.
1587
1588         * include/string.h: Use libc_hidden_proto for basename.
1589         * string/basename.c [_LIBC]: Add libc_hidden_def.
1590
1591         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
1592
1593         * locale/loadarchive.c: munmap -> __munmap throughout.
1594
1595         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
1596         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
1597         * sysdeps/generic/gai_strerror.c: Likewise.
1598
1599         * include/sys/errno.h: New file.
1600
1601         * include/signal.h: No libc_hidden_proto for raise,
1602         __libc_current_sigrtmin, __libc_current_sigrtmax.
1603         These need to be overridden by linuxthreads.
1604         * sysdeps/posix/raise.c: Reverted.
1605         * sysdeps/generic/raise.c: Reverted.
1606         * signal/allocrtsig.c: Reverted.
1607
1608         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
1609
1610 2002-08-10  Roland McGrath  <roland@redhat.com>
1611
1612         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
1613         * locale/localeinfo.h: Declare it.
1614         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
1615         current locale if it's not in the file list.
1616         Call _nl_archive_subfreeres.
1617
1618 2002-08-10  Andreas Jaeger  <aj@suse.de>
1619
1620         * sysdeps/i386/strchr.S: Add comment.
1621
1622 2002-08-10  Roland McGrath  <roland@redhat.com>
1623
1624         * include/wchar.h (putwc): Use libc_hidden_proto.
1625         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
1626         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
1627         * stdio-common/dprintf.c: Add libc_hidden_def.
1628         * stdio-common/fprintf.c: Likewise.
1629         * stdio-common/sprintf.c: Likewise.
1630         * stdio-common/sscanf.c: Likewise.
1631         * libio/iofwrite.c: Likewise.
1632         * libio/memstream.c: Likewise.
1633         * libio/putwc.c: Likewise.
1634         * stdio-common/perror.c: Likewise.
1635         * sysdeps/posix/remove.c: Likewise.
1636         * sysdeps/generic/remove.c: Likewise.
1637         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
1638         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
1639
1640 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
1641
1642         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
1643         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
1644         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
1645         towlower, towupper): Add libc_hidden_weak.
1646
1647         * include/bits/dlfcn.h: New file.
1648         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
1649
1650         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
1651         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
1652         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
1653         * include/pwd.h (_nss_files_parse_pwent): Likewise.
1654         * include/shadow.h (_nss_files_parse_spent): Likewise.
1655         * include/netdb.h (_nss_files_parse_protoent,
1656         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
1657         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
1658         (LINE_PARSER): Use it.
1659         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
1660         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
1661
1662         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
1663         #endif.
1664
1665         * manual/debug.texi (%MENU%): Remove trailing dot.
1666         Reported by <hayastan132@hotmail.com>.
1667
1668         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
1669         aliases.
1670         (lseek): Dummy.
1671         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
1672         Likewise.
1673
1674 2002-08-09  Roland McGrath  <roland@redhat.com>
1675
1676         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
1677         name to find codeset name (if any) and normalize it.  If the
1678         normalized name differs, look up only that in the archive.
1679         * locale/programs/locarchive.c (add_locale_to_archive): If the name
1680         contains a codeset, normalize the codeset store only the normalized
1681         name in the archive.  If not, add an alias containing the locale's
1682         normalized codeset name.  Apply codeset name normalization when
1683         matching entries in the alias file.
1684
1685         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
1686         decrement HEAD->namehash_used here.
1687         (add_locale): Only need to insert name string when name_offset != 0.
1688
1689         * locale/programs/localedef.c (options): Add -A/--alias-file.
1690         (alias_file): New variable.
1691         (parse_opt): Grok -A, set that.
1692         * locale/programs/localedef.h: Declare it.
1693
1694         * locale/locarchive.h (struct locrecent): Add `refs' member.
1695         * locale/programs/locarchive.c (insert_name): New function, broken out
1696         of ...
1697         (add_locale_to_archive): ... here.  Call that.
1698         (add_alias): New function.
1699         (add_locale): New static function, add_locale_to_archive renamed.
1700         (add_locale_to_archive): Call that and use add_alias to add an alias
1701         for the name with codeset if the given name lacks it.
1702         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
1703
1704         * locale/Makefile (routines): Add loadarchive.
1705         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
1706         (_nl_load_locale_from_archive): New function.
1707         * locale/localeinfo.h: Declare it.
1708         * locale/findlocale.c (_nl_find_locale): If using default locale path,
1709         try _nl_load_locale_from_archive first.
1710
1711         * locale/loadlocale.c (_nl_intern_locale_data): New function,
1712         broken out of _nl_load_locale.
1713         (_nl_load_locale): Call that.
1714         * locale/localeinfo.h: Declare it.
1715         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
1716         (struct locale_data): Remove unused member `options'.
1717         * locale/findlocale.c (_nl_remove_locale): Update uses.
1718         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
1719         * locale/C-collate.c: Update initializer.
1720         * locale/C-identification.c: Likewise.
1721         * locale/C-measurement.c: Likewise.
1722         * locale/C-telephone.c: Likewise.
1723         * locale/C-address.c: Likewise.
1724         * locale/C-name.c: Likewise.
1725         * locale/C-paper.c: Likewise.
1726         * locale/C-time.c: Likewise.
1727         * locale/C-numeric.c: Likewise.
1728         * locale/C-monetary.c: Likewise.
1729         * locale/C-messages.c : Likewise.
1730         * locale/C-ctype.c: Likewise.
1731
1732         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
1733         use CHAR_BIT instead of BITSPERBYTE.
1734
1735         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
1736         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
1737         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
1738         (_nl_remove_locale): Likewise.
1739         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
1740
1741         * locale/findlocale.c (_nl_default_locale_path): New variable.
1742         (_nl_find_locale): If LOCALE_PATH is null, default to that.
1743         * locale/localeinfo.h: Declare it.
1744         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
1745         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
1746         * locale/newlocale.c (__newlocale): Likewise.
1747
1748         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
1749         * inet/rexec.c (rexec_af): Add libc_hidden_def.
1750         * sysdeps/generic/morecore.c: Likewise.
1751         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
1752         (__libc_current_sigrtmax): Likewise.
1753
1754 2002-08-08  Roland McGrath  <roland@redhat.com>
1755
1756         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
1757         * catgets/open_catalog.c (__open_catalog): Likewise.
1758
1759         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
1760         from typo INITIAL_NUM_NANES.
1761         (create_archive): Update use.
1762
1763 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
1764
1765         * sysdeps/unix/sysv/linux/sigwait.c: New file.
1766
1767 2002-08-08  Roland McGrath  <roland@frob.com>
1768
1769         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
1770
1771 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
1772
1773         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
1774         else and undefine after including wcstol_l.c.
1775         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
1776
1777 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
1778
1779         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
1780
1781 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
1782
1783         * configure.in: Make the test for broken_alias_attribute stricter.
1784
1785 2002-05-24  Robert Love  <rml@tech9.net>
1786
1787         * posix/Makefile (routines): Add sched_getaffinity and
1788         sched_setaffinity.
1789         * posix/sched.h: Add declarations for sched_getaffinity and
1790         sched_setaffinity.
1791         * sysdeps/generic/sched_getaffinity.c: New file.
1792         * sysdeps/generic/sched_setaffinity.c: New file.
1793         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
1794         sched_setaffinity.
1795
1796 2002-08-06  Andreas Schwab  <schwab@suse.de>
1797
1798         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
1799
1800 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
1801
1802         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
1803         message.
1804
1805         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
1806         It is known to be defined.
1807
1808         * include/string.h: Define index and rindex only if _ISOMAC is not
1809         defined.
1810
1811         * elf/rtld.c: Include <errno.h>.
1812         * sysdeps/generic/libc-tls.c: Likewise.
1813
1814 2002-08-07  Roland McGrath  <roland@redhat.com>
1815
1816         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
1817         it internally.
1818         (precsize_aton): Likewise.
1819
1820         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
1821         the static symbols added in the last change (doofus is me).
1822
1823         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
1824         loop to notice missing categories in a composite name.
1825
1826         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
1827         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
1828         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
1829         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
1830
1831 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
1832
1833         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
1834
1835 2002-08-07  Roland McGrath  <roland@redhat.com>
1836
1837         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
1838         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
1839         Reported by Jakub Jelinek  <jakub@redhat.com>.
1840
1841 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
1842
1843         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
1844         division.
1845
1846 2002-08-06  Roland McGrath  <roland@redhat.com>
1847
1848         * include/getopt.h: Put private decls inside [_GETOPT_H].
1849         Use libc_hidden_proto for getopt_long, getopt_long_only.
1850         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
1851         Add libc_hidden_def.
1852
1853         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
1854         Define as a macro for __dl_iterate_phdr.
1855
1856         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
1857         made static.  Add __ name as a strong alias.
1858         (internal_endnetgrent): Likewise.
1859         (internal_getnetgrent_r): Likewise.
1860
1861         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
1862         with no __ prefix.
1863         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
1864         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
1865         all *_l functions with no __ prefix.
1866         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
1867         * ctype/ctype_l.c: Likewise.
1868         * locale/nl_langinfo.c: Likewise.
1869         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
1870         * stdlib/stdlib.h [__USE_GNU]: Likewise.
1871         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
1872         * wctype/wctype.h [__USE_GNU]: Likewise.
1873         * string/strcoll_l.c (strcoll_l): Define as weak alias.
1874         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
1875         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
1876         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
1877         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
1878         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
1879         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
1880         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
1881         (__wcscasecmp_l): Add libc_hidden_def.
1882         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
1883         (__wcsncasecmp_l): Add libc_hidden_def.
1884         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
1885         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
1886         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
1887         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
1888         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
1889         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
1890         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
1891         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
1892         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
1893         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
1894         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
1895         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
1896         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
1897         * wctype/wctype_l.c (wctype_l) Define as weak alias.
1898
1899 2002-08-05  Roland McGrath  <roland@redhat.com>
1900
1901         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
1902         netname2user, host2netname, user2netname, key_gendes.
1903         * sunrpc/netname.c: Add libc_hidden_def.
1904         * sunrpc/key_call.c: Likewise.
1905
1906         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
1907         freeaddrinfo.
1908         * inet/getnameinfo.c: Add libc_hidden_def.
1909         * sysdeps/generic/getaddrinfo.c: Likewise.
1910         * sysdeps/posix/getaddrinfo.c: Likewise.
1911
1912         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
1913         * wcsmbs/wmemchr.c: Add libc_hidden_def.
1914         * wcsmbs/wmemset.c: Add libc_hidden_def.
1915
1916         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
1917         (index, rindex): Define as macros for strchr, strrchr.
1918
1919         * string/envz.c (envz_strip): index -> strchr
1920
1921         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
1922         * sunrpc/rpc_prot.c: Add libc_hidden_def.
1923
1924         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
1925         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
1926
1927         * include/stdlib.h: Use libc_hidden_proto for wctomb.
1928         * stdlib/wctomb.c: Add libc_hidden_def.
1929
1930         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
1931         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
1932         * resolv/herror.c: Likewise.
1933         * inet/rcmd.c: Add libc_hidden_def.
1934         * inet/ruserpass.c: Likewise.
1935         * inet/getnetgrent_r.c: Likewise.
1936
1937         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
1938         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
1939         for svcerr_auth, svcerr_noprog, svcerr_progvers.
1940         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
1941         libc_hidden_def.
1942         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
1943         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
1944
1945         * sysdeps/posix/system.c (do_system): New function, guts broken out of
1946         __libc_system.
1947         (__libc_system): Call it, putting just the line == NULL test here.
1948
1949         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
1950         variables work right.
1951
1952         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
1953         * elf/dl-close.c (_dl_close): Likewise.
1954
1955         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
1956         in6addr_any, in6addr_loopback.  Remove decls for
1957         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
1958         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
1959         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
1960         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
1961         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
1962         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
1963         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
1964         in6addr_loopback.
1965         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
1966
1967         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
1968         ether_aton_r.
1969         * inet/ether_aton_r.c: Add libc_hidden_def.
1970         * inet/ether_ntoa_r.c: Likewise.
1971
1972         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
1973         xprt_unregister.
1974         * sunrpc/svc.c: Add libc_hidden_def.
1975         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
1976         pmap_set, pmap_unset.
1977         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
1978         * sunrpc/pm_getport.c: Likewise.
1979         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
1980         * sunrpc/publickey.c: Add libc_hidden_def.
1981
1982 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
1983
1984         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
1985         the other memset call in this function.
1986
1987         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
1988         at correct index.  Clear BSS region now that memalign is used.
1989
1990 2002-08-05  Roland McGrath  <roland@redhat.com>
1991
1992         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
1993         * sysdeps/generic/uname.c: Add libc_hidden_def.
1994         * sysdeps/mach/hurd/uname.c: Likewise.
1995
1996 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
1997
1998         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
1999         wcspbrk): Add libc_hidden_proto.
2000         * time/strftime.c (my_strftime): Add libc_hidden_def.
2001         (strftime): Remove libc_hidden_def.
2002         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
2003         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
2004         * wcsmbs/wcsspn.c (wcsspn): Likewise.
2005         * wcsmbs/wcscmp.c (wcscmp): Likewise.
2006         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
2007         * wcsmbs/wcscoll.c (wcscoll): Likewise.
2008
2009         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
2010         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
2011         __rpc_thread_createerr): Add libc_hidden_proto.
2012         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
2013         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
2014         __rpc_thread_createerr): Add libc_hidden_def.
2015
2016         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
2017         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
2018         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
2019         clnt_perror, clnt_sperror): Add libc_hidden_def.
2020         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
2021
2022         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
2023         libc_hidden_proto.
2024         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
2025         * sunrpc/des_soft.c (des_setparity): Likewise.
2026
2027         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
2028         Add libc_hidden_proto.
2029         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
2030         Add libc_hidden_def.
2031
2032 2002-08-05  Roland McGrath  <roland@redhat.com>
2033
2034         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
2035         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
2036         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
2037         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
2038         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
2039         old data, abandoning the original memory allocated by rtld at startup,
2040         instead of calling realloc normally.
2041
2042 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
2043
2044         * po/fr.po: Update from translation team.
2045
2046 2002-08-04  Roland McGrath  <roland@redhat.com>
2047
2048         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
2049         then generate a dummy module under the given name, obeying the
2050         normal rules for the "caller" field.
2051
2052         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
2053         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
2054
2055         * include/pthread.h: Don't declare __pthread_initialize_minimal as
2056         weak here; we declare it weak or strong in the one place we use it.
2057         * sysdeps/generic/libc-start.c: ... which is here.
2058         Don't make the decl weak if [USE_TLS], since static programs need TLS
2059         setup even when single-threaded.
2060
2061         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
2062
2063         * elf/Makefile (test-srcs): Add $(modules-names) to it.
2064         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
2065         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
2066         all these variables.
2067
2068 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
2069
2070         * include/stdio.h: Don't define macro magic to redirect function
2071         calls if _ISOMAC is defined.
2072
2073         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
2074         ldouble asin tests.
2075
2076 2002-08-04  Roland McGrath  <roland@redhat.com>
2077
2078         * stdlib/lrand48_r.c: Add libc_hidden_def.
2079
2080         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
2081         TCB with __libc_memalign instead of mmap.
2082         (_dl_deallocate_tls): Free it with free instead of munmap.
2083
2084         * Makerules (cpp-srcs-left): When setting this to run
2085         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
2086         words.  Combine the two loops into one on the concatenated list,
2087         including those as well as $(test-srcs).
2088
2089         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
2090         since we align here with optimally minimal waste anyway.
2091         (malloc): Just call that.
2092
2093         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
2094         the right variable.
2095
2096         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
2097         to compute memory location for l_tls_initimage.
2098         * elf/rtld.c (_dl_start): Likewise.
2099         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
2100
2101         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
2102         because the .d file is generated in the non-shared case and
2103         so fails to catch them otherwise.
2104
2105         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
2106         split out of _dl_allocate_tls.
2107         (_dl_allocate_tls_init): Likewise.
2108         (_dl_allocate_tls): Call those.
2109         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
2110         * elf/rtld.c (dl_main): Call them separately instead of calling
2111         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
2112         is finished, so that the initializer data has been relocated before we
2113         copy it into the main thread's TLS block.
2114
2115         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
2116         loop conditions, prevented the last used module from being initialized.
2117
2118 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
2119
2120         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
2121         if glob resp. globfree are not macros.
2122         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
2123         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
2124         Add libc_hidden_ver.
2125         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
2126         libc_hidden_def.
2127         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
2128         instead of libc_hidden_weak.
2129         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
2130         libc_hidden_ver instead of libc_hidden_def.
2131         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
2132         libc_hidden_ver instead of libc_hidden_def.
2133         (wcstoll, wcstoq): Remove libc_hidden_weak.
2134         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
2135         libc_hidden_ver.
2136         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
2137         libc_hidden_ver.
2138         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
2139         libc_hidden_ver.
2140         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
2141         libc_hidden_ver.
2142
2143 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
2144
2145         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
2146         to access _sys_siglist.
2147         * string/strsignal.c: Likewise.
2148         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
2149         * sysdeps/gnu/siglist.c: Likewise.
2150         * sysdeps/unix/siglist.c: Likewise.
2151         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
2152
2153         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
2154
2155         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
2156
2157         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
2158         alias and use it.
2159         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
2160
2161         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
2162         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
2163         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
2164
2165         * include/time.h: Add libc_hidden_proto for __gmtime_r.
2166         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
2167
2168         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
2169         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
2170         and __gconv_get_cache respectively.
2171         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
2172         defined static.  Change all users.
2173         (__gconv_get_cache): New function.
2174         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
2175         (__gconv_get_alias_db): New function.
2176         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
2177         (__conv_modules_db): Likewise.
2178         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
2179         and __gconv_get_alias_db.
2180         * iconv/iconv_prog.c: Use the new functions instead of accessing the
2181         variables.
2182
2183         * include/stdlib.h: Add prototype and libc_hidden_proto for
2184         __default_morecore.
2185         * sysdeps/generic/morecore.c: Include <stdlib.h>.
2186
2187         * malloc/obstack.c: Remove fputs macro.
2188
2189         * malloc/mtrace.c: Remove fopen macro.
2190
2191 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
2192
2193         * manual/debug.texi: Fix spelling to programmatically.
2194         Reported by <hayastan132@hotmail.com>.
2195
2196 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
2197
2198         * include/libio.h: Add libc_hidden_proto for __uflow.
2199         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
2200         fgetpos to _IO_* names.
2201         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
2202         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
2203         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
2204         putwc_unlocked, vswscanf.
2205         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
2206         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
2207         * libio/fseek.c: Likewise.
2208         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
2209         not fopencookie.
2210         * libio/genops.c (__uflow): Add libc_hidden_def.
2211         * libio/iofflush_u.c (fflush_unlocked): Likewise.
2212         * libio/iofgets_u.c (fgets_unlocked): Likewise.
2213         * libio/iofputs_u.c (fputs_unlocked): Likewise.
2214         * libio/iofputws_u.c (fputws_unlocked): Likewise.
2215         * libio/iofread_u.c (fread_unlocked): Likewise.
2216         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2217         * libio/iovswscanf.c (vswscanf): Likewise.
2218         * libio/putwc_u.c (putwc_unlocked): Likewise.
2219         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
2220         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
2221         * malloc/mtrace.c: Likewise.
2222
2223         * sunrpc/clnt_perr.c: Remove fputs macro.
2224         * sunrpc/svc_simple.c: Likewise.
2225         * sunrpc/svc_tcp.c: Likewise.
2226         * sunrpc/svc_udp.c: Likewise.
2227         * sunrpc/xdr_rec.c: Likewise.
2228         * sunrpc/xdr_ref.c: Likewise.
2229
2230         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
2231         iconv_prog, linereader, and charmap-dir.
2232         * locale/Makefile: Likewise for locale and charmap-dir.
2233         * malloc/Makefile: Likewise for memusagestat.
2234         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
2235         * sunrpc/Makefile: Likewise for rpc_main.
2236         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
2237         * timezone/Makefile: Likewise for zic.
2238
2239         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
2240
2241         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
2242         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
2243         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
2244         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
2245         _dl_close.
2246
2247         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
2248         __wunderflow.
2249         * libio/genops.c (__underflow): Add libc_hidden_def.
2250         * libio/wgenops.c (__wuflow): Likewise.
2251         (__wunderflow): Likewise.
2252
2253         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
2254         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
2255
2256         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
2257         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
2258
2259         * include/string.h: Add libc_hidden_proto for __strverscmp.
2260         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
2261
2262         * include/unistd.h: Add libc_hidden_proto for __sysconf.
2263         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
2264         * sysdeps/posix/sysconf.c: Likewise.
2265         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
2266         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
2267
2268         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
2269         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
2270         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
2271         __iswxdigit_l, __towlower_l, __towupper_l.
2272         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
2273         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
2274
2275         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
2276         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
2277         * sysdeps/mach/hurd/xmknod.c: Likewise.
2278         * sysdeps/unix/xmknod.c: Likewise.
2279         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
2280         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
2281         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
2282
2283         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
2284
2285 2002-08-03  Roland McGrath  <roland@redhat.com>
2286
2287         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
2288         setpriority.
2289         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
2290         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
2291         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
2292         * sysdeps/mach/hurd/setpriority.c: Likewise.
2293         * sysdeps/mach/hurd/getpriority.c: Likewise.
2294         * sysdeps/generic/setpriority.c: Likewise.
2295         * sysdeps/generic/getpriority.c: Likewise.
2296
2297         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
2298         * malloc/mcheck.c: Add libc_hidden_def.
2299
2300         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
2301         * misc/hsearch_r.c: Add libc_hidden_def.
2302
2303         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
2304         * posix/fnmatch.c: Add libc_hidden_weak.
2305
2306         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
2307         execl, execle, execlp, execvp, getpid, getsid.
2308         * sysdeps/generic/alarm.c: Add libc_hidden_def.
2309         * sysdeps/unix/alarm.c: Likewise.
2310         * posix/confstr.c: Likewise.
2311         * posix/execvp.c: Likewise.
2312         * posix/execlp.c: Likewise.
2313         * posix/execle.c: Likewise.
2314         * posix/execl.c: Likewise.
2315         * sysdeps/generic/getsid.c: Likewise.
2316         * sysdeps/mach/hurd/getsid.c: Likewise.
2317         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
2318         * sysdeps/mach/hurd/getpid.c: Likewise.
2319
2320         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
2321         qecvt_r, qfcvt_r, lrand48_r.
2322         * misc/efgcvt_r.c: Add libc_hidden_def.
2323
2324         * include/wordexp.h: Use libc_hidden_proto for wordfree.
2325         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
2326
2327         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
2328         * locale/nl_langinfo.c: Add libc_hidden_def.
2329
2330         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
2331         * sysdeps/generic/glob.c: Add libc_hidden_def.
2332         * sysdeps/generic/glob64.c: Likewise.
2333         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
2334
2335         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
2336
2337         * elf/Makefile (CFLAGS-vismod2.c): New variable.
2338
2339         * locale/setlocale.c (_nl_current_names): Variable moved ...
2340         * locale/localename.c (_nl_current_names): ... here, new file.
2341         Make it global, with attribute_hidden.
2342         * locale/localeinfo.h: Declare it.
2343         * locale/Makefile (aux): Add localename.
2344         * locale/localename.c (__current_locale_name): New function.
2345         * include/locale.h (__current_locale_name): Declare it.
2346         * intl/dcigettext.c (guess_category_value): Use that instead of
2347         calling setlocale.
2348
2349         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
2350         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
2351         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
2352         * locale/newlocale.c: Add alias to __ name.
2353         * locale/duplocale.c: Likewise.
2354         * locale/freelocale.c: Likewise.
2355         * locale/uselocale.c: New file.
2356         * locale/Makefile (routines): Add it.
2357         * locale/Versions (libc: GLIBC_2.3): New set.
2358         Add newlocale, duplocale, freelocale, uselocale.
2359         (libc: GLIBC_PRIVATE): Add __uselocale.
2360
2361         * locale/localeinfo.h [SHARED]
2362         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
2363         (_NL_CURRENT_DATA): Define using that.
2364         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
2365         (_NL_CURRENT_DEFINE): Define to empty.
2366         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
2367         conditionalized on this.
2368         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
2369         taking initializer of _nl_C_locobj.
2370         [SHARED] (_nl_global_locale): New variable, using that initializer.
2371         (_nl_C_locobj): Use new macro for initialzier.
2372         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
2373         [! SHARED] (CATEGORY_USED): New macro.
2374         [SHARED] (CATEGORY_USED, _nl_C): New macros.
2375         (setdata, setlocale): Use that macro instead of examining _nl_current.
2376         (setdata): Set the slot in _nl_global_locale.
2377         Conditionalize setting of _nl_current on [! SHARED].
2378         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
2379         declaration as an extern.
2380         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
2381
2382         * include/locale.h: Use libc_hidden_proto for setlocale.
2383         * locale/setlocale.c: Add libc_hidden_def.
2384
2385         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
2386
2387         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
2388         * misc/hsearch_r.c: Add libc_hidden_def.
2389         * misc/lsearch.c: Likewise.
2390
2391         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
2392         endttyent.
2393         * misc/getttyent.c: Add libc_hidden_def.
2394
2395         * include/mcheck.h: Use libc_hidden_proto for mcheck.
2396         * malloc/mcheck.c: Add libc_hidden_def.
2397
2398         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
2399         * include/argz.h: Use libc_hidden_proto for argz_delete.
2400         * string/argz-delete.c: Add libc_hidden_def.
2401         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
2402
2403         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
2404         HIDDEN_JUMPTARGET for _exit.
2405         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
2406         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
2407         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
2408         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
2409
2410         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
2411         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
2412         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
2413         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
2414
2415         * include/stdlib.h: Use libc_hidden_proto for abort,
2416         __strtof_internal, __strtod_internal, __strtold_internal,
2417         __strtol_internal, __strtoll_internal, __strtoul_internal,
2418         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
2419         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
2420         __strtoul_l_internal, __strtoull_l_internal.
2421         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
2422         __wcstod_internal, __wcstold_internal, __wcstol_internal,
2423         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
2424         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
2425         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
2426         __wcsncasecmp_l.
2427         * sysdeps/generic/abort.c: Add libc_hidden_def.
2428         * stdlib/strtod.c: Likewise.
2429         * sysdeps/generic/strtol.c: Likewise.
2430         * sysdeps/wordsize-64/strtol.c: Likewise.
2431         * sysdeps/wordsize-64/wcstol.c: Likewise.
2432         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
2433
2434         * include/stdlib.h: Use libc_hidden_proto for qsort.
2435         * stdlib/msort.c: Add libc_hidden_def.
2436
2437         * include/utime.h: Use libc_hidden_proto for utime.
2438         * sysdeps/generic/utime.c: Add libc_hidden_def.
2439         * sysdeps/unix/utime.c: Likewise.
2440
2441         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
2442         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
2443         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2444         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
2445         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
2446
2447         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
2448         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
2449         and __libc_current_sigrtmax.
2450         * signal/sigismem.c: Add libc_hidden_def.
2451         * signal/sigfillset.c: Likewise.
2452         * signal/sigempty.c: Likewise.
2453         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
2454         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2455         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
2456         * sysdeps/posix/raise.c: Likewise.
2457         * sysdeps/generic/raise.c: Likewise.
2458
2459 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
2460
2461         * include/string.h: Use libc_hidden_proto for __stpcpy.
2462         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
2463         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
2464         * sysdeps/generic/stpcpy.c: Likewise.
2465         * sysdeps/i386/stpcpy.S: Likewise.
2466         * sysdeps/i386/i586/stpcpy.S: Likewise.
2467         * sysdeps/powerpc/stpcpy.S: Likewise.
2468         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
2469         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
2470
2471         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
2472         __strncasecmp_l, __strdup, __strndup, __strerror_r.
2473         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
2474         libc_hidden_def.
2475         * string/strdup.c (__strdup): Likewise.
2476         * string/strndup.c (__strndup): Likewise.
2477         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
2478         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
2479
2480 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
2481
2482         * include/libio.h: New file.
2483         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
2484         * libio/iolibio.h: #include <libio.h>, not "libio.h".
2485         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
2486         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
2487         * sysdeps/unix/common/syscalls.list: Likewise.
2488         * sysdeps/unix/inet/syscalls.list: Likewise.
2489         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
2490         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
2491         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2492         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2493         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2494         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2495         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2496         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2497         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2498         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
2499         * sysdeps/unix/syscalls.list: Likewise.
2500
2501 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
2502             Ulrich Drepper  <drepper@redhat.com>
2503
2504         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
2505         the arguments is big enough to cause an overflow.
2506
2507 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
2508
2509         * assert/assert.c: Use hidden_def not INTDEF.
2510
2511 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
2512
2513         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
2514         not defined.
2515
2516 2002-08-03  Roland McGrath  <roland@redhat.com>
2517
2518         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
2519         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
2520         verr, verrx.
2521         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
2522         * misc/syslog.c: Add libc_hidden_def.
2523         * misc/err.c: Likewise.
2524         * stdlib/exit.c: Likewise.
2525         * stdlib/bsearch.c: Likewise.
2526         * sysdeps/generic/getenv.c: Likewise.
2527
2528         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
2529
2530         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
2531         libc_hidden_weak for every system call symbol defined.
2532
2533         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
2534         timelocal, localtime, strftime.
2535         * time/asctime.c: Add libc_hidden_def.
2536         * time/mktime.c: Likewise.
2537         * time/localtime.c: Likewise.
2538         * time/strftime.c: Likewise.
2539         * time/strptime.c: Likewise.
2540         * sysdeps/generic/time.c: Likewise.
2541         * sysdeps/unix/time.c: Likewise.
2542         * sysdeps/unix/sysv/i386/time.S: Likewise.
2543         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
2544
2545         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
2546         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
2547         * resolv/inet_ntop.c: Likewise.
2548         * resolv/inet_pton.c: Likewise.
2549         * inet/inet_mkadr.c: Add libc_hidden_def.
2550         * inet/inet_netof.c: Likewise.
2551         * resolv/inet_addr.c: Likewise.
2552
2553         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
2554         clauses from conditionals for now.  Will have to be fixed later
2555         for older compilers.
2556
2557         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
2558
2559 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
2560
2561         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
2562         broken alias attribute handling.
2563         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
2564
2565 2002-08-02  Roland McGrath  <roland@frob.com>
2566
2567         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
2568         since it sets the variables we use in a -D switch.
2569
2570 2002-08-02  Roland McGrath  <roland@redhat.com>
2571
2572         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
2573         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
2574         matches long int, not int.
2575
2576         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
2577         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
2578         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2579         * wctype/wctrans.c (wctrans): Likewise.
2580         * wctype/wctype.c (__wctype): Likewise.
2581         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
2582
2583 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
2584
2585         * assert/assert.c (__assert_fail): Fix typo in comment.
2586
2587         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
2588         * sunrpc/rpc_thread.c: Define it without static.
2589         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
2590
2591 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
2592
2593         * assert/assert.c (__assert_fail): Remove undef.
2594         Replace INTDEF with libc_hidden_def.
2595         * assert/__assert.c (__assert): Remove INTUSE.
2596         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
2597         libc_hidden_weak.
2598         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
2599         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
2600         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
2601         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
2602         libm_hiden_ver): Define.
2603         * include/assert.h (__assert_fail_internal): Remove.
2604         (__assert_fail): Add prototype.  Add hidden_proto.
2605         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
2606         libc_hidden_proto.
2607         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
2608         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
2609         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
2610         Add libc_hidden_proto.
2611         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
2612         __fcntl): Add libc_hidden_proto.  Remove macros.
2613         (__open_internal, __fcntl_internal): Remove.
2614         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
2615         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
2616         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
2617         libc_hiden_proto.
2618         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
2619         libc_hidden_def.
2620         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
2621         Add libc_hidden_def.
2622         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
2623         * sysdeps/generic/open.c (__open): Remove undef.
2624         Add libc_hidden_def.  Remove INTDEF.
2625         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
2626         Add libc_hidden_def.
2627         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
2628         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
2629         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
2630         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
2631         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
2632         (__libc_fcntl): Add libc_hidden_def.
2633         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
2634         (__open): Remove INTDEF2.  Add libc_hidden_weak.
2635         (__libc_open): Add libc_hidden_def.
2636         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
2637         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
2638         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
2639         Add libc_hidden_def.
2640         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
2641         Add libc_hidden_def.
2642         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
2643         undef.
2644         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
2645         (__libc_fcntl): Add libc_hidden_def.
2646         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
2647         __getpgid_internal, __chown_internal): Remove.
2648         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
2649         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
2650         __GI___chown): Add.
2651         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
2652         __getpid_internal, __open_internal, __write_internal): Remove.
2653         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
2654         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
2655         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
2656         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
2657         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
2658         Replace INTDEF with libc_hidden_def.
2659         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
2660         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
2661         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
2662         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
2663         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
2664         Add libc_hidden_proto.
2665         * include/sys/poll.h (__poll): Add libc_hidden_proto.
2666         * include/sys/select.h (__select): Likewise.
2667         * include/sys/socket.h (__send): Likewise.
2668         * include/sys/statfs.h (__statfs): Likewise.
2669         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
2670         __getpid, __getpgid, __setpgid, __close, __read, __write,
2671         __getpagesize, __sbrk): Likewise.
2672         (__chown_internal, __dup2_internal, __getpid_internal,
2673         __getpgid_internal, __close_internal, __write_internal,
2674         __getpagesize_internal): Remove.
2675         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
2676         Remove macros.
2677         * include/printf.h (__printf_fp): Add libc_hidden_proto.
2678         * include/sched.h (__sched_setscheduler): Likewise.
2679         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
2680         * include/stdlib.h (__secure_getenv): Likewise.
2681         * include/signal.h (__sigaction, __sigsuspend): Likewise.
2682         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
2683         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
2684         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
2685         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
2686         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
2687         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
2688         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
2689         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
2690         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
2691         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
2692         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
2693         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
2694         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
2695         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
2696         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
2697         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
2698         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
2699         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
2700         * libio/genops.c (__overflow): Add libc_hidden_def.
2701         * libio/iovdprintf.c: Remove libio.h include.
2702         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
2703         libc_hidden_weak): Define to nothing if not defined.
2704         (__overflow, __woverflow): Add libc_hidden_proto.
2705         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
2706         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
2707         (DB_LOOKUP_FCT): Add libc_hidden_proto.
2708         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
2709         (DB_LOOKUP_FCT): Add libc_hidden_proto.
2710         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
2711         and libc_hidden_def.
2712         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
2713         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
2714         (__getpgid): Add libc_hidden_proto.
2715         (__bsd_getpgrp): Remove INTUSE.
2716         * resolv/res_init.c (__res_ninit, __res_randomid): Add
2717         libc_hidden_def.
2718         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
2719         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
2720         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
2721         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
2722         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
2723         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
2724         __rpc_thread_createerr): Add libc_hidden_def.
2725         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
2726         libc_hidden_def.
2727         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
2728         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
2729         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
2730         * sysdeps/generic/chown.c (__chown): Likewise.
2731         * sysdeps/generic/close.c (__close): Likewise.
2732         * sysdeps/generic/dup2.c (__dup2): Likewise.
2733         * sysdeps/generic/pipe.c (__pipe): Likewise.
2734         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
2735         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
2736         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
2737         * sysdeps/generic/read.c (__libc_read): Likewise.
2738         (__read): Add libc_hidden_weak.
2739         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
2740         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
2741         * sysdeps/generic/select.c (__select): Likewise.
2742         * sysdeps/generic/send.c (__send): Likewise.
2743         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
2744         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
2745         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
2746         * sysdeps/generic/statfs.c (__statfs): Likewise.
2747         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
2748         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
2749         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
2750         Remove undef and INTDEF.
2751         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
2752         * sysdeps/generic/getpid.c (__getpid): Likewise.
2753         * sysdeps/generic/write.c (__libc_write): Likewise.
2754         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
2755         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
2756         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
2757         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
2758         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
2759         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
2760         Remove undef and INTDEF.
2761         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
2762         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
2763         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
2764         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
2765         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
2766         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
2767         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
2768         (__pipe): Add libc_hidden_def.
2769         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
2770         libc_hidden_weak.
2771         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
2772         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
2773         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
2774         (__read): Add libc_hidden_weak.
2775         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
2776         (__libc_pwrite64): Add libc_hidden_def.
2777         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
2778         * sysdeps/mach/hurd/select.c (__select): Likewise.
2779         * sysdeps/mach/hurd/send.c (__send): Likewise.
2780         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
2781         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
2782         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
2783         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
2784         * sysdeps/posix/dup2.c: Likewise.
2785         Remove undef and INTDEF.
2786         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
2787         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
2788         (__pwrite64): Add libc_hidden_weak.
2789         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
2790         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
2791         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
2792         * sysdeps/standalone/close.c (__close): Likewise.
2793         * sysdeps/standalone/write.c (__libc_write): Likewise.
2794         (__write): Add libc_hidden_weak.
2795         * sysdeps/standalone/read.c (__read): Likewise.
2796         (__libc_read): Add libc_hidden_def.
2797         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
2798         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
2799         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
2800         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
2801         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
2802         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
2803         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
2804         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
2805         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
2806         __GI___sigaction): Add.
2807         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
2808         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
2809         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
2810         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
2811         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
2812         __GI___setpgid): Add.
2813         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
2814         Remove undef and INTDEF.
2815         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
2816         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
2817         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
2818         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
2819         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
2820         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
2821         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
2822         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
2823         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
2824         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
2825         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
2826         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
2827         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
2828         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
2829         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
2830         __GI___statfs, __GI___send): Add.
2831         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
2832         libc_hidden_ver resp. libc_hidden_def.
2833         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
2834         libc_hidden_def.
2835         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
2836         Likewise.  Remove undef and INTDEF.
2837         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
2838         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
2839         __GI___statfs, __GI___send): Add.
2840         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
2841         libc_hidden_def.
2842         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
2843         Likewise.
2844         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
2845         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
2846         libc_hidden_ver resp. libc_hidden_def.
2847         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
2848         __GI___send): Add.
2849         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
2850         Add libc_hidden_weak.
2851         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
2852         Add libc_hidden_def.
2853         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
2854         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
2855         libc_hidden_weak.
2856         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
2857         resp. libc_hidden_def.
2858         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
2859         libc_hidden_weak.
2860         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
2861         INTDEF.
2862         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
2863         Likewise.  Remove undef.
2864         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
2865         libc_hidden_weak.
2866         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
2867         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
2868         libc_hidden_weak.
2869         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
2870         libc_hidden_def.
2871         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
2872         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
2873         Likewise.  Remove undef and INTDEF.
2874         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
2875         libc_hidden_def.
2876         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
2877         libc_hidden_weak.
2878         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
2879         libc_hidden_def.
2880         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
2881         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
2882         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
2883         libc_hidden_weak.
2884         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
2885         Add libc_hidden_def.
2886         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
2887         __GI___statfs): Add.
2888         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
2889         libc_hidden_weak.
2890         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
2891         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
2892         Remove undef and INTDEF.
2893         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
2894         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
2895         libc_hidden_def.
2896         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
2897         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
2898         libc_hidden_weak.
2899         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
2900         libc_hidden_def.
2901         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
2902         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
2903         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
2904         Add.
2905         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
2906         libc_hidden_def.  Remove undef and INTDEF.
2907         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
2908         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
2909         libc_hidden_def.
2910         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
2911         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
2912         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
2913         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
2914         Remove undef and INTDEF.
2915         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
2916         broken visibility attribute handling.
2917         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
2918
2919 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
2920
2921         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
2922         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
2923
2924         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
2925         previous patch.
2926
2927 2002-06-29  Todd Fries  <todd@openbsd.org>
2928
2929         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
2930
2931 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
2932
2933         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
2934
2935 2002-07-30  Roland McGrath  <roland@redhat.com>
2936
2937         * resolv/resolv.h (_res): Define macro unconditionally.
2938         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
2939         * include/resolv.h: ... here.
2940         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
2941         as a __thread variable.
2942         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
2943         a __thread variable instead of a global.
2944         * resolv/res_data.c [_LIBC]: Don't #undef _res.
2945
2946         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
2947         time we test it.
2948
2949         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
2950
2951         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
2952         decls of memset and memcpy.
2953
2954         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
2955         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
2956
2957         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
2958
2959         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
2960         (__libc_tsd_define): Define using __thread.
2961
2962         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
2963         (__rpc_thread_variables): Use __libc_tsd_get.
2964         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
2965         __rpc_thread_variables, which might allocate what we're about to free.
2966
2967         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
2968         thread-local variable.
2969         * resolv/netdb.h (h_errno): Define macro unconditionally.
2970         [_LIBC] (__set_h_errno): Macro moved to ...
2971         * include/netdb.h: ... here.
2972         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
2973         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
2974         [! _LIBC_REENTRANT]: #undef h_errno here.
2975
2976         * include/errno.h: Protect from multiple inclusion.
2977
2978         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
2979         before defining them, since Linux's <linux/posix_types.h> might have
2980         defined them.
2981
2982 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
2983
2984         * malloc/malloc.c (public_cALLOc): Check for overflow on
2985         multiplication.
2986         * sunrpc/xdr_array.c (xdr_array): Likewise.
2987         * sunrpc/rpc/types.h (mem_free): Add comment.
2988         Patch by Solar Designer <solar@openwall.com>.
2989
2990 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
2991
2992         * sysdeps/unix/sysv/linux/kernel-features.h
2993         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
2994
2995 2002-08-01  Roland McGrath  <roland@redhat.com>
2996
2997         * libio/fileops.c (_IO_file_sync_mmap): New function.
2998         (_IO_file_jumps_mmap): Use it.
2999         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
3000         repeat the stat check and resize the mapped buffer as necessary.
3001
3002 2002-07-31  Roland McGrath  <roland@redhat.com>
3003
3004         * libio/fileops.c (decide_maybe_mmap): New static function.
3005         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
3006         mmap the file contents.  Then switch the jump tables to the mmap
3007         tables if it worked, or the vanilla file tables if not.
3008         (_IO_file_underflow_maybe_mmap): New function.
3009         (_IO_file_seekoff_maybe_mmap): New function.
3010         (_IO_file_xsgetn_maybe_mmap): New function.
3011         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
3012         * libio/libioP.h: Declare those.
3013         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
3014         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
3015         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
3016         If the stream is read-only, set its jump tables to those new ones.
3017         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
3018         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
3019         We need the tables set before _IO_file_attach.
3020
3021         * libio/tst-mmap-eofsync.c: New file.
3022         * libio/tst-mmap-fflushsync.c: New file.
3023         * libio/bug-mmap-fflush.c: New file.
3024         * libio/tst-mmap2-eofsync.c: New file.
3025         * libio/Makefile (tests): Add them.
3026
3027         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
3028         _IO_file_underflow_mmap fails, it already set the appropriate bit.
3029
3030 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
3031
3032         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
3033         Declarations moved to <bits/sys_errlist.h>.  Include that file.
3034         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
3035         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
3036         declare sys_errlist and sys_nerr.
3037         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
3038         provide declarations.
3039
3040 2002-07-31  Roland McGrath  <roland@redhat.com>
3041
3042         * elf/rtld.c (dl_main): Fix typo in error message.
3043
3044 2002-07-31  Roland McGrath  <roland@frob.com>
3045
3046         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
3047         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
3048         sysdeps/mach/hurd/dl-sysdep.c change.
3049
3050 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
3051
3052         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
3053         -r`/build/include for kernel headers.
3054
3055         * po/fi.po: New file.
3056
3057 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
3058
3059         * configure.in (static_nss): Set to `yes' if --disable-shared.
3060
3061 2002-07-23  Bruno Haible  <bruno@clisp.org>
3062
3063         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
3064         is set.
3065
3066 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
3067
3068         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
3069         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
3070         arguments.
3071
3072 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
3073
3074         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
3075         alias.
3076
3077 2002-07-21  Bruno Haible  <bruno@clisp.org>
3078
3079         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
3080         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
3081         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
3082         trans_sysdep_tab_offset.
3083         (struct sysdep_segment): New type.
3084         (struct sysdep_string): New type.
3085         (SEGMENTS_END): New macro.
3086         * intl/gettextP.h (struct sysdep_string_desc): New type.
3087         (struct loaded_domain): New fields malloced, n_sysdep_strings,
3088         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
3089         orig_tab, trans_tab, hash_tab to const pointers because they point
3090         into read-only memory.
3091         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
3092         (PRI*): Define fallback values.
3093         (get_sysdep_segment_value): New function.
3094         (_nl_load_domain): Distinguish major and minor revision parts. Add
3095         support for minor revision 1 with system dependent strings.
3096         (_nl_unload_domain): Also free the 'malloced' field.
3097         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
3098         now done in loadmsgcat.c. Add support for system dependent strings.
3099
3100 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
3101
3102         * posix/bug-regex7.c: New file.
3103         * posix/bug-regex8.c: New file.
3104         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
3105
3106 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
3107
3108         * posix/bug-regex4.c (main): Fix typos.
3109         * posix/bug-regex6.c (main): Likewise.
3110
3111 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
3112
3113         * posix/bug-regex6.c (main): Fix warnings.
3114
3115         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
3116
3117         * iconv/iconv_prog.c (main): Improve error message for the cases
3118         where -t and/or -f parameter are missing.
3119
3120 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
3121
3122         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
3123         (re_search): Likewise.
3124         (re_match_2): Likewise.
3125         (re_search_2): Likewise.
3126         (re_search_stub): New function.
3127         (re_search_2_stub): New function.
3128         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
3129
3130 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
3131
3132         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
3133         (re_string_eoi): Use STOP instead of LEN.
3134         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
3135         (re_string_construct): Likewise.
3136         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
3137         * posix/regexec.c (re_search_internal): Add a new argument STOP
3138         so that it can handle the argument STOP of re_search_2 and re_match_2
3139         correctly.
3140         (regexec): Adapt to new I/F of re_search_internal.
3141         (re_search_stub): Likewise.
3142
3143 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
3144
3145         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
3146
3147         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
3148
3149         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
3150         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
3151         of __divdi3.
3152
3153         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
3154         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
3155         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
3156         alias for adjtimex syscall.
3157
3158         * elf/dl-minimal.c: Define __assert_fail_internal.
3159         * assert/assert.c: Likewise.
3160         * include/assert.h: Define __assert_file macro if !SHARED and not
3161         NOT_IN_libc.
3162
3163         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
3164         programs.
3165         * locale/Makefile: Likewise.
3166         * nscd/Makefile: Likewise.
3167         * catgets/Makefile: Likewise.
3168
3169 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
3170
3171         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
3172         compute current position.
3173
3174         * stdio-common/tst-fseek.c (main): Improve error messages.
3175
3176         * libio/tst-freopen.c (main): Remove unused variable.
3177
3178         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
3179         succesful seek call.  Simplify error checking.
3180
3181 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
3182
3183         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
3184         * sysdeps/ia64/fpu/libm_support.h: Likewise.
3185
3186 2002-07-19  Roland McGrath  <roland@frob.com>
3187
3188         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
3189         __libc_enable_secure is set.
3190
3191 2002-07-24  Roland McGrath  <roland@frob.com>
3192
3193         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
3194         This implementation supports only IPv4.
3195         * inet/ifaddrs.h: New file.
3196         * sysdeps/generic/ifaddrs.c: New file.
3197         * sysdeps/gnu/ifaddrs.c: New file.
3198         * inet/test-ifaddrs.c: New file.
3199         * inet/Makefile (routines): Add ifaddrs.
3200         (headers): Add ifaddrs.h here.
3201         (tests): Add test-ifaddrs.
3202         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
3203
3204         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
3205         socket call to get an AF_INET socket, instead of using __opensock.
3206         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
3207
3208         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
3209         if not -1 use it instead of calling __opensock.
3210         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
3211         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
3212         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
3213
3214         * sysdeps/mach/hurd/ifreq.h: New file.
3215         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
3216         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
3217         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
3218
3219         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
3220         which gets moved around.  Calculate size of mmap'd buffer instead.
3221
3222 2002-07-24  Philip Blundell  <philb@gnu.org>
3223
3224         * sysdeps/unix/arm/brk.S: Improve schedule.
3225         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
3226         efficient instruction.
3227         (__socket): Optimize return sequence.
3228
3229 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
3230
3231         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
3232         sockets on old kernels.
3233
3234 2002-07-22  Philip Blundell  <philb@gnu.org>
3235
3236         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
3237         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
3238         alias.
3239
3240 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
3241
3242         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
3243         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
3244
3245         * locale/programs/locarchive.c (add_locale_to_archive): Correct
3246         test to detect duplicate locales.
3247
3248         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
3249         position would be before beginning of file.
3250         (_IO_file_seekoff_mmap): Likewise.
3251         * libio/Makefile (tests): Add bug-fseek.
3252         * libio/bug-fseek.c: New file.
3253
3254         * intl/explodename.c: Remove support for CEN-style locale variables.
3255         It was never used and shouldn't be since it's not portable.
3256         * intl/finddomain.c: Likewise.
3257         * intl/l10nflist.c: Likewise.
3258         * intl/loadinfo.h: Likewise.
3259         * locale/findlocale.c: Likewise.
3260
3261 2002-07-24  Roland McGrath  <roland@frob.com>
3262
3263         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
3264         position, calculate it to take into account an active pushback buffer.
3265
3266         * libio/Makefile (tests): Add bug-ungetc.
3267         * libio/bug-ungetc.c: New file.
3268
3269 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
3270
3271         * sysdeps/generic/libc-tls.c: New file.
3272         * csu/Makefile (routines): Add libc-tls.
3273         (static-only-routines): Add libc-tls.
3274         * elf/dl-support.c (_dl_phdr): New variable.
3275         (_dl_phnum): New variable.
3276         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
3277         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
3278         for !SHARED.  First look through auxiliary vector.  If TLS always
3279         call __pthread_initialize_minimal.
3280
3281         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
3282         in mmap call is never zero.
3283
3284 2002-07-23  Andreas Jaeger  <aj@suse.de>
3285
3286         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
3287         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3288
3289 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
3290
3291         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
3292         creation and removal of the temp file.
3293
3294         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
3295         file creation.
3296         * test-skeleton.c (create_temp_file): New function.
3297
3298 2002-07-22  Andreas Jaeger  <aj@suse.de>
3299
3300         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
3301         local label.
3302
3303 2002-07-21  Roland McGrath  <roland@frob.com>
3304
3305         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
3306         put -I../include before -I../stdlib so we get the right errno.h et al.
3307         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
3308         (CFLAGS-wcstof.c): Likewise.
3309         (CFLAGS-wcstold.c): Likewise.
3310         (CFLAGS-wcstod_l.c): Likewise.
3311         (CFLAGS-wcstof_l.c): Likewise.
3312         (CFLAGS-wcstold_l.c): Likewise.
3313
3314 2002-07-19  Roland McGrath  <roland@frob.com>
3315
3316         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
3317
3318 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
3319
3320         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
3321         __ASSUME_AT_XID is defined.
3322         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
3323         for 2.4.1 and up.
3324         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
3325         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
3326
3327         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
3328         (CFLAGS-wcstof.c): Likewise.
3329         (CFLAGS-wcstold.c): Likewise.
3330         (CFLAGS-wcstod_l.c): Likewise.
3331         (CFLAGS-wcstof_l.c): Likewise.
3332         (CFLAGS-wcstold_l.c): Likewise.
3333
3334 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
3335
3336         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
3337         __priority_which_t): Always typedef to int for C++.
3338
3339 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
3340
3341         * configure.in: Add test for __thread support in compiler.
3342         * config.h.in: Add HAVE___THREAD.
3343         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
3344         * include/sys/errno.h: Moved to...
3345         * stdlib/sys/errno.h: ...here.  New file.
3346         * stdlib/errno.h: New file.  Moved from...
3347         * include/errno.h: ...here.  Changed into an internal header defining
3348         libc-local things like __set_errno.
3349         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
3350         bits/errno.h.
3351         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
3352         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
3353         either.
3354         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
3355         from...
3356         (_dl_start_final): ...here.  Add code to initialize tls elements from
3357         bootstrap_map.
3358         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
3359         if USE_TLS && HAVE___THREAD.
3360         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
3361         * sysdeps/mach/hurd/bits/errno.h: Likewise.
3362         * sysdeps/standalone/arm/bits/errno.h: Likewise.
3363         * sysdeps/standalone/bits/errno.h: Likewise.
3364         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
3365         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
3366         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
3367         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
3368         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
3369         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
3370         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
3371         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
3372         use GL(dl_rtld_map), use map parameter.
3373         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3374         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
3375         USE_TLS && HAVE___THREAD.
3376         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
3377         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
3378         TLS code sequence.
3379         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
3380
3381         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
3382         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
3383         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
3384         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
3385         * sysdeps/unix/sysv/linux/readv.c: Likewise.
3386         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3387
3388 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
3389
3390         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
3391         MS_INVALIDATE values.
3392
3393 2002-07-17  Andreas Schwab  <schwab@suse.de>
3394             Ulrich Drepper  <drepper@redhat.com>
3395
3396         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
3397         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
3398         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3399         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3400
3401 2002-07-01  H.J. Lu  <hjl@gnu.org>
3402
3403         * elf/circleload1.c (load_dso): Call "circlemod1" and check
3404         return value.
3405
3406         * elf/circlemod1.c (circlemod1): Return int.
3407         * elf/circlemod2.c (circlemod2): Likewise.
3408         * elf/circlemod2a.c (circlemod2): Likewise.
3409         * elf/circlemod3.c (circlemod3): Likewise.
3410         (circlemod3a): A new function.
3411
3412 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
3413
3414         * catgets/tst-catgets.c (main): Don't expect results for
3415         untranslated messages.
3416
3417         * glibcbug.in: Fix little typo.  Remove STDIO.
3418
3419         * config.h.in: Fail if __FAST_MATH__ is defined.
3420         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
3421         (CPPFLAGS-test-idouble.c): Likewise.
3422         (CPPFLAGS-test-ildouble.c): Likewise.
3423
3424 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
3425
3426         * intl/tst-gettext.sh: Pass -f option to msgfmt.
3427         * intl/tst-gettext.c: Correctly handle untranslated messages in
3428         positive tests.
3429
3430         * po/de.po: Update from translation team.
3431
3432 2002-07-02  H.J. Lu  <hjl@gnu.org>
3433
3434         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
3435         use ll/sc.
3436         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
3437
3438         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
3439         to 2.4.0 for mips.
3440
3441 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
3442
3443         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
3444         TLS fail if USE_TLS is not defined.
3445
3446         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
3447         and adjust state for seek position.  [PR libc/4070]
3448         * libio/Makefile (tests): Add bug-rewind.
3449         * libio/bug-rewind.c: New file.
3450
3451 2002-07-12  Philip Blundell  <philb@gnu.org>
3452
3453         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
3454         (__backtrace): Use it.
3455         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
3456
3457 2002-07-12  Philip Blundell  <philb@gnu.org>
3458
3459         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
3460         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
3461         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
3462         (elf_machine_rela): Remove unused variable.
3463
3464         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
3465         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
3466         define.
3467
3468 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
3469
3470         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
3471
3472 2002-07-14  Andreas Jaeger  <aj@suse.de>
3473
3474         * sysdeps/x86_64/bits/link.h: Add biarch support.
3475
3476 2002-07-13  Andreas Jaeger  <aj@suse.de>
3477
3478         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
3479         Use correct indices.
3480         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
3481
3482 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3483
3484         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
3485         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
3486         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
3487         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
3488         * sysdeps/s390/s390-32/bits/link.h: Remove.
3489         * sysdeps/s390/s390-64/bits/link.h: Remove.
3490         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
3491         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
3492         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
3493         * sysdeps/s390/bits/wordsize.h: New file.
3494         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
3495         elfclass.h.
3496         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
3497         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
3498         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
3499         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
3500         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
3501         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
3502         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
3503         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
3504         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
3505         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
3506         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
3507         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
3508         resource.h.
3509         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
3510         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
3511         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
3512         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
3513         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
3514         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
3515         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
3516         sigaction.h.
3517         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
3518         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
3519         siginfo.h.
3520         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
3521         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
3522         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
3523         socket.h.
3524         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
3525         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
3526         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
3527         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
3528         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
3529         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
3530         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
3531         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
3532         procfs.h.
3533         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
3534         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
3535         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
3536         ucontext.h.
3537         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
3538         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
3539
3540 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
3541
3542         * Versions.def (libc): Add GLIBC_2.3.
3543         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
3544         * stdlib/canonicalize.c: Add compatibility version for realpath
3545         and make new code available in GLIBC_2.3.
3546
3547 2002-07-06  Bruno Haible  <bruno@clisp.org>
3548
3549         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
3550
3551 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
3552
3553         * resolv/res_hconf.c (_res_hconf_init): Move code into new
3554         function do_init.  Use __libc_once.
3555         (do_init): New function.
3556
3557         * iconvdata/iso8859-11.h: Removed.
3558         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
3559         (distribute): Remove iso8859-11.h.
3560         * iconvdata/tst-tables.sh: Add ISO-8859-11.
3561
3562         * stdio-common/vfscanf.c (inchar): Restore errno from previous
3563         underflow operation if c == (W)EOF.
3564
3565 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
3566
3567         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
3568         non-zero, adjust exponent.
3569         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
3570         Remove NO_LONG_DOUBLE aliases.
3571         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
3572         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
3573         (__log1pl): Raise divide by zero and invalid exceptions when needed.
3574         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
3575         1**y and -1**+-Inf.
3576         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
3577         Fix BITS_PER_MP_LIMB 32 extraction.
3578         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
3579         exceptions for qNaNs.
3580         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
3581         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
3582         Raise exceptions when needed.  Don't recurse unnecessarily.
3583         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
3584         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
3585         exceptions for qNaNs.
3586         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
3587         to fix *quo return value sign.
3588         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
3589         case -Inf argument.
3590         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
3591
3592 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
3593
3594         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
3595         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
3596         -DNDEBUG.
3597
3598 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
3599
3600         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
3601         the result.
3602
3603         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
3604         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
3605
3606         * Versions.def (libthread_db): Add GLIBC_2.3.
3607
3608 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
3609
3610         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
3611         new stream if possible.
3612         * libio/freopen64.c (freopen64): Likewise.
3613         * libio/Makefile (tests): Add tst-freopen.
3614         * libio/tst-freopen.c: New file.
3615
3616 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
3617
3618         * libio/stdio.h (obstack_printf): Add format attribute.
3619         (obstack_vprintf): Likewise.
3620
3621 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
3622
3623         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
3624         resp. 16 bytes on 32-bit resp. 64-bit platforms.
3625         (re_charset_t, re_string_t): Reorder structure members for 64-bit
3626         architectures.
3627
3628 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
3629
3630         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
3631         (init_dfa): ...here.
3632
3633 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
3634
3635         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
3636         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
3637         nodes in parse trees.
3638         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
3639         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
3640         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
3641         nodes which can epsilon transit.
3642         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
3643         to IS_EPSILON_NODE macro.
3644         * posix/regexec.c (update_regs): New function to update registers
3645         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
3646         (proceed_next_node): Use the entities of the nodes to determine
3647         whether the node can transit to.
3648         (set_regs): Use update_regs function to update registers.
3649
3650 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
3651
3652         * posix/bug-regex4.c (main): Remove duplicate setlocale.
3653         * posix/bug-regex6.c: New file.
3654         * posix/Makefile (tests): Add bug-regex6.
3655         (bug-regex6-ENV): Set LOCPATH.
3656
3657 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
3658
3659         * Versions.def [libpthread]: Add GLIBC_2.2.6.
3660         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
3661
3662 2002-07-06  Bruno Haible  <bruno@clisp.org>
3663
3664         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
3665
3666 2002-07-06  Bruno Haible  <bruno@clisp.org>
3667
3668         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
3669         declarations.
3670
3671         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
3672
3673         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
3674
3675         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
3676         not _UTSNAME_H.
3677         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
3678
3679         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
3680         * sysdeps/generic/bits/ustat.h: Likewise.
3681
3682         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
3683
3684 2002-07-08  Andreas Jaeger  <aj@suse.de>
3685
3686         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
3687
3688 2002-07-08  Andreas Jaeger  <aj@suse.de>
3689
3690         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
3691
3692 2002-07-06  Andreas Jaeger  <aj@suse.de>
3693
3694         * sysdeps/x86_64/fpu/bits/mathinline.h: New.
3695         * sysdeps/x86_64/fpu/s_copysign.S: New.
3696         * sysdeps/x86_64/fpu/s_copysignf.S: New.
3697         * sysdeps/x86_64/fpu/s_copysignl.S: New.
3698         * sysdeps/x86_64/fpu/s_finitel.S: New.
3699         * sysdeps/x86_64/fpu/s_fmax.S: New.
3700         * sysdeps/x86_64/fpu/s_fmaxf.S: New.
3701         * sysdeps/x86_64/fpu/s_fmaxl.S: New.
3702         * sysdeps/x86_64/fpu/s_fmin.S: New.
3703         * sysdeps/x86_64/fpu/s_fminf.S: New.
3704         * sysdeps/x86_64/fpu/s_fminl.S: New.
3705
3706 2002-06-05  Brian Youmans <3diff@gnu.org>
3707
3708         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
3709         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
3710         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
3711         * sysdeps/ia64/fpu/e_asin.S: Likewise.
3712         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
3713         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
3714         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
3715         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
3716         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
3717         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
3718         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
3719         * sysdeps/ia64/fpu/e_exp.S: Likewise.
3720         * sysdeps/ia64/fpu/e_expf.S: Likewise.
3721         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
3722         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
3723         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
3724         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
3725         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
3726         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
3727         * sysdeps/ia64/fpu/e_log.S: Likewise.
3728         * sysdeps/ia64/fpu/e_logf.S: Likewise.
3729         * sysdeps/ia64/fpu/e_pow.S: Likewise.
3730         * sysdeps/ia64/fpu/e_powf.S: Likewise.
3731         * sysdeps/ia64/fpu/e_powl.S: Likewise.
3732         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
3733         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
3734         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
3735         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
3736         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
3737         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
3738         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
3739         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
3740         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
3741         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
3742         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
3743         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
3744         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
3745         * sysdeps/ia64/fpu/libm_error.c: Likewise.
3746         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
3747         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
3748         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
3749         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
3750         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
3751         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
3752         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
3753         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
3754         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
3755         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
3756         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
3757         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
3758         * sysdeps/ia64/fpu/s_logb.S: Likewise.
3759         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
3760         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
3761         * sysdeps/ia64/fpu/s_modf.S: Likewise.
3762         * sysdeps/ia64/fpu/s_modff.S: Likewise.
3763         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
3764         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
3765         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
3766         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
3767         * sysdeps/ia64/fpu/s_rint.S: Likewise.
3768         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
3769         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
3770         * sysdeps/ia64/fpu/s_round.S: Likewise.
3771         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
3772         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
3773         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
3774         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
3775         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
3776         * sysdeps/ia64/fpu/s_significand.S: Likewise.
3777         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
3778         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
3779         * sysdeps/ia64/fpu/s_tan.S: Likewise.
3780         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
3781         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
3782         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
3783         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
3784         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
3785         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
3786         reflect IBM donation of math library to FSF
3787         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3788         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3789         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3790         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3791         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3792         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3793         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3794         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3795         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3796         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3797         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3798         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3799         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3800         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3801         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3802         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3803         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3804         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3805         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3806         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3807         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3808         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
3809         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
3810         * sysdeps/vax/__longjmp.c: Likewise.
3811         * sysdeps/vax/setjmp.c: Likewise.
3812         * libio/filedoalloc.c: Fixed BSD copying permission notice to
3813         remove advertising clause
3814         * sysdeps/vax/htonl.s: Likewise.
3815         * sysdeps/vax/htons.s: Likewise.
3816         * libio/wfiledoalloc.c: Likewise.
3817         * stdlib/random.c: Likewise.
3818         * stdlib/random_r.c: Likewise.
3819         * sysdeps/mach/sys/reboot.h: Likewise.
3820         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
3821         * sysdeps/posix/getaddrinfo.c: Likewise.
3822         * sunrpc/des_impl.c: Updated license permission notice to Lesser
3823         GPL and corrected pointer to point to the correct license.
3824
3825 2002-07-04  Andreas Jaeger  <aj@suse.de>
3826
3827         * scripts/config.guess: New upstream version.
3828         * scripts/config.sub: Likewise.
3829
3830 2002-07-02  Andreas Schwab  <schwab@suse.de>
3831
3832         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
3833         in parallel to bumping up the buffer pointer.
3834
3835 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
3836
3837         * math/libm-test.inc (acos_test): Add missing L suffix for
3838         expected result.
3839         (cpow_test): Likewise.
3840         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
3841         error for acos (0.0625).
3842
3843 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
3844
3845         * locale/iso-639.def: Add entry for Ganda.
3846         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
3847         definition.
3848         (address_finish): Handle entries with two letter ISO 639 code.
3849
3850         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
3851         directory if it existed before.
3852         * iconv/iconvconfig.c: Implement --prefix option.
3853
3854         * math/libm-test.inc (cexp_test): Add missing L suffix for
3855         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
3856         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
3857         1.25 i).
3858
3859 2002-05-29  H.J. Lu  <hjl@gnu.org>
3860
3861         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
3862         is turned on.
3863
3864 2002-05-28  H.J. Lu  <hjl@gnu.org>
3865
3866         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
3867         are not dlopened on the dependency list of a dlopened object.
3868
3869 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
3870
3871         * elf/dl-lookup.c (add_dependency): It is not necessary to add
3872         dependencies if they are created between objects which are created
3873         while processing RTLD_NOW for objects loaded as part of the same
3874         dlopen call.
3875
3876 2002-06-14  H.J. Lu  <hjl@gnu.org>
3877
3878         * elf/Makefile (tests): Add circleload1.
3879         (modules-names): Add circlemod1, circlemod2, circlemod3,
3880         circlemod1a, circlemod2a and circlemod3a.
3881         ($(objpfx)circleload1): New target.
3882         ($(objpfx)circleload1.out): Likewise.
3883         ($(objpfx)circlemod1.so): Likewise.
3884         ($(objpfx)circlemod2.so): Likewise.
3885         ($(objpfx)circlemod1a.so): Likewise.
3886         ($(objpfx)circlemod2a.so): Likewise.
3887         * elf/circleload1.c: New file.
3888         * elf/circlemod1.c: New file.
3889         * elf/circlemod1a.c: New file.
3890         * elf/circlemod2.c: New file.
3891         * elf/circlemod2a.c: New file.
3892         * elf/circlemod3.c: New file.
3893         * elf/circlemod3a.c: New file.
3894
3895 2002-06-18  Amos Waterland  <apw@us.ibm.com>
3896
3897         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
3898         file descriptor.
3899         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
3900         add check for fd not open for writing.
3901
3902         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
3903         completed element(s) and do not suspend thread if so.  Patch
3904         heavily modified by drepper.
3905
3906         * rt/tst-aio7.c: New file.  Regression test for problems which the
3907         above three changes fix.
3908         * rt/Makefile (tests): Add tst-aio7.
3909
3910 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
3911
3912         * rt/tst-aio6.c: Fix comment.
3913
3914         * catgets/gencat.c (read_input_file): Handle more than one slash
3915         at end of line correctly [PR libc/3926].
3916         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
3917
3918         * catgets/sample.SJIS: Add test case for above bug.
3919         * catgets/test-gencat.c: Adjust test code.
3920         * catgets/test-gencat.sh: Adjust expected results.
3921
3922         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
3923         to skip relative relocations.
3924         Patch by Geoff Keating <geoffk@redhat.com>.
3925
3926 2002-05-26  Bruno Haible  <bruno@clisp.org>
3927
3928         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
3929         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
3930         All callers changed.
3931         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
3932         STANDARD_FROM_LOOP_ERR_HANDLER.
3933         (utf8_internal_loop): Likewise.
3934         (ucs2_internal_loop): Likewise.
3935         (internal_ucs2_loop): Perform error handling like in
3936         STANDARD_FROM_LOOP_ERR_HANDLER.
3937         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
3938         in STANDARD_FROM_LOOP_ERR_HANDLER.
3939         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3940         handling.
3941         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
3942         in STANDARD_FROM_LOOP_ERR_HANDLER.
3943         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3944         handling.
3945         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
3946         in STANDARD_FROM_LOOP_ERR_HANDLER.
3947         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3948         handling.
3949         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
3950         STANDARD_FROM_LOOP_ERR_HANDLER.
3951         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
3952         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
3953         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
3954         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
3955         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
3956         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
3957         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
3958         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
3959         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
3960         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
3961         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
3962         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
3963         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
3964         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
3965         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
3966         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
3967         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
3968         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
3969         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
3970         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
3971         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
3972         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
3973         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
3974         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
3975         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
3976         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
3977         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
3978         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
3979         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
3980         an error, still set result = __GCONV_ILLEGAL_INPUT.
3981         (BODY for TO_LOOP): Likewise.
3982         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
3983         STANDARD_FROM_LOOP_ERR_HANDLER.
3984         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3985         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
3986         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3987         handling.
3988         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3989         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
3990         STANDARD_FROM_LOOP_ERR_HANDLER.
3991         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3992         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
3993         STANDARD_FROM_LOOP_ERR_HANDLER.
3994         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3995         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
3996         STANDARD_FROM_LOOP_ERR_HANDLER.
3997         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3998         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
3999         STANDARD_FROM_LOOP_ERR_HANDLER.
4000         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
4001         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
4002         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
4003         handling.
4004         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
4005         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
4006         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
4007         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
4008
4009 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4010
4011         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
4012         labels in assembler instructions.
4013
4014 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
4015
4016         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
4017         not enough content is available.
4018         * libio/tst-eof.c: New file.
4019         * libio/Makefile (tests): Add tst-eof.
4020
4021         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
4022         update atime.
4023         * libio/tst-atime.c: New file.
4024         * libio/Makefile (tests): Add tst-atime.
4025
4026         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
4027         handling of overly long words.
4028
4029 2002-06-25  Andreas Jaeger  <aj@suse.de>
4030
4031         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
4032         to not use 32-bit pc relative relocations.
4033         (elf_machine_dynamic): Likewise.
4034
4035 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
4036
4037         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
4038         (__GETDENTS): Check for failed getdents64 syscall.
4039         * dirent/Makefile (tests): Add bug-readdir1.
4040         * dirent/bug-readdir1.c: New file.
4041
4042 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
4043
4044         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
4045         lookups.
4046         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
4047         code.  Print TLS modid and offset for modules containing PT_TLS
4048         segments.
4049
4050 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
4051
4052         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
4053         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
4054         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
4055         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
4056
4057 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
4058
4059         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
4060         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
4061         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
4062         * nss/getXXent_r.c (NEW, NEW1): Define.
4063         (NEW (REENTRANT_GETNAME)): Strong alias to
4064         INTERNAL (REENTRANT_GETNAME).
4065         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
4066
4067 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
4068
4069         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
4070         (_IO_file_jumps_mmap): Use it.
4071         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
4072         * libio/libioP.h: Remove _IO_wdefault_setbuf and
4073         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
4074         prototype.
4075         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
4076         (_IO_wfile_jumps_mmap): Don't use it anymore.
4077         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
4078         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
4079         _IO_wdefault_setbuf.
4080         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
4081         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
4082         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
4083
4084 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
4085
4086         * libio/Makefile (tests): Add tst-mmap-setvbuf.
4087         * libio/tst-mmap-setvbuf.c: New test.
4088
4089 2002-06-21  Andreas Jaeger  <aj@suse.de>
4090
4091         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
4092
4093 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
4094
4095         * include/unistd.h (__fork_internal): Remove.
4096         (__fork): Don't define to __fork_internal.
4097         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
4098         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
4099         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
4100         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
4101         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
4102
4103 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
4104
4105         * po/hr.po: New file.
4106
4107 2002-06-11  Wolfram Gloger  <wg@malloc.de>
4108
4109         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
4110         Reported by Michael Meissner <meissner@redhat.com>.
4111
4112 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
4113
4114         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
4115         Patch by Hans Boehm <hans_boehm@hp.com>.
4116
4117 2002-06-20  Andreas Jaeger  <aj@suse.de>
4118
4119         * math/libm-test.inc: Use exact values as input parameters,
4120         compute output parameters with 36 digits for 128-bit long doubles.
4121         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
4122         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
4123         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
4124
4125 2002-06-13  Stephen L Moshier  <steve@moshier.net>
4126
4127         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
4128         argument or result is subnormal.
4129
4130 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
4131
4132         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
4133         quotient.
4134         * sysdeps/i386/fpu/s_remquof.S: Likewise.
4135         * sysdeps/i386/fpu/s_remquol.S: Likewise.
4136
4137         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
4138
4139 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
4140
4141         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
4142         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
4143         Reported by Peter A. Buhr.
4144
4145 2002-06-15  Roland McGrath  <roland@frob.com>
4146
4147         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
4148         warning.
4149
4150         * sysdeps/mach/hurd/getcwd.c
4151         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
4152
4153         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
4154         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
4155
4156         * sysdeps/alpha/divrem.h: Use local label instead of global one for
4157         jump to local subroutine.
4158
4159 2002-06-14  Roland McGrath  <roland@frob.com>
4160
4161         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
4162         * sysdeps/mach/hurd/Makeconfig: ... here.
4163
4164 2002-06-13  Andreas Schwab  <schwab@suse.de>
4165
4166         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
4167         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
4168         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
4169
4170 2002-06-13  Roland McGrath  <roland@frob.com>
4171
4172         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
4173         * hurd/hurdstartup.c (_hurd_startup): Likewise.
4174         Use intptr_t instead of int for argc in stack layout.
4175         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
4176         (_dl_init_first): Likewise.
4177         (_hurd_stack_setup): Likewise.
4178         (init1): Add a cast.
4179         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
4180
4181         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
4182         argument to pfinet_siocgifconf RPC.
4183
4184 2002-06-13  Andreas Schwab  <schwab@suse.de>
4185
4186         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
4187         expansion order.
4188
4189 2002-06-12  Roland McGrath  <roland@frob.com>
4190
4191         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
4192         if already defined.
4193         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
4194         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
4195
4196 2002-06-11  Roland McGrath  <roland@frob.com>
4197
4198         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
4199         file on [!RTLD_STAT64].
4200         * sysdeps/mach/hurd/fxstat64.c: Likewise.
4201
4202         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
4203         (__fdopen): Use INTUSE.
4204         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
4205
4206         * stdio-common/tmpfile64.c: File removed.
4207         * sysdeps/generic/tmpfile64.c: New file.
4208         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
4209         if not already defined.
4210         (tmpfile): Use it in place of __GT_FILE.
4211
4212         * include/unistd.h: Declare __chown_internal.
4213
4214         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
4215         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
4216
4217 2002-06-09  Roland McGrath  <roland@frob.com>
4218
4219         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
4220         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
4221         value of HURD_INTERFACE_VERSION >= 20020609.
4222         * sysdeps/mach/hurd/configure: Regenerated.
4223         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
4224         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
4225         convert a struct stat64 into a struct stat and return 0 or -1
4226         with errno set to EOVERFLOW.
4227         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
4228         for struct statfs64 to struct statfs.
4229         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
4230         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
4231         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
4232         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
4233         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
4234         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
4235         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4236         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
4237         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
4238         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
4239         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
4240         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
4241         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
4242         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
4243         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
4244         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
4245         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
4246         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
4247         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
4248         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
4249         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
4250         Use struct stat64 for io_stat argument.
4251         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
4252         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
4253         to io_seek.
4254         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
4255         * hurd/fd-write.c (_hurd_fd_write): Likewise.
4256         * hurd/hurd/fd.h: Update decls.
4257         * sysdeps/mach/hurd/getcwd.c
4258         (_hurd_canonicalize_directory_name_internal): Use ino64_t
4259         and struct dirent64.
4260         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
4261         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
4262         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
4263         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
4264
4265 2002-06-08  Roland McGrath  <roland@frob.com>
4266
4267         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
4268         instead of unsigned long int for __allocation and __size members.
4269
4270 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
4271
4272         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
4273         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
4274         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
4275         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
4276
4277 2002-06-07  Roland McGrath  <roland@frob.com>
4278
4279         * sysdeps/mach/hurd/bits/environments.h: File removed.
4280
4281 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
4282
4283         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
4284         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
4285         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
4286         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
4287         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
4288         (sendfile64): Likewise.
4289         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
4290         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
4291         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
4292         Likewise.
4293         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
4294
4295         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
4296         already defined.
4297
4298 2002-06-04  Bruno Haible  <bruno@clisp.org>
4299
4300         * sysdeps/cris/stackinfo.h: New file.
4301
4302         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
4303         to an integer type before performing bit operations on it.
4304
4305 2002-06-05  Roland McGrath  <roland@frob.com>
4306
4307         * sysdeps/generic/sendfile.c: Include <errno.h>.
4308         * sysdeps/generic/sendfile64.c: Likewise.
4309
4310         * io/Makefile (routines): Add sendfile and sendfile64.
4311         (headers): Add sys/sendfile.h to the list.
4312         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
4313         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
4314         * io/sys/sendfile.h: ... here.
4315         * sysdeps/generic/sendfile.c: New file.
4316         * sysdeps/generic/sendfile64.c: New file.
4317
4318         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
4319         Move sendfile, sendfile64 to ...
4320         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
4321         * sysdeps/mach/hurd/sendfile.c: New file.
4322         * sysdeps/mach/hurd/sendfile64.c: New file.
4323
4324         * sysdeps/mach/nanosleep.c: New file.
4325
4326 2002-06-04  Roland McGrath  <roland@frob.com>
4327
4328         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
4329         * sysdeps/alpha/elf/configure: New file (generated).
4330
4331 2002-06-02  Roland McGrath  <roland@frob.com>
4332
4333         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
4334
4335 2002-06-01  Roland McGrath  <roland@frob.com>
4336
4337         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
4338         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
4339
4340 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
4341
4342         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
4343         Add nsmap.
4344         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
4345         Remove nstimes setting.
4346         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
4347         * resolv/res_send.c (res_nsend): Don't close unconditionally if
4348         there is mix of IPv6 and IPv4 nameservers.
4349         Use nsmap array to find free slots and preserve nameserver ordering.
4350         Fix RES_ROTATE.
4351
4352 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
4353
4354         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
4355         use this header with LFS.
4356
4357         * po/sk.po: Update from translation team.
4358
4359 2002-05-28  Andreas Schwab  <schwab@suse.de>
4360
4361         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
4362         message when finding object of wrong class.
4363
4364 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
4365
4366         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
4367         Patch by <radu@netsoft.ro>.
4368
4369 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
4370
4371         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
4372         Add readahead.
4373         * sysdeps/unix/sysv/linux/readahead.c: New file.
4374         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
4375         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
4376         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
4377         Add sendfile64 alias to sendfile syscall.
4378         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4379         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4380         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4381         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
4382         syscall.
4383
4384         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
4385         special section for PIC register loading.
4386         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4387
4388         * config.h.in: Define HAVE_HIDDEN.
4389         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
4390
4391         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
4392
4393 2002-05-28  Roland McGrath  <roland@frob.com>
4394
4395         * sysdeps/mach/alpha/setfpucw.c: New file.
4396
4397 2002-05-26  Roland McGrath  <roland@frob.com>
4398
4399         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
4400         Use integer_t instead of int for IOC_VOID case.
4401
4402 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
4403
4404         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
4405
4406 2002-05-26  Bruno Haible  <bruno@clisp.org>
4407
4408         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
4409         end of the ISO-8859-7 from idx table.
4410
4411 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
4412
4413         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
4414
4415 2002-05-24  David S. Miller  <davem@redhat.com>
4416
4417         * string/bits/string2.h (memset): Do not try to optimize when
4418         not _STRING_ARCH_unaligned if GCC will do the right thing.
4419
4420 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
4421
4422         * posix/regex.c: Define `inline' as a macro into nothing for the
4423         compilers which lack the keyword.
4424         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
4425         for the compatibility of gawk.
4426         * posix/regcomp.c: Add fake implementation of isblank() for the
4427         environments which lack the function.
4428         Don't use free_charset() in case of non-i18n envs.
4429         (build_range_exp): Don't use i18n related code in case of non-i18n
4430         envs.
4431         (build_collating_symbol): Likewise.
4432         (build_equiv_class): Likewise.
4433         (build_charclass): Likewise.
4434         (re_compile_fastmap_iter): Likewise.
4435         (parse_bracket_exp): Likewise.
4436         (build_word_op): Likewise.
4437         (regfree): Don't use free_charset() in case of non-i18n envs.
4438         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
4439         re_token_type_t in case of non-i18n envs.
4440         Don't define re_charset_t in case of non-i18n envs.
4441         Change the type of wcs of re_string_t from wchar_t to wint_t,
4442         since we store also WEOF.
4443         * posix/regex_internal.c: (re_string_realloc_buffers): Change
4444         the type of wcs of re_string_t from wchar_t to wint_t.
4445         (re_string_reconstruct): Likewise.
4446         (create_ci_newstate): Don't use i18n related code in case of
4447         non-i18n envs.
4448         (create_cd_newstate): Likewise.
4449
4450 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
4451
4452         * iconv/loop.c: Fix typo.
4453
4454 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
4455
4456         * inet/ether_line.c (ether_line): Fix a typo causing only
4457         lower 4 bits of each ethernet address byte being assigned.
4458         Don't modify what line points to.
4459         * inet/tst-ether_aton.c (main): Add ether_line tests.
4460
4461 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
4462
4463         * manual/filesys.texi: Don't make readlink example leak memory
4464         when readlink fails.
4465
4466 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
4467
4468         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
4469         some more security checks.
4470
4471 2002-05-17  David S. Miller  <davem@redhat.com>
4472
4473         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
4474
4475 2002-05-16  David S. Miller  <davem@redhat.com>
4476
4477         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
4478         (elf_machine_dynamic): Use it to force PIC register to be loaded.
4479         (elf_machine_load_address): Likewise.
4480         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
4481
4482         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
4483         is unaligned, do not forget to fully initialize %g1 magic value.
4484
4485         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
4486         register definitions and provide 32-bit variants of structures
4487         during 64-bit builds.
4488
4489         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
4490         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
4491         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
4492         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
4493         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
4494         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
4495         Do not clear implicit one bit here, it must be done post-rounding.
4496         Only pad to the left using left shift if value uses less than the
4497         available fractional bits.
4498
4499 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4500
4501         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
4502         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
4503         (shared-only-routines): Likewise.
4504         * sysdeps/powerpc/libgcc-compat.c: New file.
4505         * sysdeps/wordsize-32/cmpdi2.c: Removed.
4506         * sysdeps/wordsize-32/fixdfdi.c: Removed.
4507         * sysdeps/wordsize-32/fixsfdi.c: Removed.
4508         * sysdeps/wordsize-32/shdi3.c: Removed.
4509
4510 2002-05-16  Bruno Haible  <bruno@clisp.org>
4511
4512         * MakeTAGS (libc.pot): Don't sort the output.
4513         * po/header.pot: Update to match xgettext 0.11 output.
4514
4515 2002-05-16  Bruno Haible  <bruno@clisp.org>
4516
4517         * MakeTAGS (subdirs): Remove duplicates.
4518
4519 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
4520
4521         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
4522         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
4523         alias.
4524
4525 2002-05-19  Andreas Jaeger  <aj@suse.de>
4526
4527         * sysdeps/unix/sysv/linux/configure.in: Warn against an
4528         installation in /usr/local.
4529
4530 2002-05-16  Bruno Haible  <bruno@clisp.org>
4531
4532         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
4533         string as argument of #error.
4534
4535 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
4536
4537         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
4538         don't define static.  Remove old __realpath function.  TC1 of
4539         POSIX 2001 will allow the second parameter to be NULL.
4540         * stdlib/test-canon.c: Comment out test for NULL as second
4541         parameter of realpath.
4542
4543         * time/offtime.c (__offtime): Set errno if overflow is detected.
4544
4545         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
4546         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
4547         dl-brk and dl-sbrk.
4548
4549         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
4550         (fdimf): Likewise.
4551
4552 2002-05-15  Roland McGrath  <roland@frob.com>
4553
4554         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
4555
4556 2002-05-12  Bruno Haible  <bruno@clisp.org>
4557
4558         * iconvdata/testdata/EUC-JISX0213: New file.
4559         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
4560         * iconvdata/testdata/SHIFT_JISX0213: New file.
4561         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
4562         * iconvdata/testdata/ISO-2022-JP-3: New file.
4563         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
4564         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
4565         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
4566         contains comments indicating precomposed characters.
4567
4568 2002-04-21  Bruno Haible  <bruno@clisp.org>
4569
4570         * iconvdata/iso-2022-jp-3.c: New file.
4571         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
4572         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
4573         (LDFLAGS-ISO-2022-JP-3.so): New variable.
4574         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
4575         (distribute): Add iso-2022-jp-3.c.
4576
4577 2002-05-12  Bruno Haible  <bruno@clisp.org>
4578
4579         * iconvdata/tst-table-to.c (main): Restore handling of
4580         transliterations, broken by last patch.
4581
4582 2002-05-12  Bruno Haible  <bruno@clisp.org>
4583
4584         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
4585
4586 2002-05-12  Bruno Haible  <bruno@clisp.org>
4587
4588         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
4589         when there is not enough room in the output buffer.
4590         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
4591
4592 2002-04-20  Bruno Haible  <bruno@clisp.org>
4593
4594         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
4595         macros.
4596         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
4597         Also make this macro work if FROM_DIRECTION evaluates to 0.
4598         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
4599         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
4600         of consume_incomplete.
4601         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
4602         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
4603         4, not 8.
4604         * iconvdata/cp1258.c: Likewise.
4605         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
4606         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
4607         not 2.
4608         * iconvdata/ibm933.c: Likewise.
4609         * iconvdata/ibm935.c: Likewise.
4610         * iconvdata/ibm937.c: Likewise.
4611         * iconvdata/ibm939.c: Likewise.
4612         * iconvdata/iso-2022-cn.c: Define
4613         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
4614         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
4615         * iconvdata/iso-2022-cn-ext.c: Likewise.
4616         * iconvdata/iso-2022-jp.c: Define
4617         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
4618         {MIN,MAX}_NEEDED_{FROM,TO}.
4619         * iconvdata/tcvn5712-1.c: Define
4620         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
4621         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
4622         * iconvdata/euc-jisx0213.c: Define
4623         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
4624         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
4625         * iconvdata/shift_jisx0213.c: Likewise.
4626
4627 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4628
4629         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
4630         shdi3, fixdfdi, fixsfdi in csu dir.
4631         (shared-only-routines): Likewise.
4632         * sysdeps/wordsize-32/cmpdi2.c: New file.
4633         * sysdeps/wordsize-32/shdi3.c: New file.
4634         * sysdeps/wordsize-32/fixdfdi.c: New file.
4635         * sysdeps/wordsize-32/fixsfdi.c: New file.
4636         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
4637         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
4638         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
4639
4640         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
4641         Only use va_arg if the argument will be used [PR libc/3259].
4642
4643 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
4644
4645         * catgets/catgets.c (catopen): Free buffer if internal catalog
4646         open fails.
4647
4648 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
4649
4650         * debug/xtrace.sh: Make more robust.  For realtime tracking use
4651         non-buffering methods.
4652         * debug/pcprofiledump.c: Implement -u option.
4653         Patch by Roger Luethi <rl@hellgate.ch>.
4654
4655 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
4656
4657         * include/netinet/in.h (bindresvport_internal): Add prototype.
4658         * include/rpc/auth.h  (authunix_create_internal,
4659         authunix_create_default_internal, authnone_create_internal,
4660         authdes_pk_create_internal): Add prototypes.
4661         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
4662         clntudp_create_internal, clntudp_bufcreate_internal,
4663         clntunix_create_internal): Add prototypes.
4664         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
4665         svc_getreq_internal, svc_getreq_common_internal,
4666         svc_getreqset_internal, svc_getreq_poll_internal,
4667         svc_register_internal, svc_unregister_internal,
4668         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
4669         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
4670         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
4671         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
4672         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
4673         * inet/rcmd.c (rcmd_af): Use __listen.
4674         (rresvport_af): Use __bind.
4675         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
4676         authunix_create, authunix_create_default, authnone_create,
4677         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
4678         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
4679         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
4680         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
4681         _authenticate, add INTDEF after such function definitions.
4682         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
4683         __setsockopt, __getsockname instead of non-__ variants.
4684         * sunrpc/pmap_rmt.c: Likewise.
4685         * sunrpc/rtime.c: Likewise.
4686         * sunrpc/svc_udp.c: Likewise.
4687         * sunrpc/clnt_unix.c: Likewise.
4688         * sunrpc/svc_unix.c: Likewise.
4689         * sunrpc/bindrsvprt.c: Likewise.
4690         * sunrpc/svc_tcp.c: Likewise.
4691         * sunrpc/auth_none.c: Likewise.
4692         * sunrpc/clnt_raw.c: Likewise.
4693         * sunrpc/clnt_tcp.c: Likewise.
4694         * sunrpc/auth_unix.c: Likewise.
4695         * sunrpc/key_call.c: Likewise.
4696         * sunrpc/clnt_gen.c: Likewise.
4697         * sunrpc/pm_getmaps.c: Likewise.
4698         * sunrpc/clnt_simp.c: Likewise.
4699         * sunrpc/pmap_clnt.c: Likewise.
4700         * sunrpc/svc_run.c: Likewise.
4701         * sunrpc/svc.c: Likewise.
4702         * sunrpc/svc_simple.c: Likewise.
4703         * sunrpc/pm_getport.c: Likewise.
4704         * sunrpc/auth_des.c: Likewise.
4705         * sunrpc/svc_auth.c: Likewise.
4706         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
4707         __register_frame_info_table_bases, __deregister_frame_info_bases):
4708         Add INTDEF.
4709         (__register_frame_info_bases_internal,
4710         __register_frame_info_table_bases_internal,
4711         __deregister_frame_info_bases_internal): Add prototypes.
4712         (__register_frame_info, __register_frame): Use INTUSE in call to
4713         __register_frame_info_bases.
4714         (__register_frame_info_table): Similarly.
4715         (__deregister_frame_info, __deregister_frame): Similarly.
4716         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
4717         sendto as weak alias.
4718         * sysdeps/mach/hurd/sendto.c: Likewise.
4719         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
4720         recvfrom as weak alias.
4721         * sysdeps/mach/hurd/recvfrom.c: Likewise.
4722         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
4723         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
4724         recvmsg as weak alias.
4725         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
4726         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
4727         sendmsg as weak alias.
4728         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
4729         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
4730         setsockopt, add setsockopt as weak alias.
4731         * sysdeps/mach/hurd/setsockopt.c: Likewise.
4732         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
4733         weak alias.
4734         * sysdeps/mach/hurd/bind.c: Likewise.
4735         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
4736         as weak alias.
4737         * sysdeps/mach/hurd/listen.c: Likewise.
4738         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
4739         getsockname, add getsockname as weak alias.
4740         * sysdeps/mach/hurd/getsockname.c: Likewise.
4741         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
4742         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
4743         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
4744         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
4745         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
4746         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
4747         Add aliases.
4748         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4749         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4750         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4751         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4752         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
4753         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
4754         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
4755         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
4756         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
4757         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
4758         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
4759         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
4760
4761 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
4762
4763         * locale/programs/localedef.h (show_archive_content): Add verbose
4764         argument.
4765         * locale/programs/localedef.c (main): Adjust caller.
4766         * locale/programs/locarchive.c (struct nameent, struct dataent): New.
4767         (nameentcmp, dataentcmp): New functions.
4768         (xstrcmp): Remove.
4769         (show_archive_content): Print verbose listing with --list-archive -v.
4770
4771 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
4772
4773         * locale/programs/locarchive.c (open_archive): Take extra argument
4774         readonly.  If true open file with O_RDONLY and don't create the
4775         archive if it doesn't exist.
4776         Adapt all callers.
4777         (close_archive): Don't do anything if fd element is -1.
4778         * locale/programs/localedef.h (open_archive): Adjust prototype.
4779         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
4780         call.
4781
4782         * malloc/malloc.c (__posix_memalign): Correct check for size of
4783         alignment value [PR libc/3444].
4784
4785         * include/stdio.h: Remove references to old stdio implementation.
4786
4787         * libio/Makefile (bug-ungetwc2-ENV): Define.
4788
4789 2002-05-13  Roland McGrath  <roland@frob.com>
4790
4791         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
4792
4793         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
4794
4795 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
4796
4797         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
4798         Allocate three, not two, more than LEN when appending '/.'.
4799         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
4800         if NAME ends with '/.' if it is shorter than 2 chars.
4801
4802 2002-05-12  Roland McGrath  <roland@frob.com>
4803
4804         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
4805         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
4806
4807         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
4808         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
4809
4810 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
4811
4812         * sysdeps/ia64/Makefile: Remove extra endif.
4813         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
4814
4815 2002-05-10  Andreas Schwab  <schwab@suse.de>
4816
4817         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
4818
4819 2002-05-09  Andreas Jaeger  <aj@suse.de>
4820
4821         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
4822         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
4823         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
4824
4825         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
4826         * sysdeps/wordsize-64/glob.c: ...here.
4827         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
4828         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
4829         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
4830
4831 2002-05-08  Roland McGrath  <roland@frob.com>
4832
4833         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
4834         O_NOTRANS flag in "." lookup.
4835
4836 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
4837
4838         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
4839
4840 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
4841
4842         * locale/duplocale.c (__duplocale): Update special members only
4843         when allocation succeeded.
4844
4845 2002-05-03  Roland McGrath  <roland@frob.com>
4846
4847         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
4848         we can only build libc.so.0.3(GLIBC_2.2.6) now.
4849
4850 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
4851
4852         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
4853         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
4854         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
4855         * sysdeps/ia64/ia64libgcc.S: New file.
4856
4857 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
4858
4859         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
4860
4861         * malloc/memusage.c: Distinguish anonymous mmap.
4862
4863 2002-05-01  Roland McGrath  <roland@frob.com>
4864
4865         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
4866         and use INTDEF on it.
4867         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
4868
4869         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
4870
4871         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
4872
4873 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
4874
4875         * malloc/memusage.c: Add support for tracking mmap & friends.
4876         * malloc/memusage.sh: Implement -m/--mmap option.
4877
4878 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
4879
4880         * locale/programs/locarchive.c (create_archive): Add archivefname
4881         argument, create fname from it.
4882         (enlarge_archive): Honour output_prefix.
4883         (open_archive): Likewise.
4884
4885 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
4886
4887         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
4888         too many stpcpy macros.
4889
4890 2002-04-26  Bruno Haible  <bruno@clisp.org>
4891
4892         * locale/programs/ld-collate.c (collate_read): Cast first argument
4893         for "%.*s" to int.
4894
4895 2002-04-26  Bruno Haible  <bruno@clisp.org>
4896
4897         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
4898         __dcngettext_internal): New declarations.
4899         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
4900         attribute declarations.
4901
4902 2002-04-30  Roland McGrath  <roland@frob.com>
4903
4904         Removed old GNU stdio implementation; GNU libio is now the only option.
4905         * configure.in: Removed --enable-libio option and @stdio@ subst var.
4906         Define USE_IN_LIBIO unconditionally.
4907         * configure: Regenerated.
4908         * Makeconfig (stdio): Set to libio by default.
4909         * config.make.in (stdio): Variable removed.
4910         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
4911         * sysdeps/unix/sysv/linux/configure: Regenerated.
4912         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
4913         * sysdeps/mach/hurd/configure: Regenerated.
4914         * stdio/.cvsignore: File removed.
4915         * stdio/Makefile: File removed.
4916         * stdio/Versions: File removed.
4917         * stdio/__fbufsize.c: File removed.
4918         * stdio/__flbf.c: File removed.
4919         * stdio/__fpending.c: File removed.
4920         * stdio/__fpurge.c: File removed.
4921         * stdio/__freadable.c: File removed.
4922         * stdio/__freading.c: File removed.
4923         * stdio/__fsetlocking.c: File removed.
4924         * stdio/__fwritable.c: File removed.
4925         * stdio/__fwriting.c: File removed.
4926         * stdio/clearerr.c: File removed.
4927         * stdio/fclose.c: File removed.
4928         * stdio/fcloseall.c: File removed.
4929         * stdio/feof.c: File removed.
4930         * stdio/ferror.c: File removed.
4931         * stdio/fflush.c: File removed.
4932         * stdio/fgetc.c: File removed.
4933         * stdio/fgetpos.c: File removed.
4934         * stdio/fgets.c: File removed.
4935         * stdio/fileno.c: File removed.
4936         * stdio/fmemopen.c: File removed.
4937         * stdio/fopen.c: File removed.
4938         * stdio/fopncook.c: File removed.
4939         * stdio/fputc.c: File removed.
4940         * stdio/fputs.c: File removed.
4941         * stdio/fread.c: File removed.
4942         * stdio/freopen.c: File removed.
4943         * stdio/fseek.c: File removed.
4944         * stdio/fsetpos.c: File removed.
4945         * stdio/ftell.c: File removed.
4946         * stdio/fwrite.c: File removed.
4947         * stdio/getc.c: File removed.
4948         * stdio/getchar.c: File removed.
4949         * stdio/getdelim.c: File removed.
4950         * stdio/gets.c: File removed.
4951         * stdio/glue.c: File removed.
4952         * stdio/internals.c: File removed.
4953         * stdio/linewrap.c: File removed.
4954         * stdio/linewrap.h: File removed.
4955         * stdio/memstream.c: File removed.
4956         * stdio/newstream.c: File removed.
4957         * stdio/obstream.c: File removed.
4958         * stdio/putc.c: File removed.
4959         * stdio/putchar.c: File removed.
4960         * stdio/puts.c: File removed.
4961         * stdio/rewind.c: File removed.
4962         * stdio/setbuf.c: File removed.
4963         * stdio/setbuffer.c: File removed.
4964         * stdio/setlinebuf.c: File removed.
4965         * stdio/setvbuf.c: File removed.
4966         * stdio/stdio.h: File removed.
4967         * stdio/ungetc.c: File removed.
4968         * stdio/vasprintf.c: File removed.
4969         * stdio/vscanf.c: File removed.
4970         * stdio/vsnprintf.c: File removed.
4971         * stdio/vsprintf.c: File removed.
4972         * stdio/vsscanf.c: File removed.
4973         * sysdeps/generic/defs.c: File removed.
4974         * sysdeps/generic/fdopen.c: File removed.
4975         * sysdeps/generic/pipestream.c: File removed.
4976         * sysdeps/generic/stdio_init.c: File removed.
4977         * sysdeps/generic/sysd-stdio.c: File removed.
4978         * sysdeps/generic/vdprintf.c: File removed.
4979         * sysdeps/mach/hurd/defs.c: File removed.
4980         * sysdeps/mach/hurd/fdopen.c: File removed.
4981         * sysdeps/mach/hurd/pipestream.c: File removed.
4982         * sysdeps/mach/hurd/stdio_init.c: File removed.
4983         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
4984         * sysdeps/mach/hurd/vdprintf.c: File removed.
4985         * sysdeps/posix/defs.c: File removed.
4986         * sysdeps/posix/fdopen.c: File removed.
4987         * sysdeps/posix/pipestream.c: File removed.
4988         * sysdeps/posix/stdio_init.c: File removed.
4989         * sysdeps/posix/vdprintf.c: File removed.
4990         * sysdeps/unix/pipestream.c: File removed.
4991         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
4992         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
4993         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
4994
4995 2002-04-29  Roland McGrath  <roland@frob.com>
4996
4997         * include/libc-symbols.h (link_warning): Use `unused' attribute.
4998
4999 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
5000
5001         * sysdeps/generic/tls.h: Describe what must be defined.
5002
5003         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
5004         glob_in_dir [PR libc/3385].
5005         * posix/globtest.sh: Add test case.
5006
5007         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
5008         //TRANSLIT twice.
5009
5010 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
5011
5012         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
5013         _internal symbol handling.
5014         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
5015
5016 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
5017
5018         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
5019         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
5020
5021 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
5022
5023         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
5024         not _LIBC and RE_ENABLE_I18N.
5025         (build_range_exp): Implement for not _LIBC.
5026         (build_collating_symbol): Likewise.
5027         (parse_bracket_exp): Unify redundant error handlings.
5028         Don't erase mbcset for non matching list in multibyte envs.
5029         (build_word_op): Add '_' to matching list for \w operator.
5030         * posix/regex_internal.c (re_string_construct): Invoke
5031         build_upper_buffer in case of not RE_ENABLE_I18N.
5032         (re_string_reconstruct): Don't touch cur_state in case of not
5033         RE_ENABLE_I18N.
5034         * posix/regex_internal.h (attribute_hidden): New macro in case of
5035         not _LIBC.
5036         (re_charset_t): Define range_starts/ends in case of not _LIBC.
5037         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
5038         RE_ENABLE_I18N.
5039         (transit_state_mb): Likewise.
5040         (check_node_accept_bytes): Implement the code evaluating range
5041         expression in case of not _LIBC.
5042         (find_collation_sequence_value): Hide in case of not _LIBC.
5043
5044 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
5045
5046         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
5047         i386/semctl.c.
5048         (__old_semctl, __new_semctl): Only use va_arg if the argument will
5049         be used.
5050
5051 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
5052
5053         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
5054
5055         * sysdeps/ia64/strncpy.S: Fix recovery code.
5056         Patch by David Mosberger <davidm@hpl.hp.com>.
5057
5058 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
5059
5060         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
5061         GLIBC_2.2.6.
5062
5063 2002-04-14  Bruno Haible  <bruno@clisp.org>
5064
5065         * posix/regex.c (re_max_failures): Add back symbol for binary
5066         compatibility.
5067
5068 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
5069
5070         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
5071         of buffer building functions.
5072         * posix/regex_internal.c (re_string_allocate): New function.
5073         (re_string_realloc_buffers): New function.
5074         (re_string_skip_chars): New function.
5075         (re_string_reconstruct): New function.
5076         (re_string_construct): Adapt it to new interface of buffer building
5077         functions.
5078         (re_string_construct_common): Likewise.
5079         (build_wcs_buffer): Likewise.
5080         (build_wcs_upper_buffer): Likewise.
5081         (build_upper_buffer): Likewise.
5082         (re_string_translate_buffer): Likewise.
5083         (re_string_context_at): Adapt it to variable length buffers.
5084         * posix/regex_internal.h (re_string_t): Add new fields to handle
5085         variable length buffers.
5086         (re_match_context_t): Likewise.
5087         * posix/regexec.c (re_search_internal): Adapt it to new interface
5088         of re_string_t and re_match_context_t.
5089         (acquire_init_state_context): Likewise.
5090         (check_matching): Likewise.
5091         (check_halt_state_context): Likewise.
5092         (proceed_next_node): Likewise.
5093         (set_regs): Likewise.
5094         (sift_states_backward): Likewise.
5095         (clean_state_log_if_need): Likewise.
5096         (sift_states_iter_mb): Likewise.
5097         (sift_states_iter_bkref): Likewise.
5098         (add_epsilon_backreference): Likewise.
5099         (transit_state): Likewise.
5100         (transit_state_sb): Likewise.
5101         (transit_state_mb): Likewise.
5102         (transit_state_bkref): Likewise.
5103         (transit_state_bkref_loop): Likewise.
5104         (check_node_accept): Likewise.
5105         (match_ctx_init): Likewise.
5106         (extend_buffers): New function.
5107
5108 2002-04-21  Bruno Haible  <bruno@clisp.org>
5109
5110         * iconvdata/tst-table.sh: For the second check, use the truncated
5111         GB18030 charmap table, like for the first check.
5112
5113 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
5114
5115         * elf/dl-load.c (open_verify): Correct __lseek parameters.
5116         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
5117
5118 2002-04-23  H.J. Lu  <hjl@gnu.org>
5119
5120         * include/math.h (isfinite): Fix a typo.
5121
5122 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
5123
5124         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
5125         which is created by the test suite.
5126
5127 2002-04-20  Bruno Haible  <bruno@clisp.org>
5128
5129         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
5130         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
5131
5132 2002-04-20  Bruno Haible  <bruno@clisp.org>
5133
5134         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
5135         to avoid gcc warning.
5136
5137 2002-04-20  Bruno Haible  <bruno@clisp.org>
5138
5139         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
5140         of data->__statep->__count.
5141
5142 2002-04-20  Bruno Haible  <bruno@clisp.org>
5143
5144         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
5145         tag characters.
5146         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
5147
5148 2002-04-24  Roland McGrath  <roland@frob.com>
5149
5150         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
5151         use END macro instead of our own .end directive.
5152         Use `callsys' insn mnemonic instead of `call_pal'.
5153
5154         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
5155
5156         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
5157         macro; we need this for Hurd.
5158
5159         Log entry was missing for 2002/03/24 commit of rev 1.8,
5160         goes with 2002-03-17 changes.
5161         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
5162         (sysdep_routines): Append ioperm here.
5163         (sysdep_headers): Append sys/io.h here.
5164
5165 2002-04-23  Roland McGrath  <roland@frob.com>
5166
5167         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
5168         * sysdeps/mach/hurd/sendto.c: Likewise.
5169         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
5170         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
5171         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
5172
5173 2002-04-22  Roland McGrath  <roland@frob.com>
5174
5175         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
5176         failure from i386_io_perm_* RPCs to ENOSYS.
5177
5178 2002-04-22  Andreas Jaeger  <aj@suse.de>
5179
5180         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
5181
5182         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
5183
5184         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
5185         register instead of destroying %rbx.
5186
5187 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
5188
5189         * string/string.h: Declare strerror_r also for XPG6.
5190
5191 2002-04-19  Roland McGrath  <roland@frob.com>
5192
5193         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
5194
5195 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
5196
5197         * Makefile: Add handling of xtests and xcheck targets.
5198         * MakeTAGS: Likewise.
5199         * Makeconfig: Likewise.
5200         * Makerules: Likewise.
5201         * Rules: Likewise.
5202         * manual/Makefile: Likewise.
5203         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
5204         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
5205
5206 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
5207
5208         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
5209         authnone_private_s.
5210         * sunrpc/auth_none.c: Include bits/libc-lock.h.
5211         Delete #ifdef _RPC_THREAD_SAFE_ block.
5212         (authnone_private): Make a struct, not a pointer to struct.
5213         (authnone_private_guard): New once-control variable.
5214         (authnone_create_once): New function, split out of
5215         authnone_create.  No need to allocate memory.
5216         (authnone_create): Just call authnone_create_once via
5217         __libc_once, then return &authnone_private->no_client.
5218         (authnone_marshal): Access private data via CLIENT argument,
5219         not authnone_private pointer.
5220         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
5221         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
5222         authnone_private_s.
5223
5224 2002-04-12  H.J. Lu  <hjl@gnu.org>
5225
5226         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
5227
5228 2002-04-18  Bruno Haible  <bruno@clisp.org>
5229
5230         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
5231         FROM_DIRECTION): Make the FROM direction stateless.
5232         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
5233         FROM_DIRECTION): Likewise.
5234
5235 2002-04-15  Bruno Haible  <bruno@clisp.org>
5236
5237         * iconvdata/JISX0213.TXT: New file.
5238         * iconvdata/jisx0213.h: New file.
5239         * iconvdata/jisx0213.c: New file.
5240         * iconvdata/euc-jisx0213.c: New file.
5241         * iconvdata/shift_jisx0213.c: New file.
5242         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
5243         * iconvdata/EUC-JISX0213.precomposed: New file.
5244         * iconvdata/SHIFT_JISX0213.precomposed: New file.
5245         * iconvdata/SHIFT_JISX0213.irreversible: New file.
5246         * iconvdata/tst-table-to.c (main): Make it work for encodings for
5247         which the "to" direction is stateful.
5248         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
5249         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
5250         SHIFT_JISX0213.
5251         (libJISX0213-routines): New variable.
5252         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
5253         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
5254         (LDFLAGS-libJISX0213.so): New variable.
5255         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
5256         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
5257         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
5258
5259 2002-04-15  Bruno Haible  <bruno@clisp.org>
5260
5261         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
5262         uint32_t.  Update to Unicode 3.2.
5263         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
5264         (BODY for TO_LOOP): Handle the ASCII range specially.
5265         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
5266         * iconvdata/testdata/BIG5HKSCS: Remove a character.
5267         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
5268
5269 2002-04-15  Bruno Haible  <bruno@clisp.org>
5270
5271         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
5272         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
5273
5274 2002-04-15  Bruno Haible  <bruno@clisp.org>
5275
5276         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
5277         (ucs4_to_cns11643): Update.
5278         * iconvdata/cns11643.c: Update to Unicode 3.2.
5279         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
5280         __cns11643_from_ucs4p2_tab): Regenerated.
5281         (__cns11643_from_ucs4p2c_tab): New array.
5282         * iconvdata/cvs11643l1.c: Update comments.
5283         * iconvdata/EUC-TW.irreversible: Remove two entries.
5284
5285 2002-04-15  Bruno Haible  <bruno@clisp.org>
5286
5287         * locale/C-translit.h.in: Update to Unicode 3.2.
5288         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
5289         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
5290
5291 2002-04-15  Bruno Haible  <bruno@clisp.org>
5292
5293         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
5294         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
5295
5296 2002-04-15  Bruno Haible  <bruno@clisp.org>
5297
5298         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
5299         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
5300         always one byte, not 0 bytes in some cases and 2 bytes in others.
5301
5302         * iconvdata/tst-table-from.c (main): Correct the usage message.
5303
5304 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
5305
5306         * posix/regcomp.c (parse_expression): Fix incorrect error code.
5307         (parse_dup_op): Fix error handling like "a{}".
5308         (parse_bracket_exp): Add error handling.
5309         (fetch_number): Add error handling for "a{<very_large_number>}".
5310
5311 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
5312
5313         * posix/regcomp.c (parse_bracket_symbol): Add error handling
5314         in case that the symbol name is too long.
5315         (build_charclass): Handle [:lower:]/[:uppper:] correctly
5316         in case of REG_ICASE.
5317
5318 2002-04-19  Andreas Jaeger  <aj@suse.de>
5319
5320         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
5321         <hartvige@mips.com>.
5322
5323 2002-04-15  H.J. Lu  <hjl@gnu.org>
5324
5325         * include/math.h (__finitel_internal): Declare only if
5326         __NO_LONG_DOUBLE_MATH is not defined.
5327         (__isinfl_internal): Likewise.
5328         (__isnanl_internal): Likewise.
5329
5330         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
5331         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5332         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5333         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5334         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5335         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5336         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5337
5338         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
5339         __fcntl_internal.
5340
5341         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
5342         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
5343
5344 2002-04-15  Bruno Haible  <bruno@clisp.org>
5345
5346         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
5347         (BODY for TO_LOOP): Likewise.
5348         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
5349         * iconvdata/tst-table.sh: Add support for encodings which contain
5350         precomposed Unicode characters, known to the iconv converter in both
5351         directions but not listed in the charmap.
5352         * iconvdata/IBM856.irreversible: New file.
5353         * iconvdata/IBM922.irreversible: New file.
5354         * iconvdata/IBM1132.irreversible: New file.
5355         * iconvdata/IBM1133.irreversible: New file.
5356         * iconvdata/IBM1160.irreversible: New file.
5357         * iconvdata/IBM1161.irreversible: New file.
5358         * iconvdata/IBM1163.irreversible: New file.
5359         * iconvdata/IBM1164.irreversible: New file.
5360         * iconvdata/ARMSCII-8.irreversible: New file.
5361         * iconvdata/TCVN5712-1.precomposed: New file.
5362         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
5363         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
5364         ARMSCII-8, TCVN5712-1.
5365         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
5366         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
5367         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
5368         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
5369
5370 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
5371
5372         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
5373         for EVENING69.  Include offsets in TZ environment variable.
5374
5375 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
5376
5377         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
5378         avoid compiler warnings.
5379
5380         * locale/programs/localedef.c (main): Always call
5381         construct_output_path.
5382
5383         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
5384
5385         * locale/programs/locfile.c (to_archive): New variable.  To collect
5386         data which has to be added to the locale archive.
5387         (write_all_categories): Take new third parameter with locale name.
5388         Unless no_archive flag set add new locale data to the archive
5389         (write_locale_data): Unless no-archive flag set store generated data
5390         in to_archive data structure instead of generation output file.
5391         Add new parameter with locale category index.
5392         * locale/programs/locfile.h: Add new parameters in declaractions of
5393         write_all_categories and write_locale_data.
5394         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
5395         --add-to-archive, and --delete-from-archive options.  Pass extra
5396         parameter to write_all_categories.
5397         * locale/programs/localedef.h: Add prototypes for functions in
5398         locarchive.c.
5399         * locale/locarchive.h: New file.
5400         * locale/programs/locarchive.c: New file.
5401         * locale/Makefile (distribute): Add programs/locarchive.c and
5402         locarchive.h.
5403         (localedef-modules): Add md5 and locarchive.
5404         Add vpath to crypt subdir for md5.c.
5405
5406         * locale/programs/ld-address.c: Pass locale category ID as new second
5407         parameter to write_locale_data.
5408         * locale/programs/ld-collate.c: Likewise.
5409         * locale/programs/ld-ctype.c: Likewise.
5410         * locale/programs/ld-identification.c: Likewise.
5411         * locale/programs/ld-measurement.c: Likewise.
5412         * locale/programs/ld-messages.c: Likewise.
5413         * locale/programs/ld-monetary.c: Likewise.
5414         * locale/programs/ld-name.c: Likewise.
5415         * locale/programs/ld-numeric.c: Likewise.
5416         * locale/programs/ld-paper.c: Likewise.
5417         * locale/programs/ld-telephone.c: Likewise.
5418         * locale/programs/ld-time.c: Likewise.
5419
5420         * locale/simple-hash.c: Move compute_hashval function from here...
5421         * locale/hashval.h: ...to here.  New file.
5422         * locale/simple-hash.h: Add prototype for compute_hashval.
5423
5424         * include/libintl.h: Minor cleanups.
5425
5426 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
5427
5428         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
5429
5430 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
5431
5432         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
5433
5434 2002-04-14  Bruno Haible  <bruno@clisp.org>
5435
5436         * locale/programs/charmap.c (charmap_read): Don't access result if
5437         result == NULL.
5438
5439 2002-02-17  Andreas Schwab  <schwab@suse.de>
5440
5441         * elf/reldep7.c: New file.
5442         * elf/reldep7mod1.c: New file.
5443         * elf/reldep7mod2.c: New file.
5444         * elf/Makefile: Add rules to build and run reldep7.
5445
5446 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
5447
5448         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
5449         the end of the function.  Pass original flags to recursive call if
5450         add_dependency failed.
5451         (_dl_lookup_versioned_symbol): Likewise.
5452
5453 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
5454
5455         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
5456         early, but check whether it overflowed afterwards.
5457         * time/tst-mktime.c (main): Add new tests.
5458
5459 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
5460
5461         * debug/xtrace.sh: Fix program name in help message.
5462         Patch by Roger Luethi <rl@hellgate.ch>.
5463
5464         * include/sys/stat.h: Add prototypes for __lxstat_internal and
5465         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
5466         NOT_IN_libc.
5467         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
5468         * sysdeps/mach/hurd/lxstat.c: Likewise.
5469         * sysdeps/unix/common/lxstat.c: Likewise.
5470         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
5471         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
5472         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5473         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
5474         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
5475         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
5476         * sysdeps/mach/hurd/lxstat64.c: Likewise.
5477         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
5478         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5479
5480         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
5481         prototypes.  Add __mbrlen and __mbrtowc macros.
5482         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
5483         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
5484
5485         * include/unistd.h: Add prototype for __write_internal and add
5486         __libc_write macro is SHARED.
5487         * sysdeps/generic/write.c: Use INTDEF for __write.
5488         * sysdeps/mach/hurd/write.c: Likewise.
5489         * sysdeps/unix/sysv/aix/write.c: Likewise.
5490         * sysdeps/unix/syscalls.list: Add __libc_write alias.
5491
5492         * assert/assert.c: Replace STR_N_SIZE with something usable in
5493         macro arguments.
5494         * assert/assert-perr.c: Likewise.
5495
5496         * include/sys/socket.h: Declare __libc_sa_len_internal and define
5497         SA_LEN macro to use it if not NOT_IN_libc.
5498         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
5499
5500         * include/fcntl.h: Declare __open_internal and define __open and
5501         __libc_open macros if not NOT_IN_libc.
5502         * sysdeps/generic/open.c: Use INTDEF for __open.
5503         * sysdeps/mach/hurd/open.c: Likewise.
5504         * sysdeps/unix/sysv/aix/open.c: Likewise.
5505         * sysdeps/unix/syscalls.list: Add __open_internal alias.
5506
5507         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
5508         has correct number.
5509
5510         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
5511         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
5512         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
5513         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
5514
5515         * include/wctype.h: Declare __iswalpha_l_internal,
5516         __iswdigit_l_internal, __iswspace_l_internal,
5517         __iswxdigit_l_internal, and __iswctype_internal.  Define
5518         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
5519         __iswxdigit_l macros if not NOT_IN_libc.
5520         * wctype/iswctype.c: Use INTDEF for __iswctype.
5521         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
5522
5523         * include/math.h: Declare __isinf_internal, __isinfl_internal,
5524         __isnan_internal, and __isnanl_internal.
5525         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
5526         __isnan, and __isnanl.
5527         * stdio-common/printf_size.c: Likewise.
5528         * sysdeps/generic/printf_fphex.c: Likewise.
5529         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
5530         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
5531         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
5532         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
5533         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
5534         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5535         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
5536         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
5537         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
5538         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
5539         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
5540         * sysdeps/m68k/s_isinfl.c: Likewise.
5541         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
5542         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
5543
5544         * include/sys/time.h: Declare __gettimeofday_internal and define
5545         __gettimeofday macro if not NOT_IN_libc.
5546         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
5547         * sysdeps/mach/gettimeofday.c: Likewise.
5548         * sysdeps/posix/gettimeofday.c: Likewise.
5549         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
5550         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
5551         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
5552         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
5553
5554         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
5555         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
5556         Remove __lstat and __fstat inline functions.
5557         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
5558         * sysdeps/mach/hurd/fxstat.c: Likewise.
5559         * sysdeps/unix/fxstat.c: Likewise.
5560         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
5561         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
5562         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5563         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
5564         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
5565         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
5566         * sysdeps/mach/hurd/fxstat64.c: Likewise.
5567         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
5568         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
5569
5570         * include/unistd.h: Declare __getpid_internal and define
5571         __getpid macro if not NOT_IN_libc.
5572         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
5573         * sysdeps/generic/getpid.c: Likewise.
5574         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
5575         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
5576
5577         * include/unistd.h: Declare __getpgid_internal and define
5578         __getpgid macro if not NOT_IN_libc.
5579         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
5580         * sysdeps/mach/hurd/getpgid.c: Likewise.
5581         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
5582         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
5583         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
5584         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
5585
5586         * include/unistd.h: Declare __getpagesize_internal and define
5587         __getpagesize macro if not NOT_IN_libc.
5588         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
5589         __getpagesize.
5590         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
5591         * sysdeps/mach/getpagesize.c: Likewise.
5592         * sysdeps/posix/getpagesize.c: Likewise.
5593         * sysdeps/unix/getpagesize.c: Likewise.
5594         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
5595         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
5596         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
5597         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
5598
5599 2002-04-13  Andreas Jaeger  <aj@suse.de>
5600
5601         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
5602         as clobber to reduce register pressure.
5603         (__strpbrk_cg): Likewise.
5604         (__mempcpy_by4): Likewise.
5605         (__strstr_cg): Likewise.
5606         Add prototype for __memrchr.
5607
5608 2002-04-13  Andreas Schwab  <schwab@suse.de>
5609
5610         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
5611         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5612         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5613
5614 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
5615
5616         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
5617         check whether the caller prefers getting the most recent version of
5618         a symbol of the earliest version.
5619         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
5620         _dl_do_lookup to also take the new parameter and pass it on.
5621         Change 'explicit' parameter of _dl_lookup_symbol and
5622         _dl_lookup_versioned_symbol to flags.  Adjust tests.
5623         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
5624         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
5625         _dl_lookup_versioned_symbol.
5626         * elf/dl-reloc.c: Likewise.
5627         * elf/dl-runtime.c: Likewise.
5628         * elf/dl-sym.c: Likewise.
5629         * sysdeps/mips/dl-machine.h: Likewise.
5630
5631 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
5632
5633         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
5634         in a token.
5635         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
5636
5637 2002-04-10  Andreas Jaeger  <aj@suse.de>
5638
5639         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
5640
5641         * include/argz.h: Remove extra char from last patch.
5642
5643 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
5644
5645         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
5646         * sysdeps/unix/sysv/aix/chown.c: Likewise.
5647         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
5648         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
5649         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
5650         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
5651         __chown_internal.
5652         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
5653
5654         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
5655         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
5656         * intl/ngettext.c: Likewise.
5657
5658         * include/sys/socket.h: Declare __connect_internal and define
5659         __connect macro if not NOT_IN_libc.
5660         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
5661         * sysdeps/unix/sysv/aix/connect.c: Likewise.
5662         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
5663
5664         * include/unistd.h: Declare __close_internal and define __close macro
5665         if not NOT_IN_libc.
5666         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
5667         WJUMP3): Add extra parenthesis to avoid expanding element names with
5668         macors like __close.
5669         * sysdeps/unix/syscalls.list: Add __close_internal alias.
5670
5671         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
5672         if not NOT_IN_libc.
5673         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
5674         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
5675         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
5676
5677         * include/unistd.h: Declare __fork_internal and define __fork macro
5678         if not NOT_IN_libc.
5679         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
5680         * sysdeps/unix/sysv/aix/fork.c: Likewise.
5681         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
5682
5683         * include/stdio_ext.h: Declare __fsetlocking_internal and define
5684         __fsetlocking macro to use it if not NOT_IN_libc.
5685         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
5686
5687         * libio/__fbufsize.c: Correct copyright.
5688         * libio/__flbf.c: Likewise.
5689         * libio/__fpending.c: Likewise.
5690         * libio/__fpurge.c: Likewise.
5691         * libio/__freadable.c: Likewise.
5692         * libio/__freading.c: Likewise.
5693         * libio/__fsetlocking.c: Likewise.
5694         * libio/__fwritable.c: Likewise.
5695         * libio/__fwriting.c: Likewise.
5696
5697         * include/stdio.h: Declare __asprintf_internal and define __asprintf
5698         macro to use it if not NOT_IN_libc.
5699         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
5700
5701         * include/mntent.h: Declare __setmntent_internal,
5702         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
5703         __getmntent_r, and __endmntent macros to use these functions if not
5704         NOT_IN_libc.
5705         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
5706         __endmntent.
5707
5708         * include/math.h: Declare __finite_internal, __finitef_internal, and
5709         __finitel_internal.  Redefine isfinite macro if in libc or libm using
5710         these functions.
5711         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
5712         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
5713         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
5714         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
5715         * sysdeps/i386/fpu/s_finitef.S: Likewise.
5716         * sysdeps/i386/fpu/s_finitel.S: Likewise.
5717         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
5718         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
5719         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
5720         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
5721
5722         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
5723         to use this function if not NOT_IN_libc.
5724         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
5725         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
5726         * sysdeps/mach/hurd/fcntl.c: Likewise.
5727         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
5728         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
5729
5730         * include/argz.h: Declare __argz_count_internal and
5731         __argz_stringify_internal.
5732         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
5733         __argz_stringify.
5734         * string/argz-count.c: Use INTDEF for __argz_count.
5735         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
5736
5737         * include/stdlib.h: Declare __cxa_atexit_internal and define
5738         __cxa_atexit macro if not NOT_IN_libc.
5739         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
5740         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
5741
5742         * assert/assert.c: Use INTDEF for __assert_fail.
5743         * assert/__assert.c: Use INTUSE for call to __assert_fail.
5744         * include/assert.h: Declare __assert_fail_internal.
5745
5746         * extra-lib.mk: Mark assignment to lib with override.
5747
5748 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
5749
5750         * Makerules: Use cppflags-iterator.mk to add defines for all test
5751         source files.
5752
5753 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
5754
5755         * elf/elf.h: Define R_SH_TLS_xxx macros.
5756         * elf/rtld.c: Remove an extra parenthesis.
5757         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
5758         TLS_GD macros.
5759         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
5760         * sysdeps/sh/dl-lookupcfg.h: New file.
5761         * sysdeps/sh/dl-tls.h: New file.
5762         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
5763         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
5764         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
5765         R_SH_TLS_TPOFF32 relocations.
5766
5767 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
5768
5769         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
5770         of NOT_IN_LIBC.
5771         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
5772         * include/stdlib.h: Likewise.
5773
5774 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
5775
5776         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
5777         instead of _RTLD_LOCAL.
5778         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
5779         * include/unistd.h: Likewise.
5780         * sysdeps/generic/ldsodefs.h: Likewise.
5781
5782         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
5783         if in libc or ld.so.
5784
5785 2002-04-08  Andreas Jaeger  <aj@suse.de>
5786
5787         * elf/cache.c (print_entry): Support x86-64.
5788
5789 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
5790
5791         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
5792         with one accessing the locale data structures directly.
5793         * stdio-common/printf-prs.c: Include localeinfo.h for new
5794         MB_CUR_MAX definition.
5795
5796         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
5797         is the name of the source file without extension.
5798         * Makefile (distribute): Add cppflags-iterator.mk.
5799         * cppflags-iterator.mk: New file.
5800         * extra-lib.mk: For the sources of the library run
5801         cppflags-iterator.mk.
5802
5803         * include/libintl.h: Declare __dcgettext_internal and
5804         _libc_intl_domainname_internal.  Define __dcgettext using these
5805         two symbols if used in libc itself.
5806         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
5807         _libc_intl_domainname_internal.
5808         * argp/argp-parse.c: Likewise.
5809         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
5810         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
5811         * intl/gettext.c: Likewise.
5812         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
5813         alias.
5814         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
5815         __dcgettext.
5816         * posix/regex_internal.c (gettext): Likewise.
5817
5818 2002-04-08  Andreas Jaeger  <aj@suse.de>
5819
5820         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
5821
5822         * sysdeps/x86_64/fpu/s_llrint.S: New.
5823         * sysdeps/x86_64/fpu/s_llrintf.S: New.
5824         * sysdeps/x86_64/fpu/s_llrintl.S: New.
5825         * sysdeps/x86_64/fpu/s_lrint.S: New.
5826         * sysdeps/x86_64/fpu/s_lrintf.S: New
5827         * sysdeps/x86_64/fpu/s_lrintl.S: New.
5828
5829 2002-04-08  Roland McGrath  <roland@frob.com>
5830
5831         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
5832         widening __hurd_fail value.
5833
5834 2002-04-07  Roland McGrath  <roland@frob.com>
5835
5836         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
5837         <mach/machine/alpha_instruction.h>.
5838         (_hurd_setup_sighandler): Take proper arguments for current decls.
5839         Update code to use _hurdsig_catch_fault.
5840         Use `callsys' instruction instead of `call_pal'.
5841         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
5842
5843         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
5844         (ALIGN, at, AT, fp): New macros.
5845
5846 2002-04-06  Roland McGrath  <roland@frob.com>
5847
5848         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
5849
5850         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
5851         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
5852
5853         * sysdeps/mach/hurd/bind.c: Use prototype definition.
5854         * sysdeps/mach/hurd/connect.c: Likewise.
5855         * sysdeps/mach/hurd/getsockopt.c: Likewise.
5856         * sysdeps/mach/hurd/setsockopt.c: Likewise.
5857
5858         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
5859         __msg_sig_post RPC.
5860
5861         * hurd/catch-exc.c: Use integer_t instead of int.
5862         * hurd/hurdfault.c: Likewise.
5863
5864         * sysdeps/mach/hurd/alpha/exc2signal.c
5865         (_hurd_exception2signal): Rewritten.
5866         * sysdeps/mach/hurd/alpha/longjmp-ts.c
5867         (_hurd_longjmp_thread_state): Rewritten.
5868
5869 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
5870
5871         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
5872         DB_LOOKUP_FCT prototype.
5873         * nss/getXXent_r.c: Likewise.
5874         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
5875         * inet/getaliasname_r.c: Likewise.
5876         * inet/getnetbyad_r.c: Likewise.
5877         * inet/getnetbynm_r.c: Likewise.
5878         * inet/getnetent_r.c: Likewise.
5879         * inet/getproto_r.c: Likewise.
5880         * inet/getprtent_r.c: Likewise.
5881         * inet/getprtname_r.c: Likewise.
5882         * inet/getrpcbyname_r.c: Likewise.
5883         * inet/getrpcbynumber_r.c: Likewise.
5884         * inet/getrpcent_r.c: Likewise.
5885         * inet/getservent_r.c: Likewise.
5886         * inet/getsrvbynm_r.c: Likewise.
5887         * inet/getsrvbypt_r.c: Likewise.
5888         * shadow/getspent_r.c: Likewise.
5889         * shadow/getspnam_r.c: Likewise.
5890
5891         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
5892
5893         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
5894         Use i686-friendly PIC code.
5895         * sysdeps/i386/elf/setjmp.S: Likewise.
5896
5897         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
5898
5899         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
5900         list.
5901         * elf/Versions: Remove it here.
5902
5903 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
5904
5905         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
5906         direction.  Reported by H . J . Lu <hjl@lucon.org>.
5907
5908 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
5909
5910         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
5911         test just before the test runs.
5912         * intl/tst-translit.sh: Likewise.
5913         * intl/tst-codeset.sh: Likewise.
5914
5915         * timezone/zic.c: Update from tzcode2002c.
5916         * timezone/asia: Update from tzdata2002c.
5917         * timezone/backward: Likewise.
5918         * timezone/europe: Likewise.
5919         * timezone/northamerica: Likewise.
5920         * timezone/northamerica: Likewise.
5921         * timezone/northamerica: Likewise.
5922         * timezone/southamerica: Likewise.
5923         * timezone/zone.tab: Likewise.
5924
5925 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
5926
5927         * sysdeps/generic/brk.c (__curbrk): Declare.
5928         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
5929         * sysdeps/generic/dl-sbrk.c: Likewise.
5930         * sysdeps/unix/arm/dl-brk.S: New file.
5931         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
5932         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
5933         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
5934         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
5935         * sysdeps/unix/i386/dl-brk.S: New file.
5936         * sysdeps/unix/mips/dl-brk.S: New file.
5937         * sysdeps/unix/sparc/dl-brk.S: New file.
5938         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
5939         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
5940         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
5941         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
5942
5943 2002-04-03  Andreas Schwab  <schwab@suse.de>
5944
5945         * Makefile (headers): Add gnu/lib-names.h here instead of
5946         install-others.
5947         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
5948         installation rule.
5949         (install-headers): Add dependency on install-headers-nosubdir.
5950         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
5951         instead of install-others.
5952         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
5953         installation rule.
5954
5955 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
5956
5957         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
5958         Reported by Sam Roberts <sroberts@uniserve.com>.
5959
5960 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
5961
5962         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
5963         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
5964         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
5965         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
5966
5967 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
5968
5969         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
5970         (RTLD_START): Ditto.
5971         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
5972         dependency violation.
5973
5974 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
5975
5976         * time/mktime.c (__mktime_internal): Move check for year < 70 below
5977         all variable declarations.
5978
5979 2002-04-04  Andreas Schwab  <schwab@suse.de>
5980
5981         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
5982
5983 2002-04-04  Andreas Jaeger  <aj@suse.de>
5984
5985         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
5986         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
5987
5988         * sysdeps/x86_64/fpu/s_fabs.c: New file.
5989         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
5990         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
5991
5992         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
5993
5994         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
5995
5996         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
5997         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
5998
5999         * configure.in: Handle all mips entries the same.
6000
6001         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
6002         * sysdeps/mips/mips3/*: Likewise.
6003         * sysdeps/mips/p40/bits/endian.h: Likewise.
6004
6005 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
6006
6007         * misc/dirname.c (dirname): Ignore trailing slashes at end of
6008         non-null result [PR libc/2600].
6009
6010         * misc/tst-dirname.c: Add more tests.
6011
6012 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
6013
6014         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
6015         define a code_set_name provide one based on the filename.
6016
6017         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
6018
6019 2001-12-28  Andreas Jaeger  <aj@suse.de>
6020
6021         * time/mktime.c (__mktime_internal): Check for year < 70
6022         [PR libc/2738].
6023
6024 2002-04-03  Andreas Jaeger  <aj@suse.de>
6025
6026         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
6027         shmat.
6028         Reported by Andi Kleen <ak@suse.de>.
6029
6030 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
6031
6032         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
6033         * sysdeps/generic/w_lgammaf.c: Likewise.
6034         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
6035
6036         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
6037         Adjust for new output format of the backtrace functions.
6038
6039         * misc/syslog.c (vsyslog): Only use cleanup handler if
6040         _LIBC_REENTRANT is defined [PR libc/2924].
6041
6042         * libio/Makefile (tests): Add bug-ungetwc2.
6043         * libio/bug-ungetwc2.c: New file.
6044
6045         * manual/install.texi: Typographical and grammatical cleanup.
6046         Patch by Dennis Grace <dgrace@us.ibm.com>.
6047
6048         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
6049         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
6050
6051         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
6052         always "&".  Adjust callers.
6053         Add "_" prefix to several generated definitions.
6054         Patch by paul@serice.net [PR libc/3158].
6055
6056 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
6057
6058         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
6059         size of _dl_arm_cap_flags.
6060         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
6061
6062         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
6063         Define as 8.
6064
6065 2002-03-22  H.J. Lu  <hjl@gnu.org>
6066
6067         * scripts/firstversions.awk: Check the first version.
6068
6069 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
6070
6071         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
6072         dependencies must be stable to work correctly.
6073         Reported by martin.lubich@datacon.at.
6074
6075         * libio/bug-ungetwc1.c: New file.
6076         * libio/Makefile (tests): Add bug-ungetwc1.
6077
6078         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
6079         if stream was last used for writing.
6080
6081         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
6082         number [PR libc/3111].
6083
6084         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
6085         to ...
6086         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
6087
6088 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
6089
6090         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
6091         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
6092         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
6093         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
6094         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
6095
6096 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
6097
6098         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
6099         dynamic tags.
6100
6101 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
6102
6103         * sysdeps/i386/fpu/s_fabs.S: New file.
6104         * sysdeps/i386/fpu/s_fabsf.S: New file.
6105         * sysdeps/i386/fpu/s_fabsl.S: New file.
6106         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
6107         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
6108         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
6109
6110 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
6111
6112         * rt/tst-shm.c (do_test): Add one more test for size of shared
6113         memory object.
6114
6115 2002-03-29  Wolfram Gloger  <wg@malloc.de>
6116
6117         * malloc/malloc.c: Add short description and prototypes for
6118         malloc_get_state, malloc_set_state and posix_memalign, for
6119         consistency and to avoid warnings with -Wstrict-prototypes.
6120         Reported by Andreas Jaeger <aj@suse.de>.
6121
6122 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
6123
6124         * po/gl.po: Update from translation team.
6125
6126 2002-03-31  Roland McGrath  <roland@frob.com>
6127
6128         * hurd/hurdselect.c (_hurd_select): Fix
6129         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
6130         Use a union rather than casts to compare mach_msg_type_t as int.
6131
6132 2002-03-25  Roland McGrath  <roland@frob.com>
6133
6134         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
6135         check off the end of NAME when it's shorter than 2 chars.
6136         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
6137
6138 2002-03-17  Roland McGrath  <roland@frob.com>
6139
6140         * sysdeps/mach/hurd/i386/sys/io.h: New file.
6141         * sysdeps/mach/hurd/i386/ioperm.c: New file.
6142         * sysdeps/mach/hurd/i386/Dist: Add them.
6143         * sysdeps/mach/hurd/i386/Versions
6144         (libc: GLIBC_2.2.6): New set, add ioperm.
6145         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
6146         (mach_interface_list): Check for mach_i386.defs.
6147         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
6148         * sysdeps/mach/configure: Regenerated.
6149
6150 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
6151
6152         * po/fr.po: Update from translation team.
6153
6154 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6155
6156         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
6157         getpriority from syscalls list.
6158
6159 2002-03-28  Andreas Jaeger  <aj@suse.de>
6160
6161         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
6162         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
6163         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
6164         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
6165
6166 2002-03-27  Andreas Jaeger  <aj@suse.de>
6167
6168         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
6169         sigcontext): Follow further kernel change.
6170
6171         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
6172         kernel change.
6173
6174         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
6175         Change for struct sigcontext change.
6176
6177         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
6178         Follow changes in struct sigcontext.
6179
6180         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
6181         sysycall, use wrapper instead.
6182
6183 2002-03-26  Andreas Jaeger  <aj@suse.de>
6184
6185         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
6186         read and write accesses as detailed as possible.
6187         (__memcpy_by2): Likewise.
6188         (__memcpy_g): Likewise.
6189         (memmove): Likewise.
6190         (memcmp): Likewise.
6191         (__memset_ccn_by4): Likewise.
6192         (__memset_ccn_by2): Likewise.
6193         (__memset_gcn_by4): Likewise.
6194         (__memset_gcn_by2): Likewise.
6195         (memchr): Likewise.
6196         (__memrchr): Likewise.
6197         (rawmemchr): Likewise.
6198         (__strlen_g): Likewise.
6199         (__strcpy_g): Likewise.
6200         (__mempcpy_by4): Likewise.
6201         (__mempcpy_by2): Likewise.
6202         (__mempcpy_byn): Likewise.
6203         (__stpcpy_g): Likewise.
6204         (__strncpy_by4): Likewise.
6205         (__strncpy_by2): Likewise.
6206         (__strncpy_byn): Likewise.
6207         (__strncpy_gg): Likewise.
6208         (__strcat_c): Likewise.
6209         (__strcat_g): Likewise.
6210         (__strncat_g): Likewise.
6211         (__strcmp_gg): Likewise.
6212         (__strncmp_g): Likewise.
6213         (__strchr_c): Likewise.
6214         (__strchr_g): Likewise.
6215         (__strchrnul_c): Likewise.
6216         (__strchrnul_g): Likewise.
6217         (__strrchr_c): Likewise.
6218         (__strrchr_g): Likewise.
6219         (__strrchr_c): Likewise.
6220         (__strrchr_g): Likewise.
6221         (__strcspn_c1): Likewise.
6222         (__strcspn_cg): Likewise.
6223         (__strcspn_g): Likewise.
6224         (__strcspn_g): Likewise.
6225         (__strspn_c1): Likewise.
6226         (__strspn_cg): Likewise.
6227         (__strspn_g): Likewise.
6228         (__strspn_g): Likewise.
6229         (__strpbrk_cg): Likewise.
6230         (__strpbrk_g): Likewise.
6231         (__strstr_cg): Likewise.
6232         (__strstr_g): Likewise.
6233
6234         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
6235         Michal Ludvig <mludvig@suse.cz>.
6236
6237         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
6238         compatibilty, adjust for kernel changes.
6239
6240         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
6241         sigcontext): Adjust for kernel changes.
6242
6243 2002-03-25  Andreas Jaeger  <aj@suse.de>
6244
6245         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
6246         little endian.
6247         Reported by Artur Zaprzala <zybi@talex.com.pl>.
6248
6249 2002-03-24  Andreas Jaeger  <aj@suse.de>
6250
6251         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
6252
6253         * stdio-common/tst-fdopen.c (main): Remove unused variable.
6254
6255         * iconv/tst-iconv3.c (main): Use correct printf strings.
6256
6257 2002-03-18  Roland McGrath  <roland@frob.com>
6258
6259         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
6260         (CMGROUP_MAX): New macro.
6261
6262 2002-03-23  Roland McGrath  <roland@frob.com>
6263
6264         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
6265         * sysdeps/posix/shm_unlink.c: Likewise.
6266
6267 2002-03-22  Roland McGrath  <roland@frob.com>
6268
6269         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
6270         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
6271         under --enable-libio.
6272         * sysdeps/mach/hurd/configure: Regenerated.
6273
6274 2002-03-23  Roland McGrath  <roland@frob.com>
6275
6276         * sysdeps/mach/hurd/i386/Makefile
6277         (sysdep_routines, shared-only-routines): Don't add framestate,
6278         reverting 2001-10-02 change.
6279         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
6280         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
6281         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
6282         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
6283         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
6284         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
6285         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
6286         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
6287         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
6288         Do it here instead, only if [$(unwind-find-fde) = yes].
6289
6290 2002-03-23  Andreas Jaeger  <aj@suse.de>
6291
6292         * signal/signal.h: Fix typo. Patch by Steve Kemp
6293         <skx@tardis.ed.ac.uk>.
6294
6295 2002-03-22  Andreas Jaeger  <aj@suse.de>
6296
6297         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
6298         getresuid.
6299
6300         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
6301         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
6302         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
6303         user_fpregs_struct): Rename fwd.
6304
6305         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
6306         Follow sigcontext changes.
6307
6308 2002-03-22  Andreas Jaeger  <aj@suse.de>
6309
6310         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
6311         changes for NaNs on MIPS.
6312         Patch by Hartvig Ekner <hartvige@mips.com>.
6313
6314 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
6315
6316         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
6317         Use realloc if too large.
6318         (addgrbyid): Likewise.
6319         * nscd/hstcache.c (addhstbyname): Likewise.
6320         (addhstbyaddr): Likewise.
6321         (addhstbynamev6): Likewise.
6322         (addhstbyaddrv6): Likewise.
6323         * nscd/pwdcache.c (addpwbyname): Likewise.
6324         (addpwbyuid): Likewise.
6325
6326 2002-03-21  Andreas Jaeger  <aj@suse.de>
6327
6328         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
6329         _fpstate): Add separate struct for x86-64.
6330
6331         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
6332         user_fpregs_struct): Change member names to follow kernel.
6333
6334 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
6335
6336         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
6337         Correctly close the UDP connection right away [PR libc/3120].
6338
6339 2002-03-20  Andreas Jaeger  <aj@suse.de>
6340
6341         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
6342         user_fpregs_struct): Fix for changed kernel struct.
6343         (struct user_regs_struct): Likewise.
6344         (struct user): Likewise.
6345         Add 32-bit x86 compatibility.
6346
6347         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
6348
6349 2002-03-19  Andreas Jaeger  <aj@suse.de>
6350
6351         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
6352
6353 2002-03-18  Andreas Jaeger  <aj@suse.de>
6354
6355         * iconvdata/Makefile: Only run tests when shared libs are
6356         available.
6357
6358 2002-03-17  Andreas Jaeger  <aj@suse.de>
6359
6360         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
6361
6362         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
6363
6364         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
6365         bits.
6366
6367         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
6368         (CAUSE_SHIFT): New.
6369         Patch by Hartvig Ekner <hartvige@mips.com>.
6370
6371         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
6372         * sysdeps/generic/unwind-pe.h: Likewise.
6373
6374         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
6375         type to _IO_setb.
6376
6377         * libio/stdio.c (AL2): Define variant when visibility attribute is
6378         not supported.
6379
6380         * include/libc-symbols.h (_INTVARDEF): Define variant when
6381         visibility attribute is not supported.
6382
6383 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
6384
6385         * po/fr.po: Update from translation team.
6386
6387 2002-02-25  Bruno Haible  <bruno@clisp.org>
6388
6389         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
6390
6391 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
6392
6393         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
6394         buffers if _IO_file_attach failed.
6395
6396         * libio/fileops.c (_IO_file_open): Close file descriptor if
6397         _IO_SEEKOFF call failed.
6398
6399 2002-03-15  H.J. Lu  <hjl@gnu.org>
6400             Ulrich Drepper  <drepper@redhat.com>
6401
6402         * configure.in: Check for availability of
6403         init_array/fini_array/preinit_array handling in binutils.
6404         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
6405         * config.make.in (have-initfini-array): New variable.
6406
6407 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
6408
6409         * stdio-common/tst-printf.c (main): Comment out one test which
6410         checked the compiler's ability to fold floating-point constants
6411         but not really printf.
6412         (rfg3): Make s const.
6413         * stdio-common/tst-printf.sh: Adjust for removed test.
6414
6415         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
6416         internal function.  Adjust for internal_function calling convention.
6417         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
6418         as internal_function.
6419
6420         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
6421         hidden.
6422
6423         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
6424         declaration and definition.
6425         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
6426         declaration.
6427         * nss/getXXent_r.c: Likewise.
6428         * nss/nsswitch.h (db_lookup_function): Add internal_function to
6429         definition.
6430
6431         * include/time.h: Declare __localtime_r as hidden.
6432
6433         * include/aliases.h: Declare __getaliasent_r as hidden.
6434         * include/grp.h: Declare __getgrent_r as hidden.
6435         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
6436         __getservent_r, and __getprotoent_r as hidden.
6437         * include/pwd.h: Declare __getpwent_r as hidden.
6438         * include/shadow.h: Declare __getspent_r as hidden.
6439         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
6440
6441         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
6442         and __gconv_transliterate as hidden.
6443         Add internal_function to __gconv_get_path declaration.
6444         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
6445         definition.  Add attribute_hidden to __gconv_read_conf definition.
6446
6447 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
6448
6449         * elf/rtld.c: Declare _environ as hidden.
6450         * sysdeps/generic/dl-environ.c: Likewise.
6451         * sysdeps/generic/dl-sysdep.c: Likewise.
6452
6453         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
6454         _dl_mcount_internal as hidden.
6455
6456         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
6457         * sysdeps/generic/dl-brk.c: New file.
6458         * sysdeps/generic/dl-sbrk.c: New file.
6459         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
6460         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
6461
6462         * elf/dl-minimal.c (malloc): Declare _end as hidden.
6463         (__errno_location): New function.  Declare errno as hidden.
6464         * elf/rtld.c (_dl_argc): Define as hidden.
6465         (_dl_skip_args): Define as hidden.
6466         (_begin, _end): Declare as hidden.
6467         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
6468         * sysdeps/generic/entry.h (_start): Declare as hidden.
6469         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
6470         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
6471         _dl_runtime_resolve and _dl_runtime_profile as hidden.
6472         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
6473
6474 2002-03-14  Roland McGrath  <roland@frob.com>
6475
6476         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
6477
6478         * Makeconfig (%.v.i, %.v): New implicit rules.
6479         (preprocess-versions): Variable removed.
6480         ($(common-objpfx)shlib-versions.v.i): New target giving just the
6481         shlib-versions input files as dependencies.
6482         ($(common-objpfx)soversions.i): Depend on that instead of the input
6483         files.  Use it as input instead of using a pipeline.
6484         (postclean-generated): Append soversions.i, shlib-versions.v, and
6485         shlib-versions.v.i here.
6486         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
6487         the Versions.def input files as dependencies.
6488         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
6489         ($(common-objpfx)Versions.all): Depend on that instead of the input
6490         files.  Use it as input instead of using a pipeline.
6491         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
6492         (postclean-generated): Append those .v and .v.i files here.
6493
6494 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
6495
6496         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
6497         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
6498         Remove.
6499
6500 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
6501
6502         * sysdeps/generic/mp_clz_tab.c: New file.
6503         * sysdeps/i386/mp_clz_tab.c: New file.
6504         * sysdeps/hppa/mp_clz_tab.c: New file.
6505         * sysdeps/powerpc/mp_clz_tab.c: New file.
6506         * stdlib/Makefile (aux): Revert last patch.
6507         * math/Makefile (gmp-objs): Likewise.
6508
6509 2002-03-13  Paul Eggert  <eggert@twinsun.com>
6510
6511         * time/strftime.c: Comment fixes for references to obsolescent
6512         standards, In most cases the simplest fix is to remove the
6513         confusing comments.  Cross-referencing all the standards properly
6514         is a bit of a pain, and it should be enough to put that info in
6515         the documentation as I did in my recent time.texi patch.
6516
6517 2002-03-13  Paul Eggert  <eggert@twinsun.com>
6518
6519         * manual/time.texi (Formatting Calendar Time):
6520         ISO C99 also specifies the E and O modifiers.
6521         %P is a GNU extension, and is not in ISO C99.
6522         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
6523         %T is also in ISO C99.
6524         The RFC 822 example is not valid in arbitrary locales.
6525         Reword the POSIX.2 wording slightly, to make it a bit clearer
6526         that POSIX.2 formats are also supported by later POSIX versions.
6527         If a format was introduced in ISO C99 it is also required by
6528         POSIX.1-2001.
6529
6530 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
6531
6532         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
6533         _sys_nerr_internal with INTVARDEF2.
6534         * include/libc-symbols.h (INTVARDEF2): New macro.
6535         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
6536         (_sys_nerr_internal): Library.
6537
6538         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
6539         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
6540
6541         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
6542
6543 2002-03-13  Wolfram Gloger  <wg@malloc.de>
6544
6545         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
6546
6547 2002-03-02  Andreas Schwab  <schwab@suse.de>
6548
6549         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
6550         'h' flag and positional arg.
6551         * stdio-common/tst-printf.c (rfg3): New function to test
6552         positional arguments.
6553         (main): Fix some warnings.
6554
6555 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
6556
6557         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
6558         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
6559
6560 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
6561
6562         * grp/initgroups.c (__nss_group_data): Declare as hidden.
6563
6564         * include/locale.h (_nl_C_locobj): Declare as hidden.
6565
6566         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
6567         * time/strptime.c (_nl_C_LC_TIME): Likewise.
6568
6569         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
6570
6571         * include/sys/gmon.h: Declare _gmonparam as hidden.
6572
6573         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
6574         (__ctype32_wctrans): Likewise.
6575         (__ctype32_width): Likewise.
6576
6577         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
6578         use of __ttyname.
6579
6580         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
6581         Define as hidden.
6582         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
6583         hidden.  Change all users of these variables.
6584
6585         * posix/regex_internal.h (__re_error_msgid): Renamed from
6586         re_error_msgid.  Declare as hidden.
6587         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
6588         hidden.
6589
6590         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
6591         (__printf_function_table): Likewise.
6592         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
6593         hidden.
6594         (__printf_function_table): Likewise.
6595
6596         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
6597         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
6598
6599         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
6600         * nss/nsswitch.c: Declare _nss_*_database as hidden.
6601
6602         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
6603         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
6604
6605 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
6606
6607         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
6608         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
6609         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
6610         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
6611         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
6612         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
6613         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
6614         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
6615         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
6616         _nl_C_LC_CTYPE_width: Declare as hidden.
6617         * include/locale.h: Declare _nl_locale_file_list.
6618         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
6619         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
6620         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
6621         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
6622         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
6623         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
6624         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
6625         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
6626         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
6627         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
6628         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
6629         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
6630         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
6631         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
6632         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
6633         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
6634         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
6635         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
6636         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
6637         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
6638         _nl_C_LC_CTYPE_width, and as hidden.
6639         * locale/findlocale.c: Declare _nl_C as hidden.
6640         * locale/newlocale.c: Likewise.
6641         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
6642         _nl_locale_file_list.
6643         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
6644         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
6645         Define _nl_C_locobj as hidden.
6646
6647         * malloc/mtrace.c (_mtrace_file): Define as hidden.
6648         (_mtrace_line): Likewise.
6649
6650         * include/time.h: Declare __mon_yday as hidden.
6651         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
6652
6653         * libio/libioP.h: Declare __libio_codecvt as hidden.
6654         * libio/fileops.c: Declare __libio_translit as hidden.
6655         * libio/iofwide.c: Define __libio_translit as hidden.
6656
6657         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
6658         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
6659         * login/getutline_r.c: Likewise.
6660         * login/utmpname.c: Likewise.
6661
6662         * login/utmp-private.h: Declare __libc_utmp_file_functions,
6663         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
6664         __libc_utmp_file_name as hidden.
6665
6666         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
6667         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
6668         * locale/freelocale.c: Likewise.
6669         * locale/lc-time.c: Likewise.
6670
6671         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
6672         (__libc_ptyname2): Likewise.
6673         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
6674         hidden.
6675         (__libc_ptyname2): Likewise.
6676
6677         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
6678         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
6679         * sysdeps/generic/init-first.c: Likewise.
6680         * sysdeps/i386/init-first.c: Likewise.
6681         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
6682         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6683         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6684         * sysdeps/sh/init-first.c: Likewise.
6685         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
6686         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
6687
6688         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
6689         (_itowa_upper_digits): Likewise.
6690
6691         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
6692         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
6693         as hidden.
6694
6695         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
6696         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
6697         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
6698         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
6699
6700         * gmon/gmon.c (__bb_head): Define as hidden.
6701         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
6702
6703         * argp/argp-parse.c (_argp_hang): Define as static.
6704
6705         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
6706         handling in latest compilers.
6707
6708         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
6709         define alias.
6710         * libio/fileops.c (_IO_file_jumps): Likewise.
6711         * libio/stdfiles.c (_IO_list_all): Likewise.
6712         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
6713
6714         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
6715         include/malloc.h.
6716         * include/malloc.h: Add __libc_malloc_initialized declaration
6717         here.  Mark variable hidden.
6718         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
6719
6720         * elf/dl-open.c (__libc_argc): Declare as hidden.
6721         (__libc_argv): Likewise.
6722         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
6723         (__libc_argv): Likewise.
6724         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
6725         __libc_argv as hidden.
6726         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6727         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6728         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
6729         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
6730
6731         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
6732         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
6733         * stdlib/erand48.c: Likewise.
6734         * stdlib/jrand48.c: Likewise.
6735         * stdlib/lcong48.c: Likewise.
6736         * stdlib/lrand48.c: Likewise.
6737         * stdlib/mrand48.c: Likewise.
6738         * stdlib/nrand48.c: Likewise.
6739         * stdlib/seed48.c: Likewise.
6740         * stdlib/srand48.c: Likewise.
6741
6742         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
6743         (_itoa_lower_digits_internal): New declaration.
6744         (_itoa_upper_digits_internal): New declaration.
6745         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
6746         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
6747         (_itoa_upper_digits_internal): New declaration.
6748         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
6749         _itoa_lower_digits.
6750         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
6751         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
6752
6753         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
6754         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
6755
6756         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
6757         (_itowa_lower_digits): Likewise.
6758         (_itowa_upper_digits): Likewise.
6759         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
6760         (_itowa_upper_digits): Likewise.
6761
6762         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
6763         not already defined.
6764         (GERMANIC_PLURAL): Declare as hidden.
6765
6766         * posix/getopt.c (__getopt_initialized): Declare as hidden.
6767         (attribute_hidden): Define as empty macro if not already defined.
6768
6769         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
6770         (__gconv_max_path_elem_len): Likewise.
6771         (__gconv_path_envvar): Likewise.
6772
6773         * math/Makefile (gmp-objs): Remove mp_clz_tab.
6774         * stdlib/Makefile (aux): Remove mp_clz_tab.
6775         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
6776
6777         * stdlib/exit.h (__exit_funcs): Declare as hidden.
6778
6779         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
6780
6781         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
6782         _nl_category_names, _nl_category_name_sizes, _nl_current,
6783         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
6784
6785         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
6786         (_nl_current_default_domain): Likewise
6787         (_nl_state_lock): Likewise.
6788         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
6789         (_nl_current_default_domain): Likewise
6790         (_nl_state_lock): Likewise.
6791         * intl/bindtextdom.c (_nl_state_lock): Likewise.
6792
6793         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
6794         (_fpioconst_pow10): Likewise.
6795
6796         * include/time.h (_tmbuf): Add attribute_hidden.
6797
6798         * time/tzset.c (tzstring_list): Define as static.
6799
6800         * include/time.h: Add attribute_hidden to __tzname_cur_max and
6801         __use_tzfile declaration.
6802
6803         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
6804         and __wcsmbs_last_locale declaration.
6805
6806 2002-02-25  Paul Eggert  <eggert@twinsun.com>
6807
6808         * timezone/Makefile (tzbases): Move systemv from here...
6809         (tzlinks): to here, since the entries in systemv were all changed
6810         from Zone to Link lines in tz-2001a.  Bug reported (and patch
6811         tested) by Peter Breitenlohner.
6812
6813 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
6814
6815         * time/tst-posixtz.c (tests): Add new tests.
6816         (main): Test whether tzset() sets daylight properly.
6817
6818 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
6819
6820         * time/tzset.c (tz_compute): Move __daylight, __tzname and
6821         __tzname_cur_max setting...
6822         (tzset_internal): ...here.
6823
6824 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
6825
6826         * time/tzset.c (compute_change): Don't return any value.
6827         (tz_compute): Likewise.  Don't handle southern hemisphere here.
6828         (__tz_convert): But here.
6829
6830 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
6831
6832         * manual/examples/mkfsock.c: Include <string.h> as well.
6833         Patch by Alain De Carolis <alaind@wseurope.com>.
6834
6835 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
6836
6837         * posix/regexec.c (re_match): Fix incorrect register sizes.
6838         (re_search): Likewise.
6839
6840 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
6841
6842         * posix/regcomp.c (regfree): Remove a disused condition.
6843         * posix/regex_internal.c (re_acquire_state): Likewise.
6844         (re_acquire_state_context): Likewise.
6845         (register_state): Remove a redundant malloc invocation.
6846         * posix/regex_internal.h: (re_state_table_entry): Simplify
6847         the structure.
6848
6849 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
6850
6851         * posix/regcomp.c (regcomp): Add __builtin_expect to error
6852         handling conditions.
6853         (regerror): Likewise.
6854         (regfree): Likewise.
6855         (re_compile_internal): Likewise.
6856         (init_dfa): Likewise.
6857         (init_word_char): Likewise.
6858         (create_initial_state): Likewise.
6859         (analyze): Likewise.
6860         (analyze_tree): Likewise.
6861         (duplicate_node): Likewise.
6862         (calc_eclosure): Likewise.
6863         (calc_eclosure_iter): Likewise.
6864         (parse): Likewise.
6865         (parse_reg_exp): Likewise.
6866         (parse_branch): Likewise.
6867         (parse_expression): Likewise.
6868         (parse_subexp): Likewise.
6869         (parse_dup_op): Likewise.
6870         (parse_bracket_exp): Likewise.
6871         (build_equiv_class): Likewise.
6872         (build_charclass): Likewise.
6873         (build_word_op): Likewise.
6874         (fetch_number): Likewise.
6875         (create_tree): Likewise.
6876         (duplicate_tree): Likewise.
6877         * posix/regex.c (BE): New macro.
6878         * posix/regexec.c (re_match): Add __builtin_expect to error
6879         handling conditions.
6880         (re_match_2): Likewise.
6881         (re_search): Likewise.
6882         (re_search_internal): Likewise.
6883         (check_matching): Likewise.
6884         (proceed_next_node): Likewise.
6885         (set_regs): Likewise.
6886         (sift_states_backward): Likewise.
6887         (add_epsilon_backreference): Likewise.
6888         (transit_state): Likewise.
6889         (transit_state_sb): Likewise.
6890         (transit_state_mb): Likewise.
6891         (transit_state_bkref): Likewise.
6892         (transit_state_bkref_loop): Likewise.
6893         (build_trtable): Likewise.
6894         (group_nodes_into_DFAstates): Likewise.
6895         (match_ctx_init): Likewise.
6896         (match_ctx_add_entry): Likewise.
6897         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
6898         to error handling conditions.
6899         (re_string_construct_toupper): Likewise.
6900         (build_wcs_buffer): Likewise.
6901         (build_wcs_upper_buffer): Likewise.
6902         (build_upper_buffer): Likewise.
6903         (re_string_translate_buffer): Likewise.
6904         (re_node_set_alloc): Likewise.
6905         (re_node_set_init_1): Likewise.
6906         (re_node_set_init_2): Likewise.
6907         (re_node_set_init_copy): Likewise.
6908         (re_node_set_intersect): Likewise.
6909         (re_node_set_init_union): Likewise.
6910         (re_node_set_merge): Likewise.
6911         (re_node_set_insert): Likewise.
6912         (re_dfa_add_node): Likewise.
6913         (re_acquire_state): Likewise.
6914         (re_acquire_state_context): Likewise.
6915         (create_new_state_common): Likewise.
6916         (register_state): Likewise.
6917         (create_ci_new_state): Likewise.
6918         (create_cd_new_state): Likewise.
6919         (re_string_context_at): Remove redundant condition.
6920
6921 2002-01-16  Roger Sayle  <roger@eyesopen.com>
6922
6923         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
6924
6925         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
6926
6927 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
6928
6929         * sysdeps/i386/elf/configure.in: Fix comment.
6930
6931         * sysdeps/sparc/sparc64/configure.in: New.
6932         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
6933         if .dynamic comes before .got.
6934         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
6935
6936         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
6937         HP_TIMING_ACCUM): Fix typos.
6938
6939 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
6940
6941         * string/strfry.c: Add some more randomness to the seed.
6942         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
6943
6944         * po/es.po: Update from translation team.
6945         * po/fr.po: Likewise.
6946
6947         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
6948
6949         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
6950         when determining type of format.
6951         Patch by James Antill <james@anqd.org> [PR libc/2787].
6952
6953 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
6954
6955         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
6956
6957 2002-03-11  Roland McGrath  <roland@frob.com>
6958
6959         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
6960
6961         * Versions.def (libc): Add GLIBC_2.2.6.
6962         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
6963         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
6964         __errno_location instead of __hurd_errno_location, and don't inline it.
6965         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
6966         * hurd/errno.c: New file.
6967         * hurd/Makefile (routines): Add errno.
6968
6969 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
6970
6971         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
6972         ridiculously large widths and precisions [PR libc/3026].
6973
6974 2002-03-11  Andreas Jaeger  <aj@suse.de>
6975
6976         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
6977         support.
6978         Patch by Susanne Oberhauser <froh@SuSE.de>.
6979
6980 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
6981
6982         * inet/rexec.c (ahostbuf): Define as static.
6983
6984         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
6985         (__ctype32_wctrans): Likewise.
6986         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
6987         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
6988         (__ctype32_wctrans): Likewise.
6989         (__ctype32_width): Likewise.
6990
6991         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
6992         They were never exported anyway.
6993
6994         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
6995         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
6996         exported.
6997         * include/sys/gmon.h: Declare _gmonparam.
6998
6999         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
7000         symbols for getdents64.  They were never exported.
7001
7002 2002-03-09  Roland McGrath  <roland@frob.com>
7003
7004         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
7005         Reported by Jon Arney <jarney1@cox.net>.
7006
7007 2002-02-23  Roland McGrath  <roland@frob.com>
7008
7009         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
7010         declaration.
7011         (__hurd_errno_location): Function removed.
7012
7013 2002-03-06  Andreas Jaeger  <aj@suse.de>
7014
7015         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
7016         32-bit.
7017
7018 2002-03-04  Andreas Jaeger  <aj@suse.de>
7019
7020         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
7021
7022         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
7023         x86-64.
7024
7025         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
7026
7027         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
7028
7029         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
7030
7031         * sysdeps/x86_64/bits/setjmp.h: New.
7032
7033         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
7034
7035         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
7036
7037         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
7038         for x86.
7039         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
7040         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
7041
7042 2002-02-28  Bo Thorsen  <bo@suse.de>
7043
7044         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
7045         version.
7046
7047 2002-03-03  Andreas Jaeger  <aj@suse.de>
7048
7049         * sysdeps/x86_64/bits/wordsize.h: New file.
7050
7051         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
7052         * elf/tst-tlsmod1.c: Likewise.
7053
7054         * posix/regcomp.c: Get regex.h from include dir for internal
7055         prototypes.
7056
7057         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
7058         to libc-internal.h and include it.
7059         * include/libc-internal.h: Add __init_misc.
7060
7061         * misc/init-misc.c: Include libc-internal.h for prototypes.
7062
7063         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
7064
7065         * misc/error.c [_LIBC]: Include libioP.h for prototype of
7066         _IO_putc_internal.
7067
7068 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
7069
7070         * posix/regcomp.c: Compatibility changes to allow using the code
7071         outside glibc.
7072
7073 2002-02-28  Hartvig Ekner <hartvige@mips.com>
7074
7075         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
7076         compiled non-PIC.
7077
7078 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
7079
7080         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
7081         of .str elements in the returned data structure.
7082
7083         * elf/elf.h: Add Alpha TLS bits.
7084
7085 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
7086
7087         * sysdeps/unix/sysv/linux/nice.c: New file.
7088
7089 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
7090
7091         * elf/Makefile (dl-routines): Add dl-origin.
7092         (elide-routines.os): Add dl-origin.
7093         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
7094         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
7095         _dl_debug_state.
7096         * include/libc-symbols.c: Define attribute_hidden depending on
7097         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
7098
7099         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
7100         * elf/dl-load.c: Likewise.
7101         * elf/rtld.c: Likewise.
7102         * include/unistd.h: Declare __libc_enable_secure_internal.
7103         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
7104         Use INTUSE with __libc_enable_secure.
7105         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
7106
7107         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
7108         * elf/dl-error.c: Likewise,
7109         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
7110
7111         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
7112         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
7113         function definition.  Use INTDEF with _dl_get_origin.
7114         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
7115
7116         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
7117         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
7118
7119         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
7120         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
7121         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
7122
7123         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
7124         * elf/dl-deps.c: Likewise.
7125         * elf/dl-error.c: Likewise.
7126         * elf/dl-fini.c: Likewise.
7127         * elf/dl-init.c: Likewise.
7128         * elf/dl-load.c: Likewise.
7129         * elf/dl-lookup.c: Likewise.
7130         * elf/dl-reloc.c: Likewise.
7131         * elf/dl-version.c: Likewise.
7132         * elf/do-lookup.h: Likewise.
7133         * sysdeps/arm/dl-machine.h: Likewise.
7134         * sysdeps/cris/dl-machine.h: Likewise.
7135         * sysdeps/hppa/dl-machine.h: Likewise.
7136         * sysdeps/i386/dl-machine.h: Likewise.
7137         * sysdeps/m68k/dl-machine.h: Likewise.
7138         * sysdeps/powerpc/dl-machine.h: Likewise.
7139         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7140         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7141         * sysdeps/sh/dl-machine.h: Likewise.
7142         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
7143         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
7144         * sysdeps/x86_64/dl-machine.h: Likewise.
7145         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
7146         _dl_argv[0].  Use INTUSE with _dl_argv.
7147         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
7148         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
7149
7150 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
7151
7152         * elf/rtld.c (_rtld_global): Remove .protected.
7153         (_rtld_local): Strong alias to _rtld_global.
7154         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
7155         only .os object.
7156         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
7157         _rtld_local instead of _rtld_global.
7158         (_rtld_local): Add hidden extern, possibly in .sdata section.
7159         * configure.in: Add tests for visibility attribute and .sdata.
7160         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
7161         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
7162         * sysdeps/arm/dl-machine.h: Likewise.
7163         * sysdeps/generic/ldsodefs.h: Likewise.
7164         * sysdeps/hppa/dl-machine.h: Likewise.
7165         * sysdeps/cris/dl-machine.h: Likewise.
7166         * sysdeps/i386/dl-machine.h: Likewise.
7167         * sysdeps/ia64/dl-machine.h: Likewise.
7168         * sysdeps/m68k/dl-machine.h: Likewise.
7169         * sysdeps/mips/mips64/dl-machine.h: Likewise.
7170         * sysdeps/mips/dl-machine.h: Likewise.
7171         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7172         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7173         * sysdeps/sh/dl-machine.h: Likewise.
7174         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7175         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7176         * sysdeps/x86_64/dl-machine.h: Likewise.
7177
7178 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
7179
7180         * login/login.c (login): Always initialize ut_line field
7181         [PR libc/2991].
7182
7183 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
7184
7185         * sysdeps/i386/Makefile (sysdep_routines): Add
7186         divdi3 in csu dir.
7187         (shared-only-routines): Likewise.
7188         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
7189         (shared-only-routines): Likewise.
7190         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
7191         (shared-only-routines): Likewise.
7192         * sysdeps/wordsize-32/divdi3.c: New file.
7193
7194 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
7195
7196         * locale/iso-4217.def: Remove obsolete currencies for countries
7197         with Euro.
7198
7199 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
7200
7201         * posix/regcomp.c (regcomp): Remove a redundant condition.
7202         (init_word_char): Add a check on malloc failure.
7203         (create_initial_state): Likewise.
7204         (duplicate_node): Likewise.
7205         (calc_eclosure): Likewise.
7206         (calc_eclosure_iter): Likewise.
7207         (parse_expression): Likewise.
7208         (parse_bracket_exp): Remove unnecessary malloc invocations.
7209         (build_equiv_class): Likewise.
7210         (build_charclass): Likewise.
7211         * posix/regex_internal.c (re_node_set_intersect): Add a check
7212         on malloc failure.
7213         (re_node_set_add_intersect): Likewise.
7214         (re_node_set_merge): Likewise.
7215         (re_acquire_state): Likewise.
7216         (re_acquire_state_context): Likewise.
7217         (create_newstate_common): Likewise.
7218         (register_state): Likewise.
7219         (create_ci_newstate): Likewise.
7220         (create_cd_newstate): Likewise.
7221         * posix/regex_internal.h: Fix prototypes of re_acquire_state
7222         and re_acquire_state_context.
7223         * posix/regexec.c (regexec): Suit it to the error handling of
7224         re_search_internal.
7225         (re_match): Likewise.
7226         (re_search): Likewise.
7227         (re_search_internal): Add a check on malloc failure.
7228         (acquire_init_state_context): Likewise.
7229         (check_matching): Likewise.
7230         (proceed_next_node): Likewise.
7231         (set_regs): Likewise.
7232         (sift_states_backward): Likewise.
7233         (sift_states_iter_bkref): Likewise.
7234         (add_epsilon_backreference): Likewise.
7235         (transit_state): Likewise.
7236         (transit_state_sb): Likewise.
7237         (transit_state_mb): Likewise.
7238         (transit_state_bkref_loop): Likewise.
7239         (build_trtable): Likewise.
7240         (group_nodes_into_DFAstates): Likewise.
7241         (match_ctx_init): Likewise.
7242         (match_ctx_add_entry): Likewise.
7243
7244 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
7245
7246         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
7247         l_libname if profiling is enabled [PR libc/2916].
7248
7249         * sysdeps/ia64/dl-tls.h: New file.
7250
7251 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
7252
7253         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
7254         Work around an Alpha gas bug.
7255
7256 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
7257
7258         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
7259         uses read to load the catalog.
7260         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
7261
7262 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
7263
7264         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
7265         regex_internal.c, and regex_internal.h.
7266         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
7267         * posix/regex.c: Complete rewrite.
7268         * posix/regexec.c: New file.
7269         * posix/regcomp.c: New file.
7270         * posix/regex_internal.c: New file.
7271         * posix/regex_internal.h: New file.
7272         * posix/regex.h (RE_ICASE): New macro.
7273         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
7274
7275         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
7276         ungetwc.  It's a macro.
7277         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
7278         implementation.
7279         Reported by Jason Merrill <jason@redhat.com>.
7280
7281 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
7282
7283         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
7284         position to fp->_offset if it is set.
7285         * stdio-common/Makefile (tests): Add tst-fdopen.
7286         * stdio-common/tst-fdopen.c: New test.
7287
7288 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
7289
7290         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
7291         * stdio-common/tst-ungetc.c (main): Add another test.
7292
7293 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
7294
7295         * assert/assert-perr.c: Use INTUSE to reference functions and variables
7296         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
7297         aliases.  Add prototypes for the new aliases.
7298         * assert/assert.c: Likewise.
7299         * include/libc-symbols.h: Likewise.
7300         * include/stdio.h: Likewise.
7301         * include/netinet/in.h: Likewise.
7302         * include/rpc/auth.h: Likewise.
7303         * include/rpc/auth_unix.h: Likewise.
7304         * include/rpc/key_prot.h: Likewise.
7305         * include/rpc/pmap_prot.h: Likewise.
7306         * include/rpc/pmap_rmt.h: Likewise.
7307         * include/rpc/rpc_msg.h: Likewise.
7308         * include/rpc/xdr.h: Likewise.
7309         * inet/gethstbyad_r.c: Likewise.
7310         * inet/gethstbynm2_r.c: Likewise.
7311         * inet/gethstbynm_r.c: Likewise.
7312         * inet/gethstent_r.c: Likewise.
7313         * inet/in6_addr.c: Likewise.
7314         * libio/__fpurge.c: Likewise.
7315         * libio/filedoalloc.c: Likewise.
7316         * libio/fileops.c: Likewise.
7317         * libio/ftello.c: Likewise.
7318         * libio/ftello64.c: Likewise.
7319         * libio/genops.c: Likewise.
7320         * libio/iofclose.c: Likewise.
7321         * libio/iofdopen.c: Likewise.
7322         * libio/iofflush.c: Likewise.
7323         * libio/iofflush_u.c: Likewise.
7324         * libio/iofgetpos.c: Likewise.
7325         * libio/iofgetpos64.c: Likewise.
7326         * libio/iofgets.c: Likewise.
7327         * libio/iofgets_u.c: Likewise.
7328         * libio/iofopen.c: Likewise.
7329         * libio/iofopncook.c: Likewise.
7330         * libio/iofputs.c: Likewise.
7331         * libio/iofread.c: Likewise.
7332         * libio/iofread_u.c: Likewise.
7333         * libio/iofsetpos.c: Likewise.
7334         * libio/iofsetpos64.c: Likewise.
7335         * libio/ioftell.c: Likewise.
7336         * libio/iofwrite.c: Likewise.
7337         * libio/iogetline.c: Likewise.
7338         * libio/iogets.c: Likewise.
7339         * libio/iogetwline.c: Likewise.
7340         * libio/iolibio.h: Likewise.
7341         * libio/iopadn.c: Likewise.
7342         * libio/iopopen.c: Likewise.
7343         * libio/ioseekoff.c: Likewise.
7344         * libio/ioseekpos.c: Likewise.
7345         * libio/iosetbuffer.c: Likewise.
7346         * libio/iosetvbuf.c: Likewise.
7347         * libio/ioungetc.c: Likewise.
7348         * libio/ioungetwc.c: Likewise.
7349         * libio/iovdprintf.c: Likewise.
7350         * libio/iovsprintf.c: Likewise.
7351         * libio/iovsscanf.c: Likewise.
7352         * libio/libioP.h: Likewise.
7353         * libio/memstream.c: Likewise.
7354         * libio/obprintf.c: Likewise.
7355         * libio/oldfileops.c: Likewise.
7356         * libio/oldiofclose.c: Likewise.
7357         * libio/oldiofdopen.c: Likewise.
7358         * libio/oldiofgetpos.c: Likewise.
7359         * libio/oldiofgetpos64.c: Likewise.
7360         * libio/oldiofopen.c: Likewise.
7361         * libio/oldiofsetpos.c: Likewise.
7362         * libio/oldiofsetpos64.c: Likewise.
7363         * libio/oldiopopen.c: Likewise.
7364         * libio/oldstdfiles.c: Likewise.
7365         * libio/putc.c: Likewise.
7366         * libio/setbuf.c: Likewise.
7367         * libio/setlinebuf.c: Likewise.
7368         * libio/stdfiles.c: Likewise.
7369         * libio/stdio.c: Likewise.
7370         * libio/strops.c: Likewise.
7371         * libio/vasprintf.c: Likewise.
7372         * libio/vscanf.c: Likewise.
7373         * libio/vsnprintf.c: Likewise.
7374         * libio/vswprintf.c: Likewise.
7375         * libio/wfiledoalloc.c: Likewise.
7376         * libio/wfileops.c: Likewise.
7377         * libio/wgenops.c: Likewise.
7378         * libio/wstrops.c: Likewise.
7379         * malloc/mtrace.c: Likewise.
7380         * misc/error.c: Likewise.
7381         * misc/syslog.c: Likewise.
7382         * nss/getXXbyYY_r.c: Likewise.
7383         * nss/getXXent_r.c: Likewise.
7384         * nss/hosts-lookup.c: Likewise.
7385         * stdio-common/getw.c
7386         * stdio-common/printf-prs.c: Likewise.
7387         * stdio-common/printf_fp.c: Likewise.
7388         * stdio-common/printf_size.c: Likewise.
7389         * stdio-common/putw.c: Likewise.
7390         * stdio-common/scanf.c: Likewise.
7391         * stdio-common/sprintf.c: Likewise.
7392         * stdio-common/tmpfile64.c: Likewise.
7393         * stdio-common/vfprintf.c: Likewise.
7394         * stdio-common/vfscanf.c: Likewise.
7395         * stdlib/strfmon.c: Likewise.
7396         * sunrpc/auth_des.c: Likewise.
7397         * sunrpc/auth_none.c: Likewise.
7398         * sunrpc/auth_unix.c: Likewise.
7399         * sunrpc/authdes_prot.c: Likewise.
7400         * sunrpc/authuxprot.c: Likewise.
7401         * sunrpc/clnt_perr.c: Likewise.
7402         * sunrpc/clnt_raw.c: Likewise.
7403         * sunrpc/clnt_tcp.c: Likewise.
7404         * sunrpc/clnt_udp.c: Likewise.
7405         * sunrpc/clnt_unix.c: Likewise.
7406         * sunrpc/key_call.c: Likewise.
7407         * sunrpc/key_prot.c: Likewise.
7408         * sunrpc/openchild.c: Likewise.
7409         * sunrpc/pm_getmaps.c: Likewise.
7410         * sunrpc/pm_getport.c: Likewise.
7411         * sunrpc/pmap_clnt.c: Likewise.
7412         * sunrpc/pmap_prot.c: Likewise.
7413         * sunrpc/pmap_prot2.c: Likewise.
7414         * sunrpc/pmap_rmt.c: Likewise.
7415         * sunrpc/rpc_cmsg.c: Likewise.
7416         * sunrpc/rpc_prot.c: Likewise.
7417         * sunrpc/svc_authux.c: Likewise.
7418         * sunrpc/svc_raw.c: Likewise.
7419         * sunrpc/svc_simple.c: Likewise.
7420         * sunrpc/svc_tcp.c: Likewise.
7421         * sunrpc/svc_udp.c: Likewise.
7422         * sunrpc/svc_unix.c: Likewise.
7423         * sunrpc/xdr.c: Likewise.
7424         * sunrpc/xdr_array.c: Likewise.
7425         * sunrpc/xdr_mem.c: Likewise.
7426         * sunrpc/xdr_rec.c: Likewise.
7427         * sunrpc/xdr_ref.c: Likewise.
7428         * sunrpc/xdr_stdio.c: Likewise.
7429         * sysdeps/generic/_strerror.c: Likewise.
7430         * sysdeps/generic/printf_fphex.c: Likewise.
7431         * sysdeps/generic/tmpfile.c: Likewise.
7432         * sysdeps/gnu/errlist.awk: Likewise.
7433         * sysdeps/gnu/errlist.c: Likewise.
7434
7435         * libio/Makefile (routines): Remove iosprint.
7436         * libio/iosprintf.c: Removed
7437
7438
7439 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
7440
7441         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
7442         non_dynamic_init and exported now.
7443         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
7444         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
7445         !SHARED.
7446         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
7447         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7448         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7449
7450 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
7451
7452         * elf/dl-close.c (free_slotinfo): Check for end of list and return
7453         true in this case.
7454
7455         * locale/iso-639.def: Add language codes for Walloon.
7456
7457         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
7458         total number of relocations performed.
7459
7460         * elf/sprof.c (load_profdata): If do_test provide information as
7461         to why loading failed.
7462         * elf/dl-profile.c (_dl_start_profile): Initialize all of
7463         hist_hdr.dimen.
7464
7465         * csu/set-init.c: Moved to...
7466         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
7467         * csu/Makefile: Don't compile set-init.
7468         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
7469         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
7470         to __libc_init.
7471         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7472         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7473         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
7474         __libc_init.
7475         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
7476         __libc_subinit.
7477
7478 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
7479
7480         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
7481         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
7482         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
7483         (_dl_deallocate_tls): New function.
7484         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
7485         _dl_deallocate_tls.
7486
7487 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
7488
7489         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
7490         * stdio-common/tst-fseek.c (main): Add test for this.
7491
7492 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
7493
7494         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
7495
7496 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
7497
7498         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
7499         pointer before dereferencing.
7500
7501 2002-02-18  Roland McGrath  <roland@frob.com>
7502
7503         * sysdeps/mach/hurd/times.c: Fix typo in last change.
7504
7505         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
7506         Use task_policy in place of task_priority.
7507
7508         * sysdeps/generic/bits/mman.h
7509         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
7510         * sysdeps/mach/msync.c: New file.
7511
7512         * sysdeps/mach/powerpc/syscall.S: New file.
7513
7514         * mach/msg.c [MACH_MSG_OVERWRITE]
7515         (__mach_msg_trap, __mach_msg_overwrite): New functions.
7516         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
7517
7518         * sysdeps/mach/configure.in: Check for clock.defs to put into
7519         mach_interface_list.
7520         * sysdeps/mach/configure: Regenerated.
7521
7522         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
7523         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
7524         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
7525         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
7526         (mach-shortcuts): Add device_read_overwrite_request,
7527         device_read_overwrite, vm_read_overwrite, thread_switch.
7528
7529         * configure.in (base_machine): Set to $machine by default.
7530         * configure: Regenerated.
7531
7532         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
7533         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
7534         * sysdeps/mach/configure: Regenerated.
7535         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
7536
7537         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
7538
7539         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
7540
7541         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
7542         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
7543
7544 2002-02-17  Roland McGrath  <roland@frob.com>
7545
7546         * sysdeps/mach/hurd/times.c
7547         [NO_CREATION_TIME] (startup_time): New static variable.
7548         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
7549         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
7550         creation_time from task_basic_info.
7551         (__times): Use __gettimeofday instead of __host_get_time.
7552
7553         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
7554         Use untyped Mach IPC message format.
7555
7556         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
7557
7558         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
7559         _S_catch_exception_raise_state_identity,
7560         _hurdsig_fault_catch_exception_raise_state,
7561         _hurdsig_fault_catch_exception_raise_state_identity.
7562
7563         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
7564
7565         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
7566         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
7567
7568         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
7569         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
7570
7571         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
7572         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
7573         them as no-op macros.
7574         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
7575         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
7576
7577         * sysdeps/powerpc/dl-machine.h
7578         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
7579
7580         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
7581         Use untyped Mach IPC message format.
7582
7583         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
7584         Handle untyped Mach IPC message formats.
7585
7586         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
7587         Expect different argument conventions when this is defined.
7588         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
7589         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
7590         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
7591         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
7592         for OSF Mach variant.
7593         (faulted): Use mig_reply_error_t for REPLY.
7594         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
7595         in __thread_set_exception_ports call.
7596         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
7597         __mach_port_set_attributes in place of __mach_port_set_qlimit.
7598
7599         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
7600         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
7601         on Darwin, which includes bogons.
7602
7603         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
7604         variable LOADBASE so it's not declared when it's not used.
7605
7606 2002-02-16  Roland McGrath  <roland@frob.com>
7607
7608         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
7609         to use BI.creation_time.
7610
7611         * mach/Machrules (MIG): Add -x c to CPP value passed down.
7612
7613         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
7614         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
7615         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
7616         host_page_size instead of vm_statistics.
7617
7618         * sysdeps/mach/Makefile (mach-before-compile): Don't include
7619         mach_interface.h here, since not all variants use that name.
7620
7621         * sysdeps/mach/configure.in: Add some checks for Mach headers
7622         to ensure a sane installation.
7623         (mach_interface_list): Define this variable by checking for .defs
7624         files found in various variants.
7625         * configure.in (mach_interface_list): AC_SUBST this.
7626         * config.make.in (mach-interface-list): New substituted variable.
7627         * mach/Makefile (user-interfaces): Define this using the value
7628         of $(mach-interface-list) instead of mach, mach4.
7629         Updated other references to mach_interface to use it as well.
7630
7631         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
7632
7633         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
7634         mig_reply_error_t for OSF Mach variant.
7635
7636         * mach/Makefile (routines): Remove bootprivport.
7637         * mach/bootprivport.c: File removed.  It has never been used.
7638
7639         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
7640         Grok the OSF flavor of message format.
7641         (mach_msg_destroy_port): For MAKE_SEND and
7642         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
7643         no-senders notification.
7644
7645 2002-02-06  Roland McGrath  <roland@frob.com>
7646
7647         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
7648         to here if 2.0 compatibility enabled ...
7649         (libc: GLIBC_2.1.3): ... from here.
7650
7651 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
7652
7653         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
7654         generation counter.
7655         * elf/dl-close.c (_dl_close): Likewise.
7656
7657 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
7658
7659         * elf/Makefile: Add rules to build and run tst-tls8.
7660         * elf/tst-tls8.c: New file.
7661         * elf/tst-tlsmod4.c: New file.
7662
7663         * stdlib/test-a64l.c (tests): Add more test cases.
7664
7665         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
7666         Reported by Walter Harms <WHarms@bfs.de>.
7667
7668 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
7669
7670         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
7671         definitions for struct sigcontext.
7672         Suggested by David Mosberger-Tang.
7673
7674 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
7675
7676         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
7677         for removing reference of module in slotinfo list.
7678         (_dl_close): Use remove_slotinfo.
7679         * sysdeps/generic/dl-tls.c: General pretty printing.
7680         (oom): Define only if SHARED.
7681         (_dl_next_tls_modid): Correct starting point for the case we assume
7682         there is a gap.  Add missing instruction grouping (doh!).  Correct
7683         tests for reaching maximum index.
7684         * elf/Makefile: Add rules to build and run tst-tls7.
7685         * elf/tst-tls7.c: New file.
7686         * elf/tst-tlsmod3.c: New file.
7687
7688         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
7689         USE_TLS.
7690         * elf/tst-tlsmod2.c: Likewise.
7691
7692         * elf/dl-close.c (_dl_close): When closing an object using TLS
7693         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
7694         true.  Increment dl_tls_generation only if we closed any TLS-using
7695         object.
7696         * elf/tst-tls6.c: New file.
7697         * elf/Makefile: Add rules to build and run tst-tls6.
7698
7699         * po/da.po: Update from translation team.
7700
7701         * locale/categories.def: Fix typo [PR libc/2948].
7702         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
7703         [PR libc/2949].
7704         * locale/iso-4217.def: Update from official version [PR libc/2950].
7705         * glibcbug.in: Honor TMPDIR [PR libc/2951].
7706         * locale/programs/ld-collate.c (collate_finish): Bail out with a
7707         message if input is too confusion instead of using assert.
7708         (collate_read): Don't crash on unknown symbol [PR libc/2952].
7709         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
7710
7711         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
7712         * elf/tst-tls2.c: Likewise.
7713         * elf/tst-tls3.c: Likewise.
7714
7715 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
7716
7717         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
7718
7719 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
7720
7721         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
7722         if this is really necessary.
7723
7724         * elf/dl-close.c (_dl_close): Implement freeing entries in the
7725         slotinfo array.
7726         (free_mem): Free memory for the slotinfo array if possible.
7727
7728 2002-02-12  Andreas Schwab  <schwab@suse.de>
7729
7730         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
7731
7732 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
7733
7734         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
7735         TLS_DTV_UNALLOCATE.
7736         (oom): New function.
7737         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
7738         (_dl_determine_tlsoffset): Likewise.
7739         (_dl_allocate_tls): Likewise.
7740         (__TLS_GET_ADDR): Define if not already defined.
7741         (_dl_tls_symaddr): New function.
7742         (allocate_and_init): New function.
7743         (__tls_get_addr): Actually implement handling of generation counter
7744         and deferred allocation.
7745         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
7746         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
7747         _dl_tls_generation.
7748         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
7749         Declare _dl_tls_symaddr.
7750         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
7751         SHARED.
7752         * include/link.h (struct link_map):  Remove l_tls_nextimage and
7753         l_tls_previmage.
7754         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
7755         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
7756         (_dl_vsym): Likewise.
7757         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
7758         layout.
7759         (dl_main): Allow PT_TLS be present for empty segment.  Remove
7760         nextimage list handling.  Instead add all modules using TLS to
7761         dl_tls_dtv_slotinfo_list.
7762         * elf/dl-open.c (dl_open_worker): After successfully loading all
7763         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
7764         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
7765         empty segment don't do anything.  Remove handling of initimage list.
7766         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
7767         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
7768         * elf/dl-minimal.c: Define __libc_memalign.
7769         * elf/dl-support.c: Remove _dl_initimage_list.  Add
7770         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
7771         _dl_tls_generation.
7772         * include/stdlib.h: Declare __libc_memalign.
7773
7774         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
7775         * elf/tst-tls4.c: New file.
7776         * elf/tst-tls5.c: New file.
7777         * elf/tst-tlsmod2.c: New file.
7778
7779         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
7780
7781         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
7782
7783         * elf/tst-tls1.c: Use test-skeleton.c.
7784         * elf/tst-tls2.c: Likewise.
7785         * elf/tst-tls3.c: Likewise.
7786
7787         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
7788
7789 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
7790
7791         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
7792
7793 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
7794
7795         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
7796
7797         * elf/tst-tls3.c: New file.
7798         * elf/tst-tlsmod1.c: New file.
7799         * elf/Makefile: Add rules to build and run tst-tls3.
7800
7801         * sysdeps/i386/dl-machine.h: Include <tls.h>.
7802         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
7803         TLS relocations.
7804
7805         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
7806
7807         * po/fr.po: Update from translation team.
7808
7809         * elf/tls-macros.h: Add alternative macros for use in PIC.
7810
7811         * elf/dl-lookup.c: Include <tls.h>.
7812         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
7813
7814         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
7815         required by passing pointer to last element of the list.
7816
7817         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
7818         l_tls_initimage to a place where it actually is performed.
7819
7820         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
7821         after globfree() calls.
7822
7823         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
7824         (openaux): Pass open_mode as new last argument to _dl_map_object.
7825         (_dl_map_object_deps): Add new argument open_mode.  Initialize
7826         open_mode element of args variable with it.
7827         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
7828         _dl_map_object_deps.
7829         * elf/rtld.c (dl_main): Add zero as last parameter to
7830         _dl_map_object_deps call.
7831         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
7832         * elf/nodlopen2.c: New file.
7833         * elf/nodlopenmod2.c: New file.
7834         * elf/Makefile: Add rules to build and run nodlopen2.
7835
7836         * elf/tst-tls1.c: Move TLS helper macros to...
7837         * elf/tls-macros.h: ...here.  New file.
7838         * elf/tst-tls2.c: New file.
7839         * elf/Makefile (tests): Add tst-tls2.
7840         (distribute): Add tls-macros.h.
7841
7842         * po/sv.po: Update from translation team.
7843
7844         * elf/tst-tls1.c (main): Add complete set of tests.  Split
7845         architecture specific definitions from the actual test code.
7846
7847         * po/tr.po: Update from translation team.
7848
7849 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
7850
7851         * elf/Makefile (tests): Add tst-tls1.
7852         * elf/tst-tls1.c: New file.
7853
7854         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
7855         alignment of TCB for now.
7856
7857         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
7858         initialization image for the application itself.
7859
7860         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
7861         loop to initialize TLS block.
7862
7863 2002-02-08  Richard Henderson  <rth@redhat.com>
7864
7865         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
7866         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
7867
7868         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
7869
7870 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
7871
7872         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
7873
7874 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
7875
7876         * po/ca.po: Update from translation team.
7877         * po/sk.po: Likewise.
7878
7879         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
7880         (dl_main): Move dtv/static TLS handling before relocation.
7881         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
7882         TLS_INIT_TP to allocate and install the dtv/static TLS block.
7883         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
7884         so far uses TLS initialize GL(dl_tls_static_size) and
7885         GL(dl_tls_static_align) to account for the TCB.
7886         (_dl_allocate_tls): New function.
7887         * sysdeps/generic/ldsodefs.h (rtld_global): Add
7888         _dl_initial_dtv_malloced.
7889
7890         * configure.in: Test for __builtin_memset more realistically.
7891
7892         * csu/version.c (banner): If TLS support is available say so.
7893
7894 2002-02-04  H.J. Lu  <hjl@gnu.org>
7895
7896         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
7897         __attribute_used__.
7898         (__dl_runtime_resolve): Likewise.
7899
7900         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
7901         declaration.
7902
7903 2001-11-15  H.J. Lu  <hjl@gnu.org>
7904
7905         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
7906         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
7907
7908         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
7909
7910 2002-02-07  H.J. Lu  <hjl@gnu.org>
7911
7912         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
7913         ".set noreorder".
7914         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
7915         Likewise.
7916
7917 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
7918
7919         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
7920
7921         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
7922         ___tls_get_addr_internal.
7923         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
7924
7925         * po/ko.po: Update from translation team.
7926
7927 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
7928
7929         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
7930         attribute, change __pad{1,2} type to unsigned int.
7931         (struct stat64): Remove packed attribute.
7932
7933 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
7934
7935         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
7936
7937 2002-02-07  Andreas Schwab  <schwab@suse.de>
7938
7939         * configure.in: Fix check for -zcombreloc.
7940
7941 2002-02-06  H.J. Lu  <hjl@gnu.org>
7942
7943         * config.h.in (HAVE_BUILTIN_MEMSET): New.
7944         * configure.in: Check if __builtin_memset really works.
7945         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
7946         __GNUC_PREREQ (2, 96) before using __builtin_memset.
7947
7948 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7949
7950         * io/bug-ftw3.c (main): Don't try the test if root.
7951
7952 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7953
7954         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
7955         constraints.
7956         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
7957         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
7958         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
7959         Likewise.
7960         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
7961         a weak alias for __clone.
7962         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
7963         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
7964         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
7965         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
7966         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
7967         a weak alias for __mmap64.
7968
7969 2002-02-05  H.J. Lu  <hjl@gnu.org>
7970
7971         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
7972         (atomic_add): Likewise.
7973         (compare_and_swap): Likewise.
7974         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
7975
7976 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
7977
7978         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
7979
7980         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
7981         alignment of the TCB and store total size and alignment of static
7982         TLS block in _dl_tls_static_size and _dl_tls_static_align.
7983         tls_index is a typedef.
7984         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
7985         _dl_tls_static_align.
7986         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
7987         * elf/dl-support.c: Define _dl_tls_static_size and
7988         _dl_tls_static_align.
7989
7990 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
7991
7992         * configure.in: Add --without-tls option.
7993         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
7994         --without-tls is given.
7995
7996         * sysdeps/generic/dl-tls.c: Include <tls.h>.
7997
7998         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
7999
8000 2002-02-06  Roland McGrath  <roland@frob.com>
8001
8002         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
8003         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
8004
8005         * scripts/versions.awk: Improve error message for missing version.
8006         Each version inherits from the last one only if they have the same
8007         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
8008         but not GLIBC_x and FOO_y.
8009
8010         * scripts/firstversions.awk: Handle libraries that don't have each
8011         particular version named in the third column of shlib-versions.
8012
8013         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
8014
8015 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
8016
8017         * Versions.def [ld]: Add GLIBC_2.3.
8018         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
8019         * elf/Makefile (dl-routines): Add dl-tls.
8020         (distribute): Add dl-tls.h.
8021         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
8022         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
8023         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
8024         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
8025         along with the other info in the link map.  Change queueing of init
8026         images for double linked list.  Use _dl_next_tls_modid to compute
8027         l_tls_modid.
8028         * elf/rtld.c (_dl_start_final): Store alignment requirement
8029         along with the other info in rtld map and executable map.
8030         (dl_main): Add ld.so to the init image list if necessary.  Compute
8031         final module ID with _dl_next_tls_modid.
8032         * include/link.h (struct link_map): Add l_tls_previmage and
8033         l_tls_align.
8034         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
8035         * sysdeps/i386/elf/Versions: New file.
8036         * sysdeps/generic/dl-tls.c: New file.
8037         * sysdeps/generic/dl-tls.h: New file.
8038         * sysdeps/i386/dl-tls.h: New file.
8039
8040 2002-02-06  Roland McGrath  <roland@frob.com>
8041
8042         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
8043         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
8044
8045 2002-01-05  Roland McGrath  <roland@frob.com>
8046
8047         * sysdeps/mach/configure.in: New file.
8048         * sysdeps/mach/configure: New generated file.
8049
8050         * mach/Makefile (user-interfaces): Remove default_pager_helper.
8051         It has never been used by anything.
8052
8053 2002-02-06  H.J. Lu  <hjl@gnu.org>
8054
8055         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
8056         is included.
8057
8058 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
8059
8060         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
8061         attribute((packed)) to counter stupid people misusing gcc options.
8062         (struct stat64): Likewise.
8063
8064 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
8065
8066         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
8067         the variables which are used as booleans.
8068
8069 2002-02-06  Andreas Jaeger  <aj@suse.de>
8070
8071         * include/libc-symbols.h (INTUSE): Renamed from INT.
8072         * elf/dl-deps.c: Change users.
8073         * sysdeps/generic/dl-sysdep.c: Likewise.
8074         * sysdeps/generic/dl-cache.c: Likewise.
8075         * elf/dl-reloc.c: Likewise.
8076         * elf/rtld.c: Likewise.
8077         * elf/dl-version.c: Likewise.
8078         * elf/dl-load.c: Likewise.
8079         * elf/dl-dst.h: Likewise.
8080         * elf/dl-init.c: Likewise.
8081         * elf/dl-error.c: Likewise.
8082         * elf/dl-fini.c: Likewise.
8083         * elf/dl-runtime.c: Likewise.
8084         * elf/do-lookup.h: Likewise.
8085
8086         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
8087         definition.
8088         * stdio-common/_itowa.h: Likewise.
8089
8090 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
8091
8092         * elf/dl-minimal.c: Define _itoa_lower_digits.
8093
8094         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
8095         DT_FLAGS set.
8096
8097         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
8098         loading modules with the DF_STATIC_TLS flag set.
8099         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
8100         element.
8101         * include/link.h (struct link_map): Add l_flags field.
8102         * elf/elf.h (DF_STATIC_TLS): New definition.
8103
8104         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
8105         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
8106
8107         * elf/rtld.c (process_dl_debug): Correct printing help message.
8108         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
8109         for %s.
8110
8111         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
8112         definition and pass &errno in use of this variable.
8113         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
8114
8115 2002-02-04  Andreas Schwab  <schwab@suse.de>
8116
8117         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
8118         * locale/programs/charmap-dir.c: Wrap calls that output messages
8119         with WITH_CUR_LOCALE.  Include "localedef.h" first.
8120         * locale/programs/charmap.c: Likewise.
8121         * locale/programs/ld-address.c: Likewise.
8122         * locale/programs/ld-collate.c: Likewise.
8123         * locale/programs/ld-ctype.c: Likewise.
8124         * locale/programs/ld-identification.c: Likewise.
8125         * locale/programs/ld-measurement.c: Likewise.
8126         * locale/programs/ld-messages.c: Likewise.
8127         * locale/programs/ld-monetary.c: Likewise.
8128         * locale/programs/ld-name.c: Likewise.
8129         * locale/programs/ld-numeric.c: Likewise.
8130         * locale/programs/ld-paper.c: Likewise.
8131         * locale/programs/ld-telephone.c: Likewise.
8132         * locale/programs/ld-time.c: Likewise.
8133         * locale/programs/linereader.c: Likewise.
8134         * locale/programs/linereader.h: Likewise.
8135         * locale/programs/localedef.c: Likewise.
8136         * locale/programs/locfile.c: Likewise.
8137         * locale/programs/repertoire.c: Likewise.
8138
8139 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
8140
8141         * elf/rtld.c (_dl_start_final): Determine load address to locate
8142         ehdr with GL(dl_rtld_map).l_map_start.
8143
8144         * po/ca.po: Update from translation team.
8145
8146         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
8147         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
8148         header entry.
8149         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
8150         _dl_tls_module_cnt.
8151         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
8152
8153 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
8154
8155         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
8156         * include/link.h (struct link_map): Add various members for TLS
8157         information.
8158         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
8159         _rtld_tlsoffset, add _dl_initimage_list.
8160         * sysdeps/i386/dl-lookupcfg.h: New file.
8161         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
8162         TLS relocation.  When using TLS we now use RESOLVE_MAP.
8163         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
8164         is used.
8165
8166         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
8167         unused.
8168
8169         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
8170         thread-pointer as soon as possible.
8171         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
8172         elements in rtld_global.
8173         * sysdeps/generic/tls.h: New file.
8174         * elf/Makefile (distribute): Add tls.h.
8175         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
8176         relocations.  Not complete yet.
8177
8178         * resolv/resolv.h: Allow user to define __need_res_state and only
8179         define __res_start structure then.
8180         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
8181
8182         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
8183         dl_cpuclock_offset initialization to _dl_start_final.
8184         (_dl_show_auxv): Avoid unnecessary sign extension.
8185         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
8186
8187 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
8188
8189         * config.h.in: Add HAVE_TLS_SUPPORT.
8190         * sysdeps/i386/elf/configure.in: New file.
8191
8192 2002-02-03  Andreas Schwab  <schwab@suse.de>
8193
8194         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
8195         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
8196
8197 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
8198
8199         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
8200         alloca if the memory reqirements are too high.
8201
8202 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
8203
8204         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
8205         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
8206         the former is available anyway and speed isn't important here.
8207         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
8208         * elf/dl-version.c (match_symbol): Likewise.
8209         (_dl_check_map_versions): Likewise.
8210         * elf/rtld.c (process_envvars): Likewise.
8211         (print_statistics): Likewise.
8212         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
8213         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
8214         bases.  Add assert to catch uses of unimplemented features.
8215         (__strsep): Add assert to catch uses of unimplemented features.
8216         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
8217         and avoid inline optimization.
8218         * elf/rtld.c (process_envvars): Likewise.
8219         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
8220         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
8221         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
8222
8223 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
8224
8225         * stdio-common/_itoa.h: Minor simplifications of the code.
8226         * stdio-common/_itoa.c: Likewise.
8227
8228         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
8229         instead of _dl_printf for debugging info output.
8230
8231         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
8232         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
8233
8234 2002-02-01  H.J. Lu  <hjl@gnu.org>
8235
8236         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
8237         (atomic_add): Likewise.
8238         (compare_and_swap): Return 0 only when failed to compare. Use
8239         branch likely.
8240
8241         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
8242         branch likely.
8243
8244 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
8245
8246         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
8247
8248 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
8249
8250         * elf/dl-minimal.c (__strsep): New minimal implementation.
8251
8252 2002-02-02  Paul Eggert  <eggert@twinsun.com>
8253
8254         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
8255         (__mktime_internal): If no tm_isdst is requested, prefer solutions
8256         with tm_isdst > 0 when the requested time falls within a
8257         spring-forward gap [PR libc/2894].
8258
8259 2002-02-03  Andreas Schwab  <schwab@suse.de>
8260
8261         * stdio-common/tst-rndseek.c: Increase timeout.
8262
8263 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
8264
8265         Change ld.so to not use functions which are exported.  One cannot
8266         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
8267         definitions.
8268         * include/libc-symbols.h: Define INT and INTDEF.
8269         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
8270         _dl_signal_error_internal, _dl_map_object_internal,
8271         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
8272         _dl_lookup_versioned_symbol_internal,
8273         _dl_relocate_object_internal, _dl_debug_state_internal,
8274         _dl_start_profile_internal, and _dl_unload_cache_internal.
8275         * include/dlfcn.h: Declare _dl_catch_error_internal.
8276         * elf/rtld.c: Use INT for calls to any of the *_internal functions
8277         above.  Add INTDEF to function definitions.
8278         * elf/dl-debug.c: Likewise.
8279         * elf/dl-deps.c: Likewise.
8280         * elf/dl-dst.h: Likewise.
8281         * elf/dl-error.c: Likewise.
8282         * elf/dl-fini.c: Likewise.
8283         * elf/dl-init.c: Likewise.
8284         * elf/dl-load.c: Likewise.
8285         * elf/dl-lookup.c: Likewise.
8286         * elf/dl-misc.c: Likewise.
8287         * elf/dl-open.c: Likewise.
8288         * elf/dl-profile.c: Likewise.
8289         * elf/dl-reloc.c: Likewise.
8290         * elf/dl-runtime.c: Likewise.
8291         * elf/dl-version.c: Likewise.
8292         * elf/do-lookup.h: Likewise.
8293         * sysdeps/generic/dl-cache.c: Likewise.
8294         * sysdeps/generic/dl-sysdep.c: Likewise.
8295         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
8296         instead of _dl_init.
8297         * sysdeps/arm/dl-machine.h: Likewise.
8298         * sysdeps/cris/dl-machine.h: Likewise.
8299         * sysdeps/hppa/dl-machine.h: Likewise.
8300         * sysdeps/i386/dl-machine.h: Likewise.
8301         * sysdeps/ia64/dl-machine.h: Likewise.
8302         * sysdeps/m68k/dl-machine.h: Likewise.
8303         * sysdeps/mips/dl-machine.h: Likewise.
8304         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8305         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8306         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8307         * sysdeps/sh/dl-machine.h: Likewise.
8308         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8309         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8310         * sysdeps/x86_64/dl-machine.h: Likewise.
8311         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
8312
8313         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
8314         and _dl_debug_initialize.
8315
8316         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
8317         more information.
8318         * elf/rtld.c (dl_main): Avoid strrchr.
8319         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
8320         result of readlink.  Search from the back for '/'.
8321
8322         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
8323         strncpy if possible.
8324
8325         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
8326         strncmp.
8327         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
8328         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
8329         strspn, and strcspn.
8330         (process_envvars): Don't use strcspn.
8331
8332         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
8333         (_dl_dst_substitute): Likewise.
8334
8335 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
8336
8337         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
8338         code which is never used when relocating ld.so itself.
8339
8340         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
8341         starting ld.so itself.  Move l_addr variable initialization closer
8342         to use.
8343         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
8344
8345 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
8346
8347         * Versions.def (libc): Add GLIBC_PRIVATE.
8348         (libdb, libnss_db, libdb1): Remove.
8349         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
8350         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
8351         (libpthread): Add GLIBC_PRIVATE.
8352         (libresolv): Likewise, remove GLIBC_2.1.
8353         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
8354         GLIBC_2.2.3, GLIBC_2.3.
8355         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
8356         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
8357         _dl_sym, _dl_vsym): Likewise.
8358         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
8359         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
8360         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
8361         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
8362         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
8363         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
8364         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
8365         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
8366         Likewise.
8367         (_dl_object_relocation_scope): Remove.
8368         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
8369         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
8370         __gconv_cache): Move to GLIBC_PRIVATE.
8371         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
8372         __internal_setnetgrent): Likewise.
8373         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
8374         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
8375         * locale/Versions (__collate_element_hash, __collate_element_strings,
8376         __collate_symbol_classes, __collate_symbol_hash,
8377         __collate_symbol_strings, _nl_current_LC_COLLATE,
8378         _nl_current_LC_CTYPE): Likewise.
8379         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
8380         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
8381         (libnss_nis, libnss_nisplus): Likewise.
8382         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
8383         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
8384         (libnss_files): Move all symbols to GLIBC_PRIVATE.
8385         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
8386         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
8387         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
8388         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
8389         __ns_get16, __ns_samename): Likewise.
8390         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
8391         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
8392         GLIBC_PRIVATE.
8393         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
8394         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
8395         __libc_connect): Likewise.
8396         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
8397         Likewise.
8398         * stdlib/Versions (__libc_system): Likewise.
8399         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
8400         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
8401         * sysdeps/ia64/fpu/Versions: Likewise.
8402         * sysdeps/ia64/Versions: Likewise.
8403         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
8404         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
8405         to GLIBC_PRIVATE.
8406         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
8407         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
8408         __libc_sigaction): Likewise.
8409         * termios/Versions (__libc_tcdrain): Likewise.
8410
8411         * misc/sys/cdefs (__attribute_noinline__): Define.
8412         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
8413         __attribute_noinline__.
8414
8415         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
8416         * elf/dl-xstat64.c: New file.
8417         * elf/dl-fxstat64.c: New file.
8418         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
8419         don't export __fxstat64 at multiple versions.
8420         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
8421         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
8422
8423 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
8424
8425         * locale/program/ld-collate.c (collate_finish): Assign a wide
8426         char collation sequence value to multi character collating
8427         elements, and avoid over writing by non-character elements.
8428
8429 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
8430
8431         * elf/Makefile (distribute): Add dl-procinfo.c.
8432         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
8433         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
8434
8435 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
8436
8437         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
8438         definition.
8439         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
8440         _rtld_global struct.
8441         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
8442         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
8443         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8444         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
8445         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
8446         _dl_fpu_control_set): Remove unused externs.
8447         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
8448         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
8449         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
8450         related variables in _rtld_global struct.
8451         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
8452         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
8453         unused extern.
8454
8455 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
8456
8457         * sysdeps/generic/dl-procinfo.c: New file.
8458
8459 2002-02-01  Andreas Schwab  <schwab@suse.de>
8460
8461         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
8462
8463 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
8464
8465         * elf/rtld.c (_dl_start): Mark as internal_function.
8466         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
8467         in register.
8468         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
8469         General pretty printing.
8470
8471 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
8472
8473         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
8474         * elf/dl-reloc.c: Pretty printing.
8475         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
8476         procinfo-related variables in rtld_global struct.
8477         * elf/dl-support.c: Likewise.
8478         * elf/rtld.c: Likewise.
8479         * sysdeps/i386/i686/Makefile: Likewise.
8480         * sysdeps/i386/i686/hp-timing.c: Likewise.
8481         * sysdeps/i386/i686/hp-timing.h: Likewise.
8482         * sysdeps/ia64/Makefile: Likewise.
8483         * sysdeps/ia64/hp-timing.c: Likewise.
8484         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
8485         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
8486         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
8487         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
8488         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8489         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
8490         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
8491         * sysdeps/x86_64/Makefile: Likewise.
8492
8493         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
8494         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
8495         _dl_debug_fd to rtld_global.
8496         * elf/Versions: Likewise.
8497         * elf/dl-close.c: Likewise.
8498         * elf/dl-iteratephdr.c: Likewise.
8499         * elf/dl-lookup.c: Likewise.
8500         * elf/dl-misc.c: Likewise.
8501         * elf/dl-open.c: Likewise.
8502         * elf/dl-support.c: Likewise.
8503         * elf/do-lookup.h: Likewise.
8504         * elf/rtld.c: Likewise.
8505         * sysdeps/generic/dl-cache.c: Likewise.
8506         * sysdeps/generic/dl-sysdep.c: Likewise.
8507         * sysdeps/ia64/Versions: Likewise.
8508         * sysdeps/unix/clock_gettime.c: Likewise.
8509         * sysdeps/unix/clock_settime.c: Likewise.
8510         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8511         * sysdeps/sparc/Versions: Removed.
8512         * sysdeps/i386/i686/Versions : Removed.
8513         * sysdeps/x86_64/Versions: Removed.
8514         * configure.in: Define HAVE_PROTECTED if .protected is available.
8515         * config.h.in: Add entry for HAVE_PROTECTED.
8516
8517 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
8518
8519         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
8520         code in struct _rtld_global.  Export this struct, remove all
8521         exports for the signal variables.
8522         * sysdeps/arm/dl-machine: Likewise.
8523         * sysdeps/generic/dl-origin: Likewise.
8524         * sysdeps/generic/dl-sysdep: Likewise.
8525         * sysdeps/generic/dl-cache: Likewise.
8526         * sysdeps/hppa/dl-fptr: Likewise.
8527         * sysdeps/hppa/dl-machine: Likewise.
8528         * sysdeps/cris/dl-machine: Likewise.
8529         * sysdeps/i386/dl-machine: Likewise.
8530         * sysdeps/ia64/dl-machine: Likewise.
8531         * sysdeps/m68k/dl-machine: Likewise.
8532         * sysdeps/mach/hurd/dl-sysdep: Likewise.
8533         * sysdeps/mips/mips64/dl-machine: Likewise.
8534         * sysdeps/mips/dl-machine: Likewise.
8535         * sysdeps/powerpc/elf/libc-start: Likewise.
8536         * sysdeps/powerpc/dl-machine: Likewise.
8537         * sysdeps/powerpc/dl-start: Likewise.
8538         * sysdeps/sparc/sparc32/dl-machine: Likewise.
8539         * sysdeps/sparc/sparc64/dl-machine: Likewise.
8540         * sysdeps/sh/dl-machine: Likewise.
8541         * sysdeps/s390/s390-32/dl-machine: Likewise.
8542         * sysdeps/s390/s390-64/dl-machine: Likewise.
8543         * sysdeps/unix/sysv/aix/libc-start: Likewise.
8544         * sysdeps/unix/sysv/aix/start-libc: Likewise.
8545         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
8546         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
8547         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
8548         * sysdeps/x86_64/dl-machine: Likewise.
8549
8550 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
8551
8552         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
8553         are too high.
8554
8555 2002-01-31  Andreas Schwab  <schwab@suse.de>
8556
8557         * sysdeps/posix/readv.c: Check for ssize_t overflow.
8558
8559 2002-01-31  Andreas Schwab  <schwab@suse.de>
8560
8561         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
8562         reference to _dl_pagesize.
8563
8564 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
8565
8566         * Versions.def [ld]: Add GLIBC_2.3.
8567         * elf/dl-addr.c: Move global variables for SHARED code in struct
8568         _rtld_global.  Export this struct, remove all exports for the
8569         signal variables.
8570         * elf/dl-close.c: Likewise.
8571         * elf/dl-conflict.c: Likewise.
8572         * elf/dl-debug.c: Likewise.
8573         * elf/dl-deps.c: Likewise.
8574         * elf/dl-dst.h: Likewise.
8575         * elf/dl-error.c: Likewise.
8576         * elf/dl-fini.c: Likewise.
8577         * elf/dl-init.c: Likewise.
8578         * elf/dl-iteratephdr.c: Likewise.
8579         * elf/dl-libc.c: Likewise.
8580         * elf/dl-load.c: Likewise.
8581         * elf/dl-lookup.c: Likewise.
8582         * elf/dl-minimal.c: Likewise.
8583         * elf/dl-object.c: Likewise.
8584         * elf/dl-open.c: Likewise.
8585         * elf/dl-profile.c: Likewise.
8586         * elf/dl-profstub.c: Likewise.
8587         * elf/dl-reloc.c: Likewise.
8588         * elf/dl-runtime.c: Likewise.
8589         * elf/dl-support.c: Likewise.
8590         * elf/dl-sym.c: Likewise.
8591         * elf/dl-version.c: Likewise.
8592         * elf/do-lookup.h: Likewise.
8593         * elf/do-rel.h: Likewise.
8594         * elf/dynamic-link.h: Likewise.
8595         * elf/rtld.c: Likewise.
8596         * sysdeps/generic/dl-cache.c: Likewise.
8597         * sysdeps/generic/dl-sysdep.c: Likewise.
8598         * sysdeps/generic/ldsodefs.h: Likewise.
8599         * sysdeps/generic/libc-start.c: Likewise.
8600         * sysdeps/i386/dl-machine.h: Likewise.
8601         * sysdeps/ia64/dl-fptr.c: Likewise.
8602         * sysdeps/ia64/dl-machine.h: Likewise.
8603         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
8604         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8605         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
8606         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
8607         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
8608         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
8609         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
8610         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
8611
8612 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
8613
8614         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
8615         to avoid warning
8616         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
8617
8618         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
8619         SHARED version.
8620         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
8621
8622         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
8623
8624 2002-01-29  Ben Collins  <bcollins@debian.org>
8625
8626         * string/bits/string2.h (__mempcpy): Protect size arg for
8627         addition when using __builtin_memcpy.
8628
8629 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
8630
8631         * stdlib/Makefile (tests): Add tst-qsort.
8632         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
8633
8634         * manual/signal.texi (Process Signal Mask): Document that
8635         pthread_sigmask, not sigprocmask, must be used in MT programs.
8636         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
8637
8638         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
8639         found.
8640         * misc/Makefile (tests): Add tst-hsearch.
8641         * misc/tst-hsearch.c: New file.
8642
8643 2002-01-18  Wolfram Gloger  <wg@malloc.de>
8644
8645         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
8646         * malloc/malloc.h: Likewise.
8647         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
8648         * malloc/arena.c: New file.
8649         * malloc/hooks.c: New file.
8650         * malloc/tst-mallocstate.c: New file.
8651         * malloc/Makefile: Add new testcase tst-mallocstate.
8652         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
8653
8654 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
8655
8656         * stdlib/msort.c: Remove last patch.  The optimization violates the
8657         same rule which qsort.c had problems with.
8658
8659 2002-01-27  Paul Eggert  <eggert@twinsun.com>
8660
8661         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
8662         to a pivot element that lies outside the array to be sorted, as
8663         ISO C99 requires that the comparison function be called only with
8664         addresses of array elements [PR libc/2880].
8665
8666 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
8667
8668         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
8669         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
8670
8671         * timezone/asia: Update from tzdata2002b.
8672         * timezone/australasia: Likewise.
8673         * timezone/backward: Likewise.
8674         * timezone/europe: Likewise.
8675         * timezone/leapseconds: Likewise.
8676         * timezone/iso3166.tab: Likewise.
8677         * timezone/zone.tab: Likewise.
8678
8679 2002-01-23  Richard Henderson  <rth@redhat.com>
8680
8681         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
8682
8683 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
8684
8685         * string/strxfrm.c: Allocate one more byte for rulearr and clear
8686         this element [PR libc/2855].
8687
8688         * string/strcoll.c: Handle zero-length arguments specially
8689         [PR libc/2856].
8690
8691 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
8692
8693         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
8694         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
8695         short lengths and constant src.
8696         (strcpy): Don't optimize for gcc 3.0+.
8697         (__stpcpy): For gcc 3.0+, don't use
8698         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
8699         for short string literal src.
8700
8701 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
8702
8703         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
8704         Set for arm, too.
8705
8706 2001-01-22  Paul Eggert  <eggert@twinsun.com>
8707
8708         * manual/llio.texi (Linked Channels, Cleaning Streams):
8709         Make it clearer that a just-opened input stream might need cleaning.
8710
8711 2002-01-21  H.J. Lu  <hjl@gnu.org>
8712
8713         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
8714         Don't use label at end of compound statement.
8715
8716 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
8717
8718         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
8719         Remove test for negative integer arg; sin_pi does it correctly.
8720
8721 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
8722
8723         * nscd/Makefile (distribute): Filter out xmalloc.c.
8724
8725 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
8726
8727         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
8728         Set offset if read end wasn't the buffer end.
8729         (_IO_file_seekoff_mmap): New function.
8730         (_IO_file_xsgetn_mmap): New function.
8731         (_IO_file_jumps_mmap): Use the two new functions.
8732         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
8733         != end buffer.
8734         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
8735         _IO_file_underflow_mmap.
8736         * libio/iofopen.c: Don't position file descriptor at end of file.
8737         * libio/tst-widetext.c: Improve error messages.
8738         * stdio-common/tst-rndseek.c: Likewise.
8739
8740 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
8741
8742         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
8743         end of enum for !_GNU_SOURCE.
8744         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
8745         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
8746         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
8747         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
8748         values unless _GNU_SOURCE.
8749
8750         * iconvdata/tcvn5712-1.c: Minor cleanups.
8751
8752 2002-01-18  Andreas Schwab  <schwab@suse.de>
8753
8754         * sysdeps/unix/sysv/linux/configure.in
8755         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
8756
8757 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8758
8759         * stdlib/msort.c (msort_with_tmp): Replace implementation with
8760         more efficient "Towers of Hanoi" mergesort.
8761         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
8762         for generic, sizeof(int) and sizeof(long) variants respectively.
8763
8764 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
8765
8766         * manual/syslog.texi (openlog): Describe possible problems with
8767         first parameter.
8768         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
8769
8770         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
8771         * nscd/connections.c (begin_drop_privileges): New function.
8772         (finish_drop_privileges): New function.
8773         (nscd_init): Call the new functions which also install all groups
8774         for the server user.
8775         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
8776         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
8777
8778 2002-01-17  H.J. Lu  <hjl@gnu.org>
8779
8780         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
8781         `const' from `got'.
8782
8783 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8784
8785         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
8786         instructions for pointer operations.
8787         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
8788
8789 2002-01-17  Andreas Jaeger  <aj@suse.de>
8790
8791         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
8792         __uint128_t build-in.
8793
8794         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
8795         PowerPC, sync with 2.2 branch.
8796
8797 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
8798
8799         * posix/getconf.c: Update copyright year.
8800         * nss/getent.c: Likewise.
8801         * nscd/nscd_nischeck.c: Likewise.
8802         * iconv/iconvconfig.c: Likewise.
8803         * iconv/iconv_prog.c: Likewise.
8804         * elf/ldconfig.c: Likewise.
8805         * catgets/gencat.c: Likewise.
8806         * csu/version.c: Likewise.
8807         * elf/ldd.bash.in: Likewise.
8808         * elf/sprof.c (print_version): Likewise.
8809         * locale/programs/locale.c: Likewise.
8810         * locale/programs/localedef.c: Likewise.
8811         * nscd/nscd.c (print_version): Likewise.
8812         * debug/xtrace.sh: Likewise.
8813         * malloc/memusage.sh: Likewise.
8814         * malloc/mtrace.pl: Likewise.
8815
8816 2002-01-16  Andreas Schwab  <schwab@suse.de>
8817
8818         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
8819         reliably remove "-ia64" from rtld name.
8820
8821 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
8822
8823         * iconvdata/gb18030.c: Bug fixes and support for more characters.
8824         Patch by Yu Shao <yshao@redhat.com>.
8825
8826 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8827
8828         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
8829         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
8830         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
8831
8832 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8833
8834         * sysdeps/s390/fpu/libm-test-ulps: Update.
8835
8836 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
8837
8838         * elf/elf.h: Update x86 relocations.
8839
8840 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
8841
8842         * locale/programs/charmap.c (new_width): Check whether byte
8843         sequences for both ends of range have the same length.
8844
8845 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
8846
8847         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
8848
8849 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
8850
8851         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
8852         string literals.
8853         (__full_ieee754_sqrt): Add __attribute_used__.
8854
8855 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
8856
8857         * sysdeps/generic/group_member.c (__group_member): Also check
8858         groups[0] [PR libc/2781].
8859
8860 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
8861
8862         * Makefile (distribute): Add scripts/cpp.
8863         * elf/Makefile (distribute): Add reldep6mod[01234].c,
8864         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
8865         unwind-dw2-fde.h, and dwarf2.h.
8866         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
8867         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
8868         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
8869         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
8870
8871 2002-01-07  Roland McGrath  <roland@frob.com>
8872
8873         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
8874         volatile on type of ARGC so the compiler doesn't get clever.
8875
8876 2002-01-07  Andreas Jaeger  <aj@suse.de>
8877
8878         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
8879         * sysdeps/i386/bits/byteswap.h: Likewise.
8880         * sysdeps/ia64/bits/byteswap.h: Likewise.
8881         * sysdeps/m68k/bits/byteswap.h: Likewise.
8882         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
8883         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
8884
8885 2002-01-02  Bruno Haible  <bruno@clisp.org>
8886
8887         * intl/plural.y: Fix %expect count.
8888
8889 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
8890
8891         * elf/Makefile (routines, shared-only-routines): Add
8892         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
8893         * elf/elf.h (PT_GNU_EH_FRAME): Define.
8894         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
8895         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
8896         Optimize if .eh_frame section contains no FDEs.
8897         (__register_frame, __deregister_frame_info_bases,
8898         __deregister_frame): Likewise.
8899         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
8900         DW_CFA_restore handling.
8901
8902 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
8903
8904         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
8905
8906         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
8907         for x < 0.25 and restore original range reduction method.
8908         (__ieee754_lgammal_r): Make sure signgam is set before returning.
8909
8910 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
8911
8912         * libio/fileops.c (_IO_file_underflow_mmap): New function.
8913         (_IO_file_close_mmap): New function.
8914         (_IO_file_jumps_mmap): New variable.
8915         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
8916         trying to convert rest of byte buffer.
8917         (_IO_wfile_underflow_mmap): New function.
8918         (_IO_wfile_jumps_mmap): New variable.
8919         * libio/iofopen.c (__fopen_maybe_mmap): New function.
8920         (__fopen_internal): New function.  Split out from _IO_new_fopen.
8921         (_IO_new_fopen): Call __fopen_internal.
8922         * libio/iofopen64.c: Just call __fopen_internal.
8923         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
8924         successfully.
8925         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
8926         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
8927         _IO_file_close_mmap.
8928
8929         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
8930         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
8931
8932         * stdio-common/Makefile (tests): Add tst-rndseek.
8933         * stdio-common/tst-rndseek.c: New file.
8934
8935 2002-01-05  Roland McGrath  <roland@frob.com>
8936
8937         * config.h.in (HAVE_MIG_RETCODE): New #undef.
8938         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
8939         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
8940         * sysdeps/mach/hurd/configure: Regenerated.
8941
8942 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
8943
8944         * elf/elf.h: Add more TLS definitions.
8945
8946 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
8947
8948         * include/features.h (__GLIBC_MINOR__): Bump to 3.
8949
8950 2002-01-02  Roland McGrath  <roland@frob.com>
8951
8952         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
8953         __sigisemptyset.  Don't use MASK uninitialized.
8954
8955         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
8956         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
8957         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
8958         __sigdelset, __sigaddset, __sigorset.
8959
8960         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
8961         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
8962
8963         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
8964         _hurd_ports is null.
8965
8966         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
8967         for old CMU and new OSF Mach interface flavors.
8968         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
8969         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
8970
8971         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
8972
8973         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
8974         Pass extra arguments to task_create for OSF variant.
8975         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
8976
8977         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
8978         conditional on [HAVE_AUX_VECTOR].
8979
8980         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
8981         mach_msg_timeout_t as type of final argument.
8982
8983         * hurd/privports.c (__get_privileged_ports):
8984         Change host_priv_t to mach_port_t in argument type.
8985         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
8986         Update decls.
8987
8988         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
8989         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
8990         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
8991         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
8992         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
8993         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
8994
8995 2002-01-01  Roland McGrath  <roland@frob.com>
8996
8997         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
8998
8999 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
9000
9001         * include/stdlib.h: Define inlines for the _l variants of the strto*
9002         functions.
9003
9004 2002-01-01  Roland McGrath  <roland@frob.com>
9005
9006         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
9007
9008         * mach/Machrules (MIG): Set CPP as well as CC.
9009
9010 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
9011
9012         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
9013         locale to parse /proc/loadavg [PR libc/2760].
9014
9015 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
9016
9017         * elf/dl-conflict.c: Include sys/param.h.
9018         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
9019         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
9020         warning.
9021         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
9022         literals to avoid warnings.
9023
9024 2001-12-31  Andreas Jaeger  <aj@suse.de>
9025
9026         * configure.in: Don't check for gsed since we do not use it anywhere.
9027
9028 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
9029
9030         * io/fts.c: Update from BSD to fix memory leaks.
9031
9032 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
9033
9034         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
9035         * elf/chroot_canon.c: Likewise.
9036         * elf/dl-object.c: Likewise.
9037         * iconv/iconv_charmap.c: Likewise.
9038         * iconv/iconv_prog.c: Likewise.
9039         * libio/iogetdelim.c: Likewise.
9040         * locale/lc-time.c: Likewise.
9041         * stdlib/canonicalize.c: Likewise.
9042         * sunrpc/svc.c: Likewise.
9043         * sysdeps/generic/glob.c: Likewise.
9044
9045 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9046
9047         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
9048         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
9049         remove high order bit from the program counter.
9050         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
9051
9052 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9053
9054         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
9055         unnecessary code and add missing reloc types.
9056         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
9057         case for reloc type R_390_NONE.
9058
9059 2001-12-28  Andreas Jaeger  <aj@suse.de>
9060
9061         * io/bug-ftw3.c: Include string.h for prototypes.
9062
9063         * crypt/md5test.c (main): Remove unused variable.
9064
9065         * dlfcn/modstatic.c: Add prototype to avoid warning.
9066
9067 2001-12-26  Roland McGrath  <roland@frob.com>
9068
9069         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
9070         check only (SS->pending & MASK) for the signal to return.
9071         From Jeroen Dekkers <jeroen@dekkers.cx>.
9072
9073 2001-12-22  Roland McGrath  <roland@frob.com>
9074
9075         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
9076         Use preprocessor #if conditionals instead of `if' to avoid
9077         warnings about divide by zero in dead code.
9078
9079         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
9080         _hurd_port_init, and __hurd_self_sigstate.
9081
9082         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
9083
9084 2001-12-21  Andreas Jaeger  <aj@suse.de>
9085
9086         * elf/dblloadmod1.c: Add prototype to avoid warning.
9087         * elf/dblloadmod2.c: Likewise.
9088         * elf/dblloadmod3.c: Likewise.
9089         * elf/reldepmod5.c: Likewise.
9090         * elf/reldepmod6.c: Likewise.
9091
9092         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
9093         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
9094         used on all architectures.
9095
9096         * sunrpc/svc_tcp.c: Add noreturn attribute for
9097         svctcp_rendezvous_abort.
9098         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
9099
9100         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
9101         to avoid warning.
9102
9103 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
9104
9105         * manual/llio.texi (aio_fsync): Fix a typo.
9106         Patch by Tammy Fox <tfox@redhat.com>.
9107
9108 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
9109
9110         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
9111         stack bias from child stack pointer before passing it to clone syscall.
9112
9113 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
9114
9115         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
9116         _SC_TZNAME_MAX.
9117         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
9118         Reported by Thorsten Kukuk <kukuk@suse.de>.
9119
9120         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
9121         add some casts.
9122
9123         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
9124
9125 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
9126
9127         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
9128         conforming: return EBADF if file descriptor is invalid and EINVAL
9129         if file descriptor is no valid tty.
9130         * login/tst-grantpt.c: New file.
9131         * login/Makefile (tests): Add tst-grantpt.
9132
9133 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
9134
9135         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
9136         different than implemented in last patch.
9137         * io/bug-ftw3.c: Adjust test for changed handling of
9138         inaccessibility of toplevel dir.
9139
9140 2001-12-16  Roland McGrath  <roland@frob.com>
9141
9142         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
9143         * grp/initgroups.c (internal_getgrouplist): Likewise.
9144
9145         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
9146         `default:' to silence new GCC warning.
9147         Rewrite cast of lvalue to silence new GCC warning.
9148
9149         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
9150
9151         * sysdeps/mach/hurd/spawni.c: New file, by me with a
9152         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
9153
9154 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
9155
9156         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
9157         Patch by Stephen R. van den Berg.
9158
9159         * crypt/md5.h: Define md5_uintptr.
9160
9161 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
9162
9163         * libio/tst_swprintf.c (main): Add test for string argument with
9164         zero precision.
9165         * stdio-common/Makefile (tests): Add tst-sprintf.
9166         * stdio-common/tst-sprintf.c: New file.
9167
9168 2001-12-13  Andreas Schwab  <schwab@suse.de>
9169
9170         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
9171         zero precision with wide character string format.
9172
9173 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
9174
9175         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
9176         but have a user supplied buffer, return the empty buffer, not NULL.
9177
9178 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
9179
9180         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
9181         Patch by Eric Sharkey <sharkey@netrics.com>.
9182
9183         * crypt/md5test.c (main): Add test for multiple calls to
9184         __md5_process_bytes to itererate over input string.
9185
9186 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
9187
9188         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
9189         from __nis_findfastest.  Take timeout value from parameter.
9190         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
9191         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
9192         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
9193
9194 2001-12-12  Andreas Jaeger  <aj@suse.de>
9195
9196         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
9197         combreloc test so that it works in this case.
9198
9199         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
9200
9201 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
9202
9203         * sysdeps/sh/Makefile: New file.
9204         * sysdeps/sh/_mcount.S: New file.
9205         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
9206         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
9207
9208 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
9209
9210         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
9211         limitation [PR libc/2564].
9212
9213 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
9214
9215         * elf/Makefile (dl-routines): Add conflict.
9216         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
9217         (ld.so): Add _begin local symbol.
9218         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
9219         Define.
9220         * elf/dl-deps.c (_dl_build_local_scope): New.
9221         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
9222         of all libraries.
9223         * elf/do-rel.h (VALIDX): Define.
9224         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
9225         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
9226         can be skipped.
9227         * elf/dl-conflict.c: New file.
9228         * elf/dl-lookup.c (_dl_debug_bindings): New.
9229         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
9230         non-NULL.
9231         (_dl_lookup_symbol_skip): Likewise.
9232         (_dl_lookup_versioned_symbol): Likewise.
9233         (_dl_lookup_versioned_symbol_skip): Likewise.
9234         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
9235         define to ElfW(Rel).
9236         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
9237         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
9238         ranges.
9239         Don't adjust address dynamic tags if l_addr is 0.
9240         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
9241         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
9242         (VALIDX, ADDRIDX): Define.
9243         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
9244         (dl_main): Print library list for LD_TRACE_PRELINKING.
9245         If prelinking information can be used, skip relocating libraries and
9246         call _dl_resolve_conflicts instead.
9247         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
9248         * elf/dl-load.c (_dl_map_object): Don't create fake libs
9249         if LD_TRACE_PRELINKING.
9250         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
9251         + DT_ADDRNUM.
9252         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
9253         (DL_DEBUG_PRELINK): Define.
9254         (_dl_resolve_conflicts): Add prototype.
9255
9256         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
9257         .plt for prelinked libraries where prelinking info cannot be used.
9258         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
9259         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
9260         * sysdeps/arm/bits/link.h: New file.
9261         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
9262         content of .got[1].
9263         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
9264         (ELF_MACHINE_PLT_REL): Define.
9265         (elf_machine_rela, elf_machine_rela_relative): New.
9266         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
9267         of adjusting it if prelinked and prelinking cannot be used.
9268         * sysdeps/i386/bits/link.h: New file.
9269         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
9270         content of .got[1].
9271         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
9272         (ELF_MACHINE_PLT_REL): Define.
9273         (elf_machine_rela, elf_machine_rela_relative): New.
9274         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
9275         of adjusting it if prelinked and prelinking cannot be used.
9276         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
9277         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
9278         to find out map for R_PPC_JMP_SLOT relocs.
9279         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
9280         (OPCODE_BA): Define.
9281         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
9282         libraries where prelinking info cannot be used.
9283         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
9284         (elf_machine_fixup_plt): Call sparc_fixup_plt.
9285         (elf_machine_rela): Set value to 0 if relocating conflicts.
9286         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
9287         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
9288         (sparc64_fixup_plt): Fix a typo.
9289         (elf_machine_rela): Set value to 0 if relocating conflicts.
9290         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
9291         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
9292         libraries where prelinking info cannot be used.
9293         * sysdeps/sh/bits/link.h: New file.
9294         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
9295         content of .got[1].
9296         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
9297         of adjusting it if prelinked and prelinking cannot be used.
9298         * sysdeps/s390/s390-32/bits/link.h: New file.
9299         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
9300         Save original content of .got[1].
9301         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
9302         of adjusting it if prelinked and prelinking cannot be used.
9303         * sysdeps/s390/s390-64/bits/link.h: New file.
9304         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
9305         Save original content of .got[1].
9306         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
9307         of adjusting it if prelinked and prelinking cannot be used.
9308         * sysdeps/x86_64/bits/link.h: New file.
9309         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
9310         Save original content of .got[1].
9311         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
9312         of adjusting it if prelinked and prelinking cannot be used.
9313
9314 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
9315
9316         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
9317         where appropriate instead of numbers.  Little optimizations.
9318
9319 2001-12-10  Roland McGrath  <roland@frob.com>
9320
9321         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
9322         set it.
9323
9324         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
9325         set to GLIBC_2.2.5, not GLIBC_2.2.4.
9326
9327         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
9328         Fix conditionals so this is set by default for stdio and not for libio.
9329         * sysdeps/mach/hurd/configure: Regenerated.
9330
9331 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
9332
9333         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
9334
9335 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
9336
9337         * io/Makefile (tests): Add bug-ftw3.
9338         * io/bug-ftw3.c: New file.
9339
9340         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
9341         matches and GLOB_NOCHECK is set.
9342         * posix/globtest.sh: Correct expected result for NOCHECK test.
9343
9344         * po/ca.po: Update from translation team.
9345
9346 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
9347
9348         Implement transliteration of characters in strings of the locale
9349         definitions.
9350         * locale/programs/linereader.c: Adjust for additional parameter to
9351         lr_token.
9352         (get_string): If character <Uxxxx> is not found try to transliterate
9353         it.
9354         * locale/programs/ld-ctype.c: Adjust for additional parameter to
9355         lr_token.  Add const to charmap parameter of all functions.
9356         (find_translit, find_translit2): New functions.
9357         * locale/programs/charmap.c: Adjust for additional parameter to
9358         lr_token.
9359         * locale/programs/repertoire.c: Likewise.
9360         * locale/programs/linereader.h: Likewise.
9361         * locale/programs/ld-address.c: Likewise.  Add const to charmap
9362         parameter of all functions.
9363         * locale/programs/ld-collate.c: Likewise.
9364         * locale/programs/ld-identification.c: Likewise.
9365         * locale/programs/ld-measurement.c: Likewise.
9366         * locale/programs/ld-messages.c: Likewise.
9367         * locale/programs/ld-monetary.c: Likewise.
9368         * locale/programs/ld-name.c: Likewise.
9369         * locale/programs/ld-numeric.c: Likewise.
9370         * locale/programs/ld-paper.c: Likewise.
9371         * locale/programs/ld-paper.c: Likewise.
9372         * locale/programs/ld-telephone.c: Likewise.
9373         * locale/programs/ld-time.c: Likewise.
9374         * locale/programs/locfile.c: Likewise.
9375         * locale/programs/localedef.c: Likewise.
9376         * locale/programs/localedef.h: Likewise.
9377         * locale/programs/locfile.h: Likewise.  Add declaration for
9378         find_translit.
9379         * locale/programs/simple-hash.c: Add const to first parameter of
9380         find_entry, iterate_table, and lookup.
9381         * locale/programs/simple-hash.h: Likewise.
9382         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
9383         instead.
9384         * include/locale.h: Define __LC_LAST.
9385         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
9386
9387 2001-12-07  Geoff Keating  <geoffk@redhat.com>
9388
9389         * sysdeps/powerpc/Dist: Update for recent FP changes.
9390         * sysdeps/powerpc/fpu/Dist: Likewise.
9391
9392 2001-12-07  Andreas Schwab  <schwab@suse.de>
9393
9394         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
9395
9396 2001-12-06  Geoff Keating  <geoffk@redhat.com>
9397
9398         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
9399         save/restore functions here.
9400         (libm-support): Don't define these functions here.
9401         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
9402         functions here.
9403         * sysdeps/powerpc/fe_nomask.c: Move to...
9404         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
9405         * sysdeps/powerpc/fprrest.S: Move to...
9406         * sysdeps/powerpc/fpu/fprrest.S: ... here.
9407         * sysdeps/powerpc/fprsave.S: Move to...
9408         * sysdeps/powerpc/fpu/fprsave.S: ... here.
9409
9410 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
9411
9412         * sysdeps/unix/sysv/linux/opensock.c: New file.
9413
9414 2001-12-06  Geoff Keating  <geoffk@redhat.com>
9415
9416         * config.make.in (with-fp): Define from configure.
9417         * configure.in: Substitute with_fp.
9418         * configure: Regenerate.
9419         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
9420         specified, and don't change FPU environment.
9421
9422 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
9423
9424         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
9425         * assert/assert.c: Check result of __asprintf call and don't use
9426         string if it failed.
9427         * assert/assert-perr.c: Likewise.
9428         * inet/rcmd.c: Likewise.
9429         * locale/programs/localedef.c (main): Check result of
9430         construct_output_path and exit if it failed.
9431         (construct_output_path): Check result of asprintf and mkdir calls and
9432         fail if they failed.
9433         * posix/getopt.c: Check result of __asprintf calls and fail if
9434         they failed.
9435         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
9436
9437 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
9438
9439         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
9440         patch.
9441         * sysdeps/generic/strncase.c: Likewise.
9442         * string/tester.c: Add tests for strcasecmp and strncasecmp.
9443
9444 2001-12-05  Geoff Keating  <geoffk@redhat.com>
9445
9446         * scripts/cpp: Test the exit status from 'type', not 'awk'.
9447
9448         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
9449         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
9450         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
9451         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
9452         * sysdeps/powerpc/fclrexcpt.c: Move to...
9453         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
9454         * sysdeps/powerpc/fpu_control.h: Move to...
9455         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
9456
9457 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
9458
9459         * iconvdata/ibm1129.h: Remove duplicate mappings.
9460         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
9461         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
9462         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9463
9464         * timezone/zic.c: Fix handling of turnaround times.
9465         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
9466
9467 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
9468
9469         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
9470         overflow problem.
9471
9472 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
9473
9474         * posix/regex.c: For use outside glibc defined bounded pointer
9475         macros here.  Patch by Jim Meyering <jim@meyering.net>.
9476
9477         * iconvdata/Makefile (modules): Add TCVN5712-1.
9478         * iconvdata/TESTS: Add TCVN5712-1.
9479         * iconvdata/gconv-modules: Likewise.
9480         * iconvdata/tcvn5712-1.c: New file.
9481         * iconvdata/testdata/TCVN-5712: New file.
9482         * iconvdata/testdata/TCVN-5712..UTF8: New file.
9483
9484 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
9485
9486         * iconvdata/cp1258.c: Optimize conversion from UCS4.
9487
9488 2001-12-02  Roland McGrath  <roland@frob.com>
9489
9490         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
9491
9492         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
9493         Reported by Jeff Bailey <jbailey@nisa.net>.
9494
9495         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
9496         Reported by Jeff Bailey <jbailey@nisa.net>.
9497
9498         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
9499         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
9500         Reported by Jeff Bailey <jbailey@nisa.net>.
9501
9502 2001-12-01  Roland McGrath  <roland@frob.com>
9503
9504         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
9505         missing backslash in test arguments.
9506         * sysdeps/mach/hurd/configure: Regenerated.
9507
9508 2001-11-26  Roland McGrath  <roland@frob.com>
9509
9510         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
9511         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
9512
9513 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
9514
9515         * iconvdata/Makefile (modules): Add ARMSCII-8.
9516         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
9517         * iconvdata/armscii-8.c: New file.
9518
9519 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
9520
9521         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
9522         don't match, fix {{a,b},c} globbing, clean up.
9523         Patch by Flavio Veloso <flaviovs@magnux.com>.
9524         * posix/globtest.sh: Add new tests.
9525
9526 2001-11-29  Andreas Jaeger  <aj@suse.de>
9527
9528         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
9529         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
9530
9531         * sysdeps/generic/abort.c: Include libioP.h for
9532         _IO_flush_all_lockp prototype.
9533
9534 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
9535
9536         * posix/regex.h: Define __restrict_arr correctly.
9537
9538 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
9539
9540         * iconvdata/ibm1163.c: New file.
9541         * iconvdata/ibm1163.h: New file.
9542         * iconvdata/ibm1164.c: New file.
9543         * iconvdata/ibm1164.h: New file.
9544         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
9545         * iconvdata/Makefile: Likewise.
9546         * iconvdata/testdata/IBM1163: New file.
9547         * iconvdata/testdata/IBM1163..UTF8: New file.
9548         * iconvdata/testdata/IBM1164: New file.
9549         * iconvdata/testdata/IBM1164..UTF8: New file.
9550         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9551
9552         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
9553         * iconvdata/ibm1124.h: Likewise.
9554         * iconvdata/ibm1132.h: Likewise.
9555         * iconvdata/ibm1133.h: Likewise.
9556         * iconvdata/ibm1160.h: Likewise.
9557         * iconvdata/ibm1161.h: Likewise.
9558         * iconvdata/ibm1162.h: Likewise.
9559         * iconvdata/ibm856.h: Likewise.
9560         * iconvdata/ibm922.h: Likewise.
9561         * iconvdata/ibm930.h: Likewise.
9562         * iconvdata/ibm932.h: Likewise.
9563         * iconvdata/ibm933.h: Likewise.
9564         * iconvdata/ibm935.h: Likewise.
9565         * iconvdata/ibm937.h: Likewise.
9566         * iconvdata/ibm939.h: Likewise.
9567         * iconvdata/ibm943.h: Likewise.
9568         * iconvdata/ibm930.c: Pretty printing.
9569         * iconvdata/ibm937.c: Avoid access accross array boundary.
9570
9571         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
9572         the current locale's codeset.
9573         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
9574         empty input string.
9575         * iconv/iconv_prog.c: Pass empty strings as default value for to-
9576         and from-charset.  Don't determine locale's charset here.
9577
9578         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
9579         as the old _IO_flush_all but lock only if parameter is nonzero.
9580         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
9581         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
9582         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
9583         if libio is used [PR libc/2575].
9584
9585 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
9586
9587         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
9588         __signbitl): Only define for ISO C99.
9589
9590 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
9591
9592         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
9593         herrnop to NETDB_INTERNAL if we run out of buffer space.
9594
9595 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
9596
9597         * nss/nss_files/files-XXX.c (internal_getent): Correct input
9598         overflow test for platforms with signed char.
9599         Reported by Andrew Haley <aph@cambridge.redhat.com>.
9600
9601 2001-11-28  Bruno Haible  <bruno@clisp.org>
9602
9603         * locale/programs/simple-hash.c (lookup_2): Remove function.
9604         (insert_entry_2): Call lookup instead of lookup_2.
9605
9606 2001-03-04  Bruno Haible  <bruno@clisp.org>
9607
9608         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
9609
9610 2001-10-31  Bruno Haible  <bruno@clisp.org>
9611
9612         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
9613
9614 2001-03-21  Bruno Haible  <bruno@clisp.org>
9615
9616         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
9617         chokes on empty macro arguments.
9618         * intl/plural.y: Add #pragma for alloca on AIX 3.
9619
9620 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
9621
9622         * intl/dcigettext.c (guess_category_value): Only implement for
9623         glibc.  Otherwise rely on function _nl_locale_name which isn't
9624         present in the glibc sources.
9625
9626 2001-09-24  Bruno Haible  <bruno@clisp.org>
9627
9628         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
9629         transliteration when building on a glibc system but outside glibc.
9630
9631 2001-09-22  Bruno Haible  <bruno@clisp.org>
9632
9633         * intl/plural-eval.c: New file, extracted from dcigettext.c.
9634         * intl/dcigettext.c (plural_eval): Remove function, moved to
9635         intl/plural-eval.c.
9636         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
9637         Include plural-eval.c.
9638
9639 2001-09-22  Bruno Haible  <bruno@clisp.org>
9640
9641         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
9642         don't start with a digit; nplurals must be positive.
9643
9644 2001-09-02  Bruno Haible  <bruno@clisp.org>
9645
9646         * intl/plural-exp.h: New file, extracted from gettextP.h.
9647         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
9648         * intl/gettextP.h (struct expression, struct parse_args,
9649         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
9650         * intl/loadmsgcat.c: Include plural-exp.h.
9651         (PLURAL_PARSE): Move macro to plural-exp.h.
9652         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
9653         plural-exp.c.
9654         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
9655         EXTRACT_PLURAL_EXPRESSION.
9656         (_nl_unload_domain): Update.
9657         * intl/dcigettext.c: Include plural-exp.h.
9658         * intl/plural.y: Include plural-exp.h, not gettextP.h.
9659         (FREE_EXPRESSION): Move macro to plural-exp.h.
9660         * intl/Makefile (routines): Add plural-exp.
9661         (distribute): Add plural-exp.h.
9662
9663 2001-07-28  Bruno Haible  <bruno@clisp.org>
9664
9665         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
9666         isdigit, tolower argument to 'unsigned char'.
9667         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
9668         'unsigned char'.
9669         * intl/localealias.c (read_alias_file): Cast isspace argument to
9670         'unsigned char'.
9671
9672 2001-10-20  Bruno Haible  <bruno@clisp.org>
9673
9674         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
9675         anyway.)
9676         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
9677         with the variable 'index' in plural_lookup.
9678         * intl/l10nflist.c (strchr): Likewise.
9679         * intl/localealias.c (strchr): Likewise.
9680
9681         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
9682         * intl/bindtextdom.c: Likewise.
9683         * intl/dcigettext.c: Likewise.
9684         * intl/dgettext.c: Likewise.
9685         * intl/dngettext.c: Likewise.
9686         * intl/explodename.c: Likewise.
9687         * intl/finddomain.c: Likewise.
9688         * intl/gettext.c: Likewise.
9689         * intl/l10nflist.c: Likewise.
9690         * intl/loadmsgcat.c: Likewise.
9691         * intl/localealias.c: Likewise.
9692         * intl/ngettext.c: Likewise.
9693         * intl/textdomain.c: Likewise.
9694         * intl/gettext.h: Assume <limits.h> exists.
9695
9696 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
9697
9698         * stdio-common/Makefile (tests): Add scanf11.
9699         * stdio-common/scanf11.c: New file.
9700
9701 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
9702
9703         * version.h (RELEASE): Define as development.
9704         (VERSION): Set to 2.2.90.
9705
9706 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
9707
9708         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
9709         * nis/nss_nis/nis-grp.c: Likewise.
9710         * nis/nss_nisplus/nisplus-grp.c: Likewise.
9711
9712         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
9713         * nis/nss_nis/nis-pwd.c: Likewise.
9714         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
9715
9716         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
9717         * nis/nss_nisplus/nisplus-parser.c: Likewise.
9718         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9719
9720         * nscd/grpcache.c: Use strtoul instead of atol.
9721         * nscd/pwdcache.c: Likewise.
9722         * nss/getent.c: Likewise.
9723
9724 2001-11-27  Paul Eggert  <eggert@twinsun.com>
9725
9726         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
9727         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
9728
9729 2001-11-19  Bruno Haible  <bruno@clisp.org>
9730
9731         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
9732         90%.
9733         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
9734         improves the quality of the hash function, especially for short
9735         strings.
9736
9737 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
9738
9739         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
9740         are found call conv_error and not input_error [PR libc/2669].
9741
9742         * math/bits/mathcalls.h: Mark ceil and floor as const.
9743         Reported by David Mosberger.
9744
9745 2001-11-21  Jim Meyering  <meyering@lucent.com>
9746
9747         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
9748         Define to be __-prefixed.
9749         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
9750
9751 2001-11-26  Andreas Jaeger  <aj@suse.de>
9752
9753         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
9754         avoid warning.
9755
9756 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
9757
9758         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
9759         initialization.
9760
9761         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
9762         unused variables.  Fix threshold for returning 1.0.
9763
9764         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
9765         argument.
9766
9767         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
9768         remove unused variables.
9769
9770         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
9771
9772         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
9773         include local math header files.
9774
9775 2001-11-22  Andreas Jaeger  <aj@suse.de>
9776
9777         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
9778         avoid warning.
9779
9780 2001-11-21  Andreas Jaeger  <aj@suse.de>
9781
9782         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
9783
9784         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
9785         sys/debugreg.h
9786
9787 2001-11-15  Andreas Jaeger  <aj@suse.de>
9788
9789         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
9790         compilers that support it.
9791
9792         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
9793         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9794         * stdlib/stdlib.h: Likewise.
9795
9796 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
9797
9798         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
9799         statement with gotos.
9800         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
9801
9802 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
9803
9804         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
9805
9806 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
9807
9808         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
9809
9810 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
9811             H.J. Lu  <hjl@gnu.org>
9812
9813         * Versions.def (libc): Add GCC_3.0.
9814         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
9815         if gcc supports this flag.
9816         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
9817         (gcc3): Allow glibc to be compiled with gcc 3.x.
9818         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
9819         * config.make.in (static-libgcc, unwind-find-fde): Add.
9820         * Makerules (build-shlib-helper, build-module-helper): Use it.
9821         * scripts/versions.awk: Make sure GLIBC_ versions come first.
9822         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
9823         necessary.
9824         (_fini): Call __deregister_frame_info_bases if
9825         __register_frame_info_bases was used to register.
9826         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
9827         for GLIBC_2.0.
9828         (__register_frame_info_bases, __register_frame_info_table_bases,
9829         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
9830         * elf/Makefile (routines): Add unwind-dw2-fde.
9831         (shared-only-routines): Add unwind-dw2-fde.
9832         * sysdeps/alpha/gccframe.h: New file.
9833         * sysdeps/arm/gccframe.h: New file.
9834         * sysdeps/generic/framestate.c: New file.
9835         * sysdeps/generic/dwarf2.h: New file.
9836         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
9837         * sysdeps/generic/unwind-dw2-fde.c: New file.
9838         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
9839         * sysdeps/generic/unwind-dw2-fde.h: New file.
9840         * sysdeps/generic/unwind-dw2.c: New file.
9841         * sysdeps/generic/unwind-pe.h: New file.
9842         * sysdeps/generic/unwind.h: New file.
9843         * sysdeps/hppa/gccframe.h: New file.
9844         * sysdeps/i386/gccframe.h: New file.
9845         * sysdeps/m68k/gccframe.h: New file.
9846         * sysdeps/mips/gccframe.h: New file.
9847         * sysdeps/powerpc/gccframe.h: New file.
9848         * sysdeps/s390/gccframe.h: New file.
9849         * sysdeps/sh/gccframe.h: New file.
9850         * sysdeps/sparc/gccframe.h: New file.
9851         * sysdeps/vax/gccframe.h: New file.
9852         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
9853         Set on all architectures except ia64.
9854         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
9855         for i386.
9856         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
9857         __deregister_frame_info): Move to elf/Versions.
9858         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
9859         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
9860         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
9861         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
9862         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
9863         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
9864         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
9865         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
9866         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
9867         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
9868         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
9869         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
9870         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9871         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
9872         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
9873         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
9874         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
9875         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
9876
9877 2001-11-15  Jeff Law  <law@redhat.com>
9878
9879         * posix/regex.c (uintptr_t): Do not provide a definition if the
9880         system provided one.
9881
9882 2001-11-13  Roland McGrath  <roland@frob.com>
9883
9884         * stdio-common/tmpfile.c: Moved to ...
9885         * sysdeps/generic/tmpfile.c: ... here.
9886         * sysdeps/mach/hurd/tmpfile.c: New file.
9887
9888         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
9889         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
9890         (fopenport): Define as weak alias.
9891
9892         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
9893         * libio/libioP.h: ... to here.
9894
9895 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
9896
9897         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
9898         program header twice.  Construct list with the needed information.
9899
9900 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
9901
9902         * po/ca.po: Update from translation team.
9903
9904         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
9905         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
9906         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
9907         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
9908
9909 2001-11-10  Andreas Jaeger  <aj@suse.de>
9910
9911         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
9912         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9913         Contributed by Stephen L Moshier <moshier@mediaone.net>.
9914
9915 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
9916
9917         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
9918         correctly.
9919         * elf/dl-load.c (is_dst): New function.
9920         (_dl_dst_count): Use is_dst to check for DST variable.
9921         (_dl_dst_substitute): Likewise.
9922
9923 2001-11-09  Roland McGrath  <roland@frob.com>
9924
9925         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
9926         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
9927         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
9928         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
9929         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
9930         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
9931         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
9932         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
9933         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
9934         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
9935         * sysdeps/mach/hurd/powerpc/Dist: New file.
9936
9937         * hurd/privports.c (__get_privileged_ports):
9938         Only contact the proc server if necessary for this call.
9939         Suggested by Neal H Walfield <neal@cs.uml.edu>.
9940         Check error return for mach_port_mod_refs.
9941
9942 2001-11-09  Andreas Schwab  <schwab@suse.de>
9943
9944         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
9945
9946 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
9947
9948         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
9949         object is always the last in the list.
9950         (_dl_map_object_from_fd): Delete code to remove from object list
9951         when DF_1_NOOPEN is seen.  This is done in lose.
9952
9953 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
9954
9955         * elf/dl-object.c (_dl_new_object): Various small optimizations.
9956
9957 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
9958
9959         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
9960         HWCAP_CHECK macro code.
9961
9962         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
9963         Now returns MAP_FAILED on error.
9964         * elf/rtld.c: Adjust caller.
9965         * sysdeps/generic/dl-cache.c: Likewise.
9966         * sysdeps/generic/ldsodefs.h: Adjust description.
9967
9968         * elf/dl-version.c (match_symbol): Optimize error handling for size.
9969         (_dl_check_map_versions): Likewise.
9970
9971 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
9972
9973         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
9974         _dl_signal_error directly, always use lose.  Set fd to -1 after
9975         file is closed.
9976         (lose): Don't call close if fd == -1.
9977
9978 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
9979
9980         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
9981          Also fix typo @code {mbsinit} to @code{mbsinit}.
9982
9983 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
9984
9985         * elf/dl-profile.c: Replace state variable with simple flag named
9986         running.  Remove commented-out code.
9987
9988         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
9989         (_dl_init_paths): Likewise.
9990         (_dl_map_object_from_fd): Likewise.
9991         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
9992
9993 2001-11-06  Roland McGrath  <roland@frob.com>
9994
9995         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
9996         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
9997
9998         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
9999         sysdeps/powerpc/elf/sysdep.h.
10000         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
10001
10002 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
10003
10004         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
10005         speed.
10006         (process_envvars): Some more optimizations.
10007         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
10008
10009         * elf/elf.h: Add dynamic tag definitions for prelinking.
10010
10011         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
10012         Rewrite code to remove environment varables for SUID binaries.
10013         Small optimization in LD_PROFILE handling.
10014         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
10015         changes.
10016         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10017
10018         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
10019
10020         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
10021         strings.  Change type of second parameter.
10022         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
10023         for last change.
10024
10025         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
10026
10027 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10028
10029         * manual/string.texi: Fix typos.
10030         * manual/examples/argp-ex2.c: Likewise.
10031
10032 2001-11-05  Roland McGrath  <roland@frob.com>
10033
10034         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
10035         the more-specific unix/sysv/linux/powerpc file and breaks everything.
10036         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
10037         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
10038         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
10039         here, put under [__ELF__].
10040
10041 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
10042
10043         * manual/charset.texi: Extensive editing work.
10044         * manual/nss.texi: Likewise.
10045         Changes by Dennis Grace <dgrace@us.ibm.com>.
10046
10047 2001-11-04  Roland McGrath  <roland@frob.com>
10048
10049         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
10050         parameter to dir_mkfile.
10051
10052 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
10053
10054         * string/bits/string2.h (__strndup): If n is smaller than len, set
10055         len to n + 1.
10056         * string/tester.c (test_strndup): New function.
10057         (main): Call it.
10058
10059 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
10060
10061         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
10062
10063         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
10064         * scripts/cpp: New file.
10065
10066         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
10067         for rtld_search_dirs content.  Minor optimizations.
10068
10069 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
10070
10071         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
10072         avoiding unnecessary duplication.
10073
10074 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
10075
10076         * elf/dl-load.c (_dl_map_object): If library was found using
10077         LD_LIBRARY_PATH, don't try RUNPATH list.
10078
10079 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10080
10081         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
10082         Correct second argument of register_dump call.
10083         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
10084         Likewise.
10085
10086 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
10087
10088         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
10089         modules.
10090         * iconvdata/TESTS: Likewise.
10091         * iconvdata/gconv-modules: Likewise.
10092         * iconvdata/ibm1132.c: New file.
10093         * iconvdata/ibm1132.h: New file.
10094         * iconvdata/ibm1133.c: New file.
10095         * iconvdata/ibm1133.h: New file.
10096         * iconvdata/ibm1162.c: New file.
10097         * iconvdata/ibm1162.h: New file.
10098         * iconvdata/testdata/IBM1132: New file.
10099         * iconvdata/testdata/IBM1132..UTF8: New file.
10100         * iconvdata/testdata/IBM1133: New file.
10101         * iconvdata/testdata/IBM1133..UTF8: New file.
10102         * iconvdata/testdata/IBM1162: New file.
10103         * iconvdata/testdata/IBM1162..UTF8: New file.
10104         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
10105
10106         * string/string.h: Fix typo in comment.
10107         * wcsmbs/wchar.h: Likewise.
10108
10109 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
10110
10111         * manual/getopt.texi (getopt_long, getopt_long_only): Include
10112         const in type of longopts parameter.
10113
10114 2001-10-29  Andreas Jaeger  <aj@suse.de>
10115
10116         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
10117
10118 2001-10-29  Kevin Ryde  <user42@zip.com.au>
10119
10120         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
10121         output, clarify `#' behaviour on 0.
10122         (Floating-Point Conversions): Clarify that %g only uses %e when
10123         the exponent would be greater than 1.
10124
10125 2001-10-28  Roland McGrath  <roland@frob.com>
10126
10127         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
10128         * sysdeps/mach/powerpc/machine-sp.h: New file.
10129         * sysdeps/mach/powerpc/sysdep.h: New file.
10130         * sysdeps/mach/powerpc/thread_state.h: New file.
10131
10132         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
10133         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
10134         expect to need the same thing on every platform.
10135
10136         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
10137         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
10138
10139         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
10140         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
10141         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
10142         Move all these assembly-related definitions to ...
10143         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
10144
10145         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
10146         by Peter Bruin <pjbruin@dds.nl>.
10147
10148         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
10149         packing results for a `poll' call.
10150
10151 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
10152
10153         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
10154         correctly.
10155         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
10156         bracket expression.
10157
10158         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
10159         nrules value.
10160         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
10161
10162 2001-10-24  H.J. Lu  <hjl@gnu.org>
10163
10164         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
10165         Use __BEGIN_DECLS/__END_DECLS around prototypes.
10166         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
10167
10168 2001-10-21  Jim Meyering  <meyering@lucent.com>
10169
10170         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
10171         this code would end up calling gettext even in packages built
10172         with --disable-nls.
10173         * posix/getopt.c (_): Likewise.
10174         * posix/regex.c (_): Likewise.
10175
10176 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
10177
10178         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
10179         lookup not ip6.int.
10180         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
10181         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
10182
10183 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
10184
10185         * misc/sys/cdefs.h (__attribute_used__): Define.
10186         * elf/rtld.c (_dl_start): Add __attribute_used__.
10187         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
10188
10189 2001-10-25  Andreas Schwab  <schwab@suse.de>
10190
10191         * stdlib/a64l.c: Expect least significant digit first.
10192         * stdlib/l64a.c: Produce least significant digit first.
10193         * stdlib/Makefile (tests): Add test-a64l.
10194         * stdlib/test-a64l.c: New file.
10195         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
10196
10197 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
10198
10199         * po/sk.po: Update from translation team.
10200
10201 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
10202
10203         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
10204
10205 2001-10-18  Andreas Schwab  <schwab@suse.de>
10206
10207         * math/libm-test.inc (print_ulps): Print ulp values rounded to
10208         next whole number.
10209         (print_function_ulps): Likewise.
10210         (print_complex_function_ulps): Likewise.
10211         (print_max_error): Likewise.
10212         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
10213
10214 2001-10-16  Andreas Schwab  <schwab@suse.de>
10215
10216         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
10217         implementation.
10218
10219         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
10220         BSD_SETJMP or BSD__SETJMP is defined, resp.
10221         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
10222         a tail call to __sigsetjmp that would require extending the
10223         caller's frame.
10224         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
10225         * sysdeps/m68k/bsd-setjmp.S: Deleted.
10226         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
10227         Reported by Jes Sorensen <jes@trained-monkey.org>.
10228
10229 2001-10-16  Andreas Jaeger  <aj@suse.de>
10230
10231         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
10232         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
10233         close PR libc/2589.
10234
10235 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
10236
10237         * po/ca.po: New file.  Contributed by the translation team.
10238
10239 2001-10-15  Ralf Baechle  <ralf@gnu.org>
10240
10241         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
10242         a varargs prototype.  Remove dependency from kernel header files.
10243
10244         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
10245         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
10246
10247 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
10248
10249         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
10250         to generate hexadecimal identifier.
10251         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
10252
10253 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
10254
10255         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
10256
10257 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
10258
10259         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
10260         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
10261         Contributed by Stephen L Moshier <moshier@mediaone.net>.
10262
10263         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
10264         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10265         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
10266         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
10267         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
10268         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
10269
10270         * timezone/africa: Update from tzdata2001d.
10271         * timezone/asia: Likewise.
10272         * timezone/australasia: Likewise.
10273         * timezone/backward: Likewise.
10274         * timezone/europe: Likewise.
10275         * timezone/leapseconds: Likewise.
10276         * timezone/northamerica: Likewise.
10277         * timezone/southamerica: Likewise.
10278         * timezone/zone.tab: Likewise.
10279
10280 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10281
10282         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
10283         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
10284
10285 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
10286
10287         * elf/elf.h (PT_TLS): New definition.
10288
10289 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
10290
10291         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
10292         bits/errno.h
10293
10294 2001-10-07  Roland McGrath  <roland@frob.com>
10295
10296         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
10297
10298 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
10299
10300         * elf/elf.h: Add more ELFOSABI_* constants.
10301
10302 2001-10-04  Ben Collins  <bcollins@debian.org>
10303
10304         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
10305         decleration of __need_wchar_t.
10306
10307 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
10308
10309         * string/bits/string2.h (__strsep_g): Add prototype.
10310         (__strsep): Use it.
10311         * string/Versions (__strsep): Remove.
10312         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
10313
10314 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
10315
10316         * manua/llio.texi: Clarify file references added by mmap.
10317         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
10318
10319 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
10320
10321         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
10322         Add sc_loadrs and sc_rbs_bas to match current kernel.
10323
10324 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
10325
10326         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
10327
10328         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
10329
10330 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
10331
10332         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
10333         object has been bumped because of relocation dependency, avoid
10334         duplicates in l_scope.
10335         (show_scope): Fix typos.
10336         * elf/Makefile: Add rules to build and run reldep6.
10337         * elf/reldep6.c: New file.
10338         * elf/reldep6mod0.c: New file.
10339         * elf/reldep6mod1.c: New file.
10340         * elf/reldep6mod2.c: New file.
10341         * elf/reldep6mod3.c: New file.
10342         * elf/reldep6mod4.c: New file.
10343
10344 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
10345
10346         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
10347         sparc64_fixup_plt.
10348         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
10349         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
10350         for non-lazy binding. Fix .plt[32768+] handling.
10351         (elf_machine_plt_value): Don't add addend.
10352         (elf_machine_rela): Call sparc64_fixup_plt instead of
10353         elf_machine_fixup_plt.
10354         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
10355         dynamic linker at 0xfffff800XXXXXXXX.
10356
10357         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
10358
10359 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
10360
10361         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
10362
10363 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
10364
10365         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
10366         declare __cmsg_data field if its size would be bigger than 0.
10367         (CMSG_DATA): Adjust accordingly.
10368         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
10369         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
10370         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
10371         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
10372         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10373         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
10374         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10375
10376 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
10377
10378         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
10379         * iconvdata/testdata/IBM1160: New file.
10380         * iconvdata/testdata/IBM1160..UTF8: New file.
10381         * iconvdata/testdata/IBM1161: New file.
10382         * iconvdata/testdata/IBM1161..UTF8: New file.
10383         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10384
10385 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
10386
10387         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
10388         UL_SETFSIZE computations better.
10389
10390         * rt/Makefile: Remove use of filter for librt again.
10391
10392         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
10393         UL_SETFSIZE computations better.
10394
10395         * string/Versions: Export __strsep for GLIBC_2.2.5.
10396         * string/bits/string2.h: Define all __STRING_INLINE functions if
10397         _FORCE_INLINES is defined.
10398         Use int instead of char of parameter types.
10399         (__strsep): Don't use __strsep_g.  Don't define it.
10400         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
10401         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
10402         __strcpy_small.
10403         (__stpcpy_a_small): Renamed from __stpcpy_small.
10404         (__strcspn_c1): Don't define if _FORCE_INLINES.
10405         (__strspn_c1): Likewise.
10406
10407 2001-09-22  Ben Collins  <bcollins@debian.org>
10408
10409         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
10410         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
10411         * sysdeps/ia64/bits/sigaction.h: Likewise.
10412         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
10413
10414 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
10415
10416         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
10417
10418 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
10419
10420         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
10421
10422 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
10423
10424         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
10425
10426 2001-09-20  H.J. Lu  <hjl@gnu.org>
10427
10428         * include/dlfcn.h (__RTLD_SPROF): New definiton.
10429         * elf/dl-open.c (dl_open_worker): Return immediately after loading
10430         for __RTLD_SPROF.
10431         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
10432         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
10433
10434 2001-09-20  H.J. Lu  <hjl@gnu.org>
10435
10436         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
10437         don't add 1.
10438
10439 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
10440
10441         * nss/getent.c: Accept -s parameter to overwrite rules in
10442         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
10443
10444         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
10445         with as many ".0" as necessary to form a complete address
10446         inet_network understands.
10447
10448         * nss/getent.c: Various cleanups.  Use simpler and fewer function
10449         calls.
10450
10451 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10452
10453         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
10454         _JMPBUF_UNWINDS.
10455         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
10456
10457 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
10458
10459         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
10460         IBM1161.
10461         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
10462         * iconvdata/ibm1160.c: New file.
10463         * iconvdata/ibm1160.h: New file.
10464         * iconvdata/ibm1161.c: New file.
10465         * iconvdata/ibm1161.h: New file.
10466         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10467
10468 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
10469
10470         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
10471         difference between base address and first PT_LOAD's virtual address,
10472         not the base address.
10473
10474 2001-09-11  Tom Rix  <trix@redhat.com>
10475
10476         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
10477         ifdef for __getopt_clean_environment.
10478         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
10479
10480 2001-09-22  Andreas Jaeger  <aj@suse.de>
10481
10482         * elf/reldep4.c (main): Add proper prototype to fix warning.
10483
10484         * elf/reldep5.c (main): Remove unused variable.
10485
10486         * math/math_private.h: Add prototypes.
10487
10488 2001-09-21  Andreas Jaeger  <aj@suse.de>
10489
10490         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
10491         * sysdeps/x86_64/Dist: New file.
10492         * sysdeps/x86_64/soft-fp/Dist: New file.
10493
10494         * sysdeps/gnu/Dist: Remove eval.c.
10495
10496 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
10497
10498         * malloc/memusage.c (realloc): Don't count already allocated
10499         memory in the sums.
10500         (me): Always use dlsym() to find the real implementations.
10501
10502         * malloc/memusage.sh: Make -n option actually do something.
10503
10504 2001-09-20  Andreas Jaeger  <aj@suse.de>
10505
10506         * elf/elf.h (R_390_NUM): Correct value.
10507
10508         * Versions.def: Add missing versions 2.2.3 for libthread_db and
10509         libpthread.
10510
10511         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
10512         for x86-64, install x86-64 into */lib64.
10513
10514         * shlib-versions: Add x86-64.
10515
10516         * elf/elf.h: Add x86-64 relocations.
10517
10518 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
10519
10520         * po/fr.po: Update from translation team.
10521
10522 2001-09-19  Andreas Jaeger  <aj@suse.de>
10523
10524         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
10525         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
10526         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
10527         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
10528         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
10529         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
10530         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
10531         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
10532         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
10533         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
10534         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
10535         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
10536         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
10537         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
10538         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
10539         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
10540         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
10541         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
10542         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
10543         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
10544         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
10545         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
10546         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
10547         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
10548         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
10549         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
10550         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
10551         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
10552         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
10553         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
10554         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
10555         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
10556         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
10557         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
10558         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
10559         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
10560         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
10561         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
10562         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
10563         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
10564         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
10565         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
10566         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
10567         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
10568         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
10569         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
10570         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
10571         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
10572         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
10573         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
10574         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
10575         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
10576         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
10577         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
10578         * sysdeps/unix/x86_64/sysdep.S: New file.
10579         * sysdeps/unix/x86_64/sysdep.h: New file.
10580         * sysdeps/x86_64/Implies: New file.
10581         * sysdeps/x86_64/Makefile: New file.
10582         * sysdeps/x86_64/Versions: New file.
10583         * sysdeps/x86_64/__longjmp.S: New file.
10584         * sysdeps/x86_64/abort-instr.h: New file.
10585         * sysdeps/x86_64/atomicity.h: New file.
10586         * sysdeps/x86_64/bits/endian.h: New file.
10587         * sysdeps/x86_64/bits/setjmp.h: New file.
10588         * sysdeps/x86_64/bits/string.h: New file.
10589         * sysdeps/x86_64/bp-asm.h: New file.
10590         * sysdeps/x86_64/bsd-_setjmp.S: New file.
10591         * sysdeps/x86_64/bsd-setjmp.S: New file.
10592         * sysdeps/x86_64/dl-machine.h: New file.
10593         * sysdeps/x86_64/elf/initfini.c: New file.
10594         * sysdeps/x86_64/elf/start.S: New file.
10595         * sysdeps/x86_64/ffs.c: New file.
10596         * sysdeps/x86_64/ffsll.c: New file.
10597         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
10598         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
10599         * sysdeps/x86_64/fpu/e_acosl.c: New file.
10600         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
10601         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
10602         * sysdeps/x86_64/fpu/e_expl.c: New file.
10603         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
10604         * sysdeps/x86_64/fpu/e_log10l.S: New file.
10605         * sysdeps/x86_64/fpu/e_log2l.S: New file.
10606         * sysdeps/x86_64/fpu/e_logl.S: New file.
10607         * sysdeps/x86_64/fpu/e_powl.S: New file.
10608         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
10609         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
10610         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
10611         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
10612         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
10613         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
10614         * sysdeps/x86_64/fpu/fegetenv.c: New file.
10615         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
10616         * sysdeps/x86_64/fpu/fegetround.c: New file.
10617         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
10618         * sysdeps/x86_64/fpu/fesetenv.c: New file.
10619         * sysdeps/x86_64/fpu/fesetround.c: New file.
10620         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
10621         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
10622         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
10623         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
10624         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
10625         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
10626         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
10627         * sysdeps/x86_64/fpu/s_atanl.c: New file.
10628         * sysdeps/x86_64/fpu/s_cosl.S: New file.
10629         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
10630         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
10631         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
10632         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
10633         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
10634         * sysdeps/x86_64/fpu/s_logbl.c: New file.
10635         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
10636         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
10637         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
10638         * sysdeps/x86_64/fpu/s_rintl.c: New file.
10639         * sysdeps/x86_64/fpu/s_significandl.c: New file.
10640         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
10641         * sysdeps/x86_64/fpu/s_sinl.S: New file.
10642         * sysdeps/x86_64/fpu/s_tanl.S: New file.
10643         * sysdeps/x86_64/gmp-mparam.h: New file.
10644         * sysdeps/x86_64/hp-timing.c: New file.
10645         * sysdeps/x86_64/hp-timing.h: New file.
10646         * sysdeps/x86_64/htonl.S: New file.
10647         * sysdeps/x86_64/memusage.h: New file.
10648         * sysdeps/x86_64/setjmp.S: New file.
10649         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
10650         * sysdeps/x86_64/stackinfo.h: New file.
10651         * sysdeps/x86_64/sysdep.h: New file.
10652         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
10653
10654         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
10655         L Moshier.
10656
10657 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
10658
10659         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
10660         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
10661
10662 2001-09-18  Andreas Schwab  <schwab@suse.de>
10663
10664         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
10665         list, now that l_scope is a pointer.
10666
10667         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
10668         scope list.
10669
10670 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
10671
10672         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
10673         (elf_machine_rela_relative): Add a missing declaration.
10674
10675 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
10676
10677         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
10678         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
10679         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
10680         ldd-rewrite scripts.
10681
10682 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
10683
10684         * elf/ldd.bash.in: Update copyright message.
10685
10686 2001-09-17  H.J. Lu  <hjl@gnu.org>
10687
10688         * hurd/hurdmalloc.c (bcopy): Removed.
10689         (realloc): Replace bcopy with memcpy.
10690         * hurd/path-lookup.c (file_name_path_scan): Likewise.
10691         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
10692         * sunrpc/rpcinfo.c (pmapdump): Likewise.
10693
10694         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
10695         (gethostbyaddr): Likewise.
10696         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
10697
10698 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
10699
10700         * sysdeps/gnu/eval.c: Removed.
10701
10702 2001-09-18  Andreas Jaeger  <aj@suse.de>
10703
10704         * sysdeps/i386/fpu/s_logbl.S: Move to ...
10705         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
10706
10707         * sysdeps/i386/fpu/s_rintl.S: Move to ...
10708         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
10709
10710         * sysdeps/i386/fpu/s_significandl.S: Move to ...
10711         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
10712
10713 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
10714
10715         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
10716         nrules value.
10717
10718 2001-09-14  H.J. Lu  <hjl@gnu.org>
10719
10720         * sysdeps/mips/fpu/libm-test-ulps: Updated.
10721
10722 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
10723
10724         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
10725         Patch by Florian La Roche <laroche@redhat.com>.
10726
10727         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
10728
10729         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
10730         ETHER_CRC_LEN.
10731
10732 2001-09-14  Andreas Schwab  <schwab@suse.de>
10733
10734         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
10735         Sumner <bls@sgi.com>.
10736         * posix/execlp.c: Likewise.
10737
10738 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
10739
10740         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
10741         is already found earlier in the search scope.
10742
10743 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
10744
10745         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
10746         filter.
10747
10748 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
10749
10750         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
10751
10752 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
10753
10754         * config.h.in: Enforce optimization to be used.
10755         * Makeconfig (preprocess-versions): Define ASSEMBLER.
10756         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
10757         * posix/Makefile (annexc-CFLAGS): Define to -O.
10758         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
10759
10760 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
10761
10762         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
10763         Patch by Stephan Kulow.
10764
10765 2001-09-08  Ben Collins  <bcollins@debian.org>
10766
10767         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
10768         usage of RESOLVE() (r_type, not reloc->r_type).
10769
10770 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
10771
10772         * elf/dl-object.c: Avoid allocating extra memory block for name.
10773         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
10774         allocated separately.
10775         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
10776
10777 2001-09-08  H.J. Lu  <hjl@gnu.org>
10778
10779         * po/zh_TW.po: Fix a typo.
10780
10781 2001-09-07  Tom Rix  <trix@redhat.com>
10782
10783         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
10784
10785 2001-08-26  Tom Rix  <trix@redhat.com>
10786
10787         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
10788         command line options.
10789         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
10790         * sysdeps/unix/sysv/aix/start.c: Removed.
10791         * sysdeps/unix/sysv/aix/start-libc.c: New file.
10792         * sysdeps/unix/sysv/aix/init-first.c: New file.
10793         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
10794
10795 2001-09-08  Ben Collins  <bcollins@debian.org>
10796
10797         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
10798         * sysdeps/generic/dl-machine.h: Likewise.
10799         * sysdeps/hppa/dl-fptr.c: Likewise.
10800         * sysdeps/ia64/dl-fptr.c: Likewise.
10801         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10802         * sysdeps/mips/dl-machine.h: Likewise.
10803         * sysdeps/mips/mips64/dl-machine.h: Likewise.
10804         * sysdeps/powerpc/dl-machine.c: Likewise.
10805
10806 2001-09-07  Ben Collins  <bcollins@debian.org>
10807
10808         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
10809
10810         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
10811
10812 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
10813
10814         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
10815         dependencies if necessary.
10816
10817         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
10818         loaded directly) determine length if l_initfini list by iterating
10819         over its elements.  Minor optimizations.
10820         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
10821         for dependency objects.
10822         If object was already loaded check whether any of the dependencies
10823         is already on the relocation dependency list.  If yes, remove the
10824         latter.  Minor optimizations.
10825         * elf/dl-lookup.c (add_dependency): Add check for self reference of
10826         maps here.  Search l_initfini list only if the object was loaded
10827         directly and not only as a dependency.
10828         (_dl_lookup_symbol): Add relocation dependency also if object
10829         is not in global scope.  Remove test for self-reference here.
10830         (_dl_lookup_versioned_symbol): Likewise.
10831         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
10832         element of first name record.
10833         * elf/loadtest.c: Add some more test to recognize early if an object
10834         wasn't unloaded.
10835         * elf/Makefile: Add rules to build and run reldep5.
10836         * elf/reldep5.c: New file.
10837         * elf/reldepmod5.c: New file.
10838         * elf/reldepmod6.c: New file.
10839
10840         * elf/reldep2.c: Fix typo.
10841
10842 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
10843
10844         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
10845         elements.  Change l_scope to be a pointer only.
10846         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
10847         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
10848         here add searchlist of newly open file to the dependency's scope.
10849         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
10850         only searchlist from its scope.  Free own scope array if necessary.
10851         * elf/Makefile (tests): Add dblload and dblunload now.
10852
10853 2001-09-06  Andreas Jaeger  <aj@suse.de>
10854
10855         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
10856         Stephen L Moshier.
10857
10858 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
10859
10860         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
10861         they both fail.
10862         * elf/dblload.c: New file.
10863         * elf/dblloadmod1.c: New file.
10864         * elf/dblloadmod2.c: New file.
10865         * elf/dblloadmod3.c: New file.
10866         * elf/dblunload.c: New file.
10867
10868 2001-09-04  Richard Henderson  <rth@redhat.com>
10869
10870         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
10871         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
10872
10873 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
10874
10875         Correct very misleading message for error in failed runtime relocation.
10876         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
10877         place of the error.
10878         (_dl_signal_cerror): Likewise.
10879         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
10880         * elf/dl-close.c: Likewise.
10881         * elf/dl-deps.c: Likewise.
10882         * elf/dl-load.c: Likewise.
10883         * elf/dl-lookup.c: Likewise.
10884         * elf/dl-open.c: Likewise.
10885         * elf/dl-reloc.c: Likewise.
10886         * elf/dl-sym.c: Likewise.
10887         * elf/dl-version.c: Likewise.
10888         * sysdeps/generic/dl-sysdep.c: Likewise.
10889
10890 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
10891
10892         * iconv/strtab.c (strtabinit): Initialize null Strent.
10893         (newstring): Move len == 0 handling...
10894         (strtabadd): ...here.
10895         If len == 1, return null Strent.
10896         When inserting a suffix of an existing string, check if
10897         it is not equal to some suffix already recorded.
10898         Copy left and right members over if adding longer string.
10899
10900 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
10901
10902         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
10903
10904         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
10905         (__syscall_gethostname): Add prototype.
10906
10907 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
10908
10909         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
10910
10911 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
10912
10913         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
10914
10915 2001-08-27  Roland McGrath  <roland@frob.com>
10916
10917         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
10918         short, copy that much into NAME anyway before returning error.
10919
10920 2001-09-01  Richard Henderson  <rth@redhat.com>
10921
10922         * sysdeps/alpha/elf/Dist: Remove file.
10923         * sysdeps/alpha/elf/Makefile: Remove file.
10924         * sysdeps/alpha/elf/crtbegin.S: Remove file.
10925         * sysdeps/alpha/elf/crtend.S: Remove file.
10926         * sysdeps/alpha/elf/initfini.c: New file.
10927
10928 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
10929
10930         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
10931         * iconv/tst-iconv3.c: Likewise.
10932
10933 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
10934
10935         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
10936
10937 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
10938
10939         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
10940         export it.
10941         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
10942         * iconv/iconv_prog.c (insert_cache): New function.
10943         (print_known_names): If cache is used call insert_cache to use the
10944         information from the cache [PR libc/2509].
10945
10946 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
10947
10948         * time/strptime.c (strptime_internal): Recognize 'l' format and
10949         handle it like 'I' for symmetry with strftime.
10950
10951 2001-08-31  Richard Henderson  <rth@redhat.com>
10952
10953         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
10954         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
10955         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
10956         (print_statistics): Make scalar unsigned long long.
10957         * sysdeps/alpha/hp-timing.h: New file.
10958
10959 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
10960
10961         * stdio-common/perror.c (perror): Save errno early, pass it
10962         down to perror_internal.
10963         (perror_internal): Add errnum argument.
10964
10965 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
10966
10967         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
10968         Don't add old memory content for R_ALPHA_REFQUAD.
10969
10970 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
10971
10972         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
10973         memory correctly.
10974
10975         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
10976         instead of open, __close instead of close, __getpagesize instead
10977         of getpagesize.
10978
10979         * string/argz-stringify.c (__argz_stringify): Use __strnlen
10980         instead of strnlen.
10981         * include/string.h (strndupa): Redefine here to use __strnlen
10982         instead of strnlen.
10983         * string/strndup.c (__strndup): Use __strnlen not strnlen.
10984
10985         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
10986         connected).
10987
10988 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
10989
10990         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
10991         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
10992         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
10993         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
10994         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
10995         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
10996         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
10997
10998 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
10999
11000         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
11001
11002 2001-08-30  Andreas Jaeger  <aj@suse.de>
11003
11004         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
11005         contributed Stephen L Moshier.
11006
11007 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
11008
11009         * sunrpc/etc.rpc (sgi_fam): Add.
11010
11011 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
11012
11013         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
11014
11015 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
11016
11017         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
11018         first is from a previous call.
11019         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
11020
11021 2001-08-29  Andreas Schwab  <schwab@suse.de>
11022
11023         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
11024
11025 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
11026
11027         * config.make.in (INSTALL_SCRIPT): Define.
11028         * Makeconfig (INSTALL_SCRIPT): Define.
11029         * Makerules (do-install-script): New macro to install scripts using
11030         INSTALL_SCRIPT.
11031         (install-bin-script): New rule to install scripts with
11032         do-install-script.
11033         (install-bin-script-nosubdir): New rule.
11034         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
11035         (distinfo-vars): Add $(install-bin-script).
11036         * Rules (others): Likewise.
11037         * Makefile (glibcbug): Install with install-bin-script.
11038         * debug/Makefile (xtrace): Likewise.
11039         (catchsegv): Likewise.
11040         * elf/Makefile (ldd): Likewise.
11041         * malloc/Makefile (mtrace): Likewise.
11042         * timezone/Makefile (tzselect): Likewise.
11043
11044 2001-08-29  H.J. Lu  <hjl@gnu.org>
11045
11046         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
11047         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
11048         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
11049
11050 2001-08-29  Andreas Schwab  <schwab@suse.de>
11051
11052         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
11053
11054 2001-08-28  H.J. Lu  <hjl@gnu.org>
11055
11056         * Makeconfig (combreloc-LDFLAGS): New variable.
11057         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
11058         * config.make.in (have-z-combreloc): New variable.
11059         * configure.in: Substitute libc_cv_z_combreloc.
11060
11061 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
11062
11063         * po/sv.po: Update from translation team.
11064         * po/fr.po: Likewise.
11065         * po/da.po: Likewise.
11066
11067 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
11068
11069         * Makerules: Fix a typo: MD% -> MD5.
11070
11071 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
11072
11073         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
11074         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
11075
11076 2001-08-28  Andreas Jaeger  <aj@suse.de>
11077
11078         * manual/libc-texinfo.sh: Add entry about free manuals.
11079
11080         * manual/contrib.texi (Contributors): Fix cross reference.
11081
11082         * manual/libc.texinfo (Copying): Include freemanuals.
11083
11084         * manual/Makefile (appendices): Add freemanuals.
11085
11086         * manual/freemanuals.texi: New file.
11087         Patch by Brian Youmans <3diff@gnu.org>.
11088
11089         * manual/libm-err-tab.pl: Pretty print more platforms, print a
11090         smaller table.
11091
11092         * manual/math.texi (Errors in Math Functions): Fix grammar, start
11093         table on separate page.
11094         Patch by Brian Youmans <3diff@gnu.org>.
11095
11096 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
11097
11098         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
11099         the connection went down after we first used it try to connect
11100         again and resend the message before printing to the console.
11101         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
11102
11103 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
11104
11105         * string/tst-strlen.c (main): Test strnlen (, -1) too.
11106         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
11107         bit set.
11108
11109 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
11110
11111         * iconv/strtab.c (searchstring): Use correct length for comparison.
11112         (strtabadd): Account total size correct if new string has old string as
11113         substring.
11114
11115 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
11116
11117         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
11118
11119 2001-08-27  Andreas Jaeger  <aj@suse.de>
11120
11121         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
11122
11123         * math/libm-test.inc (j0_test): Add extra tests.
11124         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
11125         not x, in Hankel approximation.
11126         Patches by Stephen L Moshier.
11127
11128 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
11129
11130         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
11131         link_map.
11132
11133         * configure.in: Fix test for .rela.dyn section.
11134
11135         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
11136
11137 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
11138
11139         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
11140         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
11141         Pass type_class to _dl_lookup_*.
11142         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
11143         Pass around just type_class instead of noexec, noplt pair.
11144         (_dl_lookup_versioned_symbol): Likewise.
11145         (_dl_lookup_symbol_skip): Pass around just type_class instead of
11146         noexec, noplt pair.
11147         (_dl_lookup_versioned_symbol_skip): Likewise.
11148         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
11149         * elf/do-lookup.h (do_lookup): Likewise.
11150         * include/link.h (struct link_map): Replace noexec and noplt fields
11151         in l_lookup_cache with type_class field.
11152         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
11153         ELF_RTYPE_CLASS_COPY): Define.
11154         Adjust prototypes for _dl_lookup_symbol and
11155         _dl_lookup_versioned_symbol.
11156         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
11157         elf_machine_lookup_noexec_p): Remove.
11158         (elf_machine_type_class): Define.
11159         * sysdeps/arm/dl-machine.h: Likewise.
11160         * sysdeps/hppa/dl-machine.h: Likewise.
11161         * sysdeps/cris/dl-machine.h: Likewise.
11162         * sysdeps/i386/dl-machine.h: Likewise.
11163         * sysdeps/ia64/dl-machine.h: Likewise.
11164         * sysdeps/m68k/dl-machine.h: Likewise.
11165         * sysdeps/mips/mips64/dl-machine.h: Likewise.
11166         * sysdeps/mips/dl-machine.h: Likewise.
11167         * sysdeps/powerpc/dl-machine.h: Likewise.
11168         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11169         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11170         * sysdeps/sh/dl-machine.h: Likewise.
11171         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11172         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11173
11174 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
11175
11176         * manual/message.texi (Advanced gettext functions): Change
11177         description of plural forms for Slovak.
11178         Reported by Marcel Telka <marcel@telka.sk>.
11179
11180         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
11181         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
11182
11183 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
11184
11185         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
11186         typo.  Patch by Florian La Roche <laroche@redhat.com>.
11187
11188 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
11189
11190         * include/link.h (struct link_map): Add l_lookup_cache element.
11191         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
11192         (RESOLVE_MAP): Likewise.
11193         (_dl_relocate_object): Remove cache initialization.
11194         * elf/dl-lookup.c: Rip out cache handling code.
11195         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
11196         declarations.
11197
11198         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
11199         remove some __builtin_expect.
11200         (_dl_lookup_versioned_symbol): Likewise.
11201
11202         * config.h.in: Add HAVE_Z_COMBRELOC.
11203         * configure.in: Add test for -z combreloc.
11204
11205         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
11206         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
11207         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
11208         case to almost no code.
11209
11210 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
11211
11212         * po/tr.po: Update from translation team.
11213
11214 2001-08-24  Andreas Jaeger  <aj@suse.de>
11215
11216         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
11217         make clean works.
11218
11219 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
11220
11221         * elf/rtld.c (print_statistics): Printf % after percent values.
11222         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
11223
11224         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
11225         don't have to compute the hash value and initialize current_value.
11226         Move reference_name variable to where it is needed.
11227         (_dl_lookup_versioned_symbol): Likewise.
11228
11229 2001-08-24  Roland McGrath  <roland@frob.com>
11230
11231         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
11232         Just test that strerror returns non-null for a few errno codes.
11233
11234 2001-08-23  Roland McGrath  <roland@frob.com>
11235
11236         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
11237         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
11238
11239         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
11240
11241         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
11242         __mach_reply_port.
11243
11244 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
11245
11246         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
11247         returns NULL.
11248
11249         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
11250         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
11251         doesn't do it.
11252         * elf/rtld.c: Include <sys/param.h>.
11253         * elf/dl-reloc.c: Likewise.
11254
11255 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
11256
11257         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
11258         empty to prevent junk from being generated.
11259         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
11260
11261 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
11262
11263         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
11264         records.  Rename endrel to relative, initialize it to r, and use it
11265         in elf_machine_rel_relative calls.  Point r after relative relocs.
11266
11267 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
11268
11269         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
11270         of R_386_NONE.
11271
11272 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
11273
11274         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
11275         necessary.  Undefine newly defined macros at the end.
11276         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
11277         Rename from elf_machine_rel_relative.
11278         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
11279         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
11280         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
11281         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
11282         Likewise.
11283         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
11284         Likewise.
11285         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
11286         Fix argument types.
11287         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
11288         Fix argument types.
11289         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
11290         Likewise.  Fix argument types.
11291         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
11292         Likewise.  Fix argument types.
11293         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
11294         Fix argument types.
11295         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
11296         ElfW(Rel) in argument.
11297         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
11298         function.
11299
11300 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
11301
11302         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
11303
11304 2001-08-24  Andreas Jaeger  <aj@suse.de>
11305
11306         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
11307         Stephen L Moshier <moshier@mediaone.net>.
11308
11309 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
11310
11311         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
11312         first if RELCOUNT is set.
11313
11314         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
11315         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
11316         elf_machine_rel_relative.
11317         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
11318         Minor optimizations.
11319         * sysdeps/arm/dl-machine.h: Likewise.
11320         * sysdeps/cris/dl-machine.h: Likewise.
11321         * sysdeps/hppa/dl-machine.h: Likewise.
11322         * sysdeps/i386/dl-machine.h: Likewise.
11323         * sysdeps/ia64/dl-machine.h: Likewise.
11324         * sysdeps/m68k/dl-machine.h: Likewise.
11325         * sysdeps/mips/dl-machine.h: Likewise.
11326         * sysdeps/powerpc/dl-machine.h: Likewise.
11327         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11328         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11329         * sysdeps/sh/dl-machine.h: Likewise.
11330         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11331         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11332
11333 2001-08-23  Roland McGrath  <roland@frob.com>
11334
11335         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
11336
11337         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
11338         sysdeps/mach version.  Implement counting ("recursive") mutexes
11339         on top of cthreads mutexes.
11340         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
11341
11342         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
11343         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
11344         (__libc_cleanup_region_start, __libc_cleanup_region_end,
11345         __libc_clean_end): Define these to call the cleanup function after
11346         normal exit when they're supposed to.
11347
11348         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
11349         Take new first arg DOIT, a boolean saying whether to really install
11350         any cleanup handler.
11351         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
11352         (__libc_cleanup_end): Likewise.
11353         * sysdeps/generic/bits/libc-lock.h: Same changes.
11354         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
11355         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
11356         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
11357         Likewise.
11358         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
11359         * sysdeps/generic/bits/stdio-lock.h
11360         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
11361
11362 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
11363
11364         * elf/ldconfig.c (search_dir): Remove stale symlinks.
11365
11366 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
11367
11368         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
11369         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
11370         lookups in cache.
11371         (_dl_lookup_versioned_symbol): Likewise.
11372         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
11373         relocation lookup.
11374         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
11375         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
11376         (lookup_cache, lookup_cache_versioned): Add declarations.
11377
11378 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
11379
11380         * stdlib/tst-random.c (main): Swap parameters in fail call.
11381         Patch by Pete Bevin <pete@petebevin.com>.
11382
11383 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
11384
11385         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
11386
11387 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
11388
11389         * malloc/obstack.c: Indent preprocessor directives.
11390         Patch by Jim Meyering <meyering@ascend.com>.
11391
11392         * po/ja.po: Update from translation team.
11393
11394 2001-08-23  Roland McGrath  <roland@frob.com>
11395
11396         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
11397
11398         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
11399         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
11400
11401 2001-08-22  Roland McGrath  <roland@frob.com>
11402
11403         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
11404         __libc_lock_define_recursive.
11405         * elf/dl-open.c: Don't declare it here any more.
11406         * elf/dl-close.c: Likewise.
11407         * elf/dl-lookup.c: Likewise.
11408         * elf/dl-iteratephdr.c: Likewise.
11409         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
11410         __libc_lock_unlock_recursive.
11411         * elf/dl-close.c (_dl_close): Likewise
11412         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
11413         * elf/dl-open.c (_dl_open): Likewise
11414
11415         * sysdeps/generic/bits/libc-lock.h
11416         (__libc_lock_define_recursive): New macro.
11417         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
11418         (_IO_lock_lock): Use __libc_lock_lock_recursive.
11419         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
11420
11421         * conform/conformtest.pl (checknamespace): Sort the output list.
11422
11423         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
11424         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
11425         definitions conditional on [__USE_XOPEN].
11426
11427         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
11428         these unconditionally, not only use [__USE_BSD], so as to match
11429         the sysdeps/unix/sysv/linux files.
11430
11431 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
11432
11433         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
11434         avoid warnings.
11435
11436         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
11437         DL_LOOKUP_ADDRESS.
11438
11439 2001-08-22  Roland McGrath  <roland@frob.com>
11440
11441         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
11442         conditionalization of sa_handler/sa_sigaction member types to
11443         match the sysdeps/unix/sysv/linux file.
11444
11445 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
11446
11447         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
11448         symbol sizes a bit better.
11449
11450         * sysdeps/ia64/strncpy.S: Complete rewrite.
11451         Contributed by Jakub Jelinek <jakub@redhat.com>.
11452
11453         * string/stratcliff.c (main): Add strncpy test.
11454
11455 2001-08-22  Roland McGrath  <roland@frob.com>
11456
11457         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
11458         and don't declare unsetenv or _environ directly.
11459         (unsetenv): Return int, not void.  Use __environ instead of _environ.
11460
11461 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
11462
11463         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
11464         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
11465         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
11466         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
11467         test for cmsg struct size.
11468
11469 2001-04-23  Paul Eggert  <eggert@twinsun.com>
11470
11471         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
11472         Rename __argc to ___argc in prototypes to avoid compatibility
11473         problems with systems that reserve the identifier "__argc".
11474         Similarly for __argv.
11475
11476 2001-08-21  Roland McGrath  <roland@frob.com>
11477
11478         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
11479
11480         * mach/Makefile (tests): Removed.
11481         * mach/hello.c: File removed.
11482
11483 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
11484
11485         * po/sv.po: Update from translation team.
11486
11487         * stdio-common/vfscanf.c: Fix handling of %l[].
11488         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
11489
11490         * libio/Makefile (tests): Add tst-sscanf.
11491         * libio/tst-sscanf.c: New file.
11492
11493         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
11494         * malloc/mtrace.c (tr_where): dli_sname always points to a
11495         non-empty string if != NULL.
11496         Reported by Tim Janik <timj@gtk.org>.
11497
11498 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
11499
11500         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
11501         buf.  Free resources on failure.
11502         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
11503         (makefd_xprt): Likewise.
11504         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
11505         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
11506         * sunrpc/auth_unix.c (authunix_create): Likewise.
11507
11508 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
11509
11510         * string/strnlen.c: Remove.
11511         * sysdeps/generic/strnlen.c: New file.
11512         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
11513
11514 2001-08-21  Roland McGrath  <roland@frob.com>
11515
11516         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
11517         as a macro, not an extern inline function.
11518
11519         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
11520         * Versions.def (libc): Add GLIBC_2.2.5 set.
11521         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
11522         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
11523
11524 2001-08-20  Roland McGrath  <roland@frob.com>
11525
11526         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
11527         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
11528
11529 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
11530
11531         * string/bits/string2.h: Remove strnlen optimization here.
11532         * sysdeps/i386/i486/bits/string.h: Add it here.
11533
11534 2001-08-21  Wolfram Gloger  <wg@malloc.de>
11535
11536         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
11537
11538 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
11539
11540         * po/gl.po: Update from translation team.
11541
11542 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
11543
11544         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
11545         * misc/err.c (convert_and_print): Likewise.
11546
11547         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
11548         function calls.
11549
11550 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11551
11552         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
11553         change of the gregset_t type.
11554         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
11555
11556 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
11557
11558         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
11559
11560 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
11561
11562         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
11563
11564         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
11565
11566 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
11567
11568         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
11569         before calling the cthreads initialization code.
11570
11571 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
11572
11573         * argp/argp-help.c: Fix two problems introduced in last change.
11574
11575         * include/dirent.h: Include <dirstream.h> first.
11576
11577 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
11578
11579         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
11580
11581         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
11582         * sunrpc/xdr_rec.c: Likewise.
11583         * sunrpc/xdr_mem.c: Likewise.
11584         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
11585         * sunrpc/rpc_cmsg.c: Likewise.
11586         * sunrpc/getrpcport.c (getrpcport): Likewise.
11587         * sunrpc/clnt_simp.c (callrpc): Likewise.
11588         * sunrpc/clnt_gen.c (clnt_create): Likewise.
11589         * string/envz.c: Likewise.
11590
11591         * po/ko.po: Update from translation team.
11592
11593         * argp/argp-help.c: Handle wide oriented stderr stream.
11594
11595 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
11596
11597         * sysdeps/generic/strtol.c: Little optimizations.  Add some
11598         __builtin_expect.
11599
11600         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
11601
11602         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
11603         * wcsmbs/wcwidth.c (wcwdith): Likewise.
11604         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
11605
11606         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
11607
11608         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
11609
11610         * time/time.h (struct timespec): Use __time_t for tv_sec element.
11611
11612         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
11613         wchar_t for function declarations and defintions.
11614
11615         * misc/sys/select.h: Define __need_time_t before including <time.h>.
11616         Define suseconds_t if it hasn't happened yet.
11617
11618         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
11619
11620         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
11621
11622         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
11623         <stddef.h>.
11624
11625         * conform/data/stddef.h-data: Remove wint_t.
11626
11627         * conform/conformtest.pl: Change namespace test to take #undef
11628         lines into account.
11629
11630         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
11631
11632         * conform/data/sys/socket.h-data: Add sockatmark.
11633
11634 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
11635
11636         * io/fts.c: Update from recent BSD source.
11637
11638 2001-08-17  Roland McGrath  <roland@frob.com>
11639
11640         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
11641         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
11642         Likewise.
11643
11644 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
11645
11646         * locale/duplocale.c (__duplocale): Also initialize the special
11647         __ctype_* elements.
11648
11649         * conform/data/netdb.h-data: Adjust gai_strerror return type.
11650
11651 2001-08-17  Andreas Jaeger  <aj@suse.de>
11652
11653         * misc/getpass.c: Include wchar.h for prototypes.
11654         * malloc/obstack.c: Likewise.
11655
11656 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
11657
11658         * sunrpc/svc_simple.c (universal): Use __write instead of write.
11659
11660         * wcsmbs/wcscoll.c: Also define __wcscoll.
11661         * include/wchar.h: Declare __wcscoll.
11662
11663         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
11664         * libio/vwprintf.c: Likewise.
11665         * libio/wprintf.c: Likewise.
11666
11667         * iconv/gconv_cache.c: Use __munmap instead of munmap.
11668
11669 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
11670
11671         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
11672         instead of mbrtowc.
11673         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
11674         wcslen, and __wcscoll instead of wcscoll.
11675
11676         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
11677
11678         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
11679         __getuid instead of getuid.
11680
11681         * stdio-common/perror.c (perror): Use __close instead of close.
11682         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
11683         * libio/freopen.c (freopen): Likewise.
11684         * libio/freopen64.c (freopen64): Likewise.
11685
11686         * libio/tst-ungetwc2.c (main): Define str const.
11687
11688         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
11689         * libio/fwprintf.c: Also define __fwprintf.
11690         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
11691         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
11692         * assert/assert-perr.c: Likewise.
11693         * assert/assert.c: Likewise.
11694         * gmon/gmon.c: Likewise.
11695         * inet/rcmd.c: Likewise.
11696         * malloc/obstack.c: Likewise.
11697         * misc/err.c: Likewise.
11698         * misc/error.c: Likewise.
11699         * misc/getpass.c: Likewise.
11700         * posix/getopt.c: Likewise.
11701         * resolv/res_hconf.c: Likewise.
11702         * stdio-common/perror.c: Likewise.
11703         * stdio-common/psignal.c: Likewise.
11704         * stdlib/fmtmsg.c: Likewise.
11705         * sunrpc/auth_unix.c: Likewise.
11706         * sunrpc/clnt_perr.c: Likewise.
11707         * sunrpc/clnt_tcp.c: Likewise.
11708         * sunrpc/clnt_udp.c: Likewise.
11709         * sunrpc/clnt_unix.c: Likewise.
11710         * sunrpc/svc_simple.c: Likewise.
11711         * sunrpc/svc_tcp.c: Likewise.
11712         * sunrpc/svc_udp.c: Likewise.
11713         * sunrpc/svc_unix.c: Likewise.
11714         * sunrpc/xdr.c: Likewise.
11715         * sunrpc/xdr_array.c: Likewise.
11716         * sunrpc/xdr_rec.c: Likewise.
11717         * sunrpc/xdr_ref.c: Likewise.
11718         * sysdeps/generic/wordexp.c: Likewise.
11719
11720         * po/it.po: Update from translation team.
11721
11722         * misc/err.c: Handle wide oriented stderr stream.
11723
11724 2001-08-14  Tom Rix  <trix@redhat.com>
11725
11726         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
11727         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
11728
11729 2001-08-13  Tom Rix  <trix@redhat.com>
11730
11731         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
11732         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
11733         and __intptr_t.
11734
11735 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11736
11737         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
11738         Store the access registers to the ucontext structure.
11739         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
11740         Likewise.
11741
11742         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
11743         Load the access registers from the ucontext structure.
11744         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
11745         Likewise.
11746
11747         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
11748         offsets to the new ucontext layout.
11749         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
11750
11751         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
11752         of the ucontext structure.
11753         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
11754
11755 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
11756
11757         * misc/error.c (error): Handle wide oriented stderr stream correctly.
11758         (error_at_line): Likewise.
11759
11760         * stdio-common/perror.c (perror): Implement according to standard.
11761         The stream orientation must not be changed if the stream was not
11762         oriented before the call.
11763         * stdio-common/Makefile (tests): Add tst-perror.
11764         * stdio-common/tst-perror.c: New file.
11765
11766
11767 See ChangeLog.12 for earlier changes.