1 2002-08-28 Ulrich Drepper <drepper@redhat.com>
3 * version.h (VERSION): Bump to 2.2.91.
5 * configure.in: Disable TLS support by default for now.
7 * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
9 * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
12 * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
14 * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
15 fprintf/fwprintf calls.
17 2002-08-28 Roland McGrath <roland@redhat.com>
19 * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
20 to use $(filter ...) instead. Same bug fixed in aix conditionals.
22 * locale/setlocale.c: Declare postload functions weak.
24 * elf/tst-tls1-static.c: New file.
25 * elf/tst-tls2-static.c: New file.
26 * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
28 Make uselocale support static linking.
29 * locale/xlocale.c: Revert changes putting _nl_global_locale here.
30 This file again just defines _nl_C_locobj.
31 (_nl_C_locobj): Use a categories.def iterator in the initializer.
32 * locale/global-locale.c: New file. Define _nl_global_locale here,
33 using all weak references in the initializer.
34 * locale/Makefile (aux): Add global-locale.
35 * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
36 these unconditional, along with the tsd decl.
37 [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
38 Define it under these conditions.
39 [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
40 Don't declare _nl_current. Declare _nl_current_LC_FOO as
41 `extern __thread struct locale_data *const *'.
43 (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
44 [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten. Define
45 the thread variable _nl_current_LC_FOO and also a special absolute
46 symbol _nl_current_LC_FOO_used.
47 * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
48 Set each _nl_current_LC_FOO symbol to point into the new locale,
49 using weak references to test if _nl_current_LC_FOO_used was linked in.
50 * locale/setlocale.c [! SHARED]: Replace this conditional ...
51 [NL_CURRENT_INDIRECT]: ... with this one.
52 (_nl_current, _nl_C): Variables removed.
53 [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
54 weak references to _nl_current_LC_FOO_used.
55 [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
56 (free_category): New function, broken out of ...
57 (free_mem): ... here. Call that.
58 (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
61 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
62 PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
63 it is already absolute.
65 * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
66 [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
67 [$(build-static) = yes] (tests-static): New variable.
68 ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
70 2002-08-26 Christoph Hellwig <hch@lst.de>
72 * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
73 formating braindamage, add missing PER_HPUX and PER_OSF1 values.
75 2002-08-28 Ulrich Drepper <drepper@redhat.com>
77 * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
79 * sysdeps/s390/Dist: Add bits/link.h.
81 * sysdeps/sh/Dist: New file.
83 * sysdeps/ia64/Dist: Add ia64libgcc.S.
85 * sysdeps/wordsize-32/Dist: New file.
87 * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
88 * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
89 * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
91 * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
94 * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
97 * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
99 * sysdeps/unix/bsd/sun/Dist: New file.
101 * sysdeps/unix/bsd/osf/Dist: New file.
103 * sysdeps/unix/bsd/hp/Dist: New file.
105 * sysdeps/unix/arm/Dist: New file.
107 * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
109 * sysdeps/mach/hurd/Dist: Add set-init.c.
111 * sysdeps/i386/Dist: Add bits/link.h.
113 * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
115 * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
117 * locale/Makefile (distribute): Add hashval.h.
119 * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
121 * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
123 * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
124 __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
125 __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
126 * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
128 * libio/stdio.h: Likewise.
129 * locale/locale.h: Likewise.
130 * math/math.h: Likewise.
131 * math/bits/mathcalls.h: Likewise.
132 * setjmp/setjmp.h: Likewise.
133 * signal/signal.h: Likewise.
134 * stdlib/stdlib.h: Likewise.
135 * string/string.h: Likewise.
136 * time/time.h: Likewise.
137 * wcsmbs/wchar.h: Likewise.
138 * wctype/wctype.h: Likewise.
140 2002-08-28 Roland McGrath <roland@redhat.com>
142 * locale/tst-C-locale.c (run_test): Remove __ from function names.
144 2002-08-28 Jakub Jelinek <jakub@redhat.com>
145 Roland McGrath <roland@redhat.com>
147 * locale/hashval.h (compute_hashval): Use prototype defn.
148 (hashval_t): New macro, defined to unsigned long int
149 if not already defined.
150 (compute_hashval): Return hashval_t instead of unsigned long int.
151 * locale/loadarchive.c (hashval_t): New macro.
152 * locale/programs/locarchive.c: Include hashval.h directly instead
154 (compute_hashval, hashval_t): Define these macros first.
155 (insert_name): Use archive_hashval instead of compute_hashval.
156 (add_locale, delete_locales_from_archive): Likewise.
158 2002-08-28 Jakub Jelinek <jakub@redhat.com>
160 * locale/programs/locarchive.c (insert_name): Suppress warnings about
161 hash collisions if be_quiet.
163 2002-08-27 Roland McGrath <roland@redhat.com>
165 * locale/locale.h (__newlocale, __duplocale, __freelocale,
166 __uselocale): Don't declare these any more.
167 * include/locale.h (__uselocale): Declare here instead, using __typeof.
169 * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
170 and treat it as an EOF return.
171 * sysdeps/unix/readdir_r.c: Likewise.
173 * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
174 From Alexandre Oliva <aoliva@redhat.com>.
175 * sysdeps/gnu/errlist-compat.c: Regenerated.
177 2002-08-27 Brian Youmans <3diff@gnu.org>
179 * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
180 wording at request of copyright holder Stephen Moshier.
181 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
182 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
183 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
184 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
185 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
186 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
187 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
188 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
189 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
190 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
191 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
192 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
193 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
194 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
196 2002-08-28 Jakub Jelinek <jakub@redhat.com>
198 * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
199 * ctype/ctype-extn.c (isblank_l): Add weak alias.
200 * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
201 * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
202 * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
203 * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
204 * wctype/iswctype_l.c (iswctype_l): Likewise.
206 2002-08-27 Roland McGrath <roland@redhat.com>
208 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
210 * ctype/ctype.h (__exctype_l): Don't declare __ name.
211 * stdlib/stdlib.h: Don't declare __*_l names.
212 * include/stdlib.h: Declare them here instead.
213 * include/string.h: Don't declare __*_l names.
214 * string/string.h: Declare them here instead.
215 * time/time.h: Don't declare __*_l names.
216 * include/time.h: Declare them here instead.
217 * wcsmbs/wchar.h: Don't declare __*_l names.
218 * include/wchar.h: Declare them here instead.
219 * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
220 Don't declare __*_l names.
221 * include/wctype.h: Declare them here instead.
222 * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
223 * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
224 * locale/langinfo.h: Don't declare __nl_langinfo_l.
225 * include/langinfo.h: Declare it here with __typeof.
227 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
228 instead, taking an extra __locale_t argument.
229 * time/Makefile (routines): Add strptime_l.
230 * time/time.h (__strptime_l, strptime_l): Declare them.
231 * time/strptime_l.c: New file.
233 * time/time.h (__strftime_l, strftime_l): Declare them.
234 * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
235 * time/strftime_l.c: New file.
236 * time/wcsftime_l.c: New file.
237 * time/Makefile (routines): Add strftime_l, wcsftime_l.
238 * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
239 strftime_l, wcsftime_l.
240 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
241 or __wcsftime_l instead, taking an extra __locale_t argument.
243 * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
244 (libc: GLIBC_2.3): ... here.
246 2002-08-27 Ulrich Drepper <drepper@redhat.com>
248 * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
250 * Makefile (distribute): Add LICENSES.
252 * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
255 * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
257 * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
259 * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
261 * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
263 * sysdeps/mach/hurd/alpha/Dist: New file.
265 * sysdeps/arm/Dist: Add bits/link.h.
267 * sunrpc/Makefile: Distribute thrsvc.
269 * stdio-common/Makefile: Remove more left-overs from old stdio.
271 * include/linewrap.h: Removed.
273 * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
275 * intl/Makefile (distribute): Add plural-eval.c.
277 2002-08-27 Roland McGrath <roland@redhat.com>
279 * manual/sysinfo.texi (Mount Information): Correct file name to macro
280 assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
281 Say mtab is in either /var/run or /etc.
283 2002-08-26 Roland McGrath <roland@redhat.com>
285 * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
286 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
288 * sysdeps/gnu/Versions: New file.
289 * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
290 _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
291 * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
292 ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
293 * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
294 and _sys_nerr_internal instead of anything else. Make it include
295 "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
296 Make it emit some asm magic if [EMIT_ERR_MAX].
297 * sysdeps/gnu/errlist.c: Regenerated.
298 * sysdeps/gnu/errlist-compat.awk: New file.
299 * sysdeps/gnu/errlist-compat.c: New file (generated).
300 * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
301 (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
302 (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
303 (SYS_ERRLIST, SYS_NERR): Macros removed.
304 (sys_nerr, _sys_nerr): Remove these weak aliases.
305 * sysdeps/unix/sysv/linux/errlist.c: File removed.
306 * sysdeps/unix/sysv/linux/errlist.h: File removed.
307 * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
309 * include/libc-symbols.h (declare_symbol): New macro.
310 * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
311 * configure.in: New check to define it.
312 * configure: Regenerated.
314 2002-08-27 Ulrich Drepper <drepper@redhat.com>
316 * stdio-common/Makefile (headers): Remove bits/stdio_lim.h. This
317 file isn't distributed. Add special rules to install bits/stdio_lim.h.
319 * Make-dist: Remove traces of old stdio.
320 * Makeconfig: Likewise.
322 * locale/Makefile (localedef-aux): New variable. Only md5
323 assigned to it. These files are not ddistributed in this directory.
325 * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
326 * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
327 * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
329 * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
331 * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
332 set h_errno to NO_RECOVERY [PR libc/4360].
334 2002-08-26 Ulrich Drepper <drepper@redhat.com>
336 * libio/Makefile (tests): Add bug-fopena+.
337 * libio/bug-fopena+.c: New file.
338 * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
339 file for _IO_IS_APPENDING if file isn't opened for reading, too.
341 * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
343 * locale/xlocale.c: Fix the last change. The variable still has
345 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
346 (__libc_tsd_set): Add _data prefix to variable name.
348 2002-08-26 Roland McGrath <roland@redhat.com>
350 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
351 macro with inline function.
352 (sigset_get_old_mask): Likewise.
353 * sysdeps/posix/sigblock.c (__sigblock): Update callers.
354 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
355 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
356 * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
357 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
358 (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
360 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
361 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
363 2002-07-06 Bruno Haible <bruno@clisp.org>
365 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
366 sigset_get_old_mask): Make it work with larger sigset_t.
367 * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
368 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
369 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
371 2002-08-26 Roland McGrath <roland@redhat.com>
373 * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
374 * manual/filesys.texi (File Times): Document lutimes and futimes.
375 * misc/Makefile (routines): Add them.
376 * misc/Versions (libc: GLIBC_2.3): Likewise.
377 * sysdeps/generic/lutimes.c: New file.
378 * sysdeps/generic/futimes.c: New file.
379 * sysdeps/mach/hurd/lutimes.c: New file.
380 * sysdeps/mach/hurd/futimes.c: New file.
382 * manual/filesys.texi (File Times): Add explicit note about null
383 pointer argument to utimes.
385 2002-08-26 Roland McGrath <roland@frob.com>
387 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
388 (__ifreq): Add a cast. Remove an unused variable.
390 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
391 _HURD_THREADVAR_LOCALE.
393 2002-08-26 Jakub Jelinek <jakub@redhat.com>
395 * posix/regexec.c (re_search_stub): Return correct match length
397 * posix/bug-regex10.c: New test.
398 * posix/Makefile (tests): Add bug-regex10.
400 2002-08-26 Brian Youmans <3diff@gnu.org>
402 * COPYING.LIB: Replaced with fresh copy from
403 ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
404 suggested copying permission notice now says version 2.1 instead
407 * crypt/crypt.c: Changed copying permission notice to Lesser GPL
409 * crypt/crypt_util.c: Likewise.
410 * crypt/ufc.c: Likewise.
411 * elf/dl-conflict.c: Likewise.
412 * elf/dl-iteratephdr.c: Likewise.
413 * iconv/iconvconfig.h: Likewise.
414 * malloc/arena.c: Likewise.
415 * malloc/hooks.c: Likewise.
416 * malloc/malloc.c: Likewise.
417 * posix/glob/Makefile.ami: Likewise.
418 * posix/glob/Makefile.in: Likewise.
419 * stdlib/gmp-impl.h: Likewise.
420 * stdlib/gmp.h: Likewise.
421 * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
422 * sysdeps/generic/strnlen.c: Likewise.
423 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
424 * sysdeps/mach/hurd/recvmsg.c: Likewise.
425 * sysdeps/mach/hurd/sendmsg.c: Likewise.
426 * sysdeps/mach/hurd/spawni.c: Likewise.
427 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
428 * sysdeps/mach/powerpc/sysdep.h: Likewise.
429 * sysdeps/mach/powerpc/thread_state.h: Likewise.
430 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
431 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
432 * sysdeps/x86_64/gmp-mparam.h: Likewise.
434 * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
435 Lesser GPL copying permission notice from 2 to 2.1.
436 * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
437 * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
438 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
439 * sysdeps/ieee754/dbl-64/branred.c: Likewise.
440 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
441 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
442 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
443 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
444 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
445 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
446 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
447 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
448 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
449 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
450 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
451 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
452 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
453 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
454 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
455 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
456 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
457 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
458 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
459 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
460 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
461 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
462 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
463 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
464 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
465 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
466 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
467 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
468 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
469 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
470 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
471 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
472 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
473 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
474 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
475 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
476 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
477 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
478 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
479 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
480 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
481 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
482 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
483 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
484 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
485 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
486 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
487 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
488 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
489 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
490 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
492 * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
493 Moshier and Lesser GPL copying permission notice, per license from
495 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
496 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
497 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
498 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
499 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
500 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
501 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
502 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
503 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
504 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
505 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
506 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
507 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
508 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
510 * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
511 notice, per license from copyright holder Stephen Moshier.
512 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
513 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
514 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
515 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
516 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
517 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
518 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
519 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
520 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
522 2002-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
524 * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
525 (shared-only-routines): Likewise.
527 2002-08-26 Roland McGrath <roland@redhat.com>
529 * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
530 name of "", store a null pointer instead.
532 * configure.in (elf): Set to yes for freebsd*, netbsd*.
533 * configure: Regenerated.
535 * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
536 Initialize this instead of __libc_tsd_LOCALE_data.
538 * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
541 * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
543 * rt/Makefile: Revert last change, it was inappropriate to presume aio
544 implementations depend on pthreads.
545 * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
546 * rt/tst-aio64.c (do_test): Likewise.
547 * rt/tst-aio2.c (do_test): Likewise.
548 * rt/tst-aio3.c (do_test): Likewise.
549 * rt/tst-aio4.c (do_test): Likewise.
550 * rt/tst-aio5.c (do_test): Likewise.
551 * rt/tst-aio6.c (do_test): Likewise.
552 * rt/tst-aio7.c (do_test): Likewise.
554 * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
555 void so as to avoid compiler warnings.
557 * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
558 _IO_wide_data_FD, which is never used here.
561 [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
562 * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
563 * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
565 * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
566 * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
568 * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
569 (closelog): Likewise.
571 2002-07-06 Bruno Haible <bruno@clisp.org>
573 * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
575 * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
576 * sysdeps/unix/alpha/pipe.S: ... here.
577 * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
579 * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
581 * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
582 * sysdeps/unix/i386/fork.S: Likewise.
583 * sysdeps/unix/i386/pipe.S: Likewise.
584 * sysdeps/unix/i386/wait.S: Likewise.
586 * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
587 * sysdeps/unix/arm/fork.S: Likewise.
589 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
591 (DO_CALL): Swap argument order.
592 * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
594 (DO_CALL): Swap argument order.
595 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
597 (DO_CALL): Swap argument order.
598 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
600 (DO_CALL): Swap argument order.
601 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
603 (DO_CALL): Swap argument order.
604 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
606 (DO_CALL): Swap argument order.
607 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
609 (DO_CALL): Swap argument order.
611 * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
612 (L): Define right for ELF.
613 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
614 Now defined in sysdeps/i386/sysdep.h.
616 * sysdeps/posix/readv.c: Ansify function definition.
617 * sysdeps/posix/writev.c: Likewise.
619 * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
620 have the same size. Avoid direct cast from size_t to off_t.
622 * login/tst-utmp.c (simulate_login): Don't leave garbage after the
623 nul byte in entry[n].ut_user.
624 (simulate_logout): Likewise.
626 * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
627 _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
628 existence of corresponding members of 'struct utmp'.
629 * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
632 * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
633 allocate a buffer of at least BUFSIZ bytes, not just of
634 sizeof (struct dirent).
636 * sysdeps/generic/glob.c: Include <limits.h>.
637 (NAME_MAX): Define a fallback.
638 (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
640 * posix/tst-dir.c: Include <stddef.h>, for offsetof.
641 (main): Allocate enough room for a 'struct dirent64' on the stack.
642 * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
645 * sysdeps/unix/sysv/linux/init-first.c: Don't include
648 * inet/htontest.c: Include <sys/types.h>.
650 * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
652 * include/sys/sysctl.h: Comment fix.
654 * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
656 * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
658 * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
660 * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
661 (__getpeername): New alias.
662 (__getsockname): New alias.
663 (__socket): New alias.
665 * sysdeps/unix/common/syscalls.list (getpgid): Remove.
667 * sysdeps/unix/syscalls.list (__chown_internal): New alias.
668 (__fcntl_internal): New alias.
669 (__profil): New alias.
671 2002-08-26 Ulrich Drepper <drepper@redhat.com>
673 * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
674 entry was for getaddr* lookup or not. Add only matching cache
675 entry. Change all callers [PR libc/4317].
677 * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
678 finding the read position [PR libc/4265].
679 * libio/Makefile (tests): Add bug-rewind2.
680 * libio/bug-rewind2.c: New file.
682 * libio/bug-rewind.c: Fix creation of temp file.
684 2002-08-25 Ulrich Drepper <drepper@redhat.com>
686 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
687 neither SUCCESS nor TRYAGAIN [PR libc/4259].
688 * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
689 to ENOENT if no entry is found.
690 * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
692 * nis/nss_compat/compat-initgroups.c: Likewise.
693 * nis/nss_compat/compat-pwd.c: Likewise.
694 * nis/nss_compat/compat-spwd.c: Likewise.
695 * nis/nss_nis/nis-alias.c: Likewise.
696 * nis/nss_nis/nis-ethers.c: Likewise.
697 * nis/nss_nis/nis-grp.c: Likewise.
698 * nis/nss_nis/nis-hosts.c: Likewise.
699 * nis/nss_nis/nis-initgroups.c: Likewise.
700 * nis/nss_nis/nis-netgrp.c: Likewise.
701 * nis/nss_nis/nis-network.c: Likewise.
702 * nis/nss_nis/nis-proto.c: Likewise.
703 * nis/nss_nis/nis-publickey.c: Likewise.
704 * nis/nss_nis/nis-pwd.c: Likewise.
705 * nis/nss_nis/nis-rpc.c: Likewise.
706 * nis/nss_nis/nis-service.c: Likewise.
707 * nis/nss_nis/nis-spwd.c: Likewise.
708 * resolv/nss_dns/dns-host.c: Likewise.
709 * resolv/nss_dns/dns-network.c: Likewise.
710 * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
711 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
712 * nis/nss_nisplus/nisplus-grp.c: Likewise.
713 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
714 * nis/nss_nisplus/nisplus-network.c: Likewise.
715 * nis/nss_nisplus/nisplus-proto.c: Likewise.
716 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
717 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
718 * nis/nss_nisplus/nisplus-service.c: Likewise.
719 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
720 * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
721 * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
722 * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
723 * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
725 * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
726 declaring __restore and __restore_rt as hidden (if possible).
728 2002-08-25 Roland McGrath <roland@redhat.com>
730 * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
732 * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
733 (getutent_r_file, internal_getut_r): Updated all callers.
734 (getutline_r_file, pututline_file, updwtmp_file): Likewise.
736 2002-08-25 Ulrich Drepper <drepper@redhat.com>
738 * locale/programs/locale.c: Don't print aliases for non-existing
739 locales for 'locale -a'.
740 Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
742 2002-07-19 H.J. Lu <hjl@gnu.org>
744 * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
746 2002-07-16 H.J. Lu <hjl@gnu.org>
748 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
750 * sysdeps/unix/sysv/linux/sys/personality.h: New file.
752 2002-08-25 Ulrich Drepper <drepper@redhat.com>
754 * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
755 not moved ahead of the fputs call.
756 * elf/tst-tlsmod2.c (in_dso): Likewise.
757 * elf/tst-tlsmod3.c (in_dso2): Likewise.
758 * elf/tst-tlsmod4.c (in_dso): Likewise.
760 2002-08-25 Andreas Schwab <schwab@suse.de>
762 * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
764 2002-08-25 Roland McGrath <roland@redhat.com>
766 * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
767 resetting handler, to avoid the possibility of a spurious SIGALRM
768 delivered to the user's handler.
769 Reported by Amit D. Chaudhary <amitc@brocade.com>,
771 * misc/Makefile (CFLAGS-init-misc.c): Variable removed. It served to
772 set -fkeep-inline-functions, which is not needed for the current file.
774 * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
775 (_dl_setup_hash): Add attribute_hidden.
776 (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
777 (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
778 (_dl_new_object, _dl_map_object_deps): Likewise.
779 (_dl_map_object_deps_internal): Remove decl.
780 * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
782 * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
783 && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
784 && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
785 (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
786 instead relying on the compiler to produce only GOTOFF variable refs.
788 2002-08-25 Ulrich Drepper <drepper@redhat.com>
790 * elf/dl-load.c: Fix typo in comment. Add a few more __builtin_expect.
792 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
793 inline to avoid defining it in every file which includes this header.
795 * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
796 defining DONT_USE_BOOTSTRAP_MAP.
798 * libio/tst-freopen.c (main): Use correct formats for __LINE__.
799 * libio/tst-mmap-setvbuf.c (main): Likewise.
800 * libio/tst-widetext.c (main): Likewise.
802 * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
804 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
805 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
807 * sysdeps/i386/elf/configure.in: Unconditionally define
808 PI_STATIC_AND_HIDDEN.
809 * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
810 PI_STATIC_AND_HIDDEN is defined as well.
811 * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
813 2002-08-24 Ulrich Drepper <drepper@redhat.com>
815 * sysdeps/ia64/bzero.S: Define __bzero as well.
817 * locale/programs/charmap.c (charmap_new_char): Don't use
818 ULONG_MAX as maximum UCS4 value.
820 * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
822 * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
824 * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
825 * malloc/malloc.c (mALLINFo): Likewise.
827 * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
829 * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
830 examining result of _IO_do_flush call.
832 * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
833 Use prec not spec when sizing buffers.
835 * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
836 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
837 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
838 * stdio-common/vfscanf.c (inchar): Likewise.
839 * misc/efgcvt_r.c (fcvt_r): Likewise.
840 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
841 * elf/readlib.c (process_file): Likewise.
842 * elf/sprof.c (load_profdata): Likewise.
843 * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
844 * locale/programs/linereader.c (get_toplvl_escape): Likewise.
845 * locale/programs/charmap.c (charmap_read): Likewise.
846 * libio/fileops.c: Likewise.
847 * libio/fmemopen.c: Likewise.
848 * stdlib/strtod.c: Likewise.
849 * elf/dl-load.c: Likewise.
850 * iconv/iconvconfig.c: Likewise.
851 * iconv/iconv_prog.c (process_block): Likewise.
852 * elf/rtld.c (dl_main): Likewise.
854 * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
855 macro to calm down the compiler.
857 * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
859 * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
861 * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
862 placement of errno definition.
863 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
864 * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
865 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
866 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
867 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
869 * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
870 from 1024 to 65536, to avoid buffer overrun.
872 2002-08-16 Paul Eggert <eggert@twinsun.com>
874 * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
875 from 1024 to 65536, to avoid buffer overrun.
876 * resolv/res_query.c (MAXPACKET): Likewise.
878 2002-08-24 Andreas Jaeger <aj@suse.de>
880 * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
882 2002-08-23 Ulrich Drepper <drepper@redhat.com>
884 * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
887 * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
888 Patch by Simon Gee <simong@agile.tv>.
890 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
891 Prefer reading /proc/stat since it is more uniform across
894 * manual/texinfo.tex: Update to latest official version.
896 * sysvipc/sys/shm.h: Remove SHMLBA definition.
897 * sysdeps/generic/bits/shm.h: Define SHMLBA here.
898 * sysdeps/gnu/bits/shm.h: Likewise.
899 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
900 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
901 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
902 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
903 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
904 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
905 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
906 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
907 since this is what the kernel says.
909 * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
910 since ssize_t is needed as well. Replace const with __const.
912 2002-08-23 Roland McGrath <roland@redhat.com>
914 * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
915 __malloc_hook, __realloc_hook, __memalign_hook,
916 __after_morecore_hook): Variable definitions moved to ...
917 * malloc/malloc.c: ... here, so as to be before all references.
919 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
920 global variable reference in an unused asm parameter, to ensure the
921 compiler has set up the GOT register before we use it.
923 * malloc/hooks.c: Move variable definitions ahead of uses.
924 * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
925 initializers that make reference to variables they define.
927 2002-08-23 Andreas Jaeger <aj@suse.de>
929 * locale/loadarchive.c: Include <stdlib.h> for prototypes of
932 * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
934 * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
935 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
937 * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
939 * sysdeps/generic/fgetxattr.c: New file.
940 * sysdeps/generic/flistxattr.c: New file.
941 * sysdeps/generic/fremovexattr.c: New file.
942 * sysdeps/generic/fsetxattr.c: New file.
943 * sysdeps/generic/getxattr.c: New file.
944 * sysdeps/generic/listxattr.c: New file.
945 * sysdeps/generic/lgetxattr.c: New file.
946 * sysdeps/generic/llistxattr.c: New file.
947 * sysdeps/generic/lremovexattr.c: New file.
948 * sysdeps/generic/lsetxattr.c: New file.
949 * sysdeps/generic/removexattr.c: New file.
950 * sysdeps/generic/setxattr.c: New file.
951 * misc/Makefile (headers): Add sys/xattr.h.
952 (routines): Add *xattr calls.
953 * misc/Versions: Add *xattr calls with version 2.3.
954 * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
955 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
956 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
957 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
958 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
959 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
960 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
961 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
963 2002-08-22 Steven Munroe <sjmunroe@us.ibm.com>
965 * sysdeps/powerpc/elf/libc-start.c
966 (__cache_line_size): Declare.
967 (__aux_init_cache): New.
968 (__libc_start_main): Change type of `auxvec' parameter to
969 `ElfW(auxv_t) *'. Correct walking of aux vector. Call
971 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
972 (__cache_line_size): Declare.
973 (__aux_init_cache): New.
974 (DL_PLATFORM_INIT): Define.
975 * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
976 value to select the correct stride for dcbz.
978 2002-08-22 Andreas Jaeger <aj@suse.de>
980 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
983 2002-08-22 Roland McGrath <roland@redhat.com>
985 * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
986 position indicated by locrectab against file bounds before rounding to
987 page size. In mapping loop, always set TO before breaking out of
988 contiguous range coalescing loop.
990 * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
991 (or MAP_COPY if available) instead of MAP_SHARED.
993 * scripts/firstversions.awk: When encountering a version newer than
994 the specified earliest version, be sure to emit the specified earliest
995 version first if any renaming of an older version to that has been.
997 2002-08-21 Roland McGrath <roland@redhat.com>
999 * configure.in: Make GCC version check require 3.[2-9]* and no others.
1000 * manual/install.texi (Tools for Compilation): Say 3.2 is required.
1001 (Configuring and compiling): Don't mention older GCC versions any more.
1002 * INSTALL: Regenerated.
1004 * manual/install.texi (Configuring and compiling, Installation,
1005 Running make install, Linux): Linux -> GNU/Linux where appropriate.
1007 * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
1008 be inlined. Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
1009 and with noinline otherwise. Remove hack alloca use to prevent
1010 inlining, we can ask for it explicitly nowadays.
1012 * dlfcn/bug-dlsym1.c: New file.
1013 * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
1014 * dlfcn/Makefile (distribute): Add them.
1015 (tests): Add bug-dlsym1 here.
1016 (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
1017 ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
1018 ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
1020 2002-08-21 Ulrich Drepper <drepper@redhat.com>
1022 * elf/rtld.c (start_time): New global variable. Moved from _dl_start.
1023 (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
1025 (_dl_start): Don't use local bootstrap_map variable if
1026 DONT_USE_BOOTSTRAP_MAP is defined. Use GL(dl_rtld_map). Don't
1027 pass bootstrap_map to _dl_start_final in this case either. Don't
1028 pass start_time to _dl_start_final ever.
1029 (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
1031 * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
1032 This cripples the scope lists necessary to search for symbols in
1033 dependencies which are not in the global scope.
1035 * include/setjmp.h (__libc_longjmp): Add declaration.
1037 2002-08-21 Andreas Jaeger <aj@suse.de>
1039 * sysdeps/x86_64/_mcount.S: Fix assembler.
1041 * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
1042 with biarch support.
1044 2002-08-21 Andreas Jaeger <aj@suse.de>
1046 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
1048 * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
1050 * sysdeps/x86_64/machine-gmon.h: New file.
1051 * sysdeps/x86_64/_mcount.S: New file.
1053 2002-08-20 Ulrich Drepper <drepper@redhat.com>
1055 * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP. Set
1056 bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
1057 (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
1058 (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
1059 to TL_INIT_TP. Otherwise pass 1.
1060 * include/link.h (struct link_map): Add l_tls_tp_initialized.
1061 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
1063 2002-08-15 Jakub Jelinek <jakub@redhat.com>
1065 * locale/programs/localedef.c (add_to_readlist): Error about
1066 circular dependencies only if the locale in question hasn't
1068 * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
1069 CTYPE_LOCALE to load_locale.
1070 * locale/programs/locfile.c (locfile_read): Don't include
1071 unneeded but available locales in locale_mask.
1073 * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
1074 print any messages about enlarging archive.
1076 2002-08-20 Brian Youmans <3diff@gnu.org>
1078 * manual/contrib.texi: Removed licenses, added acknowledgements
1079 for contributions by Intel, IBM, Craig Metz.
1080 * LICENSES: New file, contains the text of all non-FSF licenses in the
1081 distribution that require putting the notice in the accompanying
1083 * README.template, README: Mention LICENSES.
1085 * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
1086 new one modelled on the modern BSD license, per recent letter
1087 of permission from CMU.
1088 * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
1090 * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
1091 from IBM to FSF, per the recent Software Letter. Changed the
1092 distribution terms from GPL to LGPL.
1094 * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
1095 copying permission notice (Lesser GPL), per recent IBM Software Letter.
1096 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1097 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1098 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1099 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1100 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1101 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1102 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1103 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1105 * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
1106 from IBM to FSF, per the recent Software Letter. Corrected the
1107 text of the copying permission notice to say Lesser GPL instead
1108 of GPL in warranty disclaimer paragraph.
1109 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1110 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1111 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1112 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1113 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1114 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1115 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1116 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1117 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1118 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1119 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1120 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1121 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1122 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1123 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1124 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1125 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1126 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1127 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1128 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1129 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1131 * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
1132 permission notice to say Lesser GPL instead of GPL in warranty
1133 disclaimer paragraph.
1134 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1135 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1136 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1137 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1138 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1139 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1140 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1141 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1142 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1143 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1144 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1145 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1146 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1147 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1148 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1149 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1150 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1151 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1152 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1153 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1154 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1155 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1156 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1158 2002-08-20 Roland McGrath <roland@redhat.com>
1160 Fix ABI compatibility with libc compiled with old tools on powerpc.
1161 Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1162 and Jack Howarth <howarth@bromo.med.uc.edu>.
1163 * sysdeps/powerpc/Makefile [$(have-protected) = yes]
1164 (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
1165 pass -DHAVE_DOT_HIDDEN for these files.
1166 * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
1168 * sysdeps/powerpc/divdi3.c: New file.
1169 * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
1170 * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
1172 2002-08-20 Jakub Jelinek <jakub@redhat.com>
1174 * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
1175 partially overlapping mappings. Remove unneeded (char *) casts.
1176 Never allow duplication of ranges in mapped areas.
1178 2002-08-20 Roland McGrath <roland@redhat.com>
1180 * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
1181 can be detected by make. Reported by H.J. Lu <hjl@gnu.org>.
1183 2002-08-20 Ulrich Drepper <drepper@redhat.com>
1185 * include/unistd.h: Don't hide _exit.
1187 * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
1188 (dl_main): Pass extra argument 0 to TLS_INIT_TP.
1189 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
1190 argument 1 to TLS_INIT_TP.
1191 * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
1193 * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
1195 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
1196 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
1197 memory allocation to...
1198 (allocate_dtv): ...here. New function.
1199 (_dl_allocate_tls): Change to take parameter. If parameter is non-NULL
1200 call allocate_dtv instead of _dl_allocate_tls_storage.
1201 (_dl_deallocate_tls): New parameter. Deallocate TCB only if true.
1202 (_dl_get_tls_static_info): New function.
1203 * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
1204 and _dl_deallocate_tls. Add prototype for _dl_get_tls_static_info.
1206 2002-08-19 Ulrich Drepper <drepper@redhat.com>
1208 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
1209 immediately if result == NULL.
1211 2002-08-16 Jakub Jelinek <jakub@redhat.com>
1213 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
1215 2002-08-18 Roland McGrath <roland@frob.com>
1217 * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
1218 instead of __file_name_split.
1219 * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
1221 * sysdeps/mach/hurd/dl-sysdep.c
1222 [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
1223 [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
1225 2002-08-16 Jakub Jelinek <jakub@redhat.com>
1227 * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
1228 in change before last: MAX -> MIN.
1230 2002-08-15 Roland McGrath <roland@redhat.com>
1232 * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
1233 if seek would go past it.
1234 (mmap_remap_check): If file position is at or past EOF after check,
1235 leave read pointers at EOF and don't seek.
1237 * libio/tst-mmap-offend.c: New file.
1238 * libio/Makefile (tests): Add it.
1240 * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
1241 the name as passed, rather than the name in the archive dictionary.
1243 2002-08-15 Ulrich Drepper <drepper@redhat.com>
1245 * csu/Makefile: Define elide-routines.os not static-only-routines.
1247 * include/sched.h (__clone): Add varargs at the end.
1249 * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
1251 (TLS_INIT_HELPER): If defined, use it.
1252 * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
1254 2002-08-15 Roland McGrath <roland@redhat.com>
1256 * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
1257 on L->l_prev; it can happen under rtld --verify too.
1259 * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
1260 header separately, just map an initial window of 2MB from the file
1261 and remap if that is not large enough to cover the whole header.
1263 2002-08-15 Andreas Jaeger <aj@suse.de>
1265 * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
1267 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1268 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1269 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
1270 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
1271 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1272 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1273 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1274 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1275 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
1276 Patch by Andreas Gruenbacher <agruen@suse.de>.
1278 * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
1280 2002-08-14 Roland McGrath <roland@redhat.com>
1282 * locale/locarchive.h (struct locale_category_data): Give this name to
1283 the type of locale_data_t's elements.
1284 * locale/programs/locarchive.c (cmpcategorysize): New static function.
1285 (add_locale): Use that to sort the categories by size and put all
1286 those that fit into two pages into the LC_ALL block, instead of
1287 hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
1288 (show_archive_content): Detect categories inside LC_ALL block
1289 directly, instead of hard-coding.
1290 (oldlocrecentcmp): Compare just on file locations used.
1292 2002-08-14 Jakub Jelinek <jakub@redhat.com>
1294 * locale/programs/locarchive.c (struct oldlocrecent): New.
1295 (oldlocrecentcmp): New.
1296 (enlarge_archive): Re-add locales in the order they were added
1298 (add_locale): Put all the small locale files together, if the small
1299 locale file block would occupy less pages if page size aligned, align
1301 (show_archive_content): Adjust for locale archives optimized for speed.
1303 2002-08-14 Roland McGrath <roland@frob.com>
1305 * configure.in: Use "MISSING" as not-found value for MIG.
1306 * sysdeps/mach/configure.in: Fatal if mig not found.
1307 * configure, sysdeps/mach/configure: Regenerated.
1309 2002-08-13 Jakub Jelinek <jakub@redhat.com>
1311 * locale/loadarchive.c (archfname): Add missing slash.
1313 * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
1314 * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
1316 2002-08-12 Roland McGrath <roland@redhat.com>
1318 * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
1319 * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
1320 * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
1321 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
1322 * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
1323 * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
1324 * sysdeps/generic/waitpid.c: Likewise.
1326 * include/net/if.h: New file. Use libc_hidden_proto
1327 for if_nametoindex and if_indextoname.
1328 * sysdeps/generic/if_index.c: Add libc_hidden_def.
1329 * sysdeps/mach/hurd/if_index.c: Likewise.
1330 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
1332 * include/grp.h (setgroups): Add libc_hidden_proto.
1333 * sysdeps/generic/setgroups.c: Add libc_hidden_def.
1334 * sysdeps/mach/hurd/setgroups.c: Likewise.
1335 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
1336 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1338 2002-08-13 Jakub Jelinek <jakub@redhat.com>
1340 * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
1341 * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
1342 * sysdeps/generic/setegid.c (setegid): Likewise.
1343 * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
1344 * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
1345 * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
1346 * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
1347 * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
1348 * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
1349 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
1350 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
1351 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
1352 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
1353 * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
1354 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
1355 Remove fallback if __ASSUME_SETRESUID_SYSCALL.
1357 * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
1358 __lxstat_internal, __lxstat64_internal): Remove.
1359 (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
1361 * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
1362 Remove INTDEF where present, remove #undef at the beginning.
1363 * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
1364 * sysdeps/generic/lxstat.c (__lxstat): Likewise.
1365 * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
1366 * sysdeps/generic/xstat.c (__xstat): Likewise.
1367 * sysdeps/generic/xstat64.c (__xstat64): Likewise.
1368 * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
1369 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
1370 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
1371 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
1372 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
1373 * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
1374 * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
1375 * sysdeps/unix/fxstat.c (__fxstat): Likewise.
1376 * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
1377 * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
1378 * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
1379 * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
1380 * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
1381 * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
1382 * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
1383 * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
1384 * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
1385 * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
1386 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
1387 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
1388 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
1389 * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
1390 * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
1391 * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
1392 * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
1393 * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
1394 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
1395 * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
1396 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
1397 * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
1398 * sysdeps/unix/xstat.c (__xstat): Likewise.
1400 * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
1401 * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
1402 * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
1403 * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
1404 * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
1405 * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
1406 * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
1408 * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
1409 * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
1410 * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
1411 * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
1412 * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
1413 * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
1414 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
1415 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
1417 * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
1418 * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
1419 * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
1420 * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
1421 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
1422 * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
1423 * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
1424 * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
1426 * include/string.h (strcoll): Add libc_hidden_proto.
1427 * string/strcoll.c (strcoll): Add libc_hidden_def.
1429 * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
1431 2002-08-11 Philip Blundell <philb@gnu.org>
1433 * sysdeps/arm/Makefile: New file.
1435 2002-08-08 Jakub Jelinek <jakub@redhat.com>
1437 * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
1438 by another '|', end of regex or enclosing ')', clear branch.
1439 * posix/bug-regex9.c: New test.
1440 * posix/Makefile (tests): Add bug-regex9.
1442 2002-08-12 Roland McGrath <roland@redhat.com>
1444 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
1445 start count condition, use TOTAL instead of variable that was never
1446 set. Fix outer loop termination condition to TOTAL >= after update.
1448 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
1449 dl_tls_static_align and dl_tls_static_nelem.
1451 2002-08-11 Roland McGrath <roland@redhat.com>
1453 * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
1454 of the TLS macros, otherwise the compiler might not have initialized
1455 the PIC register yet when we use the PLT via asm.
1456 * elf/tst-tlsmod3.c (in_dso2): Likewise.
1457 * elf/tst-tlsmod2.c (in_dso): Likewise.
1459 * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
1461 * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
1462 Evaluate argument exactly once. Remove __volatile__ from asm's.
1464 * include/unistd.h: Use libc_hidden_proto for getdomainname
1466 * sysdeps/generic/getdomain.c: Add libc_hidden_def.
1467 * sysdeps/mach/hurd/getdomain.c: Likewise.
1468 * sysdeps/unix/getlogin_r.c: Likewise.
1469 * sysdeps/mach/hurd/getlogin_r.c: Likewise.
1470 * sysdeps/generic/getlogin_r.c: Likewise.
1472 * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
1473 * sunrpc/rtime.c: Add libc_hidden_def.
1475 * include/string.h: Use libc_hidden_proto for basename.
1476 * string/basename.c [_LIBC]: Add libc_hidden_def.
1478 * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
1480 * locale/loadarchive.c: munmap -> __munmap throughout.
1482 * include/netdb.h: Use libc_hidden_proto for gai_strerror.
1483 * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
1484 * sysdeps/generic/gai_strerror.c: Likewise.
1486 * include/sys/errno.h: New file.
1488 * include/signal.h: No libc_hidden_proto for raise,
1489 __libc_current_sigrtmin, __libc_current_sigrtmax.
1490 These need to be overridden by linuxthreads.
1491 * sysdeps/posix/raise.c: Reverted.
1492 * sysdeps/generic/raise.c: Reverted.
1493 * signal/allocrtsig.c: Reverted.
1495 * locale/loadarchive.c (LOCALEDIR): Remove debugging defn. Oops.
1497 2002-08-10 Roland McGrath <roland@redhat.com>
1499 * locale/loadarchive.c (_nl_archive_subfreeres): New function.
1500 * locale/localeinfo.h: Declare it.
1501 * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
1502 current locale if it's not in the file list.
1503 Call _nl_archive_subfreeres.
1505 2002-08-10 Andreas Jaeger <aj@suse.de>
1507 * sysdeps/i386/strchr.S: Add comment.
1509 2002-08-10 Roland McGrath <roland@redhat.com>
1511 * include/wchar.h (putwc): Use libc_hidden_proto.
1512 * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
1513 sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
1514 * stdio-common/dprintf.c: Add libc_hidden_def.
1515 * stdio-common/fprintf.c: Likewise.
1516 * stdio-common/sprintf.c: Likewise.
1517 * stdio-common/sscanf.c: Likewise.
1518 * libio/iofwrite.c: Likewise.
1519 * libio/memstream.c: Likewise.
1520 * libio/putwc.c: Likewise.
1521 * stdio-common/perror.c: Likewise.
1522 * sysdeps/posix/remove.c: Likewise.
1523 * sysdeps/generic/remove.c: Likewise.
1524 * libio/rewind.c: Likewise. Use <stdio.h> instead of "stdio.h".
1525 * stdio-common/vfprintf.c: Add libc_hidden_def. Include <stdio.h>.
1527 2002-08-09 Jakub Jelinek <jakub@redhat.com>
1529 * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
1530 towlower, towupper): Add prototypes here too. Add libc_hidden_proto.
1531 * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
1532 towlower, towupper): Add libc_hidden_weak.
1534 * include/bits/dlfcn.h: New file.
1535 * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
1537 * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
1538 * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
1539 * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
1540 * include/pwd.h (_nss_files_parse_pwent): Likewise.
1541 * include/shadow.h (_nss_files_parse_spent): Likewise.
1542 * include/netdb.h (_nss_files_parse_protoent,
1543 _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
1544 * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
1545 (LINE_PARSER): Use it.
1546 * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
1547 * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
1549 * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
1552 * manual/debug.texi (%MENU%): Remove trailing dot.
1553 Reported by <hayastan132@hotmail.com>.
1555 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
1558 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
1561 2002-08-09 Roland McGrath <roland@redhat.com>
1563 * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
1564 name to find codeset name (if any) and normalize it. If the
1565 normalized name differs, look up only that in the archive.
1566 * locale/programs/locarchive.c (add_locale_to_archive): If the name
1567 contains a codeset, normalize the codeset store only the normalized
1568 name in the archive. If not, add an alias containing the locale's
1569 normalized codeset name. Apply codeset name normalization when
1570 matching entries in the alias file.
1572 * locale/programs/locarchive.c (delete_locales_from_archive): Don't
1573 decrement HEAD->namehash_used here.
1574 (add_locale): Only need to insert name string when name_offset != 0.
1576 * locale/programs/localedef.c (options): Add -A/--alias-file.
1577 (alias_file): New variable.
1578 (parse_opt): Grok -A, set that.
1579 * locale/programs/localedef.h: Declare it.
1581 * locale/locarchive.h (struct locrecent): Add `refs' member.
1582 * locale/programs/locarchive.c (insert_name): New function, broken out
1584 (add_locale_to_archive): ... here. Call that.
1585 (add_alias): New function.
1586 (add_locale): New static function, add_locale_to_archive renamed.
1587 (add_locale_to_archive): Call that and use add_alias to add an alias
1588 for the name with codeset if the given name lacks it.
1589 (enlarge_archive): Call add_locale instead of add_locale_to_archive.
1591 * locale/Makefile (routines): Add loadarchive.
1592 * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
1593 (_nl_load_locale_from_archive): New function.
1594 * locale/localeinfo.h: Declare it.
1595 * locale/findlocale.c (_nl_find_locale): If using default locale path,
1596 try _nl_load_locale_from_archive first.
1598 * locale/loadlocale.c (_nl_intern_locale_data): New function,
1599 broken out of _nl_load_locale.
1600 (_nl_load_locale): Call that.
1601 * locale/localeinfo.h: Declare it.
1602 (struct locale_data): Replace member `mmaped' with `alloc', an enum.
1603 (struct locale_data): Remove unused member `options'.
1604 * locale/findlocale.c (_nl_remove_locale): Update uses.
1605 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
1606 * locale/C-collate.c: Update initializer.
1607 * locale/C-identification.c: Likewise.
1608 * locale/C-measurement.c: Likewise.
1609 * locale/C-telephone.c: Likewise.
1610 * locale/C-address.c: Likewise.
1611 * locale/C-name.c: Likewise.
1612 * locale/C-paper.c: Likewise.
1613 * locale/C-time.c: Likewise.
1614 * locale/C-numeric.c: Likewise.
1615 * locale/C-monetary.c: Likewise.
1616 * locale/C-messages.c : Likewise.
1617 * locale/C-ctype.c: Likewise.
1619 * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
1620 use CHAR_BIT instead of BITSPERBYTE.
1622 * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
1623 _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
1624 * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
1625 (_nl_remove_locale): Likewise.
1626 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
1628 * locale/findlocale.c (_nl_default_locale_path): New variable.
1629 (_nl_find_locale): If LOCALE_PATH is null, default to that.
1630 * locale/localeinfo.h: Declare it.
1631 * locale/setlocale.c (setlocale): Use _nl_default_locale_path
1632 in place of LOCALEDIR. If no LOCPATH, pass null to _nl_find_locale.
1633 * locale/newlocale.c (__newlocale): Likewise.
1635 * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
1636 * inet/rexec.c (rexec_af): Add libc_hidden_def.
1637 * sysdeps/generic/morecore.c: Likewise.
1638 * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
1639 (__libc_current_sigrtmax): Likewise.
1641 2002-08-08 Roland McGrath <roland@redhat.com>
1643 * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
1644 * catgets/open_catalog.c (__open_catalog): Likewise.
1646 * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
1647 from typo INITIAL_NUM_NANES.
1648 (create_archive): Update use.
1650 2002-08-08 Ulrich Drepper <drepper@redhat.com>
1652 * sysdeps/unix/sysv/linux/sigwait.c: New file.
1654 2002-08-08 Roland McGrath <roland@frob.com>
1656 * resolv/netdb.h: Don't declare h_errno as a plain global any more.
1658 2002-08-08 Jakub Jelinek <jakub@redhat.com>
1660 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
1661 else and undefine after including wcstol_l.c.
1662 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
1664 2002-08-08 Ulrich Drepper <drepper@redhat.com>
1666 * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
1668 2002-08-08 Alexandre Oliva <aoliva@redhat.com>
1670 * configure.in: Make the test for broken_alias_attribute stricter.
1672 2002-05-24 Robert Love <rml@tech9.net>
1674 * posix/Makefile (routines): Add sched_getaffinity and
1676 * posix/sched.h: Add declarations for sched_getaffinity and
1678 * sysdeps/generic/sched_getaffinity.c: New file.
1679 * sysdeps/generic/sched_setaffinity.c: New file.
1680 * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
1683 2002-08-06 Andreas Schwab <schwab@suse.de>
1685 * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
1687 2002-08-07 Ulrich Drepper <drepper@redhat.com>
1689 * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
1692 * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
1693 It is known to be defined.
1695 * include/string.h: Define index and rindex only if _ISOMAC is not
1698 * elf/rtld.c: Include <errno.h>.
1699 * sysdeps/generic/libc-tls.c: Likewise.
1701 2002-08-07 Roland McGrath <roland@redhat.com>
1703 * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
1705 (precsize_aton): Likewise.
1707 * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
1708 the static symbols added in the last change (doofus is me).
1710 * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
1711 loop to notice missing categories in a composite name.
1713 * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
1714 LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
1715 LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
1716 LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
1718 2002-08-07 Ulrich Drepper <drepper@redhat.com>
1720 * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
1722 2002-08-07 Roland McGrath <roland@redhat.com>
1724 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
1725 unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
1726 Reported by Jakub Jelinek <jakub@redhat.com>.
1728 2002-08-07 Jakub Jelinek <jakub@redhat.com>
1730 * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
1733 2002-08-06 Roland McGrath <roland@redhat.com>
1735 * include/getopt.h: Put private decls inside [_GETOPT_H].
1736 Use libc_hidden_proto for getopt_long, getopt_long_only.
1737 * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
1738 Add libc_hidden_def.
1740 * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
1741 Define as a macro for __dl_iterate_phdr.
1743 * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
1744 made static. Add __ name as a strong alias.
1745 (internal_endnetgrent): Likewise.
1746 (internal_getnetgrent_r): Likewise.
1748 * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
1750 * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
1751 * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
1752 all *_l functions with no __ prefix.
1753 * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
1754 * ctype/ctype_l.c: Likewise.
1755 * locale/nl_langinfo.c: Likewise.
1756 * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
1757 * stdlib/stdlib.h [__USE_GNU]: Likewise.
1758 * wcsmbs/wchar.h [__USE_GNU]: Likewise.
1759 * wctype/wctype.h [__USE_GNU]: Likewise.
1760 * string/strcoll_l.c (strcoll_l): Define as weak alias.
1761 * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
1762 * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
1763 * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
1764 * stdlib/strtod_l.c (strtod_l): Define as weak alias.
1765 * stdlib/strtof_l.c (strtof_l): Define as weak alias.
1766 * stdlib/strtold_l.c (strtold_l): Define as weak alias.
1767 * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
1768 (__wcscasecmp_l): Add libc_hidden_def.
1769 * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
1770 (__wcsncasecmp_l): Add libc_hidden_def.
1771 * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
1772 * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
1773 * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
1774 * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
1775 * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
1776 * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
1777 * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
1778 * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
1779 * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
1780 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
1781 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
1782 * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
1783 * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
1784 * wctype/wctype_l.c (wctype_l) Define as weak alias.
1786 2002-08-05 Roland McGrath <roland@redhat.com>
1788 * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
1789 netname2user, host2netname, user2netname, key_gendes.
1790 * sunrpc/netname.c: Add libc_hidden_def.
1791 * sunrpc/key_call.c: Likewise.
1793 * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
1795 * inet/getnameinfo.c: Add libc_hidden_def.
1796 * sysdeps/generic/getaddrinfo.c: Likewise.
1797 * sysdeps/posix/getaddrinfo.c: Likewise.
1799 * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
1800 * wcsmbs/wmemchr.c: Add libc_hidden_def.
1801 * wcsmbs/wmemset.c: Add libc_hidden_def.
1803 * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
1804 (index, rindex): Define as macros for strchr, strrchr.
1806 * string/envz.c (envz_strip): index -> strchr
1808 * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
1809 * sunrpc/rpc_prot.c: Add libc_hidden_def.
1811 * include/wchar.h: Use libc_hidden_proto for mbrtowc.
1812 * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
1814 * include/stdlib.h: Use libc_hidden_proto for wctomb.
1815 * stdlib/wctomb.c: Add libc_hidden_def.
1817 * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
1818 rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
1819 * resolv/herror.c: Likewise.
1820 * inet/rcmd.c: Add libc_hidden_def.
1821 * inet/ruserpass.c: Likewise.
1822 * inet/getnetgrent_r.c: Likewise.
1824 * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
1825 svc_unregister, remove *_internal decls. Use libc_hidden_proto
1826 for svcerr_auth, svcerr_noprog, svcerr_progvers.
1827 * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
1829 (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
1830 * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
1832 * sysdeps/posix/system.c (do_system): New function, guts broken out of
1834 (__libc_system): Call it, putting just the line == NULL test here.
1836 * include/libc-symbols.h (__hidden_proto): Add extern keywords so
1837 variables work right.
1839 * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
1840 * elf/dl-close.c (_dl_close): Likewise.
1842 * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
1843 in6addr_any, in6addr_loopback. Remove decls for
1844 bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
1845 * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
1846 * sunrpc/svc_tcp.c (svctcp_create): Likewise.
1847 * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
1848 * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
1849 * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
1850 * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
1852 * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
1854 * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
1856 * inet/ether_aton_r.c: Add libc_hidden_def.
1857 * inet/ether_ntoa_r.c: Likewise.
1859 * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
1861 * sunrpc/svc.c: Add libc_hidden_def.
1862 * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
1863 pmap_set, pmap_unset.
1864 * sunrpc/pmap_clnt.c: Add libc_hidden_def.
1865 * sunrpc/pm_getport.c: Likewise.
1866 * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
1867 * sunrpc/publickey.c: Add libc_hidden_def.
1869 2002-08-05 Ulrich Drepper <drepper@redhat.com>
1871 * elf/rtld.c (_dl_start): Don't use memset. Use same tricks as for
1872 the other memset call in this function.
1874 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
1875 at correct index. Clear BSS region now that memalign is used.
1877 2002-08-05 Roland McGrath <roland@redhat.com>
1879 * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
1880 * sysdeps/generic/uname.c: Add libc_hidden_def.
1881 * sysdeps/mach/hurd/uname.c: Likewise.
1883 2002-08-05 Jakub Jelinek <jakub@redhat.com>
1885 * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
1886 wcspbrk): Add libc_hidden_proto.
1887 * time/strftime.c (my_strftime): Add libc_hidden_def.
1888 (strftime): Remove libc_hidden_def.
1889 * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
1890 * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
1891 * wcsmbs/wcsspn.c (wcsspn): Likewise.
1892 * wcsmbs/wcscmp.c (wcscmp): Likewise.
1893 * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
1894 * wcsmbs/wcscoll.c (wcscoll): Likewise.
1896 * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
1897 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
1898 __rpc_thread_createerr): Add libc_hidden_proto.
1899 * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
1900 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
1901 __rpc_thread_createerr): Add libc_hidden_def.
1903 * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
1904 clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
1905 * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
1906 clnt_perror, clnt_sperror): Add libc_hidden_def.
1907 * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
1909 * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
1911 * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
1912 * sunrpc/des_soft.c (des_setparity): Likewise.
1914 * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
1915 Add libc_hidden_proto.
1916 * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
1917 Add libc_hidden_def.
1919 2002-08-05 Roland McGrath <roland@redhat.com>
1921 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
1922 `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
1923 * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
1924 * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
1925 dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
1926 old data, abandoning the original memory allocated by rtld at startup,
1927 instead of calling realloc normally.
1929 2002-08-05 Ulrich Drepper <drepper@redhat.com>
1931 * po/fr.po: Update from translation team.
1933 2002-08-04 Roland McGrath <roland@redhat.com>
1935 * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
1936 then generate a dummy module under the given name, obeying the
1937 normal rules for the "caller" field.
1939 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
1940 actually iterate over the elements. Fix typo p_type -> p_vaddr.
1942 * include/pthread.h: Don't declare __pthread_initialize_minimal as
1943 weak here; we declare it weak or strong in the one place we use it.
1944 * sysdeps/generic/libc-start.c: ... which is here.
1945 Don't make the decl weak if [USE_TLS], since static programs need TLS
1946 setup even when single-threaded.
1948 * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
1950 * elf/Makefile (test-srcs): Add $(modules-names) to it.
1951 (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
1952 CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
1953 all these variables.
1955 2002-08-04 Ulrich Drepper <drepper@redhat.com>
1957 * include/stdio.h: Don't define macro magic to redirect function
1958 calls if _ISOMAC is defined.
1960 * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
1963 2002-08-04 Roland McGrath <roland@redhat.com>
1965 * stdlib/lrand48_r.c: Add libc_hidden_def.
1967 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
1968 TCB with __libc_memalign instead of mmap.
1969 (_dl_deallocate_tls): Free it with free instead of munmap.
1971 * Makerules (cpp-srcs-left): When setting this to run
1972 cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
1973 words. Combine the two loops into one on the concatenated list,
1974 including those as well as $(test-srcs).
1976 * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
1977 since we align here with optimally minimal waste anyway.
1978 (malloc): Just call that.
1980 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
1983 * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
1984 to compute memory location for l_tls_initimage.
1985 * elf/rtld.c (_dl_start): Likewise.
1986 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
1988 * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
1989 because the .d file is generated in the non-shared case and
1990 so fails to catch them otherwise.
1992 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
1993 split out of _dl_allocate_tls.
1994 (_dl_allocate_tls_init): Likewise.
1995 (_dl_allocate_tls): Call those.
1996 * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
1997 * elf/rtld.c (dl_main): Call them separately instead of calling
1998 _dl_allocate_tls. Delay _dl_allocate_tls_init until after relocation
1999 is finished, so that the initializer data has been relocated before we
2000 copy it into the main thread's TLS block.
2002 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
2003 loop conditions, prevented the last used module from being initialized.
2005 2002-08-04 Jakub Jelinek <jakub@redhat.com>
2007 * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
2008 if glob resp. globfree are not macros.
2009 * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
2010 * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
2011 Add libc_hidden_ver.
2012 * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
2014 * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
2015 instead of libc_hidden_weak.
2016 * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
2017 libc_hidden_ver instead of libc_hidden_def.
2018 * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
2019 libc_hidden_ver instead of libc_hidden_def.
2020 (wcstoll, wcstoq): Remove libc_hidden_weak.
2021 * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
2023 * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
2025 * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
2027 * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
2030 2002-08-04 Ulrich Drepper <drepper@redhat.com>
2032 * stdio-common/psignal.c: Declare _sys_siglist_internal. Use USEINT
2033 to access _sys_siglist.
2034 * string/strsignal.c: Likewise.
2035 * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
2036 * sysdeps/gnu/siglist.c: Likewise.
2037 * sysdeps/unix/siglist.c: Likewise.
2038 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
2040 * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
2042 * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
2044 * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
2046 * intl/bindtextdom.c: Use _nl_default_dirname_internal.
2048 * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
2049 * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
2050 * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
2052 * include/time.h: Add libc_hidden_proto for __gmtime_r.
2053 * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
2055 * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
2056 and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
2057 and __gconv_get_cache respectively.
2058 * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
2059 defined static. Change all users.
2060 (__gconv_get_cache): New function.
2061 * iconv/gconv_db.c (__gconv_get_modules_db): New function.
2062 (__gconv_get_alias_db): New function.
2063 * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
2064 (__conv_modules_db): Likewise.
2065 Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
2066 and __gconv_get_alias_db.
2067 * iconv/iconv_prog.c: Use the new functions instead of accessing the
2070 * include/stdlib.h: Add prototype and libc_hidden_proto for
2072 * sysdeps/generic/morecore.c: Include <stdlib.h>.
2074 * malloc/obstack.c: Remove fputs macro.
2076 * malloc/mtrace.c: Remove fopen macro.
2078 2002-08-04 Jakub Jelinek <jakub@redhat.com>
2080 * manual/debug.texi: Fix spelling to programmatically.
2081 Reported by <hayastan132@hotmail.com>.
2083 2002-08-04 Ulrich Drepper <drepper@redhat.com>
2085 * include/libio.h: Add libc_hidden_proto for __uflow.
2086 * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
2087 fgetpos to _IO_* names.
2088 Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
2089 fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
2090 * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
2091 putwc_unlocked, vswscanf.
2092 * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
2093 * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
2094 * libio/fseek.c: Likewise.
2095 * libio/fmemopen.c: Include "libioP.h". Call _IO_fopencookie and
2097 * libio/genops.c (__uflow): Add libc_hidden_def.
2098 * libio/iofflush_u.c (fflush_unlocked): Likewise.
2099 * libio/iofgets_u.c (fgets_unlocked): Likewise.
2100 * libio/iofputs_u.c (fputs_unlocked): Likewise.
2101 * libio/iofputws_u.c (fputws_unlocked): Likewise.
2102 * libio/iofread_u.c (fread_unlocked): Likewise.
2103 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2104 * libio/iovswscanf.c (vswscanf): Likewise.
2105 * libio/putwc_u.c (putwc_unlocked): Likewise.
2106 * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
2107 * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
2108 * malloc/mtrace.c: Likewise.
2110 * sunrpc/clnt_perr.c: Remove fputs macro.
2111 * sunrpc/svc_simple.c: Likewise.
2112 * sunrpc/svc_tcp.c: Likewise.
2113 * sunrpc/svc_udp.c: Likewise.
2114 * sunrpc/xdr_rec.c: Likewise.
2115 * sunrpc/xdr_ref.c: Likewise.
2117 * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
2118 iconv_prog, linereader, and charmap-dir.
2119 * locale/Makefile: Likewise for locale and charmap-dir.
2120 * malloc/Makefile: Likewise for memusagestat.
2121 * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
2122 * sunrpc/Makefile: Likewise for rpc_main.
2123 * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
2124 * timezone/Makefile: Likewise for zic.
2126 * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
2128 * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
2129 * elf/dl-close.c (_dl_close): Add libc_hidden_def.
2130 * elf/dl-open.c (_dl_open): Add libc_hidden_def.
2131 * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
2134 * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
2136 * libio/genops.c (__underflow): Add libc_hidden_def.
2137 * libio/wgenops.c (__wuflow): Likewise.
2138 (__wunderflow): Likewise.
2140 * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
2141 * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
2143 * include/stdio.h: Add libc_hidden_proto for __vfscanf.
2144 * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
2146 * include/string.h: Add libc_hidden_proto for __strverscmp.
2147 * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
2149 * include/unistd.h: Add libc_hidden_proto for __sysconf.
2150 * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
2151 * sysdeps/posix/sysconf.c: Likewise.
2152 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
2153 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
2155 * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
2156 __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
2157 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
2158 __iswxdigit_l, __towlower_l, __towupper_l.
2159 * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
2160 * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
2162 * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
2163 * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
2164 * sysdeps/mach/hurd/xmknod.c: Likewise.
2165 * sysdeps/unix/xmknod.c: Likewise.
2166 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
2167 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
2168 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
2170 * sunrpc/svc.c: Add missing INTUSE for _authenticate.
2172 2002-08-03 Roland McGrath <roland@redhat.com>
2174 * include/sys/resource.h: Use libc_hidden_proto for getpriority,
2176 * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
2177 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
2178 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
2179 * sysdeps/mach/hurd/setpriority.c: Likewise.
2180 * sysdeps/mach/hurd/getpriority.c: Likewise.
2181 * sysdeps/generic/setpriority.c: Likewise.
2182 * sysdeps/generic/getpriority.c: Likewise.
2184 * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
2185 * malloc/mcheck.c: Add libc_hidden_def.
2187 * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
2188 * misc/hsearch_r.c: Add libc_hidden_def.
2190 * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
2191 * posix/fnmatch.c: Add libc_hidden_weak.
2193 * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
2194 execl, execle, execlp, execvp, getpid, getsid.
2195 * sysdeps/generic/alarm.c: Add libc_hidden_def.
2196 * sysdeps/unix/alarm.c: Likewise.
2197 * posix/confstr.c: Likewise.
2198 * posix/execvp.c: Likewise.
2199 * posix/execlp.c: Likewise.
2200 * posix/execle.c: Likewise.
2201 * posix/execl.c: Likewise.
2202 * sysdeps/generic/getsid.c: Likewise.
2203 * sysdeps/mach/hurd/getsid.c: Likewise.
2204 * sysdeps/generic/getpid.c: Add libc_hidden_weak.
2205 * sysdeps/mach/hurd/getpid.c: Likewise.
2207 * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
2208 qecvt_r, qfcvt_r, lrand48_r.
2209 * misc/efgcvt_r.c: Add libc_hidden_def.
2211 * include/wordexp.h: Use libc_hidden_proto for wordfree.
2212 * sysdeps/generic/wordexp.c: Add libc_hidden_def.
2214 * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
2215 * locale/nl_langinfo.c: Add libc_hidden_def.
2217 * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
2218 * sysdeps/generic/glob.c: Add libc_hidden_def.
2219 * sysdeps/generic/glob64.c: Likewise.
2220 * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
2222 * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
2224 * elf/Makefile (CFLAGS-vismod2.c): New variable.
2226 * locale/setlocale.c (_nl_current_names): Variable moved ...
2227 * locale/localename.c (_nl_current_names): ... here, new file.
2228 Make it global, with attribute_hidden.
2229 * locale/localeinfo.h: Declare it.
2230 * locale/Makefile (aux): Add localename.
2231 * locale/localename.c (__current_locale_name): New function.
2232 * include/locale.h (__current_locale_name): Declare it.
2233 * intl/dcigettext.c (guess_category_value): Use that instead of
2236 * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
2237 [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
2238 [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
2239 * locale/newlocale.c: Add alias to __ name.
2240 * locale/duplocale.c: Likewise.
2241 * locale/freelocale.c: Likewise.
2242 * locale/uselocale.c: New file.
2243 * locale/Makefile (routines): Add it.
2244 * locale/Versions (libc: GLIBC_2.3): New set.
2245 Add newlocale, duplocale, freelocale, uselocale.
2246 (libc: GLIBC_PRIVATE): Add __uselocale.
2248 * locale/localeinfo.h [SHARED]
2249 (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
2250 (_NL_CURRENT_DATA): Define using that.
2251 (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
2252 (_NL_CURRENT_DEFINE): Define to empty.
2253 [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
2254 conditionalized on this.
2255 * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
2256 taking initializer of _nl_C_locobj.
2257 [SHARED] (_nl_global_locale): New variable, using that initializer.
2258 (_nl_C_locobj): Use new macro for initialzier.
2259 * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
2260 [! SHARED] (CATEGORY_USED): New macro.
2261 [SHARED] (CATEGORY_USED, _nl_C): New macros.
2262 (setdata, setlocale): Use that macro instead of examining _nl_current.
2263 (setdata): Set the slot in _nl_global_locale.
2264 Conditionalize setting of _nl_current on [! SHARED].
2265 * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
2266 declaration as an extern.
2267 * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
2269 * include/locale.h: Use libc_hidden_proto for setlocale.
2270 * locale/setlocale.c: Add libc_hidden_def.
2272 * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
2274 * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
2275 * misc/hsearch_r.c: Add libc_hidden_def.
2276 * misc/lsearch.c: Likewise.
2278 * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
2280 * misc/getttyent.c: Add libc_hidden_def.
2282 * include/mcheck.h: Use libc_hidden_proto for mcheck.
2283 * malloc/mcheck.c: Add libc_hidden_def.
2285 * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
2286 * include/argz.h: Use libc_hidden_proto for argz_delete.
2287 * string/argz-delete.c: Add libc_hidden_def.
2288 * string/envz.c: Likewise. Use <envz.h>, not "envz.h".
2290 * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
2291 HIDDEN_JUMPTARGET for _exit.
2292 * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
2293 * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
2294 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
2295 * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
2297 * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
2298 [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
2299 [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
2300 * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
2302 * include/stdlib.h: Use libc_hidden_proto for abort,
2303 __strtof_internal, __strtod_internal, __strtold_internal,
2304 __strtol_internal, __strtoll_internal, __strtoul_internal,
2305 __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
2306 __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
2307 __strtoul_l_internal, __strtoull_l_internal.
2308 * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
2309 __wcstod_internal, __wcstold_internal, __wcstol_internal,
2310 __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
2311 ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
2312 ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
2314 * sysdeps/generic/abort.c: Add libc_hidden_def.
2315 * stdlib/strtod.c: Likewise.
2316 * sysdeps/generic/strtol.c: Likewise.
2317 * sysdeps/wordsize-64/strtol.c: Likewise.
2318 * sysdeps/wordsize-64/wcstol.c: Likewise.
2319 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
2321 * include/stdlib.h: Use libc_hidden_proto for qsort.
2322 * stdlib/msort.c: Add libc_hidden_def.
2324 * include/utime.h: Use libc_hidden_proto for utime.
2325 * sysdeps/generic/utime.c: Add libc_hidden_def.
2326 * sysdeps/unix/utime.c: Likewise.
2328 * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
2329 * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
2330 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2331 * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
2332 * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
2334 * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
2335 sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
2336 and __libc_current_sigrtmax.
2337 * signal/sigismem.c: Add libc_hidden_def.
2338 * signal/sigfillset.c: Likewise.
2339 * signal/sigempty.c: Likewise.
2340 * sysdeps/generic/sigpause.c (__sigpause): Likewise.
2341 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2342 * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
2343 * sysdeps/posix/raise.c: Likewise.
2344 * sysdeps/generic/raise.c: Likewise.
2346 2002-08-03 Ulrich Drepper <drepper@redhat.com>
2348 * include/string.h: Use libc_hidden_proto for __stpcpy.
2349 * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
2350 * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
2351 * sysdeps/generic/stpcpy.c: Likewise.
2352 * sysdeps/i386/stpcpy.S: Likewise.
2353 * sysdeps/i386/i586/stpcpy.S: Likewise.
2354 * sysdeps/powerpc/stpcpy.S: Likewise.
2355 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
2356 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
2358 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
2359 __strncasecmp_l, __strdup, __strndup, __strerror_r.
2360 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
2362 * string/strdup.c (__strdup): Likewise.
2363 * string/strndup.c (__strndup): Likewise.
2364 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
2365 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
2367 2002-08-03 Jakub Jelinek <jakub@redhat.com>
2369 * include/libio.h: New file.
2370 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
2371 * libio/iolibio.h: #include <libio.h>, not "libio.h".
2372 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
2373 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
2374 * sysdeps/unix/common/syscalls.list: Likewise.
2375 * sysdeps/unix/inet/syscalls.list: Likewise.
2376 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
2377 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
2378 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2379 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2380 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2381 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2382 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2383 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2384 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2385 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
2386 * sysdeps/unix/syscalls.list: Likewise.
2388 2002-08-03 Jakub Jelinek <jakub@redhat.com>
2389 Ulrich Drepper <drepper@redhat.com>
2391 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
2392 the arguments is big enough to cause an overflow.
2394 2002-08-03 Ulrich Drepper <drepper@redhat.com>
2396 * assert/assert.c: Use hidden_def not INTDEF.
2398 2002-08-03 Jakub Jelinek <jakub@redhat.com>
2400 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
2403 2002-08-03 Roland McGrath <roland@redhat.com>
2405 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
2406 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
2408 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
2409 * misc/syslog.c: Add libc_hidden_def.
2410 * misc/err.c: Likewise.
2411 * stdlib/exit.c: Likewise.
2412 * stdlib/bsearch.c: Likewise.
2413 * sysdeps/generic/getenv.c: Likewise.
2415 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
2417 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
2418 libc_hidden_weak for every system call symbol defined.
2420 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
2421 timelocal, localtime, strftime.
2422 * time/asctime.c: Add libc_hidden_def.
2423 * time/mktime.c: Likewise.
2424 * time/localtime.c: Likewise.
2425 * time/strftime.c: Likewise.
2426 * time/strptime.c: Likewise.
2427 * sysdeps/generic/time.c: Likewise.
2428 * sysdeps/unix/time.c: Likewise.
2429 * sysdeps/unix/sysv/i386/time.S: Likewise.
2430 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
2432 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
2433 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
2434 * resolv/inet_ntop.c: Likewise.
2435 * resolv/inet_pton.c: Likewise.
2436 * inet/inet_mkadr.c: Add libc_hidden_def.
2437 * inet/inet_netof.c: Likewise.
2438 * resolv/inet_addr.c: Likewise.
2440 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
2441 clauses from conditionals for now. Will have to be fixed later
2442 for older compilers.
2444 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
2446 2002-08-02 Ulrich Drepper <drepper@redhat.com>
2448 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
2449 broken alias attribute handling.
2450 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
2452 2002-08-02 Roland McGrath <roland@frob.com>
2454 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
2455 since it sets the variables we use in a -D switch.
2457 2002-08-02 Roland McGrath <roland@redhat.com>
2459 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
2460 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
2461 matches long int, not int.
2463 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
2464 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
2465 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2466 * wctype/wctrans.c (wctrans): Likewise.
2467 * wctype/wctype.c (__wctype): Likewise.
2468 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
2470 2002-08-02 Ulrich Drepper <drepper@redhat.com>
2472 * assert/assert.c (__assert_fail): Fix typo in comment.
2474 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
2475 * sunrpc/rpc_thread.c: Define it without static.
2476 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
2478 2002-08-02 Jakub Jelinek <jakub@redhat.com>
2480 * assert/assert.c (__assert_fail): Remove undef.
2481 Replace INTDEF with libc_hidden_def.
2482 * assert/__assert.c (__assert): Remove INTUSE.
2483 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
2485 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
2486 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
2487 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
2488 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
2489 libm_hiden_ver): Define.
2490 * include/assert.h (__assert_fail_internal): Remove.
2491 (__assert_fail): Add prototype. Add hidden_proto.
2492 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
2494 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
2495 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
2496 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
2497 Add libc_hidden_proto.
2498 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
2499 __fcntl): Add libc_hidden_proto. Remove macros.
2500 (__open_internal, __fcntl_internal): Remove.
2501 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
2502 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
2503 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
2505 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
2507 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
2508 Add libc_hidden_def.
2509 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
2510 * sysdeps/generic/open.c (__open): Remove undef.
2511 Add libc_hidden_def. Remove INTDEF.
2512 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
2513 Add libc_hidden_def.
2514 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
2515 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
2516 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
2517 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
2518 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
2519 (__libc_fcntl): Add libc_hidden_def.
2520 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
2521 (__open): Remove INTDEF2. Add libc_hidden_weak.
2522 (__libc_open): Add libc_hidden_def.
2523 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
2524 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
2525 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
2526 Add libc_hidden_def.
2527 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
2528 Add libc_hidden_def.
2529 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
2531 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
2532 (__libc_fcntl): Add libc_hidden_def.
2533 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
2534 __getpgid_internal, __chown_internal): Remove.
2535 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
2536 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
2538 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
2539 __getpid_internal, __open_internal, __write_internal): Remove.
2540 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
2541 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
2542 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
2543 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
2544 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
2545 Replace INTDEF with libc_hidden_def.
2546 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
2547 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
2548 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
2549 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
2550 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
2551 Add libc_hidden_proto.
2552 * include/sys/poll.h (__poll): Add libc_hidden_proto.
2553 * include/sys/select.h (__select): Likewise.
2554 * include/sys/socket.h (__send): Likewise.
2555 * include/sys/statfs.h (__statfs): Likewise.
2556 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
2557 __getpid, __getpgid, __setpgid, __close, __read, __write,
2558 __getpagesize, __sbrk): Likewise.
2559 (__chown_internal, __dup2_internal, __getpid_internal,
2560 __getpgid_internal, __close_internal, __write_internal,
2561 __getpagesize_internal): Remove.
2562 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
2564 * include/printf.h (__printf_fp): Add libc_hidden_proto.
2565 * include/sched.h (__sched_setscheduler): Likewise.
2566 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
2567 * include/stdlib.h (__secure_getenv): Likewise.
2568 * include/signal.h (__sigaction, __sigsuspend): Likewise.
2569 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
2570 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
2571 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
2572 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
2573 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
2574 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
2575 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
2576 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
2577 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
2578 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
2579 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
2580 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
2581 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
2582 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
2583 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
2584 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
2585 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
2586 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
2587 * libio/genops.c (__overflow): Add libc_hidden_def.
2588 * libio/iovdprintf.c: Remove libio.h include.
2589 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
2590 libc_hidden_weak): Define to nothing if not defined.
2591 (__overflow, __woverflow): Add libc_hidden_proto.
2592 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
2593 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
2594 (DB_LOOKUP_FCT): Add libc_hidden_proto.
2595 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
2596 (DB_LOOKUP_FCT): Add libc_hidden_proto.
2597 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
2598 and libc_hidden_def.
2599 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
2600 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
2601 (__getpgid): Add libc_hidden_proto.
2602 (__bsd_getpgrp): Remove INTUSE.
2603 * resolv/res_init.c (__res_ninit, __res_randomid): Add
2605 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
2606 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
2607 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
2608 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
2609 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
2610 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
2611 __rpc_thread_createerr): Add libc_hidden_def.
2612 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
2614 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
2615 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
2616 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
2617 * sysdeps/generic/chown.c (__chown): Likewise.
2618 * sysdeps/generic/close.c (__close): Likewise.
2619 * sysdeps/generic/dup2.c (__dup2): Likewise.
2620 * sysdeps/generic/pipe.c (__pipe): Likewise.
2621 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
2622 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
2623 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
2624 * sysdeps/generic/read.c (__libc_read): Likewise.
2625 (__read): Add libc_hidden_weak.
2626 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
2627 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
2628 * sysdeps/generic/select.c (__select): Likewise.
2629 * sysdeps/generic/send.c (__send): Likewise.
2630 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
2631 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
2632 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
2633 * sysdeps/generic/statfs.c (__statfs): Likewise.
2634 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
2635 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
2636 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
2637 Remove undef and INTDEF.
2638 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
2639 * sysdeps/generic/getpid.c (__getpid): Likewise.
2640 * sysdeps/generic/write.c (__libc_write): Likewise.
2641 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
2642 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
2643 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
2644 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
2645 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
2646 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
2647 Remove undef and INTDEF.
2648 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
2649 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
2650 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
2651 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
2652 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
2653 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
2654 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
2655 (__pipe): Add libc_hidden_def.
2656 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
2658 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
2659 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
2660 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
2661 (__read): Add libc_hidden_weak.
2662 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
2663 (__libc_pwrite64): Add libc_hidden_def.
2664 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
2665 * sysdeps/mach/hurd/select.c (__select): Likewise.
2666 * sysdeps/mach/hurd/send.c (__send): Likewise.
2667 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
2668 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
2669 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
2670 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
2671 * sysdeps/posix/dup2.c: Likewise.
2672 Remove undef and INTDEF.
2673 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
2674 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
2675 (__pwrite64): Add libc_hidden_weak.
2676 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
2677 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
2678 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
2679 * sysdeps/standalone/close.c (__close): Likewise.
2680 * sysdeps/standalone/write.c (__libc_write): Likewise.
2681 (__write): Add libc_hidden_weak.
2682 * sysdeps/standalone/read.c (__read): Likewise.
2683 (__libc_read): Add libc_hidden_def.
2684 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
2685 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
2686 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
2687 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
2688 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
2689 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
2690 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
2691 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
2692 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
2693 __GI___sigaction): Add.
2694 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
2695 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
2696 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
2697 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
2698 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
2699 __GI___setpgid): Add.
2700 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
2701 Remove undef and INTDEF.
2702 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
2703 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
2704 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
2705 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
2706 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
2707 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
2708 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
2709 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
2710 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
2711 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
2712 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
2713 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
2714 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
2715 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
2716 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
2717 __GI___statfs, __GI___send): Add.
2718 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
2719 libc_hidden_ver resp. libc_hidden_def.
2720 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
2722 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
2723 Likewise. Remove undef and INTDEF.
2724 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
2725 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
2726 __GI___statfs, __GI___send): Add.
2727 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
2729 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
2731 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
2732 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
2733 libc_hidden_ver resp. libc_hidden_def.
2734 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
2736 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
2737 Add libc_hidden_weak.
2738 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
2739 Add libc_hidden_def.
2740 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
2741 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
2743 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
2744 resp. libc_hidden_def.
2745 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
2747 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
2749 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
2750 Likewise. Remove undef.
2751 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
2753 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
2754 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
2756 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
2758 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
2759 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
2760 Likewise. Remove undef and INTDEF.
2761 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
2763 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
2765 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
2767 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
2768 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
2769 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
2771 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
2772 Add libc_hidden_def.
2773 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
2774 __GI___statfs): Add.
2775 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
2777 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
2778 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
2779 Remove undef and INTDEF.
2780 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
2781 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
2783 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
2784 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
2786 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
2788 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
2789 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
2790 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
2792 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
2793 libc_hidden_def. Remove undef and INTDEF.
2794 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
2795 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
2797 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
2798 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
2799 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
2800 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
2801 Remove undef and INTDEF.
2802 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
2803 broken visibility attribute handling.
2804 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
2806 2002-08-02 Ulrich Drepper <drepper@redhat.com>
2808 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
2809 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
2811 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
2814 2002-06-29 Todd Fries <todd@openbsd.org>
2816 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
2818 2002-08-02 Jakub Jelinek <jakub@redhat.com>
2820 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
2822 2002-07-30 Roland McGrath <roland@redhat.com>
2824 * resolv/resolv.h (_res): Define macro unconditionally.
2825 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
2826 * include/resolv.h: ... here.
2827 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
2828 as a __thread variable.
2829 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
2830 a __thread variable instead of a global.
2831 * resolv/res_data.c [_LIBC]: Don't #undef _res.
2833 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
2836 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
2838 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
2839 decls of memset and memcpy.
2841 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
2842 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
2844 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
2846 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
2847 (__libc_tsd_define): Define using __thread.
2849 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
2850 (__rpc_thread_variables): Use __libc_tsd_get.
2851 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
2852 __rpc_thread_variables, which might allocate what we're about to free.
2854 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
2855 thread-local variable.
2856 * resolv/netdb.h (h_errno): Define macro unconditionally.
2857 [_LIBC] (__set_h_errno): Macro moved to ...
2858 * include/netdb.h: ... here.
2859 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
2860 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
2861 [! _LIBC_REENTRANT]: #undef h_errno here.
2863 * include/errno.h: Protect from multiple inclusion.
2865 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
2866 before defining them, since Linux's <linux/posix_types.h> might have
2869 2002-08-02 Jakub Jelinek <jakub@redhat.com>
2871 * malloc/malloc.c (public_cALLOc): Check for overflow on
2873 * sunrpc/xdr_array.c (xdr_array): Likewise.
2874 * sunrpc/rpc/types.h (mem_free): Add comment.
2875 Patch by Solar Designer <solar@openwall.com>.
2877 2002-08-02 Jakub Jelinek <jakub@redhat.com>
2879 * sysdeps/unix/sysv/linux/kernel-features.h
2880 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
2882 2002-08-01 Roland McGrath <roland@redhat.com>
2884 * libio/fileops.c (_IO_file_sync_mmap): New function.
2885 (_IO_file_jumps_mmap): Use it.
2886 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
2887 repeat the stat check and resize the mapped buffer as necessary.
2889 2002-07-31 Roland McGrath <roland@redhat.com>
2891 * libio/fileops.c (decide_maybe_mmap): New static function.
2892 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
2893 mmap the file contents. Then switch the jump tables to the mmap
2894 tables if it worked, or the vanilla file tables if not.
2895 (_IO_file_underflow_maybe_mmap): New function.
2896 (_IO_file_seekoff_maybe_mmap): New function.
2897 (_IO_file_xsgetn_maybe_mmap): New function.
2898 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
2899 * libio/libioP.h: Declare those.
2900 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
2901 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
2902 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
2903 If the stream is read-only, set its jump tables to those new ones.
2904 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
2905 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
2906 We need the tables set before _IO_file_attach.
2908 * libio/tst-mmap-eofsync.c: New file.
2909 * libio/tst-mmap-fflushsync.c: New file.
2910 * libio/bug-mmap-fflush.c: New file.
2911 * libio/tst-mmap2-eofsync.c: New file.
2912 * libio/Makefile (tests): Add them.
2914 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
2915 _IO_file_underflow_mmap fails, it already set the appropriate bit.
2917 2002-07-31 Jeff Bailey <jbailey@gnu.org>
2919 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
2920 Declarations moved to <bits/sys_errlist.h>. Include that file.
2921 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
2922 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
2923 declare sys_errlist and sys_nerr.
2924 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
2925 provide declarations.
2927 2002-07-31 Roland McGrath <roland@redhat.com>
2929 * elf/rtld.c (dl_main): Fix typo in error message.
2931 2002-07-31 Roland McGrath <roland@frob.com>
2933 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
2934 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
2935 sysdeps/mach/hurd/dl-sysdep.c change.
2937 2002-07-28 Ulrich Drepper <drepper@redhat.com>
2939 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
2940 -r`/build/include for kernel headers.
2942 * po/fi.po: New file.
2944 2002-07-15 Alexandre Oliva <aoliva@redhat.com>
2946 * configure.in (static_nss): Set to `yes' if --disable-shared.
2948 2002-07-23 Bruno Haible <bruno@clisp.org>
2950 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
2953 2002-07-25 Jakub Jelinek <jakub@redhat.com>
2955 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
2956 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
2959 2002-07-25 Jakub Jelinek <jakub@redhat.com>
2961 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
2964 2002-07-21 Bruno Haible <bruno@clisp.org>
2966 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
2967 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
2968 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
2969 trans_sysdep_tab_offset.
2970 (struct sysdep_segment): New type.
2971 (struct sysdep_string): New type.
2972 (SEGMENTS_END): New macro.
2973 * intl/gettextP.h (struct sysdep_string_desc): New type.
2974 (struct loaded_domain): New fields malloced, n_sysdep_strings,
2975 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
2976 orig_tab, trans_tab, hash_tab to const pointers because they point
2977 into read-only memory.
2978 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
2979 (PRI*): Define fallback values.
2980 (get_sysdep_segment_value): New function.
2981 (_nl_load_domain): Distinguish major and minor revision parts. Add
2982 support for minor revision 1 with system dependent strings.
2983 (_nl_unload_domain): Also free the 'malloced' field.
2984 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
2985 now done in loadmsgcat.c. Add support for system dependent strings.
2987 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
2989 * posix/bug-regex7.c: New file.
2990 * posix/bug-regex8.c: New file.
2991 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
2993 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
2995 * posix/bug-regex4.c (main): Fix typos.
2996 * posix/bug-regex6.c (main): Likewise.
2998 2002-07-27 Ulrich Drepper <drepper@redhat.com>
3000 * posix/bug-regex6.c (main): Fix warnings.
3002 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
3004 * iconv/iconv_prog.c (main): Improve error message for the cases
3005 where -t and/or -f parameter are missing.
3007 2002-07-10 Stepan Kasal <kasal@math.cas.cz>
3009 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
3010 (re_search): Likewise.
3011 (re_match_2): Likewise.
3012 (re_search_2): Likewise.
3013 (re_search_stub): New function.
3014 (re_search_2_stub): New function.
3015 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
3017 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
3019 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
3020 (re_string_eoi): Use STOP instead of LEN.
3021 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
3022 (re_string_construct): Likewise.
3023 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
3024 * posix/regexec.c (re_search_internal): Add a new argument STOP
3025 so that it can handle the argument STOP of re_search_2 and re_match_2
3027 (regexec): Adapt to new I/F of re_search_internal.
3028 (re_search_stub): Likewise.
3030 2002-07-25 Ulrich Drepper <drepper@redhat.com>
3032 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
3034 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
3036 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
3037 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
3040 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
3041 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
3042 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
3043 alias for adjtimex syscall.
3045 * elf/dl-minimal.c: Define __assert_fail_internal.
3046 * assert/assert.c: Likewise.
3047 * include/assert.h: Define __assert_file macro if !SHARED and not
3050 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
3052 * locale/Makefile: Likewise.
3053 * nscd/Makefile: Likewise.
3054 * catgets/Makefile: Likewise.
3056 2002-07-24 Ulrich Drepper <drepper@redhat.com>
3058 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
3059 compute current position.
3061 * stdio-common/tst-fseek.c (main): Improve error messages.
3063 * libio/tst-freopen.c (main): Remove unused variable.
3065 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
3066 succesful seek call. Simplify error checking.
3068 2002-07-25 Jakub Jelinek <jakub@redhat.com>
3070 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
3071 * sysdeps/ia64/fpu/libm_support.h: Likewise.
3073 2002-07-19 Roland McGrath <roland@frob.com>
3075 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
3076 __libc_enable_secure is set.
3078 2002-07-24 Roland McGrath <roland@frob.com>
3080 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
3081 This implementation supports only IPv4.
3082 * inet/ifaddrs.h: New file.
3083 * sysdeps/generic/ifaddrs.c: New file.
3084 * sysdeps/gnu/ifaddrs.c: New file.
3085 * inet/test-ifaddrs.c: New file.
3086 * inet/Makefile (routines): Add ifaddrs.
3087 (headers): Add ifaddrs.h here.
3088 (tests): Add test-ifaddrs.
3089 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
3091 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
3092 socket call to get an AF_INET socket, instead of using __opensock.
3093 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
3095 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
3096 if not -1 use it instead of calling __opensock.
3097 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
3098 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
3099 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
3101 * sysdeps/mach/hurd/ifreq.h: New file.
3102 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
3103 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
3104 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
3106 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
3107 which gets moved around. Calculate size of mmap'd buffer instead.
3109 2002-07-24 Philip Blundell <philb@gnu.org>
3111 * sysdeps/unix/arm/brk.S: Improve schedule.
3112 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
3113 efficient instruction.
3114 (__socket): Optimize return sequence.
3116 2002-07-24 Ulrich Drepper <drepper@redhat.com>
3118 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
3119 sockets on old kernels.
3121 2002-07-22 Philip Blundell <philb@gnu.org>
3123 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
3124 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
3127 2002-07-24 Ulrich Drepper <drepper@redhat.com>
3129 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
3130 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
3132 * locale/programs/locarchive.c (add_locale_to_archive): Correct
3133 test to detect duplicate locales.
3135 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
3136 position would be before beginning of file.
3137 (_IO_file_seekoff_mmap): Likewise.
3138 * libio/Makefile (tests): Add bug-fseek.
3139 * libio/bug-fseek.c: New file.
3141 * intl/explodename.c: Remove support for CEN-style locale variables.
3142 It was never used and shouldn't be since it's not portable.
3143 * intl/finddomain.c: Likewise.
3144 * intl/l10nflist.c: Likewise.
3145 * intl/loadinfo.h: Likewise.
3146 * locale/findlocale.c: Likewise.
3148 2002-07-24 Roland McGrath <roland@frob.com>
3150 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
3151 position, calculate it to take into account an active pushback buffer.
3153 * libio/Makefile (tests): Add bug-ungetc.
3154 * libio/bug-ungetc.c: New file.
3156 2002-07-23 Ulrich Drepper <drepper@redhat.com>
3158 * sysdeps/generic/libc-tls.c: New file.
3159 * csu/Makefile (routines): Add libc-tls.
3160 (static-only-routines): Add libc-tls.
3161 * elf/dl-support.c (_dl_phdr): New variable.
3162 (_dl_phnum): New variable.
3163 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
3164 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
3165 for !SHARED. First look through auxiliary vector. If TLS always
3166 call __pthread_initialize_minimal.
3168 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
3169 in mmap call is never zero.
3171 2002-07-23 Andreas Jaeger <aj@suse.de>
3173 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
3174 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3176 2002-07-22 Ulrich Drepper <drepper@redhat.com>
3178 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
3179 creation and removal of the temp file.
3181 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
3183 * test-skeleton.c (create_temp_file): New function.
3185 2002-07-22 Andreas Jaeger <aj@suse.de>
3187 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
3190 2002-07-21 Roland McGrath <roland@frob.com>
3192 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
3193 put -I../include before -I../stdlib so we get the right errno.h et al.
3194 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
3195 (CFLAGS-wcstof.c): Likewise.
3196 (CFLAGS-wcstold.c): Likewise.
3197 (CFLAGS-wcstod_l.c): Likewise.
3198 (CFLAGS-wcstof_l.c): Likewise.
3199 (CFLAGS-wcstold_l.c): Likewise.
3201 2002-07-19 Roland McGrath <roland@frob.com>
3203 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
3205 2002-07-20 Ulrich Drepper <drepper@redhat.com>
3207 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
3208 __ASSUME_AT_XID is defined.
3209 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
3211 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
3212 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
3214 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
3215 (CFLAGS-wcstof.c): Likewise.
3216 (CFLAGS-wcstold.c): Likewise.
3217 (CFLAGS-wcstod_l.c): Likewise.
3218 (CFLAGS-wcstof_l.c): Likewise.
3219 (CFLAGS-wcstold_l.c): Likewise.
3221 2002-07-18 Jakub Jelinek <jakub@redhat.com>
3223 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
3224 __priority_which_t): Always typedef to int for C++.
3226 2002-07-19 Ulrich Drepper <drepper@redhat.com>
3228 * configure.in: Add test for __thread support in compiler.
3229 * config.h.in: Add HAVE___THREAD.
3230 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
3231 * include/sys/errno.h: Moved to...
3232 * stdlib/sys/errno.h: ...here. New file.
3233 * stdlib/errno.h: New file. Moved from...
3234 * include/errno.h: ...here. Changed into an internal header defining
3235 libc-local things like __set_errno.
3236 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
3238 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
3239 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
3241 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
3243 (_dl_start_final): ...here. Add code to initialize tls elements from
3245 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
3246 if USE_TLS && HAVE___THREAD.
3247 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
3248 * sysdeps/mach/hurd/bits/errno.h: Likewise.
3249 * sysdeps/standalone/arm/bits/errno.h: Likewise.
3250 * sysdeps/standalone/bits/errno.h: Likewise.
3251 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
3252 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
3253 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
3254 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
3255 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
3256 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
3257 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
3258 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
3259 use GL(dl_rtld_map), use map parameter.
3260 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3261 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
3262 USE_TLS && HAVE___THREAD.
3263 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
3264 definitions. If USE_TLS && HAVE___THREAD store errooor value using
3266 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
3268 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
3269 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
3270 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
3271 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
3272 * sysdeps/unix/sysv/linux/readv.c: Likewise.
3273 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3275 2002-07-17 Ulrich Drepper <drepper@redhat.com>
3277 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
3278 MS_INVALIDATE values.
3280 2002-07-17 Andreas Schwab <schwab@suse.de>
3281 Ulrich Drepper <drepper@redhat.com>
3283 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
3284 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
3285 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3286 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3288 2002-07-01 H.J. Lu <hjl@gnu.org>
3290 * elf/circleload1.c (load_dso): Call "circlemod1" and check
3293 * elf/circlemod1.c (circlemod1): Return int.
3294 * elf/circlemod2.c (circlemod2): Likewise.
3295 * elf/circlemod2a.c (circlemod2): Likewise.
3296 * elf/circlemod3.c (circlemod3): Likewise.
3297 (circlemod3a): A new function.
3299 2002-07-16 Ulrich Drepper <drepper@redhat.com>
3301 * catgets/tst-catgets.c (main): Don't expect results for
3302 untranslated messages.
3304 * glibcbug.in: Fix little typo. Remove STDIO.
3306 * config.h.in: Fail if __FAST_MATH__ is defined.
3307 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
3308 (CPPFLAGS-test-idouble.c): Likewise.
3309 (CPPFLAGS-test-ildouble.c): Likewise.
3311 2002-07-15 Ulrich Drepper <drepper@redhat.com>
3313 * intl/tst-gettext.sh: Pass -f option to msgfmt.
3314 * intl/tst-gettext.c: Correctly handle untranslated messages in
3317 * po/de.po: Update from translation team.
3319 2002-07-02 H.J. Lu <hjl@gnu.org>
3321 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
3323 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
3325 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
3328 2002-07-15 Ulrich Drepper <drepper@redhat.com>
3330 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
3331 TLS fail if USE_TLS is not defined.
3333 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
3334 and adjust state for seek position. [PR libc/4070]
3335 * libio/Makefile (tests): Add bug-rewind.
3336 * libio/bug-rewind.c: New file.
3338 2002-07-12 Philip Blundell <philb@gnu.org>
3340 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
3341 (__backtrace): Use it.
3342 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
3344 2002-07-12 Philip Blundell <philb@gnu.org>
3346 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
3347 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
3348 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
3349 (elf_machine_rela): Remove unused variable.
3351 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
3352 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
3355 2002-07-12 Ulrich Drepper <drepper@redhat.com>
3357 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
3359 2002-07-14 Andreas Jaeger <aj@suse.de>
3361 * sysdeps/x86_64/bits/link.h: Add biarch support.
3363 2002-07-13 Andreas Jaeger <aj@suse.de>
3365 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
3366 Use correct indices.
3367 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
3369 2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3371 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
3372 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
3373 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
3374 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
3375 * sysdeps/s390/s390-32/bits/link.h: Remove.
3376 * sysdeps/s390/s390-64/bits/link.h: Remove.
3377 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
3378 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
3379 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
3380 * sysdeps/s390/bits/wordsize.h: New file.
3381 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
3383 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
3384 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
3385 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
3386 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
3387 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
3388 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
3389 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
3390 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
3391 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
3392 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
3393 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
3394 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
3396 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
3397 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
3398 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
3399 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
3400 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
3401 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
3402 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
3404 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
3405 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
3407 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
3408 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
3409 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
3411 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
3412 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
3413 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
3414 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
3415 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
3416 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
3417 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
3418 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
3420 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
3421 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
3422 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
3424 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
3425 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
3427 2002-07-11 Ulrich Drepper <drepper@redhat.com>
3429 * Versions.def (libc): Add GLIBC_2.3.
3430 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
3431 * stdlib/canonicalize.c: Add compatibility version for realpath
3432 and make new code available in GLIBC_2.3.
3434 2002-07-06 Bruno Haible <bruno@clisp.org>
3436 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
3438 2002-07-11 Ulrich Drepper <drepper@redhat.com>
3440 * resolv/res_hconf.c (_res_hconf_init): Move code into new
3441 function do_init. Use __libc_once.
3442 (do_init): New function.
3444 * iconvdata/iso8859-11.h: Removed.
3445 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
3446 (distribute): Remove iso8859-11.h.
3447 * iconvdata/tst-tables.sh: Add ISO-8859-11.
3449 * stdio-common/vfscanf.c (inchar): Restore errno from previous
3450 underflow operation if c == (W)EOF.
3452 2002-07-03 Jakub Jelinek <jakub@redhat.com>
3454 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
3455 non-zero, adjust exponent.
3456 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
3457 Remove NO_LONG_DOUBLE aliases.
3458 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
3459 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
3460 (__log1pl): Raise divide by zero and invalid exceptions when needed.
3461 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
3463 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
3464 Fix BITS_PER_MP_LIMB 32 extraction.
3465 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
3466 exceptions for qNaNs.
3467 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
3468 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
3469 Raise exceptions when needed. Don't recurse unnecessarily.
3470 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
3471 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
3472 exceptions for qNaNs.
3473 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
3474 to fix *quo return value sign.
3475 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
3477 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
3479 2002-07-01 Jakub Jelinek <jakub@redhat.com>
3481 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
3482 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
3485 2002-07-10 Ulrich Drepper <drepper@redhat.com>
3487 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
3490 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
3491 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
3493 * Versions.def (libthread_db): Add GLIBC_2.3.
3495 2002-07-09 Jakub Jelinek <jakub@redhat.com>
3497 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
3498 new stream if possible.
3499 * libio/freopen64.c (freopen64): Likewise.
3500 * libio/Makefile (tests): Add tst-freopen.
3501 * libio/tst-freopen.c: New file.
3503 2002-07-03 Jakub Jelinek <jakub@redhat.com>
3505 * libio/stdio.h (obstack_printf): Add format attribute.
3506 (obstack_vprintf): Likewise.
3508 2002-07-04 Jakub Jelinek <jakub@redhat.com>
3510 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
3511 resp. 16 bytes on 32-bit resp. 64-bit platforms.
3512 (re_charset_t, re_string_t): Reorder structure members for 64-bit
3515 2002-07-04 Jakub Jelinek <jakub@redhat.com>
3517 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
3518 (init_dfa): ...here.
3520 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
3522 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
3523 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
3524 nodes in parse trees.
3525 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
3526 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
3527 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
3528 nodes which can epsilon transit.
3529 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
3530 to IS_EPSILON_NODE macro.
3531 * posix/regexec.c (update_regs): New function to update registers
3532 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
3533 (proceed_next_node): Use the entities of the nodes to determine
3534 whether the node can transit to.
3535 (set_regs): Use update_regs function to update registers.
3537 2002-07-03 Jakub Jelinek <jakub@redhat.com>
3539 * posix/bug-regex4.c (main): Remove duplicate setlocale.
3540 * posix/bug-regex6.c: New file.
3541 * posix/Makefile (tests): Add bug-regex6.
3542 (bug-regex6-ENV): Set LOCPATH.
3544 2002-07-10 Ulrich Drepper <drepper@redhat.com>
3546 * Versions.def [libpthread]: Add GLIBC_2.2.6.
3547 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
3549 2002-07-06 Bruno Haible <bruno@clisp.org>
3551 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
3553 2002-07-06 Bruno Haible <bruno@clisp.org>
3555 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
3558 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
3560 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
3562 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
3564 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
3566 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
3567 * sysdeps/generic/bits/ustat.h: Likewise.
3569 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
3571 2002-07-08 Andreas Jaeger <aj@suse.de>
3573 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
3575 2002-07-08 Andreas Jaeger <aj@suse.de>
3577 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
3579 2002-07-06 Andreas Jaeger <aj@suse.de>
3581 * sysdeps/x86_64/fpu/bits/mathinline.h: New.
3582 * sysdeps/x86_64/fpu/s_copysign.S: New.
3583 * sysdeps/x86_64/fpu/s_copysignf.S: New.
3584 * sysdeps/x86_64/fpu/s_copysignl.S: New.
3585 * sysdeps/x86_64/fpu/s_finitel.S: New.
3586 * sysdeps/x86_64/fpu/s_fmax.S: New.
3587 * sysdeps/x86_64/fpu/s_fmaxf.S: New.
3588 * sysdeps/x86_64/fpu/s_fmaxl.S: New.
3589 * sysdeps/x86_64/fpu/s_fmin.S: New.
3590 * sysdeps/x86_64/fpu/s_fminf.S: New.
3591 * sysdeps/x86_64/fpu/s_fminl.S: New.
3593 2002-06-05 Brian Youmans <3diff@gnu.org>
3595 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
3596 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
3597 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
3598 * sysdeps/ia64/fpu/e_asin.S: Likewise.
3599 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
3600 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
3601 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
3602 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
3603 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
3604 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
3605 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
3606 * sysdeps/ia64/fpu/e_exp.S: Likewise.
3607 * sysdeps/ia64/fpu/e_expf.S: Likewise.
3608 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
3609 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
3610 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
3611 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
3612 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
3613 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
3614 * sysdeps/ia64/fpu/e_log.S: Likewise.
3615 * sysdeps/ia64/fpu/e_logf.S: Likewise.
3616 * sysdeps/ia64/fpu/e_pow.S: Likewise.
3617 * sysdeps/ia64/fpu/e_powf.S: Likewise.
3618 * sysdeps/ia64/fpu/e_powl.S: Likewise.
3619 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
3620 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
3621 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
3622 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
3623 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
3624 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
3625 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
3626 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
3627 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
3628 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
3629 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
3630 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
3631 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
3632 * sysdeps/ia64/fpu/libm_error.c: Likewise.
3633 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
3634 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
3635 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
3636 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
3637 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
3638 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
3639 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
3640 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
3641 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
3642 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
3643 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
3644 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
3645 * sysdeps/ia64/fpu/s_logb.S: Likewise.
3646 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
3647 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
3648 * sysdeps/ia64/fpu/s_modf.S: Likewise.
3649 * sysdeps/ia64/fpu/s_modff.S: Likewise.
3650 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
3651 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
3652 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
3653 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
3654 * sysdeps/ia64/fpu/s_rint.S: Likewise.
3655 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
3656 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
3657 * sysdeps/ia64/fpu/s_round.S: Likewise.
3658 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
3659 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
3660 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
3661 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
3662 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
3663 * sysdeps/ia64/fpu/s_significand.S: Likewise.
3664 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
3665 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
3666 * sysdeps/ia64/fpu/s_tan.S: Likewise.
3667 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
3668 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
3669 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
3670 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
3671 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
3672 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
3673 reflect IBM donation of math library to FSF
3674 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3675 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3676 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3677 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3678 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3679 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3680 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3681 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3682 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3683 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3684 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3685 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3686 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3687 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3688 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3689 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3690 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3691 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3692 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3693 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3694 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3695 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
3696 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
3697 * sysdeps/vax/__longjmp.c: Likewise.
3698 * sysdeps/vax/setjmp.c: Likewise.
3699 * libio/filedoalloc.c: Fixed BSD copying permission notice to
3700 remove advertising clause
3701 * sysdeps/vax/htonl.s: Likewise.
3702 * sysdeps/vax/htons.s: Likewise.
3703 * libio/wfiledoalloc.c: Likewise.
3704 * stdlib/random.c: Likewise.
3705 * stdlib/random_r.c: Likewise.
3706 * sysdeps/mach/sys/reboot.h: Likewise.
3707 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
3708 * sysdeps/posix/getaddrinfo.c: Likewise.
3709 * sunrpc/des_impl.c: Updated license permission notice to Lesser
3710 GPL and corrected pointer to point to the correct license.
3712 2002-07-04 Andreas Jaeger <aj@suse.de>
3714 * scripts/config.guess: New upstream version.
3715 * scripts/config.sub: Likewise.
3717 2002-07-02 Andreas Schwab <schwab@suse.de>
3719 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
3720 in parallel to bumping up the buffer pointer.
3722 2002-07-01 Jakub Jelinek <jakub@redhat.com>
3724 * math/libm-test.inc (acos_test): Add missing L suffix for
3726 (cpow_test): Likewise.
3727 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
3728 error for acos (0.0625).
3730 2002-06-30 Ulrich Drepper <drepper@redhat.com>
3732 * locale/iso-639.def: Add entry for Ganda.
3733 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
3735 (address_finish): Handle entries with two letter ISO 639 code.
3737 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
3738 directory if it existed before.
3739 * iconv/iconvconfig.c: Implement --prefix option.
3741 * math/libm-test.inc (cexp_test): Add missing L suffix for
3742 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
3743 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
3746 2002-05-29 H.J. Lu <hjl@gnu.org>
3748 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
3751 2002-05-28 H.J. Lu <hjl@gnu.org>
3753 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
3754 are not dlopened on the dependency list of a dlopened object.
3756 2002-06-30 Ulrich Drepper <drepper@redhat.com>
3758 * elf/dl-lookup.c (add_dependency): It is not necessary to add
3759 dependencies if they are created between objects which are created
3760 while processing RTLD_NOW for objects loaded as part of the same
3763 2002-06-14 H.J. Lu <hjl@gnu.org>
3765 * elf/Makefile (tests): Add circleload1.
3766 (modules-names): Add circlemod1, circlemod2, circlemod3,
3767 circlemod1a, circlemod2a and circlemod3a.
3768 ($(objpfx)circleload1): New target.
3769 ($(objpfx)circleload1.out): Likewise.
3770 ($(objpfx)circlemod1.so): Likewise.
3771 ($(objpfx)circlemod2.so): Likewise.
3772 ($(objpfx)circlemod1a.so): Likewise.
3773 ($(objpfx)circlemod2a.so): Likewise.
3774 * elf/circleload1.c: New file.
3775 * elf/circlemod1.c: New file.
3776 * elf/circlemod1a.c: New file.
3777 * elf/circlemod2.c: New file.
3778 * elf/circlemod2a.c: New file.
3779 * elf/circlemod3.c: New file.
3780 * elf/circlemod3a.c: New file.
3782 2002-06-18 Amos Waterland <apw@us.ibm.com>
3784 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
3786 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
3787 add check for fd not open for writing.
3789 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
3790 completed element(s) and do not suspend thread if so. Patch
3791 heavily modified by drepper.
3793 * rt/tst-aio7.c: New file. Regression test for problems which the
3794 above three changes fix.
3795 * rt/Makefile (tests): Add tst-aio7.
3797 2002-06-29 Ulrich Drepper <drepper@redhat.com>
3799 * rt/tst-aio6.c: Fix comment.
3801 * catgets/gencat.c (read_input_file): Handle more than one slash
3802 at end of line correctly [PR libc/3926].
3803 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
3805 * catgets/sample.SJIS: Add test case for above bug.
3806 * catgets/test-gencat.c: Adjust test code.
3807 * catgets/test-gencat.sh: Adjust expected results.
3809 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
3810 to skip relative relocations.
3811 Patch by Geoff Keating <geoffk@redhat.com>.
3813 2002-05-26 Bruno Haible <bruno@clisp.org>
3815 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
3816 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
3817 All callers changed.
3818 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
3819 STANDARD_FROM_LOOP_ERR_HANDLER.
3820 (utf8_internal_loop): Likewise.
3821 (ucs2_internal_loop): Likewise.
3822 (internal_ucs2_loop): Perform error handling like in
3823 STANDARD_FROM_LOOP_ERR_HANDLER.
3824 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
3825 in STANDARD_FROM_LOOP_ERR_HANDLER.
3826 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3828 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
3829 in STANDARD_FROM_LOOP_ERR_HANDLER.
3830 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3832 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
3833 in STANDARD_FROM_LOOP_ERR_HANDLER.
3834 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3836 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
3837 STANDARD_FROM_LOOP_ERR_HANDLER.
3838 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
3839 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
3840 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
3841 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
3842 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
3843 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
3844 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
3845 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
3846 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
3847 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
3848 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
3849 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
3850 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
3851 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
3852 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
3853 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
3854 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
3855 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
3856 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
3857 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
3858 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
3859 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
3860 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
3861 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
3862 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
3863 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
3864 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
3865 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
3866 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
3867 an error, still set result = __GCONV_ILLEGAL_INPUT.
3868 (BODY for TO_LOOP): Likewise.
3869 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
3870 STANDARD_FROM_LOOP_ERR_HANDLER.
3871 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3872 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
3873 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3875 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3876 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
3877 STANDARD_FROM_LOOP_ERR_HANDLER.
3878 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3879 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
3880 STANDARD_FROM_LOOP_ERR_HANDLER.
3881 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3882 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
3883 STANDARD_FROM_LOOP_ERR_HANDLER.
3884 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3885 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
3886 STANDARD_FROM_LOOP_ERR_HANDLER.
3887 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3888 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
3889 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3891 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3892 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
3893 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
3894 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
3896 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3898 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
3899 labels in assembler instructions.
3901 2002-06-25 Ulrich Drepper <drepper@redhat.com>
3903 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
3904 not enough content is available.
3905 * libio/tst-eof.c: New file.
3906 * libio/Makefile (tests): Add tst-eof.
3908 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
3910 * libio/tst-atime.c: New file.
3911 * libio/Makefile (tests): Add tst-atime.
3913 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
3914 handling of overly long words.
3916 2002-06-25 Andreas Jaeger <aj@suse.de>
3918 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
3919 to not use 32-bit pc relative relocations.
3920 (elf_machine_dynamic): Likewise.
3922 2002-06-21 Ulrich Drepper <drepper@redhat.com>
3924 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
3925 (__GETDENTS): Check for failed getdents64 syscall.
3926 * dirent/Makefile (tests): Add bug-readdir1.
3927 * dirent/bug-readdir1.c: New file.
3929 2002-06-17 Jakub Jelinek <jakub@redhat.com>
3931 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
3933 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
3934 code. Print TLS modid and offset for modules containing PT_TLS
3937 2002-06-09 Jakub Jelinek <jakub@redhat.com>
3939 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
3940 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
3941 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
3942 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
3944 2002-06-07 Jakub Jelinek <jakub@redhat.com>
3946 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
3947 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
3948 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
3949 * nss/getXXent_r.c (NEW, NEW1): Define.
3950 (NEW (REENTRANT_GETNAME)): Strong alias to
3951 INTERNAL (REENTRANT_GETNAME).
3952 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
3954 2002-06-21 Ulrich Drepper <drepper@redhat.com>
3956 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
3957 (_IO_file_jumps_mmap): Use it.
3958 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
3959 * libio/libioP.h: Remove _IO_wdefault_setbuf and
3960 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
3962 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
3963 (_IO_wfile_jumps_mmap): Don't use it anymore.
3964 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
3965 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
3966 _IO_wdefault_setbuf.
3967 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
3968 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
3969 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
3971 2002-06-05 Jakub Jelinek <jakub@redhat.com>
3973 * libio/Makefile (tests): Add tst-mmap-setvbuf.
3974 * libio/tst-mmap-setvbuf.c: New test.
3976 2002-06-21 Andreas Jaeger <aj@suse.de>
3978 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
3980 2002-06-18 Jakub Jelinek <jakub@redhat.com>
3982 * include/unistd.h (__fork_internal): Remove.
3983 (__fork): Don't define to __fork_internal.
3984 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
3985 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
3986 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
3987 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
3988 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
3990 2002-06-20 Ulrich Drepper <drepper@redhat.com>
3992 * po/hr.po: New file.
3994 2002-06-11 Wolfram Gloger <wg@malloc.de>
3996 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
3997 Reported by Michael Meissner <meissner@redhat.com>.
3999 2002-06-20 Ulrich Drepper <drepper@redhat.com>
4001 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
4002 Patch by Hans Boehm <hans_boehm@hp.com>.
4004 2002-06-20 Andreas Jaeger <aj@suse.de>
4006 * math/libm-test.inc: Use exact values as input parameters,
4007 compute output parameters with 36 digits for 128-bit long doubles.
4008 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
4009 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
4010 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
4012 2002-06-13 Stephen L Moshier <steve@moshier.net>
4014 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
4015 argument or result is subnormal.
4017 2002-06-19 Ulrich Drepper <drepper@redhat.com>
4019 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
4021 * sysdeps/i386/fpu/s_remquof.S: Likewise.
4022 * sysdeps/i386/fpu/s_remquol.S: Likewise.
4024 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
4026 2002-06-17 David Mosberger <davidm@hpl.hp.com>
4028 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
4029 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
4030 Reported by Peter A. Buhr.
4032 2002-06-15 Roland McGrath <roland@frob.com>
4034 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
4037 * sysdeps/mach/hurd/getcwd.c
4038 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
4040 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
4041 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
4043 * sysdeps/alpha/divrem.h: Use local label instead of global one for
4044 jump to local subroutine.
4046 2002-06-14 Roland McGrath <roland@frob.com>
4048 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
4049 * sysdeps/mach/hurd/Makeconfig: ... here.
4051 2002-06-13 Andreas Schwab <schwab@suse.de>
4053 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
4054 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
4055 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
4057 2002-06-13 Roland McGrath <roland@frob.com>
4059 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
4060 * hurd/hurdstartup.c (_hurd_startup): Likewise.
4061 Use intptr_t instead of int for argc in stack layout.
4062 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
4063 (_dl_init_first): Likewise.
4064 (_hurd_stack_setup): Likewise.
4065 (init1): Add a cast.
4066 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
4068 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
4069 argument to pfinet_siocgifconf RPC.
4071 2002-06-13 Andreas Schwab <schwab@suse.de>
4073 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
4076 2002-06-12 Roland McGrath <roland@frob.com>
4078 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
4080 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
4081 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
4083 2002-06-11 Roland McGrath <roland@frob.com>
4085 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
4086 file on [!RTLD_STAT64].
4087 * sysdeps/mach/hurd/fxstat64.c: Likewise.
4089 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
4090 (__fdopen): Use INTUSE.
4091 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
4093 * stdio-common/tmpfile64.c: File removed.
4094 * sysdeps/generic/tmpfile64.c: New file.
4095 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
4096 if not already defined.
4097 (tmpfile): Use it in place of __GT_FILE.
4099 * include/unistd.h: Declare __chown_internal.
4101 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
4102 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
4104 2002-06-09 Roland McGrath <roland@frob.com>
4106 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
4107 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
4108 value of HURD_INTERFACE_VERSION >= 20020609.
4109 * sysdeps/mach/hurd/configure: Regenerated.
4110 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
4111 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
4112 convert a struct stat64 into a struct stat and return 0 or -1
4113 with errno set to EOVERFLOW.
4114 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
4115 for struct statfs64 to struct statfs.
4116 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
4117 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
4118 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
4119 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
4120 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
4121 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
4122 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4123 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
4124 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
4125 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
4126 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
4127 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
4128 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
4129 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
4130 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
4131 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
4132 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
4133 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
4134 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
4135 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
4136 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
4137 Use struct stat64 for io_stat argument.
4138 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
4139 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
4141 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
4142 * hurd/fd-write.c (_hurd_fd_write): Likewise.
4143 * hurd/hurd/fd.h: Update decls.
4144 * sysdeps/mach/hurd/getcwd.c
4145 (_hurd_canonicalize_directory_name_internal): Use ino64_t
4146 and struct dirent64.
4147 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
4148 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
4149 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
4150 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
4152 2002-06-08 Roland McGrath <roland@frob.com>
4154 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
4155 instead of unsigned long int for __allocation and __size members.
4157 2002-06-09 Jakub Jelinek <jakub@redhat.com>
4159 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
4160 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
4161 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
4162 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
4164 2002-06-07 Roland McGrath <roland@frob.com>
4166 * sysdeps/mach/hurd/bits/environments.h: File removed.
4168 2002-06-07 Jakub Jelinek <jakub@redhat.com>
4170 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
4171 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
4172 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
4173 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
4174 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
4175 (sendfile64): Likewise.
4176 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
4177 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
4178 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
4180 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
4182 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
4185 2002-06-04 Bruno Haible <bruno@clisp.org>
4187 * sysdeps/cris/stackinfo.h: New file.
4189 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
4190 to an integer type before performing bit operations on it.
4192 2002-06-05 Roland McGrath <roland@frob.com>
4194 * sysdeps/generic/sendfile.c: Include <errno.h>.
4195 * sysdeps/generic/sendfile64.c: Likewise.
4197 * io/Makefile (routines): Add sendfile and sendfile64.
4198 (headers): Add sys/sendfile.h to the list.
4199 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
4200 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
4201 * io/sys/sendfile.h: ... here.
4202 * sysdeps/generic/sendfile.c: New file.
4203 * sysdeps/generic/sendfile64.c: New file.
4205 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
4206 Move sendfile, sendfile64 to ...
4207 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
4208 * sysdeps/mach/hurd/sendfile.c: New file.
4209 * sysdeps/mach/hurd/sendfile64.c: New file.
4211 * sysdeps/mach/nanosleep.c: New file.
4213 2002-06-04 Roland McGrath <roland@frob.com>
4215 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
4216 * sysdeps/alpha/elf/configure: New file (generated).
4218 2002-06-02 Roland McGrath <roland@frob.com>
4220 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
4222 2002-06-01 Roland McGrath <roland@frob.com>
4224 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
4225 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
4227 2002-05-19 Ulrich Drepper <drepper@redhat.com>
4229 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
4231 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
4232 Remove nstimes setting.
4233 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
4234 * resolv/res_send.c (res_nsend): Don't close unconditionally if
4235 there is mix of IPv6 and IPv4 nameservers.
4236 Use nsmap array to find free slots and preserve nameserver ordering.
4239 2002-05-30 Ulrich Drepper <drepper@redhat.com>
4241 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
4242 use this header with LFS.
4244 * po/sk.po: Update from translation team.
4246 2002-05-28 Andreas Schwab <schwab@suse.de>
4248 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
4249 message when finding object of wrong class.
4251 2002-05-28 Jakub Jelinek <jakub@redhat.com>
4253 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
4254 Patch by <radu@netsoft.ro>.
4256 2002-05-30 Ulrich Drepper <drepper@redhat.com>
4258 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
4260 * sysdeps/unix/sysv/linux/readahead.c: New file.
4261 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
4262 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
4263 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
4264 Add sendfile64 alias to sendfile syscall.
4265 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4266 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4267 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4268 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
4271 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
4272 special section for PIC register loading.
4273 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4275 * config.h.in: Define HAVE_HIDDEN.
4276 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
4278 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
4280 2002-05-28 Roland McGrath <roland@frob.com>
4282 * sysdeps/mach/alpha/setfpucw.c: New file.
4284 2002-05-26 Roland McGrath <roland@frob.com>
4286 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
4287 Use integer_t instead of int for IOC_VOID case.
4289 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
4291 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
4293 2002-05-26 Bruno Haible <bruno@clisp.org>
4295 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
4296 end of the ISO-8859-7 from idx table.
4298 2002-05-27 Ulrich Drepper <drepper@redhat.com>
4300 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
4302 2002-05-24 David S. Miller <davem@redhat.com>
4304 * string/bits/string2.h (memset): Do not try to optimize when
4305 not _STRING_ARCH_unaligned if GCC will do the right thing.
4307 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
4309 * posix/regex.c: Define `inline' as a macro into nothing for the
4310 compilers which lack the keyword.
4311 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
4312 for the compatibility of gawk.
4313 * posix/regcomp.c: Add fake implementation of isblank() for the
4314 environments which lack the function.
4315 Don't use free_charset() in case of non-i18n envs.
4316 (build_range_exp): Don't use i18n related code in case of non-i18n
4318 (build_collating_symbol): Likewise.
4319 (build_equiv_class): Likewise.
4320 (build_charclass): Likewise.
4321 (re_compile_fastmap_iter): Likewise.
4322 (parse_bracket_exp): Likewise.
4323 (build_word_op): Likewise.
4324 (regfree): Don't use free_charset() in case of non-i18n envs.
4325 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
4326 re_token_type_t in case of non-i18n envs.
4327 Don't define re_charset_t in case of non-i18n envs.
4328 Change the type of wcs of re_string_t from wchar_t to wint_t,
4329 since we store also WEOF.
4330 * posix/regex_internal.c: (re_string_realloc_buffers): Change
4331 the type of wcs of re_string_t from wchar_t to wint_t.
4332 (re_string_reconstruct): Likewise.
4333 (create_ci_newstate): Don't use i18n related code in case of
4335 (create_cd_newstate): Likewise.
4337 2002-05-24 Ulrich Drepper <drepper@redhat.com>
4339 * iconv/loop.c: Fix typo.
4341 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4343 * inet/ether_line.c (ether_line): Fix a typo causing only
4344 lower 4 bits of each ethernet address byte being assigned.
4345 Don't modify what line points to.
4346 * inet/tst-ether_aton.c (main): Add ether_line tests.
4348 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
4350 * manual/filesys.texi: Don't make readlink example leak memory
4351 when readlink fails.
4353 2002-05-20 Ulrich Drepper <drepper@redhat.com>
4355 * iconv/loop.c: Fix condition for defining unaligned loop. Add
4356 some more security checks.
4358 2002-05-17 David S. Miller <davem@redhat.com>
4360 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
4362 2002-05-16 David S. Miller <davem@redhat.com>
4364 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
4365 (elf_machine_dynamic): Use it to force PIC register to be loaded.
4366 (elf_machine_load_address): Likewise.
4367 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
4369 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
4370 is unaligned, do not forget to fully initialize %g1 magic value.
4372 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
4373 register definitions and provide 32-bit variants of structures
4374 during 64-bit builds.
4376 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
4377 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
4378 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
4379 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
4380 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
4381 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
4382 Do not clear implicit one bit here, it must be done post-rounding.
4383 Only pad to the left using left shift if value uses less than the
4384 available fractional bits.
4386 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4388 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
4389 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
4390 (shared-only-routines): Likewise.
4391 * sysdeps/powerpc/libgcc-compat.c: New file.
4392 * sysdeps/wordsize-32/cmpdi2.c: Removed.
4393 * sysdeps/wordsize-32/fixdfdi.c: Removed.
4394 * sysdeps/wordsize-32/fixsfdi.c: Removed.
4395 * sysdeps/wordsize-32/shdi3.c: Removed.
4397 2002-05-16 Bruno Haible <bruno@clisp.org>
4399 * MakeTAGS (libc.pot): Don't sort the output.
4400 * po/header.pot: Update to match xgettext 0.11 output.
4402 2002-05-16 Bruno Haible <bruno@clisp.org>
4404 * MakeTAGS (subdirs): Remove duplicates.
4406 2002-05-19 Ulrich Drepper <drepper@redhat.com>
4408 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
4409 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
4412 2002-05-19 Andreas Jaeger <aj@suse.de>
4414 * sysdeps/unix/sysv/linux/configure.in: Warn against an
4415 installation in /usr/local.
4417 2002-05-16 Bruno Haible <bruno@clisp.org>
4419 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
4420 string as argument of #error.
4422 2002-05-15 Ulrich Drepper <drepper@redhat.com>
4424 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
4425 don't define static. Remove old __realpath function. TC1 of
4426 POSIX 2001 will allow the second parameter to be NULL.
4427 * stdlib/test-canon.c: Comment out test for NULL as second
4428 parameter of realpath.
4430 * time/offtime.c (__offtime): Set errno if overflow is detected.
4432 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
4433 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
4436 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
4439 2002-05-15 Roland McGrath <roland@frob.com>
4441 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
4443 2002-05-12 Bruno Haible <bruno@clisp.org>
4445 * iconvdata/testdata/EUC-JISX0213: New file.
4446 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
4447 * iconvdata/testdata/SHIFT_JISX0213: New file.
4448 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
4449 * iconvdata/testdata/ISO-2022-JP-3: New file.
4450 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
4451 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
4452 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
4453 contains comments indicating precomposed characters.
4455 2002-04-21 Bruno Haible <bruno@clisp.org>
4457 * iconvdata/iso-2022-jp-3.c: New file.
4458 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
4459 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
4460 (LDFLAGS-ISO-2022-JP-3.so): New variable.
4461 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
4462 (distribute): Add iso-2022-jp-3.c.
4464 2002-05-12 Bruno Haible <bruno@clisp.org>
4466 * iconvdata/tst-table-to.c (main): Restore handling of
4467 transliterations, broken by last patch.
4469 2002-05-12 Bruno Haible <bruno@clisp.org>
4471 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
4473 2002-05-12 Bruno Haible <bruno@clisp.org>
4475 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
4476 when there is not enough room in the output buffer.
4477 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
4479 2002-04-20 Bruno Haible <bruno@clisp.org>
4481 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
4483 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
4484 Also make this macro work if FROM_DIRECTION evaluates to 0.
4485 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
4486 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
4487 of consume_incomplete.
4488 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
4489 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
4491 * iconvdata/cp1258.c: Likewise.
4492 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
4493 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
4495 * iconvdata/ibm933.c: Likewise.
4496 * iconvdata/ibm935.c: Likewise.
4497 * iconvdata/ibm937.c: Likewise.
4498 * iconvdata/ibm939.c: Likewise.
4499 * iconvdata/iso-2022-cn.c: Define
4500 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
4501 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
4502 * iconvdata/iso-2022-cn-ext.c: Likewise.
4503 * iconvdata/iso-2022-jp.c: Define
4504 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
4505 {MIN,MAX}_NEEDED_{FROM,TO}.
4506 * iconvdata/tcvn5712-1.c: Define
4507 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
4508 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
4509 * iconvdata/euc-jisx0213.c: Define
4510 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
4511 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
4512 * iconvdata/shift_jisx0213.c: Likewise.
4514 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4516 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
4517 shdi3, fixdfdi, fixsfdi in csu dir.
4518 (shared-only-routines): Likewise.
4519 * sysdeps/wordsize-32/cmpdi2.c: New file.
4520 * sysdeps/wordsize-32/shdi3.c: New file.
4521 * sysdeps/wordsize-32/fixdfdi.c: New file.
4522 * sysdeps/wordsize-32/fixsfdi.c: New file.
4523 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
4524 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
4525 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
4527 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
4528 Only use va_arg if the argument will be used [PR libc/3259].
4530 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
4532 * catgets/catgets.c (catopen): Free buffer if internal catalog
4535 2002-05-14 Ulrich Drepper <drepper@redhat.com>
4537 * debug/xtrace.sh: Make more robust. For realtime tracking use
4538 non-buffering methods.
4539 * debug/pcprofiledump.c: Implement -u option.
4540 Patch by Roger Luethi <rl@hellgate.ch>.
4542 2002-05-11 Jakub Jelinek <jakub@redhat.com>
4544 * include/netinet/in.h (bindresvport_internal): Add prototype.
4545 * include/rpc/auth.h (authunix_create_internal,
4546 authunix_create_default_internal, authnone_create_internal,
4547 authdes_pk_create_internal): Add prototypes.
4548 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
4549 clntudp_create_internal, clntudp_bufcreate_internal,
4550 clntunix_create_internal): Add prototypes.
4551 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
4552 svc_getreq_internal, svc_getreq_common_internal,
4553 svc_getreqset_internal, svc_getreq_poll_internal,
4554 svc_register_internal, svc_unregister_internal,
4555 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
4556 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
4557 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
4558 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
4559 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
4560 * inet/rcmd.c (rcmd_af): Use __listen.
4561 (rresvport_af): Use __bind.
4562 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
4563 authunix_create, authunix_create_default, authnone_create,
4564 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
4565 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
4566 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
4567 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
4568 _authenticate, add INTDEF after such function definitions.
4569 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
4570 __setsockopt, __getsockname instead of non-__ variants.
4571 * sunrpc/pmap_rmt.c: Likewise.
4572 * sunrpc/rtime.c: Likewise.
4573 * sunrpc/svc_udp.c: Likewise.
4574 * sunrpc/clnt_unix.c: Likewise.
4575 * sunrpc/svc_unix.c: Likewise.
4576 * sunrpc/bindrsvprt.c: Likewise.
4577 * sunrpc/svc_tcp.c: Likewise.
4578 * sunrpc/auth_none.c: Likewise.
4579 * sunrpc/clnt_raw.c: Likewise.
4580 * sunrpc/clnt_tcp.c: Likewise.
4581 * sunrpc/auth_unix.c: Likewise.
4582 * sunrpc/key_call.c: Likewise.
4583 * sunrpc/clnt_gen.c: Likewise.
4584 * sunrpc/pm_getmaps.c: Likewise.
4585 * sunrpc/clnt_simp.c: Likewise.
4586 * sunrpc/pmap_clnt.c: Likewise.
4587 * sunrpc/svc_run.c: Likewise.
4588 * sunrpc/svc.c: Likewise.
4589 * sunrpc/svc_simple.c: Likewise.
4590 * sunrpc/pm_getport.c: Likewise.
4591 * sunrpc/auth_des.c: Likewise.
4592 * sunrpc/svc_auth.c: Likewise.
4593 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
4594 __register_frame_info_table_bases, __deregister_frame_info_bases):
4596 (__register_frame_info_bases_internal,
4597 __register_frame_info_table_bases_internal,
4598 __deregister_frame_info_bases_internal): Add prototypes.
4599 (__register_frame_info, __register_frame): Use INTUSE in call to
4600 __register_frame_info_bases.
4601 (__register_frame_info_table): Similarly.
4602 (__deregister_frame_info, __deregister_frame): Similarly.
4603 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
4604 sendto as weak alias.
4605 * sysdeps/mach/hurd/sendto.c: Likewise.
4606 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
4607 recvfrom as weak alias.
4608 * sysdeps/mach/hurd/recvfrom.c: Likewise.
4609 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
4610 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
4611 recvmsg as weak alias.
4612 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
4613 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
4614 sendmsg as weak alias.
4615 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
4616 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
4617 setsockopt, add setsockopt as weak alias.
4618 * sysdeps/mach/hurd/setsockopt.c: Likewise.
4619 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
4621 * sysdeps/mach/hurd/bind.c: Likewise.
4622 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
4624 * sysdeps/mach/hurd/listen.c: Likewise.
4625 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
4626 getsockname, add getsockname as weak alias.
4627 * sysdeps/mach/hurd/getsockname.c: Likewise.
4628 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
4629 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
4630 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
4631 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
4632 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
4633 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
4635 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4636 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4637 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4638 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4639 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
4640 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
4641 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
4642 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
4643 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
4644 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
4645 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
4646 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
4648 2002-05-10 Jakub Jelinek <jakub@redhat.com>
4650 * locale/programs/localedef.h (show_archive_content): Add verbose
4652 * locale/programs/localedef.c (main): Adjust caller.
4653 * locale/programs/locarchive.c (struct nameent, struct dataent): New.
4654 (nameentcmp, dataentcmp): New functions.
4656 (show_archive_content): Print verbose listing with --list-archive -v.
4658 2002-05-14 Ulrich Drepper <drepper@redhat.com>
4660 * locale/programs/locarchive.c (open_archive): Take extra argument
4661 readonly. If true open file with O_RDONLY and don't create the
4662 archive if it doesn't exist.
4664 (close_archive): Don't do anything if fd element is -1.
4665 * locale/programs/localedef.h (open_archive): Adjust prototype.
4666 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
4669 * malloc/malloc.c (__posix_memalign): Correct check for size of
4670 alignment value [PR libc/3444].
4672 * include/stdio.h: Remove references to old stdio implementation.
4674 * libio/Makefile (bug-ungetwc2-ENV): Define.
4676 2002-05-13 Roland McGrath <roland@frob.com>
4678 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
4680 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
4682 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
4684 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
4685 Allocate three, not two, more than LEN when appending '/.'.
4686 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
4687 if NAME ends with '/.' if it is shorter than 2 chars.
4689 2002-05-12 Roland McGrath <roland@frob.com>
4691 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
4692 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
4694 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
4695 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
4697 2002-05-10 Jakub Jelinek <jakub@redhat.com>
4699 * sysdeps/ia64/Makefile: Remove extra endif.
4700 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
4702 2002-05-10 Andreas Schwab <schwab@suse.de>
4704 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
4706 2002-05-09 Andreas Jaeger <aj@suse.de>
4708 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
4709 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
4710 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
4712 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
4713 * sysdeps/wordsize-64/glob.c: ...here.
4714 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
4715 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
4716 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
4718 2002-05-08 Roland McGrath <roland@frob.com>
4720 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
4721 O_NOTRANS flag in "." lookup.
4723 2002-05-05 Ulrich Drepper <drepper@redhat.com>
4725 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
4727 2002-05-04 Ulrich Drepper <drepper@redhat.com>
4729 * locale/duplocale.c (__duplocale): Update special members only
4730 when allocation succeeded.
4732 2002-05-03 Roland McGrath <roland@frob.com>
4734 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
4735 we can only build libc.so.0.3(GLIBC_2.2.6) now.
4737 2002-05-02 Jakub Jelinek <jakub@redhat.com>
4739 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
4740 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
4741 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
4742 * sysdeps/ia64/ia64libgcc.S: New file.
4744 2002-05-02 Ulrich Drepper <drepper@redhat.com>
4746 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
4748 * malloc/memusage.c: Distinguish anonymous mmap.
4750 2002-05-01 Roland McGrath <roland@frob.com>
4752 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
4753 and use INTDEF on it.
4754 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
4756 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
4758 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
4760 2002-05-01 Ulrich Drepper <drepper@redhat.com>
4762 * malloc/memusage.c: Add support for tracking mmap & friends.
4763 * malloc/memusage.sh: Implement -m/--mmap option.
4765 2002-04-30 Jakub Jelinek <jakub@redhat.com>
4767 * locale/programs/locarchive.c (create_archive): Add archivefname
4768 argument, create fname from it.
4769 (enlarge_archive): Honour output_prefix.
4770 (open_archive): Likewise.
4772 2002-04-30 Jakub Jelinek <jakub@redhat.com>
4774 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
4775 too many stpcpy macros.
4777 2002-04-26 Bruno Haible <bruno@clisp.org>
4779 * locale/programs/ld-collate.c (collate_read): Cast first argument
4782 2002-04-26 Bruno Haible <bruno@clisp.org>
4784 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
4785 __dcngettext_internal): New declarations.
4786 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
4787 attribute declarations.
4789 2002-04-30 Roland McGrath <roland@frob.com>
4791 Removed old GNU stdio implementation; GNU libio is now the only option.
4792 * configure.in: Removed --enable-libio option and @stdio@ subst var.
4793 Define USE_IN_LIBIO unconditionally.
4794 * configure: Regenerated.
4795 * Makeconfig (stdio): Set to libio by default.
4796 * config.make.in (stdio): Variable removed.
4797 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
4798 * sysdeps/unix/sysv/linux/configure: Regenerated.
4799 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
4800 * sysdeps/mach/hurd/configure: Regenerated.
4801 * stdio/.cvsignore: File removed.
4802 * stdio/Makefile: File removed.
4803 * stdio/Versions: File removed.
4804 * stdio/__fbufsize.c: File removed.
4805 * stdio/__flbf.c: File removed.
4806 * stdio/__fpending.c: File removed.
4807 * stdio/__fpurge.c: File removed.
4808 * stdio/__freadable.c: File removed.
4809 * stdio/__freading.c: File removed.
4810 * stdio/__fsetlocking.c: File removed.
4811 * stdio/__fwritable.c: File removed.
4812 * stdio/__fwriting.c: File removed.
4813 * stdio/clearerr.c: File removed.
4814 * stdio/fclose.c: File removed.
4815 * stdio/fcloseall.c: File removed.
4816 * stdio/feof.c: File removed.
4817 * stdio/ferror.c: File removed.
4818 * stdio/fflush.c: File removed.
4819 * stdio/fgetc.c: File removed.
4820 * stdio/fgetpos.c: File removed.
4821 * stdio/fgets.c: File removed.
4822 * stdio/fileno.c: File removed.
4823 * stdio/fmemopen.c: File removed.
4824 * stdio/fopen.c: File removed.
4825 * stdio/fopncook.c: File removed.
4826 * stdio/fputc.c: File removed.
4827 * stdio/fputs.c: File removed.
4828 * stdio/fread.c: File removed.
4829 * stdio/freopen.c: File removed.
4830 * stdio/fseek.c: File removed.
4831 * stdio/fsetpos.c: File removed.
4832 * stdio/ftell.c: File removed.
4833 * stdio/fwrite.c: File removed.
4834 * stdio/getc.c: File removed.
4835 * stdio/getchar.c: File removed.
4836 * stdio/getdelim.c: File removed.
4837 * stdio/gets.c: File removed.
4838 * stdio/glue.c: File removed.
4839 * stdio/internals.c: File removed.
4840 * stdio/linewrap.c: File removed.
4841 * stdio/linewrap.h: File removed.
4842 * stdio/memstream.c: File removed.
4843 * stdio/newstream.c: File removed.
4844 * stdio/obstream.c: File removed.
4845 * stdio/putc.c: File removed.
4846 * stdio/putchar.c: File removed.
4847 * stdio/puts.c: File removed.
4848 * stdio/rewind.c: File removed.
4849 * stdio/setbuf.c: File removed.
4850 * stdio/setbuffer.c: File removed.
4851 * stdio/setlinebuf.c: File removed.
4852 * stdio/setvbuf.c: File removed.
4853 * stdio/stdio.h: File removed.
4854 * stdio/ungetc.c: File removed.
4855 * stdio/vasprintf.c: File removed.
4856 * stdio/vscanf.c: File removed.
4857 * stdio/vsnprintf.c: File removed.
4858 * stdio/vsprintf.c: File removed.
4859 * stdio/vsscanf.c: File removed.
4860 * sysdeps/generic/defs.c: File removed.
4861 * sysdeps/generic/fdopen.c: File removed.
4862 * sysdeps/generic/pipestream.c: File removed.
4863 * sysdeps/generic/stdio_init.c: File removed.
4864 * sysdeps/generic/sysd-stdio.c: File removed.
4865 * sysdeps/generic/vdprintf.c: File removed.
4866 * sysdeps/mach/hurd/defs.c: File removed.
4867 * sysdeps/mach/hurd/fdopen.c: File removed.
4868 * sysdeps/mach/hurd/pipestream.c: File removed.
4869 * sysdeps/mach/hurd/stdio_init.c: File removed.
4870 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
4871 * sysdeps/mach/hurd/vdprintf.c: File removed.
4872 * sysdeps/posix/defs.c: File removed.
4873 * sysdeps/posix/fdopen.c: File removed.
4874 * sysdeps/posix/pipestream.c: File removed.
4875 * sysdeps/posix/stdio_init.c: File removed.
4876 * sysdeps/posix/vdprintf.c: File removed.
4877 * sysdeps/unix/pipestream.c: File removed.
4878 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
4879 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
4880 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
4882 2002-04-29 Roland McGrath <roland@frob.com>
4884 * include/libc-symbols.h (link_warning): Use `unused' attribute.
4886 2002-04-28 Ulrich Drepper <drepper@redhat.com>
4888 * sysdeps/generic/tls.h: Describe what must be defined.
4890 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
4891 glob_in_dir [PR libc/3385].
4892 * posix/globtest.sh: Add test case.
4894 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
4897 2002-04-27 Ulrich Drepper <drepper@redhat.com>
4899 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
4900 _internal symbol handling.
4901 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4903 2002-04-26 Ulrich Drepper <drepper@redhat.com>
4905 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
4906 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
4908 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
4910 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
4911 not _LIBC and RE_ENABLE_I18N.
4912 (build_range_exp): Implement for not _LIBC.
4913 (build_collating_symbol): Likewise.
4914 (parse_bracket_exp): Unify redundant error handlings.
4915 Don't erase mbcset for non matching list in multibyte envs.
4916 (build_word_op): Add '_' to matching list for \w operator.
4917 * posix/regex_internal.c (re_string_construct): Invoke
4918 build_upper_buffer in case of not RE_ENABLE_I18N.
4919 (re_string_reconstruct): Don't touch cur_state in case of not
4921 * posix/regex_internal.h (attribute_hidden): New macro in case of
4923 (re_charset_t): Define range_starts/ends in case of not _LIBC.
4924 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
4926 (transit_state_mb): Likewise.
4927 (check_node_accept_bytes): Implement the code evaluating range
4928 expression in case of not _LIBC.
4929 (find_collation_sequence_value): Hide in case of not _LIBC.
4931 2002-04-26 Jakub Jelinek <jakub@redhat.com>
4933 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
4935 (__old_semctl, __new_semctl): Only use va_arg if the argument will
4938 2002-04-26 Ulrich Drepper <drepper@redhat.com>
4940 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
4942 * sysdeps/ia64/strncpy.S: Fix recovery code.
4943 Patch by David Mosberger <davidm@hpl.hp.com>.
4945 2002-04-24 Ulrich Drepper <drepper@redhat.com>
4947 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
4950 2002-04-14 Bruno Haible <bruno@clisp.org>
4952 * posix/regex.c (re_max_failures): Add back symbol for binary
4955 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
4957 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
4958 of buffer building functions.
4959 * posix/regex_internal.c (re_string_allocate): New function.
4960 (re_string_realloc_buffers): New function.
4961 (re_string_skip_chars): New function.
4962 (re_string_reconstruct): New function.
4963 (re_string_construct): Adapt it to new interface of buffer building
4965 (re_string_construct_common): Likewise.
4966 (build_wcs_buffer): Likewise.
4967 (build_wcs_upper_buffer): Likewise.
4968 (build_upper_buffer): Likewise.
4969 (re_string_translate_buffer): Likewise.
4970 (re_string_context_at): Adapt it to variable length buffers.
4971 * posix/regex_internal.h (re_string_t): Add new fields to handle
4972 variable length buffers.
4973 (re_match_context_t): Likewise.
4974 * posix/regexec.c (re_search_internal): Adapt it to new interface
4975 of re_string_t and re_match_context_t.
4976 (acquire_init_state_context): Likewise.
4977 (check_matching): Likewise.
4978 (check_halt_state_context): Likewise.
4979 (proceed_next_node): Likewise.
4980 (set_regs): Likewise.
4981 (sift_states_backward): Likewise.
4982 (clean_state_log_if_need): Likewise.
4983 (sift_states_iter_mb): Likewise.
4984 (sift_states_iter_bkref): Likewise.
4985 (add_epsilon_backreference): Likewise.
4986 (transit_state): Likewise.
4987 (transit_state_sb): Likewise.
4988 (transit_state_mb): Likewise.
4989 (transit_state_bkref): Likewise.
4990 (transit_state_bkref_loop): Likewise.
4991 (check_node_accept): Likewise.
4992 (match_ctx_init): Likewise.
4993 (extend_buffers): New function.
4995 2002-04-21 Bruno Haible <bruno@clisp.org>
4997 * iconvdata/tst-table.sh: For the second check, use the truncated
4998 GB18030 charmap table, like for the first check.
5000 2002-04-24 Ulrich Drepper <drepper@redhat.com>
5002 * elf/dl-load.c (open_verify): Correct __lseek parameters.
5003 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
5005 2002-04-23 H.J. Lu <hjl@gnu.org>
5007 * include/math.h (isfinite): Fix a typo.
5009 2002-04-24 Ulrich Drepper <drepper@redhat.com>
5011 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
5012 which is created by the test suite.
5014 2002-04-20 Bruno Haible <bruno@clisp.org>
5016 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
5017 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
5019 2002-04-20 Bruno Haible <bruno@clisp.org>
5021 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
5022 to avoid gcc warning.
5024 2002-04-20 Bruno Haible <bruno@clisp.org>
5026 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
5027 of data->__statep->__count.
5029 2002-04-20 Bruno Haible <bruno@clisp.org>
5031 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
5033 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
5035 2002-04-24 Roland McGrath <roland@frob.com>
5037 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
5038 use END macro instead of our own .end directive.
5039 Use `callsys' insn mnemonic instead of `call_pal'.
5041 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
5043 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
5044 macro; we need this for Hurd.
5046 Log entry was missing for 2002/03/24 commit of rev 1.8,
5047 goes with 2002-03-17 changes.
5048 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
5049 (sysdep_routines): Append ioperm here.
5050 (sysdep_headers): Append sys/io.h here.
5052 2002-04-23 Roland McGrath <roland@frob.com>
5054 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
5055 * sysdeps/mach/hurd/sendto.c: Likewise.
5056 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
5057 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
5058 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
5060 2002-04-22 Roland McGrath <roland@frob.com>
5062 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
5063 failure from i386_io_perm_* RPCs to ENOSYS.
5065 2002-04-22 Andreas Jaeger <aj@suse.de>
5067 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
5069 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
5071 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
5072 register instead of destroying %rbx.
5074 2002-04-21 Ulrich Drepper <drepper@redhat.com>
5076 * string/string.h: Declare strerror_r also for XPG6.
5078 2002-04-19 Roland McGrath <roland@frob.com>
5080 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
5082 2002-04-20 Ulrich Drepper <drepper@redhat.com>
5084 * Makefile: Add handling of xtests and xcheck targets.
5085 * MakeTAGS: Likewise.
5086 * Makeconfig: Likewise.
5087 * Makerules: Likewise.
5089 * manual/Makefile: Likewise.
5090 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
5091 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
5093 2002-04-11 Zack Weinberg <zack@codesourcery.com>
5095 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
5097 * sunrpc/auth_none.c: Include bits/libc-lock.h.
5098 Delete #ifdef _RPC_THREAD_SAFE_ block.
5099 (authnone_private): Make a struct, not a pointer to struct.
5100 (authnone_private_guard): New once-control variable.
5101 (authnone_create_once): New function, split out of
5102 authnone_create. No need to allocate memory.
5103 (authnone_create): Just call authnone_create_once via
5104 __libc_once, then return &authnone_private->no_client.
5105 (authnone_marshal): Access private data via CLIENT argument,
5106 not authnone_private pointer.
5107 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
5108 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
5111 2002-04-12 H.J. Lu <hjl@gnu.org>
5113 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
5115 2002-04-18 Bruno Haible <bruno@clisp.org>
5117 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
5118 FROM_DIRECTION): Make the FROM direction stateless.
5119 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
5120 FROM_DIRECTION): Likewise.
5122 2002-04-15 Bruno Haible <bruno@clisp.org>
5124 * iconvdata/JISX0213.TXT: New file.
5125 * iconvdata/jisx0213.h: New file.
5126 * iconvdata/jisx0213.c: New file.
5127 * iconvdata/euc-jisx0213.c: New file.
5128 * iconvdata/shift_jisx0213.c: New file.
5129 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
5130 * iconvdata/EUC-JISX0213.precomposed: New file.
5131 * iconvdata/SHIFT_JISX0213.precomposed: New file.
5132 * iconvdata/SHIFT_JISX0213.irreversible: New file.
5133 * iconvdata/tst-table-to.c (main): Make it work for encodings for
5134 which the "to" direction is stateful.
5135 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
5136 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
5138 (libJISX0213-routines): New variable.
5139 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
5140 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
5141 (LDFLAGS-libJISX0213.so): New variable.
5142 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
5143 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
5144 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
5146 2002-04-15 Bruno Haible <bruno@clisp.org>
5148 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
5149 uint32_t. Update to Unicode 3.2.
5150 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
5151 (BODY for TO_LOOP): Handle the ASCII range specially.
5152 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
5153 * iconvdata/testdata/BIG5HKSCS: Remove a character.
5154 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
5156 2002-04-15 Bruno Haible <bruno@clisp.org>
5158 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
5159 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
5161 2002-04-15 Bruno Haible <bruno@clisp.org>
5163 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
5164 (ucs4_to_cns11643): Update.
5165 * iconvdata/cns11643.c: Update to Unicode 3.2.
5166 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
5167 __cns11643_from_ucs4p2_tab): Regenerated.
5168 (__cns11643_from_ucs4p2c_tab): New array.
5169 * iconvdata/cvs11643l1.c: Update comments.
5170 * iconvdata/EUC-TW.irreversible: Remove two entries.
5172 2002-04-15 Bruno Haible <bruno@clisp.org>
5174 * locale/C-translit.h.in: Update to Unicode 3.2.
5175 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
5176 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
5178 2002-04-15 Bruno Haible <bruno@clisp.org>
5180 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
5181 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
5183 2002-04-15 Bruno Haible <bruno@clisp.org>
5185 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
5186 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
5187 always one byte, not 0 bytes in some cases and 2 bytes in others.
5189 * iconvdata/tst-table-from.c (main): Correct the usage message.
5191 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
5193 * posix/regcomp.c (parse_expression): Fix incorrect error code.
5194 (parse_dup_op): Fix error handling like "a{}".
5195 (parse_bracket_exp): Add error handling.
5196 (fetch_number): Add error handling for "a{<very_large_number>}".
5198 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
5200 * posix/regcomp.c (parse_bracket_symbol): Add error handling
5201 in case that the symbol name is too long.
5202 (build_charclass): Handle [:lower:]/[:uppper:] correctly
5203 in case of REG_ICASE.
5205 2002-04-19 Andreas Jaeger <aj@suse.de>
5207 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
5208 <hartvige@mips.com>.
5210 2002-04-15 H.J. Lu <hjl@gnu.org>
5212 * include/math.h (__finitel_internal): Declare only if
5213 __NO_LONG_DOUBLE_MATH is not defined.
5214 (__isinfl_internal): Likewise.
5215 (__isnanl_internal): Likewise.
5217 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
5218 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5219 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5220 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5221 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5222 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5223 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5225 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
5228 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
5229 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
5231 2002-04-15 Bruno Haible <bruno@clisp.org>
5233 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
5234 (BODY for TO_LOOP): Likewise.
5235 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
5236 * iconvdata/tst-table.sh: Add support for encodings which contain
5237 precomposed Unicode characters, known to the iconv converter in both
5238 directions but not listed in the charmap.
5239 * iconvdata/IBM856.irreversible: New file.
5240 * iconvdata/IBM922.irreversible: New file.
5241 * iconvdata/IBM1132.irreversible: New file.
5242 * iconvdata/IBM1133.irreversible: New file.
5243 * iconvdata/IBM1160.irreversible: New file.
5244 * iconvdata/IBM1161.irreversible: New file.
5245 * iconvdata/IBM1163.irreversible: New file.
5246 * iconvdata/IBM1164.irreversible: New file.
5247 * iconvdata/ARMSCII-8.irreversible: New file.
5248 * iconvdata/TCVN5712-1.precomposed: New file.
5249 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
5250 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
5251 ARMSCII-8, TCVN5712-1.
5252 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
5253 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
5254 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
5255 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
5257 2002-04-17 Jakub Jelinek <jakub@redhat.com>
5259 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
5260 for EVENING69. Include offsets in TZ environment variable.
5262 2002-04-18 Ulrich Drepper <drepper@redhat.com>
5264 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
5265 avoid compiler warnings.
5267 * locale/programs/localedef.c (main): Always call
5268 construct_output_path.
5270 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
5272 * locale/programs/locfile.c (to_archive): New variable. To collect
5273 data which has to be added to the locale archive.
5274 (write_all_categories): Take new third parameter with locale name.
5275 Unless no_archive flag set add new locale data to the archive
5276 (write_locale_data): Unless no-archive flag set store generated data
5277 in to_archive data structure instead of generation output file.
5278 Add new parameter with locale category index.
5279 * locale/programs/locfile.h: Add new parameters in declaractions of
5280 write_all_categories and write_locale_data.
5281 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
5282 --add-to-archive, and --delete-from-archive options. Pass extra
5283 parameter to write_all_categories.
5284 * locale/programs/localedef.h: Add prototypes for functions in
5286 * locale/locarchive.h: New file.
5287 * locale/programs/locarchive.c: New file.
5288 * locale/Makefile (distribute): Add programs/locarchive.c and
5290 (localedef-modules): Add md5 and locarchive.
5291 Add vpath to crypt subdir for md5.c.
5293 * locale/programs/ld-address.c: Pass locale category ID as new second
5294 parameter to write_locale_data.
5295 * locale/programs/ld-collate.c: Likewise.
5296 * locale/programs/ld-ctype.c: Likewise.
5297 * locale/programs/ld-identification.c: Likewise.
5298 * locale/programs/ld-measurement.c: Likewise.
5299 * locale/programs/ld-messages.c: Likewise.
5300 * locale/programs/ld-monetary.c: Likewise.
5301 * locale/programs/ld-name.c: Likewise.
5302 * locale/programs/ld-numeric.c: Likewise.
5303 * locale/programs/ld-paper.c: Likewise.
5304 * locale/programs/ld-telephone.c: Likewise.
5305 * locale/programs/ld-time.c: Likewise.
5307 * locale/simple-hash.c: Move compute_hashval function from here...
5308 * locale/hashval.h: ...to here. New file.
5309 * locale/simple-hash.h: Add prototype for compute_hashval.
5311 * include/libintl.h: Minor cleanups.
5313 2002-04-16 Ulrich Drepper <drepper@redhat.com>
5315 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
5317 2002-04-15 Ulrich Drepper <drepper@redhat.com>
5319 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
5321 2002-04-14 Bruno Haible <bruno@clisp.org>
5323 * locale/programs/charmap.c (charmap_read): Don't access result if
5326 2002-02-17 Andreas Schwab <schwab@suse.de>
5328 * elf/reldep7.c: New file.
5329 * elf/reldep7mod1.c: New file.
5330 * elf/reldep7mod2.c: New file.
5331 * elf/Makefile: Add rules to build and run reldep7.
5333 2002-04-14 Jakub Jelinek <jakub@redhat.com>
5335 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
5336 the end of the function. Pass original flags to recursive call if
5337 add_dependency failed.
5338 (_dl_lookup_versioned_symbol): Likewise.
5340 2002-04-13 Jakub Jelinek <jakub@redhat.com>
5342 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
5343 early, but check whether it overflowed afterwards.
5344 * time/tst-mktime.c (main): Add new tests.
5346 2002-04-14 Ulrich Drepper <drepper@redhat.com>
5348 * debug/xtrace.sh: Fix program name in help message.
5349 Patch by Roger Luethi <rl@hellgate.ch>.
5351 * include/sys/stat.h: Add prototypes for __lxstat_internal and
5352 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
5354 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
5355 * sysdeps/mach/hurd/lxstat.c: Likewise.
5356 * sysdeps/unix/common/lxstat.c: Likewise.
5357 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
5358 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
5359 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5360 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
5361 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
5362 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
5363 * sysdeps/mach/hurd/lxstat64.c: Likewise.
5364 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
5365 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5367 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
5368 prototypes. Add __mbrlen and __mbrtowc macros.
5369 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
5370 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
5372 * include/unistd.h: Add prototype for __write_internal and add
5373 __libc_write macro is SHARED.
5374 * sysdeps/generic/write.c: Use INTDEF for __write.
5375 * sysdeps/mach/hurd/write.c: Likewise.
5376 * sysdeps/unix/sysv/aix/write.c: Likewise.
5377 * sysdeps/unix/syscalls.list: Add __libc_write alias.
5379 * assert/assert.c: Replace STR_N_SIZE with something usable in
5381 * assert/assert-perr.c: Likewise.
5383 * include/sys/socket.h: Declare __libc_sa_len_internal and define
5384 SA_LEN macro to use it if not NOT_IN_libc.
5385 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
5387 * include/fcntl.h: Declare __open_internal and define __open and
5388 __libc_open macros if not NOT_IN_libc.
5389 * sysdeps/generic/open.c: Use INTDEF for __open.
5390 * sysdeps/mach/hurd/open.c: Likewise.
5391 * sysdeps/unix/sysv/aix/open.c: Likewise.
5392 * sysdeps/unix/syscalls.list: Add __open_internal alias.
5394 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
5397 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
5398 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
5399 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
5400 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
5402 * include/wctype.h: Declare __iswalpha_l_internal,
5403 __iswdigit_l_internal, __iswspace_l_internal,
5404 __iswxdigit_l_internal, and __iswctype_internal. Define
5405 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
5406 __iswxdigit_l macros if not NOT_IN_libc.
5407 * wctype/iswctype.c: Use INTDEF for __iswctype.
5408 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
5410 * include/math.h: Declare __isinf_internal, __isinfl_internal,
5411 __isnan_internal, and __isnanl_internal.
5412 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
5413 __isnan, and __isnanl.
5414 * stdio-common/printf_size.c: Likewise.
5415 * sysdeps/generic/printf_fphex.c: Likewise.
5416 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
5417 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
5418 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
5419 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
5420 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
5421 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5422 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
5423 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
5424 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
5425 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
5426 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
5427 * sysdeps/m68k/s_isinfl.c: Likewise.
5428 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
5429 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
5431 * include/sys/time.h: Declare __gettimeofday_internal and define
5432 __gettimeofday macro if not NOT_IN_libc.
5433 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
5434 * sysdeps/mach/gettimeofday.c: Likewise.
5435 * sysdeps/posix/gettimeofday.c: Likewise.
5436 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
5437 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
5438 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
5439 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
5441 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
5442 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
5443 Remove __lstat and __fstat inline functions.
5444 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
5445 * sysdeps/mach/hurd/fxstat.c: Likewise.
5446 * sysdeps/unix/fxstat.c: Likewise.
5447 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
5448 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
5449 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5450 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
5451 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
5452 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
5453 * sysdeps/mach/hurd/fxstat64.c: Likewise.
5454 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
5455 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
5457 * include/unistd.h: Declare __getpid_internal and define
5458 __getpid macro if not NOT_IN_libc.
5459 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
5460 * sysdeps/generic/getpid.c: Likewise.
5461 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
5462 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
5464 * include/unistd.h: Declare __getpgid_internal and define
5465 __getpgid macro if not NOT_IN_libc.
5466 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
5467 * sysdeps/mach/hurd/getpgid.c: Likewise.
5468 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
5469 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
5470 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
5471 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
5473 * include/unistd.h: Declare __getpagesize_internal and define
5474 __getpagesize macro if not NOT_IN_libc.
5475 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
5477 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
5478 * sysdeps/mach/getpagesize.c: Likewise.
5479 * sysdeps/posix/getpagesize.c: Likewise.
5480 * sysdeps/unix/getpagesize.c: Likewise.
5481 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
5482 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
5483 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
5484 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
5486 2002-04-13 Andreas Jaeger <aj@suse.de>
5488 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
5489 as clobber to reduce register pressure.
5490 (__strpbrk_cg): Likewise.
5491 (__mempcpy_by4): Likewise.
5492 (__strstr_cg): Likewise.
5493 Add prototype for __memrchr.
5495 2002-04-13 Andreas Schwab <schwab@suse.de>
5497 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
5498 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5499 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5501 2002-04-13 Ulrich Drepper <drepper@redhat.com>
5503 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
5504 check whether the caller prefers getting the most recent version of
5505 a symbol of the earliest version.
5506 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
5507 _dl_do_lookup to also take the new parameter and pass it on.
5508 Change 'explicit' parameter of _dl_lookup_symbol and
5509 _dl_lookup_versioned_symbol to flags. Adjust tests.
5510 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
5511 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
5512 _dl_lookup_versioned_symbol.
5513 * elf/dl-reloc.c: Likewise.
5514 * elf/dl-runtime.c: Likewise.
5515 * elf/dl-sym.c: Likewise.
5516 * sysdeps/mips/dl-machine.h: Likewise.
5518 2002-04-11 Jakub Jelinek <jakub@redhat.com>
5520 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
5522 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
5524 2002-04-10 Andreas Jaeger <aj@suse.de>
5526 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
5528 * include/argz.h: Remove extra char from last patch.
5530 2002-04-09 Ulrich Drepper <drepper@redhat.com>
5532 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
5533 * sysdeps/unix/sysv/aix/chown.c: Likewise.
5534 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
5535 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
5536 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
5537 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
5539 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
5541 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
5542 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
5543 * intl/ngettext.c: Likewise.
5545 * include/sys/socket.h: Declare __connect_internal and define
5546 __connect macro if not NOT_IN_libc.
5547 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
5548 * sysdeps/unix/sysv/aix/connect.c: Likewise.
5549 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
5551 * include/unistd.h: Declare __close_internal and define __close macro
5553 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
5554 WJUMP3): Add extra parenthesis to avoid expanding element names with
5555 macors like __close.
5556 * sysdeps/unix/syscalls.list: Add __close_internal alias.
5558 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
5560 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
5561 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
5562 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
5564 * include/unistd.h: Declare __fork_internal and define __fork macro
5566 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
5567 * sysdeps/unix/sysv/aix/fork.c: Likewise.
5568 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
5570 * include/stdio_ext.h: Declare __fsetlocking_internal and define
5571 __fsetlocking macro to use it if not NOT_IN_libc.
5572 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
5574 * libio/__fbufsize.c: Correct copyright.
5575 * libio/__flbf.c: Likewise.
5576 * libio/__fpending.c: Likewise.
5577 * libio/__fpurge.c: Likewise.
5578 * libio/__freadable.c: Likewise.
5579 * libio/__freading.c: Likewise.
5580 * libio/__fsetlocking.c: Likewise.
5581 * libio/__fwritable.c: Likewise.
5582 * libio/__fwriting.c: Likewise.
5584 * include/stdio.h: Declare __asprintf_internal and define __asprintf
5585 macro to use it if not NOT_IN_libc.
5586 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
5588 * include/mntent.h: Declare __setmntent_internal,
5589 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
5590 __getmntent_r, and __endmntent macros to use these functions if not
5592 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
5595 * include/math.h: Declare __finite_internal, __finitef_internal, and
5596 __finitel_internal. Redefine isfinite macro if in libc or libm using
5598 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
5599 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
5600 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
5601 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
5602 * sysdeps/i386/fpu/s_finitef.S: Likewise.
5603 * sysdeps/i386/fpu/s_finitel.S: Likewise.
5604 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
5605 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
5606 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
5607 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
5609 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
5610 to use this function if not NOT_IN_libc.
5611 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
5612 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
5613 * sysdeps/mach/hurd/fcntl.c: Likewise.
5614 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
5615 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
5617 * include/argz.h: Declare __argz_count_internal and
5618 __argz_stringify_internal.
5619 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
5621 * string/argz-count.c: Use INTDEF for __argz_count.
5622 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
5624 * include/stdlib.h: Declare __cxa_atexit_internal and define
5625 __cxa_atexit macro if not NOT_IN_libc.
5626 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
5627 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
5629 * assert/assert.c: Use INTDEF for __assert_fail.
5630 * assert/__assert.c: Use INTUSE for call to __assert_fail.
5631 * include/assert.h: Declare __assert_fail_internal.
5633 * extra-lib.mk: Mark assignment to lib with override.
5635 2002-04-08 Ulrich Drepper <drepper@redhat.com>
5637 * Makerules: Use cppflags-iterator.mk to add defines for all test
5640 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
5642 * elf/elf.h: Define R_SH_TLS_xxx macros.
5643 * elf/rtld.c: Remove an extra parenthesis.
5644 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
5646 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
5647 * sysdeps/sh/dl-lookupcfg.h: New file.
5648 * sysdeps/sh/dl-tls.h: New file.
5649 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
5650 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
5651 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
5652 R_SH_TLS_TPOFF32 relocations.
5654 2002-04-08 Ulrich Drepper <drepper@redhat.com>
5656 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
5658 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
5659 * include/stdlib.h: Likewise.
5661 2002-04-08 Jakub Jelinek <jakub@redhat.com>
5663 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
5664 instead of _RTLD_LOCAL.
5665 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
5666 * include/unistd.h: Likewise.
5667 * sysdeps/generic/ldsodefs.h: Likewise.
5669 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
5670 if in libc or ld.so.
5672 2002-04-08 Andreas Jaeger <aj@suse.de>
5674 * elf/cache.c (print_entry): Support x86-64.
5676 2002-04-08 Ulrich Drepper <drepper@redhat.com>
5678 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
5679 with one accessing the locale data structures directly.
5680 * stdio-common/printf-prs.c: Include localeinfo.h for new
5681 MB_CUR_MAX definition.
5683 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
5684 is the name of the source file without extension.
5685 * Makefile (distribute): Add cppflags-iterator.mk.
5686 * cppflags-iterator.mk: New file.
5687 * extra-lib.mk: For the sources of the library run
5688 cppflags-iterator.mk.
5690 * include/libintl.h: Declare __dcgettext_internal and
5691 _libc_intl_domainname_internal. Define __dcgettext using these
5692 two symbols if used in libc itself.
5693 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
5694 _libc_intl_domainname_internal.
5695 * argp/argp-parse.c: Likewise.
5696 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
5697 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
5698 * intl/gettext.c: Likewise.
5699 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
5701 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
5703 * posix/regex_internal.c (gettext): Likewise.
5705 2002-04-08 Andreas Jaeger <aj@suse.de>
5707 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
5709 * sysdeps/x86_64/fpu/s_llrint.S: New.
5710 * sysdeps/x86_64/fpu/s_llrintf.S: New.
5711 * sysdeps/x86_64/fpu/s_llrintl.S: New.
5712 * sysdeps/x86_64/fpu/s_lrint.S: New.
5713 * sysdeps/x86_64/fpu/s_lrintf.S: New
5714 * sysdeps/x86_64/fpu/s_lrintl.S: New.
5716 2002-04-08 Roland McGrath <roland@frob.com>
5718 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
5719 widening __hurd_fail value.
5721 2002-04-07 Roland McGrath <roland@frob.com>
5723 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
5724 <mach/machine/alpha_instruction.h>.
5725 (_hurd_setup_sighandler): Take proper arguments for current decls.
5726 Update code to use _hurdsig_catch_fault.
5727 Use `callsys' instruction instead of `call_pal'.
5728 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
5730 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
5731 (ALIGN, at, AT, fp): New macros.
5733 2002-04-06 Roland McGrath <roland@frob.com>
5735 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
5737 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
5738 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
5740 * sysdeps/mach/hurd/bind.c: Use prototype definition.
5741 * sysdeps/mach/hurd/connect.c: Likewise.
5742 * sysdeps/mach/hurd/getsockopt.c: Likewise.
5743 * sysdeps/mach/hurd/setsockopt.c: Likewise.
5745 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
5748 * hurd/catch-exc.c: Use integer_t instead of int.
5749 * hurd/hurdfault.c: Likewise.
5751 * sysdeps/mach/hurd/alpha/exc2signal.c
5752 (_hurd_exception2signal): Rewritten.
5753 * sysdeps/mach/hurd/alpha/longjmp-ts.c
5754 (_hurd_longjmp_thread_state): Rewritten.
5756 2002-04-07 Ulrich Drepper <drepper@redhat.com>
5758 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
5759 DB_LOOKUP_FCT prototype.
5760 * nss/getXXent_r.c: Likewise.
5761 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
5762 * inet/getaliasname_r.c: Likewise.
5763 * inet/getnetbyad_r.c: Likewise.
5764 * inet/getnetbynm_r.c: Likewise.
5765 * inet/getnetent_r.c: Likewise.
5766 * inet/getproto_r.c: Likewise.
5767 * inet/getprtent_r.c: Likewise.
5768 * inet/getprtname_r.c: Likewise.
5769 * inet/getrpcbyname_r.c: Likewise.
5770 * inet/getrpcbynumber_r.c: Likewise.
5771 * inet/getrpcent_r.c: Likewise.
5772 * inet/getservent_r.c: Likewise.
5773 * inet/getsrvbynm_r.c: Likewise.
5774 * inet/getsrvbypt_r.c: Likewise.
5775 * shadow/getspent_r.c: Likewise.
5776 * shadow/getspnam_r.c: Likewise.
5778 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
5780 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
5781 Use i686-friendly PIC code.
5782 * sysdeps/i386/elf/setjmp.S: Likewise.
5784 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
5786 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
5788 * elf/Versions: Remove it here.
5790 2002-04-06 Ulrich Drepper <drepper@redhat.com>
5792 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
5793 direction. Reported by H . J . Lu <hjl@lucon.org>.
5795 2002-04-05 Ulrich Drepper <drepper@redhat.com>
5797 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
5798 test just before the test runs.
5799 * intl/tst-translit.sh: Likewise.
5800 * intl/tst-codeset.sh: Likewise.
5802 * timezone/zic.c: Update from tzcode2002c.
5803 * timezone/asia: Update from tzdata2002c.
5804 * timezone/backward: Likewise.
5805 * timezone/europe: Likewise.
5806 * timezone/northamerica: Likewise.
5807 * timezone/northamerica: Likewise.
5808 * timezone/northamerica: Likewise.
5809 * timezone/southamerica: Likewise.
5810 * timezone/zone.tab: Likewise.
5812 2002-03-23 Jakub Jelinek <jakub@redhat.com>
5814 * sysdeps/generic/brk.c (__curbrk): Declare.
5815 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
5816 * sysdeps/generic/dl-sbrk.c: Likewise.
5817 * sysdeps/unix/arm/dl-brk.S: New file.
5818 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
5819 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
5820 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
5821 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
5822 * sysdeps/unix/i386/dl-brk.S: New file.
5823 * sysdeps/unix/mips/dl-brk.S: New file.
5824 * sysdeps/unix/sparc/dl-brk.S: New file.
5825 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
5826 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
5827 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
5828 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
5830 2002-04-03 Andreas Schwab <schwab@suse.de>
5832 * Makefile (headers): Add gnu/lib-names.h here instead of
5834 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
5836 (install-headers): Add dependency on install-headers-nosubdir.
5837 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
5838 instead of install-others.
5839 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
5842 2002-04-05 Ulrich Drepper <drepper@redhat.com>
5844 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
5845 Reported by Sam Roberts <sroberts@uniserve.com>.
5847 2002-04-03 Jakub Jelinek <jakub@redhat.com>
5849 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
5850 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
5851 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
5852 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
5854 2002-04-03 David Mosberger <davidm@hpl.hp.com>
5856 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
5857 (RTLD_START): Ditto.
5858 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
5859 dependency violation.
5861 2002-04-05 Jakub Jelinek <jakub@redhat.com>
5863 * time/mktime.c (__mktime_internal): Move check for year < 70 below
5864 all variable declarations.
5866 2002-04-04 Andreas Schwab <schwab@suse.de>
5868 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
5870 2002-04-04 Andreas Jaeger <aj@suse.de>
5872 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
5873 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
5875 * sysdeps/x86_64/fpu/s_fabs.c: New file.
5876 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
5877 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
5879 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
5881 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
5883 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
5884 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
5886 * configure.in: Handle all mips entries the same.
5888 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
5889 * sysdeps/mips/mips3/*: Likewise.
5890 * sysdeps/mips/p40/bits/endian.h: Likewise.
5892 2002-04-04 Ulrich Drepper <drepper@redhat.com>
5894 * misc/dirname.c (dirname): Ignore trailing slashes at end of
5895 non-null result [PR libc/2600].
5897 * misc/tst-dirname.c: Add more tests.
5899 2002-04-03 Ulrich Drepper <drepper@redhat.com>
5901 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
5902 define a code_set_name provide one based on the filename.
5904 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
5906 2001-12-28 Andreas Jaeger <aj@suse.de>
5908 * time/mktime.c (__mktime_internal): Check for year < 70
5911 2002-04-03 Andreas Jaeger <aj@suse.de>
5913 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
5915 Reported by Andi Kleen <ak@suse.de>.
5917 2002-04-03 Ulrich Drepper <drepper@redhat.com>
5919 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
5920 * sysdeps/generic/w_lgammaf.c: Likewise.
5921 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
5923 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
5924 Adjust for new output format of the backtrace functions.
5926 * misc/syslog.c (vsyslog): Only use cleanup handler if
5927 _LIBC_REENTRANT is defined [PR libc/2924].
5929 * libio/Makefile (tests): Add bug-ungetwc2.
5930 * libio/bug-ungetwc2.c: New file.
5932 * manual/install.texi: Typographical and grammatical cleanup.
5933 Patch by Dennis Grace <dgrace@us.ibm.com>.
5935 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
5936 parameter if mtflag. Patch by <jeongyun@innovay.com>.
5938 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
5939 always "&". Adjust callers.
5940 Add "_" prefix to several generated definitions.
5941 Patch by paul@serice.net [PR libc/3158].
5943 2002-04-02 Ulrich Drepper <drepper@redhat.com>
5945 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
5946 size of _dl_arm_cap_flags.
5947 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
5949 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
5952 2002-03-22 H.J. Lu <hjl@gnu.org>
5954 * scripts/firstversions.awk: Check the first version.
5956 2002-04-02 Ulrich Drepper <drepper@redhat.com>
5958 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
5959 dependencies must be stable to work correctly.
5960 Reported by martin.lubich@datacon.at.
5962 * libio/bug-ungetwc1.c: New file.
5963 * libio/Makefile (tests): Add bug-ungetwc1.
5965 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
5966 if stream was last used for writing.
5968 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
5969 number [PR libc/3111].
5971 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
5973 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
5975 2002-04-02 Jakub Jelinek <jakub@redhat.com>
5977 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
5978 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
5979 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
5980 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
5981 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
5983 2002-03-30 Jakub Jelinek <jakub@redhat.com>
5985 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
5988 2002-03-29 Jakub Jelinek <jakub@redhat.com>
5990 * sysdeps/i386/fpu/s_fabs.S: New file.
5991 * sysdeps/i386/fpu/s_fabsf.S: New file.
5992 * sysdeps/i386/fpu/s_fabsl.S: New file.
5993 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
5994 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
5995 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
5997 2002-04-02 Ulrich Drepper <drepper@redhat.com>
5999 * rt/tst-shm.c (do_test): Add one more test for size of shared
6002 2002-03-29 Wolfram Gloger <wg@malloc.de>
6004 * malloc/malloc.c: Add short description and prototypes for
6005 malloc_get_state, malloc_set_state and posix_memalign, for
6006 consistency and to avoid warnings with -Wstrict-prototypes.
6007 Reported by Andreas Jaeger <aj@suse.de>.
6009 2002-04-02 Ulrich Drepper <drepper@redhat.com>
6011 * po/gl.po: Update from translation team.
6013 2002-03-31 Roland McGrath <roland@frob.com>
6015 * hurd/hurdselect.c (_hurd_select): Fix
6016 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
6017 Use a union rather than casts to compare mach_msg_type_t as int.
6019 2002-03-25 Roland McGrath <roland@frob.com>
6021 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
6022 check off the end of NAME when it's shorter than 2 chars.
6023 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
6025 2002-03-17 Roland McGrath <roland@frob.com>
6027 * sysdeps/mach/hurd/i386/sys/io.h: New file.
6028 * sysdeps/mach/hurd/i386/ioperm.c: New file.
6029 * sysdeps/mach/hurd/i386/Dist: Add them.
6030 * sysdeps/mach/hurd/i386/Versions
6031 (libc: GLIBC_2.2.6): New set, add ioperm.
6032 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
6033 (mach_interface_list): Check for mach_i386.defs.
6034 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
6035 * sysdeps/mach/configure: Regenerated.
6037 2002-03-22 Ulrich Drepper <drepper@redhat.com>
6039 * po/fr.po: Update from translation team.
6041 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
6043 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
6044 getpriority from syscalls list.
6046 2002-03-28 Andreas Jaeger <aj@suse.de>
6048 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
6049 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
6050 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
6051 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
6053 2002-03-27 Andreas Jaeger <aj@suse.de>
6055 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
6056 sigcontext): Follow further kernel change.
6058 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
6061 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
6062 Change for struct sigcontext change.
6064 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
6065 Follow changes in struct sigcontext.
6067 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
6068 sysycall, use wrapper instead.
6070 2002-03-26 Andreas Jaeger <aj@suse.de>
6072 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
6073 read and write accesses as detailed as possible.
6074 (__memcpy_by2): Likewise.
6075 (__memcpy_g): Likewise.
6076 (memmove): Likewise.
6078 (__memset_ccn_by4): Likewise.
6079 (__memset_ccn_by2): Likewise.
6080 (__memset_gcn_by4): Likewise.
6081 (__memset_gcn_by2): Likewise.
6083 (__memrchr): Likewise.
6084 (rawmemchr): Likewise.
6085 (__strlen_g): Likewise.
6086 (__strcpy_g): Likewise.
6087 (__mempcpy_by4): Likewise.
6088 (__mempcpy_by2): Likewise.
6089 (__mempcpy_byn): Likewise.
6090 (__stpcpy_g): Likewise.
6091 (__strncpy_by4): Likewise.
6092 (__strncpy_by2): Likewise.
6093 (__strncpy_byn): Likewise.
6094 (__strncpy_gg): Likewise.
6095 (__strcat_c): Likewise.
6096 (__strcat_g): Likewise.
6097 (__strncat_g): Likewise.
6098 (__strcmp_gg): Likewise.
6099 (__strncmp_g): Likewise.
6100 (__strchr_c): Likewise.
6101 (__strchr_g): Likewise.
6102 (__strchrnul_c): Likewise.
6103 (__strchrnul_g): Likewise.
6104 (__strrchr_c): Likewise.
6105 (__strrchr_g): Likewise.
6106 (__strrchr_c): Likewise.
6107 (__strrchr_g): Likewise.
6108 (__strcspn_c1): Likewise.
6109 (__strcspn_cg): Likewise.
6110 (__strcspn_g): Likewise.
6111 (__strcspn_g): Likewise.
6112 (__strspn_c1): Likewise.
6113 (__strspn_cg): Likewise.
6114 (__strspn_g): Likewise.
6115 (__strspn_g): Likewise.
6116 (__strpbrk_cg): Likewise.
6117 (__strpbrk_g): Likewise.
6118 (__strstr_cg): Likewise.
6119 (__strstr_g): Likewise.
6121 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
6122 Michal Ludvig <mludvig@suse.cz>.
6124 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
6125 compatibilty, adjust for kernel changes.
6127 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
6128 sigcontext): Adjust for kernel changes.
6130 2002-03-25 Andreas Jaeger <aj@suse.de>
6132 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
6134 Reported by Artur Zaprzala <zybi@talex.com.pl>.
6136 2002-03-24 Andreas Jaeger <aj@suse.de>
6138 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
6140 * stdio-common/tst-fdopen.c (main): Remove unused variable.
6142 * iconv/tst-iconv3.c (main): Use correct printf strings.
6144 2002-03-18 Roland McGrath <roland@frob.com>
6146 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
6147 (CMGROUP_MAX): New macro.
6149 2002-03-23 Roland McGrath <roland@frob.com>
6151 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
6152 * sysdeps/posix/shm_unlink.c: Likewise.
6154 2002-03-22 Roland McGrath <roland@frob.com>
6156 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
6157 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
6158 under --enable-libio.
6159 * sysdeps/mach/hurd/configure: Regenerated.
6161 2002-03-23 Roland McGrath <roland@frob.com>
6163 * sysdeps/mach/hurd/i386/Makefile
6164 (sysdep_routines, shared-only-routines): Don't add framestate,
6165 reverting 2001-10-02 change.
6166 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
6167 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
6168 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
6169 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
6170 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
6171 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
6172 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
6173 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
6174 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
6175 Do it here instead, only if [$(unwind-find-fde) = yes].
6177 2002-03-23 Andreas Jaeger <aj@suse.de>
6179 * signal/signal.h: Fix typo. Patch by Steve Kemp
6180 <skx@tardis.ed.ac.uk>.
6182 2002-03-22 Andreas Jaeger <aj@suse.de>
6184 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
6187 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
6188 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
6189 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
6190 user_fpregs_struct): Rename fwd.
6192 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
6193 Follow sigcontext changes.
6195 2002-03-22 Andreas Jaeger <aj@suse.de>
6197 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
6198 changes for NaNs on MIPS.
6199 Patch by Hartvig Ekner <hartvige@mips.com>.
6201 2002-03-21 Ulrich Drepper <drepper@redhat.com>
6203 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
6204 Use realloc if too large.
6205 (addgrbyid): Likewise.
6206 * nscd/hstcache.c (addhstbyname): Likewise.
6207 (addhstbyaddr): Likewise.
6208 (addhstbynamev6): Likewise.
6209 (addhstbyaddrv6): Likewise.
6210 * nscd/pwdcache.c (addpwbyname): Likewise.
6211 (addpwbyuid): Likewise.
6213 2002-03-21 Andreas Jaeger <aj@suse.de>
6215 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
6216 _fpstate): Add separate struct for x86-64.
6218 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
6219 user_fpregs_struct): Change member names to follow kernel.
6221 2002-03-20 Ulrich Drepper <drepper@redhat.com>
6223 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
6224 Correctly close the UDP connection right away [PR libc/3120].
6226 2002-03-20 Andreas Jaeger <aj@suse.de>
6228 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
6229 user_fpregs_struct): Fix for changed kernel struct.
6230 (struct user_regs_struct): Likewise.
6231 (struct user): Likewise.
6232 Add 32-bit x86 compatibility.
6234 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
6236 2002-03-19 Andreas Jaeger <aj@suse.de>
6238 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
6240 2002-03-18 Andreas Jaeger <aj@suse.de>
6242 * iconvdata/Makefile: Only run tests when shared libs are
6245 2002-03-17 Andreas Jaeger <aj@suse.de>
6247 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
6249 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
6251 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
6254 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
6256 Patch by Hartvig Ekner <hartvige@mips.com>.
6258 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
6259 * sysdeps/generic/unwind-pe.h: Likewise.
6261 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
6264 * libio/stdio.c (AL2): Define variant when visibility attribute is
6267 * include/libc-symbols.h (_INTVARDEF): Define variant when
6268 visibility attribute is not supported.
6270 2002-03-16 Ulrich Drepper <drepper@redhat.com>
6272 * po/fr.po: Update from translation team.
6274 2002-02-25 Bruno Haible <bruno@clisp.org>
6276 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
6278 2002-03-15 Ulrich Drepper <drepper@redhat.com>
6280 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
6281 buffers if _IO_file_attach failed.
6283 * libio/fileops.c (_IO_file_open): Close file descriptor if
6284 _IO_SEEKOFF call failed.
6286 2002-03-15 H.J. Lu <hjl@gnu.org>
6287 Ulrich Drepper <drepper@redhat.com>
6289 * configure.in: Check for availability of
6290 init_array/fini_array/preinit_array handling in binutils.
6291 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
6292 * config.make.in (have-initfini-array): New variable.
6294 2002-03-15 Ulrich Drepper <drepper@redhat.com>
6296 * stdio-common/tst-printf.c (main): Comment out one test which
6297 checked the compiler's ability to fold floating-point constants
6298 but not really printf.
6299 (rfg3): Make s const.
6300 * stdio-common/tst-printf.sh: Adjust for removed test.
6302 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
6303 internal function. Adjust for internal_function calling convention.
6304 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
6305 as internal_function.
6307 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
6310 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
6311 declaration and definition.
6312 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
6314 * nss/getXXent_r.c: Likewise.
6315 * nss/nsswitch.h (db_lookup_function): Add internal_function to
6318 * include/time.h: Declare __localtime_r as hidden.
6320 * include/aliases.h: Declare __getaliasent_r as hidden.
6321 * include/grp.h: Declare __getgrent_r as hidden.
6322 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
6323 __getservent_r, and __getprotoent_r as hidden.
6324 * include/pwd.h: Declare __getpwent_r as hidden.
6325 * include/shadow.h: Declare __getspent_r as hidden.
6326 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
6328 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
6329 and __gconv_transliterate as hidden.
6330 Add internal_function to __gconv_get_path declaration.
6331 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
6332 definition. Add attribute_hidden to __gconv_read_conf definition.
6334 2002-03-14 Ulrich Drepper <drepper@redhat.com>
6336 * elf/rtld.c: Declare _environ as hidden.
6337 * sysdeps/generic/dl-environ.c: Likewise.
6338 * sysdeps/generic/dl-sysdep.c: Likewise.
6340 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
6341 _dl_mcount_internal as hidden.
6343 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
6344 * sysdeps/generic/dl-brk.c: New file.
6345 * sysdeps/generic/dl-sbrk.c: New file.
6346 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
6347 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
6349 * elf/dl-minimal.c (malloc): Declare _end as hidden.
6350 (__errno_location): New function. Declare errno as hidden.
6351 * elf/rtld.c (_dl_argc): Define as hidden.
6352 (_dl_skip_args): Define as hidden.
6353 (_begin, _end): Declare as hidden.
6354 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
6355 * sysdeps/generic/entry.h (_start): Declare as hidden.
6356 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
6357 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
6358 _dl_runtime_resolve and _dl_runtime_profile as hidden.
6359 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
6361 2002-03-14 Roland McGrath <roland@frob.com>
6363 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
6365 * Makeconfig (%.v.i, %.v): New implicit rules.
6366 (preprocess-versions): Variable removed.
6367 ($(common-objpfx)shlib-versions.v.i): New target giving just the
6368 shlib-versions input files as dependencies.
6369 ($(common-objpfx)soversions.i): Depend on that instead of the input
6370 files. Use it as input instead of using a pipeline.
6371 (postclean-generated): Append soversions.i, shlib-versions.v, and
6372 shlib-versions.v.i here.
6373 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
6374 the Versions.def input files as dependencies.
6375 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
6376 ($(common-objpfx)Versions.all): Depend on that instead of the input
6377 files. Use it as input instead of using a pipeline.
6378 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
6379 (postclean-generated): Append those .v and .v.i files here.
6381 2002-03-14 Jakub Jelinek <jakub@redhat.com>
6383 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
6384 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
6387 2002-03-14 Jakub Jelinek <jakub@redhat.com>
6389 * sysdeps/generic/mp_clz_tab.c: New file.
6390 * sysdeps/i386/mp_clz_tab.c: New file.
6391 * sysdeps/hppa/mp_clz_tab.c: New file.
6392 * sysdeps/powerpc/mp_clz_tab.c: New file.
6393 * stdlib/Makefile (aux): Revert last patch.
6394 * math/Makefile (gmp-objs): Likewise.
6396 2002-03-13 Paul Eggert <eggert@twinsun.com>
6398 * time/strftime.c: Comment fixes for references to obsolescent
6399 standards, In most cases the simplest fix is to remove the
6400 confusing comments. Cross-referencing all the standards properly
6401 is a bit of a pain, and it should be enough to put that info in
6402 the documentation as I did in my recent time.texi patch.
6404 2002-03-13 Paul Eggert <eggert@twinsun.com>
6406 * manual/time.texi (Formatting Calendar Time):
6407 ISO C99 also specifies the E and O modifiers.
6408 %P is a GNU extension, and is not in ISO C99.
6409 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
6410 %T is also in ISO C99.
6411 The RFC 822 example is not valid in arbitrary locales.
6412 Reword the POSIX.2 wording slightly, to make it a bit clearer
6413 that POSIX.2 formats are also supported by later POSIX versions.
6414 If a format was introduced in ISO C99 it is also required by
6417 2002-03-13 Ulrich Drepper <drepper@redhat.com>
6419 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
6420 _sys_nerr_internal with INTVARDEF2.
6421 * include/libc-symbols.h (INTVARDEF2): New macro.
6422 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
6423 (_sys_nerr_internal): Library.
6425 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
6426 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
6428 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
6430 2002-03-13 Wolfram Gloger <wg@malloc.de>
6432 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
6434 2002-03-02 Andreas Schwab <schwab@suse.de>
6436 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
6437 'h' flag and positional arg.
6438 * stdio-common/tst-printf.c (rfg3): New function to test
6439 positional arguments.
6440 (main): Fix some warnings.
6442 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6444 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
6445 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
6447 2002-03-13 Ulrich Drepper <drepper@redhat.com>
6449 * grp/initgroups.c (__nss_group_data): Declare as hidden.
6451 * include/locale.h (_nl_C_locobj): Declare as hidden.
6453 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
6454 * time/strptime.c (_nl_C_LC_TIME): Likewise.
6456 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
6458 * include/sys/gmon.h: Declare _gmonparam as hidden.
6460 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
6461 (__ctype32_wctrans): Likewise.
6462 (__ctype32_width): Likewise.
6464 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
6467 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
6469 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
6470 hidden. Change all users of these variables.
6472 * posix/regex_internal.h (__re_error_msgid): Renamed from
6473 re_error_msgid. Declare as hidden.
6474 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
6477 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
6478 (__printf_function_table): Likewise.
6479 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
6481 (__printf_function_table): Likewise.
6483 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
6484 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
6486 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
6487 * nss/nsswitch.c: Declare _nss_*_database as hidden.
6489 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
6490 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
6492 2002-03-12 Ulrich Drepper <drepper@redhat.com>
6494 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
6495 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
6496 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
6497 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
6498 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
6499 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
6500 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
6501 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
6502 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
6503 _nl_C_LC_CTYPE_width: Declare as hidden.
6504 * include/locale.h: Declare _nl_locale_file_list.
6505 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
6506 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
6507 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
6508 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
6509 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
6510 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
6511 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
6512 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
6513 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
6514 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
6515 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
6516 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
6517 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
6518 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
6519 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
6520 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
6521 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
6522 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
6523 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
6524 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
6525 _nl_C_LC_CTYPE_width, and as hidden.
6526 * locale/findlocale.c: Declare _nl_C as hidden.
6527 * locale/newlocale.c: Likewise.
6528 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
6529 _nl_locale_file_list.
6530 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
6531 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
6532 Define _nl_C_locobj as hidden.
6534 * malloc/mtrace.c (_mtrace_file): Define as hidden.
6535 (_mtrace_line): Likewise.
6537 * include/time.h: Declare __mon_yday as hidden.
6538 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
6540 * libio/libioP.h: Declare __libio_codecvt as hidden.
6541 * libio/fileops.c: Declare __libio_translit as hidden.
6542 * libio/iofwide.c: Define __libio_translit as hidden.
6544 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
6545 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
6546 * login/getutline_r.c: Likewise.
6547 * login/utmpname.c: Likewise.
6549 * login/utmp-private.h: Declare __libc_utmp_file_functions,
6550 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
6551 __libc_utmp_file_name as hidden.
6553 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
6554 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
6555 * locale/freelocale.c: Likewise.
6556 * locale/lc-time.c: Likewise.
6558 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
6559 (__libc_ptyname2): Likewise.
6560 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
6562 (__libc_ptyname2): Likewise.
6564 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
6565 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
6566 * sysdeps/generic/init-first.c: Likewise.
6567 * sysdeps/i386/init-first.c: Likewise.
6568 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
6569 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6570 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6571 * sysdeps/sh/init-first.c: Likewise.
6572 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
6573 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
6575 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
6576 (_itowa_upper_digits): Likewise.
6578 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
6579 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
6582 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
6583 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
6584 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
6585 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
6587 * gmon/gmon.c (__bb_head): Define as hidden.
6588 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
6590 * argp/argp-parse.c (_argp_hang): Define as static.
6592 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
6593 handling in latest compilers.
6595 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
6597 * libio/fileops.c (_IO_file_jumps): Likewise.
6598 * libio/stdfiles.c (_IO_list_all): Likewise.
6599 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
6601 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
6603 * include/malloc.h: Add __libc_malloc_initialized declaration
6604 here. Mark variable hidden.
6605 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
6607 * elf/dl-open.c (__libc_argc): Declare as hidden.
6608 (__libc_argv): Likewise.
6609 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
6610 (__libc_argv): Likewise.
6611 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
6612 __libc_argv as hidden.
6613 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6614 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6615 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
6616 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
6618 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
6619 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
6620 * stdlib/erand48.c: Likewise.
6621 * stdlib/jrand48.c: Likewise.
6622 * stdlib/lcong48.c: Likewise.
6623 * stdlib/lrand48.c: Likewise.
6624 * stdlib/mrand48.c: Likewise.
6625 * stdlib/nrand48.c: Likewise.
6626 * stdlib/seed48.c: Likewise.
6627 * stdlib/srand48.c: Likewise.
6629 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
6630 (_itoa_lower_digits_internal): New declaration.
6631 (_itoa_upper_digits_internal): New declaration.
6632 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
6633 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
6634 (_itoa_upper_digits_internal): New declaration.
6635 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
6637 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
6638 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
6640 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
6641 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
6643 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
6644 (_itowa_lower_digits): Likewise.
6645 (_itowa_upper_digits): Likewise.
6646 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
6647 (_itowa_upper_digits): Likewise.
6649 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
6650 not already defined.
6651 (GERMANIC_PLURAL): Declare as hidden.
6653 * posix/getopt.c (__getopt_initialized): Declare as hidden.
6654 (attribute_hidden): Define as empty macro if not already defined.
6656 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
6657 (__gconv_max_path_elem_len): Likewise.
6658 (__gconv_path_envvar): Likewise.
6660 * math/Makefile (gmp-objs): Remove mp_clz_tab.
6661 * stdlib/Makefile (aux): Remove mp_clz_tab.
6662 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
6664 * stdlib/exit.h (__exit_funcs): Declare as hidden.
6666 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
6668 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
6669 _nl_category_names, _nl_category_name_sizes, _nl_current,
6670 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
6672 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
6673 (_nl_current_default_domain): Likewise
6674 (_nl_state_lock): Likewise.
6675 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
6676 (_nl_current_default_domain): Likewise
6677 (_nl_state_lock): Likewise.
6678 * intl/bindtextdom.c (_nl_state_lock): Likewise.
6680 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
6681 (_fpioconst_pow10): Likewise.
6683 * include/time.h (_tmbuf): Add attribute_hidden.
6685 * time/tzset.c (tzstring_list): Define as static.
6687 * include/time.h: Add attribute_hidden to __tzname_cur_max and
6688 __use_tzfile declaration.
6690 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
6691 and __wcsmbs_last_locale declaration.
6693 2002-02-25 Paul Eggert <eggert@twinsun.com>
6695 * timezone/Makefile (tzbases): Move systemv from here...
6696 (tzlinks): to here, since the entries in systemv were all changed
6697 from Zone to Link lines in tz-2001a. Bug reported (and patch
6698 tested) by Peter Breitenlohner.
6700 2002-03-07 Jakub Jelinek <jakub@redhat.com>
6702 * time/tst-posixtz.c (tests): Add new tests.
6703 (main): Test whether tzset() sets daylight properly.
6705 2002-03-06 Jakub Jelinek <jakub@redhat.com>
6707 * time/tzset.c (tz_compute): Move __daylight, __tzname and
6708 __tzname_cur_max setting...
6709 (tzset_internal): ...here.
6711 2002-03-06 Jakub Jelinek <jakub@redhat.com>
6713 * time/tzset.c (compute_change): Don't return any value.
6714 (tz_compute): Likewise. Don't handle southern hemisphere here.
6715 (__tz_convert): But here.
6717 2002-03-11 Ulrich Drepper <drepper@redhat.com>
6719 * manual/examples/mkfsock.c: Include <string.h> as well.
6720 Patch by Alain De Carolis <alaind@wseurope.com>.
6722 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
6724 * posix/regexec.c (re_match): Fix incorrect register sizes.
6725 (re_search): Likewise.
6727 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
6729 * posix/regcomp.c (regfree): Remove a disused condition.
6730 * posix/regex_internal.c (re_acquire_state): Likewise.
6731 (re_acquire_state_context): Likewise.
6732 (register_state): Remove a redundant malloc invocation.
6733 * posix/regex_internal.h: (re_state_table_entry): Simplify
6736 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
6738 * posix/regcomp.c (regcomp): Add __builtin_expect to error
6739 handling conditions.
6740 (regerror): Likewise.
6741 (regfree): Likewise.
6742 (re_compile_internal): Likewise.
6743 (init_dfa): Likewise.
6744 (init_word_char): Likewise.
6745 (create_initial_state): Likewise.
6746 (analyze): Likewise.
6747 (analyze_tree): Likewise.
6748 (duplicate_node): Likewise.
6749 (calc_eclosure): Likewise.
6750 (calc_eclosure_iter): Likewise.
6752 (parse_reg_exp): Likewise.
6753 (parse_branch): Likewise.
6754 (parse_expression): Likewise.
6755 (parse_subexp): Likewise.
6756 (parse_dup_op): Likewise.
6757 (parse_bracket_exp): Likewise.
6758 (build_equiv_class): Likewise.
6759 (build_charclass): Likewise.
6760 (build_word_op): Likewise.
6761 (fetch_number): Likewise.
6762 (create_tree): Likewise.
6763 (duplicate_tree): Likewise.
6764 * posix/regex.c (BE): New macro.
6765 * posix/regexec.c (re_match): Add __builtin_expect to error
6766 handling conditions.
6767 (re_match_2): Likewise.
6768 (re_search): Likewise.
6769 (re_search_internal): Likewise.
6770 (check_matching): Likewise.
6771 (proceed_next_node): Likewise.
6772 (set_regs): Likewise.
6773 (sift_states_backward): Likewise.
6774 (add_epsilon_backreference): Likewise.
6775 (transit_state): Likewise.
6776 (transit_state_sb): Likewise.
6777 (transit_state_mb): Likewise.
6778 (transit_state_bkref): Likewise.
6779 (transit_state_bkref_loop): Likewise.
6780 (build_trtable): Likewise.
6781 (group_nodes_into_DFAstates): Likewise.
6782 (match_ctx_init): Likewise.
6783 (match_ctx_add_entry): Likewise.
6784 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
6785 to error handling conditions.
6786 (re_string_construct_toupper): Likewise.
6787 (build_wcs_buffer): Likewise.
6788 (build_wcs_upper_buffer): Likewise.
6789 (build_upper_buffer): Likewise.
6790 (re_string_translate_buffer): Likewise.
6791 (re_node_set_alloc): Likewise.
6792 (re_node_set_init_1): Likewise.
6793 (re_node_set_init_2): Likewise.
6794 (re_node_set_init_copy): Likewise.
6795 (re_node_set_intersect): Likewise.
6796 (re_node_set_init_union): Likewise.
6797 (re_node_set_merge): Likewise.
6798 (re_node_set_insert): Likewise.
6799 (re_dfa_add_node): Likewise.
6800 (re_acquire_state): Likewise.
6801 (re_acquire_state_context): Likewise.
6802 (create_new_state_common): Likewise.
6803 (register_state): Likewise.
6804 (create_ci_new_state): Likewise.
6805 (create_cd_new_state): Likewise.
6806 (re_string_context_at): Remove redundant condition.
6808 2002-01-16 Roger Sayle <roger@eyesopen.com>
6810 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
6812 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
6814 2002-03-11 Jakub Jelinek <jakub@redhat.com>
6816 * sysdeps/i386/elf/configure.in: Fix comment.
6818 * sysdeps/sparc/sparc64/configure.in: New.
6819 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
6820 if .dynamic comes before .got.
6821 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
6823 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
6824 HP_TIMING_ACCUM): Fix typos.
6826 2002-03-11 Ulrich Drepper <drepper@redhat.com>
6828 * string/strfry.c: Add some more randomness to the seed.
6829 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
6831 * po/es.po: Update from translation team.
6832 * po/fr.po: Likewise.
6834 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
6836 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
6837 when determining type of format.
6838 Patch by James Antill <james@anqd.org> [PR libc/2787].
6840 2002-03-04 Jakub Jelinek <jakub@redhat.com>
6842 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
6844 2002-03-11 Roland McGrath <roland@frob.com>
6846 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
6848 * Versions.def (libc): Add GLIBC_2.2.6.
6849 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
6850 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
6851 __errno_location instead of __hurd_errno_location, and don't inline it.
6852 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
6853 * hurd/errno.c: New file.
6854 * hurd/Makefile (routines): Add errno.
6856 2002-03-11 Ulrich Drepper <drepper@redhat.com>
6858 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
6859 ridiculously large widths and precisions [PR libc/3026].
6861 2002-03-11 Andreas Jaeger <aj@suse.de>
6863 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
6865 Patch by Susanne Oberhauser <froh@SuSE.de>.
6867 2002-03-11 Ulrich Drepper <drepper@redhat.com>
6869 * inet/rexec.c (ahostbuf): Define as static.
6871 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
6872 (__ctype32_wctrans): Likewise.
6873 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
6874 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
6875 (__ctype32_wctrans): Likewise.
6876 (__ctype32_width): Likewise.
6878 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
6879 They were never exported anyway.
6881 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
6882 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
6884 * include/sys/gmon.h: Declare _gmonparam.
6886 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
6887 symbols for getdents64. They were never exported.
6889 2002-03-09 Roland McGrath <roland@frob.com>
6891 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
6892 Reported by Jon Arney <jarney1@cox.net>.
6894 2002-02-23 Roland McGrath <roland@frob.com>
6896 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
6898 (__hurd_errno_location): Function removed.
6900 2002-03-06 Andreas Jaeger <aj@suse.de>
6902 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
6905 2002-03-04 Andreas Jaeger <aj@suse.de>
6907 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
6909 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
6912 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
6914 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
6916 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
6918 * sysdeps/x86_64/bits/setjmp.h: New.
6920 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
6922 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
6924 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
6926 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
6927 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
6929 2002-02-28 Bo Thorsen <bo@suse.de>
6931 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
6934 2002-03-03 Andreas Jaeger <aj@suse.de>
6936 * sysdeps/x86_64/bits/wordsize.h: New file.
6938 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
6939 * elf/tst-tlsmod1.c: Likewise.
6941 * posix/regcomp.c: Get regex.h from include dir for internal
6944 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
6945 to libc-internal.h and include it.
6946 * include/libc-internal.h: Add __init_misc.
6948 * misc/init-misc.c: Include libc-internal.h for prototypes.
6950 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
6952 * misc/error.c [_LIBC]: Include libioP.h for prototype of
6955 2002-03-03 Ulrich Drepper <drepper@redhat.com>
6957 * posix/regcomp.c: Compatibility changes to allow using the code
6960 2002-02-28 Hartvig Ekner <hartvige@mips.com>
6962 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
6965 2002-03-02 Ulrich Drepper <drepper@redhat.com>
6967 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
6968 of .str elements in the returned data structure.
6970 * elf/elf.h: Add Alpha TLS bits.
6972 2002-02-28 Jakub Jelinek <jakub@redhat.com>
6974 * sysdeps/unix/sysv/linux/nice.c: New file.
6976 2002-03-01 Ulrich Drepper <drepper@redhat.com>
6978 * elf/Makefile (dl-routines): Add dl-origin.
6979 (elide-routines.os): Add dl-origin.
6980 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
6981 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
6983 * include/libc-symbols.c: Define attribute_hidden depending on
6984 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
6986 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
6987 * elf/dl-load.c: Likewise.
6988 * elf/rtld.c: Likewise.
6989 * include/unistd.h: Declare __libc_enable_secure_internal.
6990 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
6991 Use INTUSE with __libc_enable_secure.
6992 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6994 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
6995 * elf/dl-error.c: Likewise,
6996 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
6998 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
6999 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
7000 function definition. Use INTDEF with _dl_get_origin.
7001 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
7003 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
7004 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
7006 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
7007 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
7008 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
7010 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
7011 * elf/dl-deps.c: Likewise.
7012 * elf/dl-error.c: Likewise.
7013 * elf/dl-fini.c: Likewise.
7014 * elf/dl-init.c: Likewise.
7015 * elf/dl-load.c: Likewise.
7016 * elf/dl-lookup.c: Likewise.
7017 * elf/dl-reloc.c: Likewise.
7018 * elf/dl-version.c: Likewise.
7019 * elf/do-lookup.h: Likewise.
7020 * sysdeps/arm/dl-machine.h: Likewise.
7021 * sysdeps/cris/dl-machine.h: Likewise.
7022 * sysdeps/hppa/dl-machine.h: Likewise.
7023 * sysdeps/i386/dl-machine.h: Likewise.
7024 * sysdeps/m68k/dl-machine.h: Likewise.
7025 * sysdeps/powerpc/dl-machine.h: Likewise.
7026 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7027 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7028 * sysdeps/sh/dl-machine.h: Likewise.
7029 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
7030 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
7031 * sysdeps/x86_64/dl-machine.h: Likewise.
7032 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
7033 _dl_argv[0]. Use INTUSE with _dl_argv.
7034 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
7035 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
7037 2002-02-28 Jakub Jelinek <jakub@redhat.com>
7039 * elf/rtld.c (_rtld_global): Remove .protected.
7040 (_rtld_local): Strong alias to _rtld_global.
7041 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
7043 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
7044 _rtld_local instead of _rtld_global.
7045 (_rtld_local): Add hidden extern, possibly in .sdata section.
7046 * configure.in: Add tests for visibility attribute and .sdata.
7047 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
7048 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
7049 * sysdeps/arm/dl-machine.h: Likewise.
7050 * sysdeps/generic/ldsodefs.h: Likewise.
7051 * sysdeps/hppa/dl-machine.h: Likewise.
7052 * sysdeps/cris/dl-machine.h: Likewise.
7053 * sysdeps/i386/dl-machine.h: Likewise.
7054 * sysdeps/ia64/dl-machine.h: Likewise.
7055 * sysdeps/m68k/dl-machine.h: Likewise.
7056 * sysdeps/mips/mips64/dl-machine.h: Likewise.
7057 * sysdeps/mips/dl-machine.h: Likewise.
7058 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7059 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7060 * sysdeps/sh/dl-machine.h: Likewise.
7061 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7062 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7063 * sysdeps/x86_64/dl-machine.h: Likewise.
7065 2002-02-28 Ulrich Drepper <drepper@redhat.com>
7067 * login/login.c (login): Always initialize ut_line field
7070 2002-02-28 Jakub Jelinek <jakub@redhat.com>
7072 * sysdeps/i386/Makefile (sysdep_routines): Add
7074 (shared-only-routines): Likewise.
7075 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
7076 (shared-only-routines): Likewise.
7077 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
7078 (shared-only-routines): Likewise.
7079 * sysdeps/wordsize-32/divdi3.c: New file.
7081 2002-02-28 Ulrich Drepper <drepper@redhat.com>
7083 * locale/iso-4217.def: Remove obsolete currencies for countries
7086 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
7088 * posix/regcomp.c (regcomp): Remove a redundant condition.
7089 (init_word_char): Add a check on malloc failure.
7090 (create_initial_state): Likewise.
7091 (duplicate_node): Likewise.
7092 (calc_eclosure): Likewise.
7093 (calc_eclosure_iter): Likewise.
7094 (parse_expression): Likewise.
7095 (parse_bracket_exp): Remove unnecessary malloc invocations.
7096 (build_equiv_class): Likewise.
7097 (build_charclass): Likewise.
7098 * posix/regex_internal.c (re_node_set_intersect): Add a check
7100 (re_node_set_add_intersect): Likewise.
7101 (re_node_set_merge): Likewise.
7102 (re_acquire_state): Likewise.
7103 (re_acquire_state_context): Likewise.
7104 (create_newstate_common): Likewise.
7105 (register_state): Likewise.
7106 (create_ci_newstate): Likewise.
7107 (create_cd_newstate): Likewise.
7108 * posix/regex_internal.h: Fix prototypes of re_acquire_state
7109 and re_acquire_state_context.
7110 * posix/regexec.c (regexec): Suit it to the error handling of
7112 (re_match): Likewise.
7113 (re_search): Likewise.
7114 (re_search_internal): Add a check on malloc failure.
7115 (acquire_init_state_context): Likewise.
7116 (check_matching): Likewise.
7117 (proceed_next_node): Likewise.
7118 (set_regs): Likewise.
7119 (sift_states_backward): Likewise.
7120 (sift_states_iter_bkref): Likewise.
7121 (add_epsilon_backreference): Likewise.
7122 (transit_state): Likewise.
7123 (transit_state_sb): Likewise.
7124 (transit_state_mb): Likewise.
7125 (transit_state_bkref_loop): Likewise.
7126 (build_trtable): Likewise.
7127 (group_nodes_into_DFAstates): Likewise.
7128 (match_ctx_init): Likewise.
7129 (match_ctx_add_entry): Likewise.
7131 2002-02-27 Ulrich Drepper <drepper@redhat.com>
7133 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
7134 l_libname if profiling is enabled [PR libc/2916].
7136 * sysdeps/ia64/dl-tls.h: New file.
7138 2002-02-27 Jakub Jelinek <jakub@redhat.com>
7140 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
7141 Work around an Alpha gas bug.
7143 2002-02-27 Ulrich Drepper <drepper@redhat.com>
7145 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
7146 uses read to load the catalog.
7147 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
7149 2002-02-26 Ulrich Drepper <drepper@redhat.com>
7151 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
7152 regex_internal.c, and regex_internal.h.
7153 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
7154 * posix/regex.c: Complete rewrite.
7155 * posix/regexec.c: New file.
7156 * posix/regcomp.c: New file.
7157 * posix/regex_internal.c: New file.
7158 * posix/regex_internal.h: New file.
7159 * posix/regex.h (RE_ICASE): New macro.
7160 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
7162 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
7163 ungetwc. It's a macro.
7164 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
7166 Reported by Jason Merrill <jason@redhat.com>.
7168 2002-02-25 Jakub Jelinek <jakub@redhat.com>
7170 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
7171 position to fp->_offset if it is set.
7172 * stdio-common/Makefile (tests): Add tst-fdopen.
7173 * stdio-common/tst-fdopen.c: New test.
7175 2002-02-25 Jakub Jelinek <jakub@redhat.com>
7177 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
7178 * stdio-common/tst-ungetc.c (main): Add another test.
7180 2002-02-25 Ulrich Drepper <drepper@redhat.com>
7182 * assert/assert-perr.c: Use INTUSE to reference functions and variables
7183 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
7184 aliases. Add prototypes for the new aliases.
7185 * assert/assert.c: Likewise.
7186 * include/libc-symbols.h: Likewise.
7187 * include/stdio.h: Likewise.
7188 * include/netinet/in.h: Likewise.
7189 * include/rpc/auth.h: Likewise.
7190 * include/rpc/auth_unix.h: Likewise.
7191 * include/rpc/key_prot.h: Likewise.
7192 * include/rpc/pmap_prot.h: Likewise.
7193 * include/rpc/pmap_rmt.h: Likewise.
7194 * include/rpc/rpc_msg.h: Likewise.
7195 * include/rpc/xdr.h: Likewise.
7196 * inet/gethstbyad_r.c: Likewise.
7197 * inet/gethstbynm2_r.c: Likewise.
7198 * inet/gethstbynm_r.c: Likewise.
7199 * inet/gethstent_r.c: Likewise.
7200 * inet/in6_addr.c: Likewise.
7201 * libio/__fpurge.c: Likewise.
7202 * libio/filedoalloc.c: Likewise.
7203 * libio/fileops.c: Likewise.
7204 * libio/ftello.c: Likewise.
7205 * libio/ftello64.c: Likewise.
7206 * libio/genops.c: Likewise.
7207 * libio/iofclose.c: Likewise.
7208 * libio/iofdopen.c: Likewise.
7209 * libio/iofflush.c: Likewise.
7210 * libio/iofflush_u.c: Likewise.
7211 * libio/iofgetpos.c: Likewise.
7212 * libio/iofgetpos64.c: Likewise.
7213 * libio/iofgets.c: Likewise.
7214 * libio/iofgets_u.c: Likewise.
7215 * libio/iofopen.c: Likewise.
7216 * libio/iofopncook.c: Likewise.
7217 * libio/iofputs.c: Likewise.
7218 * libio/iofread.c: Likewise.
7219 * libio/iofread_u.c: Likewise.
7220 * libio/iofsetpos.c: Likewise.
7221 * libio/iofsetpos64.c: Likewise.
7222 * libio/ioftell.c: Likewise.
7223 * libio/iofwrite.c: Likewise.
7224 * libio/iogetline.c: Likewise.
7225 * libio/iogets.c: Likewise.
7226 * libio/iogetwline.c: Likewise.
7227 * libio/iolibio.h: Likewise.
7228 * libio/iopadn.c: Likewise.
7229 * libio/iopopen.c: Likewise.
7230 * libio/ioseekoff.c: Likewise.
7231 * libio/ioseekpos.c: Likewise.
7232 * libio/iosetbuffer.c: Likewise.
7233 * libio/iosetvbuf.c: Likewise.
7234 * libio/ioungetc.c: Likewise.
7235 * libio/ioungetwc.c: Likewise.
7236 * libio/iovdprintf.c: Likewise.
7237 * libio/iovsprintf.c: Likewise.
7238 * libio/iovsscanf.c: Likewise.
7239 * libio/libioP.h: Likewise.
7240 * libio/memstream.c: Likewise.
7241 * libio/obprintf.c: Likewise.
7242 * libio/oldfileops.c: Likewise.
7243 * libio/oldiofclose.c: Likewise.
7244 * libio/oldiofdopen.c: Likewise.
7245 * libio/oldiofgetpos.c: Likewise.
7246 * libio/oldiofgetpos64.c: Likewise.
7247 * libio/oldiofopen.c: Likewise.
7248 * libio/oldiofsetpos.c: Likewise.
7249 * libio/oldiofsetpos64.c: Likewise.
7250 * libio/oldiopopen.c: Likewise.
7251 * libio/oldstdfiles.c: Likewise.
7252 * libio/putc.c: Likewise.
7253 * libio/setbuf.c: Likewise.
7254 * libio/setlinebuf.c: Likewise.
7255 * libio/stdfiles.c: Likewise.
7256 * libio/stdio.c: Likewise.
7257 * libio/strops.c: Likewise.
7258 * libio/vasprintf.c: Likewise.
7259 * libio/vscanf.c: Likewise.
7260 * libio/vsnprintf.c: Likewise.
7261 * libio/vswprintf.c: Likewise.
7262 * libio/wfiledoalloc.c: Likewise.
7263 * libio/wfileops.c: Likewise.
7264 * libio/wgenops.c: Likewise.
7265 * libio/wstrops.c: Likewise.
7266 * malloc/mtrace.c: Likewise.
7267 * misc/error.c: Likewise.
7268 * misc/syslog.c: Likewise.
7269 * nss/getXXbyYY_r.c: Likewise.
7270 * nss/getXXent_r.c: Likewise.
7271 * nss/hosts-lookup.c: Likewise.
7272 * stdio-common/getw.c
7273 * stdio-common/printf-prs.c: Likewise.
7274 * stdio-common/printf_fp.c: Likewise.
7275 * stdio-common/printf_size.c: Likewise.
7276 * stdio-common/putw.c: Likewise.
7277 * stdio-common/scanf.c: Likewise.
7278 * stdio-common/sprintf.c: Likewise.
7279 * stdio-common/tmpfile64.c: Likewise.
7280 * stdio-common/vfprintf.c: Likewise.
7281 * stdio-common/vfscanf.c: Likewise.
7282 * stdlib/strfmon.c: Likewise.
7283 * sunrpc/auth_des.c: Likewise.
7284 * sunrpc/auth_none.c: Likewise.
7285 * sunrpc/auth_unix.c: Likewise.
7286 * sunrpc/authdes_prot.c: Likewise.
7287 * sunrpc/authuxprot.c: Likewise.
7288 * sunrpc/clnt_perr.c: Likewise.
7289 * sunrpc/clnt_raw.c: Likewise.
7290 * sunrpc/clnt_tcp.c: Likewise.
7291 * sunrpc/clnt_udp.c: Likewise.
7292 * sunrpc/clnt_unix.c: Likewise.
7293 * sunrpc/key_call.c: Likewise.
7294 * sunrpc/key_prot.c: Likewise.
7295 * sunrpc/openchild.c: Likewise.
7296 * sunrpc/pm_getmaps.c: Likewise.
7297 * sunrpc/pm_getport.c: Likewise.
7298 * sunrpc/pmap_clnt.c: Likewise.
7299 * sunrpc/pmap_prot.c: Likewise.
7300 * sunrpc/pmap_prot2.c: Likewise.
7301 * sunrpc/pmap_rmt.c: Likewise.
7302 * sunrpc/rpc_cmsg.c: Likewise.
7303 * sunrpc/rpc_prot.c: Likewise.
7304 * sunrpc/svc_authux.c: Likewise.
7305 * sunrpc/svc_raw.c: Likewise.
7306 * sunrpc/svc_simple.c: Likewise.
7307 * sunrpc/svc_tcp.c: Likewise.
7308 * sunrpc/svc_udp.c: Likewise.
7309 * sunrpc/svc_unix.c: Likewise.
7310 * sunrpc/xdr.c: Likewise.
7311 * sunrpc/xdr_array.c: Likewise.
7312 * sunrpc/xdr_mem.c: Likewise.
7313 * sunrpc/xdr_rec.c: Likewise.
7314 * sunrpc/xdr_ref.c: Likewise.
7315 * sunrpc/xdr_stdio.c: Likewise.
7316 * sysdeps/generic/_strerror.c: Likewise.
7317 * sysdeps/generic/printf_fphex.c: Likewise.
7318 * sysdeps/generic/tmpfile.c: Likewise.
7319 * sysdeps/gnu/errlist.awk: Likewise.
7320 * sysdeps/gnu/errlist.c: Likewise.
7322 * libio/Makefile (routines): Remove iosprint.
7323 * libio/iosprintf.c: Removed
7326 2002-02-24 Ulrich Drepper <drepper@redhat.com>
7328 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
7329 non_dynamic_init and exported now.
7330 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
7331 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
7333 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
7334 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7335 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7337 2002-02-23 Ulrich Drepper <drepper@redhat.com>
7339 * elf/dl-close.c (free_slotinfo): Check for end of list and return
7342 * locale/iso-639.def: Add language codes for Walloon.
7344 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
7345 total number of relocations performed.
7347 * elf/sprof.c (load_profdata): If do_test provide information as
7348 to why loading failed.
7349 * elf/dl-profile.c (_dl_start_profile): Initialize all of
7352 * csu/set-init.c: Moved to...
7353 * sysdeps/mach/hurd/set-init.c: ...here. New file.
7354 * csu/Makefile: Don't compile set-init.
7355 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
7356 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
7358 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7359 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7360 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
7362 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
7365 2002-02-22 Ulrich Drepper <drepper@redhat.com>
7367 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
7368 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
7369 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
7370 (_dl_deallocate_tls): New function.
7371 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
7374 2002-02-21 Jakub Jelinek <jakub@redhat.com>
7376 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
7377 * stdio-common/tst-fseek.c (main): Add test for this.
7379 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
7381 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
7383 2002-02-19 Jakub Jelinek <jakub@redhat.com>
7385 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
7386 pointer before dereferencing.
7388 2002-02-18 Roland McGrath <roland@frob.com>
7390 * sysdeps/mach/hurd/times.c: Fix typo in last change.
7392 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
7393 Use task_policy in place of task_priority.
7395 * sysdeps/generic/bits/mman.h
7396 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
7397 * sysdeps/mach/msync.c: New file.
7399 * sysdeps/mach/powerpc/syscall.S: New file.
7401 * mach/msg.c [MACH_MSG_OVERWRITE]
7402 (__mach_msg_trap, __mach_msg_overwrite): New functions.
7403 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
7405 * sysdeps/mach/configure.in: Check for clock.defs to put into
7406 mach_interface_list.
7407 * sysdeps/mach/configure: Regenerated.
7409 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
7410 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
7411 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
7412 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
7413 (mach-shortcuts): Add device_read_overwrite_request,
7414 device_read_overwrite, vm_read_overwrite, thread_switch.
7416 * configure.in (base_machine): Set to $machine by default.
7417 * configure: Regenerated.
7419 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
7420 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
7421 * sysdeps/mach/configure: Regenerated.
7422 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
7424 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
7426 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
7428 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
7429 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
7431 2002-02-17 Roland McGrath <roland@frob.com>
7433 * sysdeps/mach/hurd/times.c
7434 [NO_CREATION_TIME] (startup_time): New static variable.
7435 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
7436 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
7437 creation_time from task_basic_info.
7438 (__times): Use __gettimeofday instead of __host_get_time.
7440 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
7441 Use untyped Mach IPC message format.
7443 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
7445 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
7446 _S_catch_exception_raise_state_identity,
7447 _hurdsig_fault_catch_exception_raise_state,
7448 _hurdsig_fault_catch_exception_raise_state_identity.
7450 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
7452 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
7453 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
7455 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
7456 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
7458 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
7459 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
7460 them as no-op macros.
7461 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
7462 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
7464 * sysdeps/powerpc/dl-machine.h
7465 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
7467 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
7468 Use untyped Mach IPC message format.
7470 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
7471 Handle untyped Mach IPC message formats.
7473 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
7474 Expect different argument conventions when this is defined.
7475 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
7476 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
7477 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
7478 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
7479 for OSF Mach variant.
7480 (faulted): Use mig_reply_error_t for REPLY.
7481 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
7482 in __thread_set_exception_ports call.
7483 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
7484 __mach_port_set_attributes in place of __mach_port_set_qlimit.
7486 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
7487 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
7488 on Darwin, which includes bogons.
7490 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
7491 variable LOADBASE so it's not declared when it's not used.
7493 2002-02-16 Roland McGrath <roland@frob.com>
7495 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
7496 to use BI.creation_time.
7498 * mach/Machrules (MIG): Add -x c to CPP value passed down.
7500 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
7501 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
7502 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
7503 host_page_size instead of vm_statistics.
7505 * sysdeps/mach/Makefile (mach-before-compile): Don't include
7506 mach_interface.h here, since not all variants use that name.
7508 * sysdeps/mach/configure.in: Add some checks for Mach headers
7509 to ensure a sane installation.
7510 (mach_interface_list): Define this variable by checking for .defs
7511 files found in various variants.
7512 * configure.in (mach_interface_list): AC_SUBST this.
7513 * config.make.in (mach-interface-list): New substituted variable.
7514 * mach/Makefile (user-interfaces): Define this using the value
7515 of $(mach-interface-list) instead of mach, mach4.
7516 Updated other references to mach_interface to use it as well.
7518 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
7520 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
7521 mig_reply_error_t for OSF Mach variant.
7523 * mach/Makefile (routines): Remove bootprivport.
7524 * mach/bootprivport.c: File removed. It has never been used.
7526 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
7527 Grok the OSF flavor of message format.
7528 (mach_msg_destroy_port): For MAKE_SEND and
7529 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
7530 no-senders notification.
7532 2002-02-06 Roland McGrath <roland@frob.com>
7534 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
7535 to here if 2.0 compatibility enabled ...
7536 (libc: GLIBC_2.1.3): ... from here.
7538 2002-02-15 Ulrich Drepper <drepper@redhat.com>
7540 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
7542 * elf/dl-close.c (_dl_close): Likewise.
7544 2002-02-14 Ulrich Drepper <drepper@redhat.com>
7546 * elf/Makefile: Add rules to build and run tst-tls8.
7547 * elf/tst-tls8.c: New file.
7548 * elf/tst-tlsmod4.c: New file.
7550 * stdlib/test-a64l.c (tests): Add more test cases.
7552 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
7553 Reported by Walter Harms <WHarms@bfs.de>.
7555 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
7557 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
7558 definitions for struct sigcontext.
7559 Suggested by David Mosberger-Tang.
7561 2002-02-13 Ulrich Drepper <drepper@redhat.com>
7563 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
7564 for removing reference of module in slotinfo list.
7565 (_dl_close): Use remove_slotinfo.
7566 * sysdeps/generic/dl-tls.c: General pretty printing.
7567 (oom): Define only if SHARED.
7568 (_dl_next_tls_modid): Correct starting point for the case we assume
7569 there is a gap. Add missing instruction grouping (doh!). Correct
7570 tests for reaching maximum index.
7571 * elf/Makefile: Add rules to build and run tst-tls7.
7572 * elf/tst-tls7.c: New file.
7573 * elf/tst-tlsmod3.c: New file.
7575 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
7577 * elf/tst-tlsmod2.c: Likewise.
7579 * elf/dl-close.c (_dl_close): When closing an object using TLS
7580 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
7581 true. Increment dl_tls_generation only if we closed any TLS-using
7583 * elf/tst-tls6.c: New file.
7584 * elf/Makefile: Add rules to build and run tst-tls6.
7586 * po/da.po: Update from translation team.
7588 * locale/categories.def: Fix typo [PR libc/2948].
7589 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
7591 * locale/iso-4217.def: Update from official version [PR libc/2950].
7592 * glibcbug.in: Honor TMPDIR [PR libc/2951].
7593 * locale/programs/ld-collate.c (collate_finish): Bail out with a
7594 message if input is too confusion instead of using assert.
7595 (collate_read): Don't crash on unknown symbol [PR libc/2952].
7596 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
7598 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
7599 * elf/tst-tls2.c: Likewise.
7600 * elf/tst-tls3.c: Likewise.
7602 2002-02-13 Jakub Jelinek <jakub@redhat.com>
7604 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
7606 2002-02-13 Ulrich Drepper <drepper@redhat.com>
7608 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
7609 if this is really necessary.
7611 * elf/dl-close.c (_dl_close): Implement freeing entries in the
7613 (free_mem): Free memory for the slotinfo array if possible.
7615 2002-02-12 Andreas Schwab <schwab@suse.de>
7617 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
7619 2002-02-12 Ulrich Drepper <drepper@redhat.com>
7621 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
7623 (oom): New function.
7624 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
7625 (_dl_determine_tlsoffset): Likewise.
7626 (_dl_allocate_tls): Likewise.
7627 (__TLS_GET_ADDR): Define if not already defined.
7628 (_dl_tls_symaddr): New function.
7629 (allocate_and_init): New function.
7630 (__tls_get_addr): Actually implement handling of generation counter
7631 and deferred allocation.
7632 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
7633 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
7635 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
7636 Declare _dl_tls_symaddr.
7637 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
7639 * include/link.h (struct link_map): Remove l_tls_nextimage and
7641 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
7642 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
7643 (_dl_vsym): Likewise.
7644 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
7646 (dl_main): Allow PT_TLS be present for empty segment. Remove
7647 nextimage list handling. Instead add all modules using TLS to
7648 dl_tls_dtv_slotinfo_list.
7649 * elf/dl-open.c (dl_open_worker): After successfully loading all
7650 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
7651 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
7652 empty segment don't do anything. Remove handling of initimage list.
7653 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
7654 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
7655 * elf/dl-minimal.c: Define __libc_memalign.
7656 * elf/dl-support.c: Remove _dl_initimage_list. Add
7657 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
7659 * include/stdlib.h: Declare __libc_memalign.
7661 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
7662 * elf/tst-tls4.c: New file.
7663 * elf/tst-tls5.c: New file.
7664 * elf/tst-tlsmod2.c: New file.
7666 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
7668 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
7670 * elf/tst-tls1.c: Use test-skeleton.c.
7671 * elf/tst-tls2.c: Likewise.
7672 * elf/tst-tls3.c: Likewise.
7674 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
7676 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
7678 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
7680 2002-02-10 Ulrich Drepper <drepper@redhat.com>
7682 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
7684 * elf/tst-tls3.c: New file.
7685 * elf/tst-tlsmod1.c: New file.
7686 * elf/Makefile: Add rules to build and run tst-tls3.
7688 * sysdeps/i386/dl-machine.h: Include <tls.h>.
7689 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
7692 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
7694 * po/fr.po: Update from translation team.
7696 * elf/tls-macros.h: Add alternative macros for use in PIC.
7698 * elf/dl-lookup.c: Include <tls.h>.
7699 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
7701 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
7702 required by passing pointer to last element of the list.
7704 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
7705 l_tls_initimage to a place where it actually is performed.
7707 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
7708 after globfree() calls.
7710 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
7711 (openaux): Pass open_mode as new last argument to _dl_map_object.
7712 (_dl_map_object_deps): Add new argument open_mode. Initialize
7713 open_mode element of args variable with it.
7714 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
7715 _dl_map_object_deps.
7716 * elf/rtld.c (dl_main): Add zero as last parameter to
7717 _dl_map_object_deps call.
7718 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
7719 * elf/nodlopen2.c: New file.
7720 * elf/nodlopenmod2.c: New file.
7721 * elf/Makefile: Add rules to build and run nodlopen2.
7723 * elf/tst-tls1.c: Move TLS helper macros to...
7724 * elf/tls-macros.h: ...here. New file.
7725 * elf/tst-tls2.c: New file.
7726 * elf/Makefile (tests): Add tst-tls2.
7727 (distribute): Add tls-macros.h.
7729 * po/sv.po: Update from translation team.
7731 * elf/tst-tls1.c (main): Add complete set of tests. Split
7732 architecture specific definitions from the actual test code.
7734 * po/tr.po: Update from translation team.
7736 2002-02-09 Ulrich Drepper <drepper@redhat.com>
7738 * elf/Makefile (tests): Add tst-tls1.
7739 * elf/tst-tls1.c: New file.
7741 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
7742 alignment of TCB for now.
7744 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
7745 initialization image for the application itself.
7747 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
7748 loop to initialize TLS block.
7750 2002-02-08 Richard Henderson <rth@redhat.com>
7752 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
7753 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
7755 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
7757 2002-02-09 Jakub Jelinek <jakub@redhat.com>
7759 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
7761 2002-02-08 Ulrich Drepper <drepper@redhat.com>
7763 * po/ca.po: Update from translation team.
7764 * po/sk.po: Likewise.
7766 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
7767 (dl_main): Move dtv/static TLS handling before relocation.
7768 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
7769 TLS_INIT_TP to allocate and install the dtv/static TLS block.
7770 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
7771 so far uses TLS initialize GL(dl_tls_static_size) and
7772 GL(dl_tls_static_align) to account for the TCB.
7773 (_dl_allocate_tls): New function.
7774 * sysdeps/generic/ldsodefs.h (rtld_global): Add
7775 _dl_initial_dtv_malloced.
7777 * configure.in: Test for __builtin_memset more realistically.
7779 * csu/version.c (banner): If TLS support is available say so.
7781 2002-02-04 H.J. Lu <hjl@gnu.org>
7783 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
7785 (__dl_runtime_resolve): Likewise.
7787 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
7790 2001-11-15 H.J. Lu <hjl@gnu.org>
7792 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
7793 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
7795 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
7797 2002-02-07 H.J. Lu <hjl@gnu.org>
7799 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
7801 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
7804 2002-02-07 Ulrich Drepper <drepper@redhat.com>
7806 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
7808 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
7809 ___tls_get_addr_internal.
7810 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
7812 * po/ko.po: Update from translation team.
7814 2002-02-07 Jakub Jelinek <jakub@redhat.com>
7816 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
7817 attribute, change __pad{1,2} type to unsigned int.
7818 (struct stat64): Remove packed attribute.
7820 2002-02-07 Ulrich Drepper <drepper@redhat.com>
7822 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
7824 2002-02-07 Andreas Schwab <schwab@suse.de>
7826 * configure.in: Fix check for -zcombreloc.
7828 2002-02-06 H.J. Lu <hjl@gnu.org>
7830 * config.h.in (HAVE_BUILTIN_MEMSET): New.
7831 * configure.in: Check if __builtin_memset really works.
7832 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
7833 __GNUC_PREREQ (2, 96) before using __builtin_memset.
7835 2002-02-06 Jakub Jelinek <jakub@redhat.com>
7837 * io/bug-ftw3.c (main): Don't try the test if root.
7839 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
7841 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
7843 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
7844 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
7845 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
7847 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
7848 a weak alias for __clone.
7849 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
7850 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
7851 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
7852 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
7853 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
7854 a weak alias for __mmap64.
7856 2002-02-05 H.J. Lu <hjl@gnu.org>
7858 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
7859 (atomic_add): Likewise.
7860 (compare_and_swap): Likewise.
7861 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
7863 2002-02-07 Ulrich Drepper <drepper@redhat.com>
7865 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
7867 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
7868 alignment of the TCB and store total size and alignment of static
7869 TLS block in _dl_tls_static_size and _dl_tls_static_align.
7870 tls_index is a typedef.
7871 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
7872 _dl_tls_static_align.
7873 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
7874 * elf/dl-support.c: Define _dl_tls_static_size and
7875 _dl_tls_static_align.
7877 2002-02-06 Ulrich Drepper <drepper@redhat.com>
7879 * configure.in: Add --without-tls option.
7880 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
7881 --without-tls is given.
7883 * sysdeps/generic/dl-tls.c: Include <tls.h>.
7885 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
7887 2002-02-06 Roland McGrath <roland@frob.com>
7889 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
7890 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
7892 * scripts/versions.awk: Improve error message for missing version.
7893 Each version inherits from the last one only if they have the same
7894 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
7895 but not GLIBC_x and FOO_y.
7897 * scripts/firstversions.awk: Handle libraries that don't have each
7898 particular version named in the third column of shlib-versions.
7900 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
7902 2002-02-06 Ulrich Drepper <drepper@redhat.com>
7904 * Versions.def [ld]: Add GLIBC_2.3.
7905 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
7906 * elf/Makefile (dl-routines): Add dl-tls.
7907 (distribute): Add dl-tls.h.
7908 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
7909 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
7910 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
7911 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
7912 along with the other info in the link map. Change queueing of init
7913 images for double linked list. Use _dl_next_tls_modid to compute
7915 * elf/rtld.c (_dl_start_final): Store alignment requirement
7916 along with the other info in rtld map and executable map.
7917 (dl_main): Add ld.so to the init image list if necessary. Compute
7918 final module ID with _dl_next_tls_modid.
7919 * include/link.h (struct link_map): Add l_tls_previmage and
7921 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
7922 * sysdeps/i386/elf/Versions: New file.
7923 * sysdeps/generic/dl-tls.c: New file.
7924 * sysdeps/generic/dl-tls.h: New file.
7925 * sysdeps/i386/dl-tls.h: New file.
7927 2002-02-06 Roland McGrath <roland@frob.com>
7929 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
7930 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
7932 2002-01-05 Roland McGrath <roland@frob.com>
7934 * sysdeps/mach/configure.in: New file.
7935 * sysdeps/mach/configure: New generated file.
7937 * mach/Makefile (user-interfaces): Remove default_pager_helper.
7938 It has never been used by anything.
7940 2002-02-06 H.J. Lu <hjl@gnu.org>
7942 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
7945 2002-02-06 Ulrich Drepper <drepper@redhat.com>
7947 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
7948 attribute((packed)) to counter stupid people misusing gcc options.
7949 (struct stat64): Likewise.
7951 2002-02-05 Ulrich Drepper <drepper@redhat.com>
7953 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
7954 the variables which are used as booleans.
7956 2002-02-06 Andreas Jaeger <aj@suse.de>
7958 * include/libc-symbols.h (INTUSE): Renamed from INT.
7959 * elf/dl-deps.c: Change users.
7960 * sysdeps/generic/dl-sysdep.c: Likewise.
7961 * sysdeps/generic/dl-cache.c: Likewise.
7962 * elf/dl-reloc.c: Likewise.
7963 * elf/rtld.c: Likewise.
7964 * elf/dl-version.c: Likewise.
7965 * elf/dl-load.c: Likewise.
7966 * elf/dl-dst.h: Likewise.
7967 * elf/dl-init.c: Likewise.
7968 * elf/dl-error.c: Likewise.
7969 * elf/dl-fini.c: Likewise.
7970 * elf/dl-runtime.c: Likewise.
7971 * elf/do-lookup.h: Likewise.
7973 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
7975 * stdio-common/_itowa.h: Likewise.
7977 2002-02-05 Ulrich Drepper <drepper@redhat.com>
7979 * elf/dl-minimal.c: Define _itoa_lower_digits.
7981 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
7984 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
7985 loading modules with the DF_STATIC_TLS flag set.
7986 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
7988 * include/link.h (struct link_map): Add l_flags field.
7989 * elf/elf.h (DF_STATIC_TLS): New definition.
7991 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
7992 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
7994 * elf/rtld.c (process_dl_debug): Correct printing help message.
7995 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
7998 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
7999 definition and pass &errno in use of this variable.
8000 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
8002 2002-02-04 Andreas Schwab <schwab@suse.de>
8004 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
8005 * locale/programs/charmap-dir.c: Wrap calls that output messages
8006 with WITH_CUR_LOCALE. Include "localedef.h" first.
8007 * locale/programs/charmap.c: Likewise.
8008 * locale/programs/ld-address.c: Likewise.
8009 * locale/programs/ld-collate.c: Likewise.
8010 * locale/programs/ld-ctype.c: Likewise.
8011 * locale/programs/ld-identification.c: Likewise.
8012 * locale/programs/ld-measurement.c: Likewise.
8013 * locale/programs/ld-messages.c: Likewise.
8014 * locale/programs/ld-monetary.c: Likewise.
8015 * locale/programs/ld-name.c: Likewise.
8016 * locale/programs/ld-numeric.c: Likewise.
8017 * locale/programs/ld-paper.c: Likewise.
8018 * locale/programs/ld-telephone.c: Likewise.
8019 * locale/programs/ld-time.c: Likewise.
8020 * locale/programs/linereader.c: Likewise.
8021 * locale/programs/linereader.h: Likewise.
8022 * locale/programs/localedef.c: Likewise.
8023 * locale/programs/locfile.c: Likewise.
8024 * locale/programs/repertoire.c: Likewise.
8026 2002-02-05 Ulrich Drepper <drepper@redhat.com>
8028 * elf/rtld.c (_dl_start_final): Determine load address to locate
8029 ehdr with GL(dl_rtld_map).l_map_start.
8031 * po/ca.po: Update from translation team.
8033 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
8034 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
8036 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
8038 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
8040 2002-02-04 Ulrich Drepper <drepper@redhat.com>
8042 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
8043 * include/link.h (struct link_map): Add various members for TLS
8045 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
8046 _rtld_tlsoffset, add _dl_initimage_list.
8047 * sysdeps/i386/dl-lookupcfg.h: New file.
8048 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
8049 TLS relocation. When using TLS we now use RESOLVE_MAP.
8050 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
8053 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
8056 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
8057 thread-pointer as soon as possible.
8058 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
8059 elements in rtld_global.
8060 * sysdeps/generic/tls.h: New file.
8061 * elf/Makefile (distribute): Add tls.h.
8062 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
8063 relocations. Not complete yet.
8065 * resolv/resolv.h: Allow user to define __need_res_state and only
8066 define __res_start structure then.
8067 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
8069 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
8070 dl_cpuclock_offset initialization to _dl_start_final.
8071 (_dl_show_auxv): Avoid unnecessary sign extension.
8072 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
8074 2002-02-03 Ulrich Drepper <drepper@redhat.com>
8076 * config.h.in: Add HAVE_TLS_SUPPORT.
8077 * sysdeps/i386/elf/configure.in: New file.
8079 2002-02-03 Andreas Schwab <schwab@suse.de>
8081 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
8082 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
8084 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
8086 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
8087 alloca if the memory reqirements are too high.
8089 2002-02-03 Ulrich Drepper <drepper@redhat.com>
8091 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
8092 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
8093 the former is available anyway and speed isn't important here.
8094 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
8095 * elf/dl-version.c (match_symbol): Likewise.
8096 (_dl_check_map_versions): Likewise.
8097 * elf/rtld.c (process_envvars): Likewise.
8098 (print_statistics): Likewise.
8099 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
8100 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
8101 bases. Add assert to catch uses of unimplemented features.
8102 (__strsep): Add assert to catch uses of unimplemented features.
8103 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
8104 and avoid inline optimization.
8105 * elf/rtld.c (process_envvars): Likewise.
8106 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
8107 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
8108 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
8110 2002-02-02 Ulrich Drepper <drepper@redhat.com>
8112 * stdio-common/_itoa.h: Minor simplifications of the code.
8113 * stdio-common/_itoa.c: Likewise.
8115 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
8116 instead of _dl_printf for debugging info output.
8118 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
8119 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
8121 2002-02-01 H.J. Lu <hjl@gnu.org>
8123 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
8124 (atomic_add): Likewise.
8125 (compare_and_swap): Return 0 only when failed to compare. Use
8128 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
8131 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
8133 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
8135 2002-02-02 Ulrich Drepper <drepper@redhat.com>
8137 * elf/dl-minimal.c (__strsep): New minimal implementation.
8139 2002-02-02 Paul Eggert <eggert@twinsun.com>
8141 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
8142 (__mktime_internal): If no tm_isdst is requested, prefer solutions
8143 with tm_isdst > 0 when the requested time falls within a
8144 spring-forward gap [PR libc/2894].
8146 2002-02-03 Andreas Schwab <schwab@suse.de>
8148 * stdio-common/tst-rndseek.c: Increase timeout.
8150 2002-02-02 Ulrich Drepper <drepper@redhat.com>
8152 Change ld.so to not use functions which are exported. One cannot
8153 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
8155 * include/libc-symbols.h: Define INT and INTDEF.
8156 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
8157 _dl_signal_error_internal, _dl_map_object_internal,
8158 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
8159 _dl_lookup_versioned_symbol_internal,
8160 _dl_relocate_object_internal, _dl_debug_state_internal,
8161 _dl_start_profile_internal, and _dl_unload_cache_internal.
8162 * include/dlfcn.h: Declare _dl_catch_error_internal.
8163 * elf/rtld.c: Use INT for calls to any of the *_internal functions
8164 above. Add INTDEF to function definitions.
8165 * elf/dl-debug.c: Likewise.
8166 * elf/dl-deps.c: Likewise.
8167 * elf/dl-dst.h: Likewise.
8168 * elf/dl-error.c: Likewise.
8169 * elf/dl-fini.c: Likewise.
8170 * elf/dl-init.c: Likewise.
8171 * elf/dl-load.c: Likewise.
8172 * elf/dl-lookup.c: Likewise.
8173 * elf/dl-misc.c: Likewise.
8174 * elf/dl-open.c: Likewise.
8175 * elf/dl-profile.c: Likewise.
8176 * elf/dl-reloc.c: Likewise.
8177 * elf/dl-runtime.c: Likewise.
8178 * elf/dl-version.c: Likewise.
8179 * elf/do-lookup.h: Likewise.
8180 * sysdeps/generic/dl-cache.c: Likewise.
8181 * sysdeps/generic/dl-sysdep.c: Likewise.
8182 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
8183 instead of _dl_init.
8184 * sysdeps/arm/dl-machine.h: Likewise.
8185 * sysdeps/cris/dl-machine.h: Likewise.
8186 * sysdeps/hppa/dl-machine.h: Likewise.
8187 * sysdeps/i386/dl-machine.h: Likewise.
8188 * sysdeps/ia64/dl-machine.h: Likewise.
8189 * sysdeps/m68k/dl-machine.h: Likewise.
8190 * sysdeps/mips/dl-machine.h: Likewise.
8191 * sysdeps/mips/mips64/dl-machine.h: Likewise.
8192 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8193 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8194 * sysdeps/sh/dl-machine.h: Likewise.
8195 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8196 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8197 * sysdeps/x86_64/dl-machine.h: Likewise.
8198 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
8200 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
8201 and _dl_debug_initialize.
8203 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
8205 * elf/rtld.c (dl_main): Avoid strrchr.
8206 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
8207 result of readlink. Search from the back for '/'.
8209 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
8210 strncpy if possible.
8212 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
8214 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
8215 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
8216 strspn, and strcspn.
8217 (process_envvars): Don't use strcspn.
8219 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
8220 (_dl_dst_substitute): Likewise.
8222 2002-02-01 Ulrich Drepper <drepper@redhat.com>
8224 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
8225 code which is never used when relocating ld.so itself.
8227 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
8228 starting ld.so itself. Move l_addr variable initialization closer
8230 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
8232 2002-02-01 Jakub Jelinek <jakub@redhat.com>
8234 * Versions.def (libc): Add GLIBC_PRIVATE.
8235 (libdb, libnss_db, libdb1): Remove.
8236 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
8237 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
8238 (libpthread): Add GLIBC_PRIVATE.
8239 (libresolv): Likewise, remove GLIBC_2.1.
8240 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
8241 GLIBC_2.2.3, GLIBC_2.3.
8242 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
8243 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
8244 _dl_sym, _dl_vsym): Likewise.
8245 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
8246 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
8247 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
8248 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
8249 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
8250 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
8251 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
8252 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
8254 (_dl_object_relocation_scope): Remove.
8255 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
8256 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
8257 __gconv_cache): Move to GLIBC_PRIVATE.
8258 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
8259 __internal_setnetgrent): Likewise.
8260 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
8261 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
8262 * locale/Versions (__collate_element_hash, __collate_element_strings,
8263 __collate_symbol_classes, __collate_symbol_hash,
8264 __collate_symbol_strings, _nl_current_LC_COLLATE,
8265 _nl_current_LC_CTYPE): Likewise.
8266 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
8267 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
8268 (libnss_nis, libnss_nisplus): Likewise.
8269 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
8270 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
8271 (libnss_files): Move all symbols to GLIBC_PRIVATE.
8272 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
8273 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
8274 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
8275 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
8276 __ns_get16, __ns_samename): Likewise.
8277 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
8278 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
8280 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
8281 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
8282 __libc_connect): Likewise.
8283 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
8285 * stdlib/Versions (__libc_system): Likewise.
8286 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
8287 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
8288 * sysdeps/ia64/fpu/Versions: Likewise.
8289 * sysdeps/ia64/Versions: Likewise.
8290 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
8291 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
8293 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
8294 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
8295 __libc_sigaction): Likewise.
8296 * termios/Versions (__libc_tcdrain): Likewise.
8298 * misc/sys/cdefs (__attribute_noinline__): Define.
8299 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
8300 __attribute_noinline__.
8302 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
8303 * elf/dl-xstat64.c: New file.
8304 * elf/dl-fxstat64.c: New file.
8305 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
8306 don't export __fxstat64 at multiple versions.
8307 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
8308 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
8310 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
8312 * locale/program/ld-collate.c (collate_finish): Assign a wide
8313 char collation sequence value to multi character collating
8314 elements, and avoid over writing by non-character elements.
8316 2002-02-01 Ulrich Drepper <drepper@redhat.com>
8318 * elf/Makefile (distribute): Add dl-procinfo.c.
8319 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
8320 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
8322 2002-02-01 Jakub Jelinek <jakub@redhat.com>
8324 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
8326 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
8327 _rtld_global struct.
8328 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
8329 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
8330 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8331 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
8332 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
8333 _dl_fpu_control_set): Remove unused externs.
8334 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
8335 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
8336 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
8337 related variables in _rtld_global struct.
8338 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
8339 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
8342 2002-02-01 Ulrich Drepper <drepper@redhat.com>
8344 * sysdeps/generic/dl-procinfo.c: New file.
8346 2002-02-01 Andreas Schwab <schwab@suse.de>
8348 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
8350 2002-02-01 Ulrich Drepper <drepper@redhat.com>
8352 * elf/rtld.c (_dl_start): Mark as internal_function.
8353 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
8355 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
8356 General pretty printing.
8358 2002-01-31 Ulrich Drepper <drepper@redhat.com>
8360 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
8361 * elf/dl-reloc.c: Pretty printing.
8362 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
8363 procinfo-related variables in rtld_global struct.
8364 * elf/dl-support.c: Likewise.
8365 * elf/rtld.c: Likewise.
8366 * sysdeps/i386/i686/Makefile: Likewise.
8367 * sysdeps/i386/i686/hp-timing.c: Likewise.
8368 * sysdeps/i386/i686/hp-timing.h: Likewise.
8369 * sysdeps/ia64/Makefile: Likewise.
8370 * sysdeps/ia64/hp-timing.c: Likewise.
8371 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
8372 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
8373 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
8374 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
8375 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8376 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
8377 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
8378 * sysdeps/x86_64/Makefile: Likewise.
8380 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
8381 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
8382 _dl_debug_fd to rtld_global.
8383 * elf/Versions: Likewise.
8384 * elf/dl-close.c: Likewise.
8385 * elf/dl-iteratephdr.c: Likewise.
8386 * elf/dl-lookup.c: Likewise.
8387 * elf/dl-misc.c: Likewise.
8388 * elf/dl-open.c: Likewise.
8389 * elf/dl-support.c: Likewise.
8390 * elf/do-lookup.h: Likewise.
8391 * elf/rtld.c: Likewise.
8392 * sysdeps/generic/dl-cache.c: Likewise.
8393 * sysdeps/generic/dl-sysdep.c: Likewise.
8394 * sysdeps/ia64/Versions: Likewise.
8395 * sysdeps/unix/clock_gettime.c: Likewise.
8396 * sysdeps/unix/clock_settime.c: Likewise.
8397 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8398 * sysdeps/sparc/Versions: Removed.
8399 * sysdeps/i386/i686/Versions : Removed.
8400 * sysdeps/x86_64/Versions: Removed.
8401 * configure.in: Define HAVE_PROTECTED if .protected is available.
8402 * config.h.in: Add entry for HAVE_PROTECTED.
8404 2002-01-31 Jakub Jelinek <jakub@redhat.com.
8406 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
8407 code in struct _rtld_global. Export this struct, remove all
8408 exports for the signal variables.
8409 * sysdeps/arm/dl-machine: Likewise.
8410 * sysdeps/generic/dl-origin: Likewise.
8411 * sysdeps/generic/dl-sysdep: Likewise.
8412 * sysdeps/generic/dl-cache: Likewise.
8413 * sysdeps/hppa/dl-fptr: Likewise.
8414 * sysdeps/hppa/dl-machine: Likewise.
8415 * sysdeps/cris/dl-machine: Likewise.
8416 * sysdeps/i386/dl-machine: Likewise.
8417 * sysdeps/ia64/dl-machine: Likewise.
8418 * sysdeps/m68k/dl-machine: Likewise.
8419 * sysdeps/mach/hurd/dl-sysdep: Likewise.
8420 * sysdeps/mips/mips64/dl-machine: Likewise.
8421 * sysdeps/mips/dl-machine: Likewise.
8422 * sysdeps/powerpc/elf/libc-start: Likewise.
8423 * sysdeps/powerpc/dl-machine: Likewise.
8424 * sysdeps/powerpc/dl-start: Likewise.
8425 * sysdeps/sparc/sparc32/dl-machine: Likewise.
8426 * sysdeps/sparc/sparc64/dl-machine: Likewise.
8427 * sysdeps/sh/dl-machine: Likewise.
8428 * sysdeps/s390/s390-32/dl-machine: Likewise.
8429 * sysdeps/s390/s390-64/dl-machine: Likewise.
8430 * sysdeps/unix/sysv/aix/libc-start: Likewise.
8431 * sysdeps/unix/sysv/aix/start-libc: Likewise.
8432 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
8433 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
8434 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
8435 * sysdeps/x86_64/dl-machine: Likewise.
8437 2002-01-31 Ulrich Drepper <drepper@redhat.com>
8439 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
8442 2002-01-31 Andreas Schwab <schwab@suse.de>
8444 * sysdeps/posix/readv.c: Check for ssize_t overflow.
8446 2002-01-31 Andreas Schwab <schwab@suse.de>
8448 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
8449 reference to _dl_pagesize.
8451 2002-01-30 Ulrich Drepper <drepper@redhat.com>
8453 * Versions.def [ld]: Add GLIBC_2.3.
8454 * elf/dl-addr.c: Move global variables for SHARED code in struct
8455 _rtld_global. Export this struct, remove all exports for the
8457 * elf/dl-close.c: Likewise.
8458 * elf/dl-conflict.c: Likewise.
8459 * elf/dl-debug.c: Likewise.
8460 * elf/dl-deps.c: Likewise.
8461 * elf/dl-dst.h: Likewise.
8462 * elf/dl-error.c: Likewise.
8463 * elf/dl-fini.c: Likewise.
8464 * elf/dl-init.c: Likewise.
8465 * elf/dl-iteratephdr.c: Likewise.
8466 * elf/dl-libc.c: Likewise.
8467 * elf/dl-load.c: Likewise.
8468 * elf/dl-lookup.c: Likewise.
8469 * elf/dl-minimal.c: Likewise.
8470 * elf/dl-object.c: Likewise.
8471 * elf/dl-open.c: Likewise.
8472 * elf/dl-profile.c: Likewise.
8473 * elf/dl-profstub.c: Likewise.
8474 * elf/dl-reloc.c: Likewise.
8475 * elf/dl-runtime.c: Likewise.
8476 * elf/dl-support.c: Likewise.
8477 * elf/dl-sym.c: Likewise.
8478 * elf/dl-version.c: Likewise.
8479 * elf/do-lookup.h: Likewise.
8480 * elf/do-rel.h: Likewise.
8481 * elf/dynamic-link.h: Likewise.
8482 * elf/rtld.c: Likewise.
8483 * sysdeps/generic/dl-cache.c: Likewise.
8484 * sysdeps/generic/dl-sysdep.c: Likewise.
8485 * sysdeps/generic/ldsodefs.h: Likewise.
8486 * sysdeps/generic/libc-start.c: Likewise.
8487 * sysdeps/i386/dl-machine.h: Likewise.
8488 * sysdeps/ia64/dl-fptr.c: Likewise.
8489 * sysdeps/ia64/dl-machine.h: Likewise.
8490 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
8491 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8492 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
8493 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
8494 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
8495 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
8496 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
8497 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
8499 2002-01-29 Ulrich Drepper <drepper@redhat.com>
8501 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
8503 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
8505 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
8507 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
8509 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
8511 2002-01-29 Ben Collins <bcollins@debian.org>
8513 * string/bits/string2.h (__mempcpy): Protect size arg for
8514 addition when using __builtin_memcpy.
8516 2002-01-29 Ulrich Drepper <drepper@redhat.com>
8518 * stdlib/Makefile (tests): Add tst-qsort.
8519 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
8521 * manual/signal.texi (Process Signal Mask): Document that
8522 pthread_sigmask, not sigprocmask, must be used in MT programs.
8523 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
8525 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
8527 * misc/Makefile (tests): Add tst-hsearch.
8528 * misc/tst-hsearch.c: New file.
8530 2002-01-18 Wolfram Gloger <wg@malloc.de>
8532 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
8533 * malloc/malloc.h: Likewise.
8534 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
8535 * malloc/arena.c: New file.
8536 * malloc/hooks.c: New file.
8537 * malloc/tst-mallocstate.c: New file.
8538 * malloc/Makefile: Add new testcase tst-mallocstate.
8539 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
8541 2002-01-28 Ulrich Drepper <drepper@redhat.com>
8543 * stdlib/msort.c: Remove last patch. The optimization violates the
8544 same rule which qsort.c had problems with.
8546 2002-01-27 Paul Eggert <eggert@twinsun.com>
8548 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
8549 to a pivot element that lies outside the array to be sorted, as
8550 ISO C99 requires that the comparison function be called only with
8551 addresses of array elements [PR libc/2880].
8553 2002-01-28 Ulrich Drepper <drepper@redhat.com>
8555 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
8556 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
8558 * timezone/asia: Update from tzdata2002b.
8559 * timezone/australasia: Likewise.
8560 * timezone/backward: Likewise.
8561 * timezone/europe: Likewise.
8562 * timezone/leapseconds: Likewise.
8563 * timezone/iso3166.tab: Likewise.
8564 * timezone/zone.tab: Likewise.
8566 2002-01-23 Richard Henderson <rth@redhat.com>
8568 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
8570 2002-01-28 Ulrich Drepper <drepper@redhat.com>
8572 * string/strxfrm.c: Allocate one more byte for rulearr and clear
8573 this element [PR libc/2855].
8575 * string/strcoll.c: Handle zero-length arguments specially
8578 2002-01-23 Jakub Jelinek <jakub@redhat.com>
8580 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
8581 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
8582 short lengths and constant src.
8583 (strcpy): Don't optimize for gcc 3.0+.
8584 (__stpcpy): For gcc 3.0+, don't use
8585 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
8586 for short string literal src.
8588 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
8590 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
8593 2001-01-22 Paul Eggert <eggert@twinsun.com>
8595 * manual/llio.texi (Linked Channels, Cleaning Streams):
8596 Make it clearer that a just-opened input stream might need cleaning.
8598 2002-01-21 H.J. Lu <hjl@gnu.org>
8600 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
8601 Don't use label at end of compound statement.
8603 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
8605 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
8606 Remove test for negative integer arg; sin_pi does it correctly.
8608 2002-01-20 Ulrich Drepper <drepper@redhat.com>
8610 * nscd/Makefile (distribute): Filter out xmalloc.c.
8612 2002-01-19 Ulrich Drepper <drepper@redhat.com>
8614 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
8615 Set offset if read end wasn't the buffer end.
8616 (_IO_file_seekoff_mmap): New function.
8617 (_IO_file_xsgetn_mmap): New function.
8618 (_IO_file_jumps_mmap): Use the two new functions.
8619 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
8621 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
8622 _IO_file_underflow_mmap.
8623 * libio/iofopen.c: Don't position file descriptor at end of file.
8624 * libio/tst-widetext.c: Improve error messages.
8625 * stdio-common/tst-rndseek.c: Likewise.
8627 2002-01-18 Ulrich Drepper <drepper@redhat.com>
8629 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
8630 end of enum for !_GNU_SOURCE.
8631 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
8632 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
8633 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
8634 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
8635 values unless _GNU_SOURCE.
8637 * iconvdata/tcvn5712-1.c: Minor cleanups.
8639 2002-01-18 Andreas Schwab <schwab@suse.de>
8641 * sysdeps/unix/sysv/linux/configure.in
8642 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
8644 2002-01-16 Roger Sayle <roger@eyesopen.com>
8646 * stdlib/msort.c (msort_with_tmp): Replace implementation with
8647 more efficient "Towers of Hanoi" mergesort.
8648 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
8649 for generic, sizeof(int) and sizeof(long) variants respectively.
8651 2002-01-17 Ulrich Drepper <drepper@redhat.com>
8653 * manual/syslog.texi (openlog): Describe possible problems with
8655 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
8657 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
8658 * nscd/connections.c (begin_drop_privileges): New function.
8659 (finish_drop_privileges): New function.
8660 (nscd_init): Call the new functions which also install all groups
8661 for the server user.
8662 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
8663 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
8665 2002-01-17 H.J. Lu <hjl@gnu.org>
8667 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
8670 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
8672 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
8673 instructions for pointer operations.
8674 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
8676 2002-01-17 Andreas Jaeger <aj@suse.de>
8678 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
8679 __uint128_t build-in.
8681 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
8682 PowerPC, sync with 2.2 branch.
8684 2002-01-16 Ulrich Drepper <drepper@redhat.com>
8686 * posix/getconf.c: Update copyright year.
8687 * nss/getent.c: Likewise.
8688 * nscd/nscd_nischeck.c: Likewise.
8689 * iconv/iconvconfig.c: Likewise.
8690 * iconv/iconv_prog.c: Likewise.
8691 * elf/ldconfig.c: Likewise.
8692 * catgets/gencat.c: Likewise.
8693 * csu/version.c: Likewise.
8694 * elf/ldd.bash.in: Likewise.
8695 * elf/sprof.c (print_version): Likewise.
8696 * locale/programs/locale.c: Likewise.
8697 * locale/programs/localedef.c: Likewise.
8698 * nscd/nscd.c (print_version): Likewise.
8699 * debug/xtrace.sh: Likewise.
8700 * malloc/memusage.sh: Likewise.
8701 * malloc/mtrace.pl: Likewise.
8703 2002-01-16 Andreas Schwab <schwab@suse.de>
8705 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
8706 reliably remove "-ia64" from rtld name.
8708 2002-01-16 Ulrich Drepper <drepper@redhat.com>
8710 * iconvdata/gb18030.c: Bug fixes and support for more characters.
8711 Patch by Yu Shao <yshao@redhat.com>.
8713 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
8715 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
8716 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
8717 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
8719 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
8721 * sysdeps/s390/fpu/libm-test-ulps: Update.
8723 2002-01-11 Ulrich Drepper <drepper@redhat.com>
8725 * elf/elf.h: Update x86 relocations.
8727 2002-01-10 Ulrich Drepper <drepper@redhat.com>
8729 * locale/programs/charmap.c (new_width): Check whether byte
8730 sequences for both ends of range have the same length.
8732 2002-01-09 Jakub Jelinek <jakub@redhat.com>
8734 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
8736 2002-01-09 Jakub Jelinek <jakub@redhat.com>
8738 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
8740 (__full_ieee754_sqrt): Add __attribute_used__.
8742 2002-01-10 Ulrich Drepper <drepper@redhat.com>
8744 * sysdeps/generic/group_member.c (__group_member): Also check
8745 groups[0] [PR libc/2781].
8747 2002-01-08 Ulrich Drepper <drepper@redhat.com>
8749 * Makefile (distribute): Add scripts/cpp.
8750 * elf/Makefile (distribute): Add reldep6mod[01234].c,
8751 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
8752 unwind-dw2-fde.h, and dwarf2.h.
8753 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
8754 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
8755 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
8756 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
8758 2002-01-07 Roland McGrath <roland@frob.com>
8760 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
8761 volatile on type of ARGC so the compiler doesn't get clever.
8763 2002-01-07 Andreas Jaeger <aj@suse.de>
8765 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
8766 * sysdeps/i386/bits/byteswap.h: Likewise.
8767 * sysdeps/ia64/bits/byteswap.h: Likewise.
8768 * sysdeps/m68k/bits/byteswap.h: Likewise.
8769 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
8770 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
8772 2002-01-02 Bruno Haible <bruno@clisp.org>
8774 * intl/plural.y: Fix %expect count.
8776 2002-01-03 Jakub Jelinek <jakub@redhat.com>
8778 * elf/Makefile (routines, shared-only-routines): Add
8779 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
8780 * elf/elf.h (PT_GNU_EH_FRAME): Define.
8781 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
8782 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
8783 Optimize if .eh_frame section contains no FDEs.
8784 (__register_frame, __deregister_frame_info_bases,
8785 __deregister_frame): Likewise.
8786 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
8787 DW_CFA_restore handling.
8789 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
8791 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
8793 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
8794 for x < 0.25 and restore original range reduction method.
8795 (__ieee754_lgammal_r): Make sure signgam is set before returning.
8797 2002-01-07 Ulrich Drepper <drepper@redhat.com>
8799 * libio/fileops.c (_IO_file_underflow_mmap): New function.
8800 (_IO_file_close_mmap): New function.
8801 (_IO_file_jumps_mmap): New variable.
8802 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
8803 trying to convert rest of byte buffer.
8804 (_IO_wfile_underflow_mmap): New function.
8805 (_IO_wfile_jumps_mmap): New variable.
8806 * libio/iofopen.c (__fopen_maybe_mmap): New function.
8807 (__fopen_internal): New function. Split out from _IO_new_fopen.
8808 (_IO_new_fopen): Call __fopen_internal.
8809 * libio/iofopen64.c: Just call __fopen_internal.
8810 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
8812 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
8813 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
8814 _IO_file_close_mmap.
8816 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
8817 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
8819 * stdio-common/Makefile (tests): Add tst-rndseek.
8820 * stdio-common/tst-rndseek.c: New file.
8822 2002-01-05 Roland McGrath <roland@frob.com>
8824 * config.h.in (HAVE_MIG_RETCODE): New #undef.
8825 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
8826 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
8827 * sysdeps/mach/hurd/configure: Regenerated.
8829 2002-01-03 Ulrich Drepper <drepper@redhat.com>
8831 * elf/elf.h: Add more TLS definitions.
8833 2002-01-02 Ulrich Drepper <drepper@redhat.com>
8835 * include/features.h (__GLIBC_MINOR__): Bump to 3.
8837 2002-01-02 Roland McGrath <roland@frob.com>
8839 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
8840 __sigisemptyset. Don't use MASK uninitialized.
8842 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
8843 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
8844 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
8845 __sigdelset, __sigaddset, __sigorset.
8847 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
8848 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
8850 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
8851 _hurd_ports is null.
8853 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
8854 for old CMU and new OSF Mach interface flavors.
8855 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
8856 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
8858 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
8860 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
8861 Pass extra arguments to task_create for OSF variant.
8862 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
8864 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
8865 conditional on [HAVE_AUX_VECTOR].
8867 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
8868 mach_msg_timeout_t as type of final argument.
8870 * hurd/privports.c (__get_privileged_ports):
8871 Change host_priv_t to mach_port_t in argument type.
8872 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
8875 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
8876 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
8877 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
8878 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
8879 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
8880 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
8882 2002-01-01 Roland McGrath <roland@frob.com>
8884 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
8886 2002-01-01 Ulrich Drepper <drepper@redhat.com>
8888 * include/stdlib.h: Define inlines for the _l variants of the strto*
8891 2002-01-01 Roland McGrath <roland@frob.com>
8893 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
8895 * mach/Machrules (MIG): Set CPP as well as CC.
8897 2001-12-31 Ulrich Drepper <drepper@redhat.com>
8899 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
8900 locale to parse /proc/loadavg [PR libc/2760].
8902 2001-12-31 Jakub Jelinek <jakub@redhat.com>
8904 * elf/dl-conflict.c: Include sys/param.h.
8905 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
8906 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
8908 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
8909 literals to avoid warnings.
8911 2001-12-31 Andreas Jaeger <aj@suse.de>
8913 * configure.in: Don't check for gsed since we do not use it anywhere.
8915 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
8917 * io/fts.c: Update from BSD to fix memory leaks.
8919 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
8921 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
8922 * elf/chroot_canon.c: Likewise.
8923 * elf/dl-object.c: Likewise.
8924 * iconv/iconv_charmap.c: Likewise.
8925 * iconv/iconv_prog.c: Likewise.
8926 * libio/iogetdelim.c: Likewise.
8927 * locale/lc-time.c: Likewise.
8928 * stdlib/canonicalize.c: Likewise.
8929 * sunrpc/svc.c: Likewise.
8930 * sysdeps/generic/glob.c: Likewise.
8932 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
8934 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
8935 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
8936 remove high order bit from the program counter.
8937 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
8939 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
8941 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
8942 unnecessary code and add missing reloc types.
8943 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
8944 case for reloc type R_390_NONE.
8946 2001-12-28 Andreas Jaeger <aj@suse.de>
8948 * io/bug-ftw3.c: Include string.h for prototypes.
8950 * crypt/md5test.c (main): Remove unused variable.
8952 * dlfcn/modstatic.c: Add prototype to avoid warning.
8954 2001-12-26 Roland McGrath <roland@frob.com>
8956 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
8957 check only (SS->pending & MASK) for the signal to return.
8958 From Jeroen Dekkers <jeroen@dekkers.cx>.
8960 2001-12-22 Roland McGrath <roland@frob.com>
8962 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
8963 Use preprocessor #if conditionals instead of `if' to avoid
8964 warnings about divide by zero in dead code.
8966 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
8967 _hurd_port_init, and __hurd_self_sigstate.
8969 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
8971 2001-12-21 Andreas Jaeger <aj@suse.de>
8973 * elf/dblloadmod1.c: Add prototype to avoid warning.
8974 * elf/dblloadmod2.c: Likewise.
8975 * elf/dblloadmod3.c: Likewise.
8976 * elf/reldepmod5.c: Likewise.
8977 * elf/reldepmod6.c: Likewise.
8979 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
8980 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
8981 used on all architectures.
8983 * sunrpc/svc_tcp.c: Add noreturn attribute for
8984 svctcp_rendezvous_abort.
8985 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
8987 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
8990 2001-12-19 Jakub Jelinek <jakub@redhat.com>
8992 * manual/llio.texi (aio_fsync): Fix a typo.
8993 Patch by Tammy Fox <tfox@redhat.com>.
8995 2001-12-18 Jakub Jelinek <jakub@redhat.com>
8997 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
8998 stack bias from child stack pointer before passing it to clone syscall.
9000 2001-12-18 Ulrich Drepper <drepper@redhat.com>
9002 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
9004 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
9005 Reported by Thorsten Kukuk <kukuk@suse.de>.
9007 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
9010 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
9012 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
9014 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
9015 conforming: return EBADF if file descriptor is invalid and EINVAL
9016 if file descriptor is no valid tty.
9017 * login/tst-grantpt.c: New file.
9018 * login/Makefile (tests): Add tst-grantpt.
9020 2001-12-17 Ulrich Drepper <drepper@redhat.com>
9022 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
9023 different than implemented in last patch.
9024 * io/bug-ftw3.c: Adjust test for changed handling of
9025 inaccessibility of toplevel dir.
9027 2001-12-16 Roland McGrath <roland@frob.com>
9029 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
9030 * grp/initgroups.c (internal_getgrouplist): Likewise.
9032 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
9033 `default:' to silence new GCC warning.
9034 Rewrite cast of lvalue to silence new GCC warning.
9036 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
9038 * sysdeps/mach/hurd/spawni.c: New file, by me with a
9039 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
9041 2001-12-14 Ulrich Drepper <drepper@redhat.com>
9043 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
9044 Patch by Stephen R. van den Berg.
9046 * crypt/md5.h: Define md5_uintptr.
9048 2001-12-13 Ulrich Drepper <drepper@redhat.com>
9050 * libio/tst_swprintf.c (main): Add test for string argument with
9052 * stdio-common/Makefile (tests): Add tst-sprintf.
9053 * stdio-common/tst-sprintf.c: New file.
9055 2001-12-13 Andreas Schwab <schwab@suse.de>
9057 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
9058 zero precision with wide character string format.
9060 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
9062 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
9063 but have a user supplied buffer, return the empty buffer, not NULL.
9065 2001-12-13 Ulrich Drepper <drepper@redhat.com>
9067 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
9068 Patch by Eric Sharkey <sharkey@netrics.com>.
9070 * crypt/md5test.c (main): Add test for multiple calls to
9071 __md5_process_bytes to itererate over input string.
9073 2001-12-12 Ulrich Drepper <drepper@redhat.com>
9075 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
9076 from __nis_findfastest. Take timeout value from parameter.
9077 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
9078 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
9079 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
9081 2001-12-12 Andreas Jaeger <aj@suse.de>
9083 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
9084 combreloc test so that it works in this case.
9086 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
9088 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
9090 * sysdeps/sh/Makefile: New file.
9091 * sysdeps/sh/_mcount.S: New file.
9092 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
9093 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
9095 2001-12-11 Ulrich Drepper <drepper@redhat.com>
9097 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
9098 limitation [PR libc/2564].
9100 2001-12-11 Jakub Jelinek <jakub@redhat.com>
9102 * elf/Makefile (dl-routines): Add conflict.
9103 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
9104 (ld.so): Add _begin local symbol.
9105 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
9107 * elf/dl-deps.c (_dl_build_local_scope): New.
9108 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
9110 * elf/do-rel.h (VALIDX): Define.
9111 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
9112 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
9114 * elf/dl-conflict.c: New file.
9115 * elf/dl-lookup.c (_dl_debug_bindings): New.
9116 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
9118 (_dl_lookup_symbol_skip): Likewise.
9119 (_dl_lookup_versioned_symbol): Likewise.
9120 (_dl_lookup_versioned_symbol_skip): Likewise.
9121 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
9122 define to ElfW(Rel).
9123 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
9124 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
9126 Don't adjust address dynamic tags if l_addr is 0.
9127 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
9128 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
9129 (VALIDX, ADDRIDX): Define.
9130 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
9131 (dl_main): Print library list for LD_TRACE_PRELINKING.
9132 If prelinking information can be used, skip relocating libraries and
9133 call _dl_resolve_conflicts instead.
9134 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
9135 * elf/dl-load.c (_dl_map_object): Don't create fake libs
9136 if LD_TRACE_PRELINKING.
9137 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
9139 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
9140 (DL_DEBUG_PRELINK): Define.
9141 (_dl_resolve_conflicts): Add prototype.
9143 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
9144 .plt for prelinked libraries where prelinking info cannot be used.
9145 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
9146 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
9147 * sysdeps/arm/bits/link.h: New file.
9148 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
9150 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
9151 (ELF_MACHINE_PLT_REL): Define.
9152 (elf_machine_rela, elf_machine_rela_relative): New.
9153 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
9154 of adjusting it if prelinked and prelinking cannot be used.
9155 * sysdeps/i386/bits/link.h: New file.
9156 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
9158 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
9159 (ELF_MACHINE_PLT_REL): Define.
9160 (elf_machine_rela, elf_machine_rela_relative): New.
9161 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
9162 of adjusting it if prelinked and prelinking cannot be used.
9163 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
9164 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
9165 to find out map for R_PPC_JMP_SLOT relocs.
9166 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
9167 (OPCODE_BA): Define.
9168 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
9169 libraries where prelinking info cannot be used.
9170 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
9171 (elf_machine_fixup_plt): Call sparc_fixup_plt.
9172 (elf_machine_rela): Set value to 0 if relocating conflicts.
9173 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
9174 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
9175 (sparc64_fixup_plt): Fix a typo.
9176 (elf_machine_rela): Set value to 0 if relocating conflicts.
9177 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
9178 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
9179 libraries where prelinking info cannot be used.
9180 * sysdeps/sh/bits/link.h: New file.
9181 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
9183 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
9184 of adjusting it if prelinked and prelinking cannot be used.
9185 * sysdeps/s390/s390-32/bits/link.h: New file.
9186 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
9187 Save original content of .got[1].
9188 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
9189 of adjusting it if prelinked and prelinking cannot be used.
9190 * sysdeps/s390/s390-64/bits/link.h: New file.
9191 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
9192 Save original content of .got[1].
9193 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
9194 of adjusting it if prelinked and prelinking cannot be used.
9195 * sysdeps/x86_64/bits/link.h: New file.
9196 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
9197 Save original content of .got[1].
9198 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
9199 of adjusting it if prelinked and prelinking cannot be used.
9201 2001-12-11 Ulrich Drepper <drepper@redhat.com>
9203 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
9204 where appropriate instead of numbers. Little optimizations.
9206 2001-12-10 Roland McGrath <roland@frob.com>
9208 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
9211 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
9212 set to GLIBC_2.2.5, not GLIBC_2.2.4.
9214 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
9215 Fix conditionals so this is set by default for stdio and not for libio.
9216 * sysdeps/mach/hurd/configure: Regenerated.
9218 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
9220 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
9222 2001-12-10 Ulrich Drepper <drepper@redhat.com>
9224 * io/Makefile (tests): Add bug-ftw3.
9225 * io/bug-ftw3.c: New file.
9227 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
9228 matches and GLOB_NOCHECK is set.
9229 * posix/globtest.sh: Correct expected result for NOCHECK test.
9231 * po/ca.po: Update from translation team.
9233 2001-12-09 Ulrich Drepper <drepper@redhat.com>
9235 Implement transliteration of characters in strings of the locale
9237 * locale/programs/linereader.c: Adjust for additional parameter to
9239 (get_string): If character <Uxxxx> is not found try to transliterate
9241 * locale/programs/ld-ctype.c: Adjust for additional parameter to
9242 lr_token. Add const to charmap parameter of all functions.
9243 (find_translit, find_translit2): New functions.
9244 * locale/programs/charmap.c: Adjust for additional parameter to
9246 * locale/programs/repertoire.c: Likewise.
9247 * locale/programs/linereader.h: Likewise.
9248 * locale/programs/ld-address.c: Likewise. Add const to charmap
9249 parameter of all functions.
9250 * locale/programs/ld-collate.c: Likewise.
9251 * locale/programs/ld-identification.c: Likewise.
9252 * locale/programs/ld-measurement.c: Likewise.
9253 * locale/programs/ld-messages.c: Likewise.
9254 * locale/programs/ld-monetary.c: Likewise.
9255 * locale/programs/ld-name.c: Likewise.
9256 * locale/programs/ld-numeric.c: Likewise.
9257 * locale/programs/ld-paper.c: Likewise.
9258 * locale/programs/ld-paper.c: Likewise.
9259 * locale/programs/ld-telephone.c: Likewise.
9260 * locale/programs/ld-time.c: Likewise.
9261 * locale/programs/locfile.c: Likewise.
9262 * locale/programs/localedef.c: Likewise.
9263 * locale/programs/localedef.h: Likewise.
9264 * locale/programs/locfile.h: Likewise. Add declaration for
9266 * locale/programs/simple-hash.c: Add const to first parameter of
9267 find_entry, iterate_table, and lookup.
9268 * locale/programs/simple-hash.h: Likewise.
9269 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
9271 * include/locale.h: Define __LC_LAST.
9272 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
9274 2001-12-07 Geoff Keating <geoffk@redhat.com>
9276 * sysdeps/powerpc/Dist: Update for recent FP changes.
9277 * sysdeps/powerpc/fpu/Dist: Likewise.
9279 2001-12-07 Andreas Schwab <schwab@suse.de>
9281 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
9283 2001-12-06 Geoff Keating <geoffk@redhat.com>
9285 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
9286 save/restore functions here.
9287 (libm-support): Don't define these functions here.
9288 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
9290 * sysdeps/powerpc/fe_nomask.c: Move to...
9291 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
9292 * sysdeps/powerpc/fprrest.S: Move to...
9293 * sysdeps/powerpc/fpu/fprrest.S: ... here.
9294 * sysdeps/powerpc/fprsave.S: Move to...
9295 * sysdeps/powerpc/fpu/fprsave.S: ... here.
9297 2001-12-06 Ulrich Drepper <drepper@redhat.com>
9299 * sysdeps/unix/sysv/linux/opensock.c: New file.
9301 2001-12-06 Geoff Keating <geoffk@redhat.com>
9303 * config.make.in (with-fp): Define from configure.
9304 * configure.in: Substitute with_fp.
9305 * configure: Regenerate.
9306 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
9307 specified, and don't change FPU environment.
9309 2001-12-06 Ulrich Drepper <drepper@redhat.com>
9311 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
9312 * assert/assert.c: Check result of __asprintf call and don't use
9313 string if it failed.
9314 * assert/assert-perr.c: Likewise.
9315 * inet/rcmd.c: Likewise.
9316 * locale/programs/localedef.c (main): Check result of
9317 construct_output_path and exit if it failed.
9318 (construct_output_path): Check result of asprintf and mkdir calls and
9319 fail if they failed.
9320 * posix/getopt.c: Check result of __asprintf calls and fail if
9322 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
9324 2001-12-05 Ulrich Drepper <drepper@redhat.com>
9326 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
9328 * sysdeps/generic/strncase.c: Likewise.
9329 * string/tester.c: Add tests for strcasecmp and strncasecmp.
9331 2001-12-05 Geoff Keating <geoffk@redhat.com>
9333 * scripts/cpp: Test the exit status from 'type', not 'awk'.
9335 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
9336 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
9337 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
9338 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
9339 * sysdeps/powerpc/fclrexcpt.c: Move to...
9340 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
9341 * sysdeps/powerpc/fpu_control.h: Move to...
9342 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
9344 2001-12-05 Ulrich Drepper <drepper@redhat.com>
9346 * iconvdata/ibm1129.h: Remove duplicate mappings.
9347 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
9348 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
9349 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9351 * timezone/zic.c: Fix handling of turnaround times.
9352 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
9354 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
9356 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
9359 2001-12-05 Ulrich Drepper <drepper@redhat.com>
9361 * posix/regex.c: For use outside glibc defined bounded pointer
9362 macros here. Patch by Jim Meyering <jim@meyering.net>.
9364 * iconvdata/Makefile (modules): Add TCVN5712-1.
9365 * iconvdata/TESTS: Add TCVN5712-1.
9366 * iconvdata/gconv-modules: Likewise.
9367 * iconvdata/tcvn5712-1.c: New file.
9368 * iconvdata/testdata/TCVN-5712: New file.
9369 * iconvdata/testdata/TCVN-5712..UTF8: New file.
9371 2001-12-04 Ulrich Drepper <drepper@redhat.com>
9373 * iconvdata/cp1258.c: Optimize conversion from UCS4.
9375 2001-12-02 Roland McGrath <roland@frob.com>
9377 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
9379 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
9380 Reported by Jeff Bailey <jbailey@nisa.net>.
9382 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
9383 Reported by Jeff Bailey <jbailey@nisa.net>.
9385 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
9386 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
9387 Reported by Jeff Bailey <jbailey@nisa.net>.
9389 2001-12-01 Roland McGrath <roland@frob.com>
9391 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
9392 missing backslash in test arguments.
9393 * sysdeps/mach/hurd/configure: Regenerated.
9395 2001-11-26 Roland McGrath <roland@frob.com>
9397 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
9398 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
9400 2001-11-30 Ulrich Drepper <drepper@redhat.com>
9402 * iconvdata/Makefile (modules): Add ARMSCII-8.
9403 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
9404 * iconvdata/armscii-8.c: New file.
9406 2001-11-29 Jakub Jelinek <jakub@redhat.com>
9408 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
9409 don't match, fix {{a,b},c} globbing, clean up.
9410 Patch by Flavio Veloso <flaviovs@magnux.com>.
9411 * posix/globtest.sh: Add new tests.
9413 2001-11-29 Andreas Jaeger <aj@suse.de>
9415 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
9416 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
9418 * sysdeps/generic/abort.c: Include libioP.h for
9419 _IO_flush_all_lockp prototype.
9421 2001-11-29 Ulrich Drepper <drepper@redhat.com>
9423 * posix/regex.h: Define __restrict_arr correctly.
9425 2001-11-28 Ulrich Drepper <drepper@redhat.com>
9427 * iconvdata/ibm1163.c: New file.
9428 * iconvdata/ibm1163.h: New file.
9429 * iconvdata/ibm1164.c: New file.
9430 * iconvdata/ibm1164.h: New file.
9431 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
9432 * iconvdata/Makefile: Likewise.
9433 * iconvdata/testdata/IBM1163: New file.
9434 * iconvdata/testdata/IBM1163..UTF8: New file.
9435 * iconvdata/testdata/IBM1164: New file.
9436 * iconvdata/testdata/IBM1164..UTF8: New file.
9437 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9439 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
9440 * iconvdata/ibm1124.h: Likewise.
9441 * iconvdata/ibm1132.h: Likewise.
9442 * iconvdata/ibm1133.h: Likewise.
9443 * iconvdata/ibm1160.h: Likewise.
9444 * iconvdata/ibm1161.h: Likewise.
9445 * iconvdata/ibm1162.h: Likewise.
9446 * iconvdata/ibm856.h: Likewise.
9447 * iconvdata/ibm922.h: Likewise.
9448 * iconvdata/ibm930.h: Likewise.
9449 * iconvdata/ibm932.h: Likewise.
9450 * iconvdata/ibm933.h: Likewise.
9451 * iconvdata/ibm935.h: Likewise.
9452 * iconvdata/ibm937.h: Likewise.
9453 * iconvdata/ibm939.h: Likewise.
9454 * iconvdata/ibm943.h: Likewise.
9455 * iconvdata/ibm930.c: Pretty printing.
9456 * iconvdata/ibm937.c: Avoid access accross array boundary.
9458 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
9459 the current locale's codeset.
9460 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
9462 * iconv/iconv_prog.c: Pass empty strings as default value for to-
9463 and from-charset. Don't determine locale's charset here.
9465 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
9466 as the old _IO_flush_all but lock only if parameter is nonzero.
9467 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
9468 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
9469 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
9470 if libio is used [PR libc/2575].
9472 2001-11-28 Jakub Jelinek <jakub@redhat.com>
9474 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
9475 __signbitl): Only define for ISO C99.
9477 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
9479 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
9480 herrnop to NETDB_INTERNAL if we run out of buffer space.
9482 2001-11-28 Ulrich Drepper <drepper@redhat.com>
9484 * nss/nss_files/files-XXX.c (internal_getent): Correct input
9485 overflow test for platforms with signed char.
9486 Reported by Andrew Haley <aph@cambridge.redhat.com>.
9488 2001-11-28 Bruno Haible <bruno@clisp.org>
9490 * locale/programs/simple-hash.c (lookup_2): Remove function.
9491 (insert_entry_2): Call lookup instead of lookup_2.
9493 2001-03-04 Bruno Haible <bruno@clisp.org>
9495 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
9497 2001-10-31 Bruno Haible <bruno@clisp.org>
9499 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
9501 2001-03-21 Bruno Haible <bruno@clisp.org>
9503 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
9504 chokes on empty macro arguments.
9505 * intl/plural.y: Add #pragma for alloca on AIX 3.
9507 2001-11-27 Ulrich Drepper <drepper@redhat.com>
9509 * intl/dcigettext.c (guess_category_value): Only implement for
9510 glibc. Otherwise rely on function _nl_locale_name which isn't
9511 present in the glibc sources.
9513 2001-09-24 Bruno Haible <bruno@clisp.org>
9515 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
9516 transliteration when building on a glibc system but outside glibc.
9518 2001-09-22 Bruno Haible <bruno@clisp.org>
9520 * intl/plural-eval.c: New file, extracted from dcigettext.c.
9521 * intl/dcigettext.c (plural_eval): Remove function, moved to
9523 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
9524 Include plural-eval.c.
9526 2001-09-22 Bruno Haible <bruno@clisp.org>
9528 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
9529 don't start with a digit; nplurals must be positive.
9531 2001-09-02 Bruno Haible <bruno@clisp.org>
9533 * intl/plural-exp.h: New file, extracted from gettextP.h.
9534 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
9535 * intl/gettextP.h (struct expression, struct parse_args,
9536 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
9537 * intl/loadmsgcat.c: Include plural-exp.h.
9538 (PLURAL_PARSE): Move macro to plural-exp.h.
9539 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
9541 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
9542 EXTRACT_PLURAL_EXPRESSION.
9543 (_nl_unload_domain): Update.
9544 * intl/dcigettext.c: Include plural-exp.h.
9545 * intl/plural.y: Include plural-exp.h, not gettextP.h.
9546 (FREE_EXPRESSION): Move macro to plural-exp.h.
9547 * intl/Makefile (routines): Add plural-exp.
9548 (distribute): Add plural-exp.h.
9550 2001-07-28 Bruno Haible <bruno@clisp.org>
9552 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
9553 isdigit, tolower argument to 'unsigned char'.
9554 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
9556 * intl/localealias.c (read_alias_file): Cast isspace argument to
9559 2001-10-20 Bruno Haible <bruno@clisp.org>
9561 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
9563 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
9564 with the variable 'index' in plural_lookup.
9565 * intl/l10nflist.c (strchr): Likewise.
9566 * intl/localealias.c (strchr): Likewise.
9568 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
9569 * intl/bindtextdom.c: Likewise.
9570 * intl/dcigettext.c: Likewise.
9571 * intl/dgettext.c: Likewise.
9572 * intl/dngettext.c: Likewise.
9573 * intl/explodename.c: Likewise.
9574 * intl/finddomain.c: Likewise.
9575 * intl/gettext.c: Likewise.
9576 * intl/l10nflist.c: Likewise.
9577 * intl/loadmsgcat.c: Likewise.
9578 * intl/localealias.c: Likewise.
9579 * intl/ngettext.c: Likewise.
9580 * intl/textdomain.c: Likewise.
9581 * intl/gettext.h: Assume <limits.h> exists.
9583 2001-11-27 Ulrich Drepper <drepper@redhat.com>
9585 * stdio-common/Makefile (tests): Add scanf11.
9586 * stdio-common/scanf11.c: New file.
9588 2001-11-26 Ulrich Drepper <drepper@redhat.com>
9590 * version.h (RELEASE): Define as development.
9591 (VERSION): Set to 2.2.90.
9593 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
9595 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
9596 * nis/nss_nis/nis-grp.c: Likewise.
9597 * nis/nss_nisplus/nisplus-grp.c: Likewise.
9599 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
9600 * nis/nss_nis/nis-pwd.c: Likewise.
9601 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
9603 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
9604 * nis/nss_nisplus/nisplus-parser.c: Likewise.
9605 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9607 * nscd/grpcache.c: Use strtoul instead of atol.
9608 * nscd/pwdcache.c: Likewise.
9609 * nss/getent.c: Likewise.
9611 2001-11-27 Paul Eggert <eggert@twinsun.com>
9613 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
9614 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
9616 2001-11-19 Bruno Haible <bruno@clisp.org>
9618 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
9620 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
9621 improves the quality of the hash function, especially for short
9624 2001-11-26 Ulrich Drepper <drepper@redhat.com>
9626 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
9627 are found call conv_error and not input_error [PR libc/2669].
9629 * math/bits/mathcalls.h: Mark ceil and floor as const.
9630 Reported by David Mosberger.
9632 2001-11-21 Jim Meyering <meyering@lucent.com>
9634 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
9635 Define to be __-prefixed.
9636 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
9638 2001-11-26 Andreas Jaeger <aj@suse.de>
9640 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
9643 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
9645 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
9648 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
9649 unused variables. Fix threshold for returning 1.0.
9651 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
9654 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
9655 remove unused variables.
9657 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
9659 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
9660 include local math header files.
9662 2001-11-22 Andreas Jaeger <aj@suse.de>
9664 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
9667 2001-11-21 Andreas Jaeger <aj@suse.de>
9669 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
9671 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
9674 2001-11-15 Andreas Jaeger <aj@suse.de>
9676 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
9677 compilers that support it.
9679 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
9680 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9681 * stdlib/stdlib.h: Likewise.
9683 2001-11-17 Ulrich Drepper <drepper@redhat.com>
9685 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
9686 statement with gotos.
9687 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
9689 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
9691 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
9693 2001-11-15 Ulrich Drepper <drepper@redhat.com>
9695 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
9697 2001-10-02 Jakub Jelinek <jakub@redhat.com>
9698 H.J. Lu <hjl@gnu.org>
9700 * Versions.def (libc): Add GCC_3.0.
9701 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
9702 if gcc supports this flag.
9703 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
9704 (gcc3): Allow glibc to be compiled with gcc 3.x.
9705 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
9706 * config.make.in (static-libgcc, unwind-find-fde): Add.
9707 * Makerules (build-shlib-helper, build-module-helper): Use it.
9708 * scripts/versions.awk: Make sure GLIBC_ versions come first.
9709 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
9711 (_fini): Call __deregister_frame_info_bases if
9712 __register_frame_info_bases was used to register.
9713 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
9715 (__register_frame_info_bases, __register_frame_info_table_bases,
9716 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
9717 * elf/Makefile (routines): Add unwind-dw2-fde.
9718 (shared-only-routines): Add unwind-dw2-fde.
9719 * sysdeps/alpha/gccframe.h: New file.
9720 * sysdeps/arm/gccframe.h: New file.
9721 * sysdeps/generic/framestate.c: New file.
9722 * sysdeps/generic/dwarf2.h: New file.
9723 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
9724 * sysdeps/generic/unwind-dw2-fde.c: New file.
9725 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
9726 * sysdeps/generic/unwind-dw2-fde.h: New file.
9727 * sysdeps/generic/unwind-dw2.c: New file.
9728 * sysdeps/generic/unwind-pe.h: New file.
9729 * sysdeps/generic/unwind.h: New file.
9730 * sysdeps/hppa/gccframe.h: New file.
9731 * sysdeps/i386/gccframe.h: New file.
9732 * sysdeps/m68k/gccframe.h: New file.
9733 * sysdeps/mips/gccframe.h: New file.
9734 * sysdeps/powerpc/gccframe.h: New file.
9735 * sysdeps/s390/gccframe.h: New file.
9736 * sysdeps/sh/gccframe.h: New file.
9737 * sysdeps/sparc/gccframe.h: New file.
9738 * sysdeps/vax/gccframe.h: New file.
9739 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
9740 Set on all architectures except ia64.
9741 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
9743 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
9744 __deregister_frame_info): Move to elf/Versions.
9745 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
9746 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
9747 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
9748 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
9749 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
9750 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
9751 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
9752 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
9753 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
9754 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
9755 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
9756 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
9757 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9758 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
9759 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
9760 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
9761 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
9762 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
9764 2001-11-15 Jeff Law <law@redhat.com>
9766 * posix/regex.c (uintptr_t): Do not provide a definition if the
9767 system provided one.
9769 2001-11-13 Roland McGrath <roland@frob.com>
9771 * stdio-common/tmpfile.c: Moved to ...
9772 * sysdeps/generic/tmpfile.c: ... here.
9773 * sysdeps/mach/hurd/tmpfile.c: New file.
9775 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
9776 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
9777 (fopenport): Define as weak alias.
9779 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
9780 * libio/libioP.h: ... to here.
9782 2001-11-12 Ulrich Drepper <drepper@redhat.com>
9784 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
9785 program header twice. Construct list with the needed information.
9787 2001-11-10 Ulrich Drepper <drepper@redhat.com>
9789 * po/ca.po: Update from translation team.
9791 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
9792 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
9793 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
9794 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
9796 2001-11-10 Andreas Jaeger <aj@suse.de>
9798 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
9799 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9800 Contributed by Stephen L Moshier <moshier@mediaone.net>.
9802 2001-11-09 Ulrich Drepper <drepper@redhat.com>
9804 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
9806 * elf/dl-load.c (is_dst): New function.
9807 (_dl_dst_count): Use is_dst to check for DST variable.
9808 (_dl_dst_substitute): Likewise.
9810 2001-11-09 Roland McGrath <roland@frob.com>
9812 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
9813 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
9814 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
9815 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
9816 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
9817 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
9818 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
9819 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
9820 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
9821 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
9822 * sysdeps/mach/hurd/powerpc/Dist: New file.
9824 * hurd/privports.c (__get_privileged_ports):
9825 Only contact the proc server if necessary for this call.
9826 Suggested by Neal H Walfield <neal@cs.uml.edu>.
9827 Check error return for mach_port_mod_refs.
9829 2001-11-09 Andreas Schwab <schwab@suse.de>
9831 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
9833 2001-11-09 Ulrich Drepper <drepper@redhat.com>
9835 * elf/dl-load.c (lose): Remove some unnecessary code. The new
9836 object is always the last in the list.
9837 (_dl_map_object_from_fd): Delete code to remove from object list
9838 when DF_1_NOOPEN is seen. This is done in lose.
9840 2001-11-08 Ulrich Drepper <drepper@redhat.com>
9842 * elf/dl-object.c (_dl_new_object): Various small optimizations.
9844 2001-11-07 Ulrich Drepper <drepper@redhat.com>
9846 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
9847 HWCAP_CHECK macro code.
9849 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
9850 Now returns MAP_FAILED on error.
9851 * elf/rtld.c: Adjust caller.
9852 * sysdeps/generic/dl-cache.c: Likewise.
9853 * sysdeps/generic/ldsodefs.h: Adjust description.
9855 * elf/dl-version.c (match_symbol): Optimize error handling for size.
9856 (_dl_check_map_versions): Likewise.
9858 2001-11-06 Ulrich Drepper <drepper@redhat.com>
9860 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
9861 _dl_signal_error directly, always use lose. Set fd to -1 after
9863 (lose): Don't call close if fd == -1.
9865 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
9867 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
9868 Also fix typo @code {mbsinit} to @code{mbsinit}.
9870 2001-11-06 Ulrich Drepper <drepper@redhat.com>
9872 * elf/dl-profile.c: Replace state variable with simple flag named
9873 running. Remove commented-out code.
9875 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
9876 (_dl_init_paths): Likewise.
9877 (_dl_map_object_from_fd): Likewise.
9878 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
9880 2001-11-06 Roland McGrath <roland@frob.com>
9882 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
9883 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
9885 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
9886 sysdeps/powerpc/elf/sysdep.h.
9887 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
9889 2001-11-05 Ulrich Drepper <drepper@redhat.com>
9891 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
9893 (process_envvars): Some more optimizations.
9894 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
9896 * elf/elf.h: Add dynamic tag definitions for prelinking.
9898 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
9899 Rewrite code to remove environment varables for SUID binaries.
9900 Small optimization in LD_PROFILE handling.
9901 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
9903 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9905 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
9907 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
9908 strings. Change type of second parameter.
9909 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
9912 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
9914 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
9916 * manual/string.texi: Fix typos.
9917 * manual/examples/argp-ex2.c: Likewise.
9919 2001-11-05 Roland McGrath <roland@frob.com>
9921 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
9922 the more-specific unix/sysv/linux/powerpc file and breaks everything.
9923 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
9924 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
9925 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
9926 here, put under [__ELF__].
9928 2001-11-05 Ulrich Drepper <drepper@redhat.com>
9930 * manual/charset.texi: Extensive editing work.
9931 * manual/nss.texi: Likewise.
9932 Changes by Dennis Grace <dgrace@us.ibm.com>.
9934 2001-11-04 Roland McGrath <roland@frob.com>
9936 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
9937 parameter to dir_mkfile.
9939 2001-11-02 Jakub Jelinek <jakub@redhat.com>
9941 * string/bits/string2.h (__strndup): If n is smaller than len, set
9943 * string/tester.c (test_strndup): New function.
9946 2001-11-01 Ulrich Drepper <drepper@redhat.com>
9948 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
9950 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
9951 * scripts/cpp: New file.
9953 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
9954 for rtld_search_dirs content. Minor optimizations.
9956 2001-10-31 Ulrich Drepper <drepper@redhat.com>
9958 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
9959 avoiding unnecessary duplication.
9961 2001-10-31 Jakub Jelinek <jakub@redhat.com>
9963 * elf/dl-load.c (_dl_map_object): If library was found using
9964 LD_LIBRARY_PATH, don't try RUNPATH list.
9966 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
9968 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
9969 Correct second argument of register_dump call.
9970 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
9973 2001-10-31 Ulrich Drepper <drepper@redhat.com>
9975 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
9977 * iconvdata/TESTS: Likewise.
9978 * iconvdata/gconv-modules: Likewise.
9979 * iconvdata/ibm1132.c: New file.
9980 * iconvdata/ibm1132.h: New file.
9981 * iconvdata/ibm1133.c: New file.
9982 * iconvdata/ibm1133.h: New file.
9983 * iconvdata/ibm1162.c: New file.
9984 * iconvdata/ibm1162.h: New file.
9985 * iconvdata/testdata/IBM1132: New file.
9986 * iconvdata/testdata/IBM1132..UTF8: New file.
9987 * iconvdata/testdata/IBM1133: New file.
9988 * iconvdata/testdata/IBM1133..UTF8: New file.
9989 * iconvdata/testdata/IBM1162: New file.
9990 * iconvdata/testdata/IBM1162..UTF8: New file.
9991 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
9993 * string/string.h: Fix typo in comment.
9994 * wcsmbs/wchar.h: Likewise.
9996 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
9998 * manual/getopt.texi (getopt_long, getopt_long_only): Include
9999 const in type of longopts parameter.
10001 2001-10-29 Andreas Jaeger <aj@suse.de>
10003 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
10005 2001-10-29 Kevin Ryde <user42@zip.com.au>
10007 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
10008 output, clarify `#' behaviour on 0.
10009 (Floating-Point Conversions): Clarify that %g only uses %e when
10010 the exponent would be greater than 1.
10012 2001-10-28 Roland McGrath <roland@frob.com>
10014 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
10015 * sysdeps/mach/powerpc/machine-sp.h: New file.
10016 * sysdeps/mach/powerpc/sysdep.h: New file.
10017 * sysdeps/mach/powerpc/thread_state.h: New file.
10019 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
10020 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
10021 expect to need the same thing on every platform.
10023 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
10024 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
10026 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
10027 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
10028 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
10029 Move all these assembly-related definitions to ...
10030 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
10032 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
10033 by Peter Bruin <pjbruin@dds.nl>.
10035 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
10036 packing results for a `poll' call.
10038 2001-10-26 Ulrich Drepper <drepper@redhat.com>
10040 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
10042 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
10043 bracket expression.
10045 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
10047 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
10049 2001-10-24 H.J. Lu <hjl@gnu.org>
10051 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
10052 Use __BEGIN_DECLS/__END_DECLS around prototypes.
10053 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
10055 2001-10-21 Jim Meyering <meyering@lucent.com>
10057 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
10058 this code would end up calling gettext even in packages built
10059 with --disable-nls.
10060 * posix/getopt.c (_): Likewise.
10061 * posix/regex.c (_): Likewise.
10063 2001-10-26 Ulrich Drepper <drepper@redhat.com>
10065 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
10066 lookup not ip6.int.
10067 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
10068 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
10070 2001-10-19 Jakub Jelinek <jakub@redhat.com>
10072 * misc/sys/cdefs.h (__attribute_used__): Define.
10073 * elf/rtld.c (_dl_start): Add __attribute_used__.
10074 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
10076 2001-10-25 Andreas Schwab <schwab@suse.de>
10078 * stdlib/a64l.c: Expect least significant digit first.
10079 * stdlib/l64a.c: Produce least significant digit first.
10080 * stdlib/Makefile (tests): Add test-a64l.
10081 * stdlib/test-a64l.c: New file.
10082 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
10084 2001-10-21 Ulrich Drepper <drepper@redhat.com>
10086 * po/sk.po: Update from translation team.
10088 2001-10-18 Ulrich Drepper <drepper@redhat.com>
10090 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
10092 2001-10-18 Andreas Schwab <schwab@suse.de>
10094 * math/libm-test.inc (print_ulps): Print ulp values rounded to
10096 (print_function_ulps): Likewise.
10097 (print_complex_function_ulps): Likewise.
10098 (print_max_error): Likewise.
10099 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
10101 2001-10-16 Andreas Schwab <schwab@suse.de>
10103 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
10106 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
10107 BSD_SETJMP or BSD__SETJMP is defined, resp.
10108 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
10109 a tail call to __sigsetjmp that would require extending the
10111 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
10112 * sysdeps/m68k/bsd-setjmp.S: Deleted.
10113 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
10114 Reported by Jes Sorensen <jes@trained-monkey.org>.
10116 2001-10-16 Andreas Jaeger <aj@suse.de>
10118 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
10119 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
10120 close PR libc/2589.
10122 2001-10-15 Ulrich Drepper <drepper@redhat.com>
10124 * po/ca.po: New file. Contributed by the translation team.
10126 2001-10-15 Ralf Baechle <ralf@gnu.org>
10128 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
10129 a varargs prototype. Remove dependency from kernel header files.
10131 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
10132 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
10134 2001-10-14 Ulrich Drepper <drepper@redhat.com>
10136 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
10137 to generate hexadecimal identifier.
10138 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
10140 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
10142 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
10144 2001-10-14 Ulrich Drepper <drepper@redhat.com>
10146 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
10147 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
10148 Contributed by Stephen L Moshier <moshier@mediaone.net>.
10150 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
10151 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10152 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
10153 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
10154 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
10155 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
10157 * timezone/africa: Update from tzdata2001d.
10158 * timezone/asia: Likewise.
10159 * timezone/australasia: Likewise.
10160 * timezone/backward: Likewise.
10161 * timezone/europe: Likewise.
10162 * timezone/leapseconds: Likewise.
10163 * timezone/northamerica: Likewise.
10164 * timezone/southamerica: Likewise.
10165 * timezone/zone.tab: Likewise.
10167 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
10169 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
10170 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
10172 2001-10-12 Ulrich Drepper <drepper@redhat.com>
10174 * elf/elf.h (PT_TLS): New definition.
10176 2001-10-10 Jeff Bailey <jbailey@nisa.net>
10178 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
10181 2001-10-07 Roland McGrath <roland@frob.com>
10183 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
10185 2001-10-10 Ulrich Drepper <drepper@redhat.com>
10187 * elf/elf.h: Add more ELFOSABI_* constants.
10189 2001-10-04 Ben Collins <bcollins@debian.org>
10191 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
10192 decleration of __need_wchar_t.
10194 2001-10-03 Jakub Jelinek <jakub@redhat.com>
10196 * string/bits/string2.h (__strsep_g): Add prototype.
10197 (__strsep): Use it.
10198 * string/Versions (__strsep): Remove.
10199 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
10201 2001-10-07 Ulrich Drepper <drepper@redhat.com>
10203 * manua/llio.texi: Clarify file references added by mmap.
10204 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
10206 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
10208 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
10209 Add sc_loadrs and sc_rbs_bas to match current kernel.
10211 2001-09-27 Jakub Jelinek <jakub@redhat.com>
10213 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
10215 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
10217 2001-09-27 Jakub Jelinek <jakub@redhat.com>
10219 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
10220 object has been bumped because of relocation dependency, avoid
10221 duplicates in l_scope.
10222 (show_scope): Fix typos.
10223 * elf/Makefile: Add rules to build and run reldep6.
10224 * elf/reldep6.c: New file.
10225 * elf/reldep6mod0.c: New file.
10226 * elf/reldep6mod1.c: New file.
10227 * elf/reldep6mod2.c: New file.
10228 * elf/reldep6mod3.c: New file.
10229 * elf/reldep6mod4.c: New file.
10231 2001-09-26 Jakub Jelinek <jakub@redhat.com>
10233 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
10235 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
10236 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
10237 for non-lazy binding. Fix .plt[32768+] handling.
10238 (elf_machine_plt_value): Don't add addend.
10239 (elf_machine_rela): Call sparc64_fixup_plt instead of
10240 elf_machine_fixup_plt.
10241 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
10242 dynamic linker at 0xfffff800XXXXXXXX.
10244 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
10246 2001-09-28 Ulrich Drepper <drepper@redhat.com>
10248 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
10250 2001-09-25 Jakub Jelinek <jakub@redhat.com>
10252 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
10253 declare __cmsg_data field if its size would be bigger than 0.
10254 (CMSG_DATA): Adjust accordingly.
10255 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
10256 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
10257 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
10258 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
10259 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10260 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
10261 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10263 2001-09-25 Ulrich Drepper <drepper@redhat.com>
10265 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
10266 * iconvdata/testdata/IBM1160: New file.
10267 * iconvdata/testdata/IBM1160..UTF8: New file.
10268 * iconvdata/testdata/IBM1161: New file.
10269 * iconvdata/testdata/IBM1161..UTF8: New file.
10270 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10272 2001-09-24 Ulrich Drepper <drepper@redhat.com>
10274 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
10275 UL_SETFSIZE computations better.
10277 * rt/Makefile: Remove use of filter for librt again.
10279 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
10280 UL_SETFSIZE computations better.
10282 * string/Versions: Export __strsep for GLIBC_2.2.5.
10283 * string/bits/string2.h: Define all __STRING_INLINE functions if
10284 _FORCE_INLINES is defined.
10285 Use int instead of char of parameter types.
10286 (__strsep): Don't use __strsep_g. Don't define it.
10287 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
10288 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
10290 (__stpcpy_a_small): Renamed from __stpcpy_small.
10291 (__strcspn_c1): Don't define if _FORCE_INLINES.
10292 (__strspn_c1): Likewise.
10294 2001-09-22 Ben Collins <bcollins@debian.org>
10296 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
10297 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
10298 * sysdeps/ia64/bits/sigaction.h: Likewise.
10299 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
10301 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
10303 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
10305 2001-09-24 Jakub Jelinek <jakub@redhat.com>
10307 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
10309 2001-09-24 Ulrich Drepper <drepper@redhat.com>
10311 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
10313 2001-09-20 H.J. Lu <hjl@gnu.org>
10315 * include/dlfcn.h (__RTLD_SPROF): New definiton.
10316 * elf/dl-open.c (dl_open_worker): Return immediately after loading
10318 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
10319 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
10321 2001-09-20 H.J. Lu <hjl@gnu.org>
10323 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
10326 2001-09-22 Ulrich Drepper <drepper@redhat.com>
10328 * nss/getent.c: Accept -s parameter to overwrite rules in
10329 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
10331 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
10332 with as many ".0" as necessary to form a complete address
10333 inet_network understands.
10335 * nss/getent.c: Various cleanups. Use simpler and fewer function
10338 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10340 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
10342 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
10344 2001-09-22 Ulrich Drepper <drepper@redhat.com>
10346 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
10348 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
10349 * iconvdata/ibm1160.c: New file.
10350 * iconvdata/ibm1160.h: New file.
10351 * iconvdata/ibm1161.c: New file.
10352 * iconvdata/ibm1161.h: New file.
10353 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10355 2001-09-19 Jakub Jelinek <jakub@redhat.com>
10357 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
10358 difference between base address and first PT_LOAD's virtual address,
10359 not the base address.
10361 2001-09-11 Tom Rix <trix@redhat.com>
10363 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
10364 ifdef for __getopt_clean_environment.
10365 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
10367 2001-09-22 Andreas Jaeger <aj@suse.de>
10369 * elf/reldep4.c (main): Add proper prototype to fix warning.
10371 * elf/reldep5.c (main): Remove unused variable.
10373 * math/math_private.h: Add prototypes.
10375 2001-09-21 Andreas Jaeger <aj@suse.de>
10377 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
10378 * sysdeps/x86_64/Dist: New file.
10379 * sysdeps/x86_64/soft-fp/Dist: New file.
10381 * sysdeps/gnu/Dist: Remove eval.c.
10383 2001-09-20 Ulrich Drepper <drepper@redhat.com>
10385 * malloc/memusage.c (realloc): Don't count already allocated
10386 memory in the sums.
10387 (me): Always use dlsym() to find the real implementations.
10389 * malloc/memusage.sh: Make -n option actually do something.
10391 2001-09-20 Andreas Jaeger <aj@suse.de>
10393 * elf/elf.h (R_390_NUM): Correct value.
10395 * Versions.def: Add missing versions 2.2.3 for libthread_db and
10398 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
10399 for x86-64, install x86-64 into */lib64.
10401 * shlib-versions: Add x86-64.
10403 * elf/elf.h: Add x86-64 relocations.
10405 2001-09-19 Ulrich Drepper <drepper@redhat.com>
10407 * po/fr.po: Update from translation team.
10409 2001-09-19 Andreas Jaeger <aj@suse.de>
10411 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
10412 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
10413 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
10414 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
10415 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
10416 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
10417 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
10418 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
10419 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
10420 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
10421 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
10422 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
10423 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
10424 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
10425 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
10426 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
10427 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
10428 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
10429 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
10430 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
10431 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
10432 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
10433 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
10434 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
10435 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
10436 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
10437 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
10438 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
10439 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
10440 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
10441 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
10442 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
10443 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
10444 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
10445 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
10446 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
10447 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
10448 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
10449 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
10450 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
10451 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
10452 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
10453 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
10454 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
10455 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
10456 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
10457 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
10458 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
10459 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
10460 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
10461 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
10462 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
10463 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
10464 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
10465 * sysdeps/unix/x86_64/sysdep.S: New file.
10466 * sysdeps/unix/x86_64/sysdep.h: New file.
10467 * sysdeps/x86_64/Implies: New file.
10468 * sysdeps/x86_64/Makefile: New file.
10469 * sysdeps/x86_64/Versions: New file.
10470 * sysdeps/x86_64/__longjmp.S: New file.
10471 * sysdeps/x86_64/abort-instr.h: New file.
10472 * sysdeps/x86_64/atomicity.h: New file.
10473 * sysdeps/x86_64/bits/endian.h: New file.
10474 * sysdeps/x86_64/bits/setjmp.h: New file.
10475 * sysdeps/x86_64/bits/string.h: New file.
10476 * sysdeps/x86_64/bp-asm.h: New file.
10477 * sysdeps/x86_64/bsd-_setjmp.S: New file.
10478 * sysdeps/x86_64/bsd-setjmp.S: New file.
10479 * sysdeps/x86_64/dl-machine.h: New file.
10480 * sysdeps/x86_64/elf/initfini.c: New file.
10481 * sysdeps/x86_64/elf/start.S: New file.
10482 * sysdeps/x86_64/ffs.c: New file.
10483 * sysdeps/x86_64/ffsll.c: New file.
10484 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
10485 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
10486 * sysdeps/x86_64/fpu/e_acosl.c: New file.
10487 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
10488 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
10489 * sysdeps/x86_64/fpu/e_expl.c: New file.
10490 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
10491 * sysdeps/x86_64/fpu/e_log10l.S: New file.
10492 * sysdeps/x86_64/fpu/e_log2l.S: New file.
10493 * sysdeps/x86_64/fpu/e_logl.S: New file.
10494 * sysdeps/x86_64/fpu/e_powl.S: New file.
10495 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
10496 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
10497 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
10498 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
10499 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
10500 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
10501 * sysdeps/x86_64/fpu/fegetenv.c: New file.
10502 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
10503 * sysdeps/x86_64/fpu/fegetround.c: New file.
10504 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
10505 * sysdeps/x86_64/fpu/fesetenv.c: New file.
10506 * sysdeps/x86_64/fpu/fesetround.c: New file.
10507 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
10508 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
10509 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
10510 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
10511 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
10512 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
10513 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
10514 * sysdeps/x86_64/fpu/s_atanl.c: New file.
10515 * sysdeps/x86_64/fpu/s_cosl.S: New file.
10516 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
10517 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
10518 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
10519 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
10520 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
10521 * sysdeps/x86_64/fpu/s_logbl.c: New file.
10522 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
10523 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
10524 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
10525 * sysdeps/x86_64/fpu/s_rintl.c: New file.
10526 * sysdeps/x86_64/fpu/s_significandl.c: New file.
10527 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
10528 * sysdeps/x86_64/fpu/s_sinl.S: New file.
10529 * sysdeps/x86_64/fpu/s_tanl.S: New file.
10530 * sysdeps/x86_64/gmp-mparam.h: New file.
10531 * sysdeps/x86_64/hp-timing.c: New file.
10532 * sysdeps/x86_64/hp-timing.h: New file.
10533 * sysdeps/x86_64/htonl.S: New file.
10534 * sysdeps/x86_64/memusage.h: New file.
10535 * sysdeps/x86_64/setjmp.S: New file.
10536 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
10537 * sysdeps/x86_64/stackinfo.h: New file.
10538 * sysdeps/x86_64/sysdep.h: New file.
10539 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
10541 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
10544 2001-09-18 Ulrich Drepper <drepper@redhat.com>
10546 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
10547 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
10549 2001-09-18 Andreas Schwab <schwab@suse.de>
10551 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
10552 list, now that l_scope is a pointer.
10554 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
10557 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
10559 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
10560 (elf_machine_rela_relative): Add a missing declaration.
10562 2001-09-18 Jakub Jelinek <jakub@redhat.com>
10564 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
10565 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
10566 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
10567 ldd-rewrite scripts.
10569 2001-09-18 Ulrich Drepper <drepper@redhat.com>
10571 * elf/ldd.bash.in: Update copyright message.
10573 2001-09-17 H.J. Lu <hjl@gnu.org>
10575 * hurd/hurdmalloc.c (bcopy): Removed.
10576 (realloc): Replace bcopy with memcpy.
10577 * hurd/path-lookup.c (file_name_path_scan): Likewise.
10578 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
10579 * sunrpc/rpcinfo.c (pmapdump): Likewise.
10581 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
10582 (gethostbyaddr): Likewise.
10583 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
10585 2001-09-18 Ulrich Drepper <drepper@redhat.com>
10587 * sysdeps/gnu/eval.c: Removed.
10589 2001-09-18 Andreas Jaeger <aj@suse.de>
10591 * sysdeps/i386/fpu/s_logbl.S: Move to ...
10592 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
10594 * sysdeps/i386/fpu/s_rintl.S: Move to ...
10595 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
10597 * sysdeps/i386/fpu/s_significandl.S: Move to ...
10598 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
10600 2001-09-16 Ulrich Drepper <drepper@redhat.com>
10602 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
10605 2001-09-14 H.J. Lu <hjl@gnu.org>
10607 * sysdeps/mips/fpu/libm-test-ulps: Updated.
10609 2001-09-14 Ulrich Drepper <drepper@redhat.com>
10611 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
10612 Patch by Florian La Roche <laroche@redhat.com>.
10614 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
10616 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
10619 2001-09-14 Andreas Schwab <schwab@suse.de>
10621 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
10622 Sumner <bls@sgi.com>.
10623 * posix/execlp.c: Likewise.
10625 2001-09-13 Jakub Jelinek <jakub@redhat.com>
10627 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
10628 is already found earlier in the search scope.
10630 2001-09-12 Jakub Jelinek <jakub@redhat.com>
10632 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
10635 2001-09-13 Ulrich Drepper <drepper@redhat.com>
10637 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
10639 2001-09-12 Ulrich Drepper <drepper@redhat.com>
10641 * config.h.in: Enforce optimization to be used.
10642 * Makeconfig (preprocess-versions): Define ASSEMBLER.
10643 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
10644 * posix/Makefile (annexc-CFLAGS): Define to -O.
10645 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
10647 2001-09-11 Ulrich Drepper <drepper@redhat.com>
10649 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
10650 Patch by Stephan Kulow.
10652 2001-09-08 Ben Collins <bcollins@debian.org>
10654 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
10655 usage of RESOLVE() (r_type, not reloc->r_type).
10657 2001-09-08 Ulrich Drepper <drepper@redhat.com>
10659 * elf/dl-object.c: Avoid allocating extra memory block for name.
10660 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
10661 allocated separately.
10662 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
10664 2001-09-08 H.J. Lu <hjl@gnu.org>
10666 * po/zh_TW.po: Fix a typo.
10668 2001-09-07 Tom Rix <trix@redhat.com>
10670 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
10672 2001-08-26 Tom Rix <trix@redhat.com>
10674 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
10675 command line options.
10676 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
10677 * sysdeps/unix/sysv/aix/start.c: Removed.
10678 * sysdeps/unix/sysv/aix/start-libc.c: New file.
10679 * sysdeps/unix/sysv/aix/init-first.c: New file.
10680 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
10682 2001-09-08 Ben Collins <bcollins@debian.org>
10684 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
10685 * sysdeps/generic/dl-machine.h: Likewise.
10686 * sysdeps/hppa/dl-fptr.c: Likewise.
10687 * sysdeps/ia64/dl-fptr.c: Likewise.
10688 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10689 * sysdeps/mips/dl-machine.h: Likewise.
10690 * sysdeps/mips/mips64/dl-machine.h: Likewise.
10691 * sysdeps/powerpc/dl-machine.c: Likewise.
10693 2001-09-07 Ben Collins <bcollins@debian.org>
10695 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
10697 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
10699 2001-09-08 Ulrich Drepper <drepper@redhat.com>
10701 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
10702 dependencies if necessary.
10704 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
10705 loaded directly) determine length if l_initfini list by iterating
10706 over its elements. Minor optimizations.
10707 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
10708 for dependency objects.
10709 If object was already loaded check whether any of the dependencies
10710 is already on the relocation dependency list. If yes, remove the
10711 latter. Minor optimizations.
10712 * elf/dl-lookup.c (add_dependency): Add check for self reference of
10713 maps here. Search l_initfini list only if the object was loaded
10714 directly and not only as a dependency.
10715 (_dl_lookup_symbol): Add relocation dependency also if object
10716 is not in global scope. Remove test for self-reference here.
10717 (_dl_lookup_versioned_symbol): Likewise.
10718 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
10719 element of first name record.
10720 * elf/loadtest.c: Add some more test to recognize early if an object
10722 * elf/Makefile: Add rules to build and run reldep5.
10723 * elf/reldep5.c: New file.
10724 * elf/reldepmod5.c: New file.
10725 * elf/reldepmod6.c: New file.
10727 * elf/reldep2.c: Fix typo.
10729 2001-09-07 Ulrich Drepper <drepper@redhat.com>
10731 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
10732 elements. Change l_scope to be a pointer only.
10733 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
10734 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
10735 here add searchlist of newly open file to the dependency's scope.
10736 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
10737 only searchlist from its scope. Free own scope array if necessary.
10738 * elf/Makefile (tests): Add dblload and dblunload now.
10740 2001-09-06 Andreas Jaeger <aj@suse.de>
10742 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
10745 2001-09-05 Ulrich Drepper <drepper@redhat.com>
10747 * elf/Makefile: Add rules to build new tests. Don't run them yet since
10749 * elf/dblload.c: New file.
10750 * elf/dblloadmod1.c: New file.
10751 * elf/dblloadmod2.c: New file.
10752 * elf/dblloadmod3.c: New file.
10753 * elf/dblunload.c: New file.
10755 2001-09-04 Richard Henderson <rth@redhat.com>
10757 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
10758 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
10760 2001-09-04 Ulrich Drepper <drepper@redhat.com>
10762 Correct very misleading message for error in failed runtime relocation.
10763 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
10764 place of the error.
10765 (_dl_signal_cerror): Likewise.
10766 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
10767 * elf/dl-close.c: Likewise.
10768 * elf/dl-deps.c: Likewise.
10769 * elf/dl-load.c: Likewise.
10770 * elf/dl-lookup.c: Likewise.
10771 * elf/dl-open.c: Likewise.
10772 * elf/dl-reloc.c: Likewise.
10773 * elf/dl-sym.c: Likewise.
10774 * elf/dl-version.c: Likewise.
10775 * sysdeps/generic/dl-sysdep.c: Likewise.
10777 2001-09-04 Jakub Jelinek <jakub@redhat.com>
10779 * iconv/strtab.c (strtabinit): Initialize null Strent.
10780 (newstring): Move len == 0 handling...
10781 (strtabadd): ...here.
10782 If len == 1, return null Strent.
10783 When inserting a suffix of an existing string, check if
10784 it is not equal to some suffix already recorded.
10785 Copy left and right members over if adding longer string.
10787 2001-09-04 Jakub Jelinek <jakub@redhat.com>
10789 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
10791 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
10792 (__syscall_gethostname): Add prototype.
10794 2001-09-04 Ulrich Drepper <drepper@redhat.com>
10796 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
10798 2001-09-02 Ulrich Drepper <drepper@redhat.com>
10800 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
10802 2001-08-27 Roland McGrath <roland@frob.com>
10804 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
10805 short, copy that much into NAME anyway before returning error.
10807 2001-09-01 Richard Henderson <rth@redhat.com>
10809 * sysdeps/alpha/elf/Dist: Remove file.
10810 * sysdeps/alpha/elf/Makefile: Remove file.
10811 * sysdeps/alpha/elf/crtbegin.S: Remove file.
10812 * sysdeps/alpha/elf/crtend.S: Remove file.
10813 * sysdeps/alpha/elf/initfini.c: New file.
10815 2001-09-01 Mark Kettenis <kettenis@gnu.org>
10817 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
10818 * iconv/tst-iconv3.c: Likewise.
10820 2001-09-01 Jakub Jelinek <jakub@redhat.com>
10822 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
10824 2001-09-01 Ulrich Drepper <drepper@redhat.com>
10826 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
10828 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
10829 * iconv/iconv_prog.c (insert_cache): New function.
10830 (print_known_names): If cache is used call insert_cache to use the
10831 information from the cache [PR libc/2509].
10833 2001-08-31 Ulrich Drepper <drepper@redhat.com>
10835 * time/strptime.c (strptime_internal): Recognize 'l' format and
10836 handle it like 'I' for symmetry with strftime.
10838 2001-08-31 Richard Henderson <rth@redhat.com>
10840 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
10841 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
10842 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
10843 (print_statistics): Make scalar unsigned long long.
10844 * sysdeps/alpha/hp-timing.h: New file.
10846 2001-08-31 Jakub Jelinek <jakub@redhat.com>
10848 * stdio-common/perror.c (perror): Save errno early, pass it
10849 down to perror_internal.
10850 (perror_internal): Add errnum argument.
10852 2001-08-31 Jakub Jelinek <jakub@redhat.com>
10854 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
10855 Don't add old memory content for R_ALPHA_REFQUAD.
10857 2001-08-30 Ulrich Drepper <drepper@redhat.com>
10859 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
10862 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
10863 instead of open, __close instead of close, __getpagesize instead
10866 * string/argz-stringify.c (__argz_stringify): Use __strnlen
10867 instead of strnlen.
10868 * include/string.h (strndupa): Redefine here to use __strnlen
10869 instead of strnlen.
10870 * string/strndup.c (__strndup): Use __strnlen not strnlen.
10872 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
10875 2001-08-30 Jakub Jelinek <jakub@redhat.com>
10877 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
10878 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
10879 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
10880 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
10881 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
10882 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
10883 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
10885 2001-08-30 Ulrich Drepper <drepper@redhat.com>
10887 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
10889 2001-08-30 Andreas Jaeger <aj@suse.de>
10891 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
10892 contributed Stephen L Moshier.
10894 2001-08-30 Jakub Jelinek <jakub@redhat.com>
10896 * sunrpc/etc.rpc (sgi_fam): Add.
10898 2001-08-30 Ulrich Drepper <drepper@redhat.com>
10900 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
10902 2001-08-29 Ulrich Drepper <drepper@redhat.com>
10904 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
10905 first is from a previous call.
10906 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
10908 2001-08-29 Andreas Schwab <schwab@suse.de>
10910 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
10912 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
10914 * config.make.in (INSTALL_SCRIPT): Define.
10915 * Makeconfig (INSTALL_SCRIPT): Define.
10916 * Makerules (do-install-script): New macro to install scripts using
10918 (install-bin-script): New rule to install scripts with
10920 (install-bin-script-nosubdir): New rule.
10921 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
10922 (distinfo-vars): Add $(install-bin-script).
10923 * Rules (others): Likewise.
10924 * Makefile (glibcbug): Install with install-bin-script.
10925 * debug/Makefile (xtrace): Likewise.
10926 (catchsegv): Likewise.
10927 * elf/Makefile (ldd): Likewise.
10928 * malloc/Makefile (mtrace): Likewise.
10929 * timezone/Makefile (tzselect): Likewise.
10931 2001-08-29 H.J. Lu <hjl@gnu.org>
10933 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
10934 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
10935 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
10937 2001-08-29 Andreas Schwab <schwab@suse.de>
10939 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
10941 2001-08-28 H.J. Lu <hjl@gnu.org>
10943 * Makeconfig (combreloc-LDFLAGS): New variable.
10944 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
10945 * config.make.in (have-z-combreloc): New variable.
10946 * configure.in: Substitute libc_cv_z_combreloc.
10948 2001-08-29 Ulrich Drepper <drepper@redhat.com>
10950 * po/sv.po: Update from translation team.
10951 * po/fr.po: Likewise.
10952 * po/da.po: Likewise.
10954 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
10956 * Makerules: Fix a typo: MD% -> MD5.
10958 2001-08-28 Ulrich Drepper <drepper@redhat.com>
10960 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
10961 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
10963 2001-08-28 Andreas Jaeger <aj@suse.de>
10965 * manual/libc-texinfo.sh: Add entry about free manuals.
10967 * manual/contrib.texi (Contributors): Fix cross reference.
10969 * manual/libc.texinfo (Copying): Include freemanuals.
10971 * manual/Makefile (appendices): Add freemanuals.
10973 * manual/freemanuals.texi: New file.
10974 Patch by Brian Youmans <3diff@gnu.org>.
10976 * manual/libm-err-tab.pl: Pretty print more platforms, print a
10979 * manual/math.texi (Errors in Math Functions): Fix grammar, start
10980 table on separate page.
10981 Patch by Brian Youmans <3diff@gnu.org>.
10983 2001-08-27 Ulrich Drepper <drepper@redhat.com>
10985 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
10986 the connection went down after we first used it try to connect
10987 again and resend the message before printing to the console.
10988 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
10990 2001-08-27 Jakub Jelinek <jakub@redhat.com>
10992 * string/tst-strlen.c (main): Test strnlen (, -1) too.
10993 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
10996 2001-08-27 Ulrich Drepper <drepper@redhat.com>
10998 * iconv/strtab.c (searchstring): Use correct length for comparison.
10999 (strtabadd): Account total size correct if new string has old string as
11002 2001-08-27 Jakub Jelinek <jakub@redhat.com>
11004 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
11006 2001-08-27 Andreas Jaeger <aj@suse.de>
11008 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
11010 * math/libm-test.inc (j0_test): Add extra tests.
11011 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
11012 not x, in Hankel approximation.
11013 Patches by Stephen L Moshier.
11015 2001-08-26 Ulrich Drepper <drepper@redhat.com>
11017 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
11020 * configure.in: Fix test for .rela.dyn section.
11022 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
11024 2001-08-26 Jakub Jelinek <jakub@redhat.com>
11026 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
11027 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
11028 Pass type_class to _dl_lookup_*.
11029 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
11030 Pass around just type_class instead of noexec, noplt pair.
11031 (_dl_lookup_versioned_symbol): Likewise.
11032 (_dl_lookup_symbol_skip): Pass around just type_class instead of
11033 noexec, noplt pair.
11034 (_dl_lookup_versioned_symbol_skip): Likewise.
11035 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
11036 * elf/do-lookup.h (do_lookup): Likewise.
11037 * include/link.h (struct link_map): Replace noexec and noplt fields
11038 in l_lookup_cache with type_class field.
11039 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
11040 ELF_RTYPE_CLASS_COPY): Define.
11041 Adjust prototypes for _dl_lookup_symbol and
11042 _dl_lookup_versioned_symbol.
11043 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
11044 elf_machine_lookup_noexec_p): Remove.
11045 (elf_machine_type_class): Define.
11046 * sysdeps/arm/dl-machine.h: Likewise.
11047 * sysdeps/hppa/dl-machine.h: Likewise.
11048 * sysdeps/cris/dl-machine.h: Likewise.
11049 * sysdeps/i386/dl-machine.h: Likewise.
11050 * sysdeps/ia64/dl-machine.h: Likewise.
11051 * sysdeps/m68k/dl-machine.h: Likewise.
11052 * sysdeps/mips/mips64/dl-machine.h: Likewise.
11053 * sysdeps/mips/dl-machine.h: Likewise.
11054 * sysdeps/powerpc/dl-machine.h: Likewise.
11055 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11056 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11057 * sysdeps/sh/dl-machine.h: Likewise.
11058 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11059 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11061 2001-08-26 Ulrich Drepper <drepper@redhat.com>
11063 * manual/message.texi (Advanced gettext functions): Change
11064 description of plural forms for Slovak.
11065 Reported by Marcel Telka <marcel@telka.sk>.
11067 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
11068 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
11070 2001-08-26 Jakub Jelinek <jakub@redhat.com>
11072 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
11073 typo. Patch by Florian La Roche <laroche@redhat.com>.
11075 2001-08-26 Ulrich Drepper <drepper@redhat.com>
11077 * include/link.h (struct link_map): Add l_lookup_cache element.
11078 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
11079 (RESOLVE_MAP): Likewise.
11080 (_dl_relocate_object): Remove cache initialization.
11081 * elf/dl-lookup.c: Rip out cache handling code.
11082 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
11085 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
11086 remove some __builtin_expect.
11087 (_dl_lookup_versioned_symbol): Likewise.
11089 * config.h.in: Add HAVE_Z_COMBRELOC.
11090 * configure.in: Add test for -z combreloc.
11092 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
11093 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
11094 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
11095 case to almost no code.
11097 2001-08-25 Ulrich Drepper <drepper@redhat.com>
11099 * po/tr.po: Update from translation team.
11101 2001-08-24 Andreas Jaeger <aj@suse.de>
11103 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
11106 2001-08-24 Ulrich Drepper <drepper@redhat.com>
11108 * elf/rtld.c (print_statistics): Printf % after percent values.
11109 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
11111 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
11112 don't have to compute the hash value and initialize current_value.
11113 Move reference_name variable to where it is needed.
11114 (_dl_lookup_versioned_symbol): Likewise.
11116 2001-08-24 Roland McGrath <roland@frob.com>
11118 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
11119 Just test that strerror returns non-null for a few errno codes.
11121 2001-08-23 Roland McGrath <roland@frob.com>
11123 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
11124 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
11126 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
11128 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
11131 2001-08-24 Ulrich Drepper <drepper@redhat.com>
11133 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
11136 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
11137 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
11139 * elf/rtld.c: Include <sys/param.h>.
11140 * elf/dl-reloc.c: Likewise.
11142 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
11144 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
11145 empty to prevent junk from being generated.
11146 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
11148 2001-08-24 Jakub Jelinek <jakub@redhat.com>
11150 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
11151 records. Rename endrel to relative, initialize it to r, and use it
11152 in elf_machine_rel_relative calls. Point r after relative relocs.
11154 2001-08-24 Ulrich Drepper <drepper@redhat.com>
11156 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
11159 2001-08-24 Jakub Jelinek <jakub@redhat.com>
11161 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
11162 necessary. Undefine newly defined macros at the end.
11163 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
11164 Rename from elf_machine_rel_relative.
11165 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
11166 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
11167 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
11168 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
11170 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
11172 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
11173 Fix argument types.
11174 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
11175 Fix argument types.
11176 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
11177 Likewise. Fix argument types.
11178 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
11179 Likewise. Fix argument types.
11180 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
11181 Fix argument types.
11182 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
11183 ElfW(Rel) in argument.
11184 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
11187 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
11189 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
11191 2001-08-24 Andreas Jaeger <aj@suse.de>
11193 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
11194 Stephen L Moshier <moshier@mediaone.net>.
11196 2001-08-24 Ulrich Drepper <drepper@redhat.com>
11198 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
11199 first if RELCOUNT is set.
11201 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
11202 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
11203 elf_machine_rel_relative.
11204 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
11205 Minor optimizations.
11206 * sysdeps/arm/dl-machine.h: Likewise.
11207 * sysdeps/cris/dl-machine.h: Likewise.
11208 * sysdeps/hppa/dl-machine.h: Likewise.
11209 * sysdeps/i386/dl-machine.h: Likewise.
11210 * sysdeps/ia64/dl-machine.h: Likewise.
11211 * sysdeps/m68k/dl-machine.h: Likewise.
11212 * sysdeps/mips/dl-machine.h: Likewise.
11213 * sysdeps/powerpc/dl-machine.h: Likewise.
11214 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11215 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11216 * sysdeps/sh/dl-machine.h: Likewise.
11217 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11218 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11220 2001-08-23 Roland McGrath <roland@frob.com>
11222 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
11224 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
11225 sysdeps/mach version. Implement counting ("recursive") mutexes
11226 on top of cthreads mutexes.
11227 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
11229 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
11230 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
11231 (__libc_cleanup_region_start, __libc_cleanup_region_end,
11232 __libc_clean_end): Define these to call the cleanup function after
11233 normal exit when they're supposed to.
11235 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
11236 Take new first arg DOIT, a boolean saying whether to really install
11237 any cleanup handler.
11238 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
11239 (__libc_cleanup_end): Likewise.
11240 * sysdeps/generic/bits/libc-lock.h: Same changes.
11241 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
11242 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
11243 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
11245 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
11246 * sysdeps/generic/bits/stdio-lock.h
11247 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
11249 2001-08-23 Jakub Jelinek <jakub@redhat.com>
11251 * elf/ldconfig.c (search_dir): Remove stale symlinks.
11253 2001-08-23 Jakub Jelinek <jakub@redhat.com>
11255 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
11256 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
11258 (_dl_lookup_versioned_symbol): Likewise.
11259 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
11261 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
11262 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
11263 (lookup_cache, lookup_cache_versioned): Add declarations.
11265 2001-08-23 Ulrich Drepper <drepper@redhat.com>
11267 * stdlib/tst-random.c (main): Swap parameters in fail call.
11268 Patch by Pete Bevin <pete@petebevin.com>.
11270 2001-08-23 Jakub Jelinek <jakub@redhat.com>
11272 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
11274 2001-08-23 Ulrich Drepper <drepper@redhat.com>
11276 * malloc/obstack.c: Indent preprocessor directives.
11277 Patch by Jim Meyering <meyering@ascend.com>.
11279 * po/ja.po: Update from translation team.
11281 2001-08-23 Roland McGrath <roland@frob.com>
11283 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
11285 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
11286 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
11288 2001-08-22 Roland McGrath <roland@frob.com>
11290 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
11291 __libc_lock_define_recursive.
11292 * elf/dl-open.c: Don't declare it here any more.
11293 * elf/dl-close.c: Likewise.
11294 * elf/dl-lookup.c: Likewise.
11295 * elf/dl-iteratephdr.c: Likewise.
11296 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
11297 __libc_lock_unlock_recursive.
11298 * elf/dl-close.c (_dl_close): Likewise
11299 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
11300 * elf/dl-open.c (_dl_open): Likewise
11302 * sysdeps/generic/bits/libc-lock.h
11303 (__libc_lock_define_recursive): New macro.
11304 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
11305 (_IO_lock_lock): Use __libc_lock_lock_recursive.
11306 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
11308 * conform/conformtest.pl (checknamespace): Sort the output list.
11310 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
11311 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
11312 definitions conditional on [__USE_XOPEN].
11314 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
11315 these unconditionally, not only use [__USE_BSD], so as to match
11316 the sysdeps/unix/sysv/linux files.
11318 2001-08-22 Ulrich Drepper <drepper@redhat.com>
11320 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
11323 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
11326 2001-08-22 Roland McGrath <roland@frob.com>
11328 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
11329 conditionalization of sa_handler/sa_sigaction member types to
11330 match the sysdeps/unix/sysv/linux file.
11332 2001-08-22 Ulrich Drepper <drepper@redhat.com>
11334 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
11335 symbol sizes a bit better.
11337 * sysdeps/ia64/strncpy.S: Complete rewrite.
11338 Contributed by Jakub Jelinek <jakub@redhat.com>.
11340 * string/stratcliff.c (main): Add strncpy test.
11342 2001-08-22 Roland McGrath <roland@frob.com>
11344 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
11345 and don't declare unsetenv or _environ directly.
11346 (unsetenv): Return int, not void. Use __environ instead of _environ.
11348 2001-08-01 Mark Kettenis <kettenis@gnu.org>
11350 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
11351 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
11352 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
11353 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
11354 test for cmsg struct size.
11356 2001-04-23 Paul Eggert <eggert@twinsun.com>
11358 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
11359 Rename __argc to ___argc in prototypes to avoid compatibility
11360 problems with systems that reserve the identifier "__argc".
11361 Similarly for __argv.
11363 2001-08-21 Roland McGrath <roland@frob.com>
11365 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
11367 * mach/Makefile (tests): Removed.
11368 * mach/hello.c: File removed.
11370 2001-08-22 Ulrich Drepper <drepper@redhat.com>
11372 * po/sv.po: Update from translation team.
11374 * stdio-common/vfscanf.c: Fix handling of %l[].
11375 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
11377 * libio/Makefile (tests): Add tst-sscanf.
11378 * libio/tst-sscanf.c: New file.
11380 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
11381 * malloc/mtrace.c (tr_where): dli_sname always points to a
11382 non-empty string if != NULL.
11383 Reported by Tim Janik <timj@gtk.org>.
11385 2001-08-22 Jakub Jelinek <jakub@redhat.com>
11387 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
11388 buf. Free resources on failure.
11389 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
11390 (makefd_xprt): Likewise.
11391 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
11392 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
11393 * sunrpc/auth_unix.c (authunix_create): Likewise.
11395 2001-08-21 Jakub Jelinek <jakub@redhat.com>
11397 * string/strnlen.c: Remove.
11398 * sysdeps/generic/strnlen.c: New file.
11399 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
11401 2001-08-21 Roland McGrath <roland@frob.com>
11403 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
11404 as a macro, not an extern inline function.
11406 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
11407 * Versions.def (libc): Add GLIBC_2.2.5 set.
11408 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
11409 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
11411 2001-08-20 Roland McGrath <roland@frob.com>
11413 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
11414 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
11416 2001-08-21 Ulrich Drepper <drepper@redhat.com>
11418 * string/bits/string2.h: Remove strnlen optimization here.
11419 * sysdeps/i386/i486/bits/string.h: Add it here.
11421 2001-08-21 Wolfram Gloger <wg@malloc.de>
11423 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
11425 2001-08-21 Ulrich Drepper <drepper@redhat.com>
11427 * po/gl.po: Update from translation team.
11429 2001-08-20 Ulrich Drepper <drepper@redhat.com>
11431 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
11432 * misc/err.c (convert_and_print): Likewise.
11434 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
11437 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11439 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
11440 change of the gregset_t type.
11441 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
11443 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
11445 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
11447 2001-08-20 Ulrich Drepper <drepper@redhat.com>
11449 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
11451 * string/strnlen.c: Fix the implementation. We cannot use memchr.
11453 2001-08-18 Mark Kettenis <kettenis@gnu.org>
11455 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
11456 before calling the cthreads initialization code.
11458 2001-08-20 Ulrich Drepper <drepper@redhat.com>
11460 * argp/argp-help.c: Fix two problems introduced in last change.
11462 * include/dirent.h: Include <dirstream.h> first.
11464 2001-08-19 Ulrich Drepper <drepper@redhat.com>
11466 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
11468 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
11469 * sunrpc/xdr_rec.c: Likewise.
11470 * sunrpc/xdr_mem.c: Likewise.
11471 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
11472 * sunrpc/rpc_cmsg.c: Likewise.
11473 * sunrpc/getrpcport.c (getrpcport): Likewise.
11474 * sunrpc/clnt_simp.c (callrpc): Likewise.
11475 * sunrpc/clnt_gen.c (clnt_create): Likewise.
11476 * string/envz.c: Likewise.
11478 * po/ko.po: Update from translation team.
11480 * argp/argp-help.c: Handle wide oriented stderr stream.
11482 2001-08-18 Ulrich Drepper <drepper@redhat.com>
11484 * sysdeps/generic/strtol.c: Little optimizations. Add some
11487 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
11489 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
11490 * wcsmbs/wcwidth.c (wcwdith): Likewise.
11491 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
11493 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
11495 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
11497 * time/time.h (struct timespec): Use __time_t for tv_sec element.
11499 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
11500 wchar_t for function declarations and defintions.
11502 * misc/sys/select.h: Define __need_time_t before including <time.h>.
11503 Define suseconds_t if it hasn't happened yet.
11505 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
11507 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
11509 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
11512 * conform/data/stddef.h-data: Remove wint_t.
11514 * conform/conformtest.pl: Change namespace test to take #undef
11515 lines into account.
11517 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
11519 * conform/data/sys/socket.h-data: Add sockatmark.
11521 2001-08-17 Ulrich Drepper <drepper@redhat.com>
11523 * io/fts.c: Update from recent BSD source.
11525 2001-08-17 Roland McGrath <roland@frob.com>
11527 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
11528 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
11531 2001-08-17 Ulrich Drepper <drepper@redhat.com>
11533 * locale/duplocale.c (__duplocale): Also initialize the special
11534 __ctype_* elements.
11536 * conform/data/netdb.h-data: Adjust gai_strerror return type.
11538 2001-08-17 Andreas Jaeger <aj@suse.de>
11540 * misc/getpass.c: Include wchar.h for prototypes.
11541 * malloc/obstack.c: Likewise.
11543 2001-08-17 Ulrich Drepper <drepper@redhat.com>
11545 * sunrpc/svc_simple.c (universal): Use __write instead of write.
11547 * wcsmbs/wcscoll.c: Also define __wcscoll.
11548 * include/wchar.h: Declare __wcscoll.
11550 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
11551 * libio/vwprintf.c: Likewise.
11552 * libio/wprintf.c: Likewise.
11554 * iconv/gconv_cache.c: Use __munmap instead of munmap.
11556 2001-08-16 Ulrich Drepper <drepper@redhat.com>
11558 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
11559 instead of mbrtowc.
11560 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
11561 wcslen, and __wcscoll instead of wcscoll.
11563 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
11565 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
11566 __getuid instead of getuid.
11568 * stdio-common/perror.c (perror): Use __close instead of close.
11569 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
11570 * libio/freopen.c (freopen): Likewise.
11571 * libio/freopen64.c (freopen64): Likewise.
11573 * libio/tst-ungetwc2.c (main): Define str const.
11575 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
11576 * libio/fwprintf.c: Also define __fwprintf.
11577 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
11578 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
11579 * assert/assert-perr.c: Likewise.
11580 * assert/assert.c: Likewise.
11581 * gmon/gmon.c: Likewise.
11582 * inet/rcmd.c: Likewise.
11583 * malloc/obstack.c: Likewise.
11584 * misc/err.c: Likewise.
11585 * misc/error.c: Likewise.
11586 * misc/getpass.c: Likewise.
11587 * posix/getopt.c: Likewise.
11588 * resolv/res_hconf.c: Likewise.
11589 * stdio-common/perror.c: Likewise.
11590 * stdio-common/psignal.c: Likewise.
11591 * stdlib/fmtmsg.c: Likewise.
11592 * sunrpc/auth_unix.c: Likewise.
11593 * sunrpc/clnt_perr.c: Likewise.
11594 * sunrpc/clnt_tcp.c: Likewise.
11595 * sunrpc/clnt_udp.c: Likewise.
11596 * sunrpc/clnt_unix.c: Likewise.
11597 * sunrpc/svc_simple.c: Likewise.
11598 * sunrpc/svc_tcp.c: Likewise.
11599 * sunrpc/svc_udp.c: Likewise.
11600 * sunrpc/svc_unix.c: Likewise.
11601 * sunrpc/xdr.c: Likewise.
11602 * sunrpc/xdr_array.c: Likewise.
11603 * sunrpc/xdr_rec.c: Likewise.
11604 * sunrpc/xdr_ref.c: Likewise.
11605 * sysdeps/generic/wordexp.c: Likewise.
11607 * po/it.po: Update from translation team.
11609 * misc/err.c: Handle wide oriented stderr stream.
11611 2001-08-14 Tom Rix <trix@redhat.com>
11613 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
11614 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
11616 2001-08-13 Tom Rix <trix@redhat.com>
11618 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
11619 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
11622 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
11624 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
11625 Store the access registers to the ucontext structure.
11626 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
11629 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
11630 Load the access registers from the ucontext structure.
11631 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
11634 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
11635 offsets to the new ucontext layout.
11636 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
11638 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
11639 of the ucontext structure.
11640 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
11642 2001-08-15 Ulrich Drepper <drepper@redhat.com>
11644 * misc/error.c (error): Handle wide oriented stderr stream correctly.
11645 (error_at_line): Likewise.
11647 * stdio-common/perror.c (perror): Implement according to standard.
11648 The stream orientation must not be changed if the stream was not
11649 oriented before the call.
11650 * stdio-common/Makefile (tests): Add tst-perror.
11651 * stdio-common/tst-perror.c: New file.
11654 See ChangeLog.12 for earlier changes.