1 2002-08-28 Jakub Jelinek <jakub@redhat.com>
3 * locale/programs/locarchive.c (insert_name): Suppress warnings about
4 hash collisions if be_quiet.
6 2002-08-27 Roland McGrath <roland@redhat.com>
8 * locale/locale.h (__newlocale, __duplocale, __freelocale,
9 __uselocale): Don't declare these any more.
10 * include/locale.h (__uselocale): Declare here instead, using __typeof.
12 * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
13 and treat it as an EOF return.
14 * sysdeps/unix/readdir_r.c: Likewise.
16 * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
17 From Alexandre Oliva <aoliva@redhat.com>.
18 * sysdeps/gnu/errlist-compat.c: Regenerated.
20 2002-08-27 Brian Youmans <3diff@gnu.org>
22 * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
23 wording at request of copyright holder Stephen Moshier.
24 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
25 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
26 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
27 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
28 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
29 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
30 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
31 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
32 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
33 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
34 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
35 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
36 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
37 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
39 2002-08-28 Jakub Jelinek <jakub@redhat.com>
41 * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
42 * ctype/ctype-extn.c (isblank_l): Add weak alias.
43 * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
44 * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
45 * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
46 * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
47 * wctype/iswctype_l.c (iswctype_l): Likewise.
49 2002-08-27 Roland McGrath <roland@redhat.com>
51 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
53 * ctype/ctype.h (__exctype_l): Don't declare __ name.
54 * stdlib/stdlib.h: Don't declare __*_l names.
55 * include/stdlib.h: Declare them here instead.
56 * include/string.h: Don't declare __*_l names.
57 * string/string.h: Declare them here instead.
58 * time/time.h: Don't declare __*_l names.
59 * include/time.h: Declare them here instead.
60 * wcsmbs/wchar.h: Don't declare __*_l names.
61 * include/wchar.h: Declare them here instead.
62 * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
63 Don't declare __*_l names.
64 * include/wctype.h: Declare them here instead.
65 * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
66 * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
67 * locale/langinfo.h: Don't declare __nl_langinfo_l.
68 * include/langinfo.h: Declare it here with __typeof.
70 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
71 instead, taking an extra __locale_t argument.
72 * time/Makefile (routines): Add strptime_l.
73 * time/time.h (__strptime_l, strptime_l): Declare them.
74 * time/strptime_l.c: New file.
76 * time/time.h (__strftime_l, strftime_l): Declare them.
77 * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
78 * time/strftime_l.c: New file.
79 * time/wcsftime_l.c: New file.
80 * time/Makefile (routines): Add strftime_l, wcsftime_l.
81 * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
82 strftime_l, wcsftime_l.
83 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
84 or __wcsftime_l instead, taking an extra __locale_t argument.
86 * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
87 (libc: GLIBC_2.3): ... here.
89 2002-08-27 Ulrich Drepper <drepper@redhat.com>
91 * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
94 * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
96 * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
98 * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
100 * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
102 * sysdeps/mach/hurd/alpha/Dist: New file.
104 * sysdeps/arm/Dist: Add bits/link.h.
106 * sunrpc/Makefile: Distribute thrsvc.
108 * stdio-common/Makefile: Remove more left-overs from old stdio.
110 * include/linewrap.h: Removed.
112 * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
114 * intl/Makefile (distribute): Add plural-eval.c.
116 2002-08-27 Roland McGrath <roland@redhat.com>
118 * manual/sysinfo.texi (Mount Information): Correct file name to macro
119 assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
120 Say mtab is in either /var/run or /etc.
122 2002-08-26 Roland McGrath <roland@redhat.com>
124 * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
125 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
127 * sysdeps/gnu/Versions: New file.
128 * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
129 _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
130 * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
131 ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
132 * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
133 and _sys_nerr_internal instead of anything else. Make it include
134 "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
135 Make it emit some asm magic if [EMIT_ERR_MAX].
136 * sysdeps/gnu/errlist.c: Regenerated.
137 * sysdeps/gnu/errlist-compat.awk: New file.
138 * sysdeps/gnu/errlist-compat.c: New file (generated).
139 * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
140 (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
141 (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
142 (SYS_ERRLIST, SYS_NERR): Macros removed.
143 (sys_nerr, _sys_nerr): Remove these weak aliases.
144 * sysdeps/unix/sysv/linux/errlist.c: File removed.
145 * sysdeps/unix/sysv/linux/errlist.h: File removed.
146 * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
148 * include/libc-symbols.h (declare_symbol): New macro.
149 * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
150 * configure.in: New check to define it.
151 * configure: Regenerated.
153 2002-08-27 Ulrich Drepper <drepper@redhat.com>
155 * stdio-common/Makefile (headers): Remove bits/stdio_lim.h. This
156 file isn't distributed. Add special rules to install bits/stdio_lim.h.
158 * Make-dist: Remove traces of old stdio.
159 * Makeconfig: Likewise.
161 * locale/Makefile (localedef-aux): New variable. Only md5
162 assigned to it. These files are not ddistributed in this directory.
164 * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
165 * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
166 * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
168 * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
170 * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
171 set h_errno to NO_RECOVERY [PR libc/4360].
173 2002-08-26 Ulrich Drepper <drepper@redhat.com>
175 * libio/Makefile (tests): Add bug-fopena+.
176 * libio/bug-fopena+.c: New file.
178 * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
180 * locale/xlocale.c: Fix the last change. The variable still has
182 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
183 (__libc_tsd_set): Add _data prefix to variable name.
185 2002-08-26 Roland McGrath <roland@redhat.com>
187 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
188 macro with inline function.
189 (sigset_get_old_mask): Likewise.
190 * sysdeps/posix/sigblock.c (__sigblock): Update callers.
191 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
192 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
193 * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
194 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
195 (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
197 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
198 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
200 2002-07-06 Bruno Haible <bruno@clisp.org>
202 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
203 sigset_get_old_mask): Make it work with larger sigset_t.
204 * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
205 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
206 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
208 2002-08-26 Roland McGrath <roland@redhat.com>
210 * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
211 * manual/filesys.texi (File Times): Document lutimes and futimes.
212 * misc/Makefile (routines): Add them.
213 * misc/Versions (libc: GLIBC_2.3): Likewise.
214 * sysdeps/generic/lutimes.c: New file.
215 * sysdeps/generic/futimes.c: New file.
216 * sysdeps/mach/hurd/lutimes.c: New file.
217 * sysdeps/mach/hurd/futimes.c: New file.
219 * manual/filesys.texi (File Times): Add explicit note about null
220 pointer argument to utimes.
222 2002-08-26 Roland McGrath <roland@frob.com>
224 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
225 (__ifreq): Add a cast. Remove an unused variable.
227 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
228 _HURD_THREADVAR_LOCALE.
230 2002-08-26 Jakub Jelinek <jakub@redhat.com>
232 * posix/regexec.c (re_search_stub): Return correct match length
234 * posix/bug-regex10.c: New test.
235 * posix/Makefile (tests): Add bug-regex10.
237 2002-08-26 Brian Youmans <3diff@gnu.org>
239 * COPYING.LIB: Replaced with fresh copy from
240 ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
241 suggested copying permission notice now says version 2.1 instead
244 * crypt/crypt.c: Changed copying permission notice to Lesser GPL
246 * crypt/crypt_util.c: Likewise.
247 * crypt/ufc.c: Likewise.
248 * elf/dl-conflict.c: Likewise.
249 * elf/dl-iteratephdr.c: Likewise.
250 * iconv/iconvconfig.h: Likewise.
251 * malloc/arena.c: Likewise.
252 * malloc/hooks.c: Likewise.
253 * malloc/malloc.c: Likewise.
254 * posix/glob/Makefile.ami: Likewise.
255 * posix/glob/Makefile.in: Likewise.
256 * stdlib/gmp-impl.h: Likewise.
257 * stdlib/gmp.h: Likewise.
258 * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
259 * sysdeps/generic/strnlen.c: Likewise.
260 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
261 * sysdeps/mach/hurd/recvmsg.c: Likewise.
262 * sysdeps/mach/hurd/sendmsg.c: Likewise.
263 * sysdeps/mach/hurd/spawni.c: Likewise.
264 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
265 * sysdeps/mach/powerpc/sysdep.h: Likewise.
266 * sysdeps/mach/powerpc/thread_state.h: Likewise.
267 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
268 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
269 * sysdeps/x86_64/gmp-mparam.h: Likewise.
271 * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
272 Lesser GPL copying permission notice from 2 to 2.1.
273 * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
274 * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
275 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
276 * sysdeps/ieee754/dbl-64/branred.c: Likewise.
277 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
278 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
279 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
280 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
281 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
282 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
283 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
284 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
285 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
286 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
287 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
288 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
289 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
290 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
291 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
292 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
293 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
294 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
295 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
296 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
297 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
298 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
299 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
300 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
301 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
302 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
303 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
304 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
305 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
306 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
307 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
308 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
309 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
310 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
311 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
312 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
313 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
314 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
315 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
316 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
317 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
318 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
319 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
320 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
321 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
322 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
323 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
324 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
325 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
326 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
327 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
329 * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
330 Moshier and Lesser GPL copying permission notice, per license from
332 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
333 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
334 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
335 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
336 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
337 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
338 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
339 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
340 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
341 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
342 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
343 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
344 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
345 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
347 * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
348 notice, per license from copyright holder Stephen Moshier.
349 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
350 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
351 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
352 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
353 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
354 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
355 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
356 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
357 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
359 2002-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
361 * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
362 (shared-only-routines): Likewise.
364 2002-08-26 Roland McGrath <roland@redhat.com>
366 * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
367 name of "", store a null pointer instead.
369 * configure.in (elf): Set to yes for freebsd*, netbsd*.
370 * configure: Regenerated.
372 * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
373 Initialize this instead of __libc_tsd_LOCALE_data.
375 * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
378 * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
380 * rt/Makefile: Revert last change, it was inappropriate to presume aio
381 implementations depend on pthreads.
382 * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
383 * rt/tst-aio64.c (do_test): Likewise.
384 * rt/tst-aio2.c (do_test): Likewise.
385 * rt/tst-aio3.c (do_test): Likewise.
386 * rt/tst-aio4.c (do_test): Likewise.
387 * rt/tst-aio5.c (do_test): Likewise.
388 * rt/tst-aio6.c (do_test): Likewise.
389 * rt/tst-aio7.c (do_test): Likewise.
391 * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
392 void so as to avoid compiler warnings.
394 * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
395 _IO_wide_data_FD, which is never used here.
398 [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
399 * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
400 * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
402 * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
403 * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
405 * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
406 (closelog): Likewise.
408 2002-07-06 Bruno Haible <bruno@clisp.org>
410 * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
412 * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
413 * sysdeps/unix/alpha/pipe.S: ... here.
414 * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
416 * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
418 * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
419 * sysdeps/unix/i386/fork.S: Likewise.
420 * sysdeps/unix/i386/pipe.S: Likewise.
421 * sysdeps/unix/i386/wait.S: Likewise.
423 * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
424 * sysdeps/unix/arm/fork.S: Likewise.
426 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
428 (DO_CALL): Swap argument order.
429 * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
431 (DO_CALL): Swap argument order.
432 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
434 (DO_CALL): Swap argument order.
435 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
437 (DO_CALL): Swap argument order.
438 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
440 (DO_CALL): Swap argument order.
441 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
443 (DO_CALL): Swap argument order.
444 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
446 (DO_CALL): Swap argument order.
448 * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
449 (L): Define right for ELF.
450 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
451 Now defined in sysdeps/i386/sysdep.h.
453 * sysdeps/posix/readv.c: Ansify function definition.
454 * sysdeps/posix/writev.c: Likewise.
456 * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
457 have the same size. Avoid direct cast from size_t to off_t.
459 * login/tst-utmp.c (simulate_login): Don't leave garbage after the
460 nul byte in entry[n].ut_user.
461 (simulate_logout): Likewise.
463 * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
464 _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
465 existence of corresponding members of 'struct utmp'.
466 * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
469 * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
470 allocate a buffer of at least BUFSIZ bytes, not just of
471 sizeof (struct dirent).
473 * sysdeps/generic/glob.c: Include <limits.h>.
474 (NAME_MAX): Define a fallback.
475 (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
477 * posix/tst-dir.c: Include <stddef.h>, for offsetof.
478 (main): Allocate enough room for a 'struct dirent64' on the stack.
479 * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
482 * sysdeps/unix/sysv/linux/init-first.c: Don't include
485 * inet/htontest.c: Include <sys/types.h>.
487 * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
489 * include/sys/sysctl.h: Comment fix.
491 * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
493 * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
495 * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
497 * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
498 (__getpeername): New alias.
499 (__getsockname): New alias.
500 (__socket): New alias.
502 * sysdeps/unix/common/syscalls.list (getpgid): Remove.
504 * sysdeps/unix/syscalls.list (__chown_internal): New alias.
505 (__fcntl_internal): New alias.
506 (__profil): New alias.
508 2002-08-26 Ulrich Drepper <drepper@redhat.com>
510 * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
511 entry was for getaddr* lookup or not. Add only matching cache
512 entry. Change all callers [PR libc/4317].
514 * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
515 finding the read position [PR libc/4265].
516 * libio/Makefile (tests): Add bug-rewind2.
517 * libio/bug-rewind2.c: New file.
519 * libio/bug-rewind.c: Fix creation of temp file.
521 2002-08-25 Ulrich Drepper <drepper@redhat.com>
523 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
524 neither SUCCESS nor TRYAGAIN [PR libc/4259].
525 * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
526 to ENOENT if no entry is found.
527 * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
529 * nis/nss_compat/compat-initgroups.c: Likewise.
530 * nis/nss_compat/compat-pwd.c: Likewise.
531 * nis/nss_compat/compat-spwd.c: Likewise.
532 * nis/nss_nis/nis-alias.c: Likewise.
533 * nis/nss_nis/nis-ethers.c: Likewise.
534 * nis/nss_nis/nis-grp.c: Likewise.
535 * nis/nss_nis/nis-hosts.c: Likewise.
536 * nis/nss_nis/nis-initgroups.c: Likewise.
537 * nis/nss_nis/nis-netgrp.c: Likewise.
538 * nis/nss_nis/nis-network.c: Likewise.
539 * nis/nss_nis/nis-proto.c: Likewise.
540 * nis/nss_nis/nis-publickey.c: Likewise.
541 * nis/nss_nis/nis-pwd.c: Likewise.
542 * nis/nss_nis/nis-rpc.c: Likewise.
543 * nis/nss_nis/nis-service.c: Likewise.
544 * nis/nss_nis/nis-spwd.c: Likewise.
545 * resolv/nss_dns/dns-host.c: Likewise.
546 * resolv/nss_dns/dns-network.c: Likewise.
547 * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
548 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
549 * nis/nss_nisplus/nisplus-grp.c: Likewise.
550 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
551 * nis/nss_nisplus/nisplus-network.c: Likewise.
552 * nis/nss_nisplus/nisplus-proto.c: Likewise.
553 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
554 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
555 * nis/nss_nisplus/nisplus-service.c: Likewise.
556 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
557 * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
558 * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
559 * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
560 * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
562 * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
563 declaring __restore and __restore_rt as hidden (if possible).
565 2002-08-25 Roland McGrath <roland@redhat.com>
567 * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
569 * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
570 (getutent_r_file, internal_getut_r): Updated all callers.
571 (getutline_r_file, pututline_file, updwtmp_file): Likewise.
573 2002-08-25 Ulrich Drepper <drepper@redhat.com>
575 * locale/programs/locale.c: Don't print aliases for non-existing
576 locales for 'locale -a'.
577 Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
579 2002-07-19 H.J. Lu <hjl@gnu.org>
581 * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
583 2002-07-16 H.J. Lu <hjl@gnu.org>
585 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
587 * sysdeps/unix/sysv/linux/sys/personality.h: New file.
589 2002-08-25 Ulrich Drepper <drepper@redhat.com>
591 * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
592 not moved ahead of the fputs call.
593 * elf/tst-tlsmod2.c (in_dso): Likewise.
594 * elf/tst-tlsmod3.c (in_dso2): Likewise.
595 * elf/tst-tlsmod4.c (in_dso): Likewise.
597 2002-08-25 Andreas Schwab <schwab@suse.de>
599 * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
601 2002-08-25 Roland McGrath <roland@redhat.com>
603 * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
604 resetting handler, to avoid the possibility of a spurious SIGALRM
605 delivered to the user's handler.
606 Reported by Amit D. Chaudhary <amitc@brocade.com>,
608 * misc/Makefile (CFLAGS-init-misc.c): Variable removed. It served to
609 set -fkeep-inline-functions, which is not needed for the current file.
611 * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
612 (_dl_setup_hash): Add attribute_hidden.
613 (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
614 (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
615 (_dl_new_object, _dl_map_object_deps): Likewise.
616 (_dl_map_object_deps_internal): Remove decl.
617 * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
619 * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
620 && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
621 && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
622 (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
623 instead relying on the compiler to produce only GOTOFF variable refs.
625 2002-08-25 Ulrich Drepper <drepper@redhat.com>
627 * elf/dl-load.c: Fix typo in comment. Add a few more __builtin_expect.
629 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
630 inline to avoid defining it in every file which includes this header.
632 * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
633 defining DONT_USE_BOOTSTRAP_MAP.
635 * libio/tst-freopen.c (main): Use correct formats for __LINE__.
636 * libio/tst-mmap-setvbuf.c (main): Likewise.
637 * libio/tst-widetext.c (main): Likewise.
639 * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
641 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
642 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
644 * sysdeps/i386/elf/configure.in: Unconditionally define
645 PI_STATIC_AND_HIDDEN.
646 * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
647 PI_STATIC_AND_HIDDEN is defined as well.
648 * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
650 2002-08-24 Ulrich Drepper <drepper@redhat.com>
652 * sysdeps/ia64/bzero.S: Define __bzero as well.
654 * locale/programs/charmap.c (charmap_new_char): Don't use
655 ULONG_MAX as maximum UCS4 value.
657 * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
659 * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
661 * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
662 * malloc/malloc.c (mALLINFo): Likewise.
664 * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
666 * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
667 examining result of _IO_do_flush call.
669 * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
670 Use prec not spec when sizing buffers.
672 * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
673 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
674 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
675 * stdio-common/vfscanf.c (inchar): Likewise.
676 * misc/efgcvt_r.c (fcvt_r): Likewise.
677 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
678 * elf/readlib.c (process_file): Likewise.
679 * elf/sprof.c (load_profdata): Likewise.
680 * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
681 * locale/programs/linereader.c (get_toplvl_escape): Likewise.
682 * locale/programs/charmap.c (charmap_read): Likewise.
683 * libio/fileops.c: Likewise.
684 * libio/fmemopen.c: Likewise.
685 * stdlib/strtod.c: Likewise.
686 * elf/dl-load.c: Likewise.
687 * iconv/iconvconfig.c: Likewise.
688 * iconv/iconv_prog.c (process_block): Likewise.
689 * elf/rtld.c (dl_main): Likewise.
691 * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
692 macro to calm down the compiler.
694 * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
696 * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
698 * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
699 placement of errno definition.
700 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
701 * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
702 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
703 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
704 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
706 * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
707 from 1024 to 65536, to avoid buffer overrun.
709 2002-08-16 Paul Eggert <eggert@twinsun.com>
711 * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
712 from 1024 to 65536, to avoid buffer overrun.
713 * resolv/res_query.c (MAXPACKET): Likewise.
715 2002-08-24 Andreas Jaeger <aj@suse.de>
717 * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
719 2002-08-23 Ulrich Drepper <drepper@redhat.com>
721 * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
724 * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
725 Patch by Simon Gee <simong@agile.tv>.
727 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
728 Prefer reading /proc/stat since it is more uniform across
731 * manual/texinfo.tex: Update to latest official version.
733 * sysvipc/sys/shm.h: Remove SHMLBA definition.
734 * sysdeps/generic/bits/shm.h: Define SHMLBA here.
735 * sysdeps/gnu/bits/shm.h: Likewise.
736 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
737 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
738 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
739 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
740 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
741 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
742 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
743 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
744 since this is what the kernel says.
746 * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
747 since ssize_t is needed as well. Replace const with __const.
749 2002-08-23 Roland McGrath <roland@redhat.com>
751 * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
752 __malloc_hook, __realloc_hook, __memalign_hook,
753 __after_morecore_hook): Variable definitions moved to ...
754 * malloc/malloc.c: ... here, so as to be before all references.
756 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
757 global variable reference in an unused asm parameter, to ensure the
758 compiler has set up the GOT register before we use it.
760 * malloc/hooks.c: Move variable definitions ahead of uses.
761 * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
762 initializers that make reference to variables they define.
764 2002-08-23 Andreas Jaeger <aj@suse.de>
766 * locale/loadarchive.c: Include <stdlib.h> for prototypes of
769 * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
771 * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
772 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
774 * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
776 * sysdeps/generic/fgetxattr.c: New file.
777 * sysdeps/generic/flistxattr.c: New file.
778 * sysdeps/generic/fremovexattr.c: New file.
779 * sysdeps/generic/fsetxattr.c: New file.
780 * sysdeps/generic/getxattr.c: New file.
781 * sysdeps/generic/listxattr.c: New file.
782 * sysdeps/generic/lgetxattr.c: New file.
783 * sysdeps/generic/llistxattr.c: New file.
784 * sysdeps/generic/lremovexattr.c: New file.
785 * sysdeps/generic/lsetxattr.c: New file.
786 * sysdeps/generic/removexattr.c: New file.
787 * sysdeps/generic/setxattr.c: New file.
788 * misc/Makefile (headers): Add sys/xattr.h.
789 (routines): Add *xattr calls.
790 * misc/Versions: Add *xattr calls with version 2.3.
791 * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
792 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
793 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
794 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
795 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
796 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
797 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
798 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
800 2002-08-22 Steven Munroe <sjmunroe@us.ibm.com>
802 * sysdeps/powerpc/elf/libc-start.c
803 (__cache_line_size): Declare.
804 (__aux_init_cache): New.
805 (__libc_start_main): Change type of `auxvec' parameter to
806 `ElfW(auxv_t) *'. Correct walking of aux vector. Call
808 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
809 (__cache_line_size): Declare.
810 (__aux_init_cache): New.
811 (DL_PLATFORM_INIT): Define.
812 * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
813 value to select the correct stride for dcbz.
815 2002-08-22 Andreas Jaeger <aj@suse.de>
817 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
820 2002-08-22 Roland McGrath <roland@redhat.com>
822 * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
823 position indicated by locrectab against file bounds before rounding to
824 page size. In mapping loop, always set TO before breaking out of
825 contiguous range coalescing loop.
827 * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
828 (or MAP_COPY if available) instead of MAP_SHARED.
830 * scripts/firstversions.awk: When encountering a version newer than
831 the specified earliest version, be sure to emit the specified earliest
832 version first if any renaming of an older version to that has been.
834 2002-08-21 Roland McGrath <roland@redhat.com>
836 * configure.in: Make GCC version check require 3.[2-9]* and no others.
837 * manual/install.texi (Tools for Compilation): Say 3.2 is required.
838 (Configuring and compiling): Don't mention older GCC versions any more.
839 * INSTALL: Regenerated.
841 * manual/install.texi (Configuring and compiling, Installation,
842 Running make install, Linux): Linux -> GNU/Linux where appropriate.
844 * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
845 be inlined. Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
846 and with noinline otherwise. Remove hack alloca use to prevent
847 inlining, we can ask for it explicitly nowadays.
849 * dlfcn/bug-dlsym1.c: New file.
850 * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
851 * dlfcn/Makefile (distribute): Add them.
852 (tests): Add bug-dlsym1 here.
853 (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
854 ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
855 ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
857 2002-08-21 Ulrich Drepper <drepper@redhat.com>
859 * elf/rtld.c (start_time): New global variable. Moved from _dl_start.
860 (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
862 (_dl_start): Don't use local bootstrap_map variable if
863 DONT_USE_BOOTSTRAP_MAP is defined. Use GL(dl_rtld_map). Don't
864 pass bootstrap_map to _dl_start_final in this case either. Don't
865 pass start_time to _dl_start_final ever.
866 (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
868 * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
869 This cripples the scope lists necessary to search for symbols in
870 dependencies which are not in the global scope.
872 * include/setjmp.h (__libc_longjmp): Add declaration.
874 2002-08-21 Andreas Jaeger <aj@suse.de>
876 * sysdeps/x86_64/_mcount.S: Fix assembler.
878 * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
881 2002-08-21 Andreas Jaeger <aj@suse.de>
883 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
885 * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
887 * sysdeps/x86_64/machine-gmon.h: New file.
888 * sysdeps/x86_64/_mcount.S: New file.
890 2002-08-20 Ulrich Drepper <drepper@redhat.com>
892 * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP. Set
893 bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
894 (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
895 (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
896 to TL_INIT_TP. Otherwise pass 1.
897 * include/link.h (struct link_map): Add l_tls_tp_initialized.
898 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
900 2002-08-15 Jakub Jelinek <jakub@redhat.com>
902 * locale/programs/localedef.c (add_to_readlist): Error about
903 circular dependencies only if the locale in question hasn't
905 * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
906 CTYPE_LOCALE to load_locale.
907 * locale/programs/locfile.c (locfile_read): Don't include
908 unneeded but available locales in locale_mask.
910 * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
911 print any messages about enlarging archive.
913 2002-08-20 Brian Youmans <3diff@gnu.org>
915 * manual/contrib.texi: Removed licenses, added acknowledgements
916 for contributions by Intel, IBM, Craig Metz.
917 * LICENSES: New file, contains the text of all non-FSF licenses in the
918 distribution that require putting the notice in the accompanying
920 * README.template, README: Mention LICENSES.
922 * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
923 new one modelled on the modern BSD license, per recent letter
924 of permission from CMU.
925 * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
927 * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
928 from IBM to FSF, per the recent Software Letter. Changed the
929 distribution terms from GPL to LGPL.
931 * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
932 copying permission notice (Lesser GPL), per recent IBM Software Letter.
933 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
934 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
935 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
936 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
937 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
938 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
939 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
940 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
942 * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
943 from IBM to FSF, per the recent Software Letter. Corrected the
944 text of the copying permission notice to say Lesser GPL instead
945 of GPL in warranty disclaimer paragraph.
946 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
947 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
948 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
949 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
950 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
951 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
952 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
953 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
954 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
955 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
956 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
957 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
958 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
959 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
960 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
961 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
962 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
963 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
964 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
965 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
966 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
968 * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
969 permission notice to say Lesser GPL instead of GPL in warranty
970 disclaimer paragraph.
971 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
972 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
973 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
974 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
975 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
976 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
977 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
978 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
979 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
980 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
981 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
982 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
983 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
984 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
985 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
986 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
987 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
988 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
989 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
990 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
991 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
992 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
993 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
995 2002-08-20 Roland McGrath <roland@redhat.com>
997 Fix ABI compatibility with libc compiled with old tools on powerpc.
998 Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
999 and Jack Howarth <howarth@bromo.med.uc.edu>.
1000 * sysdeps/powerpc/Makefile [$(have-protected) = yes]
1001 (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
1002 pass -DHAVE_DOT_HIDDEN for these files.
1003 * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
1005 * sysdeps/powerpc/divdi3.c: New file.
1006 * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
1007 * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
1009 2002-08-20 Jakub Jelinek <jakub@redhat.com>
1011 * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
1012 partially overlapping mappings. Remove unneeded (char *) casts.
1013 Never allow duplication of ranges in mapped areas.
1015 2002-08-20 Roland McGrath <roland@redhat.com>
1017 * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
1018 can be detected by make. Reported by H.J. Lu <hjl@gnu.org>.
1020 2002-08-20 Ulrich Drepper <drepper@redhat.com>
1022 * include/unistd.h: Don't hide _exit.
1024 * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
1025 (dl_main): Pass extra argument 0 to TLS_INIT_TP.
1026 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
1027 argument 1 to TLS_INIT_TP.
1028 * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
1030 * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
1032 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
1033 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
1034 memory allocation to...
1035 (allocate_dtv): ...here. New function.
1036 (_dl_allocate_tls): Change to take parameter. If parameter is non-NULL
1037 call allocate_dtv instead of _dl_allocate_tls_storage.
1038 (_dl_deallocate_tls): New parameter. Deallocate TCB only if true.
1039 (_dl_get_tls_static_info): New function.
1040 * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
1041 and _dl_deallocate_tls. Add prototype for _dl_get_tls_static_info.
1043 2002-08-19 Ulrich Drepper <drepper@redhat.com>
1045 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
1046 immediately if result == NULL.
1048 2002-08-16 Jakub Jelinek <jakub@redhat.com>
1050 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
1052 2002-08-18 Roland McGrath <roland@frob.com>
1054 * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
1055 instead of __file_name_split.
1056 * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
1058 * sysdeps/mach/hurd/dl-sysdep.c
1059 [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
1060 [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
1062 2002-08-16 Jakub Jelinek <jakub@redhat.com>
1064 * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
1065 in change before last: MAX -> MIN.
1067 2002-08-15 Roland McGrath <roland@redhat.com>
1069 * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
1070 if seek would go past it.
1071 (mmap_remap_check): If file position is at or past EOF after check,
1072 leave read pointers at EOF and don't seek.
1074 * libio/tst-mmap-offend.c: New file.
1075 * libio/Makefile (tests): Add it.
1077 * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
1078 the name as passed, rather than the name in the archive dictionary.
1080 2002-08-15 Ulrich Drepper <drepper@redhat.com>
1082 * csu/Makefile: Define elide-routines.os not static-only-routines.
1084 * include/sched.h (__clone): Add varargs at the end.
1086 * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
1088 (TLS_INIT_HELPER): If defined, use it.
1089 * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
1091 2002-08-15 Roland McGrath <roland@redhat.com>
1093 * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
1094 on L->l_prev; it can happen under rtld --verify too.
1096 * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
1097 header separately, just map an initial window of 2MB from the file
1098 and remap if that is not large enough to cover the whole header.
1100 2002-08-15 Andreas Jaeger <aj@suse.de>
1102 * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
1104 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1105 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1106 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
1107 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
1108 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1109 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1110 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1111 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1112 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
1113 Patch by Andreas Gruenbacher <agruen@suse.de>.
1115 * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
1117 2002-08-14 Roland McGrath <roland@redhat.com>
1119 * locale/locarchive.h (struct locale_category_data): Give this name to
1120 the type of locale_data_t's elements.
1121 * locale/programs/locarchive.c (cmpcategorysize): New static function.
1122 (add_locale): Use that to sort the categories by size and put all
1123 those that fit into two pages into the LC_ALL block, instead of
1124 hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
1125 (show_archive_content): Detect categories inside LC_ALL block
1126 directly, instead of hard-coding.
1127 (oldlocrecentcmp): Compare just on file locations used.
1129 2002-08-14 Jakub Jelinek <jakub@redhat.com>
1131 * locale/programs/locarchive.c (struct oldlocrecent): New.
1132 (oldlocrecentcmp): New.
1133 (enlarge_archive): Re-add locales in the order they were added
1135 (add_locale): Put all the small locale files together, if the small
1136 locale file block would occupy less pages if page size aligned, align
1138 (show_archive_content): Adjust for locale archives optimized for speed.
1140 2002-08-14 Roland McGrath <roland@frob.com>
1142 * configure.in: Use "MISSING" as not-found value for MIG.
1143 * sysdeps/mach/configure.in: Fatal if mig not found.
1144 * configure, sysdeps/mach/configure: Regenerated.
1146 2002-08-13 Jakub Jelinek <jakub@redhat.com>
1148 * locale/loadarchive.c (archfname): Add missing slash.
1150 * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
1151 * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
1153 2002-08-12 Roland McGrath <roland@redhat.com>
1155 * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
1156 * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
1157 * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
1158 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
1159 * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
1160 * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
1161 * sysdeps/generic/waitpid.c: Likewise.
1163 * include/net/if.h: New file. Use libc_hidden_proto
1164 for if_nametoindex and if_indextoname.
1165 * sysdeps/generic/if_index.c: Add libc_hidden_def.
1166 * sysdeps/mach/hurd/if_index.c: Likewise.
1167 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
1169 * include/grp.h (setgroups): Add libc_hidden_proto.
1170 * sysdeps/generic/setgroups.c: Add libc_hidden_def.
1171 * sysdeps/mach/hurd/setgroups.c: Likewise.
1172 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
1173 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1175 2002-08-13 Jakub Jelinek <jakub@redhat.com>
1177 * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
1178 * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
1179 * sysdeps/generic/setegid.c (setegid): Likewise.
1180 * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
1181 * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
1182 * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
1183 * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
1184 * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
1185 * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
1186 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
1187 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
1188 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
1189 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
1190 * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
1191 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
1192 Remove fallback if __ASSUME_SETRESUID_SYSCALL.
1194 * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
1195 __lxstat_internal, __lxstat64_internal): Remove.
1196 (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
1198 * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
1199 Remove INTDEF where present, remove #undef at the beginning.
1200 * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
1201 * sysdeps/generic/lxstat.c (__lxstat): Likewise.
1202 * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
1203 * sysdeps/generic/xstat.c (__xstat): Likewise.
1204 * sysdeps/generic/xstat64.c (__xstat64): Likewise.
1205 * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
1206 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
1207 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
1208 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
1209 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
1210 * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
1211 * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
1212 * sysdeps/unix/fxstat.c (__fxstat): Likewise.
1213 * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
1214 * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
1215 * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
1216 * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
1217 * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
1218 * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
1219 * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
1220 * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
1221 * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
1222 * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
1223 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
1224 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
1225 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
1226 * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
1227 * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
1228 * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
1229 * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
1230 * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
1231 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
1232 * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
1233 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
1234 * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
1235 * sysdeps/unix/xstat.c (__xstat): Likewise.
1237 * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
1238 * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
1239 * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
1240 * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
1241 * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
1242 * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
1243 * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
1245 * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
1246 * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
1247 * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
1248 * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
1249 * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
1250 * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
1251 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
1252 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
1254 * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
1255 * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
1256 * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
1257 * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
1258 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
1259 * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
1260 * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
1261 * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
1263 * include/string.h (strcoll): Add libc_hidden_proto.
1264 * string/strcoll.c (strcoll): Add libc_hidden_def.
1266 * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
1268 2002-08-11 Philip Blundell <philb@gnu.org>
1270 * sysdeps/arm/Makefile: New file.
1272 2002-08-08 Jakub Jelinek <jakub@redhat.com>
1274 * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
1275 by another '|', end of regex or enclosing ')', clear branch.
1276 * posix/bug-regex9.c: New test.
1277 * posix/Makefile (tests): Add bug-regex9.
1279 2002-08-12 Roland McGrath <roland@redhat.com>
1281 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
1282 start count condition, use TOTAL instead of variable that was never
1283 set. Fix outer loop termination condition to TOTAL >= after update.
1285 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
1286 dl_tls_static_align and dl_tls_static_nelem.
1288 2002-08-11 Roland McGrath <roland@redhat.com>
1290 * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
1291 of the TLS macros, otherwise the compiler might not have initialized
1292 the PIC register yet when we use the PLT via asm.
1293 * elf/tst-tlsmod3.c (in_dso2): Likewise.
1294 * elf/tst-tlsmod2.c (in_dso): Likewise.
1296 * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
1298 * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
1299 Evaluate argument exactly once. Remove __volatile__ from asm's.
1301 * include/unistd.h: Use libc_hidden_proto for getdomainname
1303 * sysdeps/generic/getdomain.c: Add libc_hidden_def.
1304 * sysdeps/mach/hurd/getdomain.c: Likewise.
1305 * sysdeps/unix/getlogin_r.c: Likewise.
1306 * sysdeps/mach/hurd/getlogin_r.c: Likewise.
1307 * sysdeps/generic/getlogin_r.c: Likewise.
1309 * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
1310 * sunrpc/rtime.c: Add libc_hidden_def.
1312 * include/string.h: Use libc_hidden_proto for basename.
1313 * string/basename.c [_LIBC]: Add libc_hidden_def.
1315 * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
1317 * locale/loadarchive.c: munmap -> __munmap throughout.
1319 * include/netdb.h: Use libc_hidden_proto for gai_strerror.
1320 * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
1321 * sysdeps/generic/gai_strerror.c: Likewise.
1323 * include/sys/errno.h: New file.
1325 * include/signal.h: No libc_hidden_proto for raise,
1326 __libc_current_sigrtmin, __libc_current_sigrtmax.
1327 These need to be overridden by linuxthreads.
1328 * sysdeps/posix/raise.c: Reverted.
1329 * sysdeps/generic/raise.c: Reverted.
1330 * signal/allocrtsig.c: Reverted.
1332 * locale/loadarchive.c (LOCALEDIR): Remove debugging defn. Oops.
1334 2002-08-10 Roland McGrath <roland@redhat.com>
1336 * locale/loadarchive.c (_nl_archive_subfreeres): New function.
1337 * locale/localeinfo.h: Declare it.
1338 * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
1339 current locale if it's not in the file list.
1340 Call _nl_archive_subfreeres.
1342 2002-08-10 Andreas Jaeger <aj@suse.de>
1344 * sysdeps/i386/strchr.S: Add comment.
1346 2002-08-10 Roland McGrath <roland@redhat.com>
1348 * include/wchar.h (putwc): Use libc_hidden_proto.
1349 * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
1350 sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
1351 * stdio-common/dprintf.c: Add libc_hidden_def.
1352 * stdio-common/fprintf.c: Likewise.
1353 * stdio-common/sprintf.c: Likewise.
1354 * stdio-common/sscanf.c: Likewise.
1355 * libio/iofwrite.c: Likewise.
1356 * libio/memstream.c: Likewise.
1357 * libio/putwc.c: Likewise.
1358 * stdio-common/perror.c: Likewise.
1359 * sysdeps/posix/remove.c: Likewise.
1360 * sysdeps/generic/remove.c: Likewise.
1361 * libio/rewind.c: Likewise. Use <stdio.h> instead of "stdio.h".
1362 * stdio-common/vfprintf.c: Add libc_hidden_def. Include <stdio.h>.
1364 2002-08-09 Jakub Jelinek <jakub@redhat.com>
1366 * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
1367 towlower, towupper): Add prototypes here too. Add libc_hidden_proto.
1368 * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
1369 towlower, towupper): Add libc_hidden_weak.
1371 * include/bits/dlfcn.h: New file.
1372 * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
1374 * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
1375 * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
1376 * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
1377 * include/pwd.h (_nss_files_parse_pwent): Likewise.
1378 * include/shadow.h (_nss_files_parse_spent): Likewise.
1379 * include/netdb.h (_nss_files_parse_protoent,
1380 _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
1381 * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
1382 (LINE_PARSER): Use it.
1383 * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
1384 * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
1386 * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
1389 * manual/debug.texi (%MENU%): Remove trailing dot.
1390 Reported by <hayastan132@hotmail.com>.
1392 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
1395 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
1398 2002-08-09 Roland McGrath <roland@redhat.com>
1400 * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
1401 name to find codeset name (if any) and normalize it. If the
1402 normalized name differs, look up only that in the archive.
1403 * locale/programs/locarchive.c (add_locale_to_archive): If the name
1404 contains a codeset, normalize the codeset store only the normalized
1405 name in the archive. If not, add an alias containing the locale's
1406 normalized codeset name. Apply codeset name normalization when
1407 matching entries in the alias file.
1409 * locale/programs/locarchive.c (delete_locales_from_archive): Don't
1410 decrement HEAD->namehash_used here.
1411 (add_locale): Only need to insert name string when name_offset != 0.
1413 * locale/programs/localedef.c (options): Add -A/--alias-file.
1414 (alias_file): New variable.
1415 (parse_opt): Grok -A, set that.
1416 * locale/programs/localedef.h: Declare it.
1418 * locale/locarchive.h (struct locrecent): Add `refs' member.
1419 * locale/programs/locarchive.c (insert_name): New function, broken out
1421 (add_locale_to_archive): ... here. Call that.
1422 (add_alias): New function.
1423 (add_locale): New static function, add_locale_to_archive renamed.
1424 (add_locale_to_archive): Call that and use add_alias to add an alias
1425 for the name with codeset if the given name lacks it.
1426 (enlarge_archive): Call add_locale instead of add_locale_to_archive.
1428 * locale/Makefile (routines): Add loadarchive.
1429 * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
1430 (_nl_load_locale_from_archive): New function.
1431 * locale/localeinfo.h: Declare it.
1432 * locale/findlocale.c (_nl_find_locale): If using default locale path,
1433 try _nl_load_locale_from_archive first.
1435 * locale/loadlocale.c (_nl_intern_locale_data): New function,
1436 broken out of _nl_load_locale.
1437 (_nl_load_locale): Call that.
1438 * locale/localeinfo.h: Declare it.
1439 (struct locale_data): Replace member `mmaped' with `alloc', an enum.
1440 (struct locale_data): Remove unused member `options'.
1441 * locale/findlocale.c (_nl_remove_locale): Update uses.
1442 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
1443 * locale/C-collate.c: Update initializer.
1444 * locale/C-identification.c: Likewise.
1445 * locale/C-measurement.c: Likewise.
1446 * locale/C-telephone.c: Likewise.
1447 * locale/C-address.c: Likewise.
1448 * locale/C-name.c: Likewise.
1449 * locale/C-paper.c: Likewise.
1450 * locale/C-time.c: Likewise.
1451 * locale/C-numeric.c: Likewise.
1452 * locale/C-monetary.c: Likewise.
1453 * locale/C-messages.c : Likewise.
1454 * locale/C-ctype.c: Likewise.
1456 * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
1457 use CHAR_BIT instead of BITSPERBYTE.
1459 * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
1460 _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
1461 * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
1462 (_nl_remove_locale): Likewise.
1463 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
1465 * locale/findlocale.c (_nl_default_locale_path): New variable.
1466 (_nl_find_locale): If LOCALE_PATH is null, default to that.
1467 * locale/localeinfo.h: Declare it.
1468 * locale/setlocale.c (setlocale): Use _nl_default_locale_path
1469 in place of LOCALEDIR. If no LOCPATH, pass null to _nl_find_locale.
1470 * locale/newlocale.c (__newlocale): Likewise.
1472 * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
1473 * inet/rexec.c (rexec_af): Add libc_hidden_def.
1474 * sysdeps/generic/morecore.c: Likewise.
1475 * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
1476 (__libc_current_sigrtmax): Likewise.
1478 2002-08-08 Roland McGrath <roland@redhat.com>
1480 * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
1481 * catgets/open_catalog.c (__open_catalog): Likewise.
1483 * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
1484 from typo INITIAL_NUM_NANES.
1485 (create_archive): Update use.
1487 2002-08-08 Ulrich Drepper <drepper@redhat.com>
1489 * sysdeps/unix/sysv/linux/sigwait.c: New file.
1491 2002-08-08 Roland McGrath <roland@frob.com>
1493 * resolv/netdb.h: Don't declare h_errno as a plain global any more.
1495 2002-08-08 Jakub Jelinek <jakub@redhat.com>
1497 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
1498 else and undefine after including wcstol_l.c.
1499 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
1501 2002-08-08 Ulrich Drepper <drepper@redhat.com>
1503 * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
1505 2002-08-08 Alexandre Oliva <aoliva@redhat.com>
1507 * configure.in: Make the test for broken_alias_attribute stricter.
1509 2002-05-24 Robert Love <rml@tech9.net>
1511 * posix/Makefile (routines): Add sched_getaffinity and
1513 * posix/sched.h: Add declarations for sched_getaffinity and
1515 * sysdeps/generic/sched_getaffinity.c: New file.
1516 * sysdeps/generic/sched_setaffinity.c: New file.
1517 * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
1520 2002-08-06 Andreas Schwab <schwab@suse.de>
1522 * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
1524 2002-08-07 Ulrich Drepper <drepper@redhat.com>
1526 * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
1529 * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
1530 It is known to be defined.
1532 * include/string.h: Define index and rindex only if _ISOMAC is not
1535 * elf/rtld.c: Include <errno.h>.
1536 * sysdeps/generic/libc-tls.c: Likewise.
1538 2002-08-07 Roland McGrath <roland@redhat.com>
1540 * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
1542 (precsize_aton): Likewise.
1544 * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
1545 the static symbols added in the last change (doofus is me).
1547 * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
1548 loop to notice missing categories in a composite name.
1550 * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
1551 LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
1552 LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
1553 LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
1555 2002-08-07 Ulrich Drepper <drepper@redhat.com>
1557 * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
1559 2002-08-07 Roland McGrath <roland@redhat.com>
1561 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
1562 unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
1563 Reported by Jakub Jelinek <jakub@redhat.com>.
1565 2002-08-07 Jakub Jelinek <jakub@redhat.com>
1567 * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
1570 2002-08-06 Roland McGrath <roland@redhat.com>
1572 * include/getopt.h: Put private decls inside [_GETOPT_H].
1573 Use libc_hidden_proto for getopt_long, getopt_long_only.
1574 * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
1575 Add libc_hidden_def.
1577 * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
1578 Define as a macro for __dl_iterate_phdr.
1580 * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
1581 made static. Add __ name as a strong alias.
1582 (internal_endnetgrent): Likewise.
1583 (internal_getnetgrent_r): Likewise.
1585 * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
1587 * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
1588 * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
1589 all *_l functions with no __ prefix.
1590 * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
1591 * ctype/ctype_l.c: Likewise.
1592 * locale/nl_langinfo.c: Likewise.
1593 * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
1594 * stdlib/stdlib.h [__USE_GNU]: Likewise.
1595 * wcsmbs/wchar.h [__USE_GNU]: Likewise.
1596 * wctype/wctype.h [__USE_GNU]: Likewise.
1597 * string/strcoll_l.c (strcoll_l): Define as weak alias.
1598 * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
1599 * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
1600 * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
1601 * stdlib/strtod_l.c (strtod_l): Define as weak alias.
1602 * stdlib/strtof_l.c (strtof_l): Define as weak alias.
1603 * stdlib/strtold_l.c (strtold_l): Define as weak alias.
1604 * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
1605 (__wcscasecmp_l): Add libc_hidden_def.
1606 * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
1607 (__wcsncasecmp_l): Add libc_hidden_def.
1608 * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
1609 * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
1610 * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
1611 * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
1612 * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
1613 * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
1614 * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
1615 * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
1616 * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
1617 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
1618 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
1619 * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
1620 * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
1621 * wctype/wctype_l.c (wctype_l) Define as weak alias.
1623 2002-08-05 Roland McGrath <roland@redhat.com>
1625 * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
1626 netname2user, host2netname, user2netname, key_gendes.
1627 * sunrpc/netname.c: Add libc_hidden_def.
1628 * sunrpc/key_call.c: Likewise.
1630 * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
1632 * inet/getnameinfo.c: Add libc_hidden_def.
1633 * sysdeps/generic/getaddrinfo.c: Likewise.
1634 * sysdeps/posix/getaddrinfo.c: Likewise.
1636 * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
1637 * wcsmbs/wmemchr.c: Add libc_hidden_def.
1638 * wcsmbs/wmemset.c: Add libc_hidden_def.
1640 * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
1641 (index, rindex): Define as macros for strchr, strrchr.
1643 * string/envz.c (envz_strip): index -> strchr
1645 * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
1646 * sunrpc/rpc_prot.c: Add libc_hidden_def.
1648 * include/wchar.h: Use libc_hidden_proto for mbrtowc.
1649 * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
1651 * include/stdlib.h: Use libc_hidden_proto for wctomb.
1652 * stdlib/wctomb.c: Add libc_hidden_def.
1654 * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
1655 rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
1656 * resolv/herror.c: Likewise.
1657 * inet/rcmd.c: Add libc_hidden_def.
1658 * inet/ruserpass.c: Likewise.
1659 * inet/getnetgrent_r.c: Likewise.
1661 * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
1662 svc_unregister, remove *_internal decls. Use libc_hidden_proto
1663 for svcerr_auth, svcerr_noprog, svcerr_progvers.
1664 * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
1666 (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
1667 * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
1669 * sysdeps/posix/system.c (do_system): New function, guts broken out of
1671 (__libc_system): Call it, putting just the line == NULL test here.
1673 * include/libc-symbols.h (__hidden_proto): Add extern keywords so
1674 variables work right.
1676 * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
1677 * elf/dl-close.c (_dl_close): Likewise.
1679 * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
1680 in6addr_any, in6addr_loopback. Remove decls for
1681 bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
1682 * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
1683 * sunrpc/svc_tcp.c (svctcp_create): Likewise.
1684 * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
1685 * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
1686 * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
1687 * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
1689 * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
1691 * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
1693 * inet/ether_aton_r.c: Add libc_hidden_def.
1694 * inet/ether_ntoa_r.c: Likewise.
1696 * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
1698 * sunrpc/svc.c: Add libc_hidden_def.
1699 * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
1700 pmap_set, pmap_unset.
1701 * sunrpc/pmap_clnt.c: Add libc_hidden_def.
1702 * sunrpc/pm_getport.c: Likewise.
1703 * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
1704 * sunrpc/publickey.c: Add libc_hidden_def.
1706 2002-08-05 Ulrich Drepper <drepper@redhat.com>
1708 * elf/rtld.c (_dl_start): Don't use memset. Use same tricks as for
1709 the other memset call in this function.
1711 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
1712 at correct index. Clear BSS region now that memalign is used.
1714 2002-08-05 Roland McGrath <roland@redhat.com>
1716 * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
1717 * sysdeps/generic/uname.c: Add libc_hidden_def.
1718 * sysdeps/mach/hurd/uname.c: Likewise.
1720 2002-08-05 Jakub Jelinek <jakub@redhat.com>
1722 * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
1723 wcspbrk): Add libc_hidden_proto.
1724 * time/strftime.c (my_strftime): Add libc_hidden_def.
1725 (strftime): Remove libc_hidden_def.
1726 * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
1727 * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
1728 * wcsmbs/wcsspn.c (wcsspn): Likewise.
1729 * wcsmbs/wcscmp.c (wcscmp): Likewise.
1730 * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
1731 * wcsmbs/wcscoll.c (wcscoll): Likewise.
1733 * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
1734 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
1735 __rpc_thread_createerr): Add libc_hidden_proto.
1736 * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
1737 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
1738 __rpc_thread_createerr): Add libc_hidden_def.
1740 * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
1741 clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
1742 * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
1743 clnt_perror, clnt_sperror): Add libc_hidden_def.
1744 * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
1746 * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
1748 * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
1749 * sunrpc/des_soft.c (des_setparity): Likewise.
1751 * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
1752 Add libc_hidden_proto.
1753 * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
1754 Add libc_hidden_def.
1756 2002-08-05 Roland McGrath <roland@redhat.com>
1758 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
1759 `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
1760 * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
1761 * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
1762 dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
1763 old data, abandoning the original memory allocated by rtld at startup,
1764 instead of calling realloc normally.
1766 2002-08-05 Ulrich Drepper <drepper@redhat.com>
1768 * po/fr.po: Update from translation team.
1770 2002-08-04 Roland McGrath <roland@redhat.com>
1772 * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
1773 then generate a dummy module under the given name, obeying the
1774 normal rules for the "caller" field.
1776 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
1777 actually iterate over the elements. Fix typo p_type -> p_vaddr.
1779 * include/pthread.h: Don't declare __pthread_initialize_minimal as
1780 weak here; we declare it weak or strong in the one place we use it.
1781 * sysdeps/generic/libc-start.c: ... which is here.
1782 Don't make the decl weak if [USE_TLS], since static programs need TLS
1783 setup even when single-threaded.
1785 * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
1787 * elf/Makefile (test-srcs): Add $(modules-names) to it.
1788 (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
1789 CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
1790 all these variables.
1792 2002-08-04 Ulrich Drepper <drepper@redhat.com>
1794 * include/stdio.h: Don't define macro magic to redirect function
1795 calls if _ISOMAC is defined.
1797 * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
1800 2002-08-04 Roland McGrath <roland@redhat.com>
1802 * stdlib/lrand48_r.c: Add libc_hidden_def.
1804 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
1805 TCB with __libc_memalign instead of mmap.
1806 (_dl_deallocate_tls): Free it with free instead of munmap.
1808 * Makerules (cpp-srcs-left): When setting this to run
1809 cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
1810 words. Combine the two loops into one on the concatenated list,
1811 including those as well as $(test-srcs).
1813 * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
1814 since we align here with optimally minimal waste anyway.
1815 (malloc): Just call that.
1817 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
1820 * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
1821 to compute memory location for l_tls_initimage.
1822 * elf/rtld.c (_dl_start): Likewise.
1823 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
1825 * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
1826 because the .d file is generated in the non-shared case and
1827 so fails to catch them otherwise.
1829 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
1830 split out of _dl_allocate_tls.
1831 (_dl_allocate_tls_init): Likewise.
1832 (_dl_allocate_tls): Call those.
1833 * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
1834 * elf/rtld.c (dl_main): Call them separately instead of calling
1835 _dl_allocate_tls. Delay _dl_allocate_tls_init until after relocation
1836 is finished, so that the initializer data has been relocated before we
1837 copy it into the main thread's TLS block.
1839 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
1840 loop conditions, prevented the last used module from being initialized.
1842 2002-08-04 Jakub Jelinek <jakub@redhat.com>
1844 * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
1845 if glob resp. globfree are not macros.
1846 * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
1847 * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
1848 Add libc_hidden_ver.
1849 * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
1851 * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
1852 instead of libc_hidden_weak.
1853 * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
1854 libc_hidden_ver instead of libc_hidden_def.
1855 * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
1856 libc_hidden_ver instead of libc_hidden_def.
1857 (wcstoll, wcstoq): Remove libc_hidden_weak.
1858 * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
1860 * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
1862 * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
1864 * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
1867 2002-08-04 Ulrich Drepper <drepper@redhat.com>
1869 * stdio-common/psignal.c: Declare _sys_siglist_internal. Use USEINT
1870 to access _sys_siglist.
1871 * string/strsignal.c: Likewise.
1872 * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
1873 * sysdeps/gnu/siglist.c: Likewise.
1874 * sysdeps/unix/siglist.c: Likewise.
1875 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
1877 * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
1879 * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
1881 * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
1883 * intl/bindtextdom.c: Use _nl_default_dirname_internal.
1885 * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
1886 * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
1887 * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
1889 * include/time.h: Add libc_hidden_proto for __gmtime_r.
1890 * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
1892 * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
1893 and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
1894 and __gconv_get_cache respectively.
1895 * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
1896 defined static. Change all users.
1897 (__gconv_get_cache): New function.
1898 * iconv/gconv_db.c (__gconv_get_modules_db): New function.
1899 (__gconv_get_alias_db): New function.
1900 * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
1901 (__conv_modules_db): Likewise.
1902 Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
1903 and __gconv_get_alias_db.
1904 * iconv/iconv_prog.c: Use the new functions instead of accessing the
1907 * include/stdlib.h: Add prototype and libc_hidden_proto for
1909 * sysdeps/generic/morecore.c: Include <stdlib.h>.
1911 * malloc/obstack.c: Remove fputs macro.
1913 * malloc/mtrace.c: Remove fopen macro.
1915 2002-08-04 Jakub Jelinek <jakub@redhat.com>
1917 * manual/debug.texi: Fix spelling to programmatically.
1918 Reported by <hayastan132@hotmail.com>.
1920 2002-08-04 Ulrich Drepper <drepper@redhat.com>
1922 * include/libio.h: Add libc_hidden_proto for __uflow.
1923 * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
1924 fgetpos to _IO_* names.
1925 Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
1926 fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
1927 * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
1928 putwc_unlocked, vswscanf.
1929 * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
1930 * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
1931 * libio/fseek.c: Likewise.
1932 * libio/fmemopen.c: Include "libioP.h". Call _IO_fopencookie and
1934 * libio/genops.c (__uflow): Add libc_hidden_def.
1935 * libio/iofflush_u.c (fflush_unlocked): Likewise.
1936 * libio/iofgets_u.c (fgets_unlocked): Likewise.
1937 * libio/iofputs_u.c (fputs_unlocked): Likewise.
1938 * libio/iofputws_u.c (fputws_unlocked): Likewise.
1939 * libio/iofread_u.c (fread_unlocked): Likewise.
1940 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
1941 * libio/iovswscanf.c (vswscanf): Likewise.
1942 * libio/putwc_u.c (putwc_unlocked): Likewise.
1943 * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
1944 * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
1945 * malloc/mtrace.c: Likewise.
1947 * sunrpc/clnt_perr.c: Remove fputs macro.
1948 * sunrpc/svc_simple.c: Likewise.
1949 * sunrpc/svc_tcp.c: Likewise.
1950 * sunrpc/svc_udp.c: Likewise.
1951 * sunrpc/xdr_rec.c: Likewise.
1952 * sunrpc/xdr_ref.c: Likewise.
1954 * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
1955 iconv_prog, linereader, and charmap-dir.
1956 * locale/Makefile: Likewise for locale and charmap-dir.
1957 * malloc/Makefile: Likewise for memusagestat.
1958 * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
1959 * sunrpc/Makefile: Likewise for rpc_main.
1960 * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
1961 * timezone/Makefile: Likewise for zic.
1963 * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
1965 * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
1966 * elf/dl-close.c (_dl_close): Add libc_hidden_def.
1967 * elf/dl-open.c (_dl_open): Add libc_hidden_def.
1968 * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
1971 * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
1973 * libio/genops.c (__underflow): Add libc_hidden_def.
1974 * libio/wgenops.c (__wuflow): Likewise.
1975 (__wunderflow): Likewise.
1977 * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
1978 * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
1980 * include/stdio.h: Add libc_hidden_proto for __vfscanf.
1981 * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
1983 * include/string.h: Add libc_hidden_proto for __strverscmp.
1984 * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
1986 * include/unistd.h: Add libc_hidden_proto for __sysconf.
1987 * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
1988 * sysdeps/posix/sysconf.c: Likewise.
1989 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
1990 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
1992 * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
1993 __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1994 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1995 __iswxdigit_l, __towlower_l, __towupper_l.
1996 * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
1997 * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
1999 * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
2000 * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
2001 * sysdeps/mach/hurd/xmknod.c: Likewise.
2002 * sysdeps/unix/xmknod.c: Likewise.
2003 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
2004 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
2005 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
2007 * sunrpc/svc.c: Add missing INTUSE for _authenticate.
2009 2002-08-03 Roland McGrath <roland@redhat.com>
2011 * include/sys/resource.h: Use libc_hidden_proto for getpriority,
2013 * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
2014 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
2015 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
2016 * sysdeps/mach/hurd/setpriority.c: Likewise.
2017 * sysdeps/mach/hurd/getpriority.c: Likewise.
2018 * sysdeps/generic/setpriority.c: Likewise.
2019 * sysdeps/generic/getpriority.c: Likewise.
2021 * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
2022 * malloc/mcheck.c: Add libc_hidden_def.
2024 * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
2025 * misc/hsearch_r.c: Add libc_hidden_def.
2027 * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
2028 * posix/fnmatch.c: Add libc_hidden_weak.
2030 * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
2031 execl, execle, execlp, execvp, getpid, getsid.
2032 * sysdeps/generic/alarm.c: Add libc_hidden_def.
2033 * sysdeps/unix/alarm.c: Likewise.
2034 * posix/confstr.c: Likewise.
2035 * posix/execvp.c: Likewise.
2036 * posix/execlp.c: Likewise.
2037 * posix/execle.c: Likewise.
2038 * posix/execl.c: Likewise.
2039 * sysdeps/generic/getsid.c: Likewise.
2040 * sysdeps/mach/hurd/getsid.c: Likewise.
2041 * sysdeps/generic/getpid.c: Add libc_hidden_weak.
2042 * sysdeps/mach/hurd/getpid.c: Likewise.
2044 * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
2045 qecvt_r, qfcvt_r, lrand48_r.
2046 * misc/efgcvt_r.c: Add libc_hidden_def.
2048 * include/wordexp.h: Use libc_hidden_proto for wordfree.
2049 * sysdeps/generic/wordexp.c: Add libc_hidden_def.
2051 * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
2052 * locale/nl_langinfo.c: Add libc_hidden_def.
2054 * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
2055 * sysdeps/generic/glob.c: Add libc_hidden_def.
2056 * sysdeps/generic/glob64.c: Likewise.
2057 * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
2059 * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
2061 * elf/Makefile (CFLAGS-vismod2.c): New variable.
2063 * locale/setlocale.c (_nl_current_names): Variable moved ...
2064 * locale/localename.c (_nl_current_names): ... here, new file.
2065 Make it global, with attribute_hidden.
2066 * locale/localeinfo.h: Declare it.
2067 * locale/Makefile (aux): Add localename.
2068 * locale/localename.c (__current_locale_name): New function.
2069 * include/locale.h (__current_locale_name): Declare it.
2070 * intl/dcigettext.c (guess_category_value): Use that instead of
2073 * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
2074 [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
2075 [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
2076 * locale/newlocale.c: Add alias to __ name.
2077 * locale/duplocale.c: Likewise.
2078 * locale/freelocale.c: Likewise.
2079 * locale/uselocale.c: New file.
2080 * locale/Makefile (routines): Add it.
2081 * locale/Versions (libc: GLIBC_2.3): New set.
2082 Add newlocale, duplocale, freelocale, uselocale.
2083 (libc: GLIBC_PRIVATE): Add __uselocale.
2085 * locale/localeinfo.h [SHARED]
2086 (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
2087 (_NL_CURRENT_DATA): Define using that.
2088 (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
2089 (_NL_CURRENT_DEFINE): Define to empty.
2090 [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
2091 conditionalized on this.
2092 * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
2093 taking initializer of _nl_C_locobj.
2094 [SHARED] (_nl_global_locale): New variable, using that initializer.
2095 (_nl_C_locobj): Use new macro for initialzier.
2096 * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
2097 [! SHARED] (CATEGORY_USED): New macro.
2098 [SHARED] (CATEGORY_USED, _nl_C): New macros.
2099 (setdata, setlocale): Use that macro instead of examining _nl_current.
2100 (setdata): Set the slot in _nl_global_locale.
2101 Conditionalize setting of _nl_current on [! SHARED].
2102 * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
2103 declaration as an extern.
2104 * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
2106 * include/locale.h: Use libc_hidden_proto for setlocale.
2107 * locale/setlocale.c: Add libc_hidden_def.
2109 * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
2111 * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
2112 * misc/hsearch_r.c: Add libc_hidden_def.
2113 * misc/lsearch.c: Likewise.
2115 * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
2117 * misc/getttyent.c: Add libc_hidden_def.
2119 * include/mcheck.h: Use libc_hidden_proto for mcheck.
2120 * malloc/mcheck.c: Add libc_hidden_def.
2122 * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
2123 * include/argz.h: Use libc_hidden_proto for argz_delete.
2124 * string/argz-delete.c: Add libc_hidden_def.
2125 * string/envz.c: Likewise. Use <envz.h>, not "envz.h".
2127 * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
2128 HIDDEN_JUMPTARGET for _exit.
2129 * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
2130 * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
2131 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
2132 * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
2134 * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
2135 [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
2136 [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
2137 * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
2139 * include/stdlib.h: Use libc_hidden_proto for abort,
2140 __strtof_internal, __strtod_internal, __strtold_internal,
2141 __strtol_internal, __strtoll_internal, __strtoul_internal,
2142 __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
2143 __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
2144 __strtoul_l_internal, __strtoull_l_internal.
2145 * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
2146 __wcstod_internal, __wcstold_internal, __wcstol_internal,
2147 __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
2148 ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
2149 ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
2151 * sysdeps/generic/abort.c: Add libc_hidden_def.
2152 * stdlib/strtod.c: Likewise.
2153 * sysdeps/generic/strtol.c: Likewise.
2154 * sysdeps/wordsize-64/strtol.c: Likewise.
2155 * sysdeps/wordsize-64/wcstol.c: Likewise.
2156 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
2158 * include/stdlib.h: Use libc_hidden_proto for qsort.
2159 * stdlib/msort.c: Add libc_hidden_def.
2161 * include/utime.h: Use libc_hidden_proto for utime.
2162 * sysdeps/generic/utime.c: Add libc_hidden_def.
2163 * sysdeps/unix/utime.c: Likewise.
2165 * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
2166 * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
2167 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2168 * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
2169 * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
2171 * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
2172 sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
2173 and __libc_current_sigrtmax.
2174 * signal/sigismem.c: Add libc_hidden_def.
2175 * signal/sigfillset.c: Likewise.
2176 * signal/sigempty.c: Likewise.
2177 * sysdeps/generic/sigpause.c (__sigpause): Likewise.
2178 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2179 * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
2180 * sysdeps/posix/raise.c: Likewise.
2181 * sysdeps/generic/raise.c: Likewise.
2183 2002-08-03 Ulrich Drepper <drepper@redhat.com>
2185 * include/string.h: Use libc_hidden_proto for __stpcpy.
2186 * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
2187 * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
2188 * sysdeps/generic/stpcpy.c: Likewise.
2189 * sysdeps/i386/stpcpy.S: Likewise.
2190 * sysdeps/i386/i586/stpcpy.S: Likewise.
2191 * sysdeps/powerpc/stpcpy.S: Likewise.
2192 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
2193 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
2195 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
2196 __strncasecmp_l, __strdup, __strndup, __strerror_r.
2197 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
2199 * string/strdup.c (__strdup): Likewise.
2200 * string/strndup.c (__strndup): Likewise.
2201 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
2202 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
2204 2002-08-03 Jakub Jelinek <jakub@redhat.com>
2206 * include/libio.h: New file.
2207 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
2208 * libio/iolibio.h: #include <libio.h>, not "libio.h".
2209 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
2210 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
2211 * sysdeps/unix/common/syscalls.list: Likewise.
2212 * sysdeps/unix/inet/syscalls.list: Likewise.
2213 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
2214 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
2215 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2216 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2217 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2218 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2219 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2220 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2221 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2222 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
2223 * sysdeps/unix/syscalls.list: Likewise.
2225 2002-08-03 Jakub Jelinek <jakub@redhat.com>
2226 Ulrich Drepper <drepper@redhat.com>
2228 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
2229 the arguments is big enough to cause an overflow.
2231 2002-08-03 Ulrich Drepper <drepper@redhat.com>
2233 * assert/assert.c: Use hidden_def not INTDEF.
2235 2002-08-03 Jakub Jelinek <jakub@redhat.com>
2237 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
2240 2002-08-03 Roland McGrath <roland@redhat.com>
2242 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
2243 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
2245 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
2246 * misc/syslog.c: Add libc_hidden_def.
2247 * misc/err.c: Likewise.
2248 * stdlib/exit.c: Likewise.
2249 * stdlib/bsearch.c: Likewise.
2250 * sysdeps/generic/getenv.c: Likewise.
2252 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
2254 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
2255 libc_hidden_weak for every system call symbol defined.
2257 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
2258 timelocal, localtime, strftime.
2259 * time/asctime.c: Add libc_hidden_def.
2260 * time/mktime.c: Likewise.
2261 * time/localtime.c: Likewise.
2262 * time/strftime.c: Likewise.
2263 * time/strptime.c: Likewise.
2264 * sysdeps/generic/time.c: Likewise.
2265 * sysdeps/unix/time.c: Likewise.
2266 * sysdeps/unix/sysv/i386/time.S: Likewise.
2267 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
2269 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
2270 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
2271 * resolv/inet_ntop.c: Likewise.
2272 * resolv/inet_pton.c: Likewise.
2273 * inet/inet_mkadr.c: Add libc_hidden_def.
2274 * inet/inet_netof.c: Likewise.
2275 * resolv/inet_addr.c: Likewise.
2277 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
2278 clauses from conditionals for now. Will have to be fixed later
2279 for older compilers.
2281 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
2283 2002-08-02 Ulrich Drepper <drepper@redhat.com>
2285 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
2286 broken alias attribute handling.
2287 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
2289 2002-08-02 Roland McGrath <roland@frob.com>
2291 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
2292 since it sets the variables we use in a -D switch.
2294 2002-08-02 Roland McGrath <roland@redhat.com>
2296 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
2297 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
2298 matches long int, not int.
2300 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
2301 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
2302 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2303 * wctype/wctrans.c (wctrans): Likewise.
2304 * wctype/wctype.c (__wctype): Likewise.
2305 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
2307 2002-08-02 Ulrich Drepper <drepper@redhat.com>
2309 * assert/assert.c (__assert_fail): Fix typo in comment.
2311 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
2312 * sunrpc/rpc_thread.c: Define it without static.
2313 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
2315 2002-08-02 Jakub Jelinek <jakub@redhat.com>
2317 * assert/assert.c (__assert_fail): Remove undef.
2318 Replace INTDEF with libc_hidden_def.
2319 * assert/__assert.c (__assert): Remove INTUSE.
2320 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
2322 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
2323 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
2324 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
2325 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
2326 libm_hiden_ver): Define.
2327 * include/assert.h (__assert_fail_internal): Remove.
2328 (__assert_fail): Add prototype. Add hidden_proto.
2329 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
2331 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
2332 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
2333 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
2334 Add libc_hidden_proto.
2335 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
2336 __fcntl): Add libc_hidden_proto. Remove macros.
2337 (__open_internal, __fcntl_internal): Remove.
2338 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
2339 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
2340 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
2342 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
2344 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
2345 Add libc_hidden_def.
2346 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
2347 * sysdeps/generic/open.c (__open): Remove undef.
2348 Add libc_hidden_def. Remove INTDEF.
2349 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
2350 Add libc_hidden_def.
2351 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
2352 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
2353 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
2354 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
2355 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
2356 (__libc_fcntl): Add libc_hidden_def.
2357 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
2358 (__open): Remove INTDEF2. Add libc_hidden_weak.
2359 (__libc_open): Add libc_hidden_def.
2360 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
2361 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
2362 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
2363 Add libc_hidden_def.
2364 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
2365 Add libc_hidden_def.
2366 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
2368 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
2369 (__libc_fcntl): Add libc_hidden_def.
2370 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
2371 __getpgid_internal, __chown_internal): Remove.
2372 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
2373 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
2375 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
2376 __getpid_internal, __open_internal, __write_internal): Remove.
2377 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
2378 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
2379 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
2380 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
2381 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
2382 Replace INTDEF with libc_hidden_def.
2383 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
2384 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
2385 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
2386 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
2387 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
2388 Add libc_hidden_proto.
2389 * include/sys/poll.h (__poll): Add libc_hidden_proto.
2390 * include/sys/select.h (__select): Likewise.
2391 * include/sys/socket.h (__send): Likewise.
2392 * include/sys/statfs.h (__statfs): Likewise.
2393 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
2394 __getpid, __getpgid, __setpgid, __close, __read, __write,
2395 __getpagesize, __sbrk): Likewise.
2396 (__chown_internal, __dup2_internal, __getpid_internal,
2397 __getpgid_internal, __close_internal, __write_internal,
2398 __getpagesize_internal): Remove.
2399 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
2401 * include/printf.h (__printf_fp): Add libc_hidden_proto.
2402 * include/sched.h (__sched_setscheduler): Likewise.
2403 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
2404 * include/stdlib.h (__secure_getenv): Likewise.
2405 * include/signal.h (__sigaction, __sigsuspend): Likewise.
2406 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
2407 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
2408 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
2409 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
2410 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
2411 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
2412 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
2413 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
2414 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
2415 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
2416 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
2417 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
2418 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
2419 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
2420 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
2421 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
2422 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
2423 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
2424 * libio/genops.c (__overflow): Add libc_hidden_def.
2425 * libio/iovdprintf.c: Remove libio.h include.
2426 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
2427 libc_hidden_weak): Define to nothing if not defined.
2428 (__overflow, __woverflow): Add libc_hidden_proto.
2429 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
2430 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
2431 (DB_LOOKUP_FCT): Add libc_hidden_proto.
2432 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
2433 (DB_LOOKUP_FCT): Add libc_hidden_proto.
2434 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
2435 and libc_hidden_def.
2436 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
2437 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
2438 (__getpgid): Add libc_hidden_proto.
2439 (__bsd_getpgrp): Remove INTUSE.
2440 * resolv/res_init.c (__res_ninit, __res_randomid): Add
2442 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
2443 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
2444 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
2445 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
2446 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
2447 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
2448 __rpc_thread_createerr): Add libc_hidden_def.
2449 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
2451 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
2452 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
2453 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
2454 * sysdeps/generic/chown.c (__chown): Likewise.
2455 * sysdeps/generic/close.c (__close): Likewise.
2456 * sysdeps/generic/dup2.c (__dup2): Likewise.
2457 * sysdeps/generic/pipe.c (__pipe): Likewise.
2458 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
2459 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
2460 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
2461 * sysdeps/generic/read.c (__libc_read): Likewise.
2462 (__read): Add libc_hidden_weak.
2463 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
2464 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
2465 * sysdeps/generic/select.c (__select): Likewise.
2466 * sysdeps/generic/send.c (__send): Likewise.
2467 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
2468 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
2469 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
2470 * sysdeps/generic/statfs.c (__statfs): Likewise.
2471 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
2472 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
2473 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
2474 Remove undef and INTDEF.
2475 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
2476 * sysdeps/generic/getpid.c (__getpid): Likewise.
2477 * sysdeps/generic/write.c (__libc_write): Likewise.
2478 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
2479 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
2480 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
2481 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
2482 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
2483 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
2484 Remove undef and INTDEF.
2485 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
2486 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
2487 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
2488 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
2489 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
2490 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
2491 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
2492 (__pipe): Add libc_hidden_def.
2493 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
2495 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
2496 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
2497 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
2498 (__read): Add libc_hidden_weak.
2499 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
2500 (__libc_pwrite64): Add libc_hidden_def.
2501 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
2502 * sysdeps/mach/hurd/select.c (__select): Likewise.
2503 * sysdeps/mach/hurd/send.c (__send): Likewise.
2504 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
2505 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
2506 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
2507 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
2508 * sysdeps/posix/dup2.c: Likewise.
2509 Remove undef and INTDEF.
2510 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
2511 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
2512 (__pwrite64): Add libc_hidden_weak.
2513 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
2514 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
2515 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
2516 * sysdeps/standalone/close.c (__close): Likewise.
2517 * sysdeps/standalone/write.c (__libc_write): Likewise.
2518 (__write): Add libc_hidden_weak.
2519 * sysdeps/standalone/read.c (__read): Likewise.
2520 (__libc_read): Add libc_hidden_def.
2521 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
2522 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
2523 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
2524 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
2525 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
2526 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
2527 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
2528 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
2529 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
2530 __GI___sigaction): Add.
2531 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
2532 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
2533 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
2534 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
2535 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
2536 __GI___setpgid): Add.
2537 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
2538 Remove undef and INTDEF.
2539 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
2540 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
2541 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
2542 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
2543 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
2544 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
2545 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
2546 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
2547 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
2548 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
2549 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
2550 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
2551 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
2552 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
2553 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
2554 __GI___statfs, __GI___send): Add.
2555 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
2556 libc_hidden_ver resp. libc_hidden_def.
2557 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
2559 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
2560 Likewise. Remove undef and INTDEF.
2561 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
2562 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
2563 __GI___statfs, __GI___send): Add.
2564 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
2566 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
2568 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
2569 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
2570 libc_hidden_ver resp. libc_hidden_def.
2571 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
2573 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
2574 Add libc_hidden_weak.
2575 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
2576 Add libc_hidden_def.
2577 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
2578 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
2580 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
2581 resp. libc_hidden_def.
2582 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
2584 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
2586 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
2587 Likewise. Remove undef.
2588 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
2590 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
2591 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
2593 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
2595 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
2596 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
2597 Likewise. Remove undef and INTDEF.
2598 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
2600 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
2602 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
2604 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
2605 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
2606 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
2608 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
2609 Add libc_hidden_def.
2610 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
2611 __GI___statfs): Add.
2612 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
2614 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
2615 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
2616 Remove undef and INTDEF.
2617 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
2618 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
2620 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
2621 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
2623 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
2625 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
2626 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
2627 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
2629 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
2630 libc_hidden_def. Remove undef and INTDEF.
2631 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
2632 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
2634 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
2635 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
2636 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
2637 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
2638 Remove undef and INTDEF.
2639 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
2640 broken visibility attribute handling.
2641 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
2643 2002-08-02 Ulrich Drepper <drepper@redhat.com>
2645 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
2646 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
2648 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
2651 2002-06-29 Todd Fries <todd@openbsd.org>
2653 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
2655 2002-08-02 Jakub Jelinek <jakub@redhat.com>
2657 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
2659 2002-07-30 Roland McGrath <roland@redhat.com>
2661 * resolv/resolv.h (_res): Define macro unconditionally.
2662 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
2663 * include/resolv.h: ... here.
2664 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
2665 as a __thread variable.
2666 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
2667 a __thread variable instead of a global.
2668 * resolv/res_data.c [_LIBC]: Don't #undef _res.
2670 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
2673 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
2675 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
2676 decls of memset and memcpy.
2678 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
2679 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
2681 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
2683 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
2684 (__libc_tsd_define): Define using __thread.
2686 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
2687 (__rpc_thread_variables): Use __libc_tsd_get.
2688 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
2689 __rpc_thread_variables, which might allocate what we're about to free.
2691 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
2692 thread-local variable.
2693 * resolv/netdb.h (h_errno): Define macro unconditionally.
2694 [_LIBC] (__set_h_errno): Macro moved to ...
2695 * include/netdb.h: ... here.
2696 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
2697 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
2698 [! _LIBC_REENTRANT]: #undef h_errno here.
2700 * include/errno.h: Protect from multiple inclusion.
2702 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
2703 before defining them, since Linux's <linux/posix_types.h> might have
2706 2002-08-02 Jakub Jelinek <jakub@redhat.com>
2708 * malloc/malloc.c (public_cALLOc): Check for overflow on
2710 * sunrpc/xdr_array.c (xdr_array): Likewise.
2711 * sunrpc/rpc/types.h (mem_free): Add comment.
2712 Patch by Solar Designer <solar@openwall.com>.
2714 2002-08-02 Jakub Jelinek <jakub@redhat.com>
2716 * sysdeps/unix/sysv/linux/kernel-features.h
2717 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
2719 2002-08-01 Roland McGrath <roland@redhat.com>
2721 * libio/fileops.c (_IO_file_sync_mmap): New function.
2722 (_IO_file_jumps_mmap): Use it.
2723 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
2724 repeat the stat check and resize the mapped buffer as necessary.
2726 2002-07-31 Roland McGrath <roland@redhat.com>
2728 * libio/fileops.c (decide_maybe_mmap): New static function.
2729 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
2730 mmap the file contents. Then switch the jump tables to the mmap
2731 tables if it worked, or the vanilla file tables if not.
2732 (_IO_file_underflow_maybe_mmap): New function.
2733 (_IO_file_seekoff_maybe_mmap): New function.
2734 (_IO_file_xsgetn_maybe_mmap): New function.
2735 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
2736 * libio/libioP.h: Declare those.
2737 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
2738 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
2739 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
2740 If the stream is read-only, set its jump tables to those new ones.
2741 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
2742 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
2743 We need the tables set before _IO_file_attach.
2745 * libio/tst-mmap-eofsync.c: New file.
2746 * libio/tst-mmap-fflushsync.c: New file.
2747 * libio/bug-mmap-fflush.c: New file.
2748 * libio/tst-mmap2-eofsync.c: New file.
2749 * libio/Makefile (tests): Add them.
2751 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
2752 _IO_file_underflow_mmap fails, it already set the appropriate bit.
2754 2002-07-31 Jeff Bailey <jbailey@gnu.org>
2756 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
2757 Declarations moved to <bits/sys_errlist.h>. Include that file.
2758 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
2759 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
2760 declare sys_errlist and sys_nerr.
2761 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
2762 provide declarations.
2764 2002-07-31 Roland McGrath <roland@redhat.com>
2766 * elf/rtld.c (dl_main): Fix typo in error message.
2768 2002-07-31 Roland McGrath <roland@frob.com>
2770 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
2771 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
2772 sysdeps/mach/hurd/dl-sysdep.c change.
2774 2002-07-28 Ulrich Drepper <drepper@redhat.com>
2776 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
2777 -r`/build/include for kernel headers.
2779 * po/fi.po: New file.
2781 2002-07-15 Alexandre Oliva <aoliva@redhat.com>
2783 * configure.in (static_nss): Set to `yes' if --disable-shared.
2785 2002-07-23 Bruno Haible <bruno@clisp.org>
2787 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
2790 2002-07-25 Jakub Jelinek <jakub@redhat.com>
2792 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
2793 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
2796 2002-07-25 Jakub Jelinek <jakub@redhat.com>
2798 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
2801 2002-07-21 Bruno Haible <bruno@clisp.org>
2803 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
2804 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
2805 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
2806 trans_sysdep_tab_offset.
2807 (struct sysdep_segment): New type.
2808 (struct sysdep_string): New type.
2809 (SEGMENTS_END): New macro.
2810 * intl/gettextP.h (struct sysdep_string_desc): New type.
2811 (struct loaded_domain): New fields malloced, n_sysdep_strings,
2812 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
2813 orig_tab, trans_tab, hash_tab to const pointers because they point
2814 into read-only memory.
2815 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
2816 (PRI*): Define fallback values.
2817 (get_sysdep_segment_value): New function.
2818 (_nl_load_domain): Distinguish major and minor revision parts. Add
2819 support for minor revision 1 with system dependent strings.
2820 (_nl_unload_domain): Also free the 'malloced' field.
2821 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
2822 now done in loadmsgcat.c. Add support for system dependent strings.
2824 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
2826 * posix/bug-regex7.c: New file.
2827 * posix/bug-regex8.c: New file.
2828 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
2830 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
2832 * posix/bug-regex4.c (main): Fix typos.
2833 * posix/bug-regex6.c (main): Likewise.
2835 2002-07-27 Ulrich Drepper <drepper@redhat.com>
2837 * posix/bug-regex6.c (main): Fix warnings.
2839 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
2841 * iconv/iconv_prog.c (main): Improve error message for the cases
2842 where -t and/or -f parameter are missing.
2844 2002-07-10 Stepan Kasal <kasal@math.cas.cz>
2846 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
2847 (re_search): Likewise.
2848 (re_match_2): Likewise.
2849 (re_search_2): Likewise.
2850 (re_search_stub): New function.
2851 (re_search_2_stub): New function.
2852 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
2854 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
2856 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
2857 (re_string_eoi): Use STOP instead of LEN.
2858 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
2859 (re_string_construct): Likewise.
2860 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
2861 * posix/regexec.c (re_search_internal): Add a new argument STOP
2862 so that it can handle the argument STOP of re_search_2 and re_match_2
2864 (regexec): Adapt to new I/F of re_search_internal.
2865 (re_search_stub): Likewise.
2867 2002-07-25 Ulrich Drepper <drepper@redhat.com>
2869 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
2871 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
2873 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
2874 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
2877 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
2878 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
2879 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
2880 alias for adjtimex syscall.
2882 * elf/dl-minimal.c: Define __assert_fail_internal.
2883 * assert/assert.c: Likewise.
2884 * include/assert.h: Define __assert_file macro if !SHARED and not
2887 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
2889 * locale/Makefile: Likewise.
2890 * nscd/Makefile: Likewise.
2891 * catgets/Makefile: Likewise.
2893 2002-07-24 Ulrich Drepper <drepper@redhat.com>
2895 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
2896 compute current position.
2898 * stdio-common/tst-fseek.c (main): Improve error messages.
2900 * libio/tst-freopen.c (main): Remove unused variable.
2902 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
2903 succesful seek call. Simplify error checking.
2905 2002-07-25 Jakub Jelinek <jakub@redhat.com>
2907 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
2908 * sysdeps/ia64/fpu/libm_support.h: Likewise.
2910 2002-07-19 Roland McGrath <roland@frob.com>
2912 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
2913 __libc_enable_secure is set.
2915 2002-07-24 Roland McGrath <roland@frob.com>
2917 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
2918 This implementation supports only IPv4.
2919 * inet/ifaddrs.h: New file.
2920 * sysdeps/generic/ifaddrs.c: New file.
2921 * sysdeps/gnu/ifaddrs.c: New file.
2922 * inet/test-ifaddrs.c: New file.
2923 * inet/Makefile (routines): Add ifaddrs.
2924 (headers): Add ifaddrs.h here.
2925 (tests): Add test-ifaddrs.
2926 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
2928 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
2929 socket call to get an AF_INET socket, instead of using __opensock.
2930 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
2932 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
2933 if not -1 use it instead of calling __opensock.
2934 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
2935 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
2936 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
2938 * sysdeps/mach/hurd/ifreq.h: New file.
2939 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
2940 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
2941 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
2943 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
2944 which gets moved around. Calculate size of mmap'd buffer instead.
2946 2002-07-24 Philip Blundell <philb@gnu.org>
2948 * sysdeps/unix/arm/brk.S: Improve schedule.
2949 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
2950 efficient instruction.
2951 (__socket): Optimize return sequence.
2953 2002-07-24 Ulrich Drepper <drepper@redhat.com>
2955 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
2956 sockets on old kernels.
2958 2002-07-22 Philip Blundell <philb@gnu.org>
2960 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
2961 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
2964 2002-07-24 Ulrich Drepper <drepper@redhat.com>
2966 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
2967 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
2969 * locale/programs/locarchive.c (add_locale_to_archive): Correct
2970 test to detect duplicate locales.
2972 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
2973 position would be before beginning of file.
2974 (_IO_file_seekoff_mmap): Likewise.
2975 * libio/Makefile (tests): Add bug-fseek.
2976 * libio/bug-fseek.c: New file.
2978 * intl/explodename.c: Remove support for CEN-style locale variables.
2979 It was never used and shouldn't be since it's not portable.
2980 * intl/finddomain.c: Likewise.
2981 * intl/l10nflist.c: Likewise.
2982 * intl/loadinfo.h: Likewise.
2983 * locale/findlocale.c: Likewise.
2985 2002-07-24 Roland McGrath <roland@frob.com>
2987 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
2988 position, calculate it to take into account an active pushback buffer.
2990 * libio/Makefile (tests): Add bug-ungetc.
2991 * libio/bug-ungetc.c: New file.
2993 2002-07-23 Ulrich Drepper <drepper@redhat.com>
2995 * sysdeps/generic/libc-tls.c: New file.
2996 * csu/Makefile (routines): Add libc-tls.
2997 (static-only-routines): Add libc-tls.
2998 * elf/dl-support.c (_dl_phdr): New variable.
2999 (_dl_phnum): New variable.
3000 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
3001 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
3002 for !SHARED. First look through auxiliary vector. If TLS always
3003 call __pthread_initialize_minimal.
3005 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
3006 in mmap call is never zero.
3008 2002-07-23 Andreas Jaeger <aj@suse.de>
3010 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
3011 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3013 2002-07-22 Ulrich Drepper <drepper@redhat.com>
3015 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
3016 creation and removal of the temp file.
3018 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
3020 * test-skeleton.c (create_temp_file): New function.
3022 2002-07-22 Andreas Jaeger <aj@suse.de>
3024 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
3027 2002-07-21 Roland McGrath <roland@frob.com>
3029 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
3030 put -I../include before -I../stdlib so we get the right errno.h et al.
3031 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
3032 (CFLAGS-wcstof.c): Likewise.
3033 (CFLAGS-wcstold.c): Likewise.
3034 (CFLAGS-wcstod_l.c): Likewise.
3035 (CFLAGS-wcstof_l.c): Likewise.
3036 (CFLAGS-wcstold_l.c): Likewise.
3038 2002-07-19 Roland McGrath <roland@frob.com>
3040 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
3042 2002-07-20 Ulrich Drepper <drepper@redhat.com>
3044 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
3045 __ASSUME_AT_XID is defined.
3046 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
3048 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
3049 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
3051 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
3052 (CFLAGS-wcstof.c): Likewise.
3053 (CFLAGS-wcstold.c): Likewise.
3054 (CFLAGS-wcstod_l.c): Likewise.
3055 (CFLAGS-wcstof_l.c): Likewise.
3056 (CFLAGS-wcstold_l.c): Likewise.
3058 2002-07-18 Jakub Jelinek <jakub@redhat.com>
3060 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
3061 __priority_which_t): Always typedef to int for C++.
3063 2002-07-19 Ulrich Drepper <drepper@redhat.com>
3065 * configure.in: Add test for __thread support in compiler.
3066 * config.h.in: Add HAVE___THREAD.
3067 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
3068 * include/sys/errno.h: Moved to...
3069 * stdlib/sys/errno.h: ...here. New file.
3070 * stdlib/errno.h: New file. Moved from...
3071 * include/errno.h: ...here. Changed into an internal header defining
3072 libc-local things like __set_errno.
3073 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
3075 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
3076 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
3078 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
3080 (_dl_start_final): ...here. Add code to initialize tls elements from
3082 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
3083 if USE_TLS && HAVE___THREAD.
3084 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
3085 * sysdeps/mach/hurd/bits/errno.h: Likewise.
3086 * sysdeps/standalone/arm/bits/errno.h: Likewise.
3087 * sysdeps/standalone/bits/errno.h: Likewise.
3088 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
3089 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
3090 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
3091 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
3092 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
3093 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
3094 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
3095 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
3096 use GL(dl_rtld_map), use map parameter.
3097 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3098 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
3099 USE_TLS && HAVE___THREAD.
3100 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
3101 definitions. If USE_TLS && HAVE___THREAD store errooor value using
3103 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
3105 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
3106 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
3107 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
3108 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
3109 * sysdeps/unix/sysv/linux/readv.c: Likewise.
3110 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3112 2002-07-17 Ulrich Drepper <drepper@redhat.com>
3114 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
3115 MS_INVALIDATE values.
3117 2002-07-17 Andreas Schwab <schwab@suse.de>
3118 Ulrich Drepper <drepper@redhat.com>
3120 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
3121 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
3122 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3123 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3125 2002-07-01 H.J. Lu <hjl@gnu.org>
3127 * elf/circleload1.c (load_dso): Call "circlemod1" and check
3130 * elf/circlemod1.c (circlemod1): Return int.
3131 * elf/circlemod2.c (circlemod2): Likewise.
3132 * elf/circlemod2a.c (circlemod2): Likewise.
3133 * elf/circlemod3.c (circlemod3): Likewise.
3134 (circlemod3a): A new function.
3136 2002-07-16 Ulrich Drepper <drepper@redhat.com>
3138 * catgets/tst-catgets.c (main): Don't expect results for
3139 untranslated messages.
3141 * glibcbug.in: Fix little typo. Remove STDIO.
3143 * config.h.in: Fail if __FAST_MATH__ is defined.
3144 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
3145 (CPPFLAGS-test-idouble.c): Likewise.
3146 (CPPFLAGS-test-ildouble.c): Likewise.
3148 2002-07-15 Ulrich Drepper <drepper@redhat.com>
3150 * intl/tst-gettext.sh: Pass -f option to msgfmt.
3151 * intl/tst-gettext.c: Correctly handle untranslated messages in
3154 * po/de.po: Update from translation team.
3156 2002-07-02 H.J. Lu <hjl@gnu.org>
3158 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
3160 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
3162 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
3165 2002-07-15 Ulrich Drepper <drepper@redhat.com>
3167 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
3168 TLS fail if USE_TLS is not defined.
3170 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
3171 and adjust state for seek position. [PR libc/4070]
3172 * libio/Makefile (tests): Add bug-rewind.
3173 * libio/bug-rewind.c: New file.
3175 2002-07-12 Philip Blundell <philb@gnu.org>
3177 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
3178 (__backtrace): Use it.
3179 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
3181 2002-07-12 Philip Blundell <philb@gnu.org>
3183 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
3184 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
3185 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
3186 (elf_machine_rela): Remove unused variable.
3188 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
3189 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
3192 2002-07-12 Ulrich Drepper <drepper@redhat.com>
3194 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
3196 2002-07-14 Andreas Jaeger <aj@suse.de>
3198 * sysdeps/x86_64/bits/link.h: Add biarch support.
3200 2002-07-13 Andreas Jaeger <aj@suse.de>
3202 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
3203 Use correct indices.
3204 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
3206 2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3208 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
3209 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
3210 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
3211 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
3212 * sysdeps/s390/s390-32/bits/link.h: Remove.
3213 * sysdeps/s390/s390-64/bits/link.h: Remove.
3214 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
3215 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
3216 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
3217 * sysdeps/s390/bits/wordsize.h: New file.
3218 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
3220 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
3221 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
3222 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
3223 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
3224 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
3225 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
3226 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
3227 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
3228 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
3229 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
3230 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
3231 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
3233 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
3234 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
3235 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
3236 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
3237 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
3238 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
3239 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
3241 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
3242 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
3244 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
3245 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
3246 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
3248 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
3249 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
3250 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
3251 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
3252 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
3253 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
3254 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
3255 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
3257 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
3258 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
3259 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
3261 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
3262 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
3264 2002-07-11 Ulrich Drepper <drepper@redhat.com>
3266 * Versions.def (libc): Add GLIBC_2.3.
3267 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
3268 * stdlib/canonicalize.c: Add compatibility version for realpath
3269 and make new code available in GLIBC_2.3.
3271 2002-07-06 Bruno Haible <bruno@clisp.org>
3273 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
3275 2002-07-11 Ulrich Drepper <drepper@redhat.com>
3277 * resolv/res_hconf.c (_res_hconf_init): Move code into new
3278 function do_init. Use __libc_once.
3279 (do_init): New function.
3281 * iconvdata/iso8859-11.h: Removed.
3282 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
3283 (distribute): Remove iso8859-11.h.
3284 * iconvdata/tst-tables.sh: Add ISO-8859-11.
3286 * stdio-common/vfscanf.c (inchar): Restore errno from previous
3287 underflow operation if c == (W)EOF.
3289 2002-07-03 Jakub Jelinek <jakub@redhat.com>
3291 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
3292 non-zero, adjust exponent.
3293 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
3294 Remove NO_LONG_DOUBLE aliases.
3295 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
3296 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
3297 (__log1pl): Raise divide by zero and invalid exceptions when needed.
3298 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
3300 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
3301 Fix BITS_PER_MP_LIMB 32 extraction.
3302 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
3303 exceptions for qNaNs.
3304 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
3305 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
3306 Raise exceptions when needed. Don't recurse unnecessarily.
3307 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
3308 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
3309 exceptions for qNaNs.
3310 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
3311 to fix *quo return value sign.
3312 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
3314 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
3316 2002-07-01 Jakub Jelinek <jakub@redhat.com>
3318 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
3319 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
3322 2002-07-10 Ulrich Drepper <drepper@redhat.com>
3324 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
3327 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
3328 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
3330 * Versions.def (libthread_db): Add GLIBC_2.3.
3332 2002-07-09 Jakub Jelinek <jakub@redhat.com>
3334 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
3335 new stream if possible.
3336 * libio/freopen64.c (freopen64): Likewise.
3337 * libio/Makefile (tests): Add tst-freopen.
3338 * libio/tst-freopen.c: New file.
3340 2002-07-03 Jakub Jelinek <jakub@redhat.com>
3342 * libio/stdio.h (obstack_printf): Add format attribute.
3343 (obstack_vprintf): Likewise.
3345 2002-07-04 Jakub Jelinek <jakub@redhat.com>
3347 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
3348 resp. 16 bytes on 32-bit resp. 64-bit platforms.
3349 (re_charset_t, re_string_t): Reorder structure members for 64-bit
3352 2002-07-04 Jakub Jelinek <jakub@redhat.com>
3354 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
3355 (init_dfa): ...here.
3357 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
3359 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
3360 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
3361 nodes in parse trees.
3362 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
3363 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
3364 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
3365 nodes which can epsilon transit.
3366 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
3367 to IS_EPSILON_NODE macro.
3368 * posix/regexec.c (update_regs): New function to update registers
3369 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
3370 (proceed_next_node): Use the entities of the nodes to determine
3371 whether the node can transit to.
3372 (set_regs): Use update_regs function to update registers.
3374 2002-07-03 Jakub Jelinek <jakub@redhat.com>
3376 * posix/bug-regex4.c (main): Remove duplicate setlocale.
3377 * posix/bug-regex6.c: New file.
3378 * posix/Makefile (tests): Add bug-regex6.
3379 (bug-regex6-ENV): Set LOCPATH.
3381 2002-07-10 Ulrich Drepper <drepper@redhat.com>
3383 * Versions.def [libpthread]: Add GLIBC_2.2.6.
3384 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
3386 2002-07-06 Bruno Haible <bruno@clisp.org>
3388 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
3390 2002-07-06 Bruno Haible <bruno@clisp.org>
3392 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
3395 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
3397 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
3399 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
3401 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
3403 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
3404 * sysdeps/generic/bits/ustat.h: Likewise.
3406 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
3408 2002-07-08 Andreas Jaeger <aj@suse.de>
3410 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
3412 2002-07-08 Andreas Jaeger <aj@suse.de>
3414 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
3416 2002-07-06 Andreas Jaeger <aj@suse.de>
3418 * sysdeps/x86_64/fpu/bits/mathinline.h: New.
3419 * sysdeps/x86_64/fpu/s_copysign.S: New.
3420 * sysdeps/x86_64/fpu/s_copysignf.S: New.
3421 * sysdeps/x86_64/fpu/s_copysignl.S: New.
3422 * sysdeps/x86_64/fpu/s_finitel.S: New.
3423 * sysdeps/x86_64/fpu/s_fmax.S: New.
3424 * sysdeps/x86_64/fpu/s_fmaxf.S: New.
3425 * sysdeps/x86_64/fpu/s_fmaxl.S: New.
3426 * sysdeps/x86_64/fpu/s_fmin.S: New.
3427 * sysdeps/x86_64/fpu/s_fminf.S: New.
3428 * sysdeps/x86_64/fpu/s_fminl.S: New.
3430 2002-06-05 Brian Youmans <3diff@gnu.org>
3432 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
3433 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
3434 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
3435 * sysdeps/ia64/fpu/e_asin.S: Likewise.
3436 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
3437 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
3438 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
3439 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
3440 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
3441 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
3442 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
3443 * sysdeps/ia64/fpu/e_exp.S: Likewise.
3444 * sysdeps/ia64/fpu/e_expf.S: Likewise.
3445 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
3446 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
3447 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
3448 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
3449 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
3450 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
3451 * sysdeps/ia64/fpu/e_log.S: Likewise.
3452 * sysdeps/ia64/fpu/e_logf.S: Likewise.
3453 * sysdeps/ia64/fpu/e_pow.S: Likewise.
3454 * sysdeps/ia64/fpu/e_powf.S: Likewise.
3455 * sysdeps/ia64/fpu/e_powl.S: Likewise.
3456 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
3457 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
3458 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
3459 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
3460 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
3461 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
3462 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
3463 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
3464 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
3465 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
3466 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
3467 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
3468 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
3469 * sysdeps/ia64/fpu/libm_error.c: Likewise.
3470 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
3471 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
3472 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
3473 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
3474 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
3475 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
3476 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
3477 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
3478 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
3479 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
3480 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
3481 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
3482 * sysdeps/ia64/fpu/s_logb.S: Likewise.
3483 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
3484 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
3485 * sysdeps/ia64/fpu/s_modf.S: Likewise.
3486 * sysdeps/ia64/fpu/s_modff.S: Likewise.
3487 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
3488 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
3489 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
3490 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
3491 * sysdeps/ia64/fpu/s_rint.S: Likewise.
3492 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
3493 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
3494 * sysdeps/ia64/fpu/s_round.S: Likewise.
3495 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
3496 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
3497 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
3498 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
3499 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
3500 * sysdeps/ia64/fpu/s_significand.S: Likewise.
3501 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
3502 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
3503 * sysdeps/ia64/fpu/s_tan.S: Likewise.
3504 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
3505 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
3506 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
3507 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
3508 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
3509 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
3510 reflect IBM donation of math library to FSF
3511 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3512 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3513 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3514 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3515 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3516 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3517 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3518 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3519 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3520 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3521 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3522 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3523 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3524 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3525 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3526 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3527 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3528 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3529 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3530 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3531 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3532 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
3533 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
3534 * sysdeps/vax/__longjmp.c: Likewise.
3535 * sysdeps/vax/setjmp.c: Likewise.
3536 * libio/filedoalloc.c: Fixed BSD copying permission notice to
3537 remove advertising clause
3538 * sysdeps/vax/htonl.s: Likewise.
3539 * sysdeps/vax/htons.s: Likewise.
3540 * libio/wfiledoalloc.c: Likewise.
3541 * stdlib/random.c: Likewise.
3542 * stdlib/random_r.c: Likewise.
3543 * sysdeps/mach/sys/reboot.h: Likewise.
3544 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
3545 * sysdeps/posix/getaddrinfo.c: Likewise.
3546 * sunrpc/des_impl.c: Updated license permission notice to Lesser
3547 GPL and corrected pointer to point to the correct license.
3549 2002-07-04 Andreas Jaeger <aj@suse.de>
3551 * scripts/config.guess: New upstream version.
3552 * scripts/config.sub: Likewise.
3554 2002-07-02 Andreas Schwab <schwab@suse.de>
3556 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
3557 in parallel to bumping up the buffer pointer.
3559 2002-07-01 Jakub Jelinek <jakub@redhat.com>
3561 * math/libm-test.inc (acos_test): Add missing L suffix for
3563 (cpow_test): Likewise.
3564 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
3565 error for acos (0.0625).
3567 2002-06-30 Ulrich Drepper <drepper@redhat.com>
3569 * locale/iso-639.def: Add entry for Ganda.
3570 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
3572 (address_finish): Handle entries with two letter ISO 639 code.
3574 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
3575 directory if it existed before.
3576 * iconv/iconvconfig.c: Implement --prefix option.
3578 * math/libm-test.inc (cexp_test): Add missing L suffix for
3579 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
3580 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
3583 2002-05-29 H.J. Lu <hjl@gnu.org>
3585 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
3588 2002-05-28 H.J. Lu <hjl@gnu.org>
3590 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
3591 are not dlopened on the dependency list of a dlopened object.
3593 2002-06-30 Ulrich Drepper <drepper@redhat.com>
3595 * elf/dl-lookup.c (add_dependency): It is not necessary to add
3596 dependencies if they are created between objects which are created
3597 while processing RTLD_NOW for objects loaded as part of the same
3600 2002-06-14 H.J. Lu <hjl@gnu.org>
3602 * elf/Makefile (tests): Add circleload1.
3603 (modules-names): Add circlemod1, circlemod2, circlemod3,
3604 circlemod1a, circlemod2a and circlemod3a.
3605 ($(objpfx)circleload1): New target.
3606 ($(objpfx)circleload1.out): Likewise.
3607 ($(objpfx)circlemod1.so): Likewise.
3608 ($(objpfx)circlemod2.so): Likewise.
3609 ($(objpfx)circlemod1a.so): Likewise.
3610 ($(objpfx)circlemod2a.so): Likewise.
3611 * elf/circleload1.c: New file.
3612 * elf/circlemod1.c: New file.
3613 * elf/circlemod1a.c: New file.
3614 * elf/circlemod2.c: New file.
3615 * elf/circlemod2a.c: New file.
3616 * elf/circlemod3.c: New file.
3617 * elf/circlemod3a.c: New file.
3619 2002-06-18 Amos Waterland <apw@us.ibm.com>
3621 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
3623 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
3624 add check for fd not open for writing.
3626 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
3627 completed element(s) and do not suspend thread if so. Patch
3628 heavily modified by drepper.
3630 * rt/tst-aio7.c: New file. Regression test for problems which the
3631 above three changes fix.
3632 * rt/Makefile (tests): Add tst-aio7.
3634 2002-06-29 Ulrich Drepper <drepper@redhat.com>
3636 * rt/tst-aio6.c: Fix comment.
3638 * catgets/gencat.c (read_input_file): Handle more than one slash
3639 at end of line correctly [PR libc/3926].
3640 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
3642 * catgets/sample.SJIS: Add test case for above bug.
3643 * catgets/test-gencat.c: Adjust test code.
3644 * catgets/test-gencat.sh: Adjust expected results.
3646 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
3647 to skip relative relocations.
3648 Patch by Geoff Keating <geoffk@redhat.com>.
3650 2002-05-26 Bruno Haible <bruno@clisp.org>
3652 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
3653 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
3654 All callers changed.
3655 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
3656 STANDARD_FROM_LOOP_ERR_HANDLER.
3657 (utf8_internal_loop): Likewise.
3658 (ucs2_internal_loop): Likewise.
3659 (internal_ucs2_loop): Perform error handling like in
3660 STANDARD_FROM_LOOP_ERR_HANDLER.
3661 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
3662 in STANDARD_FROM_LOOP_ERR_HANDLER.
3663 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3665 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
3666 in STANDARD_FROM_LOOP_ERR_HANDLER.
3667 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3669 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
3670 in STANDARD_FROM_LOOP_ERR_HANDLER.
3671 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3673 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
3674 STANDARD_FROM_LOOP_ERR_HANDLER.
3675 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
3676 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
3677 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
3678 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
3679 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
3680 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
3681 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
3682 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
3683 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
3684 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
3685 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
3686 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
3687 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
3688 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
3689 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
3690 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
3691 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
3692 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
3693 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
3694 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
3695 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
3696 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
3697 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
3698 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
3699 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
3700 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
3701 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
3702 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
3703 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
3704 an error, still set result = __GCONV_ILLEGAL_INPUT.
3705 (BODY for TO_LOOP): Likewise.
3706 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
3707 STANDARD_FROM_LOOP_ERR_HANDLER.
3708 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3709 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
3710 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3712 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3713 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
3714 STANDARD_FROM_LOOP_ERR_HANDLER.
3715 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3716 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
3717 STANDARD_FROM_LOOP_ERR_HANDLER.
3718 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3719 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
3720 STANDARD_FROM_LOOP_ERR_HANDLER.
3721 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3722 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
3723 STANDARD_FROM_LOOP_ERR_HANDLER.
3724 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3725 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
3726 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3728 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3729 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
3730 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
3731 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
3733 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3735 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
3736 labels in assembler instructions.
3738 2002-06-25 Ulrich Drepper <drepper@redhat.com>
3740 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
3741 not enough content is available.
3742 * libio/tst-eof.c: New file.
3743 * libio/Makefile (tests): Add tst-eof.
3745 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
3747 * libio/tst-atime.c: New file.
3748 * libio/Makefile (tests): Add tst-atime.
3750 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
3751 handling of overly long words.
3753 2002-06-25 Andreas Jaeger <aj@suse.de>
3755 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
3756 to not use 32-bit pc relative relocations.
3757 (elf_machine_dynamic): Likewise.
3759 2002-06-21 Ulrich Drepper <drepper@redhat.com>
3761 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
3762 (__GETDENTS): Check for failed getdents64 syscall.
3763 * dirent/Makefile (tests): Add bug-readdir1.
3764 * dirent/bug-readdir1.c: New file.
3766 2002-06-17 Jakub Jelinek <jakub@redhat.com>
3768 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
3770 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
3771 code. Print TLS modid and offset for modules containing PT_TLS
3774 2002-06-09 Jakub Jelinek <jakub@redhat.com>
3776 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
3777 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
3778 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
3779 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
3781 2002-06-07 Jakub Jelinek <jakub@redhat.com>
3783 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
3784 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
3785 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
3786 * nss/getXXent_r.c (NEW, NEW1): Define.
3787 (NEW (REENTRANT_GETNAME)): Strong alias to
3788 INTERNAL (REENTRANT_GETNAME).
3789 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
3791 2002-06-21 Ulrich Drepper <drepper@redhat.com>
3793 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
3794 (_IO_file_jumps_mmap): Use it.
3795 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
3796 * libio/libioP.h: Remove _IO_wdefault_setbuf and
3797 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
3799 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
3800 (_IO_wfile_jumps_mmap): Don't use it anymore.
3801 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
3802 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
3803 _IO_wdefault_setbuf.
3804 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
3805 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
3806 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
3808 2002-06-05 Jakub Jelinek <jakub@redhat.com>
3810 * libio/Makefile (tests): Add tst-mmap-setvbuf.
3811 * libio/tst-mmap-setvbuf.c: New test.
3813 2002-06-21 Andreas Jaeger <aj@suse.de>
3815 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
3817 2002-06-18 Jakub Jelinek <jakub@redhat.com>
3819 * include/unistd.h (__fork_internal): Remove.
3820 (__fork): Don't define to __fork_internal.
3821 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
3822 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
3823 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
3824 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
3825 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
3827 2002-06-20 Ulrich Drepper <drepper@redhat.com>
3829 * po/hr.po: New file.
3831 2002-06-11 Wolfram Gloger <wg@malloc.de>
3833 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
3834 Reported by Michael Meissner <meissner@redhat.com>.
3836 2002-06-20 Ulrich Drepper <drepper@redhat.com>
3838 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
3839 Patch by Hans Boehm <hans_boehm@hp.com>.
3841 2002-06-20 Andreas Jaeger <aj@suse.de>
3843 * math/libm-test.inc: Use exact values as input parameters,
3844 compute output parameters with 36 digits for 128-bit long doubles.
3845 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
3846 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
3847 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
3849 2002-06-13 Stephen L Moshier <steve@moshier.net>
3851 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
3852 argument or result is subnormal.
3854 2002-06-19 Ulrich Drepper <drepper@redhat.com>
3856 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
3858 * sysdeps/i386/fpu/s_remquof.S: Likewise.
3859 * sysdeps/i386/fpu/s_remquol.S: Likewise.
3861 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
3863 2002-06-17 David Mosberger <davidm@hpl.hp.com>
3865 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
3866 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
3867 Reported by Peter A. Buhr.
3869 2002-06-15 Roland McGrath <roland@frob.com>
3871 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
3874 * sysdeps/mach/hurd/getcwd.c
3875 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
3877 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
3878 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
3880 * sysdeps/alpha/divrem.h: Use local label instead of global one for
3881 jump to local subroutine.
3883 2002-06-14 Roland McGrath <roland@frob.com>
3885 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
3886 * sysdeps/mach/hurd/Makeconfig: ... here.
3888 2002-06-13 Andreas Schwab <schwab@suse.de>
3890 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
3891 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
3892 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
3894 2002-06-13 Roland McGrath <roland@frob.com>
3896 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
3897 * hurd/hurdstartup.c (_hurd_startup): Likewise.
3898 Use intptr_t instead of int for argc in stack layout.
3899 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
3900 (_dl_init_first): Likewise.
3901 (_hurd_stack_setup): Likewise.
3902 (init1): Add a cast.
3903 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
3905 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
3906 argument to pfinet_siocgifconf RPC.
3908 2002-06-13 Andreas Schwab <schwab@suse.de>
3910 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
3913 2002-06-12 Roland McGrath <roland@frob.com>
3915 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
3917 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
3918 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
3920 2002-06-11 Roland McGrath <roland@frob.com>
3922 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
3923 file on [!RTLD_STAT64].
3924 * sysdeps/mach/hurd/fxstat64.c: Likewise.
3926 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
3927 (__fdopen): Use INTUSE.
3928 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
3930 * stdio-common/tmpfile64.c: File removed.
3931 * sysdeps/generic/tmpfile64.c: New file.
3932 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
3933 if not already defined.
3934 (tmpfile): Use it in place of __GT_FILE.
3936 * include/unistd.h: Declare __chown_internal.
3938 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
3939 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
3941 2002-06-09 Roland McGrath <roland@frob.com>
3943 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
3944 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
3945 value of HURD_INTERFACE_VERSION >= 20020609.
3946 * sysdeps/mach/hurd/configure: Regenerated.
3947 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
3948 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
3949 convert a struct stat64 into a struct stat and return 0 or -1
3950 with errno set to EOVERFLOW.
3951 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
3952 for struct statfs64 to struct statfs.
3953 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
3954 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
3955 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3956 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3957 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3958 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3959 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
3960 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
3961 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
3962 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
3963 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
3964 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
3965 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
3966 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
3967 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
3968 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
3969 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
3970 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
3971 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
3972 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
3973 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
3974 Use struct stat64 for io_stat argument.
3975 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
3976 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
3978 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
3979 * hurd/fd-write.c (_hurd_fd_write): Likewise.
3980 * hurd/hurd/fd.h: Update decls.
3981 * sysdeps/mach/hurd/getcwd.c
3982 (_hurd_canonicalize_directory_name_internal): Use ino64_t
3983 and struct dirent64.
3984 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
3985 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
3986 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
3987 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
3989 2002-06-08 Roland McGrath <roland@frob.com>
3991 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
3992 instead of unsigned long int for __allocation and __size members.
3994 2002-06-09 Jakub Jelinek <jakub@redhat.com>
3996 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
3997 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
3998 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
3999 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
4001 2002-06-07 Roland McGrath <roland@frob.com>
4003 * sysdeps/mach/hurd/bits/environments.h: File removed.
4005 2002-06-07 Jakub Jelinek <jakub@redhat.com>
4007 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
4008 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
4009 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
4010 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
4011 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
4012 (sendfile64): Likewise.
4013 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
4014 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
4015 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
4017 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
4019 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
4022 2002-06-04 Bruno Haible <bruno@clisp.org>
4024 * sysdeps/cris/stackinfo.h: New file.
4026 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
4027 to an integer type before performing bit operations on it.
4029 2002-06-05 Roland McGrath <roland@frob.com>
4031 * sysdeps/generic/sendfile.c: Include <errno.h>.
4032 * sysdeps/generic/sendfile64.c: Likewise.
4034 * io/Makefile (routines): Add sendfile and sendfile64.
4035 (headers): Add sys/sendfile.h to the list.
4036 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
4037 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
4038 * io/sys/sendfile.h: ... here.
4039 * sysdeps/generic/sendfile.c: New file.
4040 * sysdeps/generic/sendfile64.c: New file.
4042 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
4043 Move sendfile, sendfile64 to ...
4044 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
4045 * sysdeps/mach/hurd/sendfile.c: New file.
4046 * sysdeps/mach/hurd/sendfile64.c: New file.
4048 * sysdeps/mach/nanosleep.c: New file.
4050 2002-06-04 Roland McGrath <roland@frob.com>
4052 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
4053 * sysdeps/alpha/elf/configure: New file (generated).
4055 2002-06-02 Roland McGrath <roland@frob.com>
4057 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
4059 2002-06-01 Roland McGrath <roland@frob.com>
4061 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
4062 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
4064 2002-05-19 Ulrich Drepper <drepper@redhat.com>
4066 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
4068 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
4069 Remove nstimes setting.
4070 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
4071 * resolv/res_send.c (res_nsend): Don't close unconditionally if
4072 there is mix of IPv6 and IPv4 nameservers.
4073 Use nsmap array to find free slots and preserve nameserver ordering.
4076 2002-05-30 Ulrich Drepper <drepper@redhat.com>
4078 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
4079 use this header with LFS.
4081 * po/sk.po: Update from translation team.
4083 2002-05-28 Andreas Schwab <schwab@suse.de>
4085 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
4086 message when finding object of wrong class.
4088 2002-05-28 Jakub Jelinek <jakub@redhat.com>
4090 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
4091 Patch by <radu@netsoft.ro>.
4093 2002-05-30 Ulrich Drepper <drepper@redhat.com>
4095 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
4097 * sysdeps/unix/sysv/linux/readahead.c: New file.
4098 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
4099 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
4100 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
4101 Add sendfile64 alias to sendfile syscall.
4102 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4103 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4104 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4105 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
4108 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
4109 special section for PIC register loading.
4110 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4112 * config.h.in: Define HAVE_HIDDEN.
4113 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
4115 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
4117 2002-05-28 Roland McGrath <roland@frob.com>
4119 * sysdeps/mach/alpha/setfpucw.c: New file.
4121 2002-05-26 Roland McGrath <roland@frob.com>
4123 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
4124 Use integer_t instead of int for IOC_VOID case.
4126 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
4128 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
4130 2002-05-26 Bruno Haible <bruno@clisp.org>
4132 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
4133 end of the ISO-8859-7 from idx table.
4135 2002-05-27 Ulrich Drepper <drepper@redhat.com>
4137 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
4139 2002-05-24 David S. Miller <davem@redhat.com>
4141 * string/bits/string2.h (memset): Do not try to optimize when
4142 not _STRING_ARCH_unaligned if GCC will do the right thing.
4144 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
4146 * posix/regex.c: Define `inline' as a macro into nothing for the
4147 compilers which lack the keyword.
4148 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
4149 for the compatibility of gawk.
4150 * posix/regcomp.c: Add fake implementation of isblank() for the
4151 environments which lack the function.
4152 Don't use free_charset() in case of non-i18n envs.
4153 (build_range_exp): Don't use i18n related code in case of non-i18n
4155 (build_collating_symbol): Likewise.
4156 (build_equiv_class): Likewise.
4157 (build_charclass): Likewise.
4158 (re_compile_fastmap_iter): Likewise.
4159 (parse_bracket_exp): Likewise.
4160 (build_word_op): Likewise.
4161 (regfree): Don't use free_charset() in case of non-i18n envs.
4162 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
4163 re_token_type_t in case of non-i18n envs.
4164 Don't define re_charset_t in case of non-i18n envs.
4165 Change the type of wcs of re_string_t from wchar_t to wint_t,
4166 since we store also WEOF.
4167 * posix/regex_internal.c: (re_string_realloc_buffers): Change
4168 the type of wcs of re_string_t from wchar_t to wint_t.
4169 (re_string_reconstruct): Likewise.
4170 (create_ci_newstate): Don't use i18n related code in case of
4172 (create_cd_newstate): Likewise.
4174 2002-05-24 Ulrich Drepper <drepper@redhat.com>
4176 * iconv/loop.c: Fix typo.
4178 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4180 * inet/ether_line.c (ether_line): Fix a typo causing only
4181 lower 4 bits of each ethernet address byte being assigned.
4182 Don't modify what line points to.
4183 * inet/tst-ether_aton.c (main): Add ether_line tests.
4185 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
4187 * manual/filesys.texi: Don't make readlink example leak memory
4188 when readlink fails.
4190 2002-05-20 Ulrich Drepper <drepper@redhat.com>
4192 * iconv/loop.c: Fix condition for defining unaligned loop. Add
4193 some more security checks.
4195 2002-05-17 David S. Miller <davem@redhat.com>
4197 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
4199 2002-05-16 David S. Miller <davem@redhat.com>
4201 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
4202 (elf_machine_dynamic): Use it to force PIC register to be loaded.
4203 (elf_machine_load_address): Likewise.
4204 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
4206 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
4207 is unaligned, do not forget to fully initialize %g1 magic value.
4209 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
4210 register definitions and provide 32-bit variants of structures
4211 during 64-bit builds.
4213 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
4214 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
4215 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
4216 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
4217 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
4218 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
4219 Do not clear implicit one bit here, it must be done post-rounding.
4220 Only pad to the left using left shift if value uses less than the
4221 available fractional bits.
4223 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4225 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
4226 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
4227 (shared-only-routines): Likewise.
4228 * sysdeps/powerpc/libgcc-compat.c: New file.
4229 * sysdeps/wordsize-32/cmpdi2.c: Removed.
4230 * sysdeps/wordsize-32/fixdfdi.c: Removed.
4231 * sysdeps/wordsize-32/fixsfdi.c: Removed.
4232 * sysdeps/wordsize-32/shdi3.c: Removed.
4234 2002-05-16 Bruno Haible <bruno@clisp.org>
4236 * MakeTAGS (libc.pot): Don't sort the output.
4237 * po/header.pot: Update to match xgettext 0.11 output.
4239 2002-05-16 Bruno Haible <bruno@clisp.org>
4241 * MakeTAGS (subdirs): Remove duplicates.
4243 2002-05-19 Ulrich Drepper <drepper@redhat.com>
4245 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
4246 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
4249 2002-05-19 Andreas Jaeger <aj@suse.de>
4251 * sysdeps/unix/sysv/linux/configure.in: Warn against an
4252 installation in /usr/local.
4254 2002-05-16 Bruno Haible <bruno@clisp.org>
4256 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
4257 string as argument of #error.
4259 2002-05-15 Ulrich Drepper <drepper@redhat.com>
4261 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
4262 don't define static. Remove old __realpath function. TC1 of
4263 POSIX 2001 will allow the second parameter to be NULL.
4264 * stdlib/test-canon.c: Comment out test for NULL as second
4265 parameter of realpath.
4267 * time/offtime.c (__offtime): Set errno if overflow is detected.
4269 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
4270 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
4273 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
4276 2002-05-15 Roland McGrath <roland@frob.com>
4278 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
4280 2002-05-12 Bruno Haible <bruno@clisp.org>
4282 * iconvdata/testdata/EUC-JISX0213: New file.
4283 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
4284 * iconvdata/testdata/SHIFT_JISX0213: New file.
4285 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
4286 * iconvdata/testdata/ISO-2022-JP-3: New file.
4287 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
4288 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
4289 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
4290 contains comments indicating precomposed characters.
4292 2002-04-21 Bruno Haible <bruno@clisp.org>
4294 * iconvdata/iso-2022-jp-3.c: New file.
4295 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
4296 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
4297 (LDFLAGS-ISO-2022-JP-3.so): New variable.
4298 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
4299 (distribute): Add iso-2022-jp-3.c.
4301 2002-05-12 Bruno Haible <bruno@clisp.org>
4303 * iconvdata/tst-table-to.c (main): Restore handling of
4304 transliterations, broken by last patch.
4306 2002-05-12 Bruno Haible <bruno@clisp.org>
4308 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
4310 2002-05-12 Bruno Haible <bruno@clisp.org>
4312 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
4313 when there is not enough room in the output buffer.
4314 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
4316 2002-04-20 Bruno Haible <bruno@clisp.org>
4318 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
4320 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
4321 Also make this macro work if FROM_DIRECTION evaluates to 0.
4322 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
4323 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
4324 of consume_incomplete.
4325 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
4326 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
4328 * iconvdata/cp1258.c: Likewise.
4329 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
4330 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
4332 * iconvdata/ibm933.c: Likewise.
4333 * iconvdata/ibm935.c: Likewise.
4334 * iconvdata/ibm937.c: Likewise.
4335 * iconvdata/ibm939.c: Likewise.
4336 * iconvdata/iso-2022-cn.c: Define
4337 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
4338 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
4339 * iconvdata/iso-2022-cn-ext.c: Likewise.
4340 * iconvdata/iso-2022-jp.c: Define
4341 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
4342 {MIN,MAX}_NEEDED_{FROM,TO}.
4343 * iconvdata/tcvn5712-1.c: Define
4344 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
4345 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
4346 * iconvdata/euc-jisx0213.c: Define
4347 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
4348 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
4349 * iconvdata/shift_jisx0213.c: Likewise.
4351 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4353 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
4354 shdi3, fixdfdi, fixsfdi in csu dir.
4355 (shared-only-routines): Likewise.
4356 * sysdeps/wordsize-32/cmpdi2.c: New file.
4357 * sysdeps/wordsize-32/shdi3.c: New file.
4358 * sysdeps/wordsize-32/fixdfdi.c: New file.
4359 * sysdeps/wordsize-32/fixsfdi.c: New file.
4360 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
4361 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
4362 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
4364 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
4365 Only use va_arg if the argument will be used [PR libc/3259].
4367 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
4369 * catgets/catgets.c (catopen): Free buffer if internal catalog
4372 2002-05-14 Ulrich Drepper <drepper@redhat.com>
4374 * debug/xtrace.sh: Make more robust. For realtime tracking use
4375 non-buffering methods.
4376 * debug/pcprofiledump.c: Implement -u option.
4377 Patch by Roger Luethi <rl@hellgate.ch>.
4379 2002-05-11 Jakub Jelinek <jakub@redhat.com>
4381 * include/netinet/in.h (bindresvport_internal): Add prototype.
4382 * include/rpc/auth.h (authunix_create_internal,
4383 authunix_create_default_internal, authnone_create_internal,
4384 authdes_pk_create_internal): Add prototypes.
4385 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
4386 clntudp_create_internal, clntudp_bufcreate_internal,
4387 clntunix_create_internal): Add prototypes.
4388 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
4389 svc_getreq_internal, svc_getreq_common_internal,
4390 svc_getreqset_internal, svc_getreq_poll_internal,
4391 svc_register_internal, svc_unregister_internal,
4392 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
4393 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
4394 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
4395 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
4396 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
4397 * inet/rcmd.c (rcmd_af): Use __listen.
4398 (rresvport_af): Use __bind.
4399 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
4400 authunix_create, authunix_create_default, authnone_create,
4401 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
4402 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
4403 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
4404 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
4405 _authenticate, add INTDEF after such function definitions.
4406 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
4407 __setsockopt, __getsockname instead of non-__ variants.
4408 * sunrpc/pmap_rmt.c: Likewise.
4409 * sunrpc/rtime.c: Likewise.
4410 * sunrpc/svc_udp.c: Likewise.
4411 * sunrpc/clnt_unix.c: Likewise.
4412 * sunrpc/svc_unix.c: Likewise.
4413 * sunrpc/bindrsvprt.c: Likewise.
4414 * sunrpc/svc_tcp.c: Likewise.
4415 * sunrpc/auth_none.c: Likewise.
4416 * sunrpc/clnt_raw.c: Likewise.
4417 * sunrpc/clnt_tcp.c: Likewise.
4418 * sunrpc/auth_unix.c: Likewise.
4419 * sunrpc/key_call.c: Likewise.
4420 * sunrpc/clnt_gen.c: Likewise.
4421 * sunrpc/pm_getmaps.c: Likewise.
4422 * sunrpc/clnt_simp.c: Likewise.
4423 * sunrpc/pmap_clnt.c: Likewise.
4424 * sunrpc/svc_run.c: Likewise.
4425 * sunrpc/svc.c: Likewise.
4426 * sunrpc/svc_simple.c: Likewise.
4427 * sunrpc/pm_getport.c: Likewise.
4428 * sunrpc/auth_des.c: Likewise.
4429 * sunrpc/svc_auth.c: Likewise.
4430 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
4431 __register_frame_info_table_bases, __deregister_frame_info_bases):
4433 (__register_frame_info_bases_internal,
4434 __register_frame_info_table_bases_internal,
4435 __deregister_frame_info_bases_internal): Add prototypes.
4436 (__register_frame_info, __register_frame): Use INTUSE in call to
4437 __register_frame_info_bases.
4438 (__register_frame_info_table): Similarly.
4439 (__deregister_frame_info, __deregister_frame): Similarly.
4440 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
4441 sendto as weak alias.
4442 * sysdeps/mach/hurd/sendto.c: Likewise.
4443 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
4444 recvfrom as weak alias.
4445 * sysdeps/mach/hurd/recvfrom.c: Likewise.
4446 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
4447 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
4448 recvmsg as weak alias.
4449 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
4450 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
4451 sendmsg as weak alias.
4452 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
4453 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
4454 setsockopt, add setsockopt as weak alias.
4455 * sysdeps/mach/hurd/setsockopt.c: Likewise.
4456 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
4458 * sysdeps/mach/hurd/bind.c: Likewise.
4459 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
4461 * sysdeps/mach/hurd/listen.c: Likewise.
4462 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
4463 getsockname, add getsockname as weak alias.
4464 * sysdeps/mach/hurd/getsockname.c: Likewise.
4465 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
4466 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
4467 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
4468 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
4469 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
4470 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
4472 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4473 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4474 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4475 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4476 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
4477 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
4478 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
4479 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
4480 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
4481 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
4482 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
4483 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
4485 2002-05-10 Jakub Jelinek <jakub@redhat.com>
4487 * locale/programs/localedef.h (show_archive_content): Add verbose
4489 * locale/programs/localedef.c (main): Adjust caller.
4490 * locale/programs/locarchive.c (struct nameent, struct dataent): New.
4491 (nameentcmp, dataentcmp): New functions.
4493 (show_archive_content): Print verbose listing with --list-archive -v.
4495 2002-05-14 Ulrich Drepper <drepper@redhat.com>
4497 * locale/programs/locarchive.c (open_archive): Take extra argument
4498 readonly. If true open file with O_RDONLY and don't create the
4499 archive if it doesn't exist.
4501 (close_archive): Don't do anything if fd element is -1.
4502 * locale/programs/localedef.h (open_archive): Adjust prototype.
4503 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
4506 * malloc/malloc.c (__posix_memalign): Correct check for size of
4507 alignment value [PR libc/3444].
4509 * include/stdio.h: Remove references to old stdio implementation.
4511 * libio/Makefile (bug-ungetwc2-ENV): Define.
4513 2002-05-13 Roland McGrath <roland@frob.com>
4515 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
4517 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
4519 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
4521 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
4522 Allocate three, not two, more than LEN when appending '/.'.
4523 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
4524 if NAME ends with '/.' if it is shorter than 2 chars.
4526 2002-05-12 Roland McGrath <roland@frob.com>
4528 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
4529 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
4531 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
4532 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
4534 2002-05-10 Jakub Jelinek <jakub@redhat.com>
4536 * sysdeps/ia64/Makefile: Remove extra endif.
4537 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
4539 2002-05-10 Andreas Schwab <schwab@suse.de>
4541 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
4543 2002-05-09 Andreas Jaeger <aj@suse.de>
4545 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
4546 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
4547 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
4549 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
4550 * sysdeps/wordsize-64/glob.c: ...here.
4551 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
4552 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
4553 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
4555 2002-05-08 Roland McGrath <roland@frob.com>
4557 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
4558 O_NOTRANS flag in "." lookup.
4560 2002-05-05 Ulrich Drepper <drepper@redhat.com>
4562 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
4564 2002-05-04 Ulrich Drepper <drepper@redhat.com>
4566 * locale/duplocale.c (__duplocale): Update special members only
4567 when allocation succeeded.
4569 2002-05-03 Roland McGrath <roland@frob.com>
4571 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
4572 we can only build libc.so.0.3(GLIBC_2.2.6) now.
4574 2002-05-02 Jakub Jelinek <jakub@redhat.com>
4576 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
4577 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
4578 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
4579 * sysdeps/ia64/ia64libgcc.S: New file.
4581 2002-05-02 Ulrich Drepper <drepper@redhat.com>
4583 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
4585 * malloc/memusage.c: Distinguish anonymous mmap.
4587 2002-05-01 Roland McGrath <roland@frob.com>
4589 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
4590 and use INTDEF on it.
4591 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
4593 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
4595 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
4597 2002-05-01 Ulrich Drepper <drepper@redhat.com>
4599 * malloc/memusage.c: Add support for tracking mmap & friends.
4600 * malloc/memusage.sh: Implement -m/--mmap option.
4602 2002-04-30 Jakub Jelinek <jakub@redhat.com>
4604 * locale/programs/locarchive.c (create_archive): Add archivefname
4605 argument, create fname from it.
4606 (enlarge_archive): Honour output_prefix.
4607 (open_archive): Likewise.
4609 2002-04-30 Jakub Jelinek <jakub@redhat.com>
4611 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
4612 too many stpcpy macros.
4614 2002-04-26 Bruno Haible <bruno@clisp.org>
4616 * locale/programs/ld-collate.c (collate_read): Cast first argument
4619 2002-04-26 Bruno Haible <bruno@clisp.org>
4621 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
4622 __dcngettext_internal): New declarations.
4623 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
4624 attribute declarations.
4626 2002-04-30 Roland McGrath <roland@frob.com>
4628 Removed old GNU stdio implementation; GNU libio is now the only option.
4629 * configure.in: Removed --enable-libio option and @stdio@ subst var.
4630 Define USE_IN_LIBIO unconditionally.
4631 * configure: Regenerated.
4632 * Makeconfig (stdio): Set to libio by default.
4633 * config.make.in (stdio): Variable removed.
4634 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
4635 * sysdeps/unix/sysv/linux/configure: Regenerated.
4636 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
4637 * sysdeps/mach/hurd/configure: Regenerated.
4638 * stdio/.cvsignore: File removed.
4639 * stdio/Makefile: File removed.
4640 * stdio/Versions: File removed.
4641 * stdio/__fbufsize.c: File removed.
4642 * stdio/__flbf.c: File removed.
4643 * stdio/__fpending.c: File removed.
4644 * stdio/__fpurge.c: File removed.
4645 * stdio/__freadable.c: File removed.
4646 * stdio/__freading.c: File removed.
4647 * stdio/__fsetlocking.c: File removed.
4648 * stdio/__fwritable.c: File removed.
4649 * stdio/__fwriting.c: File removed.
4650 * stdio/clearerr.c: File removed.
4651 * stdio/fclose.c: File removed.
4652 * stdio/fcloseall.c: File removed.
4653 * stdio/feof.c: File removed.
4654 * stdio/ferror.c: File removed.
4655 * stdio/fflush.c: File removed.
4656 * stdio/fgetc.c: File removed.
4657 * stdio/fgetpos.c: File removed.
4658 * stdio/fgets.c: File removed.
4659 * stdio/fileno.c: File removed.
4660 * stdio/fmemopen.c: File removed.
4661 * stdio/fopen.c: File removed.
4662 * stdio/fopncook.c: File removed.
4663 * stdio/fputc.c: File removed.
4664 * stdio/fputs.c: File removed.
4665 * stdio/fread.c: File removed.
4666 * stdio/freopen.c: File removed.
4667 * stdio/fseek.c: File removed.
4668 * stdio/fsetpos.c: File removed.
4669 * stdio/ftell.c: File removed.
4670 * stdio/fwrite.c: File removed.
4671 * stdio/getc.c: File removed.
4672 * stdio/getchar.c: File removed.
4673 * stdio/getdelim.c: File removed.
4674 * stdio/gets.c: File removed.
4675 * stdio/glue.c: File removed.
4676 * stdio/internals.c: File removed.
4677 * stdio/linewrap.c: File removed.
4678 * stdio/linewrap.h: File removed.
4679 * stdio/memstream.c: File removed.
4680 * stdio/newstream.c: File removed.
4681 * stdio/obstream.c: File removed.
4682 * stdio/putc.c: File removed.
4683 * stdio/putchar.c: File removed.
4684 * stdio/puts.c: File removed.
4685 * stdio/rewind.c: File removed.
4686 * stdio/setbuf.c: File removed.
4687 * stdio/setbuffer.c: File removed.
4688 * stdio/setlinebuf.c: File removed.
4689 * stdio/setvbuf.c: File removed.
4690 * stdio/stdio.h: File removed.
4691 * stdio/ungetc.c: File removed.
4692 * stdio/vasprintf.c: File removed.
4693 * stdio/vscanf.c: File removed.
4694 * stdio/vsnprintf.c: File removed.
4695 * stdio/vsprintf.c: File removed.
4696 * stdio/vsscanf.c: File removed.
4697 * sysdeps/generic/defs.c: File removed.
4698 * sysdeps/generic/fdopen.c: File removed.
4699 * sysdeps/generic/pipestream.c: File removed.
4700 * sysdeps/generic/stdio_init.c: File removed.
4701 * sysdeps/generic/sysd-stdio.c: File removed.
4702 * sysdeps/generic/vdprintf.c: File removed.
4703 * sysdeps/mach/hurd/defs.c: File removed.
4704 * sysdeps/mach/hurd/fdopen.c: File removed.
4705 * sysdeps/mach/hurd/pipestream.c: File removed.
4706 * sysdeps/mach/hurd/stdio_init.c: File removed.
4707 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
4708 * sysdeps/mach/hurd/vdprintf.c: File removed.
4709 * sysdeps/posix/defs.c: File removed.
4710 * sysdeps/posix/fdopen.c: File removed.
4711 * sysdeps/posix/pipestream.c: File removed.
4712 * sysdeps/posix/stdio_init.c: File removed.
4713 * sysdeps/posix/vdprintf.c: File removed.
4714 * sysdeps/unix/pipestream.c: File removed.
4715 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
4716 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
4717 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
4719 2002-04-29 Roland McGrath <roland@frob.com>
4721 * include/libc-symbols.h (link_warning): Use `unused' attribute.
4723 2002-04-28 Ulrich Drepper <drepper@redhat.com>
4725 * sysdeps/generic/tls.h: Describe what must be defined.
4727 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
4728 glob_in_dir [PR libc/3385].
4729 * posix/globtest.sh: Add test case.
4731 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
4734 2002-04-27 Ulrich Drepper <drepper@redhat.com>
4736 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
4737 _internal symbol handling.
4738 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4740 2002-04-26 Ulrich Drepper <drepper@redhat.com>
4742 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
4743 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
4745 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
4747 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
4748 not _LIBC and RE_ENABLE_I18N.
4749 (build_range_exp): Implement for not _LIBC.
4750 (build_collating_symbol): Likewise.
4751 (parse_bracket_exp): Unify redundant error handlings.
4752 Don't erase mbcset for non matching list in multibyte envs.
4753 (build_word_op): Add '_' to matching list for \w operator.
4754 * posix/regex_internal.c (re_string_construct): Invoke
4755 build_upper_buffer in case of not RE_ENABLE_I18N.
4756 (re_string_reconstruct): Don't touch cur_state in case of not
4758 * posix/regex_internal.h (attribute_hidden): New macro in case of
4760 (re_charset_t): Define range_starts/ends in case of not _LIBC.
4761 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
4763 (transit_state_mb): Likewise.
4764 (check_node_accept_bytes): Implement the code evaluating range
4765 expression in case of not _LIBC.
4766 (find_collation_sequence_value): Hide in case of not _LIBC.
4768 2002-04-26 Jakub Jelinek <jakub@redhat.com>
4770 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
4772 (__old_semctl, __new_semctl): Only use va_arg if the argument will
4775 2002-04-26 Ulrich Drepper <drepper@redhat.com>
4777 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
4779 * sysdeps/ia64/strncpy.S: Fix recovery code.
4780 Patch by David Mosberger <davidm@hpl.hp.com>.
4782 2002-04-24 Ulrich Drepper <drepper@redhat.com>
4784 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
4787 2002-04-14 Bruno Haible <bruno@clisp.org>
4789 * posix/regex.c (re_max_failures): Add back symbol for binary
4792 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
4794 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
4795 of buffer building functions.
4796 * posix/regex_internal.c (re_string_allocate): New function.
4797 (re_string_realloc_buffers): New function.
4798 (re_string_skip_chars): New function.
4799 (re_string_reconstruct): New function.
4800 (re_string_construct): Adapt it to new interface of buffer building
4802 (re_string_construct_common): Likewise.
4803 (build_wcs_buffer): Likewise.
4804 (build_wcs_upper_buffer): Likewise.
4805 (build_upper_buffer): Likewise.
4806 (re_string_translate_buffer): Likewise.
4807 (re_string_context_at): Adapt it to variable length buffers.
4808 * posix/regex_internal.h (re_string_t): Add new fields to handle
4809 variable length buffers.
4810 (re_match_context_t): Likewise.
4811 * posix/regexec.c (re_search_internal): Adapt it to new interface
4812 of re_string_t and re_match_context_t.
4813 (acquire_init_state_context): Likewise.
4814 (check_matching): Likewise.
4815 (check_halt_state_context): Likewise.
4816 (proceed_next_node): Likewise.
4817 (set_regs): Likewise.
4818 (sift_states_backward): Likewise.
4819 (clean_state_log_if_need): Likewise.
4820 (sift_states_iter_mb): Likewise.
4821 (sift_states_iter_bkref): Likewise.
4822 (add_epsilon_backreference): Likewise.
4823 (transit_state): Likewise.
4824 (transit_state_sb): Likewise.
4825 (transit_state_mb): Likewise.
4826 (transit_state_bkref): Likewise.
4827 (transit_state_bkref_loop): Likewise.
4828 (check_node_accept): Likewise.
4829 (match_ctx_init): Likewise.
4830 (extend_buffers): New function.
4832 2002-04-21 Bruno Haible <bruno@clisp.org>
4834 * iconvdata/tst-table.sh: For the second check, use the truncated
4835 GB18030 charmap table, like for the first check.
4837 2002-04-24 Ulrich Drepper <drepper@redhat.com>
4839 * elf/dl-load.c (open_verify): Correct __lseek parameters.
4840 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
4842 2002-04-23 H.J. Lu <hjl@gnu.org>
4844 * include/math.h (isfinite): Fix a typo.
4846 2002-04-24 Ulrich Drepper <drepper@redhat.com>
4848 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
4849 which is created by the test suite.
4851 2002-04-20 Bruno Haible <bruno@clisp.org>
4853 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
4854 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
4856 2002-04-20 Bruno Haible <bruno@clisp.org>
4858 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
4859 to avoid gcc warning.
4861 2002-04-20 Bruno Haible <bruno@clisp.org>
4863 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
4864 of data->__statep->__count.
4866 2002-04-20 Bruno Haible <bruno@clisp.org>
4868 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
4870 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
4872 2002-04-24 Roland McGrath <roland@frob.com>
4874 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
4875 use END macro instead of our own .end directive.
4876 Use `callsys' insn mnemonic instead of `call_pal'.
4878 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
4880 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
4881 macro; we need this for Hurd.
4883 Log entry was missing for 2002/03/24 commit of rev 1.8,
4884 goes with 2002-03-17 changes.
4885 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
4886 (sysdep_routines): Append ioperm here.
4887 (sysdep_headers): Append sys/io.h here.
4889 2002-04-23 Roland McGrath <roland@frob.com>
4891 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
4892 * sysdeps/mach/hurd/sendto.c: Likewise.
4893 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
4894 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
4895 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
4897 2002-04-22 Roland McGrath <roland@frob.com>
4899 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
4900 failure from i386_io_perm_* RPCs to ENOSYS.
4902 2002-04-22 Andreas Jaeger <aj@suse.de>
4904 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
4906 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
4908 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
4909 register instead of destroying %rbx.
4911 2002-04-21 Ulrich Drepper <drepper@redhat.com>
4913 * string/string.h: Declare strerror_r also for XPG6.
4915 2002-04-19 Roland McGrath <roland@frob.com>
4917 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
4919 2002-04-20 Ulrich Drepper <drepper@redhat.com>
4921 * Makefile: Add handling of xtests and xcheck targets.
4922 * MakeTAGS: Likewise.
4923 * Makeconfig: Likewise.
4924 * Makerules: Likewise.
4926 * manual/Makefile: Likewise.
4927 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
4928 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
4930 2002-04-11 Zack Weinberg <zack@codesourcery.com>
4932 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
4934 * sunrpc/auth_none.c: Include bits/libc-lock.h.
4935 Delete #ifdef _RPC_THREAD_SAFE_ block.
4936 (authnone_private): Make a struct, not a pointer to struct.
4937 (authnone_private_guard): New once-control variable.
4938 (authnone_create_once): New function, split out of
4939 authnone_create. No need to allocate memory.
4940 (authnone_create): Just call authnone_create_once via
4941 __libc_once, then return &authnone_private->no_client.
4942 (authnone_marshal): Access private data via CLIENT argument,
4943 not authnone_private pointer.
4944 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
4945 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
4948 2002-04-12 H.J. Lu <hjl@gnu.org>
4950 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
4952 2002-04-18 Bruno Haible <bruno@clisp.org>
4954 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
4955 FROM_DIRECTION): Make the FROM direction stateless.
4956 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
4957 FROM_DIRECTION): Likewise.
4959 2002-04-15 Bruno Haible <bruno@clisp.org>
4961 * iconvdata/JISX0213.TXT: New file.
4962 * iconvdata/jisx0213.h: New file.
4963 * iconvdata/jisx0213.c: New file.
4964 * iconvdata/euc-jisx0213.c: New file.
4965 * iconvdata/shift_jisx0213.c: New file.
4966 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
4967 * iconvdata/EUC-JISX0213.precomposed: New file.
4968 * iconvdata/SHIFT_JISX0213.precomposed: New file.
4969 * iconvdata/SHIFT_JISX0213.irreversible: New file.
4970 * iconvdata/tst-table-to.c (main): Make it work for encodings for
4971 which the "to" direction is stateful.
4972 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
4973 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
4975 (libJISX0213-routines): New variable.
4976 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
4977 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
4978 (LDFLAGS-libJISX0213.so): New variable.
4979 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
4980 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
4981 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
4983 2002-04-15 Bruno Haible <bruno@clisp.org>
4985 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
4986 uint32_t. Update to Unicode 3.2.
4987 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
4988 (BODY for TO_LOOP): Handle the ASCII range specially.
4989 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
4990 * iconvdata/testdata/BIG5HKSCS: Remove a character.
4991 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
4993 2002-04-15 Bruno Haible <bruno@clisp.org>
4995 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
4996 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
4998 2002-04-15 Bruno Haible <bruno@clisp.org>
5000 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
5001 (ucs4_to_cns11643): Update.
5002 * iconvdata/cns11643.c: Update to Unicode 3.2.
5003 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
5004 __cns11643_from_ucs4p2_tab): Regenerated.
5005 (__cns11643_from_ucs4p2c_tab): New array.
5006 * iconvdata/cvs11643l1.c: Update comments.
5007 * iconvdata/EUC-TW.irreversible: Remove two entries.
5009 2002-04-15 Bruno Haible <bruno@clisp.org>
5011 * locale/C-translit.h.in: Update to Unicode 3.2.
5012 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
5013 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
5015 2002-04-15 Bruno Haible <bruno@clisp.org>
5017 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
5018 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
5020 2002-04-15 Bruno Haible <bruno@clisp.org>
5022 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
5023 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
5024 always one byte, not 0 bytes in some cases and 2 bytes in others.
5026 * iconvdata/tst-table-from.c (main): Correct the usage message.
5028 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
5030 * posix/regcomp.c (parse_expression): Fix incorrect error code.
5031 (parse_dup_op): Fix error handling like "a{}".
5032 (parse_bracket_exp): Add error handling.
5033 (fetch_number): Add error handling for "a{<very_large_number>}".
5035 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
5037 * posix/regcomp.c (parse_bracket_symbol): Add error handling
5038 in case that the symbol name is too long.
5039 (build_charclass): Handle [:lower:]/[:uppper:] correctly
5040 in case of REG_ICASE.
5042 2002-04-19 Andreas Jaeger <aj@suse.de>
5044 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
5045 <hartvige@mips.com>.
5047 2002-04-15 H.J. Lu <hjl@gnu.org>
5049 * include/math.h (__finitel_internal): Declare only if
5050 __NO_LONG_DOUBLE_MATH is not defined.
5051 (__isinfl_internal): Likewise.
5052 (__isnanl_internal): Likewise.
5054 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
5055 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5056 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5057 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5058 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5059 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5060 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5062 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
5065 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
5066 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
5068 2002-04-15 Bruno Haible <bruno@clisp.org>
5070 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
5071 (BODY for TO_LOOP): Likewise.
5072 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
5073 * iconvdata/tst-table.sh: Add support for encodings which contain
5074 precomposed Unicode characters, known to the iconv converter in both
5075 directions but not listed in the charmap.
5076 * iconvdata/IBM856.irreversible: New file.
5077 * iconvdata/IBM922.irreversible: New file.
5078 * iconvdata/IBM1132.irreversible: New file.
5079 * iconvdata/IBM1133.irreversible: New file.
5080 * iconvdata/IBM1160.irreversible: New file.
5081 * iconvdata/IBM1161.irreversible: New file.
5082 * iconvdata/IBM1163.irreversible: New file.
5083 * iconvdata/IBM1164.irreversible: New file.
5084 * iconvdata/ARMSCII-8.irreversible: New file.
5085 * iconvdata/TCVN5712-1.precomposed: New file.
5086 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
5087 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
5088 ARMSCII-8, TCVN5712-1.
5089 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
5090 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
5091 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
5092 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
5094 2002-04-17 Jakub Jelinek <jakub@redhat.com>
5096 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
5097 for EVENING69. Include offsets in TZ environment variable.
5099 2002-04-18 Ulrich Drepper <drepper@redhat.com>
5101 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
5102 avoid compiler warnings.
5104 * locale/programs/localedef.c (main): Always call
5105 construct_output_path.
5107 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
5109 * locale/programs/locfile.c (to_archive): New variable. To collect
5110 data which has to be added to the locale archive.
5111 (write_all_categories): Take new third parameter with locale name.
5112 Unless no_archive flag set add new locale data to the archive
5113 (write_locale_data): Unless no-archive flag set store generated data
5114 in to_archive data structure instead of generation output file.
5115 Add new parameter with locale category index.
5116 * locale/programs/locfile.h: Add new parameters in declaractions of
5117 write_all_categories and write_locale_data.
5118 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
5119 --add-to-archive, and --delete-from-archive options. Pass extra
5120 parameter to write_all_categories.
5121 * locale/programs/localedef.h: Add prototypes for functions in
5123 * locale/locarchive.h: New file.
5124 * locale/programs/locarchive.c: New file.
5125 * locale/Makefile (distribute): Add programs/locarchive.c and
5127 (localedef-modules): Add md5 and locarchive.
5128 Add vpath to crypt subdir for md5.c.
5130 * locale/programs/ld-address.c: Pass locale category ID as new second
5131 parameter to write_locale_data.
5132 * locale/programs/ld-collate.c: Likewise.
5133 * locale/programs/ld-ctype.c: Likewise.
5134 * locale/programs/ld-identification.c: Likewise.
5135 * locale/programs/ld-measurement.c: Likewise.
5136 * locale/programs/ld-messages.c: Likewise.
5137 * locale/programs/ld-monetary.c: Likewise.
5138 * locale/programs/ld-name.c: Likewise.
5139 * locale/programs/ld-numeric.c: Likewise.
5140 * locale/programs/ld-paper.c: Likewise.
5141 * locale/programs/ld-telephone.c: Likewise.
5142 * locale/programs/ld-time.c: Likewise.
5144 * locale/simple-hash.c: Move compute_hashval function from here...
5145 * locale/hashval.h: ...to here. New file.
5146 * locale/simple-hash.h: Add prototype for compute_hashval.
5148 * include/libintl.h: Minor cleanups.
5150 2002-04-16 Ulrich Drepper <drepper@redhat.com>
5152 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
5154 2002-04-15 Ulrich Drepper <drepper@redhat.com>
5156 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
5158 2002-04-14 Bruno Haible <bruno@clisp.org>
5160 * locale/programs/charmap.c (charmap_read): Don't access result if
5163 2002-02-17 Andreas Schwab <schwab@suse.de>
5165 * elf/reldep7.c: New file.
5166 * elf/reldep7mod1.c: New file.
5167 * elf/reldep7mod2.c: New file.
5168 * elf/Makefile: Add rules to build and run reldep7.
5170 2002-04-14 Jakub Jelinek <jakub@redhat.com>
5172 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
5173 the end of the function. Pass original flags to recursive call if
5174 add_dependency failed.
5175 (_dl_lookup_versioned_symbol): Likewise.
5177 2002-04-13 Jakub Jelinek <jakub@redhat.com>
5179 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
5180 early, but check whether it overflowed afterwards.
5181 * time/tst-mktime.c (main): Add new tests.
5183 2002-04-14 Ulrich Drepper <drepper@redhat.com>
5185 * debug/xtrace.sh: Fix program name in help message.
5186 Patch by Roger Luethi <rl@hellgate.ch>.
5188 * include/sys/stat.h: Add prototypes for __lxstat_internal and
5189 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
5191 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
5192 * sysdeps/mach/hurd/lxstat.c: Likewise.
5193 * sysdeps/unix/common/lxstat.c: Likewise.
5194 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
5195 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
5196 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5197 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
5198 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
5199 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
5200 * sysdeps/mach/hurd/lxstat64.c: Likewise.
5201 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
5202 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5204 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
5205 prototypes. Add __mbrlen and __mbrtowc macros.
5206 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
5207 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
5209 * include/unistd.h: Add prototype for __write_internal and add
5210 __libc_write macro is SHARED.
5211 * sysdeps/generic/write.c: Use INTDEF for __write.
5212 * sysdeps/mach/hurd/write.c: Likewise.
5213 * sysdeps/unix/sysv/aix/write.c: Likewise.
5214 * sysdeps/unix/syscalls.list: Add __libc_write alias.
5216 * assert/assert.c: Replace STR_N_SIZE with something usable in
5218 * assert/assert-perr.c: Likewise.
5220 * include/sys/socket.h: Declare __libc_sa_len_internal and define
5221 SA_LEN macro to use it if not NOT_IN_libc.
5222 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
5224 * include/fcntl.h: Declare __open_internal and define __open and
5225 __libc_open macros if not NOT_IN_libc.
5226 * sysdeps/generic/open.c: Use INTDEF for __open.
5227 * sysdeps/mach/hurd/open.c: Likewise.
5228 * sysdeps/unix/sysv/aix/open.c: Likewise.
5229 * sysdeps/unix/syscalls.list: Add __open_internal alias.
5231 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
5234 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
5235 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
5236 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
5237 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
5239 * include/wctype.h: Declare __iswalpha_l_internal,
5240 __iswdigit_l_internal, __iswspace_l_internal,
5241 __iswxdigit_l_internal, and __iswctype_internal. Define
5242 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
5243 __iswxdigit_l macros if not NOT_IN_libc.
5244 * wctype/iswctype.c: Use INTDEF for __iswctype.
5245 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
5247 * include/math.h: Declare __isinf_internal, __isinfl_internal,
5248 __isnan_internal, and __isnanl_internal.
5249 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
5250 __isnan, and __isnanl.
5251 * stdio-common/printf_size.c: Likewise.
5252 * sysdeps/generic/printf_fphex.c: Likewise.
5253 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
5254 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
5255 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
5256 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
5257 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
5258 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5259 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
5260 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
5261 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
5262 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
5263 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
5264 * sysdeps/m68k/s_isinfl.c: Likewise.
5265 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
5266 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
5268 * include/sys/time.h: Declare __gettimeofday_internal and define
5269 __gettimeofday macro if not NOT_IN_libc.
5270 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
5271 * sysdeps/mach/gettimeofday.c: Likewise.
5272 * sysdeps/posix/gettimeofday.c: Likewise.
5273 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
5274 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
5275 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
5276 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
5278 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
5279 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
5280 Remove __lstat and __fstat inline functions.
5281 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
5282 * sysdeps/mach/hurd/fxstat.c: Likewise.
5283 * sysdeps/unix/fxstat.c: Likewise.
5284 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
5285 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
5286 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5287 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
5288 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
5289 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
5290 * sysdeps/mach/hurd/fxstat64.c: Likewise.
5291 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
5292 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
5294 * include/unistd.h: Declare __getpid_internal and define
5295 __getpid macro if not NOT_IN_libc.
5296 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
5297 * sysdeps/generic/getpid.c: Likewise.
5298 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
5299 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
5301 * include/unistd.h: Declare __getpgid_internal and define
5302 __getpgid macro if not NOT_IN_libc.
5303 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
5304 * sysdeps/mach/hurd/getpgid.c: Likewise.
5305 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
5306 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
5307 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
5308 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
5310 * include/unistd.h: Declare __getpagesize_internal and define
5311 __getpagesize macro if not NOT_IN_libc.
5312 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
5314 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
5315 * sysdeps/mach/getpagesize.c: Likewise.
5316 * sysdeps/posix/getpagesize.c: Likewise.
5317 * sysdeps/unix/getpagesize.c: Likewise.
5318 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
5319 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
5320 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
5321 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
5323 2002-04-13 Andreas Jaeger <aj@suse.de>
5325 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
5326 as clobber to reduce register pressure.
5327 (__strpbrk_cg): Likewise.
5328 (__mempcpy_by4): Likewise.
5329 (__strstr_cg): Likewise.
5330 Add prototype for __memrchr.
5332 2002-04-13 Andreas Schwab <schwab@suse.de>
5334 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
5335 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5336 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5338 2002-04-13 Ulrich Drepper <drepper@redhat.com>
5340 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
5341 check whether the caller prefers getting the most recent version of
5342 a symbol of the earliest version.
5343 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
5344 _dl_do_lookup to also take the new parameter and pass it on.
5345 Change 'explicit' parameter of _dl_lookup_symbol and
5346 _dl_lookup_versioned_symbol to flags. Adjust tests.
5347 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
5348 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
5349 _dl_lookup_versioned_symbol.
5350 * elf/dl-reloc.c: Likewise.
5351 * elf/dl-runtime.c: Likewise.
5352 * elf/dl-sym.c: Likewise.
5353 * sysdeps/mips/dl-machine.h: Likewise.
5355 2002-04-11 Jakub Jelinek <jakub@redhat.com>
5357 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
5359 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
5361 2002-04-10 Andreas Jaeger <aj@suse.de>
5363 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
5365 * include/argz.h: Remove extra char from last patch.
5367 2002-04-09 Ulrich Drepper <drepper@redhat.com>
5369 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
5370 * sysdeps/unix/sysv/aix/chown.c: Likewise.
5371 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
5372 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
5373 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
5374 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
5376 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
5378 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
5379 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
5380 * intl/ngettext.c: Likewise.
5382 * include/sys/socket.h: Declare __connect_internal and define
5383 __connect macro if not NOT_IN_libc.
5384 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
5385 * sysdeps/unix/sysv/aix/connect.c: Likewise.
5386 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
5388 * include/unistd.h: Declare __close_internal and define __close macro
5390 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
5391 WJUMP3): Add extra parenthesis to avoid expanding element names with
5392 macors like __close.
5393 * sysdeps/unix/syscalls.list: Add __close_internal alias.
5395 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
5397 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
5398 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
5399 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
5401 * include/unistd.h: Declare __fork_internal and define __fork macro
5403 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
5404 * sysdeps/unix/sysv/aix/fork.c: Likewise.
5405 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
5407 * include/stdio_ext.h: Declare __fsetlocking_internal and define
5408 __fsetlocking macro to use it if not NOT_IN_libc.
5409 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
5411 * libio/__fbufsize.c: Correct copyright.
5412 * libio/__flbf.c: Likewise.
5413 * libio/__fpending.c: Likewise.
5414 * libio/__fpurge.c: Likewise.
5415 * libio/__freadable.c: Likewise.
5416 * libio/__freading.c: Likewise.
5417 * libio/__fsetlocking.c: Likewise.
5418 * libio/__fwritable.c: Likewise.
5419 * libio/__fwriting.c: Likewise.
5421 * include/stdio.h: Declare __asprintf_internal and define __asprintf
5422 macro to use it if not NOT_IN_libc.
5423 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
5425 * include/mntent.h: Declare __setmntent_internal,
5426 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
5427 __getmntent_r, and __endmntent macros to use these functions if not
5429 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
5432 * include/math.h: Declare __finite_internal, __finitef_internal, and
5433 __finitel_internal. Redefine isfinite macro if in libc or libm using
5435 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
5436 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
5437 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
5438 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
5439 * sysdeps/i386/fpu/s_finitef.S: Likewise.
5440 * sysdeps/i386/fpu/s_finitel.S: Likewise.
5441 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
5442 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
5443 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
5444 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
5446 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
5447 to use this function if not NOT_IN_libc.
5448 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
5449 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
5450 * sysdeps/mach/hurd/fcntl.c: Likewise.
5451 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
5452 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
5454 * include/argz.h: Declare __argz_count_internal and
5455 __argz_stringify_internal.
5456 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
5458 * string/argz-count.c: Use INTDEF for __argz_count.
5459 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
5461 * include/stdlib.h: Declare __cxa_atexit_internal and define
5462 __cxa_atexit macro if not NOT_IN_libc.
5463 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
5464 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
5466 * assert/assert.c: Use INTDEF for __assert_fail.
5467 * assert/__assert.c: Use INTUSE for call to __assert_fail.
5468 * include/assert.h: Declare __assert_fail_internal.
5470 * extra-lib.mk: Mark assignment to lib with override.
5472 2002-04-08 Ulrich Drepper <drepper@redhat.com>
5474 * Makerules: Use cppflags-iterator.mk to add defines for all test
5477 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
5479 * elf/elf.h: Define R_SH_TLS_xxx macros.
5480 * elf/rtld.c: Remove an extra parenthesis.
5481 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
5483 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
5484 * sysdeps/sh/dl-lookupcfg.h: New file.
5485 * sysdeps/sh/dl-tls.h: New file.
5486 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
5487 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
5488 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
5489 R_SH_TLS_TPOFF32 relocations.
5491 2002-04-08 Ulrich Drepper <drepper@redhat.com>
5493 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
5495 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
5496 * include/stdlib.h: Likewise.
5498 2002-04-08 Jakub Jelinek <jakub@redhat.com>
5500 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
5501 instead of _RTLD_LOCAL.
5502 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
5503 * include/unistd.h: Likewise.
5504 * sysdeps/generic/ldsodefs.h: Likewise.
5506 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
5507 if in libc or ld.so.
5509 2002-04-08 Andreas Jaeger <aj@suse.de>
5511 * elf/cache.c (print_entry): Support x86-64.
5513 2002-04-08 Ulrich Drepper <drepper@redhat.com>
5515 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
5516 with one accessing the locale data structures directly.
5517 * stdio-common/printf-prs.c: Include localeinfo.h for new
5518 MB_CUR_MAX definition.
5520 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
5521 is the name of the source file without extension.
5522 * Makefile (distribute): Add cppflags-iterator.mk.
5523 * cppflags-iterator.mk: New file.
5524 * extra-lib.mk: For the sources of the library run
5525 cppflags-iterator.mk.
5527 * include/libintl.h: Declare __dcgettext_internal and
5528 _libc_intl_domainname_internal. Define __dcgettext using these
5529 two symbols if used in libc itself.
5530 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
5531 _libc_intl_domainname_internal.
5532 * argp/argp-parse.c: Likewise.
5533 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
5534 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
5535 * intl/gettext.c: Likewise.
5536 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
5538 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
5540 * posix/regex_internal.c (gettext): Likewise.
5542 2002-04-08 Andreas Jaeger <aj@suse.de>
5544 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
5546 * sysdeps/x86_64/fpu/s_llrint.S: New.
5547 * sysdeps/x86_64/fpu/s_llrintf.S: New.
5548 * sysdeps/x86_64/fpu/s_llrintl.S: New.
5549 * sysdeps/x86_64/fpu/s_lrint.S: New.
5550 * sysdeps/x86_64/fpu/s_lrintf.S: New
5551 * sysdeps/x86_64/fpu/s_lrintl.S: New.
5553 2002-04-08 Roland McGrath <roland@frob.com>
5555 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
5556 widening __hurd_fail value.
5558 2002-04-07 Roland McGrath <roland@frob.com>
5560 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
5561 <mach/machine/alpha_instruction.h>.
5562 (_hurd_setup_sighandler): Take proper arguments for current decls.
5563 Update code to use _hurdsig_catch_fault.
5564 Use `callsys' instruction instead of `call_pal'.
5565 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
5567 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
5568 (ALIGN, at, AT, fp): New macros.
5570 2002-04-06 Roland McGrath <roland@frob.com>
5572 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
5574 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
5575 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
5577 * sysdeps/mach/hurd/bind.c: Use prototype definition.
5578 * sysdeps/mach/hurd/connect.c: Likewise.
5579 * sysdeps/mach/hurd/getsockopt.c: Likewise.
5580 * sysdeps/mach/hurd/setsockopt.c: Likewise.
5582 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
5585 * hurd/catch-exc.c: Use integer_t instead of int.
5586 * hurd/hurdfault.c: Likewise.
5588 * sysdeps/mach/hurd/alpha/exc2signal.c
5589 (_hurd_exception2signal): Rewritten.
5590 * sysdeps/mach/hurd/alpha/longjmp-ts.c
5591 (_hurd_longjmp_thread_state): Rewritten.
5593 2002-04-07 Ulrich Drepper <drepper@redhat.com>
5595 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
5596 DB_LOOKUP_FCT prototype.
5597 * nss/getXXent_r.c: Likewise.
5598 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
5599 * inet/getaliasname_r.c: Likewise.
5600 * inet/getnetbyad_r.c: Likewise.
5601 * inet/getnetbynm_r.c: Likewise.
5602 * inet/getnetent_r.c: Likewise.
5603 * inet/getproto_r.c: Likewise.
5604 * inet/getprtent_r.c: Likewise.
5605 * inet/getprtname_r.c: Likewise.
5606 * inet/getrpcbyname_r.c: Likewise.
5607 * inet/getrpcbynumber_r.c: Likewise.
5608 * inet/getrpcent_r.c: Likewise.
5609 * inet/getservent_r.c: Likewise.
5610 * inet/getsrvbynm_r.c: Likewise.
5611 * inet/getsrvbypt_r.c: Likewise.
5612 * shadow/getspent_r.c: Likewise.
5613 * shadow/getspnam_r.c: Likewise.
5615 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
5617 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
5618 Use i686-friendly PIC code.
5619 * sysdeps/i386/elf/setjmp.S: Likewise.
5621 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
5623 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
5625 * elf/Versions: Remove it here.
5627 2002-04-06 Ulrich Drepper <drepper@redhat.com>
5629 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
5630 direction. Reported by H . J . Lu <hjl@lucon.org>.
5632 2002-04-05 Ulrich Drepper <drepper@redhat.com>
5634 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
5635 test just before the test runs.
5636 * intl/tst-translit.sh: Likewise.
5637 * intl/tst-codeset.sh: Likewise.
5639 * timezone/zic.c: Update from tzcode2002c.
5640 * timezone/asia: Update from tzdata2002c.
5641 * timezone/backward: Likewise.
5642 * timezone/europe: Likewise.
5643 * timezone/northamerica: Likewise.
5644 * timezone/northamerica: Likewise.
5645 * timezone/northamerica: Likewise.
5646 * timezone/southamerica: Likewise.
5647 * timezone/zone.tab: Likewise.
5649 2002-03-23 Jakub Jelinek <jakub@redhat.com>
5651 * sysdeps/generic/brk.c (__curbrk): Declare.
5652 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
5653 * sysdeps/generic/dl-sbrk.c: Likewise.
5654 * sysdeps/unix/arm/dl-brk.S: New file.
5655 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
5656 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
5657 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
5658 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
5659 * sysdeps/unix/i386/dl-brk.S: New file.
5660 * sysdeps/unix/mips/dl-brk.S: New file.
5661 * sysdeps/unix/sparc/dl-brk.S: New file.
5662 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
5663 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
5664 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
5665 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
5667 2002-04-03 Andreas Schwab <schwab@suse.de>
5669 * Makefile (headers): Add gnu/lib-names.h here instead of
5671 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
5673 (install-headers): Add dependency on install-headers-nosubdir.
5674 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
5675 instead of install-others.
5676 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
5679 2002-04-05 Ulrich Drepper <drepper@redhat.com>
5681 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
5682 Reported by Sam Roberts <sroberts@uniserve.com>.
5684 2002-04-03 Jakub Jelinek <jakub@redhat.com>
5686 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
5687 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
5688 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
5689 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
5691 2002-04-03 David Mosberger <davidm@hpl.hp.com>
5693 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
5694 (RTLD_START): Ditto.
5695 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
5696 dependency violation.
5698 2002-04-05 Jakub Jelinek <jakub@redhat.com>
5700 * time/mktime.c (__mktime_internal): Move check for year < 70 below
5701 all variable declarations.
5703 2002-04-04 Andreas Schwab <schwab@suse.de>
5705 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
5707 2002-04-04 Andreas Jaeger <aj@suse.de>
5709 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
5710 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
5712 * sysdeps/x86_64/fpu/s_fabs.c: New file.
5713 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
5714 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
5716 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
5718 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
5720 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
5721 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
5723 * configure.in: Handle all mips entries the same.
5725 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
5726 * sysdeps/mips/mips3/*: Likewise.
5727 * sysdeps/mips/p40/bits/endian.h: Likewise.
5729 2002-04-04 Ulrich Drepper <drepper@redhat.com>
5731 * misc/dirname.c (dirname): Ignore trailing slashes at end of
5732 non-null result [PR libc/2600].
5734 * misc/tst-dirname.c: Add more tests.
5736 2002-04-03 Ulrich Drepper <drepper@redhat.com>
5738 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
5739 define a code_set_name provide one based on the filename.
5741 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
5743 2001-12-28 Andreas Jaeger <aj@suse.de>
5745 * time/mktime.c (__mktime_internal): Check for year < 70
5748 2002-04-03 Andreas Jaeger <aj@suse.de>
5750 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
5752 Reported by Andi Kleen <ak@suse.de>.
5754 2002-04-03 Ulrich Drepper <drepper@redhat.com>
5756 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
5757 * sysdeps/generic/w_lgammaf.c: Likewise.
5758 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
5760 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
5761 Adjust for new output format of the backtrace functions.
5763 * misc/syslog.c (vsyslog): Only use cleanup handler if
5764 _LIBC_REENTRANT is defined [PR libc/2924].
5766 * libio/Makefile (tests): Add bug-ungetwc2.
5767 * libio/bug-ungetwc2.c: New file.
5769 * manual/install.texi: Typographical and grammatical cleanup.
5770 Patch by Dennis Grace <dgrace@us.ibm.com>.
5772 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
5773 parameter if mtflag. Patch by <jeongyun@innovay.com>.
5775 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
5776 always "&". Adjust callers.
5777 Add "_" prefix to several generated definitions.
5778 Patch by paul@serice.net [PR libc/3158].
5780 2002-04-02 Ulrich Drepper <drepper@redhat.com>
5782 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
5783 size of _dl_arm_cap_flags.
5784 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
5786 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
5789 2002-03-22 H.J. Lu <hjl@gnu.org>
5791 * scripts/firstversions.awk: Check the first version.
5793 2002-04-02 Ulrich Drepper <drepper@redhat.com>
5795 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
5796 dependencies must be stable to work correctly.
5797 Reported by martin.lubich@datacon.at.
5799 * libio/bug-ungetwc1.c: New file.
5800 * libio/Makefile (tests): Add bug-ungetwc1.
5802 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
5803 if stream was last used for writing.
5805 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
5806 number [PR libc/3111].
5808 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
5810 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
5812 2002-04-02 Jakub Jelinek <jakub@redhat.com>
5814 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
5815 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
5816 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
5817 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
5818 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
5820 2002-03-30 Jakub Jelinek <jakub@redhat.com>
5822 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
5825 2002-03-29 Jakub Jelinek <jakub@redhat.com>
5827 * sysdeps/i386/fpu/s_fabs.S: New file.
5828 * sysdeps/i386/fpu/s_fabsf.S: New file.
5829 * sysdeps/i386/fpu/s_fabsl.S: New file.
5830 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
5831 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
5832 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
5834 2002-04-02 Ulrich Drepper <drepper@redhat.com>
5836 * rt/tst-shm.c (do_test): Add one more test for size of shared
5839 2002-03-29 Wolfram Gloger <wg@malloc.de>
5841 * malloc/malloc.c: Add short description and prototypes for
5842 malloc_get_state, malloc_set_state and posix_memalign, for
5843 consistency and to avoid warnings with -Wstrict-prototypes.
5844 Reported by Andreas Jaeger <aj@suse.de>.
5846 2002-04-02 Ulrich Drepper <drepper@redhat.com>
5848 * po/gl.po: Update from translation team.
5850 2002-03-31 Roland McGrath <roland@frob.com>
5852 * hurd/hurdselect.c (_hurd_select): Fix
5853 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
5854 Use a union rather than casts to compare mach_msg_type_t as int.
5856 2002-03-25 Roland McGrath <roland@frob.com>
5858 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
5859 check off the end of NAME when it's shorter than 2 chars.
5860 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
5862 2002-03-17 Roland McGrath <roland@frob.com>
5864 * sysdeps/mach/hurd/i386/sys/io.h: New file.
5865 * sysdeps/mach/hurd/i386/ioperm.c: New file.
5866 * sysdeps/mach/hurd/i386/Dist: Add them.
5867 * sysdeps/mach/hurd/i386/Versions
5868 (libc: GLIBC_2.2.6): New set, add ioperm.
5869 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
5870 (mach_interface_list): Check for mach_i386.defs.
5871 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
5872 * sysdeps/mach/configure: Regenerated.
5874 2002-03-22 Ulrich Drepper <drepper@redhat.com>
5876 * po/fr.po: Update from translation team.
5878 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
5880 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
5881 getpriority from syscalls list.
5883 2002-03-28 Andreas Jaeger <aj@suse.de>
5885 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
5886 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
5887 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
5888 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
5890 2002-03-27 Andreas Jaeger <aj@suse.de>
5892 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5893 sigcontext): Follow further kernel change.
5895 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
5898 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
5899 Change for struct sigcontext change.
5901 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
5902 Follow changes in struct sigcontext.
5904 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
5905 sysycall, use wrapper instead.
5907 2002-03-26 Andreas Jaeger <aj@suse.de>
5909 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
5910 read and write accesses as detailed as possible.
5911 (__memcpy_by2): Likewise.
5912 (__memcpy_g): Likewise.
5913 (memmove): Likewise.
5915 (__memset_ccn_by4): Likewise.
5916 (__memset_ccn_by2): Likewise.
5917 (__memset_gcn_by4): Likewise.
5918 (__memset_gcn_by2): Likewise.
5920 (__memrchr): Likewise.
5921 (rawmemchr): Likewise.
5922 (__strlen_g): Likewise.
5923 (__strcpy_g): Likewise.
5924 (__mempcpy_by4): Likewise.
5925 (__mempcpy_by2): Likewise.
5926 (__mempcpy_byn): Likewise.
5927 (__stpcpy_g): Likewise.
5928 (__strncpy_by4): Likewise.
5929 (__strncpy_by2): Likewise.
5930 (__strncpy_byn): Likewise.
5931 (__strncpy_gg): Likewise.
5932 (__strcat_c): Likewise.
5933 (__strcat_g): Likewise.
5934 (__strncat_g): Likewise.
5935 (__strcmp_gg): Likewise.
5936 (__strncmp_g): Likewise.
5937 (__strchr_c): Likewise.
5938 (__strchr_g): Likewise.
5939 (__strchrnul_c): Likewise.
5940 (__strchrnul_g): Likewise.
5941 (__strrchr_c): Likewise.
5942 (__strrchr_g): Likewise.
5943 (__strrchr_c): Likewise.
5944 (__strrchr_g): Likewise.
5945 (__strcspn_c1): Likewise.
5946 (__strcspn_cg): Likewise.
5947 (__strcspn_g): Likewise.
5948 (__strcspn_g): Likewise.
5949 (__strspn_c1): Likewise.
5950 (__strspn_cg): Likewise.
5951 (__strspn_g): Likewise.
5952 (__strspn_g): Likewise.
5953 (__strpbrk_cg): Likewise.
5954 (__strpbrk_g): Likewise.
5955 (__strstr_cg): Likewise.
5956 (__strstr_g): Likewise.
5958 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
5959 Michal Ludvig <mludvig@suse.cz>.
5961 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
5962 compatibilty, adjust for kernel changes.
5964 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5965 sigcontext): Adjust for kernel changes.
5967 2002-03-25 Andreas Jaeger <aj@suse.de>
5969 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
5971 Reported by Artur Zaprzala <zybi@talex.com.pl>.
5973 2002-03-24 Andreas Jaeger <aj@suse.de>
5975 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
5977 * stdio-common/tst-fdopen.c (main): Remove unused variable.
5979 * iconv/tst-iconv3.c (main): Use correct printf strings.
5981 2002-03-18 Roland McGrath <roland@frob.com>
5983 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
5984 (CMGROUP_MAX): New macro.
5986 2002-03-23 Roland McGrath <roland@frob.com>
5988 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
5989 * sysdeps/posix/shm_unlink.c: Likewise.
5991 2002-03-22 Roland McGrath <roland@frob.com>
5993 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
5994 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
5995 under --enable-libio.
5996 * sysdeps/mach/hurd/configure: Regenerated.
5998 2002-03-23 Roland McGrath <roland@frob.com>
6000 * sysdeps/mach/hurd/i386/Makefile
6001 (sysdep_routines, shared-only-routines): Don't add framestate,
6002 reverting 2001-10-02 change.
6003 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
6004 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
6005 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
6006 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
6007 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
6008 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
6009 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
6010 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
6011 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
6012 Do it here instead, only if [$(unwind-find-fde) = yes].
6014 2002-03-23 Andreas Jaeger <aj@suse.de>
6016 * signal/signal.h: Fix typo. Patch by Steve Kemp
6017 <skx@tardis.ed.ac.uk>.
6019 2002-03-22 Andreas Jaeger <aj@suse.de>
6021 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
6024 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
6025 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
6026 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
6027 user_fpregs_struct): Rename fwd.
6029 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
6030 Follow sigcontext changes.
6032 2002-03-22 Andreas Jaeger <aj@suse.de>
6034 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
6035 changes for NaNs on MIPS.
6036 Patch by Hartvig Ekner <hartvige@mips.com>.
6038 2002-03-21 Ulrich Drepper <drepper@redhat.com>
6040 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
6041 Use realloc if too large.
6042 (addgrbyid): Likewise.
6043 * nscd/hstcache.c (addhstbyname): Likewise.
6044 (addhstbyaddr): Likewise.
6045 (addhstbynamev6): Likewise.
6046 (addhstbyaddrv6): Likewise.
6047 * nscd/pwdcache.c (addpwbyname): Likewise.
6048 (addpwbyuid): Likewise.
6050 2002-03-21 Andreas Jaeger <aj@suse.de>
6052 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
6053 _fpstate): Add separate struct for x86-64.
6055 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
6056 user_fpregs_struct): Change member names to follow kernel.
6058 2002-03-20 Ulrich Drepper <drepper@redhat.com>
6060 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
6061 Correctly close the UDP connection right away [PR libc/3120].
6063 2002-03-20 Andreas Jaeger <aj@suse.de>
6065 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
6066 user_fpregs_struct): Fix for changed kernel struct.
6067 (struct user_regs_struct): Likewise.
6068 (struct user): Likewise.
6069 Add 32-bit x86 compatibility.
6071 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
6073 2002-03-19 Andreas Jaeger <aj@suse.de>
6075 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
6077 2002-03-18 Andreas Jaeger <aj@suse.de>
6079 * iconvdata/Makefile: Only run tests when shared libs are
6082 2002-03-17 Andreas Jaeger <aj@suse.de>
6084 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
6086 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
6088 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
6091 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
6093 Patch by Hartvig Ekner <hartvige@mips.com>.
6095 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
6096 * sysdeps/generic/unwind-pe.h: Likewise.
6098 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
6101 * libio/stdio.c (AL2): Define variant when visibility attribute is
6104 * include/libc-symbols.h (_INTVARDEF): Define variant when
6105 visibility attribute is not supported.
6107 2002-03-16 Ulrich Drepper <drepper@redhat.com>
6109 * po/fr.po: Update from translation team.
6111 2002-02-25 Bruno Haible <bruno@clisp.org>
6113 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
6115 2002-03-15 Ulrich Drepper <drepper@redhat.com>
6117 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
6118 buffers if _IO_file_attach failed.
6120 * libio/fileops.c (_IO_file_open): Close file descriptor if
6121 _IO_SEEKOFF call failed.
6123 2002-03-15 H.J. Lu <hjl@gnu.org>
6124 Ulrich Drepper <drepper@redhat.com>
6126 * configure.in: Check for availability of
6127 init_array/fini_array/preinit_array handling in binutils.
6128 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
6129 * config.make.in (have-initfini-array): New variable.
6131 2002-03-15 Ulrich Drepper <drepper@redhat.com>
6133 * stdio-common/tst-printf.c (main): Comment out one test which
6134 checked the compiler's ability to fold floating-point constants
6135 but not really printf.
6136 (rfg3): Make s const.
6137 * stdio-common/tst-printf.sh: Adjust for removed test.
6139 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
6140 internal function. Adjust for internal_function calling convention.
6141 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
6142 as internal_function.
6144 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
6147 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
6148 declaration and definition.
6149 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
6151 * nss/getXXent_r.c: Likewise.
6152 * nss/nsswitch.h (db_lookup_function): Add internal_function to
6155 * include/time.h: Declare __localtime_r as hidden.
6157 * include/aliases.h: Declare __getaliasent_r as hidden.
6158 * include/grp.h: Declare __getgrent_r as hidden.
6159 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
6160 __getservent_r, and __getprotoent_r as hidden.
6161 * include/pwd.h: Declare __getpwent_r as hidden.
6162 * include/shadow.h: Declare __getspent_r as hidden.
6163 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
6165 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
6166 and __gconv_transliterate as hidden.
6167 Add internal_function to __gconv_get_path declaration.
6168 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
6169 definition. Add attribute_hidden to __gconv_read_conf definition.
6171 2002-03-14 Ulrich Drepper <drepper@redhat.com>
6173 * elf/rtld.c: Declare _environ as hidden.
6174 * sysdeps/generic/dl-environ.c: Likewise.
6175 * sysdeps/generic/dl-sysdep.c: Likewise.
6177 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
6178 _dl_mcount_internal as hidden.
6180 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
6181 * sysdeps/generic/dl-brk.c: New file.
6182 * sysdeps/generic/dl-sbrk.c: New file.
6183 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
6184 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
6186 * elf/dl-minimal.c (malloc): Declare _end as hidden.
6187 (__errno_location): New function. Declare errno as hidden.
6188 * elf/rtld.c (_dl_argc): Define as hidden.
6189 (_dl_skip_args): Define as hidden.
6190 (_begin, _end): Declare as hidden.
6191 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
6192 * sysdeps/generic/entry.h (_start): Declare as hidden.
6193 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
6194 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
6195 _dl_runtime_resolve and _dl_runtime_profile as hidden.
6196 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
6198 2002-03-14 Roland McGrath <roland@frob.com>
6200 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
6202 * Makeconfig (%.v.i, %.v): New implicit rules.
6203 (preprocess-versions): Variable removed.
6204 ($(common-objpfx)shlib-versions.v.i): New target giving just the
6205 shlib-versions input files as dependencies.
6206 ($(common-objpfx)soversions.i): Depend on that instead of the input
6207 files. Use it as input instead of using a pipeline.
6208 (postclean-generated): Append soversions.i, shlib-versions.v, and
6209 shlib-versions.v.i here.
6210 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
6211 the Versions.def input files as dependencies.
6212 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
6213 ($(common-objpfx)Versions.all): Depend on that instead of the input
6214 files. Use it as input instead of using a pipeline.
6215 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
6216 (postclean-generated): Append those .v and .v.i files here.
6218 2002-03-14 Jakub Jelinek <jakub@redhat.com>
6220 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
6221 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
6224 2002-03-14 Jakub Jelinek <jakub@redhat.com>
6226 * sysdeps/generic/mp_clz_tab.c: New file.
6227 * sysdeps/i386/mp_clz_tab.c: New file.
6228 * sysdeps/hppa/mp_clz_tab.c: New file.
6229 * sysdeps/powerpc/mp_clz_tab.c: New file.
6230 * stdlib/Makefile (aux): Revert last patch.
6231 * math/Makefile (gmp-objs): Likewise.
6233 2002-03-13 Paul Eggert <eggert@twinsun.com>
6235 * time/strftime.c: Comment fixes for references to obsolescent
6236 standards, In most cases the simplest fix is to remove the
6237 confusing comments. Cross-referencing all the standards properly
6238 is a bit of a pain, and it should be enough to put that info in
6239 the documentation as I did in my recent time.texi patch.
6241 2002-03-13 Paul Eggert <eggert@twinsun.com>
6243 * manual/time.texi (Formatting Calendar Time):
6244 ISO C99 also specifies the E and O modifiers.
6245 %P is a GNU extension, and is not in ISO C99.
6246 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
6247 %T is also in ISO C99.
6248 The RFC 822 example is not valid in arbitrary locales.
6249 Reword the POSIX.2 wording slightly, to make it a bit clearer
6250 that POSIX.2 formats are also supported by later POSIX versions.
6251 If a format was introduced in ISO C99 it is also required by
6254 2002-03-13 Ulrich Drepper <drepper@redhat.com>
6256 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
6257 _sys_nerr_internal with INTVARDEF2.
6258 * include/libc-symbols.h (INTVARDEF2): New macro.
6259 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
6260 (_sys_nerr_internal): Library.
6262 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
6263 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
6265 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
6267 2002-03-13 Wolfram Gloger <wg@malloc.de>
6269 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
6271 2002-03-02 Andreas Schwab <schwab@suse.de>
6273 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
6274 'h' flag and positional arg.
6275 * stdio-common/tst-printf.c (rfg3): New function to test
6276 positional arguments.
6277 (main): Fix some warnings.
6279 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6281 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
6282 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
6284 2002-03-13 Ulrich Drepper <drepper@redhat.com>
6286 * grp/initgroups.c (__nss_group_data): Declare as hidden.
6288 * include/locale.h (_nl_C_locobj): Declare as hidden.
6290 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
6291 * time/strptime.c (_nl_C_LC_TIME): Likewise.
6293 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
6295 * include/sys/gmon.h: Declare _gmonparam as hidden.
6297 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
6298 (__ctype32_wctrans): Likewise.
6299 (__ctype32_width): Likewise.
6301 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
6304 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
6306 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
6307 hidden. Change all users of these variables.
6309 * posix/regex_internal.h (__re_error_msgid): Renamed from
6310 re_error_msgid. Declare as hidden.
6311 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
6314 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
6315 (__printf_function_table): Likewise.
6316 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
6318 (__printf_function_table): Likewise.
6320 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
6321 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
6323 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
6324 * nss/nsswitch.c: Declare _nss_*_database as hidden.
6326 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
6327 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
6329 2002-03-12 Ulrich Drepper <drepper@redhat.com>
6331 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
6332 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
6333 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
6334 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
6335 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
6336 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
6337 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
6338 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
6339 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
6340 _nl_C_LC_CTYPE_width: Declare as hidden.
6341 * include/locale.h: Declare _nl_locale_file_list.
6342 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
6343 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
6344 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
6345 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
6346 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
6347 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
6348 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
6349 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
6350 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
6351 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
6352 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
6353 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
6354 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
6355 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
6356 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
6357 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
6358 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
6359 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
6360 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
6361 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
6362 _nl_C_LC_CTYPE_width, and as hidden.
6363 * locale/findlocale.c: Declare _nl_C as hidden.
6364 * locale/newlocale.c: Likewise.
6365 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
6366 _nl_locale_file_list.
6367 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
6368 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
6369 Define _nl_C_locobj as hidden.
6371 * malloc/mtrace.c (_mtrace_file): Define as hidden.
6372 (_mtrace_line): Likewise.
6374 * include/time.h: Declare __mon_yday as hidden.
6375 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
6377 * libio/libioP.h: Declare __libio_codecvt as hidden.
6378 * libio/fileops.c: Declare __libio_translit as hidden.
6379 * libio/iofwide.c: Define __libio_translit as hidden.
6381 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
6382 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
6383 * login/getutline_r.c: Likewise.
6384 * login/utmpname.c: Likewise.
6386 * login/utmp-private.h: Declare __libc_utmp_file_functions,
6387 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
6388 __libc_utmp_file_name as hidden.
6390 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
6391 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
6392 * locale/freelocale.c: Likewise.
6393 * locale/lc-time.c: Likewise.
6395 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
6396 (__libc_ptyname2): Likewise.
6397 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
6399 (__libc_ptyname2): Likewise.
6401 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
6402 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
6403 * sysdeps/generic/init-first.c: Likewise.
6404 * sysdeps/i386/init-first.c: Likewise.
6405 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
6406 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6407 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6408 * sysdeps/sh/init-first.c: Likewise.
6409 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
6410 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
6412 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
6413 (_itowa_upper_digits): Likewise.
6415 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
6416 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
6419 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
6420 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
6421 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
6422 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
6424 * gmon/gmon.c (__bb_head): Define as hidden.
6425 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
6427 * argp/argp-parse.c (_argp_hang): Define as static.
6429 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
6430 handling in latest compilers.
6432 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
6434 * libio/fileops.c (_IO_file_jumps): Likewise.
6435 * libio/stdfiles.c (_IO_list_all): Likewise.
6436 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
6438 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
6440 * include/malloc.h: Add __libc_malloc_initialized declaration
6441 here. Mark variable hidden.
6442 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
6444 * elf/dl-open.c (__libc_argc): Declare as hidden.
6445 (__libc_argv): Likewise.
6446 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
6447 (__libc_argv): Likewise.
6448 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
6449 __libc_argv as hidden.
6450 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6451 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6452 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
6453 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
6455 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
6456 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
6457 * stdlib/erand48.c: Likewise.
6458 * stdlib/jrand48.c: Likewise.
6459 * stdlib/lcong48.c: Likewise.
6460 * stdlib/lrand48.c: Likewise.
6461 * stdlib/mrand48.c: Likewise.
6462 * stdlib/nrand48.c: Likewise.
6463 * stdlib/seed48.c: Likewise.
6464 * stdlib/srand48.c: Likewise.
6466 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
6467 (_itoa_lower_digits_internal): New declaration.
6468 (_itoa_upper_digits_internal): New declaration.
6469 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
6470 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
6471 (_itoa_upper_digits_internal): New declaration.
6472 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
6474 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
6475 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
6477 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
6478 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
6480 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
6481 (_itowa_lower_digits): Likewise.
6482 (_itowa_upper_digits): Likewise.
6483 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
6484 (_itowa_upper_digits): Likewise.
6486 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
6487 not already defined.
6488 (GERMANIC_PLURAL): Declare as hidden.
6490 * posix/getopt.c (__getopt_initialized): Declare as hidden.
6491 (attribute_hidden): Define as empty macro if not already defined.
6493 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
6494 (__gconv_max_path_elem_len): Likewise.
6495 (__gconv_path_envvar): Likewise.
6497 * math/Makefile (gmp-objs): Remove mp_clz_tab.
6498 * stdlib/Makefile (aux): Remove mp_clz_tab.
6499 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
6501 * stdlib/exit.h (__exit_funcs): Declare as hidden.
6503 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
6505 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
6506 _nl_category_names, _nl_category_name_sizes, _nl_current,
6507 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
6509 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
6510 (_nl_current_default_domain): Likewise
6511 (_nl_state_lock): Likewise.
6512 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
6513 (_nl_current_default_domain): Likewise
6514 (_nl_state_lock): Likewise.
6515 * intl/bindtextdom.c (_nl_state_lock): Likewise.
6517 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
6518 (_fpioconst_pow10): Likewise.
6520 * include/time.h (_tmbuf): Add attribute_hidden.
6522 * time/tzset.c (tzstring_list): Define as static.
6524 * include/time.h: Add attribute_hidden to __tzname_cur_max and
6525 __use_tzfile declaration.
6527 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
6528 and __wcsmbs_last_locale declaration.
6530 2002-02-25 Paul Eggert <eggert@twinsun.com>
6532 * timezone/Makefile (tzbases): Move systemv from here...
6533 (tzlinks): to here, since the entries in systemv were all changed
6534 from Zone to Link lines in tz-2001a. Bug reported (and patch
6535 tested) by Peter Breitenlohner.
6537 2002-03-07 Jakub Jelinek <jakub@redhat.com>
6539 * time/tst-posixtz.c (tests): Add new tests.
6540 (main): Test whether tzset() sets daylight properly.
6542 2002-03-06 Jakub Jelinek <jakub@redhat.com>
6544 * time/tzset.c (tz_compute): Move __daylight, __tzname and
6545 __tzname_cur_max setting...
6546 (tzset_internal): ...here.
6548 2002-03-06 Jakub Jelinek <jakub@redhat.com>
6550 * time/tzset.c (compute_change): Don't return any value.
6551 (tz_compute): Likewise. Don't handle southern hemisphere here.
6552 (__tz_convert): But here.
6554 2002-03-11 Ulrich Drepper <drepper@redhat.com>
6556 * manual/examples/mkfsock.c: Include <string.h> as well.
6557 Patch by Alain De Carolis <alaind@wseurope.com>.
6559 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
6561 * posix/regexec.c (re_match): Fix incorrect register sizes.
6562 (re_search): Likewise.
6564 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
6566 * posix/regcomp.c (regfree): Remove a disused condition.
6567 * posix/regex_internal.c (re_acquire_state): Likewise.
6568 (re_acquire_state_context): Likewise.
6569 (register_state): Remove a redundant malloc invocation.
6570 * posix/regex_internal.h: (re_state_table_entry): Simplify
6573 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
6575 * posix/regcomp.c (regcomp): Add __builtin_expect to error
6576 handling conditions.
6577 (regerror): Likewise.
6578 (regfree): Likewise.
6579 (re_compile_internal): Likewise.
6580 (init_dfa): Likewise.
6581 (init_word_char): Likewise.
6582 (create_initial_state): Likewise.
6583 (analyze): Likewise.
6584 (analyze_tree): Likewise.
6585 (duplicate_node): Likewise.
6586 (calc_eclosure): Likewise.
6587 (calc_eclosure_iter): Likewise.
6589 (parse_reg_exp): Likewise.
6590 (parse_branch): Likewise.
6591 (parse_expression): Likewise.
6592 (parse_subexp): Likewise.
6593 (parse_dup_op): Likewise.
6594 (parse_bracket_exp): Likewise.
6595 (build_equiv_class): Likewise.
6596 (build_charclass): Likewise.
6597 (build_word_op): Likewise.
6598 (fetch_number): Likewise.
6599 (create_tree): Likewise.
6600 (duplicate_tree): Likewise.
6601 * posix/regex.c (BE): New macro.
6602 * posix/regexec.c (re_match): Add __builtin_expect to error
6603 handling conditions.
6604 (re_match_2): Likewise.
6605 (re_search): Likewise.
6606 (re_search_internal): Likewise.
6607 (check_matching): Likewise.
6608 (proceed_next_node): Likewise.
6609 (set_regs): Likewise.
6610 (sift_states_backward): Likewise.
6611 (add_epsilon_backreference): Likewise.
6612 (transit_state): Likewise.
6613 (transit_state_sb): Likewise.
6614 (transit_state_mb): Likewise.
6615 (transit_state_bkref): Likewise.
6616 (transit_state_bkref_loop): Likewise.
6617 (build_trtable): Likewise.
6618 (group_nodes_into_DFAstates): Likewise.
6619 (match_ctx_init): Likewise.
6620 (match_ctx_add_entry): Likewise.
6621 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
6622 to error handling conditions.
6623 (re_string_construct_toupper): Likewise.
6624 (build_wcs_buffer): Likewise.
6625 (build_wcs_upper_buffer): Likewise.
6626 (build_upper_buffer): Likewise.
6627 (re_string_translate_buffer): Likewise.
6628 (re_node_set_alloc): Likewise.
6629 (re_node_set_init_1): Likewise.
6630 (re_node_set_init_2): Likewise.
6631 (re_node_set_init_copy): Likewise.
6632 (re_node_set_intersect): Likewise.
6633 (re_node_set_init_union): Likewise.
6634 (re_node_set_merge): Likewise.
6635 (re_node_set_insert): Likewise.
6636 (re_dfa_add_node): Likewise.
6637 (re_acquire_state): Likewise.
6638 (re_acquire_state_context): Likewise.
6639 (create_new_state_common): Likewise.
6640 (register_state): Likewise.
6641 (create_ci_new_state): Likewise.
6642 (create_cd_new_state): Likewise.
6643 (re_string_context_at): Remove redundant condition.
6645 2002-01-16 Roger Sayle <roger@eyesopen.com>
6647 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
6649 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
6651 2002-03-11 Jakub Jelinek <jakub@redhat.com>
6653 * sysdeps/i386/elf/configure.in: Fix comment.
6655 * sysdeps/sparc/sparc64/configure.in: New.
6656 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
6657 if .dynamic comes before .got.
6658 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
6660 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
6661 HP_TIMING_ACCUM): Fix typos.
6663 2002-03-11 Ulrich Drepper <drepper@redhat.com>
6665 * string/strfry.c: Add some more randomness to the seed.
6666 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
6668 * po/es.po: Update from translation team.
6669 * po/fr.po: Likewise.
6671 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
6673 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
6674 when determining type of format.
6675 Patch by James Antill <james@anqd.org> [PR libc/2787].
6677 2002-03-04 Jakub Jelinek <jakub@redhat.com>
6679 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
6681 2002-03-11 Roland McGrath <roland@frob.com>
6683 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
6685 * Versions.def (libc): Add GLIBC_2.2.6.
6686 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
6687 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
6688 __errno_location instead of __hurd_errno_location, and don't inline it.
6689 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
6690 * hurd/errno.c: New file.
6691 * hurd/Makefile (routines): Add errno.
6693 2002-03-11 Ulrich Drepper <drepper@redhat.com>
6695 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
6696 ridiculously large widths and precisions [PR libc/3026].
6698 2002-03-11 Andreas Jaeger <aj@suse.de>
6700 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
6702 Patch by Susanne Oberhauser <froh@SuSE.de>.
6704 2002-03-11 Ulrich Drepper <drepper@redhat.com>
6706 * inet/rexec.c (ahostbuf): Define as static.
6708 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
6709 (__ctype32_wctrans): Likewise.
6710 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
6711 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
6712 (__ctype32_wctrans): Likewise.
6713 (__ctype32_width): Likewise.
6715 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
6716 They were never exported anyway.
6718 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
6719 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
6721 * include/sys/gmon.h: Declare _gmonparam.
6723 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
6724 symbols for getdents64. They were never exported.
6726 2002-03-09 Roland McGrath <roland@frob.com>
6728 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
6729 Reported by Jon Arney <jarney1@cox.net>.
6731 2002-02-23 Roland McGrath <roland@frob.com>
6733 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
6735 (__hurd_errno_location): Function removed.
6737 2002-03-06 Andreas Jaeger <aj@suse.de>
6739 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
6742 2002-03-04 Andreas Jaeger <aj@suse.de>
6744 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
6746 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
6749 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
6751 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
6753 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
6755 * sysdeps/x86_64/bits/setjmp.h: New.
6757 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
6759 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
6761 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
6763 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
6764 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
6766 2002-02-28 Bo Thorsen <bo@suse.de>
6768 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
6771 2002-03-03 Andreas Jaeger <aj@suse.de>
6773 * sysdeps/x86_64/bits/wordsize.h: New file.
6775 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
6776 * elf/tst-tlsmod1.c: Likewise.
6778 * posix/regcomp.c: Get regex.h from include dir for internal
6781 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
6782 to libc-internal.h and include it.
6783 * include/libc-internal.h: Add __init_misc.
6785 * misc/init-misc.c: Include libc-internal.h for prototypes.
6787 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
6789 * misc/error.c [_LIBC]: Include libioP.h for prototype of
6792 2002-03-03 Ulrich Drepper <drepper@redhat.com>
6794 * posix/regcomp.c: Compatibility changes to allow using the code
6797 2002-02-28 Hartvig Ekner <hartvige@mips.com>
6799 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
6802 2002-03-02 Ulrich Drepper <drepper@redhat.com>
6804 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
6805 of .str elements in the returned data structure.
6807 * elf/elf.h: Add Alpha TLS bits.
6809 2002-02-28 Jakub Jelinek <jakub@redhat.com>
6811 * sysdeps/unix/sysv/linux/nice.c: New file.
6813 2002-03-01 Ulrich Drepper <drepper@redhat.com>
6815 * elf/Makefile (dl-routines): Add dl-origin.
6816 (elide-routines.os): Add dl-origin.
6817 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
6818 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
6820 * include/libc-symbols.c: Define attribute_hidden depending on
6821 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
6823 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
6824 * elf/dl-load.c: Likewise.
6825 * elf/rtld.c: Likewise.
6826 * include/unistd.h: Declare __libc_enable_secure_internal.
6827 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
6828 Use INTUSE with __libc_enable_secure.
6829 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6831 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
6832 * elf/dl-error.c: Likewise,
6833 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
6835 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
6836 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
6837 function definition. Use INTDEF with _dl_get_origin.
6838 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
6840 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
6841 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
6843 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
6844 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
6845 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
6847 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
6848 * elf/dl-deps.c: Likewise.
6849 * elf/dl-error.c: Likewise.
6850 * elf/dl-fini.c: Likewise.
6851 * elf/dl-init.c: Likewise.
6852 * elf/dl-load.c: Likewise.
6853 * elf/dl-lookup.c: Likewise.
6854 * elf/dl-reloc.c: Likewise.
6855 * elf/dl-version.c: Likewise.
6856 * elf/do-lookup.h: Likewise.
6857 * sysdeps/arm/dl-machine.h: Likewise.
6858 * sysdeps/cris/dl-machine.h: Likewise.
6859 * sysdeps/hppa/dl-machine.h: Likewise.
6860 * sysdeps/i386/dl-machine.h: Likewise.
6861 * sysdeps/m68k/dl-machine.h: Likewise.
6862 * sysdeps/powerpc/dl-machine.h: Likewise.
6863 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6864 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6865 * sysdeps/sh/dl-machine.h: Likewise.
6866 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
6867 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
6868 * sysdeps/x86_64/dl-machine.h: Likewise.
6869 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
6870 _dl_argv[0]. Use INTUSE with _dl_argv.
6871 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
6872 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
6874 2002-02-28 Jakub Jelinek <jakub@redhat.com>
6876 * elf/rtld.c (_rtld_global): Remove .protected.
6877 (_rtld_local): Strong alias to _rtld_global.
6878 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
6880 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
6881 _rtld_local instead of _rtld_global.
6882 (_rtld_local): Add hidden extern, possibly in .sdata section.
6883 * configure.in: Add tests for visibility attribute and .sdata.
6884 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
6885 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
6886 * sysdeps/arm/dl-machine.h: Likewise.
6887 * sysdeps/generic/ldsodefs.h: Likewise.
6888 * sysdeps/hppa/dl-machine.h: Likewise.
6889 * sysdeps/cris/dl-machine.h: Likewise.
6890 * sysdeps/i386/dl-machine.h: Likewise.
6891 * sysdeps/ia64/dl-machine.h: Likewise.
6892 * sysdeps/m68k/dl-machine.h: Likewise.
6893 * sysdeps/mips/mips64/dl-machine.h: Likewise.
6894 * sysdeps/mips/dl-machine.h: Likewise.
6895 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6896 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6897 * sysdeps/sh/dl-machine.h: Likewise.
6898 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6899 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6900 * sysdeps/x86_64/dl-machine.h: Likewise.
6902 2002-02-28 Ulrich Drepper <drepper@redhat.com>
6904 * login/login.c (login): Always initialize ut_line field
6907 2002-02-28 Jakub Jelinek <jakub@redhat.com>
6909 * sysdeps/i386/Makefile (sysdep_routines): Add
6911 (shared-only-routines): Likewise.
6912 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
6913 (shared-only-routines): Likewise.
6914 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
6915 (shared-only-routines): Likewise.
6916 * sysdeps/wordsize-32/divdi3.c: New file.
6918 2002-02-28 Ulrich Drepper <drepper@redhat.com>
6920 * locale/iso-4217.def: Remove obsolete currencies for countries
6923 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
6925 * posix/regcomp.c (regcomp): Remove a redundant condition.
6926 (init_word_char): Add a check on malloc failure.
6927 (create_initial_state): Likewise.
6928 (duplicate_node): Likewise.
6929 (calc_eclosure): Likewise.
6930 (calc_eclosure_iter): Likewise.
6931 (parse_expression): Likewise.
6932 (parse_bracket_exp): Remove unnecessary malloc invocations.
6933 (build_equiv_class): Likewise.
6934 (build_charclass): Likewise.
6935 * posix/regex_internal.c (re_node_set_intersect): Add a check
6937 (re_node_set_add_intersect): Likewise.
6938 (re_node_set_merge): Likewise.
6939 (re_acquire_state): Likewise.
6940 (re_acquire_state_context): Likewise.
6941 (create_newstate_common): Likewise.
6942 (register_state): Likewise.
6943 (create_ci_newstate): Likewise.
6944 (create_cd_newstate): Likewise.
6945 * posix/regex_internal.h: Fix prototypes of re_acquire_state
6946 and re_acquire_state_context.
6947 * posix/regexec.c (regexec): Suit it to the error handling of
6949 (re_match): Likewise.
6950 (re_search): Likewise.
6951 (re_search_internal): Add a check on malloc failure.
6952 (acquire_init_state_context): Likewise.
6953 (check_matching): Likewise.
6954 (proceed_next_node): Likewise.
6955 (set_regs): Likewise.
6956 (sift_states_backward): Likewise.
6957 (sift_states_iter_bkref): Likewise.
6958 (add_epsilon_backreference): Likewise.
6959 (transit_state): Likewise.
6960 (transit_state_sb): Likewise.
6961 (transit_state_mb): Likewise.
6962 (transit_state_bkref_loop): Likewise.
6963 (build_trtable): Likewise.
6964 (group_nodes_into_DFAstates): Likewise.
6965 (match_ctx_init): Likewise.
6966 (match_ctx_add_entry): Likewise.
6968 2002-02-27 Ulrich Drepper <drepper@redhat.com>
6970 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
6971 l_libname if profiling is enabled [PR libc/2916].
6973 * sysdeps/ia64/dl-tls.h: New file.
6975 2002-02-27 Jakub Jelinek <jakub@redhat.com>
6977 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
6978 Work around an Alpha gas bug.
6980 2002-02-27 Ulrich Drepper <drepper@redhat.com>
6982 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
6983 uses read to load the catalog.
6984 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
6986 2002-02-26 Ulrich Drepper <drepper@redhat.com>
6988 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
6989 regex_internal.c, and regex_internal.h.
6990 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
6991 * posix/regex.c: Complete rewrite.
6992 * posix/regexec.c: New file.
6993 * posix/regcomp.c: New file.
6994 * posix/regex_internal.c: New file.
6995 * posix/regex_internal.h: New file.
6996 * posix/regex.h (RE_ICASE): New macro.
6997 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
6999 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
7000 ungetwc. It's a macro.
7001 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
7003 Reported by Jason Merrill <jason@redhat.com>.
7005 2002-02-25 Jakub Jelinek <jakub@redhat.com>
7007 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
7008 position to fp->_offset if it is set.
7009 * stdio-common/Makefile (tests): Add tst-fdopen.
7010 * stdio-common/tst-fdopen.c: New test.
7012 2002-02-25 Jakub Jelinek <jakub@redhat.com>
7014 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
7015 * stdio-common/tst-ungetc.c (main): Add another test.
7017 2002-02-25 Ulrich Drepper <drepper@redhat.com>
7019 * assert/assert-perr.c: Use INTUSE to reference functions and variables
7020 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
7021 aliases. Add prototypes for the new aliases.
7022 * assert/assert.c: Likewise.
7023 * include/libc-symbols.h: Likewise.
7024 * include/stdio.h: Likewise.
7025 * include/netinet/in.h: Likewise.
7026 * include/rpc/auth.h: Likewise.
7027 * include/rpc/auth_unix.h: Likewise.
7028 * include/rpc/key_prot.h: Likewise.
7029 * include/rpc/pmap_prot.h: Likewise.
7030 * include/rpc/pmap_rmt.h: Likewise.
7031 * include/rpc/rpc_msg.h: Likewise.
7032 * include/rpc/xdr.h: Likewise.
7033 * inet/gethstbyad_r.c: Likewise.
7034 * inet/gethstbynm2_r.c: Likewise.
7035 * inet/gethstbynm_r.c: Likewise.
7036 * inet/gethstent_r.c: Likewise.
7037 * inet/in6_addr.c: Likewise.
7038 * libio/__fpurge.c: Likewise.
7039 * libio/filedoalloc.c: Likewise.
7040 * libio/fileops.c: Likewise.
7041 * libio/ftello.c: Likewise.
7042 * libio/ftello64.c: Likewise.
7043 * libio/genops.c: Likewise.
7044 * libio/iofclose.c: Likewise.
7045 * libio/iofdopen.c: Likewise.
7046 * libio/iofflush.c: Likewise.
7047 * libio/iofflush_u.c: Likewise.
7048 * libio/iofgetpos.c: Likewise.
7049 * libio/iofgetpos64.c: Likewise.
7050 * libio/iofgets.c: Likewise.
7051 * libio/iofgets_u.c: Likewise.
7052 * libio/iofopen.c: Likewise.
7053 * libio/iofopncook.c: Likewise.
7054 * libio/iofputs.c: Likewise.
7055 * libio/iofread.c: Likewise.
7056 * libio/iofread_u.c: Likewise.
7057 * libio/iofsetpos.c: Likewise.
7058 * libio/iofsetpos64.c: Likewise.
7059 * libio/ioftell.c: Likewise.
7060 * libio/iofwrite.c: Likewise.
7061 * libio/iogetline.c: Likewise.
7062 * libio/iogets.c: Likewise.
7063 * libio/iogetwline.c: Likewise.
7064 * libio/iolibio.h: Likewise.
7065 * libio/iopadn.c: Likewise.
7066 * libio/iopopen.c: Likewise.
7067 * libio/ioseekoff.c: Likewise.
7068 * libio/ioseekpos.c: Likewise.
7069 * libio/iosetbuffer.c: Likewise.
7070 * libio/iosetvbuf.c: Likewise.
7071 * libio/ioungetc.c: Likewise.
7072 * libio/ioungetwc.c: Likewise.
7073 * libio/iovdprintf.c: Likewise.
7074 * libio/iovsprintf.c: Likewise.
7075 * libio/iovsscanf.c: Likewise.
7076 * libio/libioP.h: Likewise.
7077 * libio/memstream.c: Likewise.
7078 * libio/obprintf.c: Likewise.
7079 * libio/oldfileops.c: Likewise.
7080 * libio/oldiofclose.c: Likewise.
7081 * libio/oldiofdopen.c: Likewise.
7082 * libio/oldiofgetpos.c: Likewise.
7083 * libio/oldiofgetpos64.c: Likewise.
7084 * libio/oldiofopen.c: Likewise.
7085 * libio/oldiofsetpos.c: Likewise.
7086 * libio/oldiofsetpos64.c: Likewise.
7087 * libio/oldiopopen.c: Likewise.
7088 * libio/oldstdfiles.c: Likewise.
7089 * libio/putc.c: Likewise.
7090 * libio/setbuf.c: Likewise.
7091 * libio/setlinebuf.c: Likewise.
7092 * libio/stdfiles.c: Likewise.
7093 * libio/stdio.c: Likewise.
7094 * libio/strops.c: Likewise.
7095 * libio/vasprintf.c: Likewise.
7096 * libio/vscanf.c: Likewise.
7097 * libio/vsnprintf.c: Likewise.
7098 * libio/vswprintf.c: Likewise.
7099 * libio/wfiledoalloc.c: Likewise.
7100 * libio/wfileops.c: Likewise.
7101 * libio/wgenops.c: Likewise.
7102 * libio/wstrops.c: Likewise.
7103 * malloc/mtrace.c: Likewise.
7104 * misc/error.c: Likewise.
7105 * misc/syslog.c: Likewise.
7106 * nss/getXXbyYY_r.c: Likewise.
7107 * nss/getXXent_r.c: Likewise.
7108 * nss/hosts-lookup.c: Likewise.
7109 * stdio-common/getw.c
7110 * stdio-common/printf-prs.c: Likewise.
7111 * stdio-common/printf_fp.c: Likewise.
7112 * stdio-common/printf_size.c: Likewise.
7113 * stdio-common/putw.c: Likewise.
7114 * stdio-common/scanf.c: Likewise.
7115 * stdio-common/sprintf.c: Likewise.
7116 * stdio-common/tmpfile64.c: Likewise.
7117 * stdio-common/vfprintf.c: Likewise.
7118 * stdio-common/vfscanf.c: Likewise.
7119 * stdlib/strfmon.c: Likewise.
7120 * sunrpc/auth_des.c: Likewise.
7121 * sunrpc/auth_none.c: Likewise.
7122 * sunrpc/auth_unix.c: Likewise.
7123 * sunrpc/authdes_prot.c: Likewise.
7124 * sunrpc/authuxprot.c: Likewise.
7125 * sunrpc/clnt_perr.c: Likewise.
7126 * sunrpc/clnt_raw.c: Likewise.
7127 * sunrpc/clnt_tcp.c: Likewise.
7128 * sunrpc/clnt_udp.c: Likewise.
7129 * sunrpc/clnt_unix.c: Likewise.
7130 * sunrpc/key_call.c: Likewise.
7131 * sunrpc/key_prot.c: Likewise.
7132 * sunrpc/openchild.c: Likewise.
7133 * sunrpc/pm_getmaps.c: Likewise.
7134 * sunrpc/pm_getport.c: Likewise.
7135 * sunrpc/pmap_clnt.c: Likewise.
7136 * sunrpc/pmap_prot.c: Likewise.
7137 * sunrpc/pmap_prot2.c: Likewise.
7138 * sunrpc/pmap_rmt.c: Likewise.
7139 * sunrpc/rpc_cmsg.c: Likewise.
7140 * sunrpc/rpc_prot.c: Likewise.
7141 * sunrpc/svc_authux.c: Likewise.
7142 * sunrpc/svc_raw.c: Likewise.
7143 * sunrpc/svc_simple.c: Likewise.
7144 * sunrpc/svc_tcp.c: Likewise.
7145 * sunrpc/svc_udp.c: Likewise.
7146 * sunrpc/svc_unix.c: Likewise.
7147 * sunrpc/xdr.c: Likewise.
7148 * sunrpc/xdr_array.c: Likewise.
7149 * sunrpc/xdr_mem.c: Likewise.
7150 * sunrpc/xdr_rec.c: Likewise.
7151 * sunrpc/xdr_ref.c: Likewise.
7152 * sunrpc/xdr_stdio.c: Likewise.
7153 * sysdeps/generic/_strerror.c: Likewise.
7154 * sysdeps/generic/printf_fphex.c: Likewise.
7155 * sysdeps/generic/tmpfile.c: Likewise.
7156 * sysdeps/gnu/errlist.awk: Likewise.
7157 * sysdeps/gnu/errlist.c: Likewise.
7159 * libio/Makefile (routines): Remove iosprint.
7160 * libio/iosprintf.c: Removed
7163 2002-02-24 Ulrich Drepper <drepper@redhat.com>
7165 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
7166 non_dynamic_init and exported now.
7167 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
7168 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
7170 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
7171 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7172 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7174 2002-02-23 Ulrich Drepper <drepper@redhat.com>
7176 * elf/dl-close.c (free_slotinfo): Check for end of list and return
7179 * locale/iso-639.def: Add language codes for Walloon.
7181 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
7182 total number of relocations performed.
7184 * elf/sprof.c (load_profdata): If do_test provide information as
7185 to why loading failed.
7186 * elf/dl-profile.c (_dl_start_profile): Initialize all of
7189 * csu/set-init.c: Moved to...
7190 * sysdeps/mach/hurd/set-init.c: ...here. New file.
7191 * csu/Makefile: Don't compile set-init.
7192 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
7193 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
7195 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7196 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7197 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
7199 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
7202 2002-02-22 Ulrich Drepper <drepper@redhat.com>
7204 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
7205 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
7206 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
7207 (_dl_deallocate_tls): New function.
7208 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
7211 2002-02-21 Jakub Jelinek <jakub@redhat.com>
7213 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
7214 * stdio-common/tst-fseek.c (main): Add test for this.
7216 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
7218 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
7220 2002-02-19 Jakub Jelinek <jakub@redhat.com>
7222 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
7223 pointer before dereferencing.
7225 2002-02-18 Roland McGrath <roland@frob.com>
7227 * sysdeps/mach/hurd/times.c: Fix typo in last change.
7229 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
7230 Use task_policy in place of task_priority.
7232 * sysdeps/generic/bits/mman.h
7233 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
7234 * sysdeps/mach/msync.c: New file.
7236 * sysdeps/mach/powerpc/syscall.S: New file.
7238 * mach/msg.c [MACH_MSG_OVERWRITE]
7239 (__mach_msg_trap, __mach_msg_overwrite): New functions.
7240 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
7242 * sysdeps/mach/configure.in: Check for clock.defs to put into
7243 mach_interface_list.
7244 * sysdeps/mach/configure: Regenerated.
7246 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
7247 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
7248 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
7249 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
7250 (mach-shortcuts): Add device_read_overwrite_request,
7251 device_read_overwrite, vm_read_overwrite, thread_switch.
7253 * configure.in (base_machine): Set to $machine by default.
7254 * configure: Regenerated.
7256 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
7257 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
7258 * sysdeps/mach/configure: Regenerated.
7259 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
7261 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
7263 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
7265 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
7266 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
7268 2002-02-17 Roland McGrath <roland@frob.com>
7270 * sysdeps/mach/hurd/times.c
7271 [NO_CREATION_TIME] (startup_time): New static variable.
7272 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
7273 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
7274 creation_time from task_basic_info.
7275 (__times): Use __gettimeofday instead of __host_get_time.
7277 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
7278 Use untyped Mach IPC message format.
7280 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
7282 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
7283 _S_catch_exception_raise_state_identity,
7284 _hurdsig_fault_catch_exception_raise_state,
7285 _hurdsig_fault_catch_exception_raise_state_identity.
7287 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
7289 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
7290 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
7292 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
7293 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
7295 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
7296 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
7297 them as no-op macros.
7298 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
7299 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
7301 * sysdeps/powerpc/dl-machine.h
7302 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
7304 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
7305 Use untyped Mach IPC message format.
7307 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
7308 Handle untyped Mach IPC message formats.
7310 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
7311 Expect different argument conventions when this is defined.
7312 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
7313 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
7314 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
7315 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
7316 for OSF Mach variant.
7317 (faulted): Use mig_reply_error_t for REPLY.
7318 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
7319 in __thread_set_exception_ports call.
7320 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
7321 __mach_port_set_attributes in place of __mach_port_set_qlimit.
7323 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
7324 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
7325 on Darwin, which includes bogons.
7327 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
7328 variable LOADBASE so it's not declared when it's not used.
7330 2002-02-16 Roland McGrath <roland@frob.com>
7332 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
7333 to use BI.creation_time.
7335 * mach/Machrules (MIG): Add -x c to CPP value passed down.
7337 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
7338 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
7339 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
7340 host_page_size instead of vm_statistics.
7342 * sysdeps/mach/Makefile (mach-before-compile): Don't include
7343 mach_interface.h here, since not all variants use that name.
7345 * sysdeps/mach/configure.in: Add some checks for Mach headers
7346 to ensure a sane installation.
7347 (mach_interface_list): Define this variable by checking for .defs
7348 files found in various variants.
7349 * configure.in (mach_interface_list): AC_SUBST this.
7350 * config.make.in (mach-interface-list): New substituted variable.
7351 * mach/Makefile (user-interfaces): Define this using the value
7352 of $(mach-interface-list) instead of mach, mach4.
7353 Updated other references to mach_interface to use it as well.
7355 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
7357 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
7358 mig_reply_error_t for OSF Mach variant.
7360 * mach/Makefile (routines): Remove bootprivport.
7361 * mach/bootprivport.c: File removed. It has never been used.
7363 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
7364 Grok the OSF flavor of message format.
7365 (mach_msg_destroy_port): For MAKE_SEND and
7366 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
7367 no-senders notification.
7369 2002-02-06 Roland McGrath <roland@frob.com>
7371 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
7372 to here if 2.0 compatibility enabled ...
7373 (libc: GLIBC_2.1.3): ... from here.
7375 2002-02-15 Ulrich Drepper <drepper@redhat.com>
7377 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
7379 * elf/dl-close.c (_dl_close): Likewise.
7381 2002-02-14 Ulrich Drepper <drepper@redhat.com>
7383 * elf/Makefile: Add rules to build and run tst-tls8.
7384 * elf/tst-tls8.c: New file.
7385 * elf/tst-tlsmod4.c: New file.
7387 * stdlib/test-a64l.c (tests): Add more test cases.
7389 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
7390 Reported by Walter Harms <WHarms@bfs.de>.
7392 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
7394 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
7395 definitions for struct sigcontext.
7396 Suggested by David Mosberger-Tang.
7398 2002-02-13 Ulrich Drepper <drepper@redhat.com>
7400 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
7401 for removing reference of module in slotinfo list.
7402 (_dl_close): Use remove_slotinfo.
7403 * sysdeps/generic/dl-tls.c: General pretty printing.
7404 (oom): Define only if SHARED.
7405 (_dl_next_tls_modid): Correct starting point for the case we assume
7406 there is a gap. Add missing instruction grouping (doh!). Correct
7407 tests for reaching maximum index.
7408 * elf/Makefile: Add rules to build and run tst-tls7.
7409 * elf/tst-tls7.c: New file.
7410 * elf/tst-tlsmod3.c: New file.
7412 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
7414 * elf/tst-tlsmod2.c: Likewise.
7416 * elf/dl-close.c (_dl_close): When closing an object using TLS
7417 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
7418 true. Increment dl_tls_generation only if we closed any TLS-using
7420 * elf/tst-tls6.c: New file.
7421 * elf/Makefile: Add rules to build and run tst-tls6.
7423 * po/da.po: Update from translation team.
7425 * locale/categories.def: Fix typo [PR libc/2948].
7426 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
7428 * locale/iso-4217.def: Update from official version [PR libc/2950].
7429 * glibcbug.in: Honor TMPDIR [PR libc/2951].
7430 * locale/programs/ld-collate.c (collate_finish): Bail out with a
7431 message if input is too confusion instead of using assert.
7432 (collate_read): Don't crash on unknown symbol [PR libc/2952].
7433 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
7435 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
7436 * elf/tst-tls2.c: Likewise.
7437 * elf/tst-tls3.c: Likewise.
7439 2002-02-13 Jakub Jelinek <jakub@redhat.com>
7441 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
7443 2002-02-13 Ulrich Drepper <drepper@redhat.com>
7445 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
7446 if this is really necessary.
7448 * elf/dl-close.c (_dl_close): Implement freeing entries in the
7450 (free_mem): Free memory for the slotinfo array if possible.
7452 2002-02-12 Andreas Schwab <schwab@suse.de>
7454 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
7456 2002-02-12 Ulrich Drepper <drepper@redhat.com>
7458 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
7460 (oom): New function.
7461 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
7462 (_dl_determine_tlsoffset): Likewise.
7463 (_dl_allocate_tls): Likewise.
7464 (__TLS_GET_ADDR): Define if not already defined.
7465 (_dl_tls_symaddr): New function.
7466 (allocate_and_init): New function.
7467 (__tls_get_addr): Actually implement handling of generation counter
7468 and deferred allocation.
7469 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
7470 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
7472 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
7473 Declare _dl_tls_symaddr.
7474 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
7476 * include/link.h (struct link_map): Remove l_tls_nextimage and
7478 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
7479 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
7480 (_dl_vsym): Likewise.
7481 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
7483 (dl_main): Allow PT_TLS be present for empty segment. Remove
7484 nextimage list handling. Instead add all modules using TLS to
7485 dl_tls_dtv_slotinfo_list.
7486 * elf/dl-open.c (dl_open_worker): After successfully loading all
7487 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
7488 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
7489 empty segment don't do anything. Remove handling of initimage list.
7490 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
7491 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
7492 * elf/dl-minimal.c: Define __libc_memalign.
7493 * elf/dl-support.c: Remove _dl_initimage_list. Add
7494 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
7496 * include/stdlib.h: Declare __libc_memalign.
7498 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
7499 * elf/tst-tls4.c: New file.
7500 * elf/tst-tls5.c: New file.
7501 * elf/tst-tlsmod2.c: New file.
7503 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
7505 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
7507 * elf/tst-tls1.c: Use test-skeleton.c.
7508 * elf/tst-tls2.c: Likewise.
7509 * elf/tst-tls3.c: Likewise.
7511 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
7513 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
7515 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
7517 2002-02-10 Ulrich Drepper <drepper@redhat.com>
7519 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
7521 * elf/tst-tls3.c: New file.
7522 * elf/tst-tlsmod1.c: New file.
7523 * elf/Makefile: Add rules to build and run tst-tls3.
7525 * sysdeps/i386/dl-machine.h: Include <tls.h>.
7526 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
7529 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
7531 * po/fr.po: Update from translation team.
7533 * elf/tls-macros.h: Add alternative macros for use in PIC.
7535 * elf/dl-lookup.c: Include <tls.h>.
7536 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
7538 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
7539 required by passing pointer to last element of the list.
7541 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
7542 l_tls_initimage to a place where it actually is performed.
7544 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
7545 after globfree() calls.
7547 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
7548 (openaux): Pass open_mode as new last argument to _dl_map_object.
7549 (_dl_map_object_deps): Add new argument open_mode. Initialize
7550 open_mode element of args variable with it.
7551 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
7552 _dl_map_object_deps.
7553 * elf/rtld.c (dl_main): Add zero as last parameter to
7554 _dl_map_object_deps call.
7555 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
7556 * elf/nodlopen2.c: New file.
7557 * elf/nodlopenmod2.c: New file.
7558 * elf/Makefile: Add rules to build and run nodlopen2.
7560 * elf/tst-tls1.c: Move TLS helper macros to...
7561 * elf/tls-macros.h: ...here. New file.
7562 * elf/tst-tls2.c: New file.
7563 * elf/Makefile (tests): Add tst-tls2.
7564 (distribute): Add tls-macros.h.
7566 * po/sv.po: Update from translation team.
7568 * elf/tst-tls1.c (main): Add complete set of tests. Split
7569 architecture specific definitions from the actual test code.
7571 * po/tr.po: Update from translation team.
7573 2002-02-09 Ulrich Drepper <drepper@redhat.com>
7575 * elf/Makefile (tests): Add tst-tls1.
7576 * elf/tst-tls1.c: New file.
7578 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
7579 alignment of TCB for now.
7581 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
7582 initialization image for the application itself.
7584 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
7585 loop to initialize TLS block.
7587 2002-02-08 Richard Henderson <rth@redhat.com>
7589 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
7590 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
7592 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
7594 2002-02-09 Jakub Jelinek <jakub@redhat.com>
7596 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
7598 2002-02-08 Ulrich Drepper <drepper@redhat.com>
7600 * po/ca.po: Update from translation team.
7601 * po/sk.po: Likewise.
7603 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
7604 (dl_main): Move dtv/static TLS handling before relocation.
7605 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
7606 TLS_INIT_TP to allocate and install the dtv/static TLS block.
7607 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
7608 so far uses TLS initialize GL(dl_tls_static_size) and
7609 GL(dl_tls_static_align) to account for the TCB.
7610 (_dl_allocate_tls): New function.
7611 * sysdeps/generic/ldsodefs.h (rtld_global): Add
7612 _dl_initial_dtv_malloced.
7614 * configure.in: Test for __builtin_memset more realistically.
7616 * csu/version.c (banner): If TLS support is available say so.
7618 2002-02-04 H.J. Lu <hjl@gnu.org>
7620 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
7622 (__dl_runtime_resolve): Likewise.
7624 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
7627 2001-11-15 H.J. Lu <hjl@gnu.org>
7629 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
7630 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
7632 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
7634 2002-02-07 H.J. Lu <hjl@gnu.org>
7636 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
7638 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
7641 2002-02-07 Ulrich Drepper <drepper@redhat.com>
7643 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
7645 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
7646 ___tls_get_addr_internal.
7647 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
7649 * po/ko.po: Update from translation team.
7651 2002-02-07 Jakub Jelinek <jakub@redhat.com>
7653 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
7654 attribute, change __pad{1,2} type to unsigned int.
7655 (struct stat64): Remove packed attribute.
7657 2002-02-07 Ulrich Drepper <drepper@redhat.com>
7659 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
7661 2002-02-07 Andreas Schwab <schwab@suse.de>
7663 * configure.in: Fix check for -zcombreloc.
7665 2002-02-06 H.J. Lu <hjl@gnu.org>
7667 * config.h.in (HAVE_BUILTIN_MEMSET): New.
7668 * configure.in: Check if __builtin_memset really works.
7669 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
7670 __GNUC_PREREQ (2, 96) before using __builtin_memset.
7672 2002-02-06 Jakub Jelinek <jakub@redhat.com>
7674 * io/bug-ftw3.c (main): Don't try the test if root.
7676 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
7678 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
7680 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
7681 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
7682 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
7684 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
7685 a weak alias for __clone.
7686 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
7687 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
7688 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
7689 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
7690 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
7691 a weak alias for __mmap64.
7693 2002-02-05 H.J. Lu <hjl@gnu.org>
7695 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
7696 (atomic_add): Likewise.
7697 (compare_and_swap): Likewise.
7698 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
7700 2002-02-07 Ulrich Drepper <drepper@redhat.com>
7702 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
7704 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
7705 alignment of the TCB and store total size and alignment of static
7706 TLS block in _dl_tls_static_size and _dl_tls_static_align.
7707 tls_index is a typedef.
7708 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
7709 _dl_tls_static_align.
7710 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
7711 * elf/dl-support.c: Define _dl_tls_static_size and
7712 _dl_tls_static_align.
7714 2002-02-06 Ulrich Drepper <drepper@redhat.com>
7716 * configure.in: Add --without-tls option.
7717 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
7718 --without-tls is given.
7720 * sysdeps/generic/dl-tls.c: Include <tls.h>.
7722 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
7724 2002-02-06 Roland McGrath <roland@frob.com>
7726 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
7727 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
7729 * scripts/versions.awk: Improve error message for missing version.
7730 Each version inherits from the last one only if they have the same
7731 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
7732 but not GLIBC_x and FOO_y.
7734 * scripts/firstversions.awk: Handle libraries that don't have each
7735 particular version named in the third column of shlib-versions.
7737 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
7739 2002-02-06 Ulrich Drepper <drepper@redhat.com>
7741 * Versions.def [ld]: Add GLIBC_2.3.
7742 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
7743 * elf/Makefile (dl-routines): Add dl-tls.
7744 (distribute): Add dl-tls.h.
7745 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
7746 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
7747 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
7748 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
7749 along with the other info in the link map. Change queueing of init
7750 images for double linked list. Use _dl_next_tls_modid to compute
7752 * elf/rtld.c (_dl_start_final): Store alignment requirement
7753 along with the other info in rtld map and executable map.
7754 (dl_main): Add ld.so to the init image list if necessary. Compute
7755 final module ID with _dl_next_tls_modid.
7756 * include/link.h (struct link_map): Add l_tls_previmage and
7758 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
7759 * sysdeps/i386/elf/Versions: New file.
7760 * sysdeps/generic/dl-tls.c: New file.
7761 * sysdeps/generic/dl-tls.h: New file.
7762 * sysdeps/i386/dl-tls.h: New file.
7764 2002-02-06 Roland McGrath <roland@frob.com>
7766 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
7767 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
7769 2002-01-05 Roland McGrath <roland@frob.com>
7771 * sysdeps/mach/configure.in: New file.
7772 * sysdeps/mach/configure: New generated file.
7774 * mach/Makefile (user-interfaces): Remove default_pager_helper.
7775 It has never been used by anything.
7777 2002-02-06 H.J. Lu <hjl@gnu.org>
7779 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
7782 2002-02-06 Ulrich Drepper <drepper@redhat.com>
7784 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
7785 attribute((packed)) to counter stupid people misusing gcc options.
7786 (struct stat64): Likewise.
7788 2002-02-05 Ulrich Drepper <drepper@redhat.com>
7790 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
7791 the variables which are used as booleans.
7793 2002-02-06 Andreas Jaeger <aj@suse.de>
7795 * include/libc-symbols.h (INTUSE): Renamed from INT.
7796 * elf/dl-deps.c: Change users.
7797 * sysdeps/generic/dl-sysdep.c: Likewise.
7798 * sysdeps/generic/dl-cache.c: Likewise.
7799 * elf/dl-reloc.c: Likewise.
7800 * elf/rtld.c: Likewise.
7801 * elf/dl-version.c: Likewise.
7802 * elf/dl-load.c: Likewise.
7803 * elf/dl-dst.h: Likewise.
7804 * elf/dl-init.c: Likewise.
7805 * elf/dl-error.c: Likewise.
7806 * elf/dl-fini.c: Likewise.
7807 * elf/dl-runtime.c: Likewise.
7808 * elf/do-lookup.h: Likewise.
7810 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
7812 * stdio-common/_itowa.h: Likewise.
7814 2002-02-05 Ulrich Drepper <drepper@redhat.com>
7816 * elf/dl-minimal.c: Define _itoa_lower_digits.
7818 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
7821 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
7822 loading modules with the DF_STATIC_TLS flag set.
7823 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
7825 * include/link.h (struct link_map): Add l_flags field.
7826 * elf/elf.h (DF_STATIC_TLS): New definition.
7828 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
7829 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
7831 * elf/rtld.c (process_dl_debug): Correct printing help message.
7832 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
7835 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
7836 definition and pass &errno in use of this variable.
7837 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
7839 2002-02-04 Andreas Schwab <schwab@suse.de>
7841 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
7842 * locale/programs/charmap-dir.c: Wrap calls that output messages
7843 with WITH_CUR_LOCALE. Include "localedef.h" first.
7844 * locale/programs/charmap.c: Likewise.
7845 * locale/programs/ld-address.c: Likewise.
7846 * locale/programs/ld-collate.c: Likewise.
7847 * locale/programs/ld-ctype.c: Likewise.
7848 * locale/programs/ld-identification.c: Likewise.
7849 * locale/programs/ld-measurement.c: Likewise.
7850 * locale/programs/ld-messages.c: Likewise.
7851 * locale/programs/ld-monetary.c: Likewise.
7852 * locale/programs/ld-name.c: Likewise.
7853 * locale/programs/ld-numeric.c: Likewise.
7854 * locale/programs/ld-paper.c: Likewise.
7855 * locale/programs/ld-telephone.c: Likewise.
7856 * locale/programs/ld-time.c: Likewise.
7857 * locale/programs/linereader.c: Likewise.
7858 * locale/programs/linereader.h: Likewise.
7859 * locale/programs/localedef.c: Likewise.
7860 * locale/programs/locfile.c: Likewise.
7861 * locale/programs/repertoire.c: Likewise.
7863 2002-02-05 Ulrich Drepper <drepper@redhat.com>
7865 * elf/rtld.c (_dl_start_final): Determine load address to locate
7866 ehdr with GL(dl_rtld_map).l_map_start.
7868 * po/ca.po: Update from translation team.
7870 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
7871 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
7873 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7875 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
7877 2002-02-04 Ulrich Drepper <drepper@redhat.com>
7879 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
7880 * include/link.h (struct link_map): Add various members for TLS
7882 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
7883 _rtld_tlsoffset, add _dl_initimage_list.
7884 * sysdeps/i386/dl-lookupcfg.h: New file.
7885 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
7886 TLS relocation. When using TLS we now use RESOLVE_MAP.
7887 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
7890 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
7893 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
7894 thread-pointer as soon as possible.
7895 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
7896 elements in rtld_global.
7897 * sysdeps/generic/tls.h: New file.
7898 * elf/Makefile (distribute): Add tls.h.
7899 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
7900 relocations. Not complete yet.
7902 * resolv/resolv.h: Allow user to define __need_res_state and only
7903 define __res_start structure then.
7904 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
7906 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
7907 dl_cpuclock_offset initialization to _dl_start_final.
7908 (_dl_show_auxv): Avoid unnecessary sign extension.
7909 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
7911 2002-02-03 Ulrich Drepper <drepper@redhat.com>
7913 * config.h.in: Add HAVE_TLS_SUPPORT.
7914 * sysdeps/i386/elf/configure.in: New file.
7916 2002-02-03 Andreas Schwab <schwab@suse.de>
7918 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
7919 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
7921 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
7923 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
7924 alloca if the memory reqirements are too high.
7926 2002-02-03 Ulrich Drepper <drepper@redhat.com>
7928 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
7929 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
7930 the former is available anyway and speed isn't important here.
7931 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
7932 * elf/dl-version.c (match_symbol): Likewise.
7933 (_dl_check_map_versions): Likewise.
7934 * elf/rtld.c (process_envvars): Likewise.
7935 (print_statistics): Likewise.
7936 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
7937 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
7938 bases. Add assert to catch uses of unimplemented features.
7939 (__strsep): Add assert to catch uses of unimplemented features.
7940 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
7941 and avoid inline optimization.
7942 * elf/rtld.c (process_envvars): Likewise.
7943 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
7944 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
7945 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
7947 2002-02-02 Ulrich Drepper <drepper@redhat.com>
7949 * stdio-common/_itoa.h: Minor simplifications of the code.
7950 * stdio-common/_itoa.c: Likewise.
7952 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
7953 instead of _dl_printf for debugging info output.
7955 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
7956 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
7958 2002-02-01 H.J. Lu <hjl@gnu.org>
7960 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
7961 (atomic_add): Likewise.
7962 (compare_and_swap): Return 0 only when failed to compare. Use
7965 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
7968 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
7970 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
7972 2002-02-02 Ulrich Drepper <drepper@redhat.com>
7974 * elf/dl-minimal.c (__strsep): New minimal implementation.
7976 2002-02-02 Paul Eggert <eggert@twinsun.com>
7978 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
7979 (__mktime_internal): If no tm_isdst is requested, prefer solutions
7980 with tm_isdst > 0 when the requested time falls within a
7981 spring-forward gap [PR libc/2894].
7983 2002-02-03 Andreas Schwab <schwab@suse.de>
7985 * stdio-common/tst-rndseek.c: Increase timeout.
7987 2002-02-02 Ulrich Drepper <drepper@redhat.com>
7989 Change ld.so to not use functions which are exported. One cannot
7990 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
7992 * include/libc-symbols.h: Define INT and INTDEF.
7993 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
7994 _dl_signal_error_internal, _dl_map_object_internal,
7995 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
7996 _dl_lookup_versioned_symbol_internal,
7997 _dl_relocate_object_internal, _dl_debug_state_internal,
7998 _dl_start_profile_internal, and _dl_unload_cache_internal.
7999 * include/dlfcn.h: Declare _dl_catch_error_internal.
8000 * elf/rtld.c: Use INT for calls to any of the *_internal functions
8001 above. Add INTDEF to function definitions.
8002 * elf/dl-debug.c: Likewise.
8003 * elf/dl-deps.c: Likewise.
8004 * elf/dl-dst.h: Likewise.
8005 * elf/dl-error.c: Likewise.
8006 * elf/dl-fini.c: Likewise.
8007 * elf/dl-init.c: Likewise.
8008 * elf/dl-load.c: Likewise.
8009 * elf/dl-lookup.c: Likewise.
8010 * elf/dl-misc.c: Likewise.
8011 * elf/dl-open.c: Likewise.
8012 * elf/dl-profile.c: Likewise.
8013 * elf/dl-reloc.c: Likewise.
8014 * elf/dl-runtime.c: Likewise.
8015 * elf/dl-version.c: Likewise.
8016 * elf/do-lookup.h: Likewise.
8017 * sysdeps/generic/dl-cache.c: Likewise.
8018 * sysdeps/generic/dl-sysdep.c: Likewise.
8019 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
8020 instead of _dl_init.
8021 * sysdeps/arm/dl-machine.h: Likewise.
8022 * sysdeps/cris/dl-machine.h: Likewise.
8023 * sysdeps/hppa/dl-machine.h: Likewise.
8024 * sysdeps/i386/dl-machine.h: Likewise.
8025 * sysdeps/ia64/dl-machine.h: Likewise.
8026 * sysdeps/m68k/dl-machine.h: Likewise.
8027 * sysdeps/mips/dl-machine.h: Likewise.
8028 * sysdeps/mips/mips64/dl-machine.h: Likewise.
8029 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8030 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8031 * sysdeps/sh/dl-machine.h: Likewise.
8032 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8033 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8034 * sysdeps/x86_64/dl-machine.h: Likewise.
8035 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
8037 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
8038 and _dl_debug_initialize.
8040 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
8042 * elf/rtld.c (dl_main): Avoid strrchr.
8043 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
8044 result of readlink. Search from the back for '/'.
8046 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
8047 strncpy if possible.
8049 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
8051 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
8052 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
8053 strspn, and strcspn.
8054 (process_envvars): Don't use strcspn.
8056 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
8057 (_dl_dst_substitute): Likewise.
8059 2002-02-01 Ulrich Drepper <drepper@redhat.com>
8061 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
8062 code which is never used when relocating ld.so itself.
8064 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
8065 starting ld.so itself. Move l_addr variable initialization closer
8067 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
8069 2002-02-01 Jakub Jelinek <jakub@redhat.com>
8071 * Versions.def (libc): Add GLIBC_PRIVATE.
8072 (libdb, libnss_db, libdb1): Remove.
8073 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
8074 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
8075 (libpthread): Add GLIBC_PRIVATE.
8076 (libresolv): Likewise, remove GLIBC_2.1.
8077 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
8078 GLIBC_2.2.3, GLIBC_2.3.
8079 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
8080 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
8081 _dl_sym, _dl_vsym): Likewise.
8082 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
8083 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
8084 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
8085 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
8086 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
8087 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
8088 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
8089 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
8091 (_dl_object_relocation_scope): Remove.
8092 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
8093 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
8094 __gconv_cache): Move to GLIBC_PRIVATE.
8095 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
8096 __internal_setnetgrent): Likewise.
8097 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
8098 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
8099 * locale/Versions (__collate_element_hash, __collate_element_strings,
8100 __collate_symbol_classes, __collate_symbol_hash,
8101 __collate_symbol_strings, _nl_current_LC_COLLATE,
8102 _nl_current_LC_CTYPE): Likewise.
8103 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
8104 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
8105 (libnss_nis, libnss_nisplus): Likewise.
8106 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
8107 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
8108 (libnss_files): Move all symbols to GLIBC_PRIVATE.
8109 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
8110 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
8111 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
8112 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
8113 __ns_get16, __ns_samename): Likewise.
8114 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
8115 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
8117 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
8118 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
8119 __libc_connect): Likewise.
8120 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
8122 * stdlib/Versions (__libc_system): Likewise.
8123 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
8124 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
8125 * sysdeps/ia64/fpu/Versions: Likewise.
8126 * sysdeps/ia64/Versions: Likewise.
8127 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
8128 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
8130 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
8131 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
8132 __libc_sigaction): Likewise.
8133 * termios/Versions (__libc_tcdrain): Likewise.
8135 * misc/sys/cdefs (__attribute_noinline__): Define.
8136 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
8137 __attribute_noinline__.
8139 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
8140 * elf/dl-xstat64.c: New file.
8141 * elf/dl-fxstat64.c: New file.
8142 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
8143 don't export __fxstat64 at multiple versions.
8144 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
8145 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
8147 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
8149 * locale/program/ld-collate.c (collate_finish): Assign a wide
8150 char collation sequence value to multi character collating
8151 elements, and avoid over writing by non-character elements.
8153 2002-02-01 Ulrich Drepper <drepper@redhat.com>
8155 * elf/Makefile (distribute): Add dl-procinfo.c.
8156 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
8157 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
8159 2002-02-01 Jakub Jelinek <jakub@redhat.com>
8161 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
8163 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
8164 _rtld_global struct.
8165 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
8166 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
8167 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8168 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
8169 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
8170 _dl_fpu_control_set): Remove unused externs.
8171 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
8172 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
8173 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
8174 related variables in _rtld_global struct.
8175 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
8176 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
8179 2002-02-01 Ulrich Drepper <drepper@redhat.com>
8181 * sysdeps/generic/dl-procinfo.c: New file.
8183 2002-02-01 Andreas Schwab <schwab@suse.de>
8185 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
8187 2002-02-01 Ulrich Drepper <drepper@redhat.com>
8189 * elf/rtld.c (_dl_start): Mark as internal_function.
8190 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
8192 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
8193 General pretty printing.
8195 2002-01-31 Ulrich Drepper <drepper@redhat.com>
8197 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
8198 * elf/dl-reloc.c: Pretty printing.
8199 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
8200 procinfo-related variables in rtld_global struct.
8201 * elf/dl-support.c: Likewise.
8202 * elf/rtld.c: Likewise.
8203 * sysdeps/i386/i686/Makefile: Likewise.
8204 * sysdeps/i386/i686/hp-timing.c: Likewise.
8205 * sysdeps/i386/i686/hp-timing.h: Likewise.
8206 * sysdeps/ia64/Makefile: Likewise.
8207 * sysdeps/ia64/hp-timing.c: Likewise.
8208 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
8209 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
8210 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
8211 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
8212 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8213 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
8214 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
8215 * sysdeps/x86_64/Makefile: Likewise.
8217 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
8218 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
8219 _dl_debug_fd to rtld_global.
8220 * elf/Versions: Likewise.
8221 * elf/dl-close.c: Likewise.
8222 * elf/dl-iteratephdr.c: Likewise.
8223 * elf/dl-lookup.c: Likewise.
8224 * elf/dl-misc.c: Likewise.
8225 * elf/dl-open.c: Likewise.
8226 * elf/dl-support.c: Likewise.
8227 * elf/do-lookup.h: Likewise.
8228 * elf/rtld.c: Likewise.
8229 * sysdeps/generic/dl-cache.c: Likewise.
8230 * sysdeps/generic/dl-sysdep.c: Likewise.
8231 * sysdeps/ia64/Versions: Likewise.
8232 * sysdeps/unix/clock_gettime.c: Likewise.
8233 * sysdeps/unix/clock_settime.c: Likewise.
8234 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8235 * sysdeps/sparc/Versions: Removed.
8236 * sysdeps/i386/i686/Versions : Removed.
8237 * sysdeps/x86_64/Versions: Removed.
8238 * configure.in: Define HAVE_PROTECTED if .protected is available.
8239 * config.h.in: Add entry for HAVE_PROTECTED.
8241 2002-01-31 Jakub Jelinek <jakub@redhat.com.
8243 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
8244 code in struct _rtld_global. Export this struct, remove all
8245 exports for the signal variables.
8246 * sysdeps/arm/dl-machine: Likewise.
8247 * sysdeps/generic/dl-origin: Likewise.
8248 * sysdeps/generic/dl-sysdep: Likewise.
8249 * sysdeps/generic/dl-cache: Likewise.
8250 * sysdeps/hppa/dl-fptr: Likewise.
8251 * sysdeps/hppa/dl-machine: Likewise.
8252 * sysdeps/cris/dl-machine: Likewise.
8253 * sysdeps/i386/dl-machine: Likewise.
8254 * sysdeps/ia64/dl-machine: Likewise.
8255 * sysdeps/m68k/dl-machine: Likewise.
8256 * sysdeps/mach/hurd/dl-sysdep: Likewise.
8257 * sysdeps/mips/mips64/dl-machine: Likewise.
8258 * sysdeps/mips/dl-machine: Likewise.
8259 * sysdeps/powerpc/elf/libc-start: Likewise.
8260 * sysdeps/powerpc/dl-machine: Likewise.
8261 * sysdeps/powerpc/dl-start: Likewise.
8262 * sysdeps/sparc/sparc32/dl-machine: Likewise.
8263 * sysdeps/sparc/sparc64/dl-machine: Likewise.
8264 * sysdeps/sh/dl-machine: Likewise.
8265 * sysdeps/s390/s390-32/dl-machine: Likewise.
8266 * sysdeps/s390/s390-64/dl-machine: Likewise.
8267 * sysdeps/unix/sysv/aix/libc-start: Likewise.
8268 * sysdeps/unix/sysv/aix/start-libc: Likewise.
8269 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
8270 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
8271 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
8272 * sysdeps/x86_64/dl-machine: Likewise.
8274 2002-01-31 Ulrich Drepper <drepper@redhat.com>
8276 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
8279 2002-01-31 Andreas Schwab <schwab@suse.de>
8281 * sysdeps/posix/readv.c: Check for ssize_t overflow.
8283 2002-01-31 Andreas Schwab <schwab@suse.de>
8285 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
8286 reference to _dl_pagesize.
8288 2002-01-30 Ulrich Drepper <drepper@redhat.com>
8290 * Versions.def [ld]: Add GLIBC_2.3.
8291 * elf/dl-addr.c: Move global variables for SHARED code in struct
8292 _rtld_global. Export this struct, remove all exports for the
8294 * elf/dl-close.c: Likewise.
8295 * elf/dl-conflict.c: Likewise.
8296 * elf/dl-debug.c: Likewise.
8297 * elf/dl-deps.c: Likewise.
8298 * elf/dl-dst.h: Likewise.
8299 * elf/dl-error.c: Likewise.
8300 * elf/dl-fini.c: Likewise.
8301 * elf/dl-init.c: Likewise.
8302 * elf/dl-iteratephdr.c: Likewise.
8303 * elf/dl-libc.c: Likewise.
8304 * elf/dl-load.c: Likewise.
8305 * elf/dl-lookup.c: Likewise.
8306 * elf/dl-minimal.c: Likewise.
8307 * elf/dl-object.c: Likewise.
8308 * elf/dl-open.c: Likewise.
8309 * elf/dl-profile.c: Likewise.
8310 * elf/dl-profstub.c: Likewise.
8311 * elf/dl-reloc.c: Likewise.
8312 * elf/dl-runtime.c: Likewise.
8313 * elf/dl-support.c: Likewise.
8314 * elf/dl-sym.c: Likewise.
8315 * elf/dl-version.c: Likewise.
8316 * elf/do-lookup.h: Likewise.
8317 * elf/do-rel.h: Likewise.
8318 * elf/dynamic-link.h: Likewise.
8319 * elf/rtld.c: Likewise.
8320 * sysdeps/generic/dl-cache.c: Likewise.
8321 * sysdeps/generic/dl-sysdep.c: Likewise.
8322 * sysdeps/generic/ldsodefs.h: Likewise.
8323 * sysdeps/generic/libc-start.c: Likewise.
8324 * sysdeps/i386/dl-machine.h: Likewise.
8325 * sysdeps/ia64/dl-fptr.c: Likewise.
8326 * sysdeps/ia64/dl-machine.h: Likewise.
8327 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
8328 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8329 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
8330 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
8331 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
8332 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
8333 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
8334 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
8336 2002-01-29 Ulrich Drepper <drepper@redhat.com>
8338 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
8340 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
8342 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
8344 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
8346 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
8348 2002-01-29 Ben Collins <bcollins@debian.org>
8350 * string/bits/string2.h (__mempcpy): Protect size arg for
8351 addition when using __builtin_memcpy.
8353 2002-01-29 Ulrich Drepper <drepper@redhat.com>
8355 * stdlib/Makefile (tests): Add tst-qsort.
8356 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
8358 * manual/signal.texi (Process Signal Mask): Document that
8359 pthread_sigmask, not sigprocmask, must be used in MT programs.
8360 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
8362 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
8364 * misc/Makefile (tests): Add tst-hsearch.
8365 * misc/tst-hsearch.c: New file.
8367 2002-01-18 Wolfram Gloger <wg@malloc.de>
8369 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
8370 * malloc/malloc.h: Likewise.
8371 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
8372 * malloc/arena.c: New file.
8373 * malloc/hooks.c: New file.
8374 * malloc/tst-mallocstate.c: New file.
8375 * malloc/Makefile: Add new testcase tst-mallocstate.
8376 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
8378 2002-01-28 Ulrich Drepper <drepper@redhat.com>
8380 * stdlib/msort.c: Remove last patch. The optimization violates the
8381 same rule which qsort.c had problems with.
8383 2002-01-27 Paul Eggert <eggert@twinsun.com>
8385 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
8386 to a pivot element that lies outside the array to be sorted, as
8387 ISO C99 requires that the comparison function be called only with
8388 addresses of array elements [PR libc/2880].
8390 2002-01-28 Ulrich Drepper <drepper@redhat.com>
8392 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
8393 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
8395 * timezone/asia: Update from tzdata2002b.
8396 * timezone/australasia: Likewise.
8397 * timezone/backward: Likewise.
8398 * timezone/europe: Likewise.
8399 * timezone/leapseconds: Likewise.
8400 * timezone/iso3166.tab: Likewise.
8401 * timezone/zone.tab: Likewise.
8403 2002-01-23 Richard Henderson <rth@redhat.com>
8405 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
8407 2002-01-28 Ulrich Drepper <drepper@redhat.com>
8409 * string/strxfrm.c: Allocate one more byte for rulearr and clear
8410 this element [PR libc/2855].
8412 * string/strcoll.c: Handle zero-length arguments specially
8415 2002-01-23 Jakub Jelinek <jakub@redhat.com>
8417 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
8418 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
8419 short lengths and constant src.
8420 (strcpy): Don't optimize for gcc 3.0+.
8421 (__stpcpy): For gcc 3.0+, don't use
8422 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
8423 for short string literal src.
8425 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
8427 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
8430 2001-01-22 Paul Eggert <eggert@twinsun.com>
8432 * manual/llio.texi (Linked Channels, Cleaning Streams):
8433 Make it clearer that a just-opened input stream might need cleaning.
8435 2002-01-21 H.J. Lu <hjl@gnu.org>
8437 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
8438 Don't use label at end of compound statement.
8440 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
8442 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
8443 Remove test for negative integer arg; sin_pi does it correctly.
8445 2002-01-20 Ulrich Drepper <drepper@redhat.com>
8447 * nscd/Makefile (distribute): Filter out xmalloc.c.
8449 2002-01-19 Ulrich Drepper <drepper@redhat.com>
8451 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
8452 Set offset if read end wasn't the buffer end.
8453 (_IO_file_seekoff_mmap): New function.
8454 (_IO_file_xsgetn_mmap): New function.
8455 (_IO_file_jumps_mmap): Use the two new functions.
8456 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
8458 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
8459 _IO_file_underflow_mmap.
8460 * libio/iofopen.c: Don't position file descriptor at end of file.
8461 * libio/tst-widetext.c: Improve error messages.
8462 * stdio-common/tst-rndseek.c: Likewise.
8464 2002-01-18 Ulrich Drepper <drepper@redhat.com>
8466 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
8467 end of enum for !_GNU_SOURCE.
8468 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
8469 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
8470 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
8471 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
8472 values unless _GNU_SOURCE.
8474 * iconvdata/tcvn5712-1.c: Minor cleanups.
8476 2002-01-18 Andreas Schwab <schwab@suse.de>
8478 * sysdeps/unix/sysv/linux/configure.in
8479 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
8481 2002-01-16 Roger Sayle <roger@eyesopen.com>
8483 * stdlib/msort.c (msort_with_tmp): Replace implementation with
8484 more efficient "Towers of Hanoi" mergesort.
8485 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
8486 for generic, sizeof(int) and sizeof(long) variants respectively.
8488 2002-01-17 Ulrich Drepper <drepper@redhat.com>
8490 * manual/syslog.texi (openlog): Describe possible problems with
8492 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
8494 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
8495 * nscd/connections.c (begin_drop_privileges): New function.
8496 (finish_drop_privileges): New function.
8497 (nscd_init): Call the new functions which also install all groups
8498 for the server user.
8499 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
8500 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
8502 2002-01-17 H.J. Lu <hjl@gnu.org>
8504 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
8507 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
8509 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
8510 instructions for pointer operations.
8511 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
8513 2002-01-17 Andreas Jaeger <aj@suse.de>
8515 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
8516 __uint128_t build-in.
8518 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
8519 PowerPC, sync with 2.2 branch.
8521 2002-01-16 Ulrich Drepper <drepper@redhat.com>
8523 * posix/getconf.c: Update copyright year.
8524 * nss/getent.c: Likewise.
8525 * nscd/nscd_nischeck.c: Likewise.
8526 * iconv/iconvconfig.c: Likewise.
8527 * iconv/iconv_prog.c: Likewise.
8528 * elf/ldconfig.c: Likewise.
8529 * catgets/gencat.c: Likewise.
8530 * csu/version.c: Likewise.
8531 * elf/ldd.bash.in: Likewise.
8532 * elf/sprof.c (print_version): Likewise.
8533 * locale/programs/locale.c: Likewise.
8534 * locale/programs/localedef.c: Likewise.
8535 * nscd/nscd.c (print_version): Likewise.
8536 * debug/xtrace.sh: Likewise.
8537 * malloc/memusage.sh: Likewise.
8538 * malloc/mtrace.pl: Likewise.
8540 2002-01-16 Andreas Schwab <schwab@suse.de>
8542 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
8543 reliably remove "-ia64" from rtld name.
8545 2002-01-16 Ulrich Drepper <drepper@redhat.com>
8547 * iconvdata/gb18030.c: Bug fixes and support for more characters.
8548 Patch by Yu Shao <yshao@redhat.com>.
8550 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
8552 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
8553 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
8554 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
8556 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
8558 * sysdeps/s390/fpu/libm-test-ulps: Update.
8560 2002-01-11 Ulrich Drepper <drepper@redhat.com>
8562 * elf/elf.h: Update x86 relocations.
8564 2002-01-10 Ulrich Drepper <drepper@redhat.com>
8566 * locale/programs/charmap.c (new_width): Check whether byte
8567 sequences for both ends of range have the same length.
8569 2002-01-09 Jakub Jelinek <jakub@redhat.com>
8571 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
8573 2002-01-09 Jakub Jelinek <jakub@redhat.com>
8575 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
8577 (__full_ieee754_sqrt): Add __attribute_used__.
8579 2002-01-10 Ulrich Drepper <drepper@redhat.com>
8581 * sysdeps/generic/group_member.c (__group_member): Also check
8582 groups[0] [PR libc/2781].
8584 2002-01-08 Ulrich Drepper <drepper@redhat.com>
8586 * Makefile (distribute): Add scripts/cpp.
8587 * elf/Makefile (distribute): Add reldep6mod[01234].c,
8588 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
8589 unwind-dw2-fde.h, and dwarf2.h.
8590 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
8591 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
8592 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
8593 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
8595 2002-01-07 Roland McGrath <roland@frob.com>
8597 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
8598 volatile on type of ARGC so the compiler doesn't get clever.
8600 2002-01-07 Andreas Jaeger <aj@suse.de>
8602 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
8603 * sysdeps/i386/bits/byteswap.h: Likewise.
8604 * sysdeps/ia64/bits/byteswap.h: Likewise.
8605 * sysdeps/m68k/bits/byteswap.h: Likewise.
8606 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
8607 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
8609 2002-01-02 Bruno Haible <bruno@clisp.org>
8611 * intl/plural.y: Fix %expect count.
8613 2002-01-03 Jakub Jelinek <jakub@redhat.com>
8615 * elf/Makefile (routines, shared-only-routines): Add
8616 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
8617 * elf/elf.h (PT_GNU_EH_FRAME): Define.
8618 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
8619 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
8620 Optimize if .eh_frame section contains no FDEs.
8621 (__register_frame, __deregister_frame_info_bases,
8622 __deregister_frame): Likewise.
8623 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
8624 DW_CFA_restore handling.
8626 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
8628 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
8630 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
8631 for x < 0.25 and restore original range reduction method.
8632 (__ieee754_lgammal_r): Make sure signgam is set before returning.
8634 2002-01-07 Ulrich Drepper <drepper@redhat.com>
8636 * libio/fileops.c (_IO_file_underflow_mmap): New function.
8637 (_IO_file_close_mmap): New function.
8638 (_IO_file_jumps_mmap): New variable.
8639 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
8640 trying to convert rest of byte buffer.
8641 (_IO_wfile_underflow_mmap): New function.
8642 (_IO_wfile_jumps_mmap): New variable.
8643 * libio/iofopen.c (__fopen_maybe_mmap): New function.
8644 (__fopen_internal): New function. Split out from _IO_new_fopen.
8645 (_IO_new_fopen): Call __fopen_internal.
8646 * libio/iofopen64.c: Just call __fopen_internal.
8647 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
8649 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
8650 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
8651 _IO_file_close_mmap.
8653 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
8654 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
8656 * stdio-common/Makefile (tests): Add tst-rndseek.
8657 * stdio-common/tst-rndseek.c: New file.
8659 2002-01-05 Roland McGrath <roland@frob.com>
8661 * config.h.in (HAVE_MIG_RETCODE): New #undef.
8662 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
8663 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
8664 * sysdeps/mach/hurd/configure: Regenerated.
8666 2002-01-03 Ulrich Drepper <drepper@redhat.com>
8668 * elf/elf.h: Add more TLS definitions.
8670 2002-01-02 Ulrich Drepper <drepper@redhat.com>
8672 * include/features.h (__GLIBC_MINOR__): Bump to 3.
8674 2002-01-02 Roland McGrath <roland@frob.com>
8676 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
8677 __sigisemptyset. Don't use MASK uninitialized.
8679 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
8680 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
8681 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
8682 __sigdelset, __sigaddset, __sigorset.
8684 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
8685 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
8687 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
8688 _hurd_ports is null.
8690 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
8691 for old CMU and new OSF Mach interface flavors.
8692 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
8693 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
8695 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
8697 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
8698 Pass extra arguments to task_create for OSF variant.
8699 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
8701 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
8702 conditional on [HAVE_AUX_VECTOR].
8704 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
8705 mach_msg_timeout_t as type of final argument.
8707 * hurd/privports.c (__get_privileged_ports):
8708 Change host_priv_t to mach_port_t in argument type.
8709 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
8712 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
8713 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
8714 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
8715 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
8716 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
8717 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
8719 2002-01-01 Roland McGrath <roland@frob.com>
8721 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
8723 2002-01-01 Ulrich Drepper <drepper@redhat.com>
8725 * include/stdlib.h: Define inlines for the _l variants of the strto*
8728 2002-01-01 Roland McGrath <roland@frob.com>
8730 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
8732 * mach/Machrules (MIG): Set CPP as well as CC.
8734 2001-12-31 Ulrich Drepper <drepper@redhat.com>
8736 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
8737 locale to parse /proc/loadavg [PR libc/2760].
8739 2001-12-31 Jakub Jelinek <jakub@redhat.com>
8741 * elf/dl-conflict.c: Include sys/param.h.
8742 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
8743 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
8745 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
8746 literals to avoid warnings.
8748 2001-12-31 Andreas Jaeger <aj@suse.de>
8750 * configure.in: Don't check for gsed since we do not use it anywhere.
8752 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
8754 * io/fts.c: Update from BSD to fix memory leaks.
8756 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
8758 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
8759 * elf/chroot_canon.c: Likewise.
8760 * elf/dl-object.c: Likewise.
8761 * iconv/iconv_charmap.c: Likewise.
8762 * iconv/iconv_prog.c: Likewise.
8763 * libio/iogetdelim.c: Likewise.
8764 * locale/lc-time.c: Likewise.
8765 * stdlib/canonicalize.c: Likewise.
8766 * sunrpc/svc.c: Likewise.
8767 * sysdeps/generic/glob.c: Likewise.
8769 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
8771 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
8772 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
8773 remove high order bit from the program counter.
8774 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
8776 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
8778 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
8779 unnecessary code and add missing reloc types.
8780 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
8781 case for reloc type R_390_NONE.
8783 2001-12-28 Andreas Jaeger <aj@suse.de>
8785 * io/bug-ftw3.c: Include string.h for prototypes.
8787 * crypt/md5test.c (main): Remove unused variable.
8789 * dlfcn/modstatic.c: Add prototype to avoid warning.
8791 2001-12-26 Roland McGrath <roland@frob.com>
8793 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
8794 check only (SS->pending & MASK) for the signal to return.
8795 From Jeroen Dekkers <jeroen@dekkers.cx>.
8797 2001-12-22 Roland McGrath <roland@frob.com>
8799 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
8800 Use preprocessor #if conditionals instead of `if' to avoid
8801 warnings about divide by zero in dead code.
8803 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
8804 _hurd_port_init, and __hurd_self_sigstate.
8806 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
8808 2001-12-21 Andreas Jaeger <aj@suse.de>
8810 * elf/dblloadmod1.c: Add prototype to avoid warning.
8811 * elf/dblloadmod2.c: Likewise.
8812 * elf/dblloadmod3.c: Likewise.
8813 * elf/reldepmod5.c: Likewise.
8814 * elf/reldepmod6.c: Likewise.
8816 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
8817 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
8818 used on all architectures.
8820 * sunrpc/svc_tcp.c: Add noreturn attribute for
8821 svctcp_rendezvous_abort.
8822 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
8824 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
8827 2001-12-19 Jakub Jelinek <jakub@redhat.com>
8829 * manual/llio.texi (aio_fsync): Fix a typo.
8830 Patch by Tammy Fox <tfox@redhat.com>.
8832 2001-12-18 Jakub Jelinek <jakub@redhat.com>
8834 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
8835 stack bias from child stack pointer before passing it to clone syscall.
8837 2001-12-18 Ulrich Drepper <drepper@redhat.com>
8839 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
8841 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
8842 Reported by Thorsten Kukuk <kukuk@suse.de>.
8844 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
8847 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
8849 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
8851 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
8852 conforming: return EBADF if file descriptor is invalid and EINVAL
8853 if file descriptor is no valid tty.
8854 * login/tst-grantpt.c: New file.
8855 * login/Makefile (tests): Add tst-grantpt.
8857 2001-12-17 Ulrich Drepper <drepper@redhat.com>
8859 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
8860 different than implemented in last patch.
8861 * io/bug-ftw3.c: Adjust test for changed handling of
8862 inaccessibility of toplevel dir.
8864 2001-12-16 Roland McGrath <roland@frob.com>
8866 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
8867 * grp/initgroups.c (internal_getgrouplist): Likewise.
8869 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
8870 `default:' to silence new GCC warning.
8871 Rewrite cast of lvalue to silence new GCC warning.
8873 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
8875 * sysdeps/mach/hurd/spawni.c: New file, by me with a
8876 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
8878 2001-12-14 Ulrich Drepper <drepper@redhat.com>
8880 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
8881 Patch by Stephen R. van den Berg.
8883 * crypt/md5.h: Define md5_uintptr.
8885 2001-12-13 Ulrich Drepper <drepper@redhat.com>
8887 * libio/tst_swprintf.c (main): Add test for string argument with
8889 * stdio-common/Makefile (tests): Add tst-sprintf.
8890 * stdio-common/tst-sprintf.c: New file.
8892 2001-12-13 Andreas Schwab <schwab@suse.de>
8894 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
8895 zero precision with wide character string format.
8897 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
8899 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
8900 but have a user supplied buffer, return the empty buffer, not NULL.
8902 2001-12-13 Ulrich Drepper <drepper@redhat.com>
8904 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
8905 Patch by Eric Sharkey <sharkey@netrics.com>.
8907 * crypt/md5test.c (main): Add test for multiple calls to
8908 __md5_process_bytes to itererate over input string.
8910 2001-12-12 Ulrich Drepper <drepper@redhat.com>
8912 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
8913 from __nis_findfastest. Take timeout value from parameter.
8914 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
8915 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
8916 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
8918 2001-12-12 Andreas Jaeger <aj@suse.de>
8920 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
8921 combreloc test so that it works in this case.
8923 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
8925 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
8927 * sysdeps/sh/Makefile: New file.
8928 * sysdeps/sh/_mcount.S: New file.
8929 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
8930 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
8932 2001-12-11 Ulrich Drepper <drepper@redhat.com>
8934 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
8935 limitation [PR libc/2564].
8937 2001-12-11 Jakub Jelinek <jakub@redhat.com>
8939 * elf/Makefile (dl-routines): Add conflict.
8940 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
8941 (ld.so): Add _begin local symbol.
8942 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
8944 * elf/dl-deps.c (_dl_build_local_scope): New.
8945 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
8947 * elf/do-rel.h (VALIDX): Define.
8948 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
8949 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
8951 * elf/dl-conflict.c: New file.
8952 * elf/dl-lookup.c (_dl_debug_bindings): New.
8953 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
8955 (_dl_lookup_symbol_skip): Likewise.
8956 (_dl_lookup_versioned_symbol): Likewise.
8957 (_dl_lookup_versioned_symbol_skip): Likewise.
8958 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
8959 define to ElfW(Rel).
8960 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
8961 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
8963 Don't adjust address dynamic tags if l_addr is 0.
8964 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
8965 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
8966 (VALIDX, ADDRIDX): Define.
8967 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
8968 (dl_main): Print library list for LD_TRACE_PRELINKING.
8969 If prelinking information can be used, skip relocating libraries and
8970 call _dl_resolve_conflicts instead.
8971 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
8972 * elf/dl-load.c (_dl_map_object): Don't create fake libs
8973 if LD_TRACE_PRELINKING.
8974 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
8976 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
8977 (DL_DEBUG_PRELINK): Define.
8978 (_dl_resolve_conflicts): Add prototype.
8980 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
8981 .plt for prelinked libraries where prelinking info cannot be used.
8982 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
8983 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
8984 * sysdeps/arm/bits/link.h: New file.
8985 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
8987 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
8988 (ELF_MACHINE_PLT_REL): Define.
8989 (elf_machine_rela, elf_machine_rela_relative): New.
8990 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
8991 of adjusting it if prelinked and prelinking cannot be used.
8992 * sysdeps/i386/bits/link.h: New file.
8993 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
8995 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
8996 (ELF_MACHINE_PLT_REL): Define.
8997 (elf_machine_rela, elf_machine_rela_relative): New.
8998 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
8999 of adjusting it if prelinked and prelinking cannot be used.
9000 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
9001 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
9002 to find out map for R_PPC_JMP_SLOT relocs.
9003 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
9004 (OPCODE_BA): Define.
9005 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
9006 libraries where prelinking info cannot be used.
9007 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
9008 (elf_machine_fixup_plt): Call sparc_fixup_plt.
9009 (elf_machine_rela): Set value to 0 if relocating conflicts.
9010 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
9011 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
9012 (sparc64_fixup_plt): Fix a typo.
9013 (elf_machine_rela): Set value to 0 if relocating conflicts.
9014 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
9015 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
9016 libraries where prelinking info cannot be used.
9017 * sysdeps/sh/bits/link.h: New file.
9018 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
9020 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
9021 of adjusting it if prelinked and prelinking cannot be used.
9022 * sysdeps/s390/s390-32/bits/link.h: New file.
9023 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
9024 Save original content of .got[1].
9025 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
9026 of adjusting it if prelinked and prelinking cannot be used.
9027 * sysdeps/s390/s390-64/bits/link.h: New file.
9028 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
9029 Save original content of .got[1].
9030 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
9031 of adjusting it if prelinked and prelinking cannot be used.
9032 * sysdeps/x86_64/bits/link.h: New file.
9033 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
9034 Save original content of .got[1].
9035 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
9036 of adjusting it if prelinked and prelinking cannot be used.
9038 2001-12-11 Ulrich Drepper <drepper@redhat.com>
9040 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
9041 where appropriate instead of numbers. Little optimizations.
9043 2001-12-10 Roland McGrath <roland@frob.com>
9045 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
9048 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
9049 set to GLIBC_2.2.5, not GLIBC_2.2.4.
9051 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
9052 Fix conditionals so this is set by default for stdio and not for libio.
9053 * sysdeps/mach/hurd/configure: Regenerated.
9055 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
9057 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
9059 2001-12-10 Ulrich Drepper <drepper@redhat.com>
9061 * io/Makefile (tests): Add bug-ftw3.
9062 * io/bug-ftw3.c: New file.
9064 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
9065 matches and GLOB_NOCHECK is set.
9066 * posix/globtest.sh: Correct expected result for NOCHECK test.
9068 * po/ca.po: Update from translation team.
9070 2001-12-09 Ulrich Drepper <drepper@redhat.com>
9072 Implement transliteration of characters in strings of the locale
9074 * locale/programs/linereader.c: Adjust for additional parameter to
9076 (get_string): If character <Uxxxx> is not found try to transliterate
9078 * locale/programs/ld-ctype.c: Adjust for additional parameter to
9079 lr_token. Add const to charmap parameter of all functions.
9080 (find_translit, find_translit2): New functions.
9081 * locale/programs/charmap.c: Adjust for additional parameter to
9083 * locale/programs/repertoire.c: Likewise.
9084 * locale/programs/linereader.h: Likewise.
9085 * locale/programs/ld-address.c: Likewise. Add const to charmap
9086 parameter of all functions.
9087 * locale/programs/ld-collate.c: Likewise.
9088 * locale/programs/ld-identification.c: Likewise.
9089 * locale/programs/ld-measurement.c: Likewise.
9090 * locale/programs/ld-messages.c: Likewise.
9091 * locale/programs/ld-monetary.c: Likewise.
9092 * locale/programs/ld-name.c: Likewise.
9093 * locale/programs/ld-numeric.c: Likewise.
9094 * locale/programs/ld-paper.c: Likewise.
9095 * locale/programs/ld-paper.c: Likewise.
9096 * locale/programs/ld-telephone.c: Likewise.
9097 * locale/programs/ld-time.c: Likewise.
9098 * locale/programs/locfile.c: Likewise.
9099 * locale/programs/localedef.c: Likewise.
9100 * locale/programs/localedef.h: Likewise.
9101 * locale/programs/locfile.h: Likewise. Add declaration for
9103 * locale/programs/simple-hash.c: Add const to first parameter of
9104 find_entry, iterate_table, and lookup.
9105 * locale/programs/simple-hash.h: Likewise.
9106 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
9108 * include/locale.h: Define __LC_LAST.
9109 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
9111 2001-12-07 Geoff Keating <geoffk@redhat.com>
9113 * sysdeps/powerpc/Dist: Update for recent FP changes.
9114 * sysdeps/powerpc/fpu/Dist: Likewise.
9116 2001-12-07 Andreas Schwab <schwab@suse.de>
9118 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
9120 2001-12-06 Geoff Keating <geoffk@redhat.com>
9122 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
9123 save/restore functions here.
9124 (libm-support): Don't define these functions here.
9125 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
9127 * sysdeps/powerpc/fe_nomask.c: Move to...
9128 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
9129 * sysdeps/powerpc/fprrest.S: Move to...
9130 * sysdeps/powerpc/fpu/fprrest.S: ... here.
9131 * sysdeps/powerpc/fprsave.S: Move to...
9132 * sysdeps/powerpc/fpu/fprsave.S: ... here.
9134 2001-12-06 Ulrich Drepper <drepper@redhat.com>
9136 * sysdeps/unix/sysv/linux/opensock.c: New file.
9138 2001-12-06 Geoff Keating <geoffk@redhat.com>
9140 * config.make.in (with-fp): Define from configure.
9141 * configure.in: Substitute with_fp.
9142 * configure: Regenerate.
9143 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
9144 specified, and don't change FPU environment.
9146 2001-12-06 Ulrich Drepper <drepper@redhat.com>
9148 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
9149 * assert/assert.c: Check result of __asprintf call and don't use
9150 string if it failed.
9151 * assert/assert-perr.c: Likewise.
9152 * inet/rcmd.c: Likewise.
9153 * locale/programs/localedef.c (main): Check result of
9154 construct_output_path and exit if it failed.
9155 (construct_output_path): Check result of asprintf and mkdir calls and
9156 fail if they failed.
9157 * posix/getopt.c: Check result of __asprintf calls and fail if
9159 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
9161 2001-12-05 Ulrich Drepper <drepper@redhat.com>
9163 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
9165 * sysdeps/generic/strncase.c: Likewise.
9166 * string/tester.c: Add tests for strcasecmp and strncasecmp.
9168 2001-12-05 Geoff Keating <geoffk@redhat.com>
9170 * scripts/cpp: Test the exit status from 'type', not 'awk'.
9172 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
9173 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
9174 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
9175 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
9176 * sysdeps/powerpc/fclrexcpt.c: Move to...
9177 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
9178 * sysdeps/powerpc/fpu_control.h: Move to...
9179 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
9181 2001-12-05 Ulrich Drepper <drepper@redhat.com>
9183 * iconvdata/ibm1129.h: Remove duplicate mappings.
9184 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
9185 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
9186 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9188 * timezone/zic.c: Fix handling of turnaround times.
9189 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
9191 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
9193 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
9196 2001-12-05 Ulrich Drepper <drepper@redhat.com>
9198 * posix/regex.c: For use outside glibc defined bounded pointer
9199 macros here. Patch by Jim Meyering <jim@meyering.net>.
9201 * iconvdata/Makefile (modules): Add TCVN5712-1.
9202 * iconvdata/TESTS: Add TCVN5712-1.
9203 * iconvdata/gconv-modules: Likewise.
9204 * iconvdata/tcvn5712-1.c: New file.
9205 * iconvdata/testdata/TCVN-5712: New file.
9206 * iconvdata/testdata/TCVN-5712..UTF8: New file.
9208 2001-12-04 Ulrich Drepper <drepper@redhat.com>
9210 * iconvdata/cp1258.c: Optimize conversion from UCS4.
9212 2001-12-02 Roland McGrath <roland@frob.com>
9214 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
9216 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
9217 Reported by Jeff Bailey <jbailey@nisa.net>.
9219 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
9220 Reported by Jeff Bailey <jbailey@nisa.net>.
9222 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
9223 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
9224 Reported by Jeff Bailey <jbailey@nisa.net>.
9226 2001-12-01 Roland McGrath <roland@frob.com>
9228 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
9229 missing backslash in test arguments.
9230 * sysdeps/mach/hurd/configure: Regenerated.
9232 2001-11-26 Roland McGrath <roland@frob.com>
9234 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
9235 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
9237 2001-11-30 Ulrich Drepper <drepper@redhat.com>
9239 * iconvdata/Makefile (modules): Add ARMSCII-8.
9240 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
9241 * iconvdata/armscii-8.c: New file.
9243 2001-11-29 Jakub Jelinek <jakub@redhat.com>
9245 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
9246 don't match, fix {{a,b},c} globbing, clean up.
9247 Patch by Flavio Veloso <flaviovs@magnux.com>.
9248 * posix/globtest.sh: Add new tests.
9250 2001-11-29 Andreas Jaeger <aj@suse.de>
9252 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
9253 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
9255 * sysdeps/generic/abort.c: Include libioP.h for
9256 _IO_flush_all_lockp prototype.
9258 2001-11-29 Ulrich Drepper <drepper@redhat.com>
9260 * posix/regex.h: Define __restrict_arr correctly.
9262 2001-11-28 Ulrich Drepper <drepper@redhat.com>
9264 * iconvdata/ibm1163.c: New file.
9265 * iconvdata/ibm1163.h: New file.
9266 * iconvdata/ibm1164.c: New file.
9267 * iconvdata/ibm1164.h: New file.
9268 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
9269 * iconvdata/Makefile: Likewise.
9270 * iconvdata/testdata/IBM1163: New file.
9271 * iconvdata/testdata/IBM1163..UTF8: New file.
9272 * iconvdata/testdata/IBM1164: New file.
9273 * iconvdata/testdata/IBM1164..UTF8: New file.
9274 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9276 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
9277 * iconvdata/ibm1124.h: Likewise.
9278 * iconvdata/ibm1132.h: Likewise.
9279 * iconvdata/ibm1133.h: Likewise.
9280 * iconvdata/ibm1160.h: Likewise.
9281 * iconvdata/ibm1161.h: Likewise.
9282 * iconvdata/ibm1162.h: Likewise.
9283 * iconvdata/ibm856.h: Likewise.
9284 * iconvdata/ibm922.h: Likewise.
9285 * iconvdata/ibm930.h: Likewise.
9286 * iconvdata/ibm932.h: Likewise.
9287 * iconvdata/ibm933.h: Likewise.
9288 * iconvdata/ibm935.h: Likewise.
9289 * iconvdata/ibm937.h: Likewise.
9290 * iconvdata/ibm939.h: Likewise.
9291 * iconvdata/ibm943.h: Likewise.
9292 * iconvdata/ibm930.c: Pretty printing.
9293 * iconvdata/ibm937.c: Avoid access accross array boundary.
9295 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
9296 the current locale's codeset.
9297 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
9299 * iconv/iconv_prog.c: Pass empty strings as default value for to-
9300 and from-charset. Don't determine locale's charset here.
9302 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
9303 as the old _IO_flush_all but lock only if parameter is nonzero.
9304 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
9305 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
9306 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
9307 if libio is used [PR libc/2575].
9309 2001-11-28 Jakub Jelinek <jakub@redhat.com>
9311 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
9312 __signbitl): Only define for ISO C99.
9314 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
9316 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
9317 herrnop to NETDB_INTERNAL if we run out of buffer space.
9319 2001-11-28 Ulrich Drepper <drepper@redhat.com>
9321 * nss/nss_files/files-XXX.c (internal_getent): Correct input
9322 overflow test for platforms with signed char.
9323 Reported by Andrew Haley <aph@cambridge.redhat.com>.
9325 2001-11-28 Bruno Haible <bruno@clisp.org>
9327 * locale/programs/simple-hash.c (lookup_2): Remove function.
9328 (insert_entry_2): Call lookup instead of lookup_2.
9330 2001-03-04 Bruno Haible <bruno@clisp.org>
9332 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
9334 2001-10-31 Bruno Haible <bruno@clisp.org>
9336 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
9338 2001-03-21 Bruno Haible <bruno@clisp.org>
9340 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
9341 chokes on empty macro arguments.
9342 * intl/plural.y: Add #pragma for alloca on AIX 3.
9344 2001-11-27 Ulrich Drepper <drepper@redhat.com>
9346 * intl/dcigettext.c (guess_category_value): Only implement for
9347 glibc. Otherwise rely on function _nl_locale_name which isn't
9348 present in the glibc sources.
9350 2001-09-24 Bruno Haible <bruno@clisp.org>
9352 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
9353 transliteration when building on a glibc system but outside glibc.
9355 2001-09-22 Bruno Haible <bruno@clisp.org>
9357 * intl/plural-eval.c: New file, extracted from dcigettext.c.
9358 * intl/dcigettext.c (plural_eval): Remove function, moved to
9360 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
9361 Include plural-eval.c.
9363 2001-09-22 Bruno Haible <bruno@clisp.org>
9365 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
9366 don't start with a digit; nplurals must be positive.
9368 2001-09-02 Bruno Haible <bruno@clisp.org>
9370 * intl/plural-exp.h: New file, extracted from gettextP.h.
9371 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
9372 * intl/gettextP.h (struct expression, struct parse_args,
9373 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
9374 * intl/loadmsgcat.c: Include plural-exp.h.
9375 (PLURAL_PARSE): Move macro to plural-exp.h.
9376 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
9378 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
9379 EXTRACT_PLURAL_EXPRESSION.
9380 (_nl_unload_domain): Update.
9381 * intl/dcigettext.c: Include plural-exp.h.
9382 * intl/plural.y: Include plural-exp.h, not gettextP.h.
9383 (FREE_EXPRESSION): Move macro to plural-exp.h.
9384 * intl/Makefile (routines): Add plural-exp.
9385 (distribute): Add plural-exp.h.
9387 2001-07-28 Bruno Haible <bruno@clisp.org>
9389 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
9390 isdigit, tolower argument to 'unsigned char'.
9391 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
9393 * intl/localealias.c (read_alias_file): Cast isspace argument to
9396 2001-10-20 Bruno Haible <bruno@clisp.org>
9398 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
9400 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
9401 with the variable 'index' in plural_lookup.
9402 * intl/l10nflist.c (strchr): Likewise.
9403 * intl/localealias.c (strchr): Likewise.
9405 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
9406 * intl/bindtextdom.c: Likewise.
9407 * intl/dcigettext.c: Likewise.
9408 * intl/dgettext.c: Likewise.
9409 * intl/dngettext.c: Likewise.
9410 * intl/explodename.c: Likewise.
9411 * intl/finddomain.c: Likewise.
9412 * intl/gettext.c: Likewise.
9413 * intl/l10nflist.c: Likewise.
9414 * intl/loadmsgcat.c: Likewise.
9415 * intl/localealias.c: Likewise.
9416 * intl/ngettext.c: Likewise.
9417 * intl/textdomain.c: Likewise.
9418 * intl/gettext.h: Assume <limits.h> exists.
9420 2001-11-27 Ulrich Drepper <drepper@redhat.com>
9422 * stdio-common/Makefile (tests): Add scanf11.
9423 * stdio-common/scanf11.c: New file.
9425 2001-11-26 Ulrich Drepper <drepper@redhat.com>
9427 * version.h (RELEASE): Define as development.
9428 (VERSION): Set to 2.2.90.
9430 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
9432 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
9433 * nis/nss_nis/nis-grp.c: Likewise.
9434 * nis/nss_nisplus/nisplus-grp.c: Likewise.
9436 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
9437 * nis/nss_nis/nis-pwd.c: Likewise.
9438 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
9440 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
9441 * nis/nss_nisplus/nisplus-parser.c: Likewise.
9442 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9444 * nscd/grpcache.c: Use strtoul instead of atol.
9445 * nscd/pwdcache.c: Likewise.
9446 * nss/getent.c: Likewise.
9448 2001-11-27 Paul Eggert <eggert@twinsun.com>
9450 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
9451 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
9453 2001-11-19 Bruno Haible <bruno@clisp.org>
9455 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
9457 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
9458 improves the quality of the hash function, especially for short
9461 2001-11-26 Ulrich Drepper <drepper@redhat.com>
9463 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
9464 are found call conv_error and not input_error [PR libc/2669].
9466 * math/bits/mathcalls.h: Mark ceil and floor as const.
9467 Reported by David Mosberger.
9469 2001-11-21 Jim Meyering <meyering@lucent.com>
9471 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
9472 Define to be __-prefixed.
9473 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
9475 2001-11-26 Andreas Jaeger <aj@suse.de>
9477 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
9480 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
9482 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
9485 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
9486 unused variables. Fix threshold for returning 1.0.
9488 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
9491 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
9492 remove unused variables.
9494 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
9496 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
9497 include local math header files.
9499 2001-11-22 Andreas Jaeger <aj@suse.de>
9501 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
9504 2001-11-21 Andreas Jaeger <aj@suse.de>
9506 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
9508 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
9511 2001-11-15 Andreas Jaeger <aj@suse.de>
9513 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
9514 compilers that support it.
9516 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
9517 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9518 * stdlib/stdlib.h: Likewise.
9520 2001-11-17 Ulrich Drepper <drepper@redhat.com>
9522 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
9523 statement with gotos.
9524 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
9526 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
9528 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
9530 2001-11-15 Ulrich Drepper <drepper@redhat.com>
9532 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
9534 2001-10-02 Jakub Jelinek <jakub@redhat.com>
9535 H.J. Lu <hjl@gnu.org>
9537 * Versions.def (libc): Add GCC_3.0.
9538 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
9539 if gcc supports this flag.
9540 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
9541 (gcc3): Allow glibc to be compiled with gcc 3.x.
9542 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
9543 * config.make.in (static-libgcc, unwind-find-fde): Add.
9544 * Makerules (build-shlib-helper, build-module-helper): Use it.
9545 * scripts/versions.awk: Make sure GLIBC_ versions come first.
9546 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
9548 (_fini): Call __deregister_frame_info_bases if
9549 __register_frame_info_bases was used to register.
9550 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
9552 (__register_frame_info_bases, __register_frame_info_table_bases,
9553 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
9554 * elf/Makefile (routines): Add unwind-dw2-fde.
9555 (shared-only-routines): Add unwind-dw2-fde.
9556 * sysdeps/alpha/gccframe.h: New file.
9557 * sysdeps/arm/gccframe.h: New file.
9558 * sysdeps/generic/framestate.c: New file.
9559 * sysdeps/generic/dwarf2.h: New file.
9560 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
9561 * sysdeps/generic/unwind-dw2-fde.c: New file.
9562 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
9563 * sysdeps/generic/unwind-dw2-fde.h: New file.
9564 * sysdeps/generic/unwind-dw2.c: New file.
9565 * sysdeps/generic/unwind-pe.h: New file.
9566 * sysdeps/generic/unwind.h: New file.
9567 * sysdeps/hppa/gccframe.h: New file.
9568 * sysdeps/i386/gccframe.h: New file.
9569 * sysdeps/m68k/gccframe.h: New file.
9570 * sysdeps/mips/gccframe.h: New file.
9571 * sysdeps/powerpc/gccframe.h: New file.
9572 * sysdeps/s390/gccframe.h: New file.
9573 * sysdeps/sh/gccframe.h: New file.
9574 * sysdeps/sparc/gccframe.h: New file.
9575 * sysdeps/vax/gccframe.h: New file.
9576 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
9577 Set on all architectures except ia64.
9578 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
9580 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
9581 __deregister_frame_info): Move to elf/Versions.
9582 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
9583 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
9584 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
9585 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
9586 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
9587 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
9588 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
9589 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
9590 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
9591 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
9592 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
9593 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
9594 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9595 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
9596 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
9597 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
9598 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
9599 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
9601 2001-11-15 Jeff Law <law@redhat.com>
9603 * posix/regex.c (uintptr_t): Do not provide a definition if the
9604 system provided one.
9606 2001-11-13 Roland McGrath <roland@frob.com>
9608 * stdio-common/tmpfile.c: Moved to ...
9609 * sysdeps/generic/tmpfile.c: ... here.
9610 * sysdeps/mach/hurd/tmpfile.c: New file.
9612 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
9613 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
9614 (fopenport): Define as weak alias.
9616 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
9617 * libio/libioP.h: ... to here.
9619 2001-11-12 Ulrich Drepper <drepper@redhat.com>
9621 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
9622 program header twice. Construct list with the needed information.
9624 2001-11-10 Ulrich Drepper <drepper@redhat.com>
9626 * po/ca.po: Update from translation team.
9628 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
9629 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
9630 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
9631 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
9633 2001-11-10 Andreas Jaeger <aj@suse.de>
9635 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
9636 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9637 Contributed by Stephen L Moshier <moshier@mediaone.net>.
9639 2001-11-09 Ulrich Drepper <drepper@redhat.com>
9641 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
9643 * elf/dl-load.c (is_dst): New function.
9644 (_dl_dst_count): Use is_dst to check for DST variable.
9645 (_dl_dst_substitute): Likewise.
9647 2001-11-09 Roland McGrath <roland@frob.com>
9649 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
9650 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
9651 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
9652 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
9653 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
9654 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
9655 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
9656 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
9657 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
9658 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
9659 * sysdeps/mach/hurd/powerpc/Dist: New file.
9661 * hurd/privports.c (__get_privileged_ports):
9662 Only contact the proc server if necessary for this call.
9663 Suggested by Neal H Walfield <neal@cs.uml.edu>.
9664 Check error return for mach_port_mod_refs.
9666 2001-11-09 Andreas Schwab <schwab@suse.de>
9668 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
9670 2001-11-09 Ulrich Drepper <drepper@redhat.com>
9672 * elf/dl-load.c (lose): Remove some unnecessary code. The new
9673 object is always the last in the list.
9674 (_dl_map_object_from_fd): Delete code to remove from object list
9675 when DF_1_NOOPEN is seen. This is done in lose.
9677 2001-11-08 Ulrich Drepper <drepper@redhat.com>
9679 * elf/dl-object.c (_dl_new_object): Various small optimizations.
9681 2001-11-07 Ulrich Drepper <drepper@redhat.com>
9683 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
9684 HWCAP_CHECK macro code.
9686 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
9687 Now returns MAP_FAILED on error.
9688 * elf/rtld.c: Adjust caller.
9689 * sysdeps/generic/dl-cache.c: Likewise.
9690 * sysdeps/generic/ldsodefs.h: Adjust description.
9692 * elf/dl-version.c (match_symbol): Optimize error handling for size.
9693 (_dl_check_map_versions): Likewise.
9695 2001-11-06 Ulrich Drepper <drepper@redhat.com>
9697 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
9698 _dl_signal_error directly, always use lose. Set fd to -1 after
9700 (lose): Don't call close if fd == -1.
9702 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
9704 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
9705 Also fix typo @code {mbsinit} to @code{mbsinit}.
9707 2001-11-06 Ulrich Drepper <drepper@redhat.com>
9709 * elf/dl-profile.c: Replace state variable with simple flag named
9710 running. Remove commented-out code.
9712 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
9713 (_dl_init_paths): Likewise.
9714 (_dl_map_object_from_fd): Likewise.
9715 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
9717 2001-11-06 Roland McGrath <roland@frob.com>
9719 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
9720 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
9722 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
9723 sysdeps/powerpc/elf/sysdep.h.
9724 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
9726 2001-11-05 Ulrich Drepper <drepper@redhat.com>
9728 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
9730 (process_envvars): Some more optimizations.
9731 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
9733 * elf/elf.h: Add dynamic tag definitions for prelinking.
9735 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
9736 Rewrite code to remove environment varables for SUID binaries.
9737 Small optimization in LD_PROFILE handling.
9738 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
9740 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9742 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
9744 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
9745 strings. Change type of second parameter.
9746 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
9749 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
9751 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
9753 * manual/string.texi: Fix typos.
9754 * manual/examples/argp-ex2.c: Likewise.
9756 2001-11-05 Roland McGrath <roland@frob.com>
9758 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
9759 the more-specific unix/sysv/linux/powerpc file and breaks everything.
9760 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
9761 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
9762 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
9763 here, put under [__ELF__].
9765 2001-11-05 Ulrich Drepper <drepper@redhat.com>
9767 * manual/charset.texi: Extensive editing work.
9768 * manual/nss.texi: Likewise.
9769 Changes by Dennis Grace <dgrace@us.ibm.com>.
9771 2001-11-04 Roland McGrath <roland@frob.com>
9773 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
9774 parameter to dir_mkfile.
9776 2001-11-02 Jakub Jelinek <jakub@redhat.com>
9778 * string/bits/string2.h (__strndup): If n is smaller than len, set
9780 * string/tester.c (test_strndup): New function.
9783 2001-11-01 Ulrich Drepper <drepper@redhat.com>
9785 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
9787 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
9788 * scripts/cpp: New file.
9790 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
9791 for rtld_search_dirs content. Minor optimizations.
9793 2001-10-31 Ulrich Drepper <drepper@redhat.com>
9795 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
9796 avoiding unnecessary duplication.
9798 2001-10-31 Jakub Jelinek <jakub@redhat.com>
9800 * elf/dl-load.c (_dl_map_object): If library was found using
9801 LD_LIBRARY_PATH, don't try RUNPATH list.
9803 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
9805 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
9806 Correct second argument of register_dump call.
9807 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
9810 2001-10-31 Ulrich Drepper <drepper@redhat.com>
9812 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
9814 * iconvdata/TESTS: Likewise.
9815 * iconvdata/gconv-modules: Likewise.
9816 * iconvdata/ibm1132.c: New file.
9817 * iconvdata/ibm1132.h: New file.
9818 * iconvdata/ibm1133.c: New file.
9819 * iconvdata/ibm1133.h: New file.
9820 * iconvdata/ibm1162.c: New file.
9821 * iconvdata/ibm1162.h: New file.
9822 * iconvdata/testdata/IBM1132: New file.
9823 * iconvdata/testdata/IBM1132..UTF8: New file.
9824 * iconvdata/testdata/IBM1133: New file.
9825 * iconvdata/testdata/IBM1133..UTF8: New file.
9826 * iconvdata/testdata/IBM1162: New file.
9827 * iconvdata/testdata/IBM1162..UTF8: New file.
9828 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
9830 * string/string.h: Fix typo in comment.
9831 * wcsmbs/wchar.h: Likewise.
9833 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
9835 * manual/getopt.texi (getopt_long, getopt_long_only): Include
9836 const in type of longopts parameter.
9838 2001-10-29 Andreas Jaeger <aj@suse.de>
9840 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
9842 2001-10-29 Kevin Ryde <user42@zip.com.au>
9844 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
9845 output, clarify `#' behaviour on 0.
9846 (Floating-Point Conversions): Clarify that %g only uses %e when
9847 the exponent would be greater than 1.
9849 2001-10-28 Roland McGrath <roland@frob.com>
9851 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
9852 * sysdeps/mach/powerpc/machine-sp.h: New file.
9853 * sysdeps/mach/powerpc/sysdep.h: New file.
9854 * sysdeps/mach/powerpc/thread_state.h: New file.
9856 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
9857 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
9858 expect to need the same thing on every platform.
9860 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
9861 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
9863 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
9864 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
9865 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
9866 Move all these assembly-related definitions to ...
9867 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
9869 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
9870 by Peter Bruin <pjbruin@dds.nl>.
9872 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
9873 packing results for a `poll' call.
9875 2001-10-26 Ulrich Drepper <drepper@redhat.com>
9877 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
9879 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
9882 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
9884 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
9886 2001-10-24 H.J. Lu <hjl@gnu.org>
9888 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
9889 Use __BEGIN_DECLS/__END_DECLS around prototypes.
9890 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
9892 2001-10-21 Jim Meyering <meyering@lucent.com>
9894 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
9895 this code would end up calling gettext even in packages built
9897 * posix/getopt.c (_): Likewise.
9898 * posix/regex.c (_): Likewise.
9900 2001-10-26 Ulrich Drepper <drepper@redhat.com>
9902 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
9904 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
9905 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
9907 2001-10-19 Jakub Jelinek <jakub@redhat.com>
9909 * misc/sys/cdefs.h (__attribute_used__): Define.
9910 * elf/rtld.c (_dl_start): Add __attribute_used__.
9911 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
9913 2001-10-25 Andreas Schwab <schwab@suse.de>
9915 * stdlib/a64l.c: Expect least significant digit first.
9916 * stdlib/l64a.c: Produce least significant digit first.
9917 * stdlib/Makefile (tests): Add test-a64l.
9918 * stdlib/test-a64l.c: New file.
9919 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
9921 2001-10-21 Ulrich Drepper <drepper@redhat.com>
9923 * po/sk.po: Update from translation team.
9925 2001-10-18 Ulrich Drepper <drepper@redhat.com>
9927 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
9929 2001-10-18 Andreas Schwab <schwab@suse.de>
9931 * math/libm-test.inc (print_ulps): Print ulp values rounded to
9933 (print_function_ulps): Likewise.
9934 (print_complex_function_ulps): Likewise.
9935 (print_max_error): Likewise.
9936 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
9938 2001-10-16 Andreas Schwab <schwab@suse.de>
9940 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
9943 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
9944 BSD_SETJMP or BSD__SETJMP is defined, resp.
9945 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
9946 a tail call to __sigsetjmp that would require extending the
9948 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
9949 * sysdeps/m68k/bsd-setjmp.S: Deleted.
9950 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
9951 Reported by Jes Sorensen <jes@trained-monkey.org>.
9953 2001-10-16 Andreas Jaeger <aj@suse.de>
9955 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
9956 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
9959 2001-10-15 Ulrich Drepper <drepper@redhat.com>
9961 * po/ca.po: New file. Contributed by the translation team.
9963 2001-10-15 Ralf Baechle <ralf@gnu.org>
9965 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
9966 a varargs prototype. Remove dependency from kernel header files.
9968 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
9969 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
9971 2001-10-14 Ulrich Drepper <drepper@redhat.com>
9973 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
9974 to generate hexadecimal identifier.
9975 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
9977 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
9979 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
9981 2001-10-14 Ulrich Drepper <drepper@redhat.com>
9983 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
9984 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
9985 Contributed by Stephen L Moshier <moshier@mediaone.net>.
9987 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
9988 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9989 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
9990 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
9991 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
9992 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
9994 * timezone/africa: Update from tzdata2001d.
9995 * timezone/asia: Likewise.
9996 * timezone/australasia: Likewise.
9997 * timezone/backward: Likewise.
9998 * timezone/europe: Likewise.
9999 * timezone/leapseconds: Likewise.
10000 * timezone/northamerica: Likewise.
10001 * timezone/southamerica: Likewise.
10002 * timezone/zone.tab: Likewise.
10004 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
10006 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
10007 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
10009 2001-10-12 Ulrich Drepper <drepper@redhat.com>
10011 * elf/elf.h (PT_TLS): New definition.
10013 2001-10-10 Jeff Bailey <jbailey@nisa.net>
10015 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
10018 2001-10-07 Roland McGrath <roland@frob.com>
10020 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
10022 2001-10-10 Ulrich Drepper <drepper@redhat.com>
10024 * elf/elf.h: Add more ELFOSABI_* constants.
10026 2001-10-04 Ben Collins <bcollins@debian.org>
10028 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
10029 decleration of __need_wchar_t.
10031 2001-10-03 Jakub Jelinek <jakub@redhat.com>
10033 * string/bits/string2.h (__strsep_g): Add prototype.
10034 (__strsep): Use it.
10035 * string/Versions (__strsep): Remove.
10036 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
10038 2001-10-07 Ulrich Drepper <drepper@redhat.com>
10040 * manua/llio.texi: Clarify file references added by mmap.
10041 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
10043 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
10045 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
10046 Add sc_loadrs and sc_rbs_bas to match current kernel.
10048 2001-09-27 Jakub Jelinek <jakub@redhat.com>
10050 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
10052 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
10054 2001-09-27 Jakub Jelinek <jakub@redhat.com>
10056 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
10057 object has been bumped because of relocation dependency, avoid
10058 duplicates in l_scope.
10059 (show_scope): Fix typos.
10060 * elf/Makefile: Add rules to build and run reldep6.
10061 * elf/reldep6.c: New file.
10062 * elf/reldep6mod0.c: New file.
10063 * elf/reldep6mod1.c: New file.
10064 * elf/reldep6mod2.c: New file.
10065 * elf/reldep6mod3.c: New file.
10066 * elf/reldep6mod4.c: New file.
10068 2001-09-26 Jakub Jelinek <jakub@redhat.com>
10070 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
10072 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
10073 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
10074 for non-lazy binding. Fix .plt[32768+] handling.
10075 (elf_machine_plt_value): Don't add addend.
10076 (elf_machine_rela): Call sparc64_fixup_plt instead of
10077 elf_machine_fixup_plt.
10078 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
10079 dynamic linker at 0xfffff800XXXXXXXX.
10081 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
10083 2001-09-28 Ulrich Drepper <drepper@redhat.com>
10085 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
10087 2001-09-25 Jakub Jelinek <jakub@redhat.com>
10089 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
10090 declare __cmsg_data field if its size would be bigger than 0.
10091 (CMSG_DATA): Adjust accordingly.
10092 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
10093 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
10094 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
10095 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
10096 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10097 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
10098 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10100 2001-09-25 Ulrich Drepper <drepper@redhat.com>
10102 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
10103 * iconvdata/testdata/IBM1160: New file.
10104 * iconvdata/testdata/IBM1160..UTF8: New file.
10105 * iconvdata/testdata/IBM1161: New file.
10106 * iconvdata/testdata/IBM1161..UTF8: New file.
10107 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10109 2001-09-24 Ulrich Drepper <drepper@redhat.com>
10111 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
10112 UL_SETFSIZE computations better.
10114 * rt/Makefile: Remove use of filter for librt again.
10116 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
10117 UL_SETFSIZE computations better.
10119 * string/Versions: Export __strsep for GLIBC_2.2.5.
10120 * string/bits/string2.h: Define all __STRING_INLINE functions if
10121 _FORCE_INLINES is defined.
10122 Use int instead of char of parameter types.
10123 (__strsep): Don't use __strsep_g. Don't define it.
10124 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
10125 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
10127 (__stpcpy_a_small): Renamed from __stpcpy_small.
10128 (__strcspn_c1): Don't define if _FORCE_INLINES.
10129 (__strspn_c1): Likewise.
10131 2001-09-22 Ben Collins <bcollins@debian.org>
10133 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
10134 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
10135 * sysdeps/ia64/bits/sigaction.h: Likewise.
10136 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
10138 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
10140 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
10142 2001-09-24 Jakub Jelinek <jakub@redhat.com>
10144 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
10146 2001-09-24 Ulrich Drepper <drepper@redhat.com>
10148 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
10150 2001-09-20 H.J. Lu <hjl@gnu.org>
10152 * include/dlfcn.h (__RTLD_SPROF): New definiton.
10153 * elf/dl-open.c (dl_open_worker): Return immediately after loading
10155 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
10156 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
10158 2001-09-20 H.J. Lu <hjl@gnu.org>
10160 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
10163 2001-09-22 Ulrich Drepper <drepper@redhat.com>
10165 * nss/getent.c: Accept -s parameter to overwrite rules in
10166 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
10168 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
10169 with as many ".0" as necessary to form a complete address
10170 inet_network understands.
10172 * nss/getent.c: Various cleanups. Use simpler and fewer function
10175 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10177 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
10179 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
10181 2001-09-22 Ulrich Drepper <drepper@redhat.com>
10183 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
10185 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
10186 * iconvdata/ibm1160.c: New file.
10187 * iconvdata/ibm1160.h: New file.
10188 * iconvdata/ibm1161.c: New file.
10189 * iconvdata/ibm1161.h: New file.
10190 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10192 2001-09-19 Jakub Jelinek <jakub@redhat.com>
10194 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
10195 difference between base address and first PT_LOAD's virtual address,
10196 not the base address.
10198 2001-09-11 Tom Rix <trix@redhat.com>
10200 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
10201 ifdef for __getopt_clean_environment.
10202 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
10204 2001-09-22 Andreas Jaeger <aj@suse.de>
10206 * elf/reldep4.c (main): Add proper prototype to fix warning.
10208 * elf/reldep5.c (main): Remove unused variable.
10210 * math/math_private.h: Add prototypes.
10212 2001-09-21 Andreas Jaeger <aj@suse.de>
10214 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
10215 * sysdeps/x86_64/Dist: New file.
10216 * sysdeps/x86_64/soft-fp/Dist: New file.
10218 * sysdeps/gnu/Dist: Remove eval.c.
10220 2001-09-20 Ulrich Drepper <drepper@redhat.com>
10222 * malloc/memusage.c (realloc): Don't count already allocated
10223 memory in the sums.
10224 (me): Always use dlsym() to find the real implementations.
10226 * malloc/memusage.sh: Make -n option actually do something.
10228 2001-09-20 Andreas Jaeger <aj@suse.de>
10230 * elf/elf.h (R_390_NUM): Correct value.
10232 * Versions.def: Add missing versions 2.2.3 for libthread_db and
10235 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
10236 for x86-64, install x86-64 into */lib64.
10238 * shlib-versions: Add x86-64.
10240 * elf/elf.h: Add x86-64 relocations.
10242 2001-09-19 Ulrich Drepper <drepper@redhat.com>
10244 * po/fr.po: Update from translation team.
10246 2001-09-19 Andreas Jaeger <aj@suse.de>
10248 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
10249 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
10250 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
10251 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
10252 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
10253 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
10254 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
10255 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
10256 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
10257 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
10258 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
10259 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
10260 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
10261 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
10262 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
10263 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
10264 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
10265 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
10266 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
10267 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
10268 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
10269 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
10270 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
10271 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
10272 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
10273 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
10274 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
10275 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
10276 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
10277 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
10278 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
10279 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
10280 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
10281 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
10282 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
10283 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
10284 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
10285 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
10286 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
10287 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
10288 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
10289 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
10290 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
10291 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
10292 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
10293 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
10294 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
10295 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
10296 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
10297 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
10298 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
10299 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
10300 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
10301 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
10302 * sysdeps/unix/x86_64/sysdep.S: New file.
10303 * sysdeps/unix/x86_64/sysdep.h: New file.
10304 * sysdeps/x86_64/Implies: New file.
10305 * sysdeps/x86_64/Makefile: New file.
10306 * sysdeps/x86_64/Versions: New file.
10307 * sysdeps/x86_64/__longjmp.S: New file.
10308 * sysdeps/x86_64/abort-instr.h: New file.
10309 * sysdeps/x86_64/atomicity.h: New file.
10310 * sysdeps/x86_64/bits/endian.h: New file.
10311 * sysdeps/x86_64/bits/setjmp.h: New file.
10312 * sysdeps/x86_64/bits/string.h: New file.
10313 * sysdeps/x86_64/bp-asm.h: New file.
10314 * sysdeps/x86_64/bsd-_setjmp.S: New file.
10315 * sysdeps/x86_64/bsd-setjmp.S: New file.
10316 * sysdeps/x86_64/dl-machine.h: New file.
10317 * sysdeps/x86_64/elf/initfini.c: New file.
10318 * sysdeps/x86_64/elf/start.S: New file.
10319 * sysdeps/x86_64/ffs.c: New file.
10320 * sysdeps/x86_64/ffsll.c: New file.
10321 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
10322 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
10323 * sysdeps/x86_64/fpu/e_acosl.c: New file.
10324 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
10325 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
10326 * sysdeps/x86_64/fpu/e_expl.c: New file.
10327 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
10328 * sysdeps/x86_64/fpu/e_log10l.S: New file.
10329 * sysdeps/x86_64/fpu/e_log2l.S: New file.
10330 * sysdeps/x86_64/fpu/e_logl.S: New file.
10331 * sysdeps/x86_64/fpu/e_powl.S: New file.
10332 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
10333 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
10334 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
10335 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
10336 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
10337 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
10338 * sysdeps/x86_64/fpu/fegetenv.c: New file.
10339 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
10340 * sysdeps/x86_64/fpu/fegetround.c: New file.
10341 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
10342 * sysdeps/x86_64/fpu/fesetenv.c: New file.
10343 * sysdeps/x86_64/fpu/fesetround.c: New file.
10344 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
10345 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
10346 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
10347 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
10348 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
10349 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
10350 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
10351 * sysdeps/x86_64/fpu/s_atanl.c: New file.
10352 * sysdeps/x86_64/fpu/s_cosl.S: New file.
10353 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
10354 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
10355 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
10356 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
10357 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
10358 * sysdeps/x86_64/fpu/s_logbl.c: New file.
10359 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
10360 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
10361 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
10362 * sysdeps/x86_64/fpu/s_rintl.c: New file.
10363 * sysdeps/x86_64/fpu/s_significandl.c: New file.
10364 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
10365 * sysdeps/x86_64/fpu/s_sinl.S: New file.
10366 * sysdeps/x86_64/fpu/s_tanl.S: New file.
10367 * sysdeps/x86_64/gmp-mparam.h: New file.
10368 * sysdeps/x86_64/hp-timing.c: New file.
10369 * sysdeps/x86_64/hp-timing.h: New file.
10370 * sysdeps/x86_64/htonl.S: New file.
10371 * sysdeps/x86_64/memusage.h: New file.
10372 * sysdeps/x86_64/setjmp.S: New file.
10373 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
10374 * sysdeps/x86_64/stackinfo.h: New file.
10375 * sysdeps/x86_64/sysdep.h: New file.
10376 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
10378 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
10381 2001-09-18 Ulrich Drepper <drepper@redhat.com>
10383 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
10384 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
10386 2001-09-18 Andreas Schwab <schwab@suse.de>
10388 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
10389 list, now that l_scope is a pointer.
10391 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
10394 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
10396 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
10397 (elf_machine_rela_relative): Add a missing declaration.
10399 2001-09-18 Jakub Jelinek <jakub@redhat.com>
10401 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
10402 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
10403 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
10404 ldd-rewrite scripts.
10406 2001-09-18 Ulrich Drepper <drepper@redhat.com>
10408 * elf/ldd.bash.in: Update copyright message.
10410 2001-09-17 H.J. Lu <hjl@gnu.org>
10412 * hurd/hurdmalloc.c (bcopy): Removed.
10413 (realloc): Replace bcopy with memcpy.
10414 * hurd/path-lookup.c (file_name_path_scan): Likewise.
10415 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
10416 * sunrpc/rpcinfo.c (pmapdump): Likewise.
10418 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
10419 (gethostbyaddr): Likewise.
10420 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
10422 2001-09-18 Ulrich Drepper <drepper@redhat.com>
10424 * sysdeps/gnu/eval.c: Removed.
10426 2001-09-18 Andreas Jaeger <aj@suse.de>
10428 * sysdeps/i386/fpu/s_logbl.S: Move to ...
10429 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
10431 * sysdeps/i386/fpu/s_rintl.S: Move to ...
10432 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
10434 * sysdeps/i386/fpu/s_significandl.S: Move to ...
10435 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
10437 2001-09-16 Ulrich Drepper <drepper@redhat.com>
10439 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
10442 2001-09-14 H.J. Lu <hjl@gnu.org>
10444 * sysdeps/mips/fpu/libm-test-ulps: Updated.
10446 2001-09-14 Ulrich Drepper <drepper@redhat.com>
10448 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
10449 Patch by Florian La Roche <laroche@redhat.com>.
10451 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
10453 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
10456 2001-09-14 Andreas Schwab <schwab@suse.de>
10458 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
10459 Sumner <bls@sgi.com>.
10460 * posix/execlp.c: Likewise.
10462 2001-09-13 Jakub Jelinek <jakub@redhat.com>
10464 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
10465 is already found earlier in the search scope.
10467 2001-09-12 Jakub Jelinek <jakub@redhat.com>
10469 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
10472 2001-09-13 Ulrich Drepper <drepper@redhat.com>
10474 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
10476 2001-09-12 Ulrich Drepper <drepper@redhat.com>
10478 * config.h.in: Enforce optimization to be used.
10479 * Makeconfig (preprocess-versions): Define ASSEMBLER.
10480 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
10481 * posix/Makefile (annexc-CFLAGS): Define to -O.
10482 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
10484 2001-09-11 Ulrich Drepper <drepper@redhat.com>
10486 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
10487 Patch by Stephan Kulow.
10489 2001-09-08 Ben Collins <bcollins@debian.org>
10491 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
10492 usage of RESOLVE() (r_type, not reloc->r_type).
10494 2001-09-08 Ulrich Drepper <drepper@redhat.com>
10496 * elf/dl-object.c: Avoid allocating extra memory block for name.
10497 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
10498 allocated separately.
10499 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
10501 2001-09-08 H.J. Lu <hjl@gnu.org>
10503 * po/zh_TW.po: Fix a typo.
10505 2001-09-07 Tom Rix <trix@redhat.com>
10507 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
10509 2001-08-26 Tom Rix <trix@redhat.com>
10511 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
10512 command line options.
10513 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
10514 * sysdeps/unix/sysv/aix/start.c: Removed.
10515 * sysdeps/unix/sysv/aix/start-libc.c: New file.
10516 * sysdeps/unix/sysv/aix/init-first.c: New file.
10517 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
10519 2001-09-08 Ben Collins <bcollins@debian.org>
10521 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
10522 * sysdeps/generic/dl-machine.h: Likewise.
10523 * sysdeps/hppa/dl-fptr.c: Likewise.
10524 * sysdeps/ia64/dl-fptr.c: Likewise.
10525 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10526 * sysdeps/mips/dl-machine.h: Likewise.
10527 * sysdeps/mips/mips64/dl-machine.h: Likewise.
10528 * sysdeps/powerpc/dl-machine.c: Likewise.
10530 2001-09-07 Ben Collins <bcollins@debian.org>
10532 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
10534 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
10536 2001-09-08 Ulrich Drepper <drepper@redhat.com>
10538 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
10539 dependencies if necessary.
10541 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
10542 loaded directly) determine length if l_initfini list by iterating
10543 over its elements. Minor optimizations.
10544 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
10545 for dependency objects.
10546 If object was already loaded check whether any of the dependencies
10547 is already on the relocation dependency list. If yes, remove the
10548 latter. Minor optimizations.
10549 * elf/dl-lookup.c (add_dependency): Add check for self reference of
10550 maps here. Search l_initfini list only if the object was loaded
10551 directly and not only as a dependency.
10552 (_dl_lookup_symbol): Add relocation dependency also if object
10553 is not in global scope. Remove test for self-reference here.
10554 (_dl_lookup_versioned_symbol): Likewise.
10555 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
10556 element of first name record.
10557 * elf/loadtest.c: Add some more test to recognize early if an object
10559 * elf/Makefile: Add rules to build and run reldep5.
10560 * elf/reldep5.c: New file.
10561 * elf/reldepmod5.c: New file.
10562 * elf/reldepmod6.c: New file.
10564 * elf/reldep2.c: Fix typo.
10566 2001-09-07 Ulrich Drepper <drepper@redhat.com>
10568 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
10569 elements. Change l_scope to be a pointer only.
10570 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
10571 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
10572 here add searchlist of newly open file to the dependency's scope.
10573 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
10574 only searchlist from its scope. Free own scope array if necessary.
10575 * elf/Makefile (tests): Add dblload and dblunload now.
10577 2001-09-06 Andreas Jaeger <aj@suse.de>
10579 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
10582 2001-09-05 Ulrich Drepper <drepper@redhat.com>
10584 * elf/Makefile: Add rules to build new tests. Don't run them yet since
10586 * elf/dblload.c: New file.
10587 * elf/dblloadmod1.c: New file.
10588 * elf/dblloadmod2.c: New file.
10589 * elf/dblloadmod3.c: New file.
10590 * elf/dblunload.c: New file.
10592 2001-09-04 Richard Henderson <rth@redhat.com>
10594 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
10595 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
10597 2001-09-04 Ulrich Drepper <drepper@redhat.com>
10599 Correct very misleading message for error in failed runtime relocation.
10600 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
10601 place of the error.
10602 (_dl_signal_cerror): Likewise.
10603 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
10604 * elf/dl-close.c: Likewise.
10605 * elf/dl-deps.c: Likewise.
10606 * elf/dl-load.c: Likewise.
10607 * elf/dl-lookup.c: Likewise.
10608 * elf/dl-open.c: Likewise.
10609 * elf/dl-reloc.c: Likewise.
10610 * elf/dl-sym.c: Likewise.
10611 * elf/dl-version.c: Likewise.
10612 * sysdeps/generic/dl-sysdep.c: Likewise.
10614 2001-09-04 Jakub Jelinek <jakub@redhat.com>
10616 * iconv/strtab.c (strtabinit): Initialize null Strent.
10617 (newstring): Move len == 0 handling...
10618 (strtabadd): ...here.
10619 If len == 1, return null Strent.
10620 When inserting a suffix of an existing string, check if
10621 it is not equal to some suffix already recorded.
10622 Copy left and right members over if adding longer string.
10624 2001-09-04 Jakub Jelinek <jakub@redhat.com>
10626 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
10628 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
10629 (__syscall_gethostname): Add prototype.
10631 2001-09-04 Ulrich Drepper <drepper@redhat.com>
10633 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
10635 2001-09-02 Ulrich Drepper <drepper@redhat.com>
10637 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
10639 2001-08-27 Roland McGrath <roland@frob.com>
10641 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
10642 short, copy that much into NAME anyway before returning error.
10644 2001-09-01 Richard Henderson <rth@redhat.com>
10646 * sysdeps/alpha/elf/Dist: Remove file.
10647 * sysdeps/alpha/elf/Makefile: Remove file.
10648 * sysdeps/alpha/elf/crtbegin.S: Remove file.
10649 * sysdeps/alpha/elf/crtend.S: Remove file.
10650 * sysdeps/alpha/elf/initfini.c: New file.
10652 2001-09-01 Mark Kettenis <kettenis@gnu.org>
10654 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
10655 * iconv/tst-iconv3.c: Likewise.
10657 2001-09-01 Jakub Jelinek <jakub@redhat.com>
10659 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
10661 2001-09-01 Ulrich Drepper <drepper@redhat.com>
10663 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
10665 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
10666 * iconv/iconv_prog.c (insert_cache): New function.
10667 (print_known_names): If cache is used call insert_cache to use the
10668 information from the cache [PR libc/2509].
10670 2001-08-31 Ulrich Drepper <drepper@redhat.com>
10672 * time/strptime.c (strptime_internal): Recognize 'l' format and
10673 handle it like 'I' for symmetry with strftime.
10675 2001-08-31 Richard Henderson <rth@redhat.com>
10677 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
10678 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
10679 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
10680 (print_statistics): Make scalar unsigned long long.
10681 * sysdeps/alpha/hp-timing.h: New file.
10683 2001-08-31 Jakub Jelinek <jakub@redhat.com>
10685 * stdio-common/perror.c (perror): Save errno early, pass it
10686 down to perror_internal.
10687 (perror_internal): Add errnum argument.
10689 2001-08-31 Jakub Jelinek <jakub@redhat.com>
10691 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
10692 Don't add old memory content for R_ALPHA_REFQUAD.
10694 2001-08-30 Ulrich Drepper <drepper@redhat.com>
10696 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
10699 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
10700 instead of open, __close instead of close, __getpagesize instead
10703 * string/argz-stringify.c (__argz_stringify): Use __strnlen
10704 instead of strnlen.
10705 * include/string.h (strndupa): Redefine here to use __strnlen
10706 instead of strnlen.
10707 * string/strndup.c (__strndup): Use __strnlen not strnlen.
10709 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
10712 2001-08-30 Jakub Jelinek <jakub@redhat.com>
10714 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
10715 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
10716 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
10717 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
10718 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
10719 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
10720 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
10722 2001-08-30 Ulrich Drepper <drepper@redhat.com>
10724 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
10726 2001-08-30 Andreas Jaeger <aj@suse.de>
10728 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
10729 contributed Stephen L Moshier.
10731 2001-08-30 Jakub Jelinek <jakub@redhat.com>
10733 * sunrpc/etc.rpc (sgi_fam): Add.
10735 2001-08-30 Ulrich Drepper <drepper@redhat.com>
10737 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
10739 2001-08-29 Ulrich Drepper <drepper@redhat.com>
10741 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
10742 first is from a previous call.
10743 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
10745 2001-08-29 Andreas Schwab <schwab@suse.de>
10747 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
10749 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
10751 * config.make.in (INSTALL_SCRIPT): Define.
10752 * Makeconfig (INSTALL_SCRIPT): Define.
10753 * Makerules (do-install-script): New macro to install scripts using
10755 (install-bin-script): New rule to install scripts with
10757 (install-bin-script-nosubdir): New rule.
10758 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
10759 (distinfo-vars): Add $(install-bin-script).
10760 * Rules (others): Likewise.
10761 * Makefile (glibcbug): Install with install-bin-script.
10762 * debug/Makefile (xtrace): Likewise.
10763 (catchsegv): Likewise.
10764 * elf/Makefile (ldd): Likewise.
10765 * malloc/Makefile (mtrace): Likewise.
10766 * timezone/Makefile (tzselect): Likewise.
10768 2001-08-29 H.J. Lu <hjl@gnu.org>
10770 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
10771 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
10772 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
10774 2001-08-29 Andreas Schwab <schwab@suse.de>
10776 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
10778 2001-08-28 H.J. Lu <hjl@gnu.org>
10780 * Makeconfig (combreloc-LDFLAGS): New variable.
10781 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
10782 * config.make.in (have-z-combreloc): New variable.
10783 * configure.in: Substitute libc_cv_z_combreloc.
10785 2001-08-29 Ulrich Drepper <drepper@redhat.com>
10787 * po/sv.po: Update from translation team.
10788 * po/fr.po: Likewise.
10789 * po/da.po: Likewise.
10791 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
10793 * Makerules: Fix a typo: MD% -> MD5.
10795 2001-08-28 Ulrich Drepper <drepper@redhat.com>
10797 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
10798 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
10800 2001-08-28 Andreas Jaeger <aj@suse.de>
10802 * manual/libc-texinfo.sh: Add entry about free manuals.
10804 * manual/contrib.texi (Contributors): Fix cross reference.
10806 * manual/libc.texinfo (Copying): Include freemanuals.
10808 * manual/Makefile (appendices): Add freemanuals.
10810 * manual/freemanuals.texi: New file.
10811 Patch by Brian Youmans <3diff@gnu.org>.
10813 * manual/libm-err-tab.pl: Pretty print more platforms, print a
10816 * manual/math.texi (Errors in Math Functions): Fix grammar, start
10817 table on separate page.
10818 Patch by Brian Youmans <3diff@gnu.org>.
10820 2001-08-27 Ulrich Drepper <drepper@redhat.com>
10822 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
10823 the connection went down after we first used it try to connect
10824 again and resend the message before printing to the console.
10825 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
10827 2001-08-27 Jakub Jelinek <jakub@redhat.com>
10829 * string/tst-strlen.c (main): Test strnlen (, -1) too.
10830 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
10833 2001-08-27 Ulrich Drepper <drepper@redhat.com>
10835 * iconv/strtab.c (searchstring): Use correct length for comparison.
10836 (strtabadd): Account total size correct if new string has old string as
10839 2001-08-27 Jakub Jelinek <jakub@redhat.com>
10841 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
10843 2001-08-27 Andreas Jaeger <aj@suse.de>
10845 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
10847 * math/libm-test.inc (j0_test): Add extra tests.
10848 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
10849 not x, in Hankel approximation.
10850 Patches by Stephen L Moshier.
10852 2001-08-26 Ulrich Drepper <drepper@redhat.com>
10854 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
10857 * configure.in: Fix test for .rela.dyn section.
10859 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
10861 2001-08-26 Jakub Jelinek <jakub@redhat.com>
10863 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
10864 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
10865 Pass type_class to _dl_lookup_*.
10866 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
10867 Pass around just type_class instead of noexec, noplt pair.
10868 (_dl_lookup_versioned_symbol): Likewise.
10869 (_dl_lookup_symbol_skip): Pass around just type_class instead of
10870 noexec, noplt pair.
10871 (_dl_lookup_versioned_symbol_skip): Likewise.
10872 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
10873 * elf/do-lookup.h (do_lookup): Likewise.
10874 * include/link.h (struct link_map): Replace noexec and noplt fields
10875 in l_lookup_cache with type_class field.
10876 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
10877 ELF_RTYPE_CLASS_COPY): Define.
10878 Adjust prototypes for _dl_lookup_symbol and
10879 _dl_lookup_versioned_symbol.
10880 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
10881 elf_machine_lookup_noexec_p): Remove.
10882 (elf_machine_type_class): Define.
10883 * sysdeps/arm/dl-machine.h: Likewise.
10884 * sysdeps/hppa/dl-machine.h: Likewise.
10885 * sysdeps/cris/dl-machine.h: Likewise.
10886 * sysdeps/i386/dl-machine.h: Likewise.
10887 * sysdeps/ia64/dl-machine.h: Likewise.
10888 * sysdeps/m68k/dl-machine.h: Likewise.
10889 * sysdeps/mips/mips64/dl-machine.h: Likewise.
10890 * sysdeps/mips/dl-machine.h: Likewise.
10891 * sysdeps/powerpc/dl-machine.h: Likewise.
10892 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10893 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10894 * sysdeps/sh/dl-machine.h: Likewise.
10895 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10896 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10898 2001-08-26 Ulrich Drepper <drepper@redhat.com>
10900 * manual/message.texi (Advanced gettext functions): Change
10901 description of plural forms for Slovak.
10902 Reported by Marcel Telka <marcel@telka.sk>.
10904 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
10905 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
10907 2001-08-26 Jakub Jelinek <jakub@redhat.com>
10909 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
10910 typo. Patch by Florian La Roche <laroche@redhat.com>.
10912 2001-08-26 Ulrich Drepper <drepper@redhat.com>
10914 * include/link.h (struct link_map): Add l_lookup_cache element.
10915 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
10916 (RESOLVE_MAP): Likewise.
10917 (_dl_relocate_object): Remove cache initialization.
10918 * elf/dl-lookup.c: Rip out cache handling code.
10919 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
10922 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
10923 remove some __builtin_expect.
10924 (_dl_lookup_versioned_symbol): Likewise.
10926 * config.h.in: Add HAVE_Z_COMBRELOC.
10927 * configure.in: Add test for -z combreloc.
10929 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
10930 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
10931 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
10932 case to almost no code.
10934 2001-08-25 Ulrich Drepper <drepper@redhat.com>
10936 * po/tr.po: Update from translation team.
10938 2001-08-24 Andreas Jaeger <aj@suse.de>
10940 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
10943 2001-08-24 Ulrich Drepper <drepper@redhat.com>
10945 * elf/rtld.c (print_statistics): Printf % after percent values.
10946 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
10948 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
10949 don't have to compute the hash value and initialize current_value.
10950 Move reference_name variable to where it is needed.
10951 (_dl_lookup_versioned_symbol): Likewise.
10953 2001-08-24 Roland McGrath <roland@frob.com>
10955 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
10956 Just test that strerror returns non-null for a few errno codes.
10958 2001-08-23 Roland McGrath <roland@frob.com>
10960 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
10961 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
10963 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
10965 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
10968 2001-08-24 Ulrich Drepper <drepper@redhat.com>
10970 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
10973 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
10974 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
10976 * elf/rtld.c: Include <sys/param.h>.
10977 * elf/dl-reloc.c: Likewise.
10979 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
10981 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
10982 empty to prevent junk from being generated.
10983 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
10985 2001-08-24 Jakub Jelinek <jakub@redhat.com>
10987 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
10988 records. Rename endrel to relative, initialize it to r, and use it
10989 in elf_machine_rel_relative calls. Point r after relative relocs.
10991 2001-08-24 Ulrich Drepper <drepper@redhat.com>
10993 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
10996 2001-08-24 Jakub Jelinek <jakub@redhat.com>
10998 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
10999 necessary. Undefine newly defined macros at the end.
11000 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
11001 Rename from elf_machine_rel_relative.
11002 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
11003 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
11004 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
11005 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
11007 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
11009 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
11010 Fix argument types.
11011 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
11012 Fix argument types.
11013 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
11014 Likewise. Fix argument types.
11015 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
11016 Likewise. Fix argument types.
11017 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
11018 Fix argument types.
11019 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
11020 ElfW(Rel) in argument.
11021 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
11024 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
11026 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
11028 2001-08-24 Andreas Jaeger <aj@suse.de>
11030 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
11031 Stephen L Moshier <moshier@mediaone.net>.
11033 2001-08-24 Ulrich Drepper <drepper@redhat.com>
11035 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
11036 first if RELCOUNT is set.
11038 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
11039 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
11040 elf_machine_rel_relative.
11041 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
11042 Minor optimizations.
11043 * sysdeps/arm/dl-machine.h: Likewise.
11044 * sysdeps/cris/dl-machine.h: Likewise.
11045 * sysdeps/hppa/dl-machine.h: Likewise.
11046 * sysdeps/i386/dl-machine.h: Likewise.
11047 * sysdeps/ia64/dl-machine.h: Likewise.
11048 * sysdeps/m68k/dl-machine.h: Likewise.
11049 * sysdeps/mips/dl-machine.h: Likewise.
11050 * sysdeps/powerpc/dl-machine.h: Likewise.
11051 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11052 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11053 * sysdeps/sh/dl-machine.h: Likewise.
11054 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11055 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11057 2001-08-23 Roland McGrath <roland@frob.com>
11059 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
11061 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
11062 sysdeps/mach version. Implement counting ("recursive") mutexes
11063 on top of cthreads mutexes.
11064 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
11066 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
11067 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
11068 (__libc_cleanup_region_start, __libc_cleanup_region_end,
11069 __libc_clean_end): Define these to call the cleanup function after
11070 normal exit when they're supposed to.
11072 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
11073 Take new first arg DOIT, a boolean saying whether to really install
11074 any cleanup handler.
11075 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
11076 (__libc_cleanup_end): Likewise.
11077 * sysdeps/generic/bits/libc-lock.h: Same changes.
11078 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
11079 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
11080 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
11082 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
11083 * sysdeps/generic/bits/stdio-lock.h
11084 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
11086 2001-08-23 Jakub Jelinek <jakub@redhat.com>
11088 * elf/ldconfig.c (search_dir): Remove stale symlinks.
11090 2001-08-23 Jakub Jelinek <jakub@redhat.com>
11092 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
11093 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
11095 (_dl_lookup_versioned_symbol): Likewise.
11096 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
11098 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
11099 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
11100 (lookup_cache, lookup_cache_versioned): Add declarations.
11102 2001-08-23 Ulrich Drepper <drepper@redhat.com>
11104 * stdlib/tst-random.c (main): Swap parameters in fail call.
11105 Patch by Pete Bevin <pete@petebevin.com>.
11107 2001-08-23 Jakub Jelinek <jakub@redhat.com>
11109 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
11111 2001-08-23 Ulrich Drepper <drepper@redhat.com>
11113 * malloc/obstack.c: Indent preprocessor directives.
11114 Patch by Jim Meyering <meyering@ascend.com>.
11116 * po/ja.po: Update from translation team.
11118 2001-08-23 Roland McGrath <roland@frob.com>
11120 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
11122 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
11123 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
11125 2001-08-22 Roland McGrath <roland@frob.com>
11127 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
11128 __libc_lock_define_recursive.
11129 * elf/dl-open.c: Don't declare it here any more.
11130 * elf/dl-close.c: Likewise.
11131 * elf/dl-lookup.c: Likewise.
11132 * elf/dl-iteratephdr.c: Likewise.
11133 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
11134 __libc_lock_unlock_recursive.
11135 * elf/dl-close.c (_dl_close): Likewise
11136 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
11137 * elf/dl-open.c (_dl_open): Likewise
11139 * sysdeps/generic/bits/libc-lock.h
11140 (__libc_lock_define_recursive): New macro.
11141 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
11142 (_IO_lock_lock): Use __libc_lock_lock_recursive.
11143 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
11145 * conform/conformtest.pl (checknamespace): Sort the output list.
11147 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
11148 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
11149 definitions conditional on [__USE_XOPEN].
11151 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
11152 these unconditionally, not only use [__USE_BSD], so as to match
11153 the sysdeps/unix/sysv/linux files.
11155 2001-08-22 Ulrich Drepper <drepper@redhat.com>
11157 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
11160 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
11163 2001-08-22 Roland McGrath <roland@frob.com>
11165 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
11166 conditionalization of sa_handler/sa_sigaction member types to
11167 match the sysdeps/unix/sysv/linux file.
11169 2001-08-22 Ulrich Drepper <drepper@redhat.com>
11171 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
11172 symbol sizes a bit better.
11174 * sysdeps/ia64/strncpy.S: Complete rewrite.
11175 Contributed by Jakub Jelinek <jakub@redhat.com>.
11177 * string/stratcliff.c (main): Add strncpy test.
11179 2001-08-22 Roland McGrath <roland@frob.com>
11181 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
11182 and don't declare unsetenv or _environ directly.
11183 (unsetenv): Return int, not void. Use __environ instead of _environ.
11185 2001-08-01 Mark Kettenis <kettenis@gnu.org>
11187 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
11188 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
11189 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
11190 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
11191 test for cmsg struct size.
11193 2001-04-23 Paul Eggert <eggert@twinsun.com>
11195 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
11196 Rename __argc to ___argc in prototypes to avoid compatibility
11197 problems with systems that reserve the identifier "__argc".
11198 Similarly for __argv.
11200 2001-08-21 Roland McGrath <roland@frob.com>
11202 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
11204 * mach/Makefile (tests): Removed.
11205 * mach/hello.c: File removed.
11207 2001-08-22 Ulrich Drepper <drepper@redhat.com>
11209 * po/sv.po: Update from translation team.
11211 * stdio-common/vfscanf.c: Fix handling of %l[].
11212 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
11214 * libio/Makefile (tests): Add tst-sscanf.
11215 * libio/tst-sscanf.c: New file.
11217 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
11218 * malloc/mtrace.c (tr_where): dli_sname always points to a
11219 non-empty string if != NULL.
11220 Reported by Tim Janik <timj@gtk.org>.
11222 2001-08-22 Jakub Jelinek <jakub@redhat.com>
11224 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
11225 buf. Free resources on failure.
11226 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
11227 (makefd_xprt): Likewise.
11228 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
11229 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
11230 * sunrpc/auth_unix.c (authunix_create): Likewise.
11232 2001-08-21 Jakub Jelinek <jakub@redhat.com>
11234 * string/strnlen.c: Remove.
11235 * sysdeps/generic/strnlen.c: New file.
11236 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
11238 2001-08-21 Roland McGrath <roland@frob.com>
11240 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
11241 as a macro, not an extern inline function.
11243 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
11244 * Versions.def (libc): Add GLIBC_2.2.5 set.
11245 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
11246 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
11248 2001-08-20 Roland McGrath <roland@frob.com>
11250 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
11251 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
11253 2001-08-21 Ulrich Drepper <drepper@redhat.com>
11255 * string/bits/string2.h: Remove strnlen optimization here.
11256 * sysdeps/i386/i486/bits/string.h: Add it here.
11258 2001-08-21 Wolfram Gloger <wg@malloc.de>
11260 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
11262 2001-08-21 Ulrich Drepper <drepper@redhat.com>
11264 * po/gl.po: Update from translation team.
11266 2001-08-20 Ulrich Drepper <drepper@redhat.com>
11268 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
11269 * misc/err.c (convert_and_print): Likewise.
11271 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
11274 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11276 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
11277 change of the gregset_t type.
11278 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
11280 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
11282 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
11284 2001-08-20 Ulrich Drepper <drepper@redhat.com>
11286 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
11288 * string/strnlen.c: Fix the implementation. We cannot use memchr.
11290 2001-08-18 Mark Kettenis <kettenis@gnu.org>
11292 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
11293 before calling the cthreads initialization code.
11295 2001-08-20 Ulrich Drepper <drepper@redhat.com>
11297 * argp/argp-help.c: Fix two problems introduced in last change.
11299 * include/dirent.h: Include <dirstream.h> first.
11301 2001-08-19 Ulrich Drepper <drepper@redhat.com>
11303 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
11305 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
11306 * sunrpc/xdr_rec.c: Likewise.
11307 * sunrpc/xdr_mem.c: Likewise.
11308 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
11309 * sunrpc/rpc_cmsg.c: Likewise.
11310 * sunrpc/getrpcport.c (getrpcport): Likewise.
11311 * sunrpc/clnt_simp.c (callrpc): Likewise.
11312 * sunrpc/clnt_gen.c (clnt_create): Likewise.
11313 * string/envz.c: Likewise.
11315 * po/ko.po: Update from translation team.
11317 * argp/argp-help.c: Handle wide oriented stderr stream.
11319 2001-08-18 Ulrich Drepper <drepper@redhat.com>
11321 * sysdeps/generic/strtol.c: Little optimizations. Add some
11324 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
11326 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
11327 * wcsmbs/wcwidth.c (wcwdith): Likewise.
11328 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
11330 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
11332 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
11334 * time/time.h (struct timespec): Use __time_t for tv_sec element.
11336 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
11337 wchar_t for function declarations and defintions.
11339 * misc/sys/select.h: Define __need_time_t before including <time.h>.
11340 Define suseconds_t if it hasn't happened yet.
11342 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
11344 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
11346 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
11349 * conform/data/stddef.h-data: Remove wint_t.
11351 * conform/conformtest.pl: Change namespace test to take #undef
11352 lines into account.
11354 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
11356 * conform/data/sys/socket.h-data: Add sockatmark.
11358 2001-08-17 Ulrich Drepper <drepper@redhat.com>
11360 * io/fts.c: Update from recent BSD source.
11362 2001-08-17 Roland McGrath <roland@frob.com>
11364 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
11365 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
11368 2001-08-17 Ulrich Drepper <drepper@redhat.com>
11370 * locale/duplocale.c (__duplocale): Also initialize the special
11371 __ctype_* elements.
11373 * conform/data/netdb.h-data: Adjust gai_strerror return type.
11375 2001-08-17 Andreas Jaeger <aj@suse.de>
11377 * misc/getpass.c: Include wchar.h for prototypes.
11378 * malloc/obstack.c: Likewise.
11380 2001-08-17 Ulrich Drepper <drepper@redhat.com>
11382 * sunrpc/svc_simple.c (universal): Use __write instead of write.
11384 * wcsmbs/wcscoll.c: Also define __wcscoll.
11385 * include/wchar.h: Declare __wcscoll.
11387 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
11388 * libio/vwprintf.c: Likewise.
11389 * libio/wprintf.c: Likewise.
11391 * iconv/gconv_cache.c: Use __munmap instead of munmap.
11393 2001-08-16 Ulrich Drepper <drepper@redhat.com>
11395 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
11396 instead of mbrtowc.
11397 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
11398 wcslen, and __wcscoll instead of wcscoll.
11400 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
11402 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
11403 __getuid instead of getuid.
11405 * stdio-common/perror.c (perror): Use __close instead of close.
11406 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
11407 * libio/freopen.c (freopen): Likewise.
11408 * libio/freopen64.c (freopen64): Likewise.
11410 * libio/tst-ungetwc2.c (main): Define str const.
11412 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
11413 * libio/fwprintf.c: Also define __fwprintf.
11414 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
11415 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
11416 * assert/assert-perr.c: Likewise.
11417 * assert/assert.c: Likewise.
11418 * gmon/gmon.c: Likewise.
11419 * inet/rcmd.c: Likewise.
11420 * malloc/obstack.c: Likewise.
11421 * misc/err.c: Likewise.
11422 * misc/error.c: Likewise.
11423 * misc/getpass.c: Likewise.
11424 * posix/getopt.c: Likewise.
11425 * resolv/res_hconf.c: Likewise.
11426 * stdio-common/perror.c: Likewise.
11427 * stdio-common/psignal.c: Likewise.
11428 * stdlib/fmtmsg.c: Likewise.
11429 * sunrpc/auth_unix.c: Likewise.
11430 * sunrpc/clnt_perr.c: Likewise.
11431 * sunrpc/clnt_tcp.c: Likewise.
11432 * sunrpc/clnt_udp.c: Likewise.
11433 * sunrpc/clnt_unix.c: Likewise.
11434 * sunrpc/svc_simple.c: Likewise.
11435 * sunrpc/svc_tcp.c: Likewise.
11436 * sunrpc/svc_udp.c: Likewise.
11437 * sunrpc/svc_unix.c: Likewise.
11438 * sunrpc/xdr.c: Likewise.
11439 * sunrpc/xdr_array.c: Likewise.
11440 * sunrpc/xdr_rec.c: Likewise.
11441 * sunrpc/xdr_ref.c: Likewise.
11442 * sysdeps/generic/wordexp.c: Likewise.
11444 * po/it.po: Update from translation team.
11446 * misc/err.c: Handle wide oriented stderr stream.
11448 2001-08-14 Tom Rix <trix@redhat.com>
11450 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
11451 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
11453 2001-08-13 Tom Rix <trix@redhat.com>
11455 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
11456 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
11459 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
11461 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
11462 Store the access registers to the ucontext structure.
11463 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
11466 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
11467 Load the access registers from the ucontext structure.
11468 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
11471 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
11472 offsets to the new ucontext layout.
11473 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
11475 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
11476 of the ucontext structure.
11477 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
11479 2001-08-15 Ulrich Drepper <drepper@redhat.com>
11481 * misc/error.c (error): Handle wide oriented stderr stream correctly.
11482 (error_at_line): Likewise.
11484 * stdio-common/perror.c (perror): Implement according to standard.
11485 The stream orientation must not be changed if the stream was not
11486 oriented before the call.
11487 * stdio-common/Makefile (tests): Add tst-perror.
11488 * stdio-common/tst-perror.c: New file.
11491 See ChangeLog.12 for earlier changes.