1 2003-07-16 Andreas Schwab <schwab@suse.de>
3 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
5 2003-07-15 Ulrich Drepper <drepper@redhat.com>
7 * io/test-utime.c (main): Make test yet more robust.
9 2003-07-14 Ulrich Drepper <drepper@redhat.com>
11 More cancellation handling fixups.
12 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
13 * sysdeps/generic/not-cancel.h: Likewise.
14 * catgets/open_catalog.c: Use not-cancelable syscalls.
15 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
16 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
17 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
18 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
19 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
20 * libio/fileops.c: Use not-cancelable syscalls for fclose.
21 * libio/iopopen.c: Use no-cancelable syscalls.
22 * libio/stdio.h: Mark popen and pclose with __THROW again.
23 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
24 * misc/syslog.c: Fix locking and cancellation cleanup handling.
25 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
26 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
27 CFLAGS-tempname.c): Add -fexceptions.
28 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
29 * string/string.h: Mark strerror and strerror_r with _THROW again.
30 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
31 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
32 #ifs since we now need all the code compiled.
33 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
34 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
35 * sysdeps/unix/opendir.c: Likewise.
37 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
38 Add rule for EUC-JP-MS dependency.
39 * iconvdata/cp932.c: New file.
40 * iconvdata/eucjp-ms.c: New file.
41 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
42 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
44 2003-07-15 Jakub Jelinek <jakub@redhat.com>
46 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
49 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
51 * sysdeps/unix/sysv/linux/kernel-features.h
52 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
53 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
55 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
57 2003-07-14 Ulrich Drepper <drepper@redhat.com>
59 * sysdeps/unix/sysv/linux/kernel-features.h: Define
60 __ASSUME_TGKILL for Alpha appropriately.
62 2003-07-12 Ulrich Drepper <drepper@redhat.com>
64 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
65 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
67 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
70 * sysdeps/unix/sysv/linux/kernel-features.h: Define
71 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
73 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
74 second parameter == NULL.
75 * sysdeps/unix/sysv/linux/utimes.c: New file.
77 2003-07-12 Jakub Jelinek <jakub@redhat.com>
79 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
80 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
83 2003-07-12 Ulrich Drepper <drepper@redhat.com>
85 * time/sys/time.h: Namespace cleanup.
86 * sysdeps/unix/sysv/linux/kernel-features.h: Define
87 __ASSUME_UTIMES for the architectures which always had the syscall.
88 * sysdeps/unix/sysv/linux/futimes.c: New file.
90 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
92 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
93 register across CENABLE and CDISABLE.
95 2003-07-11 Jakub Jelinek <jakub@redhat.com>
97 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
98 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
99 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
100 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
101 int before assigning to max to avoid warnings.
103 2003-07-11 Jakub Jelinek <jakub@redhat.com>
105 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
107 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
108 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
110 2003-07-10 Jakub Jelinek <jakub@redhat.com>
112 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
113 .data.rel.ro.local to "aw".
115 2003-07-10 Ulrich Drepper <drepper@redhat.com>
117 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
118 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
119 (PIC-ccflag): Define.
121 2003-07-04 Jakub Jelinek <jakub@redhat.com>
123 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
125 * sysdeps/s390/s390-64/elf/start.S: Likewise.
127 2003-07-07 Jakub Jelinek <jakub@redhat.com>
129 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
130 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
132 2003-07-07 Ulrich Drepper <drepper@redhat.com>
134 * sysdeps/unix/sysv/linux/kernel-features.h: Version
135 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
137 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
138 compilation with HAVE_AUX_SECURE defined.
140 2003-07-05 Richard Henderson <rth@redhat.com>
142 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
144 2003-07-03 Ulrich Drepper <drepper@redhat.com>
146 * configure.in: Also check for .cfi_rel_offset pseudo-op.
148 2003-07-03 Jakub Jelinek <jakub@redhat.com>
150 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
153 2003-07-03 Ulrich Drepper <drepper@redhat.com>
155 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
157 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
159 2003-07-02 Jakub Jelinek <jakub@redhat.com>
161 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
162 decl and use with #ifdef NEED_DL_SYSINFO.
164 2003-07-02 Ulrich Drepper <drepper@redhat.com>
166 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
167 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
168 * sysdeps/unix/sysv/linux/kernel-features.h: Define
169 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
170 vsyscall DSO was added.
172 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
173 depending on selected standard.
174 (NGROUPS_MAX): Define to 8 if not defined.
176 2003-07-02 Andreas Jaeger <aj@suse.de>
178 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
180 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
182 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
183 * malloc/thread-m.h: Include <atomic.h>.
184 (atomic_full_barrier): Provide default.
185 (atomic_read_barrier): Likewise.
186 (atomic_write_barrier): Likewise.
187 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
189 2003-06-30 Ulrich Drepper <drepper@redhat.com>
191 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
193 2003-06-30 Richard Henderson <rth@redhat.com>
195 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
196 Invert the sense of the return value.
197 (__arch_exchange_16_int): Fix paste-o.
198 (__arch_exchange_{32,64}_int): Fix think-o.
200 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
202 2003-06-30 Richard Henderson <rth@redhat.com>
204 * include/sys/resource.h (__getrusage): Mark hidden.
205 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
206 * include/sys/wait.h (__wait4): Likewise.
208 2003-06-17 Guido Guenther <agx@sigxcpu.org>
210 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
212 (xstat_conv): Rename to __xstat_conv and remove static inline.
213 (xstat64_conv): Likewise.
215 2003-06-29 Ulrich Drepper <drepper@redhat.com>
217 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
218 values which cannot be handled in one nanosleep call.
220 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
222 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
223 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
225 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
227 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
229 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
232 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
234 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
235 Conditionalize function definitions that use struct kernel_stat.
236 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
237 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
238 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
240 2003-06-28 Ulrich Drepper <drepper@redhat.com>
242 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
245 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
247 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
248 (getgrent_next_file): Don't store group name to early in blacklist.
250 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
251 and use memcpy instead of strcpy.
253 2003-06-28 Ulrich Drepper <drepper@redhat.com>
255 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
257 * nis/nss_compat/compat-initgroups.c: Likewise.
258 * nis/nss_compat/compat-pwd.c: Likewise.
259 * nis/nss_compat/compat-spwd.c: Likewise.
261 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
263 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
264 functions, dlopen corresponding NSS module instead.
266 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
268 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
269 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
270 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
271 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
273 2003-06-27 Ulrich Drepper <drepper@redhat.com>
275 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
277 2003-06-26 Roland McGrath <roland@frob.com>
279 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
280 * sysdeps/mach/configure: Regenerated.
281 * sysdeps/mach/hurd/times.c (times_init): Function removed.
282 (__times): Assume `creation_time' field is available.
283 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
284 Don't append set-init.
285 * sysdeps/mach/hurd/set-init.c: File removed.
287 2003-06-26 Roland McGrath <roland@redhat.com>
289 * elf/elf.h (AT_SECURE): New macro.
290 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
291 set __libc_enable_secure.
292 (_dl_show_auxv): Add AT_SECURE to name table.
293 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
294 __libc_enable_secure and __libc_enable_secure_decided.
295 * sysdeps/unix/sysv/linux/ldsodefs.h
296 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
297 * sysdeps/unix/sysv/linux/kernel-features.h
298 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
300 2003-06-26 Ulrich Drepper <drepper@redhat.com>
302 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
303 boundary test to take rounding of nanoseconds into account.
305 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
306 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
307 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
308 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
309 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
310 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
311 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
313 2003-06-26 Andreas Schwab <schwab@suse.de>
315 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
316 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
317 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
319 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
321 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
322 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
323 dlopen corresponding NSS module instead.
324 * nis/nss_compat/compat-pwd.c: Likewise.
325 * nis/nss_compat/compat-spwd.c: Likewise.
326 * nis/nss_compat/compat-initgroups.c: Disabled for now.
327 * nss/Versions: Export __nss_lookup_function.
329 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
331 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
332 for the SH architecture.
334 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
336 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
338 2003-06-25 Andreas Jaeger <aj@suse.de>
340 * stdlib/tst-strtod.c (main): Declare constant long double as
341 suggested by Jakub Jelinek and Andreas Schwab.
343 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
346 * stdio-common/tst-fphex.c: Fix format string.
348 * posix/transbug.c: Include <string.h> for memset and strlen
351 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
353 * stdlib/tst-strtod.c (main): Pass long double value.
355 * test-skeleton.c: Include <time.h> for nanosleep declaration.
357 2003-06-25 Ulrich Drepper <drepper@redhat.com>
359 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
362 2003-06-11 Jakub Jelinek <jakub@redhat.com>
364 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
365 * elf/dl-libc.c (struct dl_open_hook): New.
366 (_dl_open_hook): New variable.
367 (do_dlsym_private): New function.
368 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
369 and initialize it if found.
370 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
371 call dlopen_mode hook.
372 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
374 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
377 2003-06-25 Ulrich Drepper <drepper@redhat.com>
379 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
380 result to long int so that extensions to long long int work.
381 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
383 2003-06-19 Jakub Jelinek <jakub@redhat.com>
385 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
386 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
387 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
389 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
390 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
391 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
392 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
394 2003-06-19 Jakub Jelinek <jakub@redhat.com>
396 * test-skeleton.c (timeout_handler): If waitpid returned 0,
397 retry once after a second. If killed == 0, assume
398 WTERMSIG (status) == SIGKILL.
400 2003-06-18 Roland McGrath <roland@redhat.com>
402 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
403 elements in the table instead of printing an empty name string.
405 2003-06-05 Roland McGrath <roland@redhat.com>
407 * elf/elf.h (PT_GNU_STACK): New macro.
409 2003-06-24 Ulrich Drepper <drepper@redhat.com>
411 * include/time.h: Define CLOCK_IDFIELD_SIZE.
412 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
413 * sysdeps/unix/clock_gettime.c: Likewise.
414 * sysdeps/unix/clock_settime.c: Likewise.
415 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
416 clock id for thread CPU clocks.
418 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
419 for the fstatfs64 syscall.
420 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
421 the statfs64 syscall.
423 * sysdeps/unix/sysv/linux/kernel-features.h: Define
424 __ASSUME_STATFS64 appropriately.
426 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
427 from statfs structure if it has been filled in.
429 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
431 (struct statfs64): Likewise.
432 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
433 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
435 2003-06-24 Richard Henderson <rth@redhat.com>
437 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
438 the 64-bit syscall name.
440 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
442 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
443 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
445 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
446 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
448 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
449 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
452 * sysdeps/alpha/bits/atomic.h: New file.
454 2003-06-24 Andreas Schwab <schwab@suse.de>
456 * sysdeps/m68k/fpu/libm-test-ulps: Update.
458 2003-06-24 Andreas Jaeger <aj@suse.de>
460 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
461 redeclaration with 32-bit code.
463 2003-05-19 Ed Connell <ed.connell@sas.com>
465 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
467 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
469 2003-06-23 Ulrich Drepper <drepper@redhat.com>
471 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
472 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
473 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
475 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
476 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
477 instead of __libc_cleanup_region_*.
479 2003-06-20 Richard Henderson <rth@redhat.com>
481 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
482 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
484 2003-06-20 Richard Henderson <rth@redhat.com>
486 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
487 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
489 (__ASSUME_TIMEVAL64): Set for alpha.
490 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
491 adjtimex, osf_sigprocmask, old_adjtimex.
492 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
493 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
494 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
495 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
496 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
497 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
498 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
499 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
500 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
501 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
502 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
504 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
505 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
506 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
507 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
508 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
509 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
510 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
511 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
512 defer to __syscall_name; error for rt_sigaction.
513 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
515 2003-06-18 Ulrich Drepper <drepper@redhat.com>
517 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
520 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
521 Fix completely broken implementation. The second parameter is of
522 type struct ucontext*.
524 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
527 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
528 * sysdeps/generic/dl-hash.h: Likewise.
530 * sysdeps/generic/memcmp.c: Remove inline from
531 memcmp_common_alignment and memcmp_not_common_alignment definition.
533 * intl/localealias.c (read_alias_file): Determine whether line is
534 read incompletely early, before we modify the line.
536 2003-06-17 Jakub Jelinek <jakub@redhat.com>
538 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
539 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
541 2003-06-17 Paul Mackerras <paulus@samba.org>
543 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
544 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
545 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
546 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
547 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
548 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
550 2003-06-17 Jakub Jelinek <jakub@redhat.com>
552 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
554 2003-06-17 Ulrich Drepper <drepper@redhat.com>
556 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
557 takes care of enabling cancellation.
559 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
560 cancelable. It's not correct to disable cancellation. Instead of
563 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
564 and part of the incoming set, create a temporary set without this
566 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
567 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
569 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
570 returning because seconds==0. Add __builtin_expect.
572 2003-06-16 Ulrich Drepper <drepper@redhat.com>
574 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
576 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
579 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
581 * include/libc-symbols.h: Add static_link_warning macro.
582 * grp/initgroups.c: Print linker warning if this function
583 is called in a static linked binary.
584 * nss/getXXbyYY.c: Likewise.
585 * nss/getXXbyYY_r.c: Likewise.
586 * nss/getXXent.c: Likewise.
587 * nss/getXXent_r.c: Likewise.
588 * sysdeps/posix/getaddrinfo.c: Likewise.
590 2003-06-16 Bruno Haible <bruno@clisp.org>
592 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
594 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
595 (IBM1047): Add alias IBM-1047.
596 (GBK): Add aliases MS936, WINDOWS-936.
598 2003-06-16 Jakub Jelinek <jakub@redhat.com>
600 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
601 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
602 (__xstat64_conv): Change xstat_conv to __xstat_conv.
604 2003-06-16 Ulrich Drepper <drepper@redhat.com>
606 * locale/iso-639.def: Update from current official ISO 639.
608 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
610 2003-06-15 Andreas Jaeger <aj@suse.de>
612 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
614 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
615 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
616 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
618 * math/tgmath.h (carg): Handle real arguments.
624 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
625 (tests): Add test-tgmath-ret.
626 * math/test-tgmath-ret.c: New file.
628 * math/tgmath.h (ilogb): Return always an int.
630 2003-06-16 Ulrich Drepper <drepper@redhat.com>
632 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
633 computation so that prelinking works.
635 2003-06-15 Ulrich Drepper <drepper@redhat.com>
637 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
639 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
640 dynamic linker's map.
642 Fix cancellation point handling wrt exception based cleanup.
643 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
644 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
646 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
647 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
648 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
650 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
651 sigwait.c, and sigwaitinfo.c with exceptions.
652 * stdlib/Makefile: Compile system.c with exceptions.
653 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
654 * termios/Makefile: Compile tcdrain.c with exceptions.
655 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
657 * sysdeps/generic/pselect.c: Likewise.
658 * sysdeps/posix/sigpause.c: Likewise.
659 * sysdeps/posix/system.c: Likewise.
660 * sysdeps/posix/waitid.c: Likewise.
661 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
662 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
663 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
664 INTERNAL_SYSCALL to not use push inside asm statement so that
665 unwind info is correct around the syscall.
666 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
667 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
669 2003-06-15 Andreas Jaeger <aj@suse.de>
671 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
674 2003-06-15 Guido Guenther <agx@sigxcpu.org>
676 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
679 2003-06-14 Ulrich Drepper <drepper@redhat.com>
681 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
684 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
685 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
688 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
689 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
690 * inet/Makefile (routines): Add inet6_option.
691 * inet/inet6_option.c: New file.
692 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
693 inet6_option_init, inet6_option_append, inet6_option_alloc,
694 inet6_option_next, and inet6_option_find.
696 2003-06-13 Ulrich Drepper <drepper@redhat.com>
698 * inet/netinet/ip6.h (struct ip6_ext): Define.
700 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
702 Fixing gcc 3.3 warnings, part II.
703 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
704 * elf/dl-load.c (cache_rpath): Don't inline.
705 * iconvdata/cns11642l2.h: Always inline all functions.
706 * iconvdata/iso-ir-165.h: Likewise.
707 * locale/Makefile (aux): Add coll-lookup.
708 * locale/coll-lookup.c: New file.
709 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
710 (collseq_table_lookup): Likewise.
711 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
712 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
714 * posix/regcomp.c: Likewise.
715 * posix/regexec.c: Likewise.
716 * locale/programs/3level.h (*_get): Always inline.
717 * locale/programs/locfile.h: Move definition of handle_copy to...
718 * locale/programs/locfile.c: ...here.
719 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
720 (obstack_int32_grow_fast): Likewise.
721 (utf8_encode): Likewise.
722 (find_element): Avoid aliasing problems.
723 (insert_value): Likewise.
724 (collate_read): Likewise.
725 * nss/getent.c (print_hosts): Don't inline
726 (print_networks): Likewise.
727 (print_shadow): Likewise.
728 (build_doc): Likewise.
729 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
731 * posix/regcomp.c (re_set_fastmap): Always inline.
732 (seek_collating_symbol_entry): Likewise.
733 (lookup_collation_sequence_value): Likewise.
734 (build_range_exp): Likewise.
735 (build_collating_symbol): Likewise.
736 * posix/regexec.c (acquire_init_state_context): Don't inline.
737 (clean_state_log_if_need): Likewise.
738 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
740 (evConsTime): Likewise.
741 (evAddTime): Likewise.
742 (evSubTime): Likewise.
743 (evNowTime): Likewise.
744 (evTimeSpec): Removed.
745 (__libc_res_nsend): Avoid aliasing problem.
746 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
747 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
748 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
750 (_dl_string_platform): Likewise.
751 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
752 (wcwidth_table_lookup): Likewise.
753 (wctrans_table_lookup): Likewise.
755 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
757 2003-06-12 Ulrich Drepper <drepper@redhat.com>
759 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
761 2003-05-29 Jim Meyering <jim@meyering.net>
763 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
764 && HAVE_STRFTIME]: Use underlying_strftime for %r.
765 Suggested by Daniel Yacob <locales@geez.org>.
767 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
769 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
770 @got notation with @toc.
771 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
772 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
774 2003-06-12 Ulrich Drepper <drepper@redhat.com>
776 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
777 if only PF_INET address is needed.
779 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
782 * scripts/config.guess: Update from upstream version.
783 * scripts/config.sub: Likewise.
785 2003-06-12 Jakub Jelinek <jakub@redhat.com>
787 * locale/programs/ld-time.c (time_output): Also copy the era format,
790 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
792 * posix/transbug.c (run_test): Return 1 for failure.
793 (do_test): Compare only if run_test is successful.
795 2003-06-12 Simon Josefsson <jas@extundo.com>
797 * argp/argp.h [!__THROW]: Define if undefined.
799 2003-06-12 Ulrich Drepper <drepper@redhat.com>
801 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
802 more than four parameters.
803 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
805 2003-06-12 Jakub Jelinek <jakub@redhat.com>
807 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
808 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
809 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
811 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
813 2003-06-12 Roland McGrath <roland@redhat.com>
815 * Makerules ($(objpfx)stubs): Rewrite sed magic.
817 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
819 * posix/regcomp.c (parse_expression): Deliver translation to
820 build_word_op, and build_charclass.
821 (build_charclass): Apply translation for character classes too.
822 (build_word_op): Deliver translation to build_charclass.
823 * posix/transbug.c: New file.
824 * posix/Makefile (tests): Add transbug.
826 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
828 * posix/regexec.c (group_nodes_into_DFAstates): Check for
829 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
830 'continue' before the others.
832 2003-06-11 Ulrich Drepper <drepper@redhat.com>
834 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
835 function [PR libc/5045].
837 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
840 * time/tzfile.c: Add a couple of __builtin_expect.
842 Remove warnings gcc 3.3 shows.
843 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
844 * elf/dl-load.c (fillin_rpath): Likewise.
845 (add_path): Likewise.
846 * elf/dl-version.c (find_needed): Always inline.
847 * elf/do-lookup.c (FCT): Don't inline.
848 * iconv/Makefile: Extend vpath to intl subdir.
849 (iconvconfig-modules): Add hash-string.
850 * iconv/gconv_charset.h (strip): Don't inline.
851 (upstr): Always inline.
852 Move __gconv_compare_alias prototype to...
853 * iconv/gconv_int.h: ...here.
854 * iconv/gconv_db.c: Don't include gconv_charset.h.
855 * iconv/gconv_conf.c (add_alias): Don't inline.
856 (insert_module): Likewise.
857 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
858 (internal_ucs4_loop_unaligned): Likewise.
859 (internal_ucs4_loop_single): Likewise.
860 (ucs4_internal_loop): Likewise.
861 (ucs4_internal_loop_unaligned): Likewise.
862 (ucs4_internal_loop_single): Likewise.
863 (internal_ucs4le_loop): Always inline.
864 (internal_ucs4le_loop_unaligned): Likewise.
865 (internal_ucs4le_loop_single): Likewise.
866 (ucs4le_internal_loop): Likewise.
867 (ucs4le_internal_loop_unaligned): Likewise.
868 (ucs4le_internal_loop_single): Likewise.
869 * iconv/loop.c: Always inline the defined functions.
870 * iconvdata/cns11642.h: Likewise.
871 * iconvdata/cns11642l1.h: Likewise.
872 * iconvdata/euc-kr.c: Likewise.
873 * iconvdata/gb2312.h: Likewise.
874 * iconvdata/jis0201.h: Likewise.
875 * iconvdata/jis0208.h: Likewise.
876 * iconvdata/jis0212.h: Likewise.
877 * iconvdata/jisx0213.h: Likewise.
878 * iconvdata/ksc5601.h: Likewise.
879 * iconvdata/utf-7.c (base64): Don't inline.
880 * include/libc-symbols.h (symbol_set_first_element): Add cast
881 (symbol_set_end_p): Likewise.
882 * include/set-hooks (RUN_HOOK): Likewise.
883 * inet/Makefile (aux): Add ifreq.
884 * intl/Makefile (aux): Add some entries from routines. Add
886 * intl/hash-string.c: New file.
887 * intl/hash-string.h: Remove hash_string definition. Declare
889 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
890 * iconv/iconvconfig.c (new_name): Likewise.
891 * intl/dcigettext.c (_nl_find_msg): Likewise.
892 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
893 * io/ftw.c (open_dir_stream): Always inline.
894 (process_entry): Don't inline.
895 * locale/findlocale.c: Include gconv_int.h.
896 * locale/setlocale.c (new_composite_name): Don't inline.
897 * locale/weight.h (findidx): Always inline.
898 * locale/weightwc.h (findidx): Likewise.
899 * locale/programs/linereader.c (lr_ignore_rest): Define here.
900 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
902 (lr_getc): Always inline.
903 (lr_ungetc): Likewise.
904 * nss/nss_files/files-parse.c (parse_list): Likewise.
905 * stdio-common/Makefile (aux): Add printf-parsemb and
907 * stdio-common/_itoa.h (_itoa_word): Always inline.
908 (_fitoa_word, _fitoa): Don't define here, only declare.
909 * stdio-common/_itoa.c (_iftoa_word): Add here.
911 * stdio-common/_itowa.h (_itowa_word): Always inline.
912 * stdio-common/printf-parse.h (read_int): Don't inline.
913 (find_spec): Don't define.
914 Declare __find_specmb and __find_specwc.
915 (parse_one_spec): Don't define.
916 Declare __parse_one_specmb and __parse_one_specwc.
917 * stdio-common/printf-parsemb.c: New file.
918 * stdio-common/printf-parsewc.c: New file.
919 * stdio-common/vfprintf.c: Update calls to find_spec and
920 parse_one_spec for new names.
921 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
922 * stdlib/Makefile (aux): Add grouping and groupingwc.
923 * stdlib/grouping.c: New file.
924 * stdlib/groupingwc.c: New file.
925 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
927 * stdlib/rpmatch.c (try): Don't inline.
928 * stdlib/strtod.c (round_and_return): Don't line.
929 (str_to_mpn): Likewise.
930 (__mpn_lshift_1): Always inline. Optimize only for constant count.
931 Adjust for name change of correctly_grouped_prefix.
932 * sysdeps/generic/strtol.c: Adjust for name change of
933 correctly_grouped_prefix.
934 * string/strxfrm.c (utf8_encode): Don't inline.
935 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
936 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
937 * sysdeps/generic/ifreq.c: New file.
938 * sysdeps/unix/sysv/linux/ifreq.c: New file.
939 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
940 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
941 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
942 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
943 (fde_split): Likewise.
944 (fde_merge): Likewise.
945 (end_fde_sort): Likewise.
946 (init_object): Likewise.
947 (binary_search_unencoded_fdes): Likewise.
948 (binary_search_single_encoding_fdes): Likewise.
949 (binary_search_mixed_encoding_fdes): Likewise.
950 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
951 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
952 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
953 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
955 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
956 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
957 Export them. Prepend __ to name.
958 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
959 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
960 conversion functions.
961 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
962 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
963 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
964 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
965 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
966 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
967 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
968 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
969 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
970 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
971 to name. Change callers.
972 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
973 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
975 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
976 * time/tzfile.c (decode): Always inline.
977 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
978 Remove cast in tomb function call.
979 * wcsmbs/wcsrtombs.c Likewise.
980 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
983 2003-06-10 Ulrich Drepper <drepper@redhat.com>
985 * po/zh_CN.po: Update from translation team.
987 2003-06-10 Jakub Jelinek <jakub@redhat.com>
989 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
990 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
992 2003-06-10 Ulrich Drepper <drepper@redhat.com>
994 * inet/Makefile (aux): Add check_pf.
995 * include/ifaddrs.h: Add prototype for __check_pf.
996 * sysdeps/generic/check_pf.c: New file.
997 * sysdeps/unix/sysv/linux/check_pf.c: New file.
998 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
999 from no_netlink_support. Export.
1000 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
1003 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
1005 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
1006 from getifaddr calls.
1008 2003-06-09 Jakub Jelinek <jakub@redhat.com>
1010 * sysdeps/unix/sysv/linux/kernel-features.h
1011 (__ASSUME_SETRESGID_SYSCALL): Define.
1012 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
1013 instead of __ASSUME_SETRESUID_SYSCALL.
1014 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
1016 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
1017 inline syscall if __NR_setresuid32 is defined.
1018 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
1019 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
1020 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
1021 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1022 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
1023 code handling non-existant setresgid32 syscall with
1024 #if __ASSUME_SETRESGID_SYSCALL == 0.
1026 2003-06-09 Andreas Schwab <schwab@suse.de>
1028 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
1029 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
1030 $(objpfx)rpc-proto.d.
1031 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
1032 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
1033 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
1035 2003-06-08 Ulrich Drepper <drepper@redhat.com>
1037 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
1038 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
1039 defined drop compatibility code.
1040 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
1041 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
1042 defined drop compatibility code.
1043 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
1044 setresuid32 syscall directly if possible.
1045 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
1046 setresgid32 syscall directly if possible.
1047 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
1048 compliant. Don't change sgid.
1049 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
1050 compliant. Don't change suid.
1052 * config.h.in: Add have-forced-unwind.
1053 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
1055 2003-06-07 Ulrich Drepper <drepper@redhat.com>
1057 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
1058 returned status from child matches.
1060 * Makeconfig (gnulib): Add -lgcc_eh once again.
1062 2003-06-06 Ulrich Drepper <drepper@redhat.com>
1064 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
1066 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
1067 %edx for first parameter. This means no pushl and therefore the
1068 unwind info isn't screwed up.
1070 2003-06-04 Richard Henderson <rth@redhat.com>
1072 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
1073 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1074 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
1075 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
1076 entry sequence and explicit relocs. Add unwind info for sigreturn
1078 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
1080 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
1081 Annotate some parameters.
1082 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
1084 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
1086 * include/libc-symbols.h (symbol_set_declare): Use arrays
1087 of unspecified size.
1089 2003-06-04 Jakub Jelinek <jakub@redhat.com>
1091 * config.make.in (ASFLAGS-config): New.
1092 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
1093 * configure.in (libc_cv_as_noexecstack): New check.
1094 (ASFLAGS_config): Substitute.
1096 2003-06-04 Jakub Jelinek <jakub@redhat.com>
1098 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
1099 hypot, logb): Protect with #ifdef __FAST_MATH__.
1101 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
1103 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
1104 #ifdef __FAST_MATH__.
1106 2003-06-03 Ulrich Drepper <drepper@redhat.com>
1108 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
1109 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
1110 * posix/globtest.sh: Adjust for this change.
1112 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
1113 to get the actual PID value used in the records passed up.
1114 (getifaddrs): Don't initialize nh.pid here.
1116 2003-06-02 Ulrich Drepper <drepper@redhat.com>
1118 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
1121 * po/zh_CN.po: Update from translation team.
1123 * posix/getconf.c (main): Also recognize names without the
1126 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
1128 2003-06-02 Bernd Schmidt <bernds@redhat.com>
1130 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
1131 ldexpf, ldexpl): Only define if __FAST_MATH__.
1133 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
1135 Replace hard-coded offsets into struct sigcontext with generated file.
1136 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
1137 * sysdeps/unix/sysv/linux/ia64/Makefile
1138 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
1139 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
1140 defining SC_* macros here.
1142 2003-06-02 Jakub Jelinek <jakub@redhat.com>
1144 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
1146 2003-06-01 Jakub Jelinek <jakub@redhat.com>
1148 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
1150 2003-06-01 Ulrich Drepper <drepper@redhat.com>
1152 * test-skeleton.c (main): Request getopt to not reorder the
1155 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
1157 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
1160 2003-05-31 Ulrich Drepper <drepper@redhat.com>
1162 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
1164 2003-05-31 Jakub Jelinek <jakub@redhat.com>
1166 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
1168 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
1169 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
1170 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
1172 2003-05-31 Ulrich Drepper <drepper@redhat.com>
1174 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
1177 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
1179 * libio/fileops.c (_IO_file_open): Don't mark as inline.
1181 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
1184 2003-05-30 Ulrich Drepper <drepper@redhat.com>
1186 * scripts/config.guess: Update from master copy.
1187 * scripts/config.sub: Likewise.
1189 2003-05-30 Guido Guenther <agx@sigxcpu.org>
1191 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
1192 SETUP_GP64 and friends.
1193 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
1194 names in internal_syscall{6,7}.
1195 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
1196 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
1197 number of syscall arguments.
1198 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1199 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1200 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1202 2003-05-30 Andreas Jaeger <aj@suse.de>
1204 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1207 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
1210 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
1212 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1215 2003-05-30 Jakub Jelinek <jakub@redhat.com>
1217 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
1220 2003-05-11 Andreas Schwab <schwab@suse.de>
1222 * Makerules: Always use -MP together with -MD.
1223 (sed-remove-dotot): Substitute $(..) also at start of line.
1224 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
1225 Generated defines with a single compiler call.
1226 Use $(sed-remove-dotdot).
1227 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
1228 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
1229 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
1230 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
1231 * sysdeps/unix/sysv/linux/mips/Makefile
1232 ($(objpfx)syscall-%.h): Likewise.
1234 2003-05-28 Roland McGrath <roland@redhat.com>
1236 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
1238 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
1240 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
1242 2003-05-28 Roland McGrath <roland@redhat.com>
1244 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
1245 rt_sigprocmask system call.
1246 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
1247 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
1249 2003-05-28 Ulrich Drepper <drepper@redhat.com>
1251 * include/libc-symbols.h: Define hidden attribute for real also if
1252 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
1254 * csu/Makefile: Add rules to build Scrt1.o.
1255 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
1256 * sysdeps/x86_64/elf/start.S: Likewise.
1258 2003-05-27 Jakub Jelinek <jakub@redhat.com>
1260 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
1261 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
1262 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
1263 pa_short_int, pa_u_short_int and pa_float.
1265 2003-05-26 Jakub Jelinek <jakub@redhat.com>
1267 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
1268 _IO_str_init_static_internal.
1269 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
1270 change size argument to _IO_size_t, don't limit sprintf to 64M.
1271 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
1272 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
1273 _IO_size_t, don't limit swprintf to 256M.
1274 (_IO_wstr_init_readonly): Remove.
1275 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
1277 (_IO_wstr_init_readonly): Remove prototype.
1278 * libio/iovsprintf.c (_IO_vsprintf): Use
1279 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
1280 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
1281 * libio/memstream.c (open_memstream): Likewise.
1282 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
1283 * libio/vasprintf.c (_IO_vasprintf): Likewise.
1284 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
1285 * stdio-common/tst-sprintf.c (main): Add new test.
1287 2003-05-26 Ulrich Drepper <drepper@redhat.com>
1289 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
1290 other implementation in respect of multiple uses of parameter with
1293 2003-05-25 Ulrich Drepper <drepper@redhat.com>
1295 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1296 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
1298 2003-05-22 Andreas Jaeger <aj@suse.de>
1300 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
1302 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
1303 * sysdeps/x86_64/strtok.S: Likewise.
1305 2003-05-20 Guido Guenther <agx@sigxcpu.org>
1307 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
1308 to -60 and define SI_TKILL.
1310 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
1312 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
1313 (feexcp_mask_test): Likewise.
1315 2003-05-21 Ulrich Drepper <drepper@redhat.com>
1317 * locale/programs/locale.c (main): Fix typo in last patch.
1319 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
1320 __init_array_start, __init_array_end, __fini_array_start, and
1321 __fini_array_end as hidden.
1323 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
1325 * locale/programs/locale.c (main): Report an error if setlocale()
1326 fails [PR libc/2254].
1328 2003-05-21 Jakub Jelinek <jakub@redhat.com>
1330 * sysdeps/unix/sysv/linux/s390/system.c: New file.
1332 2003-05-21 Jakub Jelinek <jakub@redhat.com>
1334 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
1335 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
1336 LOADARGS_6): Don't error if syscall argument is a string literal.
1337 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
1338 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
1339 LOADARGS_6): Likewise.
1341 2003-05-21 Andreas Jaeger <aj@suse.de>
1343 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
1344 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
1345 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
1347 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
1351 * configure.in: Test for asm cfi directives.
1353 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
1355 2003-05-17 Andreas Jaeger <aj@suse.de>
1357 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
1359 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
1361 2003-05-16 Ulrich Drepper <drepper@redhat.com>
1363 * rt/Makefile (tests): Add tst-clock_nanosleep.
1364 * rt/tst-clock_nanosleep.c: New file.
1365 * posix/Makefile (tests): Add tst-nanosleep.
1366 * posix/tst-nanosleep.c: New file.
1368 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
1370 * include/features.h (__USE_XOPEN2K): Define also for
1371 _POSIX_C_SOURCE>=200112L.
1373 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
1374 SI_TKILL code into SI_USER.
1375 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
1377 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
1379 2003-05-15 Jakub Jelinek <jakub@redhat.com>
1381 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
1382 Remove sym argument, always use refsym.
1383 (__process_machine_rela): Adjust callers.
1384 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
1386 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
1388 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
1390 2003-05-15 Ulrich Drepper <drepper@redhat.com>
1392 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
1393 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
1394 print numeric values.
1396 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
1398 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
1400 2003-05-14 Andreas Schwab <schwab@suse.de>
1402 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
1404 2003-05-14 Jakub Jelinek <jakub@redhat.com>
1406 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
1407 even if no DT_NEEDED is present.
1409 2003-05-13 David Mosberger <davidm@hpl.hp.com>
1411 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
1412 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
1413 __sigjmp_save) so we can't keep the saved unat value in a scratch
1414 register (r16). Use loc2 instead.
1416 2003-05-13 Ulrich Drepper <drepper@redhat.com>
1418 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
1419 binaries it has to be relocatable.
1421 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
1423 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
1425 * sysdeps/powerpc/bits/atomic.h
1426 (__arch_compare_and_exchange_bool_8_rel): Define.
1427 (__arch_compare_and_exchange_bool_16_rel): Define.
1428 (__ARCH_REL_INSTR): Define if not already defined.
1429 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
1430 (__arch_atomic_decrement_if_positive_32):
1431 Add "memory" to clobber list.
1432 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
1433 (__arch_compare_and_exchange_val_32_rel): Define.
1434 (__arch_atomic_exchange_32): Remove.
1435 (__arch_atomic_exchange_32_acq): Define.
1436 (__arch_atomic_exchange_32_rel): Define.
1437 (atomic_compare_and_exchange_val_rel): Define.
1438 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
1439 (atomic_exchange_rel): Define.
1440 * sysdeps/powerpc/powerpc32/bits/atomic.h
1441 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
1442 (__arch_compare_and_exchange_bool_32_rel): Define.
1443 (__arch_compare_and_exchange_bool_64_rel): Define.
1444 (__arch_compare_and_exchange_val_64_rel): Define.
1445 (__arch_atomic_exchange_64): Remove.
1446 (__arch_atomic_exchange_64_acq): Define.
1447 (__arch_atomic_exchange_64_rel): Define.
1448 * sysdeps/powerpc/powerpc64/bits/atomic.h
1449 (__arch_compare_and_exchange_bool_32_rel): Define.
1450 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
1451 (__arch_compare_and_exchange_bool_64_rel): Define.
1452 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
1453 (__arch_compare_and_exchange_val_64_rel): Define.
1454 (__arch_atomic_exchange_64): Remove.
1455 (__arch_atomic_exchange_64_acq): Define.
1456 (__arch_atomic_exchange_64_rel): Define.
1457 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
1458 (__arch_atomic_decrement_if_positive_64):
1459 Add "memory" to clobber list.
1460 [!UP](__ARCH_REL_INSTR): Define as lwsync.
1462 2003-05-11 Andreas Schwab <schwab@suse.de>
1464 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
1466 2003-05-11 Ulrich Drepper <drepper@redhat.com>
1468 * time/tst-strftime.c (do_test): Add tests for - flag.
1470 2003-05-11 Jim Meyering <jim@meyering.net>
1472 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
1473 the space-padded-by-default conversion specifiers, %e, %k, %l.
1475 2003-05-11 Andreas Schwab <schwab@suse.de>
1477 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
1479 2003-05-10 Ulrich Drepper <drepper@redhat.com>
1481 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
1482 already defined and when really needed.
1483 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
1485 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
1487 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
1488 headers, add defines from kernel header, move it from here...
1489 * inet/netinet/igmp.h: ... to here.
1490 * inet/Makefile (headers): Add netinet/igmp.h.
1491 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
1492 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
1494 2003-05-10 Ulrich Drepper <drepper@redhat.com>
1496 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
1497 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
1499 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
1501 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
1502 (remove __THROW from possible cancellation points).
1504 2003-05-10 Ulrich Drepper <drepper@redhat.com>
1506 * posix/sched.h (CPU_SETSIZE): Define.
1508 2003-05-09 Ulrich Drepper <drepper@redhat.com>
1510 * Makeconfig (gnulib): Remove -lgcc_eh again.
1512 * posix/sched.h: Change prototypes of sched_getaffinity and
1513 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
1514 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
1515 * sysdeps/generic/sched_setaffinity.c: Likewise.
1516 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
1517 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
1518 __CPU_CLR, and __CPU_ISSET.
1519 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
1520 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
1521 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
1523 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
1524 (atomic_exchange_rel): New #define.
1525 * sysdeps/ia64/bits/atomic.h: Likewise.
1526 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
1528 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
1529 * sysdeps/powerpc/bits/atomic.h: Likewise.
1530 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
1531 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
1532 * sysdeps/x86_64/bits/atomic.h: Likewise.
1533 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
1535 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
1537 2003-05-08 Ulrich Drepper <drepper@redhat.com>
1539 * malloc/thread-m.h: Remove special handling of thread_atfork if
1540 HAVE_register_atfork_malloc is defined.
1542 2003-05-07 Andreas Jaeger <aj@suse.de>
1544 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
1547 2003-05-06 Ulrich Drepper <drepper@redhat.com>
1549 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
1550 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
1551 * libio/libioP.h: Declare _IO_old_init.
1552 * libio/genops.c (_IO_no_init): Split in two. New function
1555 2003-05-05 Ulrich Drepper <drepper@redhat.com>
1557 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
1559 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
1561 * include/unistd.h: Declare __libc_enable_secure_decided.
1562 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
1563 and AT_EGID. If all found, set __libc_enable_secure and
1564 __libc_enable_secure_decided.
1566 * sysdeps/generic/libc-start.c [!SHARED]: Call
1567 __libc_check_standard_fds after __libc_init_first.
1569 2003-05-05 Roland McGrath <roland@redhat.com>
1571 * Makerules (common-before-compile): New variable.
1572 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
1573 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
1574 to after all setting of before-compile.
1576 2003-05-05 Jakub Jelinek <jakub@redhat.com>
1578 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
1579 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
1580 * sysdeps/powerpc/powerpc32/bits/atomic.h
1581 (__arch_compare_and_exchange_val_64_acq): Likewise.
1582 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
1583 (__arch_compare_and_exchange_val_8_acq,
1584 __arch_compare_and_exchange_val_16_acq,
1585 __arch_compare_and_exchange_val_64_acq): Likewise.
1586 * sysdeps/sparc/sparc64/bits/atomic.h
1587 (__arch_compare_and_exchange_val_8_acq,
1588 __arch_compare_and_exchange_val_16_acq): Likewise.
1589 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
1590 __arch_compare_and_exchange_val_16_acq,
1591 __arch_compare_and_exchange_val_64_acq): Likewise.
1592 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
1593 (__arch_compare_and_exchange_val_64_acq): Likewise.
1594 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
1596 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
1598 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1599 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
1600 Return long instead of int.
1601 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
1602 0xfffff001u with -4095UL.
1604 2003-05-05 Andreas Jaeger <aj@suse.de>
1606 * sysdeps/x86_64/fpu_control.h: New from i386.
1608 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
1609 Define if not defined.
1611 * sunrpc/Makefile (generated-dirs): New variable.
1612 * resolv/Makefile (generated): New variable.
1614 2003-05-04 Roland McGrath <roland@redhat.com>
1616 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
1617 Depend on $(before-compile).
1619 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
1620 pattern rule. The implicit rule could be ruled out when $(objpfx)
1621 didn't exist at the time of its consideration (ugh!).
1623 * Makerules (+make-deps): Fix target matching.
1624 Use $(sed-remove-dotdot).
1626 2003-05-03 Ulrich Drepper <drepper@redhat.com>
1628 * nscd/nscd.c (main): Parse config file right after parsing
1629 parameters. Then, if get_stats is true, call receive_print_stats.
1630 Drop parameter from nscd_init call.
1631 (get_stats): New variable.
1632 (parse_opt): Set get_stats, don't call receive_print_stats here.
1633 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
1635 * nscd/connections.c (stat_user, stat_uid): New variables.
1637 (nscd_init): Don't read configuration file here. Drop parameter.
1638 (handle_request): Cleanup handling of non-database lookup requests.
1639 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
1640 Get UID of the specified user. Use xstrdup instead of strdup.
1641 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
1643 * nscd/Makefile (nscd-modules): Add xstrdup.
1644 * nscd/nscd.conf: Document stat-user entry.
1646 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
1648 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
1651 2003-04-22 Roland McGrath <roland@redhat.com>
1653 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
1654 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
1655 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
1656 * elf/dl-support.c: Update defn.
1657 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
1658 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
1659 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
1660 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
1661 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
1662 set, set up a link_map for the preloaded, prelinked object.
1664 2003-05-03 Roland McGrath <roland@redhat.com>
1666 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
1667 * stdio-common/Makefile: ... not here.
1669 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
1670 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
1672 2003-05-02 Ulrich Drepper <drepper@redhat.com>
1674 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
1676 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
1678 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
1679 comparing ftab elements.
1680 (_dl_unmap): Fix typo in test.
1681 (_dl_make_fptr): Fix typos introduced in last change.
1683 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
1684 original patch. Use non-exported symbols. Mark translatable
1685 strings. Pretty printing.
1687 2003-05-02 Roland McGrath <roland@redhat.com>
1689 * Makerules (do-stamp): Do $(make-target-directory).
1691 2003-04-07 H.J. Lu <hjl@gnu.org>
1693 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
1695 2003-04-03 H.J. Lu <hjl@gnu.org>
1697 * sysdeps/ia64/dl-fptr.c: Moved to ...
1698 * sysdeps/generic/dl-fptr.c: Here.
1700 * sysdeps/generic/dl-fptr.h: New.
1701 * sysdeps/ia64/dl-fptr.h: New.
1703 * sysdeps/ia64/dl-symaddr.c: Moved to ...
1704 * sysdeps/generic/dl-symaddr.c: here.
1706 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
1707 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
1708 (ia64_fdesc): Likewise.
1709 (ia64_fdesc_table): Likewise.
1710 (__ia64_make_fptr): Likewise.
1711 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
1712 with _dl_boot_fptr_table.
1713 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
1715 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
1717 2003-05-01 Roland McGrath <roland@redhat.com>
1719 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
1720 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
1722 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
1723 Use $(make-target-directory).
1724 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
1726 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
1727 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
1728 (compile-command.s, compile-command.c): Likewise.
1729 ($(objpfx)%.d): All such pattern rules removed.
1730 ($(+sysdir_pfx)sysd-rules): Don't generate them.
1731 ($(common-objpfx)dummy.d): Target removed.
1732 (make-dummy-dep): Variable removed.
1733 (generate-md5): Likewise.
1734 (%.d: %.dt): New pattern rule.
1735 (+depfiles): Use $(wildcard) function to get just existing *.d files
1736 and .d files for existing *.dt files.
1737 (common-clean): Remove all *.d and *.dt files.
1738 (before-compile): Add $(objpfx). when it doesn't exist,
1739 regardless of $(no_deps).
1740 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
1741 (rtld-depfiles): Use .os.d instead of .d names.
1742 Include existing *.d files and .d files for existing *.dt files.
1744 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
1745 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
1747 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
1748 Do s-*.d includes only if we have some syscall routines in this subdir.
1750 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
1751 @nobits. The former is accepted by gas on any ELF platform.
1753 2003-05-01 Ulrich Drepper <drepper@redhat.com>
1755 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
1757 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
1759 2003-04-29 Andreas Schwab <schwab@suse.de>
1761 * string/test-strcat.c (do_one_test): Fix attribute name.
1763 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
1765 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
1766 uc_flags long for all ABIs.
1768 2003-04-30 Andreas Jaeger <aj@suse.de>
1770 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
1771 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
1772 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
1773 Add bi-arch support.
1775 2003-04-30 Ulrich Drepper <drepper@redhat.com>
1777 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
1778 (__posix_memalign): Use __memalign_internal instead of memalign.
1780 2003-04-29 Roland McGrath <roland@redhat.com>
1782 * configure.in: Search for AUTOCONF unconditionally.
1783 Just don't complain about missing it under --without-cvs.
1785 * include/libc-symbols.h (__symbol_set_attribute): New macro,
1786 give hidden for [SHARED] and weak for [! SHARED].
1787 (symbol_set_declare): Use that. Never need weak_extern these days.
1788 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
1789 Depend on $(..)Makerules.
1791 2003-04-29 Ulrich Drepper <drepper@redhat.com>
1793 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
1794 variants of socket, bind, recvmsg, and sendto.
1796 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
1798 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
1799 * signal/sigaddset.c: Add libc_hidden_def.
1800 * signal/sigdelset.c: Likewise.
1802 2003-04-29 Jakub Jelinek <jakub@redhat.com>
1804 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
1805 to the end of the file.
1807 * configure.in: Change __oline__ to $LINENO.
1808 (HAVE_BUILTIN_REDIRECTION): New check.
1809 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
1810 * include/libc-symbols.h (libc_hidden_builtin_proto,
1811 libc_hidden_builtin_def, libc_hidden_builtin_weak,
1812 libc_hidden_builtin_ver): Define.
1813 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
1814 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
1815 strspn, strstr): Add libc_hidden_builtin_proto.
1816 * intl/plural.y: Include string.h.
1817 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
1818 libc_hidden_builtin_def.
1819 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
1820 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
1821 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
1822 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
1823 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
1824 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
1825 * sysdeps/alpha/memchr.S (memchr): Likewise.
1826 * sysdeps/alpha/memset.S (memset): Likewise.
1827 * sysdeps/alpha/strcat.S (strcat): Likewise.
1828 * sysdeps/alpha/strchr.S (strchr): Likewise.
1829 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
1830 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
1831 * sysdeps/alpha/strlen.S (strlen): Likewise.
1832 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
1833 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
1834 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
1835 * sysdeps/arm/memset.S (memset): Likewise.
1836 * sysdeps/arm/strlen.S (strlen): Likewise.
1837 * sysdeps/generic/memchr.c (memchr): Likewise.
1838 * sysdeps/generic/memcpy.c (memcpy): Likewise.
1839 * sysdeps/generic/memmove.c (memmove): Likewise.
1840 * sysdeps/generic/memset.c (memset): Likewise.
1841 * sysdeps/generic/strcat.c (strcat): Likewise.
1842 * sysdeps/generic/strchr.c (strchr): Likewise.
1843 * sysdeps/generic/strcmp.c (strcmp): Likewise.
1844 * sysdeps/generic/strcpy.c (strcpy): Likewise.
1845 * sysdeps/generic/strcspn.c (strcspn): Likewise.
1846 * sysdeps/generic/strlen.c (strlen): Likewise.
1847 * sysdeps/generic/strncmp.c (strncmp): Likewise.
1848 * sysdeps/generic/strncpy.c (strncpy): Likewise.
1849 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
1850 * sysdeps/generic/strrchr.c (strrchr): Likewise.
1851 * sysdeps/generic/strspn.c (strspn): Likewise.
1852 * sysdeps/generic/strstr.c (strstr): Likewise.
1853 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
1854 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
1855 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
1856 * sysdeps/i386/i586/memset.S (memset): Likewise.
1857 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
1858 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
1859 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
1860 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
1861 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
1862 * sysdeps/i386/i686/memset.S (memset): Likewise.
1863 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
1864 * sysdeps/i386/memchr.S (memchr): Likewise.
1865 * sysdeps/i386/memset.c (memset): Likewise.
1866 * sysdeps/i386/strchr.S (strchr): Likewise.
1867 * sysdeps/i386/strcspn.S (strcspn): Likewise.
1868 * sysdeps/i386/strlen.c (strlen): Likewise.
1869 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
1870 * sysdeps/i386/strrchr.S (strrchr): Likewise.
1871 * sysdeps/i386/strspn.S (strspn): Likewise.
1872 * sysdeps/ia64/memchr.S (memchr): Likewise.
1873 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
1874 * sysdeps/ia64/memmove.S (memmove): Likewise.
1875 * sysdeps/ia64/memset.S (memset): Likewise.
1876 * sysdeps/ia64/strcat.S (strcat): Likewise.
1877 * sysdeps/ia64/strchr.S (strchr): Likewise.
1878 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
1879 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
1880 * sysdeps/ia64/strlen.S (strlen): Likewise.
1881 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
1882 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
1883 * sysdeps/m68k/memchr.S (memchr): Likewise.
1884 * sysdeps/m68k/strchr.S (strchr): Likewise.
1885 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
1886 * sysdeps/mips/mips64/memset.S (memset): Likewise.
1887 * sysdeps/mips/memcpy.S (memcpy): Likewise.
1888 * sysdeps/mips/memset.S (memset): Likewise.
1889 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
1890 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
1891 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
1892 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
1893 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
1894 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
1895 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
1896 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
1897 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
1898 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
1899 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
1900 * sysdeps/powerpc/strcat.c (strcat): Likewise.
1901 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
1902 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
1903 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
1904 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
1905 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
1906 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
1907 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
1908 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
1909 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
1910 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
1911 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
1912 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
1913 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
1914 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
1915 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
1916 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
1917 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
1918 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
1919 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
1920 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
1921 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
1922 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
1923 * sysdeps/sh/memcpy.S (memcpy): Likewise.
1924 * sysdeps/sh/memset.S (memset): Likewise.
1925 * sysdeps/sh/strlen.S (strlen): Likewise.
1926 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
1927 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
1928 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
1929 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
1930 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
1931 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
1932 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
1933 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
1934 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
1935 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
1936 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
1937 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
1938 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
1939 * sysdeps/x86_64/memset.S (memset): Likewise.
1940 * sysdeps/x86_64/strcat.S (strcat): Likewise.
1941 * sysdeps/x86_64/strchr.S (strchr): Likewise.
1942 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
1943 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
1944 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
1945 * sysdeps/x86_64/strlen.S (strlen): Likewise.
1946 * sysdeps/x86_64/strspn.S (strspn): Likewise.
1947 * string/string-inlines.c: Move...
1948 * sysdeps/generic/string-inlines.c: ...here.
1949 (__memcpy_g, __strchr_g): Remove.
1950 (__NO_INLINE__): Define before including <string.h>,
1951 undefine after. Include bits/string.h and bits/string2.h.
1952 * sysdeps/i386/i486/string-inlines.c: New file.
1953 * sysdeps/i386/string-inlines.c: New file.
1954 * sysdeps/i386/i486/Versions: Remove.
1955 All GLIBC_2.1.1 symbols moved...
1956 * sysdeps/i386/Versions (libc): ...here.
1958 2003-04-29 Ulrich Drepper <drepper@redhat.com>
1960 * sysdeps/i386/fpu/Makefile: New file.
1961 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
1962 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1963 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1964 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
1967 2003-04-28 Ulrich Drepper <drepper@redhat.com>
1969 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
1970 * nscd/nscd_getpw_r.c: Likewise.
1971 * nscd/nscd_gethst_r.c: Likewise.
1973 2003-04-27 Ulrich Drepper <drepper@redhat.com>
1975 * nscd/pwdcache.c: Initialize .version element in result.
1976 * nscd/grpcache.c: Likewise.
1977 * nscd/pwdcache.c: Likewise.
1979 2003-04-27 Andreas Schwab <schwab@suse.de>
1981 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
1984 2003-04-27 Andreas Schwab <schwab@suse.de>
1986 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
1988 2003-04-27 Ulrich Drepper <drepper@redhat.com>
1990 * nscd/connections.c (client_queued): New variable.
1991 (nscd_run): Revamp the loop. Don't call poll except for cleanup
1992 threads. Keep track of the number of delays caused because of busy
1994 * nscd/nscd.h: Declare client_queued.
1995 * nscd/nscd_stat.c: Transmit and print client_queued information.
1997 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
1999 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
2000 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
2002 2003-04-26 Ulrich Drepper <drepper@redhat.com>
2004 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
2005 tracking of freed memory in static TLS block.
2006 * elf/Makefile: Add rules to build and run tst-tls13.
2007 * elf/tst-tls13.c: New file.
2008 * elf/tst-tlsmod13.c: New file.
2009 * elf/tst-tlsmod13a.c: New file.
2011 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
2013 * elf/dl-reloc.c: Pretty printing.
2015 2003-04-26 Roland McGrath <roland@redhat.com>
2017 * Makerules ($(common-objpfx)shlib.lds): New target.
2018 (common-generated): Add it.
2019 (build-shlib, build-module): Use that instead of generating every time.
2020 ($(common-objpfx)libc.so): Depend on it.
2021 (lib%.so rule): Likewise.
2022 (build-module-helper-objlist): Remove %.lds.
2023 (LDSEDCMD-c.so): Variable removed.
2024 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
2025 Depend on $(common-objpfx)shlib.lds.
2026 * dlfcn/Makefile ($(test-modules)): Likewise.
2028 2003-04-26 Roland McGrath <roland@frob.com>
2030 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
2032 2003-04-26 Andreas Schwab <schwab@suse.de>
2034 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
2036 2003-04-25 Ulrich Drepper <drepper@redhat.com>
2038 * nscd/cache.c (cache_search): Keep track of how many chain links
2039 we searched and update table statistics.
2040 (cache_add): Keep track of how many values are in the table.
2041 (prune_cache): Likewise. Keep track of locking success.
2042 Print messages about removed entries in separate pass.
2043 * nscd/connections.c (handle_request): Don't print debug message here.
2044 The caller will do it. Keep track of locking success.
2045 (nscd_run): Print debug message. Also print PID of the client process.
2046 * nscd/nscd.c (start_time): New variable.
2047 (main): Remember start time.
2048 * nscd/nscd.h: Declare start_time.
2049 (struct database): Add more members for new statistics.
2050 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
2053 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
2055 2003-04-22 Jakub Jelinek <jakub@redhat.com>
2057 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
2058 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
2059 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
2061 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
2062 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
2063 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
2064 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
2067 2003-04-24 Ulrich Drepper <drepper@redhat.com>
2069 * nss/getent.c: Implement alternative host database lookup via
2072 * include/ifaddrs.h: New file.
2073 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
2075 * resolv/netdb.h: ...here.
2076 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
2077 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
2078 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
2081 2003-04-24 Roland McGrath <roland@redhat.com>
2083 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
2085 2003-04-24 Jakub Jelinek <jakub@redhat.com>
2087 * elf/dl-reloc.c (allocate_static_tls): Rename to...
2088 (_dl_allocate_static_tls): ... this function. No longer static.
2089 (CHECK_STATIC_TLS): Adjust.
2090 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
2091 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
2092 Add SYM_MAP argument.
2093 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
2094 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
2095 TLS relocs here. #ifdef out relocs which never appear in
2096 .gnu.conflict section from dl-conflict.c processing.
2097 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
2098 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
2100 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
2101 out relocs which never appear in .gnu.conflict section from
2102 dl-conflict.c processing.
2103 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
2104 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2105 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
2106 Use r_type in RESOLVE macro.
2108 2003-04-23 Ulrich Drepper <drepper@redhat.com>
2110 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
2111 NULL. Remove code made redundant by this assumption.
2112 (__yp_unbind): Add call to free. Adjust all callers.
2114 * nis/ypclnt.c (yp_all): Free the dom_binding object after
2117 * grp/initgroups.c (getgrouplist): Don't copy too much into the
2118 user buffer if more groups are found than fit into it.
2120 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
2123 2003-04-23 Jakub Jelinek <jakub@redhat.com>
2125 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
2126 not rc == errno. Use extend_alloca.
2128 * elf/tst-tls12.c (main): Fix declaration.
2129 * elf/tst-tls10.c (dummy): Make hidden instead of static.
2130 * elf/tst-tlsmod7.c (dummy): Likewise.
2131 * elf/tst-tlsmod8.c (dummy): Likewise.
2132 * elf/tst-tlsmod9.c (dummy): Likewise.
2134 2003-04-22 Roland McGrath <roland@redhat.com>
2136 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
2137 (open_not_cancel): Make last argument non-optional.
2138 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
2139 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
2140 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
2142 * include/tls.h: Protect against multiple inclusion.
2144 2003-04-22 Ulrich Drepper <drepper@redhat.com>
2146 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
2147 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
2148 open_socket. Not static anymore.
2149 (nscd_gethst_r): Use __nscd_open_socket.
2150 * nscd/nscd_getgr_r.c (open_socket): Removed.
2151 (nscd_getgr_r): Use __nscd_open_socket.
2152 * nscd/nscd_getpw_r.c (open_socket): Removed.
2153 (nscd_getpw_r): Use __nscd_open_socket.
2155 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
2156 * nscd/connections.c (handle_request): Add cast to avoid warning.
2158 2003-04-21 Ulrich Drepper <drepper@redhat.com>
2160 * signal/sigfillset.c: Moved to...
2161 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
2162 do not set the corresponding bit.
2164 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
2166 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
2167 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
2168 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
2169 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
2170 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
2172 2003-04-20 Ulrich Drepper <drepper@redhat.com>
2174 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
2175 first syscall parameter to const char*.
2177 2003-04-19 Ulrich Drepper <drepper@redhat.com>
2179 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
2181 * configure.in: Add AC_PROG_CXX.
2182 * config.make.in (CXX): Define.
2184 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
2185 __len to size_t to avoid warnings.
2187 2003-04-18 Jes Sorensen <jes@wildopensource.com>
2189 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
2191 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2193 2003-04-19 Ulrich Drepper <drepper@redhat.com>
2195 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
2196 UNREGISTER_ATFORK if d == NULL.
2198 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
2199 * dirent/dirent.h: Likewise.
2200 * dlfcn/dlfcn.h: Likewise.
2201 * grp/grp.h: Likewise.
2202 * iconv/iconv.h: Likewise.
2203 * io/fcntl.h: Likewise.
2204 * io/ftw.h: Likewise.
2205 * libio/stdio.h: Likewise.
2206 * misc/sys/mman.h: Likewise.
2207 * misc/sys/select.h: Likewise.
2208 * misc/sys/syslog.h: Likewise.
2209 * misc/sys/uio.h: Likewise.
2210 * posix/spawn.h: Likewise.
2211 * posix/unistd.h: Likewise.
2212 * posix/sys/wait.h: Likewise.
2213 * pwd/pwd.h: Likewise.
2214 * resolv/netdb.h: Likewise.
2215 * rt/aio.h: Likewise.
2216 * shadow/shadow.h: Likewise.
2217 * signal/signal.h: Likewise.
2218 * socket/sys/socket.h: Likewise.
2219 * stdlib/stdlib.h: Likewise.
2220 * streams/stropts.h: Likewise.
2221 * string/string.h: Likewise.
2222 * sysdeps/gnu/utmpx.h: Likewise.
2223 * sysvipc/sys/msg.h: Likewise.
2224 * termios/termios.h: Likewise.
2225 * time/time.h: Likewise.
2226 * wcsmbs/wchar.h: Likewise.
2227 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
2229 * misc/daemon.c: Likewise.
2230 * sysdeps/generic/backtracesymsfd.c: Likewise.
2231 * sysdeps/generic/check_fds.c: Likewise.
2232 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
2233 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
2234 * sysdeps/generic/not-cancel.h: New file.
2235 * csu/Makefile (distribute): Add not-cancel.h.
2236 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
2237 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
2238 for assert.c and assert-perr.c to include <fatal-prepare.h>.
2239 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
2241 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
2242 errno and unlink first.
2244 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
2246 2003-04-18 Ulrich Drepper <drepper@redhat.com>
2248 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
2249 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
2251 2003-04-17 Ulrich Drepper <drepper@redhat.com>
2253 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
2255 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
2256 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
2259 * signal/Makefile (tests): Add tst-sigsimple.
2260 * signal/tst-sigsimple.c: New file.
2262 2003-04-16 Jakub Jelinek <jakub@redhat.com>
2264 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
2266 (tests): Add tst-tls1[0-2].
2267 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
2268 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
2269 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
2270 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
2271 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
2272 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
2273 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
2274 * elf/tst-tls10.c: New test.
2275 * elf/tst-tls11.c: New test.
2276 * elf/tst-tls12.c: New test.
2277 * elf/tst-tls10.h: New file.
2278 * elf/tst-tlsmod7.c: New file.
2279 * elf/tst-tlsmod8.c: New file.
2280 * elf/tst-tlsmod9.c: New file.
2281 * elf/tst-tlsmod10.c: New file.
2282 * elf/tst-tlsmod11.c: New file.
2283 * elf/tst-tlsmod12.c: New file.
2285 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
2287 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
2288 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
2289 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
2291 2003-04-17 Ulrich Drepper <drepper@redhat.com>
2293 * posix/regex.h: Include <sys/types.h>.
2295 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
2296 The signal number must be checked.
2297 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
2298 The signal number must be checked [PR libc/5004].
2300 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
2301 don't do anything fancy.
2303 * sysdeps/generic/bits/libc-lock.h: Define
2304 __rtld_lock_define_initialized_recursive.
2306 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
2307 contacting nscd if NOT_USENSCD_NAME > 0.
2308 * nss/nsswitch.c (__nss_disable_nscd): New function.
2309 * nss/nsswitch.h: Declare it.
2310 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
2311 * nscd/nscd.c (main): Call __nss_disable_nscd.
2313 2003-04-16 Ulrich Drepper <drepper@redhat.com>
2315 * stdio-common/perror.c (perror): We don't need to set the offset
2316 to _IO_pos_bad, this is how streams are initialized.
2318 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
2319 (time_output): If necessary, allocate new buffer for .name string if
2320 padding is required.
2322 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
2323 before copying. This might leave holes in the list. Adjust
2324 pointers if necessary.
2325 (netlink_receive): Allocate only one block.
2326 (free_netlink_handle): Adjust appropriately.
2327 (getifaddrs): Lots of cleanups.
2329 * string/test-strncpy.c (do_one_test): Mark start and stop as
2331 * string/test-memchr.c: Likewise.
2332 * string/test-memcmp.c: Likewise.
2333 * string/test-memcpy.c: Likewise.
2334 * string/test-memmove.c: Likewise.
2335 * string/test-memset.c: Likewise.
2336 * string/test-strcat.c: Likewise.
2337 * string/test-strchr.c: Likewise.
2338 * string/test-strcmp.c: Likewise.
2339 * string/test-strcpy.c: Likewise.
2340 * string/test-strlen.c: Likewise.
2341 * string/test-strncmp.c: Likewise.
2342 * string/test-strpbrk.c: Likewise.
2343 * string/test-strrchr.c: Likewise.
2344 * string/test-strspn.c: Likewise.
2346 2003-04-15 Roland McGrath <roland@redhat.com>
2348 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
2350 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
2351 INTUSE(__register_frame_info_bases).
2353 2003-04-15 Ulrich Drepper <drepper@redhat.com>
2355 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
2356 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
2357 AT_SYSINFO_EH_FRAME. Adjust string width.
2358 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
2359 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
2360 Add _dl_sysinfo_eh_frame field.
2361 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
2362 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
2364 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
2365 if _dl_sysinfo_eh_frame is non-NULL.
2367 * Makeconfig (gnulib): Add -lgcc_eh.
2369 * config.h.in: Define HAVE_FORCED_UNWIND.
2371 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
2373 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
2374 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
2376 2003-04-15 Jakub Jelinek <jakub@redhat.com>
2378 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
2379 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
2380 against local symbol in conflict processing.
2382 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
2384 * sysdeps/powerpc/bits/atomic.h
2385 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
2386 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
2388 (__arch_compare_and_exchange_val_32_acq): Define.
2389 (atomic_compare_and_exchange_val_acq): Define.
2391 2003-04-15 Ulrich Drepper <drepper@redhat.com>
2393 * include/atomic.h: Pretty printing.
2395 2003-04-14 Ulrich Drepper <drepper@redhat.com>
2397 * stdio-common/vfscanf.c: Add casts to avoid warnings.
2399 2003-04-14 Jakub Jelinek <jakub@redhat.com>
2401 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
2402 * sysdeps/x86_64/bits/atomic.h: Likewise.
2404 2003-04-14 Ulrich Drepper <drepper@redhat.com>
2406 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
2407 POPARGS_1 to emit labels for the mov instructions.
2409 2003-04-14 Jakub Jelinek <jakub@redhat.com>
2411 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
2413 2003-04-14 Roland McGrath <roland@redhat.com>
2415 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
2418 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
2420 2003-04-14 Ulrich Drepper <drepper@redhat.com>
2422 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
2423 position. Reported by jreiser@BitWagon.com.
2425 2003-04-13 Ulrich Drepper <drepper@redhat.com>
2427 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
2428 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
2429 * sysdeps/generic/unwind-dw2.c: Likewise.
2430 * sysdeps/generic/unwind-pe.h: Likewise.
2432 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
2434 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
2435 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
2436 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
2437 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
2438 (mcontext_t): Make it match the 32-bit mips kernel in o32.
2439 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
2440 the mips and mips64 headers.
2441 (struct user): Port to n32/n64.
2443 2003-04-12 Ulrich Drepper <drepper@redhat.com>
2445 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
2448 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
2449 __ASSUME_VSYSCALL is defined don't add restorer.
2450 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2451 __ASSUME_VSYSCALL for 2.5.53.
2453 2003-04-11 Ulrich Drepper <drepper@redhat.com>
2455 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
2456 Remove HAVE_CANCELBUF code. Replace with code using the new
2457 initializers for unwind-based cleanup handling.
2458 * sysdeps/generic/unwind.h: Update from latest gcc version.
2459 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
2460 places to allow unwind data generation.
2461 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
2462 * sysdeps/x86_64/bits/setjmp.h: Likewise.
2463 * sysdeps/sh/bits/setjmp.h: Likewise.
2464 * sysdeps/powerpc/bits/setjmp.h: Likewise.
2465 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
2466 * sysdeps/alpha/bits/setjmp.h: Likewise.
2468 2003-04-11 Roland McGrath <roland@redhat.com>
2470 * csu/tst-empty.c: New file.
2471 * csu/Makefile (tests, tests-static): Add it.
2473 2003-04-11 Jakub Jelinek <jakub@redhat.com>
2475 * string/test-strcmp.c (do_random_tests): Test whether return value
2476 has been promoted to wordsize if the ABI requires caller to do so.
2477 * string/test-strncmp.c (do_random_tests): Likewise.
2478 * string/test-memcmp.c (do_random_tests): Likewise.
2480 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
2483 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
2484 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
2485 is not defined, but the prctl constants are.
2487 * string/tester.c (test_strcmp): Fix a typo.
2489 2003-04-09 Ulrich Drepper <drepper@redhat.com>
2491 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
2492 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
2494 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
2496 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
2498 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
2500 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
2502 * sysdeps/mips/mips64/memset.S: Likewise.
2503 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
2504 Use t0 instead of t4 as temporary.
2506 2003-04-07 Ulrich Drepper <drepper@redhat.com>
2508 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
2509 feof_unlocked instead of feof.
2510 (add_dir): Ignore trailing whitespace.
2512 2003-04-07 Jakub Jelinek <jakub@redhat.com>
2514 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
2515 sum of SIZE1 and SIZE2 arguments.
2517 2003-04-06 Ulrich Drepper <drepper@redhat.com>
2519 * iconv/iconv_prog.c (process_block): Don't print message about
2520 invalid input if the -c option is used.
2521 (main): Correctly append IGNORE string for -c option.
2523 2002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2525 * sysdeps/sh/bits/atomic.h: Moved to ...
2526 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
2527 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
2529 (atomic_bit_set, atomic_bit_test_set): Likewise.
2530 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
2532 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
2534 2003-04-06 Roland McGrath <roland@redhat.com>
2536 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
2537 restoration as done for setcontext yesterday.
2539 2003-04-06 Jakub Jelinek <jakub@redhat.com>
2541 * elf/rtld.c: Revert 2003-03-14 change.
2542 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
2543 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
2545 2003-04-05 Ulrich Drepper <drepper@redhat.com>
2547 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
2549 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
2550 Always initialize *signgamp before returning an error.
2552 2003-04-05 Roland McGrath <roland@redhat.com>
2554 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
2555 below the stack pointer even if switching to the same context we are
2558 2003-04-05 Ulrich Drepper <drepper@redhat.com>
2560 * catgets/gencat.c (read_input_file): Make sure that \n is not
2561 alone on the line before testing for continuation.
2563 * math/test-tgmath.c (compile_test): Initialize c.
2565 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
2567 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
2568 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
2569 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
2571 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
2572 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
2573 structure on n32 as well.
2574 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
2575 data types on n32 and n64.
2577 2003-04-05 Ulrich Drepper <drepper@redhat.com>
2579 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
2582 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
2583 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
2584 instead of __register_atfork.
2586 2003-04-05 Jakub Jelinek <jakub@redhat.com>
2588 * stdio-common/reg-printf.c (__register_printf_function): Calloc
2589 instead of malloc __printf_arginfo_table and __printf_function_table.
2590 Reported by John Reiser <jreiser@BitWagon.com>.
2592 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
2594 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
2595 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
2597 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
2600 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
2602 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
2605 2003-04-03 Roland McGrath <roland@redhat.com>
2607 * configure.in: Fix up use of compilation flags to match the build:
2608 For .s files, $ASFLAGS;
2609 For .S files, $CPPFLAGS $ASFLAGS;
2610 For .c files, $CFLAGS $CPPFLAGS;
2611 when linking, add $LDFLAGS.
2612 * configure: Regenerated.
2614 2003-04-03 Jakub Jelinek <jakub@redhat.com>
2616 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
2617 for atomic_compare_and_exchange_bool_acq failure.
2619 2003-04-03 Ulrich Drepper <drepper@redhat.com>
2621 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
2622 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
2623 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
2624 Remove declaration of pthread_atfork.
2626 2003-04-02 Ulrich Drepper <drepper@redhat.com>
2628 * locale/iso-639.def: Add many more languages from the current ISO 639.
2630 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
2631 * sysdeps/generic/semtimedop.c: New file.
2632 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
2633 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
2634 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2635 * sysvipc/Makefile (routines): Add semtimedop.
2636 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
2637 * sysvipc/sys/sem.h: Declare semtimedop.
2639 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
2641 * configure.in: Check for __register_frame_info in both
2643 * configure: Regenerated.
2645 2003-04-01 Roland McGrath <roland@redhat.com>
2647 * scripts/abilist.awk: Allow dots in soname suffix.
2649 * scripts/abilist.awk (emit): Fix bailout condition.
2651 2003-04-01 Jakub Jelinek <jakub@redhat.com>
2653 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
2656 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
2657 register as input to asm.
2659 2003-04-01 Jakub Jelinek <jakub@redhat.com>
2661 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
2663 2003-04-01 Andreas Jaeger <aj@suse.de>
2665 * configure.in: Output as/ld as name if version is too old.
2667 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
2669 * configure.in: Don't require an installed C library in the test
2670 for ".set" assembler support.
2672 2003-03-31 Roland McGrath <roland@redhat.com>
2674 * signal/tst-sigset.c: New file.
2675 * signal/Makefile (tests): Add it.
2677 2003-03-31 Ulrich Drepper <drepper@redhat.com>
2679 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
2680 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
2681 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
2682 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
2683 (__SIGRTMAX): Adjust accordingly.
2684 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
2685 second compatibility symbol set.
2686 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
2688 2003-03-31 Andreas Schwab <schwab@suse.de>
2690 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
2692 (atomic_decrement_and_test): Fix test.
2694 2003-03-31 Jakub Jelinek <jakub@redhat.com>
2696 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
2697 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
2698 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
2699 * sysdeps/sparc/sparc32/atomicity.h: Removed.
2700 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
2701 * sysdeps/sparc/sparc64/atomicity.h: Removed.
2703 2003-03-30 Roland McGrath <roland@redhat.com>
2705 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
2707 * intl/po2test.sed: Anchor substitution regexps to fix last change.
2709 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
2711 * intl/po2test.sed: Unify the transformations for msgid and msgstr
2712 and remove a useless s/// command.
2714 2003-03-27 David Mosberger <davidm@hpl.hp.com>
2716 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
2717 directive into empty .prologue region to ensure that call-chain
2718 is terminated even for the first instruction.
2720 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
2721 to terminate call-chain right from the get-go.
2723 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
2724 stop bit between compare & branch.
2726 2003-03-29 Ulrich Drepper <drepper@redhat.com>
2728 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
2729 point correctly [PR libc/4993].
2731 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
2732 netlink_open calls if netlink is known to not be available.
2734 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
2736 * configure.in: Add mips64* support.
2737 * sysdeps/mips/bits/endian.h: Make it bi-endian.
2738 * sysdeps/mips/mipsel/bits/endian.h: Removed.
2739 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
2740 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
2741 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
2742 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
2743 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
2744 * sysdeps/mips/Implies: Moved wordsize-32 to...
2745 * sysdeps/mips/mips32/Implies: New file.
2746 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
2748 (ret, PSEUDO_END): Moved past END.
2749 (PSEUDO): Moved to...
2750 * sysdeps/unix/mips/mips32/sysdep.h: New file.
2751 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
2752 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
2753 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
2754 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
2755 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
2757 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
2760 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
2762 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
2763 * inet/test-ifaddrs.c: Allow AF_PACKET.
2764 * sysdeps/unix/sysv/linux/kernel-features.h: Add
2765 __ASSUME_NETLINK_SUPPORT.
2767 2003-03-28 Ulrich Drepper <drepper@redhat.com>
2769 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
2771 2003-03-26 H.J. Lu <hjl@gnu.org>
2773 * elf/vismod.h (getvarlocal1): Return const char **.
2774 (getvarinmod1): Likewise.
2775 (getvaritcpt1): Likewise.
2776 (getvarlocal2): Likewise.
2777 (getvarinmod2): Likewise.
2778 (getvaritcpt2): Likewise.
2779 (getvaritcpt3): Likewise.
2780 * elf/vismain.c (do_test): Adjusted.
2781 * elf/vismod1.c (getvarlocal1): Return address.
2782 (getvarinmod1): Likewise.
2783 (getvaritcpt1): Likewise.
2784 * elf/vismod2.c (getvarlocal2): Likewise.
2785 (getvarinmod2): Likewise.
2786 (getvaritcpt2): Likewise.
2787 * elf/vismod3.c (getvaritcpt3): Likewise.
2789 2003-03-28 Roland McGrath <roland@redhat.com>
2791 * elf/vismain.c (do_test): Print both addresses when they don't match.
2793 * scripts/abilist.awk: If given -v filename_regexp and/or -v
2794 libname_regexp when parsing names, then produce output only
2795 for those matching the given regexps. In combine mode, save all
2796 stanzas for a final sorting by stanza header at the end.
2797 Emit a blank line between stanzas.
2799 * scripts/abilist.awk: When given -v combine=1, do parse_names and
2800 emit a single output stream with lib name in stanza header lines.
2802 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
2804 2003-03-27 Roland McGrath <roland@redhat.com>
2806 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
2807 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
2809 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2811 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
2812 Return old value. Make asm output reg constraint earlyclobber.
2814 (__arch_compare_and_exchange_8_acq): ... this.
2815 (__arch_compare_and_exchange_val_16_acq):
2816 Return old value. Make asm output reg constraint earlyclobber.
2818 (__arch_compare_and_exchange_16_acq): ... this.
2819 (__arch_compare_and_exchange_val_32_acq):
2820 Return old value. Make asm output reg constraint earlyclobber.
2822 (__arch_compare_and_exchange_32_acq): ... this.
2823 (__arch_compare_and_exchange_val_64_acq):
2825 (__arch_compare_and_exchange_64_acq): ... this.
2826 (atomic_exchange_and_add): Use local variables and
2827 __arch_compare_and_exchange_val_64_acq.
2828 (atomic_add): Likewise.
2829 (atomic_add_negative, atomic_add_zero): Use local variables.
2831 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
2833 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
2835 2003-03-27 Ulrich Drepper <drepper@redhat.com>
2837 * Makefile: Remove libmd5crypt goal.
2839 2003-03-25 Jakub Jelinek <jakub@redhat.com>
2841 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
2842 special handling of relocations against local symbols.
2844 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
2846 * sysdeps/powerpc/bits/atomic.h
2847 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
2848 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
2849 Define PPC64 specific version.
2850 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
2851 Change (mem) constraint to "b".
2852 [__powerpc64__] (__arch_atomic_exchange_and add_64):
2853 Replace addi with add. Change (value) contraint to "r".
2854 Change (mem) constraint to "b".
2855 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
2856 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
2857 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
2858 (__arch_atomic_decrement_if_positive_32): New macro.
2859 (atomic_decrement_if_positive): Use __arch* macros.
2861 2003-03-27 Jakub Jelinek <jakub@redhat.com>
2863 * sysdeps/ia64/fpu/libm-test-ulps: Update.
2865 2003-03-27 Roland McGrath <roland@redhat.com>
2867 * scripts/rpm2dynsym.sh: New file.
2868 * Makefile (distribute): Add it.
2870 2003-03-27 David Mosberger <davidm@hpl.hp.com>
2872 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
2873 ar.unat before returning. Add missing .mem.offset directives
2874 to ensure file gets assembled without warnings.
2875 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
2877 2003-03-27 Jakub Jelinek <jakub@redhat.com>
2879 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
2880 Return -1 instead of 0 if clock_getres failed.
2882 2003-03-27 Roland McGrath <roland@redhat.com>
2884 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
2885 header lines and write out foo.symlist files for each foo.so.NN listed.
2887 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
2888 This symbol is exported, and we don't want to hide it.
2889 Add libc_hidden_proto instead.
2890 (_IO_file_jumps): Add libc_hidden_proto.
2891 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
2893 * libio/fileops.c (_IO_file_jumps): Likewise.
2894 * libio/stdfiles.c: Don't use INTUSE on them.
2895 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
2896 * libio/iofopen.c (__fopen_internal): Likewise.
2897 * libio/freopen.c (freopen): Likewise.
2898 * libio/freopen64.c (freopen64): Likewise.
2899 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
2901 * Makerules (check-abi) [$(enable-check-abi) = warn]:
2902 Ignore exit status from diff.
2903 * configure.in (enable_check_abi): Document possible value "warn".
2904 Change default to no for now.
2905 * configure: Regenerated.
2907 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
2908 macro calls and a #include <stub-tag.h> at the end.
2909 * Makerules ($(objpfx)stubs): Tweak sed commands.
2911 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
2912 caller column for *xattr syscalls, since they are in sysdeps/generic.
2914 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
2915 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
2917 2003-03-26 Roland McGrath <roland@redhat.com>
2919 * Makerules (check-abi-config): Use /thread instead of /tls when
2920 use-thread and not just use-tls is set.
2922 * Makerules (update-abi): Put quotes around $(update-abi-config).
2924 * elf/Makefile (check-abi): Depend on check-abi-ld.
2925 (update-abi): Depend on update-abi-ld.
2927 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
2929 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
2930 do not check for errors (unless testing for 32bit variant).
2931 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
2933 2003-03-27 Philip Blundell <philb@gnu.org>
2935 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
2936 unconditional mov. Remove nop.
2938 * sysdeps/unix/sysv/linux/kernel-features.h
2939 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
2940 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
2941 when __ASSUME_VFORK_SYSCALL is defined.
2942 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
2943 __ASSUME_MMAP2_SYSCALL.
2944 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
2945 __ASSUME_REALTIME_SIGNALS.
2947 2003-03-26 Ulrich Drepper <drepper@redhat.com>
2949 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
2950 only if DL_NO_COPY_RELOCS is not defined.
2951 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
2953 2003-03-26 Roland McGrath <roland@redhat.com>
2955 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
2956 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
2957 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
2958 (sysdep_routines): Add stub-syscalls.
2959 ($(objpfx)stub-syscalls.c): New target.
2960 (generated): Add stub-syscalls.c.
2962 * tls.make.c: Also define use-tls according to USE_TLS macro.
2964 2003-03-26 Ulrich Drepper <drepper@redhat.com>
2966 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
2967 no-op padding element.
2968 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
2969 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
2970 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
2971 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2973 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
2975 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
2976 condition check for the return value of getgroups32.
2978 2003-03-26 Jakub Jelinek <jakub@redhat.com>
2980 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
2982 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
2983 PSEUDO_END_NOERRNO): Define.
2984 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
2985 Define to PSEUDO_END.
2987 2003-03-26 Ulrich Drepper <drepper@redhat.com>
2989 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
2991 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
2993 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
2994 * iconvdata/bug-iconv4.c: New file.
2995 * iconvdata/Makefile (tests): Add bug-iconv4.
2997 2003-03-25 H.J. Lu <hjl@gnu.org>
2999 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
3001 (_dl_lookup_versioned_symbol): Likewise.
3003 2003-03-26 Jakub Jelinek <jakub@redhat.com>
3005 * csu/tst-atomic.c (do_test): Add some new
3006 atomic_compare_and_exchange_val_acq, atomic_add_zero,
3007 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
3008 * include/atomic.h (atomic_add_negative, atomic_add_zero):
3009 Prefix local variable so that it doesn't clash with the one
3010 in atomic_exchange_and_add.
3011 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
3013 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
3014 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
3015 value into register.
3016 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
3017 Cast newval to long.
3018 * sysdeps/x86_64/bits/atomic.h
3019 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
3021 (atomic_exchange): Cast newvalue to long if sizeof == 8.
3022 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
3023 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
3024 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
3026 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
3028 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
3029 bit from backtrace addresses.
3031 2003-03-21 Andreas Schwab <schwab@suse.de>
3033 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
3036 2003-03-25 Roland McGrath <roland@redhat.com>
3038 * config.make.in (enable-check-abi): New variable from configure.
3039 * configure.in (enable_check_abi): New substituted variable,
3040 controlled by --{enable,disable}-check-abi (default yes).
3041 * configure: Regenerated.
3042 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
3043 on check-abi dependency.
3045 2003-03-26 Andreas Schwab <schwab@suse.de>
3047 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
3048 * include/atomic.h: Likewise.
3050 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
3052 2003-03-25 Roland McGrath <roland@redhat.com>
3054 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
3055 (__arch_atomic_exchange_64): New macro.
3056 (atomic_exchange): Use them.
3057 (__arch_atomic_exchange_and_add_32): New macro.
3058 (__arch_atomic_exchange_and_add_64): New macro.
3059 (atomic_exchange_and_add): Use them.
3060 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
3062 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
3064 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
3066 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
3068 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
3069 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
3070 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
3071 to decide whether to add padding.
3072 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
3073 to decide whether to add padding.
3074 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
3075 old_kernel_sigaction): Likewise.
3077 2003-03-25 Ulrich Drepper <drepper@redhat.com>
3079 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
3080 atomic_add_zero were supposed to do.
3081 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
3084 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
3085 This matches the new timer implementation.
3086 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
3088 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
3090 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
3091 timer info for what the kernel provides these days.
3092 (struct sigevent): Add _tid field.
3093 Define SIGEV_THREAD_ID.
3094 Remove struct __pthread_attr_s forward declaration.
3095 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
3096 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
3097 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3098 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3100 * Versions.def (librt): Add GLIBC_2.3.3.
3102 * abilist/libpthread.abilist: Update for nptl.
3104 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
3106 * inet/netinet/in.h: Add IPPROTO_SCTP.
3108 2003-03-24 Ulrich Drepper <drepper@redhat.com>
3110 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
3112 2003-03-24 Philip Blundell <philb@gnu.org>
3114 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
3115 Remove a1 from clobber list.
3117 2003-03-24 Ulrich Drepper <drepper@redhat.com>
3119 * timezone/antarctica: Update from tzdata2003a.
3120 * timezone/asia: Likewise.
3121 * timezone/australasia: Likewise.
3122 * timezone/europe: Likewise.
3123 * timezone/iso3166.tab: Likewise.
3124 * timezone/northamerica: Likewise.
3125 * timezone/southamerica: Likewise.
3126 * timezone/zone.tab: Likewise.
3128 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
3130 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
3132 2003-03-23 Ulrich Drepper <drepper@redhat.com>
3134 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
3135 unwanted expansion by definining to ret. Patch by Ian Wienand.
3137 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
3138 the parameter description to denote no error checking. Generate
3139 appropriate pseudo asm code.
3140 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
3141 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
3142 getpgrp, and getppid with 'E'.
3143 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
3144 PSEUDO_END_NOERRNO, and ret_NOERRNO.
3145 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
3146 * sysdeps/unix/sysdep.h: Likewise.
3147 * sysdeps/unix/alpha/sysdep.h: Likewise.
3148 * sysdeps/unix/sparc/sysdep.h: Likewise.
3149 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
3150 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
3151 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
3152 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
3153 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
3154 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
3155 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
3156 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3157 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
3158 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
3159 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3161 2003-03-23 Roland McGrath <roland@redhat.com>
3163 * Makeconfig (+includes): Don't use $(last-includes).
3165 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
3167 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
3168 * sysdeps/unix/sysv/linux/configure: Rebuilt.
3170 2003-03-23 Jakub Jelinek <jakub@redhat.com>
3172 * sysdeps/alpha/fpu/libm-test-ulps: Update.
3173 * sysdeps/arm/libm-test-ulps: Update.
3174 * sysdeps/hppa/fpu/libm-test-ulps: Update.
3175 * sysdeps/ia64/fpu/libm-test-ulps: Update.
3176 * sysdeps/mips/fpu/libm-test-ulps: Update.
3177 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
3178 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3179 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
3180 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
3181 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
3182 * sysdeps/s390/fpu/libm-test-ulps: Update.
3183 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3185 2003-03-22 Roland McGrath <roland@redhat.com>
3187 * include/atomic.h: Put parens around all macro arguments.
3188 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
3189 (atomic_compare_and_exchange_val_acq): Use it.
3190 (atomic_compare_and_exchange_bool_acq): Likewise.
3191 (atomic_increment_and_test): Invert sense of test.
3192 (atomic_decrement_and_test): Likewise.
3193 * csu/tst-atomic.c: Update those tests to match.
3195 2003-03-22 Jakub Jelinek <jakub@redhat.com>
3197 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
3198 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
3199 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
3200 __oldval variable in the macro, since it might be macro argument.
3201 (atomic_decrement_if_positive): Initialize __memp, remove setting
3202 of non-existent variable.
3203 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
3204 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
3205 using atomic_compare_and_exchange_val_acq.
3206 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
3207 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
3209 (__arch_compare_and_exchange_bool_8_acq): ... this.
3210 (__arch_compare_and_exchange_val_16_acq): Renamed from...
3211 (__arch_compare_and_exchange_bool_16_acq): ... this.
3212 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
3214 (__arch_compare_and_exchange_bool_32_acq): ... this.
3215 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
3217 (__arch_compare_and_exchange_bool_64_acq): ... this.
3218 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
3219 variables types instead of assuming int.
3220 Change prefix of local variables to __arch.
3221 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
3223 (atomic_compare_and_exchange_val_acq,
3224 atomic_compare_and_exchange_bool_acq): Define.
3226 * csu/tst-atomic.c: New test.
3227 * csu/tst-atomic-long.c: New test.
3228 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
3230 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
3232 * sysdeps/s390/Versions: Add trailing newline.
3234 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
3235 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
3237 2003-03-22 Andreas Schwab <schwab@suse.de>
3239 * sysdeps/m68k/fpu/libm-test-ulps: Update.
3241 * sysdeps/m68k/m68020/bits/atomic.h: New file.
3242 * sysdeps/m68k/m68020/atomicity.h: Removed.
3244 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
3246 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
3247 data structures and macros. Protect from multiple inclusion.
3249 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
3252 2003-03-21 Andreas Jaeger <aj@suse.de>
3254 * sysdeps/i386/fpu/libm-test-ulps: Update.
3256 * math/libm-test.inc (tgamma_test): Recompute some constants with
3257 36 digits precision.
3258 (lgamma_test): Likewise.
3259 (ccos_test): Likewise.
3260 (ccosh_test): Likewise.
3261 (clog10_test): Likewise.
3262 (csin_test): Likewise.
3263 (csinh_test): Likewise.
3264 (ctan_test): Likewise.
3265 (ctanh_test): Likewise.
3267 2003-03-19 Jakub Jelinek <jakub@redhat.com>
3269 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
3271 2003-03-21 Roland McGrath <roland@redhat.com>
3273 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
3274 constraint to permit non-constant BIT argument.
3275 (atomic_bit_test_set): Likewise.
3276 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
3277 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
3278 For quadword case, use "i" constraint if __builtin_constant_p and < 32
3279 or "r" constraint otherwise.
3281 * configure.in: Move AC_PROG_CC and other program-finding before all
3283 * configure: Regenerated.
3285 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
3287 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
3288 unaligned copying of 8-15 bytes. From Chris Demetriou
3289 <cgd@broadcom.com>. Fix label names.
3290 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
3291 change as to memcpy.S.
3292 * sysdeps/mips/memcpy.S: Formatting changes.
3293 * sysdeps/mips/memset.S: Likewise.
3295 2003-03-21 Roland McGrath <roland@redhat.com>
3297 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
3299 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
3301 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
3302 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
3304 2003-03-21 Roland McGrath <roland@redhat.com>
3306 * sysdeps/i386/i486/bits/atomic.h
3307 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
3308 version of the macro to avoid compile-time warnings.
3309 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
3310 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
3311 (atomic_increment, atomic_decrement): Likewise.
3313 2003-03-21 Ulrich Drepper <drepper@redhat.com>
3315 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
3316 * sysdeps/i386/i486/bits/atomic.h: Likewise.
3318 2003-03-21 Roland McGrath <roland@redhat.com>
3320 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
3322 2003-03-20 Ulrich Drepper <drepper@redhat.com>
3324 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
3325 atomic_compare_and_exchange_val_rel,
3326 atomic_compare_and_exchange_bool_acq, and
3327 atomic_compare_and_exchange_bool_rel instead of
3328 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
3329 * sysdeps/i386/i486/bits/atomic.h: Define
3330 __arch_compare_and_exchange_val_*_acq instead of
3331 __arch_compare_and_exchange_*_acq.
3332 * sysdeps/x86_64/bits/atomic.h: Likewise.
3333 * sysdeps/ia64/bits/atomic.h: Define
3334 __arch_compare_and_exchange_bool_*_acq instead of
3335 __arch_compare_and_exchange_*_acq.
3336 * sysdeps/powerpc/bits/atomic.h: Likewise.
3337 * sysdeps/s390/bits/atomic.h: Likewise.
3338 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
3339 * malloc/set-freeres.c: Likewise.
3340 * nscd/cache.c: Likewise.
3341 * stdlib/cxa_finalize.c: Likewise.
3342 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
3344 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
3346 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
3347 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
3348 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
3350 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
3351 into high and low halves on n64.
3352 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3353 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3354 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3356 2003-03-20 Ulrich Drepper <drepper@redhat.com>
3358 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
3359 correct atomic_compare_and_exchange_acq semantics.
3361 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
3363 * sysdeps/mips/ieee754.h: Remove excess #endif.
3365 2003-03-20 Roland McGrath <roland@redhat.com>
3367 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
3368 variable. Remove superfluous memory clobber.
3370 * include/atomic.h: Syntax braino fix.
3372 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
3373 in decimal. Don't bail if niced at start. Just check that nice call
3374 bumps the total at all.
3376 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
3378 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
3379 including pc, gp, sp and fp, as long long.
3380 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
3381 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
3382 Add gp argument, and set gp in the jmpbuf to it.
3383 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
3385 2003-03-20 Ulrich Drepper <drepper@redhat.com>
3387 * include/atomic.h: Define atomic_exchange and
3388 atomic_decrement_if_positive if not already defined. Add some
3390 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
3391 * sysdeps/x86_64/bits/atomic.h: Likewise.
3392 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
3393 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
3394 atomic_exchange, atomic_exchange_and_add, and
3395 atomic_decrement_if_positive
3397 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
3399 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
3400 with a single instruction.
3402 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
3404 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
3406 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
3407 Word before comparing with gotsym. Take reloc_addr argument as
3408 void*. Remove the code added for the compiler to drop any
3409 alignment assumptions.
3411 2003-03-19 Ulrich Drepper <drepper@redhat.com>
3413 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
3414 * include/atomic.h: New file.
3415 * sysdeps/i386/i486/bits/atomic.h: New file.
3416 * sysdeps/x86_64/bits/atomic.h: New file.
3417 * sysdeps/s390/bits/atomic.h: New file.
3418 * sysdeps/sh/bits/atomic.h: New file.
3419 * sysdeps/ia64/bits/atomic.h: New file.
3420 * sysdeps/powerpc/bits/atomic.h: New file.
3421 * sysdeps/generic/bits/atomic.h: New file.
3422 * sysdeps/i386/i486/atomicity.h: Removed.
3423 * sysdeps/x86_64/atomicity.h: Removed.
3424 * sysdeps/s390/s390-32/atomicity.h: Removed.
3425 * sysdeps/s390/s390-64/atomicity.h: Removed.
3426 * sysdeps/ia64/atomicity.h: Removed.
3427 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
3428 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
3429 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
3430 use of macros from atomicity.h to new names and semantics.
3431 * gmon_mcount.c: Likewise.
3432 * malloc/set-freeres.c: Likewise.
3433 * nscd/cache.c: Likewise.
3434 * stdlib/cxa_finalize.c: Likewise.
3435 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
3437 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
3439 * sysdeps/mips/ieee754.h: New file, suitable to replace both
3440 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
3441 mips-specific for now.
3443 2003-03-19 Ulrich Drepper <drepper@redhat.com>
3445 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
3446 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
3447 * stdlib/tst-strtod.c: Add test for the bug.
3449 * posix/tst-nice.c (do_test): Remove invalid of return value.
3450 Don't run test if initial level != 0.
3452 2003-03-19 Amos Waterland <apw@us.ibm.com>
3454 * posix/tst-nice.c: New file.
3455 * posix/Makefile (tests): Add tst-nice.
3457 2003-03-18 Roland McGrath <roland@redhat.com>
3459 * abilist: New directory of libfoo.abilist files maintained using
3460 scripts/merge-abilist.awk and "make update-abi" rules.
3461 * Makefile (distribute): Add abilist/*.abilist.
3462 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
3463 Depend on check-abi.
3465 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
3466 * configure: Regenerated.
3468 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
3470 2003-03-18 Ulrich Drepper <drepper@redhat.com>
3472 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
3475 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
3477 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
3479 2003-03-18 Ulrich Drepper <drepper@redhat.com>
3481 * Versions.def: Add GLIBC_2.3.3 for libpthread.
3483 2003-03-17 Ulrich Drepper <drepper@redhat.com>
3485 * sysdeps/generic/libc-start.c [!SHARED &&
3486 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
3488 2003-03-17 Roland McGrath <roland@redhat.com>
3490 * include/ctype.h: Revert last change.
3492 2003-03-17 Ulrich Drepper <drepper@redhat.com>
3494 * argp/tst-argp1.c: Use test-skeleton.c.
3495 * locale/tst-C-locale.c: Likewise.
3497 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
3499 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
3500 * sysdeps/mips/mips64/n64/Implies: New file.
3501 * sysdeps/mips/mips64/n64/Makefile: New file.
3502 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
3503 * sysdeps/mips/mips64/n32/Implies: New file.
3504 * sysdeps/mips/mips64/n32/Makefile: New file.
3505 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
3506 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
3507 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
3508 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
3509 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
3510 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
3511 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
3512 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
3513 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
3514 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
3515 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
3516 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
3517 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
3518 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
3520 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
3521 lib64 for mips64/n64 and lib32 for mips64/n32.
3522 (ldd_rewrite_script): Needed for all mips64 configurations.
3523 * sysdeps/unix/sysv/linux/configure: Rebuilt.
3524 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
3525 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
3527 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
3530 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
3531 asm/unistd.h into asm-unistd.h.
3532 * sysdeps/unix/sysv/linux/mips/configure: Generated.
3533 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
3535 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
3536 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
3539 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
3540 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
3541 long type for registers on n32.
3543 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
3545 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
3546 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
3547 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
3548 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
3549 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
3550 * sysdeps/unix/mips/brk.S: Likewise.
3551 * sysdeps/unix/mips/sysdep.S: Likewise.
3552 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
3553 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
3554 * sysdeps/mips/sys/ucontext.h: Likewise.
3555 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
3556 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
3557 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
3558 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
3559 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
3560 * sysdeps/mips/mips64/setjmp.S: Likewise.
3561 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
3562 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
3565 2003-03-16 Ulrich Drepper <drepper@redhat.com>
3567 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
3568 not at function level.
3569 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
3571 2003-03-15 Roland McGrath <roland@redhat.com>
3573 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
3574 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
3575 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
3576 * nis/nis_table.c (__create_ib_request): Likewise.
3578 * posix/fnmatch_loop.c: Add casts for signedness.
3579 * nss/nss_files/files-hosts.c: Likewise.
3580 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3581 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
3582 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
3584 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
3585 get errors into the log file.
3586 (libc_cv_broken_visibility_attribute): Likewise.
3587 (libc_cv_broken_alias_attribute): Likewise.
3588 (libc_cv_asm_weak_directive): Likewise.
3589 (libc_cv_need_minus_P): Likewise.
3590 (libc_cv_dot_text): Likewise.
3591 (libc_cv_asm_global_directive): Likewise.
3592 (libc_cv_asm_type_prefix): Likewise.
3593 * configure: Regenerated.
3595 * nscd/cache.c (cache_search): Give first arg type `request_type'.
3596 * nscd/nscd.h: Update decl.
3598 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
3599 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3600 * elf/dl-close.c (_dl_close): Likewise.
3601 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
3602 * io/fts.c (fts_build): Likewise.
3603 * elf/cache.c (add_to_cache): Likewise.
3604 * locale/programs/locarchive.c (show_archive_content): Likewise.
3606 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
3608 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
3610 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
3612 2003-03-15 Ulrich Drepper <drepper@redhat.com>
3614 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
3615 code for most parts.
3617 2003-03-15 Roland McGrath <roland@redhat.com>
3619 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
3620 * sysdeps/unix/sysv/linux/system.c: ... here.
3621 (FORK): Don't #define if already #define'd.
3622 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
3623 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
3624 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
3626 * dlfcn/tst-dlinfo.c: New file.
3627 * dlfcn/Makefile (tests): Add tst-dlinfo.
3628 ($(objpfx)tst-dlinfo): New target.
3630 * dlfcn/dlinfo.c: New file.
3631 * dlfcn/Makefile (libdl-routines): Add it.
3632 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
3633 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
3634 [__USE_GNU] (RTLD_DI_*): New enum constants.
3635 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
3636 * elf/dl-load.c (cache_rpath): New inline function.
3637 (_dl_map_object): Use it.
3638 (_dl_rtld_di_serinfo): New function.
3639 * sysdeps/generic/ldsodefs.h: Declare it.
3640 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
3642 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
3643 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
3644 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
3645 (__libc_start_main): Just call the generic one for most of the work.
3647 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
3648 static function by that name instead of BP_SYM (__libc_start_main).
3649 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
3650 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
3651 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
3653 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
3654 Use this macro for extra AT_* cases.
3655 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
3656 New macro, guts from ...
3657 (__aux_init_cache): ... here, function removed.
3658 (DL_PLATFORM_INIT): Don't define this.
3660 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
3661 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
3663 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
3665 2003-03-14 Roland McGrath <roland@redhat.com>
3667 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
3669 2003-03-14 Jakub Jelinek <jakub@redhat.com>
3671 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
3673 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
3674 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
3676 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
3678 * sysdeps/mips/fpu/bits/mathdef.h: New.
3679 (__NO_LONG_DOUBLE_MATH): Define for o32.
3681 * sysdeps/mips/sys/asm.h: Formatting changes.
3682 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
3683 (CPADD): Define for all of them.
3684 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
3685 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
3686 NARGSAVE): Define per ABI spec.
3687 (END): Don't redefine.
3688 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
3689 LONG_SRAV): Remove duplicate definitions.
3690 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
3691 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
3692 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
3693 (PTR_LA): Define for all 3 ABIs.
3695 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
3696 (elf_machine_matches_host): Prevent linking of o32 and n32
3698 (elf_machine_dynamic): Document assumption on $gp.
3699 (STRINGXP, STRINGXV, STRINGV_): New macros.
3700 (elf_machine_load_address): Use them to stringize PTR_LA and
3702 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
3703 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
3704 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
3705 (__dl_runtime_resolve): Cast the symtab initializer to the
3707 (RTLD_START): Use it. Adjust it for all 3 ABIs.
3708 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
3709 Handle 64-bit R_MIPS_REL composite relocation and accept
3710 R_MIPS_64 relocations to shift addend size to 64 bits.
3711 Document assumption regarding local GOT entries. Document
3712 backward-compatibility departing from the ABI behavior in
3713 applying relocations that reference section symbols, no longer
3714 used. Support relocations to mis-aligned offsets.
3715 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
3717 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
3719 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
3720 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
3721 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
3722 restore_rt functions. Use them.
3724 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
3725 .set mips2 on new abis.
3727 2003-03-13 Ulrich Drepper <drepper@redhat.com>
3729 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
3730 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
3731 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
3732 * sysdeps/posix/pathconf.c: Likewise.
3733 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
3734 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3735 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
3737 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
3740 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
3742 * include/gmp.h: Include/gmp-mparam.h.
3743 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
3746 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
3747 ELF_MACHINE_NO_RELA is set.
3748 * elf/rtld.c (dl_main): No prelink support for REL-only.
3750 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
3751 FLAG_MIPS64_LIBN64): Define.
3752 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
3754 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
3755 * sysdeps/mips/memset.S: Likewise.
3756 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
3757 depending on the ABI.
3759 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
3760 Don't .set mips2 on new abi.
3761 (compare_and_swap): Likewise. Support 64-bit longs on n64.
3763 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
3765 2003-03-13 Roland McGrath <roland@redhat.com>
3767 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
3768 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
3770 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
3772 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
3774 * stdlib/fpioconst.c: Likewise.
3775 * stdlib/strtod.c: Likewise.
3777 * sysdeps/mips/add_n.S: Use L macro for local labels.
3778 * sysdeps/mips/addmul_1.S: Likewise.
3779 * sysdeps/mips/lshift.S: Likewise.
3780 * sysdeps/mips/memcpy.S: Likewise.
3781 * sysdeps/mips/memset.S: Likewise.
3782 * sysdeps/mips/mul_1.S: Likewise.
3783 * sysdeps/mips/rshift.S: Likewise.
3784 * sysdeps/mips/sub_n.S: Likewise.
3785 * sysdeps/mips/submul_1.S: Likewise.
3786 * sysdeps/mips/mips64/add_n.S: Likewise.
3787 * sysdeps/mips/mips64/addmul_1.S: Likewise.
3788 * sysdeps/mips/mips64/lshift.S: Likewise.
3789 * sysdeps/mips/mips64/mul_1.S: Likewise.
3790 * sysdeps/mips/mips64/rshift.S: Likewise.
3791 * sysdeps/mips/mips64/sub_n.S: Likewise.
3792 * sysdeps/mips/mips64/submul_1.S: Likewise.
3793 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
3794 conventions. Define END as in sys/asm.h.
3795 * sysdeps/unix/mips/sysdep.S: Likewise.
3796 * sysdeps/unix/mips/wait.S: Likewise.
3797 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
3799 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
3800 Cast shifted values that may be too narrow to mp_limb_t.
3801 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
3803 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
3805 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
3806 (__mpn_extract_long_double): Likewise.
3807 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
3808 (__mpn_construct_long_double): Likewise.
3809 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
3810 (__mpn_extract_long_double): Likewise.
3811 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
3812 (__mpn_construct_long_double): Likewise.
3814 2003-03-13 Roland McGrath <roland@redhat.com>
3816 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
3817 entries in the map file match too.
3819 2003-03-13 Guido Guenther <agx@sigxcpu.org>
3821 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
3822 label .Lthread_start since current binutils don't allow branches
3823 to globally visible symbols.
3825 2003-03-13 Jakub Jelinek <jakub@redhat.com>
3827 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
3828 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
3829 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
3830 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
3831 clobbered by the syscall.
3832 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
3833 ASM_ARGS_6): Change constraints from r to index of corresponding
3835 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
3836 ptid and ctid to match kernel.
3837 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
3839 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
3841 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
3842 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
3843 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
3845 2003-03-11 Roland McGrath <roland@redhat.com>
3847 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
3848 Check SYM_MAP rather than SYM as definedness check.
3849 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
3850 Don't handle R_PPC64_REL24 reloc.
3851 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
3853 * sysdeps/powerpc/powerpc64/dl-machine.h
3854 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
3855 block, so we cover all the TPREL16* flavors without 6 ||s.
3856 [USE_TLS] (elf_machine_tprel): New function.
3857 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
3858 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
3859 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
3861 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
3863 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
3864 instead of jalr to invoke subroutine so restoring the $gp register
3867 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
3869 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
3870 to __NR_pread if not defined.
3871 (__NR_pwrite64): Define to __NR_pwrite if not defined.
3873 2003-03-11 Jakub Jelinek <jakub@redhat.com>
3875 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
3876 * sysdeps/unix/sysv/linux/kernel-features.h
3877 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
3880 2003-03-11 Jakub Jelinek <jakub@redhat.com>
3882 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
3883 allocate space even for the trailing '/'.
3884 Reported by John Reiser <jreiser@BitWagon.com>.
3886 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
3887 ASM_CLOBBERS_6): Define.
3888 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
3889 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
3890 to match IA-32 order.
3891 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
3893 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
3895 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
3896 Copy extra params for NPTL to registers used in clone syscall.
3898 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
3900 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
3901 call names for pread and pwrite.
3903 2003-03-10 Roland McGrath <roland@redhat.com>
3905 * dlfcn/Makefile (libdl-routines): Add dladdr1.
3906 * dlfcn/dladdr1.c: New file.
3907 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
3908 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
3909 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
3910 a const ElfNN_Sym ** to fill in.
3911 * include/dlfcn.h: Update decl. Include <link.h>.
3912 * dlfcn/dladdr.c (dladdr): Update caller.
3913 * malloc/mtrace.c (tr_where): Likewise.
3914 * sysdeps/generic/elf/backtracesyms.c: Likewise.
3915 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
3916 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
3917 * Versions.def (libdl): Define GLIBC_2.3.3 set.
3919 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
3921 * sysdeps/unix/Makefile (compile-syscall): New variable.
3922 Pass -g0 to compiler for assembling syscall stubs from stdin.
3924 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
3925 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
3926 Define these to do nothing.
3928 * configure.in: New check for -g on .S files.
3929 * configure: Regenerated.
3930 * config.make.in (have-cpp-asm-debuginfo): New variable.
3931 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
3932 * Makeconfig (ASFLAGS): New variable, if undefined and
3933 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
3934 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
3936 2003-03-09 Roland McGrath <roland@redhat.com>
3938 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
3939 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
3941 2003-03-09 Ulrich Drepper <drepper@redhat.com>
3943 * po/fi.po: Update from translation team.
3944 * po/ca.po: Likewise.
3945 * po/da.po: Likewise.
3947 2003-03-08 Ulrich Drepper <drepper@redhat.com>
3949 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
3951 2003-03-07 Ulrich Drepper <drepper@redhat.com>
3953 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
3955 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
3957 2003-03-07 Roland McGrath <roland@redhat.com>
3959 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
3960 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
3962 2003-03-04 Guido Guenther <agx@sigxcpu.org>
3964 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
3965 stubs, we have INLINE_SYSCALL.
3966 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
3969 2003-03-06 Roland McGrath <roland@redhat.com>
3971 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
3972 permanent extent and add a comment about testing its implicit teardown.
3974 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3976 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
3978 2003-03-05 Ulrich Drepper <drepper@redhat.com>
3980 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
3981 reversed __builtin_expect expectation.
3983 2003-03-05 Roland McGrath <roland@redhat.com>
3985 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
3986 * libio/swscanf.c: Likewise.
3987 * libio/swprintf.c: Likewise.
3989 2003-03-04 Roland McGrath <roland@redhat.com>
3991 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
3992 (elf_machine_rela): Always use RESOLVE_MAP, needed for
3993 R_PPC64_JMP_SLOT as well as TLS cases.
3994 (BIT_INSERT): Move parenthesis where it ought to have been.
3995 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
3997 * posix/confstr.c (confstr): Correct STRING_LEN values for
3998 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
3999 break. Reported by Alexandre Julliard <julliard@winehq.com>.
4001 2003-03-04 Jakub Jelinek <jakub@redhat.com>
4003 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
4005 2003-03-04 Ulrich Drepper <drepper@redhat.com>
4007 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
4010 * po/sv.po: Update from translation team.
4012 2003-03-04 Andreas Jaeger <aj@suse.de>
4013 Ulrich Drepper <drepper@redhat.com>
4015 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
4017 2003-03-03 Ulrich Drepper <drepper@redhat.com>
4019 * sysdeps/generic/dl-sysdep.h: Add double include protection.
4021 * po/tr.po: Update from translation team.
4023 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
4024 are holes between the segments. Only call mprotect to set
4025 proection to PROT_NONE if there are some.
4027 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
4030 * include/sched.h (__clone2): Use ... instead of adding all the
4033 2003-03-03 Roland McGrath <roland@redhat.com>
4035 * elf/dl-load.c (struct filebuf): Fix typo in last change.
4037 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
4038 PI_STATIC_AND_HIDDEN.
4040 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
4042 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
4044 * include/sched.h: Update clone2 prototype.
4046 2003-03-03 Andreas Jaeger <aj@suse.de>
4048 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
4049 (llrint): Use it to correct return type.
4052 (llround): Likewise.
4054 2003-03-03 Ulrich Drepper <drepper@redhat.com>
4056 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
4059 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
4060 if ccs parameter isn't valid. Reported by Andreas Schwab.
4062 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4064 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
4065 for system call numbers > 255.
4066 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
4067 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
4068 INTERNAL_SYSCALL): Likewise.
4069 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
4070 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
4071 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
4072 INTERNAL_SYSCALL): Likewise.
4074 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4076 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
4077 array if it is the initial dtv.
4079 2003-03-03 Ulrich Drepper <drepper@redhat.com>
4081 * po/es.po: Update from translation team.
4082 * po/fr.po: Likewise.
4083 * po/gl.po: Likewise.
4084 * po/sk.po: Likewise.
4085 * po/sv.po: Likewise.
4087 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
4088 * misc/sys/mman.h: Add prototype for remap_file_pages.
4089 * sysdeps/generic/remap_file_pages.c: New file.
4090 * misc/Makefile (routines): Add remap_file_pages.
4091 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
4093 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
4095 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
4096 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
4097 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
4098 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
4099 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
4100 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
4101 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
4102 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4104 2003-03-03 Roland McGrath <roland@redhat.com>
4106 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
4107 * sysdeps/ia64/dl-machine.h: Likewise.
4108 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
4110 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
4112 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
4113 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
4114 * locale/Versions (libc: GLIBC_2.3): Move those to ...
4115 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
4116 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
4117 * Versions.def (libc): Add GLIBC_2.3.3 set.
4119 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
4120 * sysdeps/ia64/dl-machine.h: Update decl.
4122 2003-03-03 Andreas Jaeger <aj@suse.de>
4124 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
4126 2003-03-02 Roland McGrath <roland@redhat.com>
4128 * scripts/abilist.awk: Reject data items with apparent 0 size.
4130 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
4131 after foo.* as if it were a duplicate.
4133 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
4135 2003-03-02 Ulrich Drepper <drepper@redhat.com>
4137 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
4139 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
4140 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
4141 if not already defined. Use SYSDEP_GETRES to allow other files to
4142 provide alternative implementations.
4143 * sysdeps/unix/sysv/linux/clock_getres.c: New file
4144 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
4145 if not already defined. Use SYSDEP_GETTIME to allow other files to
4146 provide alternative implementations.
4147 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
4148 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
4149 if not already defined. Use SYSDEP_GETTIME to allow other files to
4150 provide alternative implementations.
4151 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
4152 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
4153 other files to provide alternative implementations. Rearrange
4154 tests for invalid parameters.
4155 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
4156 * sysdeps/unix/sysv/linux/sysconf.c: New file.
4157 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4158 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
4159 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
4160 _POSIX_MONOTONIC_CLOCK.
4162 2003-03-02 Roland McGrath <roland@redhat.com>
4164 * scripts/merge-abilist.awk: More checks for bogus input.
4165 Uniquify duplicate config names.
4167 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
4169 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
4170 from dl_reloc_overflow, make global.
4171 (__process_machine_rela): Update callers.
4172 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
4173 Add attribute_hidden to __process_machine_rela decl.
4174 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
4176 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
4179 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
4180 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
4181 (elf_machine_rela): Clean up.
4183 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
4185 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
4186 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
4187 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
4188 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
4189 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
4190 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
4193 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
4194 macros out of [SHARED].
4195 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
4197 * elf/elf.h: Define R_PPC_* relocs for TLS support.
4198 Clean up R_PPC64_* macro definition comments.
4200 * configure.in: In "running configure fragment for" message,
4201 omit $srcdir from the name if we prepended it.
4202 * configure: Regenerated.
4204 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
4205 From Jakub Jelinek <jakub@redhat.com>.
4207 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
4208 which duplicated the O_DIRECT defn.
4210 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
4212 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
4215 2003-03-01 Andreas Schwab <schwab@suse.de>
4217 * resolv/Makefile (tests): Don't depend on
4218 $(objpfx)mtrace-tst-leaks when cross compiling.
4220 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
4221 __libc_stack_end through GOT since it is a global symbol.
4223 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
4225 * argp/argp.h: Fix a typo.
4226 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
4228 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
4230 2003-02-27 Pat Rankin <rankin@pactechdata.com>
4232 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
4234 (get_subexp): Likewise.
4236 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
4238 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
4240 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
4242 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
4244 2003-02-27 Roland McGrath <roland@redhat.com>
4246 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
4247 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
4248 repeat it and avoids the test for the common case.
4249 Clean up and fix calculations for TLS relocs.
4251 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
4252 * sysdeps/powerpc/dl-tls.h: ... here.
4253 (TLS_TP_OFFSET): New macro.
4255 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
4257 2003-02-27 Ulrich Drepper <drepper@redhat.com>
4259 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
4260 code generation changes in recent gcc.
4262 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
4264 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
4265 Rename argument to avoid symbol conflict.
4267 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
4268 [__USE_GNU] (O_DIRECT): New macro.
4270 2003-02-24 David Mosberger <davidm@hpl.hp.com>
4272 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
4275 2003-02-27 Ulrich Drepper <drepper@redhat.com>
4277 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
4278 initializer anymore now that res_thread_freeres is more careful.
4280 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
4281 except the PKTINFO. Reset interface in PKTINFO.
4282 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
4284 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
4286 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
4287 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
4289 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
4290 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
4291 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
4292 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
4294 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
4295 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
4297 2003-02-25 Andreas Jaeger <aj@suse.de>
4299 * manual/memory.texi (Malloc Tunable Parameters): Clarify
4300 behaviour of M_MMAP_THRESHOLD.
4302 2003-02-25 Roland McGrath <roland@redhat.com>
4304 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
4305 zero, inidicating _res was not initialized yet.
4307 2003-02-24 Ulrich Drepper <drepper@redhat.com>
4309 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
4312 2003-02-24 Roland McGrath <roland@redhat.com>
4314 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
4316 2003-02-23 Roland McGrath <roland@redhat.com>
4318 * sysdeps/posix/pause.c: New file.
4319 * sysdeps/unix/common/pause.c: File removed.
4321 2003-02-23 Ulrich Drepper <drepper@redhat.com>
4323 * sysdeps/generic/bits/confname.h: Remove #ifs.
4325 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
4326 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
4328 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
4331 2003-02-22 Ulrich Drepper <drepper@redhat.com>
4333 * sysdeps/generic/dl-sysdep.c: Avoid warning.
4335 2003-02-22 Roland McGrath <roland@redhat.com>
4337 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
4338 * resolv/Makefile (tests): Add tst-leaks.
4339 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
4340 (tst-leaks-ENV): New variable.
4341 ($(objpfx)mtrace-tst-leaks): New target.
4342 (tests): Depend on it.
4344 * include/libc-internal.h: Declare __libc_thread_freeres.
4346 * Makerules: Fix last change to use $($(subdir)-version) when set.
4348 * Makerules (install-lib-nosubdir): Depend on installed
4349 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
4350 regardless of the libfoo.so target's dependencies.
4352 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
4353 Use that in $(MAKE) calls.
4355 2003-02-22 Ulrich Drepper <drepper@redhat.com>
4357 * catgets/gencat.c (read_input_file): Collision between
4358 auto-assigned numbers and user-defined nubmers is not fatal.
4360 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
4361 * catgets/Makefile: Add rules to run test2.msg test.
4362 * catgets/test2.msg: New file.
4364 * catgets/gencat.c (main): Return 1 if messages have been printed.
4366 * iconv/iconv_prog.c (main): Unify messages.
4368 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
4369 when shifting retval.
4370 * stdlib/tst-strtod.c (main): Add strtold test case.
4371 Reported by Fred J. Tydeman <tydeman@tybor.com>.
4373 2003-02-21 Roland McGrath <roland@redhat.com>
4375 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
4376 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
4377 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
4379 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
4380 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
4381 (res_thread_freeres): New function, on __libc_thread_subfreeres and
4384 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
4385 * malloc/thread-freeres.c: New file.
4386 * malloc/Makefile (aux): Add it.
4387 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
4388 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
4389 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
4391 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
4392 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
4394 2003-02-21 Roland McGrath <roland@frob.com>
4396 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
4398 * iconvdata/Makefile (tests): Add bug-iconv3 only if
4399 [$(have-thread-library) = yes].
4401 2003-02-21 Ulrich Drepper <drepper@redhat.com>
4403 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
4405 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
4406 not chechk for errors (unless testing for 32bit variant).
4407 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
4408 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
4409 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
4411 2003-02-21 Jakub Jelinek <jakub@redhat.com>
4413 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
4414 Check for signed overflow, not unsigned.
4416 * sysdeps/sparc/sparc64/elf/configure.in: New file.
4417 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
4418 Use -fcall-used-g6, not -fcall-used-g7.
4420 2003-02-21 Andreas Jaeger <aj@suse.de>
4422 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
4425 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
4426 clear whole mxcsr but only exceptions.
4428 2003-02-21 Roland McGrath <roland@redhat.com>
4430 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
4431 for libfoo.so that need $(make-link) rules.
4433 2003-02-21 Roland McGrath <roland@frob.com>
4435 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
4436 to match existing struct stat layout in mig protocols.
4438 2003-02-20 Ulrich Drepper <drepper@redhat.com>
4440 * version.h (VERSION): Bump to 2.3.2.
4442 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
4443 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
4445 * sysdeps/generic/Dist: Add sysdep-cancel.h.
4446 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
4447 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
4448 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
4449 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
4450 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
4452 * Makefile (distribute): Add include/stubs-prologue.h,
4453 include/gnu/stubs.h, scripts/merge-abilist.awk, and
4454 scripts/extract-abilist.awk.
4456 2003-02-20 Roland McGrath <roland@redhat.com>
4458 * math/Makefile (distribute): Don't add generated files.
4460 2003-02-20 Ulrich Drepper <drepper@redhat.com>
4462 * math/Makefile: Rearrange variable definitions slightly to get
4463 definition in the right order.
4465 2003-02-20 Roland McGrath <roland@redhat.com>
4467 * Makerules: Clean up conditional around include of tls.make.
4468 * Make-dist: Export generating=t to prevent using that.
4469 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
4471 2003-02-20 Ulrich Drepper <drepper@redhat.com>
4473 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
4474 around in search if port IPPORT_RESERVED/2 has been test.
4476 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
4478 * posix/regcomp.c: Remove inclusions.
4479 * posix/regexec.c: Likewise.
4480 * posix/regex_internal.c: Likewise.
4481 * posix/regex_internal.h: Add inclusions here.
4482 * posix/regex.c: Only include sys/types.h before regex.h. Include
4483 regex_internal.h here. Include regex_internal.c before regcomp.c
4484 and regexec.c (might expose more opportunities to the C compiler).
4486 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
4488 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
4489 [!_LIBC] (__wcrtomb): New definition.
4490 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
4491 HAVE_LOCALE_H as well.
4493 2003-02-20 Ulrich Drepper <drepper@redhat.com>
4495 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
4496 patch to check for system call errors.
4498 2002-07-24 Philip Blundell <philb@gnu.org>
4500 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
4503 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4505 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
4506 * sysdeps/unix/sysv/linux/kernel-features.h
4507 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
4508 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
4510 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
4511 interprocedure branches.
4512 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
4513 * sysdeps/powerpc/nofpu/Dist: ...here.
4514 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
4515 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
4516 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
4517 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
4518 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
4520 2003-02-18 Alan Modra <amodra@bigpond.net.au>
4522 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
4524 2003-02-20 Philip Blundell <philb@gnu.org>
4526 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
4527 missing arguments to INTERNAL_SYSCALL_ERROR_P and
4528 INTERNAL_SYSCALL_ERRNO.
4530 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
4532 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
4533 for __ASSUME_32BITUIDS.
4535 2003-02-20 Andreas Schwab <schwab@suse.de>
4537 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
4538 POSIX_MADV_* constants.
4540 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4542 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
4543 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
4544 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
4545 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
4547 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
4549 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
4551 2003-02-16 Roland McGrath <roland@redhat.com>
4553 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
4555 2003-02-19 Ulrich Drepper <drepper@redhat.com>
4557 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
4558 decimal input digits.
4559 * stdlib/tst-strtod.c (main): Add test for strtof bug.
4561 2003-02-18 Ulrich Drepper <drepper@redhat.com>
4563 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
4564 invalid file descriptors and missing access permissions.
4566 2003-02-17 Ulrich Drepper <drepper@redhat.com>
4568 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
4571 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
4572 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
4573 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
4576 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
4577 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4579 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
4580 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
4581 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
4582 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
4583 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
4585 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4587 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
4588 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
4589 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
4590 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
4591 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
4592 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
4594 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
4595 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
4596 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
4597 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
4599 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
4600 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
4601 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
4602 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
4604 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
4606 * nss/getent.c (print_hosts): Print all IP addresses of one host.
4608 2003-02-15 Roland McGrath <roland@frob.com>
4610 * sysdeps/mach/hurd/tls.h: New file.
4611 * sysdeps/mach/hurd/i386/tls.h: New file.
4613 * mach/errsystems.awk: Include <errno.h> in generated output.
4615 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
4616 use target mach-before-compile instead of generated.
4617 (mach-before-compile): New target.
4618 * Makerules: Disable use of tls.make if $(generating) is set.
4619 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
4620 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
4621 mach-shortcuts.h so mach/ generation happens before hurd/.
4623 2003-02-14 Ulrich Drepper <drepper@redhat.com>
4625 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
4626 of demorm correctly if low word is zero.
4627 Reported by Fred J. Tydeman <tydeman@tybor.com>.
4628 * math/libm-test.inc (nextafter_test): New test, but disabled due
4631 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
4632 counter and only call __exit_thread if this is not the last thread.
4634 2003-02-13 Jakub Jelinek <jakub@redhat.com>
4636 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
4637 subtracting map->l_tls_offset.
4639 2003-02-12 Ulrich Drepper <drepper@redhat.com>
4641 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
4642 _CS_GNU_LIBPTHREAD_VERSION.
4643 * posix/conststr.c: Handle these new values.
4644 * posix/getconf.c: Likewise.
4646 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
4647 masking of version index.
4648 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
4650 2003-02-11 Ulrich Drepper <drepper@redhat.com>
4652 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
4653 correctly. Reported by Thorsten Kukuk.
4655 2003-02-10 Ulrich Drepper <drepper@redhat.com>
4657 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
4658 _BSD_SOURCE to compiler.
4659 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
4660 Patches by Alan Modra.
4662 2003-02-08 Ulrich Drepper <drepper@redhat.com>
4664 * io/ftwtest.c: Get current working directory before and after the
4665 nftw call and make sure they match.
4667 2003-02-08 Jim Meyering <jim@meyering.net>
4669 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
4670 the current directory, not just when DIR contains a slash.
4671 Reported by Manoj Srivastava.
4673 2003-02-07 Jim Meyering <jim@meyering.net>
4675 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
4676 Include autoconf-recommended block of dirent/NAMELEN-related
4677 definitions and includes. Use NAMELEN throughout, rather than
4679 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
4680 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
4681 (stpcpy): Declare, if necessary.
4682 (mempcpy): Define, if necessary.
4683 [!_LIBC] (__stpcpy, __mempcpy): Define.
4684 [!_LIBC] (LXSTAT, XSTAT): Define.
4685 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
4686 (find_object): Don't use c99-style struct initializer.
4687 Tweak wording in a couple comments.
4689 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4691 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
4693 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
4694 after the trapa instruction.
4695 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
4697 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
4698 (NEED_SYSCALL_INST_PAD): Define.
4699 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
4700 avoid to use definition for the kernel.
4701 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4702 Save and restore the frame pointer.
4703 (SYSCALL_INST_PAD): Define.
4704 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
4705 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
4706 after trapa instruction.
4707 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4708 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
4710 2003-02-07 Jakub Jelinek <jakub@redhat.com>
4712 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
4713 so that it can have aliases.
4714 * inet/herrno.c (h_errno): Put it into .bss not .data section.
4716 2003-02-07 Ulrich Drepper <drepper@redhat.com>
4718 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
4719 (profile_fixup): Likewise.
4720 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
4722 2002-11-24 Robert Love <rml@tech9.net>
4724 * posix/sched.h: Second parameter of sched_setaffinity and
4725 sched_getaffinity is `unsigned int', not `unsigned long'.
4726 * sysdeps/generic/sched_setaffinity.c: Likewise.
4727 * sysdeps/generic/sched_getaffinity.c: Likewise.
4729 2003-02-05 Ulrich Drepper <drepper@redhat.com>
4731 * debug/catchsegv.sh: Fix typo in error messsage.
4732 Reported by John Levon <levon@movementarian.org>.
4734 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
4735 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
4736 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
4737 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4738 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
4739 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4740 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4742 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
4743 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
4745 2003-02-05 Jim Meyering <jim@meyering.net>
4747 Fix a heap-corrupting bug.
4748 * io/ftw.c: Include <limits.h>.
4749 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
4750 (process_entry): Allocate enough space to hold the resulting
4751 file name. Don't presume that 2*dirbufsize is enough.
4752 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
4753 it is guaranteed to be defined.
4755 2003-02-04 Ulrich Drepper <drepper@redhat.com>
4757 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
4758 * iconvdata/bug-iconv3.c: New file.
4760 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
4762 * sysdeps/unix/sysv/linux/s390/system.c: New file.
4764 2003-02-03 Jakub Jelinek <jakub@redhat.com>
4766 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
4768 * config.h.in (BROKEN_SPARC_WDISP22): Add.
4770 2003-02-03 Ulrich Drepper <drepper@redhat.com>
4772 * sysdeps/i386/i686/memmove.S: New file.
4774 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
4776 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
4777 Include kernel-features.h
4778 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
4779 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
4780 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
4781 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4783 2003-02-02 Jakub Jelinek <jakub@redhat.com>
4785 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
4787 2003-01-25 Jim Meyering <jim@meyering.net>
4789 * io/ftw.c (object_compare): Compare inode numbers before device
4790 numbers, since the former are much more likely to differ.
4792 2003-02-01 Ulrich Drepper <drepper@redhat.com>
4794 * time/tzfile.c (__tzfile_compute): Change return value type to
4795 void. Adjust return statements.
4796 * include/time.h (__tzfile_compute): Adjust prototype.
4798 2003-02-01 Jim Meyering <jim@meyering.net>
4800 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
4803 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
4805 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4806 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
4808 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
4810 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4811 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
4812 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4813 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
4814 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4815 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
4816 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4817 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
4819 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
4821 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
4822 back to 2.4.19 for powerpc64.
4823 * sysdeps/unix/sysv/linux/kernel-features.h
4824 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
4825 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
4827 2003-02-01 Ulrich Drepper <drepper@redhat.com>
4829 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
4830 platforms with strange alignment requirements on wchar_t.
4832 2003-01-31 Andreas Schwab <schwab@suse.de>
4834 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
4835 aliases, already added by make-syscalls.sh.
4836 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4837 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4838 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4839 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4840 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4841 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4842 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4843 * sysdeps/unix/inet/syscalls.list: Likewise.
4844 * sysdeps/unix/syscalls.list: Likewise.
4846 2003-01-31 Andreas Schwab <schwab@suse.de>
4848 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
4851 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4853 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
4854 not l to load tls from stack.
4856 2003-01-30 Roland McGrath <roland@redhat.com>
4858 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
4859 null argument before all else.
4860 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
4862 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4864 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
4865 Move to RESOLVE protected part of the header.
4866 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
4869 2003-01-30 Ulrich Drepper <drepper@redhat.com>
4871 * stdio-common/Makefile (tests): Add bug15.
4872 (bug15-ENV): Define.
4873 * stdio-common/bug15.c: New file.
4875 2002-10-07 Wolfram Gloger <wg@malloc.de>
4877 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
4878 to foreign sbrk()'s if arena is contiguous. Bug report from
4879 Bruno Haible <bruno@clisp.org>.
4881 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4883 * sysdeps/s390/libc-tls.c: Include stdlib.h.
4885 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4887 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
4890 2003-01-30 Ulrich Drepper <drepper@redhat.com>
4892 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
4894 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
4896 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
4898 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4900 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
4901 (allocate_static_tls): ...here. Add __attribute_noinline__.
4902 Don't return on failure.
4903 (_dl_reloc_bad_type): Add __attribute_noinline__.
4904 * elf/do-rel.h (elf_dynamic_do_rel): Add
4905 __attribute__((always_inline)).
4906 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
4907 elf_machine_rel_relative, elf_machine_rela_relative,
4908 elf_machine_lazy_rel): Add prototypes with
4909 __attribute__((always_inline)).
4911 2003-01-29 David Mosberger <davidm@hpl.hp.com>
4913 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
4915 2003-01-29 Roland McGrath <roland@redhat.com>
4917 * configure.in: Barf if configured in $srcdir.
4919 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
4921 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4922 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
4924 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
4926 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
4927 clone parameters to match the order used on ia32.
4928 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
4930 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
4932 * elf/elf.h: Add new s390 relocs.
4933 * elf/tls-macros.h: Add s390 versions.
4934 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
4935 * sysdeps/s390/dl-tls.h: New file.
4936 * sysdeps/s390/libc-tls.c: New file.
4937 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
4938 relocs for class PLT.
4939 (elf_machine_rela): Handle TLS relocs.
4940 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4941 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
4942 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
4943 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
4944 CLONE_CHILD_*TID flags.
4945 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
4946 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
4948 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4949 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
4950 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
4951 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
4952 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
4954 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
4955 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
4956 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
4958 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
4959 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
4960 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
4961 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
4964 2003-01-28 Ulrich Drepper <drepper@redhat.com>
4966 * sysdeps/unix/common/pause.c (do_pause): New function. Split
4967 from __libc_pause. Implement using sigsuspend.
4968 (__libc_pause): Call do_pause to do the real work.
4970 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
4971 sig_or_mask parameter is is_sig != 0.
4973 2003-01-21 Philip Blundell <philb@gnu.org>
4975 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
4977 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
4979 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
4981 2003-01-27 Ulrich Drepper <drepper@redhat.com>
4983 * stdio-common/bug14.c: Use official name for the locale.
4985 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
4986 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
4987 instead of __libc_cleanup_region_end.
4989 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
4990 as first parameter to __libc_cleanup_region_start.
4992 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4993 (__fe_nomask_env): Use __prctl not prctl.
4994 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
4997 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
4999 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
5001 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
5002 wrap-around in test.
5004 2003-01-26 Andreas Schwab <schwab@suse.de>
5006 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
5007 compatibility symbols. Remove INTDEF for __divdi3.
5008 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
5009 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
5010 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
5012 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
5014 2003-01-24 Jakub Jelinek <jakub@redhat.com>
5016 * elf/tls-macros.h: Add SPARC 32-bit definitions.
5017 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
5018 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
5019 for the first half of the header. Include tls.h.
5020 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
5022 (elf_machine_rela): Handle TLS relocs.
5023 * sysdeps/sparc/dl-tls.h: New file.
5025 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
5028 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
5029 * sysdeps/sparc/sparc32/memchr.S: Likewise.
5030 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
5031 * sysdeps/sparc/sparc32/strcat.S: Likewise.
5032 * sysdeps/sparc/sparc32/strchr.S: Likewise.
5033 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
5034 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
5035 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
5036 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
5037 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
5038 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
5039 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
5040 * sysdeps/sparc/sparc64/strcat.S: Likewise.
5041 * sysdeps/sparc/sparc64/strchr.S: Likewise.
5042 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
5043 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
5044 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
5045 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
5046 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
5047 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
5049 2003-01-24 Andreas Schwab <schwab@suse.de>
5051 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
5052 elements, and process them backwards.
5053 * elf/Makefile ($(objpfx)tst-array4): New target.
5054 ($(objpfx)tst-array4.out): Likewise.
5055 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
5056 * elf/tst-array4.c: New file.
5057 * elf/tst-array4.exp: Likewise.
5059 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
5061 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
5063 2003-01-27 Guido Guenther <agx@sigxcpu.org>
5065 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
5066 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
5067 cancellation handling and handle both __NR_pread64 and __NR_pread.
5068 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5069 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
5070 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
5071 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5072 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
5073 case, use register names consistently.
5075 2003-01-27 Wolfram Gloger <wg@malloc.de>
5077 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
5078 pointer, not of the computed chunk. Bug report from Carlos
5079 O'Donell <carlos@baldric.uwo.ca>.
5081 2003-01-25 Andreas Schwab <schwab@suse.de>
5083 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
5084 addressing to save GOT entries.
5086 2003-01-21 Jakub Jelinek <jakub@redhat.com>
5088 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
5089 inline_syscall1, inline_syscall2, inline_syscall3,
5090 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
5091 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
5092 __attribute__((unused)) to ChEcK.
5094 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
5096 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
5097 Fix inline assembler constraints.
5098 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
5101 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
5104 2003-01-20 Segher Boessenkool <segher@koffie.nl>
5106 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
5107 compute the cosine, not the sine, even if x > 0.8.
5109 2003-01-19 Ulrich Drepper <drepper@redhat.com>
5111 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
5112 _nss_nis_setspent. Work around the different prototypes.
5113 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
5114 internal_nis_endrpcent.
5115 (internal_nis_endrpcent): Change return type to void. Change callers.
5116 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
5117 _nss_nis_setpwent. Work around the different prototypes.
5118 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
5119 of the function to...
5120 (internal_nis_endprotoent): ... here. New function.
5121 (internal_nis_setprotoent): Use internal_nis_endprotoent.
5122 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
5123 _nss_nis_setnetent. Work around the different prototypes.
5124 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
5125 of the function to...
5126 (internal_nis_endnetgrent): ... here. New function.
5127 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
5129 2003-01-19 Jim Meyering <jim@meyering.net>
5131 * time/strftime.c: (widen): Merge nearly-identical definitions.
5132 (nl_get_alt_digit) [! defined my_strftime]: Define.
5133 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
5134 _nl_get_alt_digit and _nl_get_walt_digit.
5136 2003-01-19 Ulrich Drepper <drepper@redhat.com>
5138 * time/strftime.c (my_strftime): Handle very large width
5139 specifications for numeric values correctly. Improve checks for
5141 * time/Makefile (tests): Add tst-strftime.
5142 * time/tst-strftime.c: New file.
5144 2003-01-18 Ulrich Drepper <drepper@redhat.com>
5146 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
5147 _nss_nis_sethostent. Work around the different prototypes.
5148 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
5149 _nss_nis_setgrent. Work around the different prototypes.
5150 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
5151 function. Split out from _nss_nis_endetherent.
5152 (internal_nis_setetherent): Use internal_nis_endetherent instead of
5153 duplicating the code.
5154 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
5155 of _nss_nis_setaliasent.
5156 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
5157 internal_nis_endservent code, don't duplicate it.
5159 * inet/rexec.c (rexec_af): Protect socket operations with
5160 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
5161 * inet/rcmd.c (rcmd_af): Likewise.
5163 2003-01-17 Roland McGrath <roland@redhat.com>
5165 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
5166 Add test of value 0.80190127184058835.
5168 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
5170 2003-01-17 Richard Henderson <rth@redhat.com>
5172 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
5173 relocs for class PLT.
5174 * sysdeps/alpha/libc-tls.c: New file.
5175 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
5176 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
5178 2003-01-17 Jakub Jelinek <jakub@redhat.com>
5180 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
5181 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
5184 2003-01-17 Andreas Jaeger <aj@suse.de>
5186 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
5188 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
5190 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
5191 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
5192 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
5193 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
5194 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
5195 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
5196 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
5199 2003-01-16 Ulrich Drepper <drepper@redhat.com>
5201 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
5202 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
5205 * sysdeps/generic/sysconf.c: Unconditionally implement
5206 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
5207 * sysdeps/posix/sysconf.c: Likewise.
5209 2003-01-16 Jakub Jelinek <jakub@redhat.com>
5211 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
5212 set *err to the returned error, not to REG_ESPACE unconditionally.
5213 (build_word_op): Likewise.
5214 * posix/Makefile (tests): Add bug-regex16.
5215 * posix/bug-regex16.c: New test.
5217 2003-01-16 Jakub Jelinek <jakub@redhat.com>
5219 * elf/dl-load.c (_dl_map_object_from_fd): Use
5220 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
5221 been already initialized.
5223 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
5225 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
5227 2003-01-16 Jakub Jelinek <jakub@redhat.com>
5229 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
5230 allocated too. Reported by Al Viro <aviro@redhat.com>.
5232 2003-01-16 Roland McGrath <roland@redhat.com>
5234 Tweak merged .abilist file format to merge duplicate symbols in
5235 different sets into multi-version stanzas with new "| SET regexp..."
5236 header continuation lines.
5237 * scripts/merge-abilist.awk: Rewritten for new format.
5238 * scripts/extract-abilist.awk: Likewise.
5240 2003-01-15 Ulrich Drepper <drepper@redhat.com>
5242 * nscd/connections.c (nscd_run): Remove bogus return which isn't
5243 necessary with gcc 3.2+.
5244 (nscd_init): Don't use error() to print message, use dbg_log.
5246 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
5247 expected size into state.
5248 (UNPACK_BYTES): Do the reverse.
5249 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
5250 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
5251 Reported by Al Viro <aviro@redhat.com>.
5253 * stdio-common/Makefile (tests): Add bug14.
5254 * stdio-common/bug14.c: New file.
5256 * stdio-common/vfscanf.c: When recognizing multibyte characters in
5257 string reset the byte counter after mbrtowc reported it is not a
5258 partial character. Reported by Al Viro <aviro@redhat.com>.
5260 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
5262 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
5263 sysdep-cancel.h, not sysdep.h.
5265 2003-01-15 Ulrich Drepper <drepper@redhat.com>
5267 * nscd/connections.c (nscd_run): Protect accept call with
5270 2003-01-15 Andreas Schwab <schwab@suse.de>
5272 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
5273 (common-generated): Add s-proto-bp.d.
5274 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
5276 * sysdeps/unix/s-proto-bp.S: New file.
5277 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
5278 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
5279 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
5281 2003-01-15 Roland McGrath <roland@redhat.com>
5283 * Makerules: Use -include for tls.make, suppresses warning.
5284 Move gen-as-const-headers rules up so before-compile is set in time.
5285 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
5287 2003-01-15 Ulrich Drepper <drepper@redhat.com>
5289 * nscd/nscd.c (main): Make code to close all file descriptors
5290 faster and more robust.
5292 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
5293 request with one writev call. Protect all read calls with
5295 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5296 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5298 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
5299 Protect writev calls with TEMP_FAILURE_RETRY.
5300 * nscd/grpcache.c: Likewise.
5301 * nscd/pwdcache.c: Likewise.
5303 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
5304 IPv6 address in debug output.
5306 2003-01-14 Roland McGrath <roland@redhat.com>
5308 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
5309 $(objpfx) directories, and get rid of vpath directives. The previous
5310 arrangement resulted in files being written to the source directories
5311 when run in a clean build. Find all .abilist files in $(..)abilist/.
5312 (update-abi-%): Likewise.
5313 (generated): Don't add .symlist files, they'll be intermediates.
5315 * sysdeps/generic/init-first.c: Add a comment.
5317 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
5319 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
5320 #includes and expressions.
5322 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
5323 config list when it already contains cpu-.*-os.* without / part.
5325 * Makerules (sed-remove-dotdot): New variable.
5326 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
5327 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
5328 (check-abi-config): New variable, append /tls or /notls to the tuple.
5329 (check-abi-%): Use that for -v config value.
5330 Find .abilist files in abilist/libfoo.abilist, not in subdir.
5331 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
5333 2003-01-14 Ulrich Drepper <drepper@redhat.com>
5335 * manual/install.texi: Correct description of header preparation for
5336 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
5338 2003-01-14 Guido Guenther <agx@sigxcpu.org>
5340 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
5341 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
5342 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
5344 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
5346 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
5347 (INTERNAL_SYSCALL): Make use of ERR parameter.
5348 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
5349 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
5350 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
5351 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
5353 2003-01-14 Ulrich Drepper <drepper@redhat.com>
5355 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
5357 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
5359 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
5360 Fix entry for bit 31.
5362 * iconvdata/Makefile: Add rules to build IBM866NAV.
5363 * iconvdata/ibm866nav.c: New file.
5364 * iconvdata/tst-tables.sh: Add IBM866NAV.
5365 * iconvdata/gconv-modules: Add entries for IBM866NAV.
5367 2003-01-13 Ulrich Drepper <drepper@redhat.com>
5369 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
5370 to test void* parameters.
5372 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
5373 source pointer before dereferencing.
5374 (__STRING_SMALLL_GET32): Likewise.
5375 (__memset_gc): Add missing parenthesis around macro arguments.
5376 Patch by Denis Zaitsev <zzz@cd-club.ru>.
5378 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
5379 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
5381 2003-01-14 Jakub Jelinek <jakub@redhat.com>
5383 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
5386 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
5388 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
5389 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
5391 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
5393 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
5395 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
5397 (PSEUDO): ... to here.
5398 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
5400 (PSEUDO): ... to here.
5402 2003-01-13 Ulrich Drepper <drepper@redhat.com>
5404 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
5405 dirent64 instead of struct dirent for dirent. Call readdir64
5408 * locale/programs/locfile.c (siblings_uncached): Use struct
5409 dirent64 instead of struct dirent for other_dentry. Call
5410 readdir64 instead of readdir.
5412 * elf/ldconfig.c (direntry): Change type to struct dirent64.
5413 (search_dir): Use readdir64 instead of readdir.
5414 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
5416 2003-01-12 Roland McGrath <roland@redhat.com>
5418 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
5419 not strtol. The former is usable in ld.so, the latter not.
5421 * include/fcntl.h: Declare __libc_creat.
5423 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
5424 libhurduser-link.so-no-z-defs): New variables.
5426 * malloc/malloc.c: Revert last change.
5427 * malloc/malloc.h (_int_*): Move these decls to ...
5428 * include/malloc.h: ... here. Add attribute_hidden.
5429 (_int_valloc): Declare it too.
5431 2003-01-12 Ulrich Drepper <drepper@redhat.com>
5433 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
5434 search for removed searchlist. Reported by Roland McGrath.
5436 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
5437 given as start file.
5439 * io/ftw.c (ftw_startup): Use correct name in check for symlink
5440 without existing target. Patch by Jim Meyering.
5442 * Makerules (build-shlib-helper): Don't use -z defs linker option
5443 if no-z-defs is defined either.
5445 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
5447 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
5450 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
5452 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
5453 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5455 2003-01-12 Ulrich Drepper <drepper@redhat.com>
5457 * io/ftwtest-sh: Add test case for relative path with /. at the end.
5459 2003-01-12 Jim Meyering <jim@meyering.net>
5461 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
5462 use the basename if we've already chdir'd into its parent directory.
5464 2003-01-12 Ulrich Drepper <drepper@redhat.com>
5466 * io/ftw.c (process_entry): Use relative path when using chdir()
5467 to change directory after call to ftw_dir.
5468 * io/ftwtest-sh: Add test for relative path argument to nftw()
5469 with FTW_CHDIR option.
5471 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5473 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
5475 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
5477 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5478 (INTERNAL_SYSCALL): Make use of ERR parameter.
5479 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
5480 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
5481 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
5482 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
5484 2002-01-09 Richard Henderson <rth@redhat.com>
5486 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
5487 DTPREL64 and TPREL64 without loadbase applied.
5489 2002-01-09 Richard Henderson <rth@redhat.com>
5491 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
5494 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
5495 * sysdeps/unix/alpha/sysdep.h: ... here.
5496 (PSEUDO_LOADGP): Remove.
5497 (PSEUDO_PROLOGUE): Load GP in non-pic case.
5498 (SYSCALL_ERROR_LABEL): New.
5499 (PSEUDO): Use it in error branch.
5500 (PSEUDO_END): Add $syscall_error label.
5502 2003-01-12 Andreas Jaeger <aj@suse.de>
5504 * math/bits/mathcalls.h: Round is a const function.
5506 2003-01-11 Jim Meyering <jim@meyering.net>
5508 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
5509 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
5510 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
5511 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
5512 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
5513 [!_LIBC] (internal_function, dirent64, MAX): Define.
5514 (__set_errno): Define if not already defined.
5515 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
5516 the basename, not the entire file name.
5517 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
5518 the basename, not the entire file name.
5520 2003-01-12 Ulrich Drepper <drepper@redhat.com>
5522 * string/tester.c (test_strcpy): Disable last added strcpy until
5525 2003-01-11 Philip Blundell <philb@gnu.org>
5527 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
5529 2003-01-11 Andreas Schwab <schwab@suse.de>
5531 * Makerules: Add vpath for %.dynsym and %.so so that the
5532 implicit rule chaining for check-abi works.
5534 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5536 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5539 2003-01-11 Jakub Jelinek <jakub@redhat.com>
5541 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
5542 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
5544 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
5545 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
5546 Ensure libc.so in DT_NEEDED.
5547 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
5548 CHECK_STATIC_TLS before l_tls_offset use.
5549 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
5551 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5552 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
5553 Allocate TLS_PRE_TCB_SIZE bytes below result.
5554 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
5555 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
5556 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
5557 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
5558 bytes below result and add tcb_offset to memsz.
5559 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
5560 * sysdeps/ia64/dl-machine.h: Include tls.h.
5561 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
5563 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
5564 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
5565 * sysdeps/ia64/libc-tls.c: New file.
5567 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
5569 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
5570 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
5571 Fix type. Move definition out of #if.
5572 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
5573 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
5574 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
5575 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
5576 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
5577 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
5579 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
5580 ftruncate64, pread64, pwrite64, truncate64 entries.
5581 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
5582 (INLINE_SYSCALL): New version that supports function call like
5583 syscalls. Add __builtin_expect.
5584 (LOADARGS_n): Add argument size safety checks.
5585 (INTERNAL_SYSCALL): New Macro.
5586 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
5587 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
5588 redefinition of elf_fpreg_t and elf_fpregset_t.
5590 2003-01-12 Ulrich Drepper <drepper@redhat.com>
5592 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
5593 simplify test for unloading. If loader of a DSO is unloaded do not
5594 use its scope anymore. Fall back to own scope and adjust opencounts.
5595 Fix several comments.
5596 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
5597 the l_searchlist, not only for l_initfini.
5599 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
5600 dependencies if objects cannot be removed. Remove object with the
5601 definition as not unloadable if necessary.
5603 * elf/reldep6.c: Create relocation dependency before closing the first
5606 2003-01-10 Guido Günther <agx@sigxcpu.org>
5608 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
5609 * sysdeps/unix/mips/brk.S: Likewise.
5610 * sysdeps/unix/mips/pipe.S: Likewise.
5612 2003-01-10 Andreas Schwab <schwab@suse.de>
5614 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
5616 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
5617 are known to have the vfork syscall.
5619 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
5621 * sysdeps/unix/sysv/linux/kernel-features.h
5622 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
5623 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
5624 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
5626 2003-01-09 Jakub Jelinek <jakub@redhat.com>
5628 * elf/Makefile: Add rules to build and run reldep9 test.
5629 * elf/reldep9.c: New file.
5630 * elf/reldep9mod1.c: New file.
5631 * elf/reldep9mod2.c: New file.
5632 * elf/reldep9mod3.c: New file.
5634 2003-01-09 Jakub Jelinek <jakub@redhat.com>
5636 * elf/Makefile: Add rules to build and run nodelete2 test.
5637 * elf/nodelete2.c: New file.
5638 * elf/nodel2mod1.c: New file.
5639 * elf/nodel2mod2.c: New file.
5640 * elf/nodel2mod3.c: New file.
5642 2003-01-09 Jakub Jelinek <jakub@redhat.com>
5644 * posix/test-vfork.c (noop): Add __attribute_noinline__.
5645 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
5646 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
5648 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
5649 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
5650 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
5651 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
5652 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
5654 2003-01-09 Andreas Schwab <schwab@suse.de>
5656 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
5658 2003-01-08 Ulrich Drepper <drepper@redhat.com>
5660 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
5661 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
5663 (INTERNAL_SYSCALL_DECL): Define.
5665 2003-01-06 Jakub Jelinek <jakub@redhat.com>
5667 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
5668 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
5670 (INTERNAL_SYSCALL_DECL): Define.
5671 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
5672 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
5673 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5674 (INLINE_SYSCALL): Adjust.
5675 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
5676 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
5677 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
5678 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
5679 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
5680 add err argument to INTERNAL_SYSCALL* macros.
5681 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
5682 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
5683 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
5684 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
5686 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
5687 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
5688 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
5690 2003-01-07 Ulrich Drepper <drepper@redhat.com>
5692 Unify symbols in user namespace exported by libc.so and libc.a.
5693 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
5694 argp_fmtstream_free, and argp_fmtstream_printf.
5695 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
5696 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
5697 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
5698 argp_fmtstream_point.
5699 * gmon/gmon.c: Don't define write_profiling.
5700 * libio/genops.c: Don't define _cleanup.
5702 * intl/explodename.c (_nl_find_language.c): Mark as static.
5703 * intl/loadinfo.h: Remove _nl_find_language prototype.
5705 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
5706 * libio/libioP.h: Remove declaration.
5708 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
5709 * libio/libioP.h: Remove declaration.
5711 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
5712 * sysdeps/generic/framestate.c: Define STATIC before including
5715 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
5717 2003-01-06 Philip Blundell <philb@gnu.org>
5719 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
5720 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
5722 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
5724 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
5725 (SYSCALL_ERROR): New.
5726 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
5728 (INTERNAL_SYSCALL): Define.
5729 (INLINE_SYSCALL): Use it.
5730 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
5731 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
5732 SYSCALL_ERROR in place of __syscall_error.
5734 2003-01-07 Jakub Jelinek <jakub@redhat.com>
5736 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
5737 __bswap_32, __bswap_64): Put x into temporary variable
5739 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
5741 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
5742 __bswap_32, __bswap_64): Put x into temporary variable
5744 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
5746 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
5749 2003-01-07 Jakub Jelinek <jakub@redhat.com>
5751 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
5754 2003-01-07 Jakub Jelinek <jakub@redhat.com>
5756 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
5757 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
5759 2003-01-07 Ulrich Drepper <drepper@redhat.com>
5761 * math/libm-test.inc (significand_test): New function.
5764 2003-01-06 Roland McGrath <roland@redhat.com>
5766 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
5768 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
5769 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
5770 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
5772 * string/tester.c (test_strcpy): Add test with `void *' arguments.
5774 2003-01-06 Ulrich Drepper <drepper@redhat.com>
5776 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
5777 return significand and not the exponent.
5778 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5780 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
5781 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
5783 * malloc/malloc.c: Mark all _int_* functions as static.
5785 2003-01-06 Jakub Jelinek <jakub@redhat.com>
5787 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
5788 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
5790 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
5792 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5794 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
5795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
5797 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
5798 ftruncate64, truncate64, pread64 and pwrite64 entries.
5799 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5800 (INLINE_SYSCALL): Add __builtin_expect.
5801 (LOADARGS_n): Add argument size safety checks.
5802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
5803 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
5804 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
5805 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
5806 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
5807 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
5809 2003-01-06 Jakub Jelinek <jakub@redhat.com>
5811 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
5812 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
5813 (LIBC_CANCEL_HANDLED): Add.
5815 * sysdeps/unix/sysv/linux/alpha/sysdep.h
5816 (inline_syscall_r0_constraint): Rename to...
5817 (inline_syscall_r0_out_constraint): ... this. Add =.
5818 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
5820 2003-01-06 Andreas Schwab <schwab@suse.de>
5822 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
5823 sure this is always inlined.
5824 (elf_machine_rela): Likewise.
5826 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
5828 2003-01-04 Roland McGrath <roland@redhat.com>
5830 * Makeconfig (+mkdep): Add -MP flag.
5831 Suggested by Art Haas <ahaas@airmail.net>.
5833 2003-01-05 Andreas Schwab <schwab@suse.de>
5835 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
5837 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5839 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
5840 SYSCALL_ERROR_HANDLER.
5841 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
5842 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
5843 Add support for cancellation handling.
5844 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
5845 SYSCALL_ERROR_HANDLER.
5846 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
5847 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
5848 Add support for cancellation handling.
5849 (SYSCALL_ERROR_HANDLER): Define PIC variants.
5851 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5853 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
5854 __syscall_pread64 and __syscall_pwrite64 cancelable.
5855 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5856 (INTERNAL_SYSCALL): New macro.
5857 (LOADARGS_0, LOADARGS_1): Fix.
5859 2003-01-05 Ulrich Drepper <drepper@redhat.com>
5861 * Makerules (build-shlip-helper): Unless told otherwise, add
5862 -Wl,-z,defs to linker command line.
5863 * rt/Makefile (librt.so): Link with ld.so.
5864 * dlfcn/Makefile (libdl.so): Likewise.
5866 2003-01-05 Jakub Jelinek <jakub@redhat.com>
5868 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
5869 cancellation handling.
5870 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5871 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
5873 2003-01-04 Ulrich Drepper <drepper@redhat.com>
5875 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
5876 order of parameters passed to kill.
5878 2003-01-04 Andreas Schwab <schwab@suse.de>
5880 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
5882 2002-01-03 Paul Eggert <eggert@twinsun.com>
5884 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
5885 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
5886 when compiling Bison 1.875's `bitset bset = obstack_alloc
5887 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
5889 2003-01-04 Ulrich Drepper <drepper@redhat.com>
5891 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
5893 Correct reference counter in case SIGQUIT handler installation failed.
5895 2003-01-03 Ulrich Drepper <drepper@redhat.com>
5897 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
5898 Define using _Pragma(weak ...).
5900 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
5902 * resolv/res_libc.c: Provide declaration for __res_init_weak and
5903 reorder declarations.
5905 2003-01-03 Art Haas <ahaas@airmail.net>
5907 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
5908 initializer syntax to C99.
5909 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
5910 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
5911 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
5912 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
5913 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
5914 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
5915 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
5916 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
5917 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
5918 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
5919 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
5920 * localedata/tests-mbwc/dat_mblen.c: Likewise.
5921 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
5922 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
5923 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
5924 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
5925 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
5926 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
5927 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
5928 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
5929 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
5930 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
5931 * localedata/tests-mbwc/dat_towlower.c: Likewise.
5932 * localedata/tests-mbwc/dat_towupper.c: Likewise.
5933 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
5934 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
5935 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
5936 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
5937 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
5938 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
5939 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
5940 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
5941 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
5942 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
5943 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
5944 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
5945 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
5946 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
5947 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
5948 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
5949 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
5950 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
5951 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
5952 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
5953 * localedata/tests-mbwc/dat_wctob.c: Likewise.
5954 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
5955 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
5956 * localedata/tests-mbwc/dat_wctype.c: Likewise.
5957 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
5959 2003-01-03 Richard Henderson <rth@redhat.com>
5961 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
5962 (inline_syscall_r0_constraint): New.
5963 (inline_syscall[0-6]): Use them.
5965 2003-01-03 Jakub Jelinek <jakub@redhat.com>
5967 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
5968 Add rtld_hidden_proto.
5969 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
5970 (_dl_allocate_tls): Likewise. Remove INTDEF.
5972 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5974 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
5975 Morita <toshiyasu.morita@hsa.hitachi.com>.
5976 * sysdeps/sh/memcpy.S: Likewise.
5978 2003-01-02 Ulrich Drepper <drepper@redhat.com>
5980 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
5981 any, but unify the test.
5983 2003-01-02 Jakub Jelinek <jakub@redhat.com>
5985 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
5986 sigaction): Protect weak_alias and libc_hidden_weak with
5987 #ifndef LIBC_SIGACTION.
5988 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
5989 sigaction): Likewise.
5990 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
5991 sigaction): Likewise.
5992 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
5993 sigaction): Likewise.
5994 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
5995 sigaction): Likewise.
5996 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
5997 sigaction): Likewise.
5998 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
5999 sigaction): Likewise.
6000 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
6001 sigaction): Likewise. Remove SIGCANCEL handling here.
6002 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
6005 2003-01-02 Art Haas <ahaas@airmail.net>
6007 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
6009 2003-01-02 Ulrich Drepper <drepper@redhat.com>
6011 * posix/getconf.c: Update copyright year.
6012 * nss/getent.c: Likewise.
6013 * nscd/nscd_nischeck.c: Likewise.
6014 * iconv/iconvconfig.c: Likewise.
6015 * iconv/iconv_prog.c: Likewise.
6016 * elf/ldconfig.c: Likewise.
6017 * catgets/gencat.c: Likewise.
6018 * csu/version.c: Likewise.
6019 * elf/ldd.bash.in: Likewise.
6020 * elf/sprof.c (print_version): Likewise.
6021 * locale/programs/locale.c: Likewise.
6022 * locale/programs/localedef.c: Likewise.
6023 * nscd/nscd.c (print_version): Likewise.
6024 * debug/xtrace.sh: Likewise.
6025 * malloc/memusage.sh: Likewise.
6026 * malloc/mtrace.pl: Likewise.
6028 2003-01-01 Jakub Jelinek <jakub@redhat.com>
6030 * io/sys/stat.h: Include time.h with __need_timespec even if
6031 __USE_MISC is defined but __USE_XOPEN is not.
6033 2003-01-01 Andreas Jaeger <aj@suse.de>
6035 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
6036 type to avoid strict aliasing problem.
6037 (_nss_dns_gethostbyname2_r): Likewise.
6038 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6039 (_nss_dns_getnetbyname_r): Likewise.
6040 * resolv/gethnamaddr.c (_gethtent): Likewise.
6041 (gethostbyname2): Likewise.
6043 2002-12-31 Ulrich Drepper <drepper@redhat.com>
6045 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
6046 to avoid using the exported symbols. Define aliases with the
6047 original names separately.
6049 * include/time.h: Add libc_hidden_proto for __strftime_l.
6050 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
6051 * time/strftime.c: Always use libc_hidden_def if _LIBC.
6053 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
6054 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
6056 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
6059 * csu/Makefile (routines): Add dso_handle.
6060 * csu/dso_handle.c: New file.
6062 2002-12-31 Roland McGrath <roland@redhat.com>
6064 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
6065 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
6066 (S-CPPFLAGS): Add -DASSEMBLER here instead.
6067 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
6069 2002-12-31 Ulrich Drepper <drepper@redhat.com>
6071 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
6074 2002-12-31 Andreas Jaeger <aj@suse.de>
6076 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
6078 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
6079 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
6080 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
6082 * sysdeps/unix/sysv/linux/kernel_stat.h
6083 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
6085 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
6086 __unused[1-3] since they're needed by some platforms. Handle
6087 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
6089 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
6090 for structs stat and stat64.
6091 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6092 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
6093 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6094 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6096 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
6098 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
6099 nsec resolution changes.
6100 (xstat64_conv): Likewise.
6101 (xstat32_conv): Likewise.
6103 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
6106 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
6107 structs stat and stat64.
6109 * time/time.h (__timespec_defined): Define for __USE_MISC.
6111 2002-12-31 Ulrich Drepper <drepper@redhat.com>
6113 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
6114 and __libc_current_sigrtmax.
6116 2002-12-31 Jakub Jelinek <jakub@redhat.com>
6118 * include/errno.h (__errno_location): Add prototype.
6119 Use libc_hidden_proto unconditionally.
6120 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
6122 * include/resolv.h (__res_state): Likewise.
6124 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
6125 * include/sys/socket.h (accept): Add libc_hidden_proto.
6126 * include/errno.h (__errno_location): Likewise.
6127 * include/netdb.h (__h_errno_location): Likewise.
6128 * include/resolv.h (__res_state): Likewise.
6129 * include/unistd.h (__lseek): Likewise.
6130 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
6131 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
6132 * sysdeps/generic/res-state.c (__res_state): Likewise.
6133 * sysdeps/generic/accept.c (accept): Likewise.
6134 * sysdeps/generic/lseek.c (__lseek): Likewise.
6135 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
6136 __libc_current_sigrtmax): Likewise.
6137 * sysdeps/mach/hurd/accept.c (accept): Likewise.
6138 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
6139 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
6140 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
6141 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
6142 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
6143 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
6144 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
6145 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
6147 (__GI_accept): New alias to accept.
6148 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
6149 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
6150 New alias to llseek.
6151 (__GI_accept): New alias to accept.
6152 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
6154 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
6156 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
6158 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
6159 strong_alias (name, __GI_name).
6160 * sysdeps/arm/bsd-_setjmp.S : Likewise.
6161 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
6162 * sysdeps/i386/bsd-_setjmp.S : Likewise.
6163 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
6164 * sysdeps/mips/bsd-_setjmp.S : Likewise.
6165 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
6166 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
6167 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
6168 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
6169 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
6170 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
6171 * sysdeps/sh/bsd-_setjmp.S : Likewise.
6172 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
6173 * sysdeps/unix/arm/fork.S : Likewise.
6174 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
6175 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
6176 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
6177 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
6178 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
6179 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
6180 * sysdeps/unix/i386/fork.S : Likewise.
6181 * sysdeps/unix/mips/fork.S : Likewise.
6182 * sysdeps/unix/sparc/fork.S : Likewise.
6183 * sysdeps/unix/sparc/vfork.S : Likewise.
6184 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
6185 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
6186 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
6187 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
6188 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
6189 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
6190 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
6191 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
6192 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
6193 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
6194 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
6195 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
6196 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
6197 * sysdeps/unix/fork.S : Likewise.
6198 * sysdeps/vax/bsd-_setjmp.S : Likewise.
6199 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
6201 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
6204 2002-12-31 Ulrich Drepper <drepper@redhat.com>
6206 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
6207 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
6208 * sysdeps/mach/hurd/fork.c: Likewise.
6209 * sysdeps/unix/sysv/aix/fork.c: Likewise.
6210 * sysdeps/unix/fork.S: Add __GI___fork alias.
6211 * sysdeps/unix/arm/fork.S: Likewise.
6212 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
6213 * sysdeps/unix/i386/fork.S: Likewise.
6214 * sysdeps/unix/mips/fork.S: Likewise.
6215 * sysdeps/unix/sparc/fork.S: Likewise.
6216 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6217 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
6218 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6219 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
6220 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
6221 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
6222 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
6223 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
6224 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
6225 * sysdeps/unix/sparc/vfork.S: Likewise.
6226 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
6227 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
6228 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
6229 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
6230 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
6231 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
6232 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
6233 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
6235 * include/time.h: Add libc_hidden_proto for __nanosleep.
6236 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
6237 * sysdeps/mach/nanosleep.c: Likewise.
6238 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
6239 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
6241 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
6242 _IO_list_unlock, and _IO_list_resetlock.
6243 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
6244 _IO_list_unlock, and _IO_list_resetlock.
6246 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
6247 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
6248 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
6249 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
6251 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
6252 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
6253 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
6254 __GI___longjmp alias.
6256 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
6257 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
6258 * sysdeps/arm/bsd-_setjmp.S: Likewise.
6259 * sysdeps/generic/bsd-_setjmp.c: Likewise.
6260 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
6261 * sysdeps/i386/bsd-_setjmp.S: Likewise.
6262 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
6263 * sysdeps/mips/bsd-_setjmp.S: Likewise.
6264 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
6265 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
6266 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
6267 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
6268 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
6269 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
6270 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
6271 * sysdeps/sh/bsd-_setjmp.S: Likewise.
6272 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
6273 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
6274 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
6275 * sysdeps/vax/bsd-_setjmp.S: Likewise.
6276 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
6278 2002-12-30 Ulrich Drepper <drepper@redhat.com>
6280 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
6282 2002-12-30 Roland McGrath <roland@redhat.com>
6284 * Rules (generated): Target removed.
6285 * mach/Makefile (generated): Define it here instead.
6287 * math/Makefile (generated): Add m_*l and m_*f variants too.
6289 2002-12-30 Ulrich Drepper <drepper@redhat.com>
6291 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
6292 the to-be-deleted objects right away instead of later separately.
6293 The latter fails because the scope data structures of the DSO
6294 might already be gone.
6296 * elf/Makefile: Add rules to build and run reldep8 test.
6297 * elf/reldep8.c: New file.
6298 * elf/reldep8mod1.c: New file.
6299 * elf/reldep8mod2.c: New file.
6300 * elf/reldep8mod3.c: New file.
6301 Contributed by Jakub Jelinek.
6303 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
6305 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
6306 checking of return value ENOSYS from getdents64.
6308 2002-12-28 Andreas Schwab <schwab@suse.de>
6310 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
6311 ($(common-objpfx)s-%.d): Generalized from
6312 $(common-objpfx)s-proto.d rule.
6313 (common-generated): Add s-proto-cancel.d.
6314 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
6315 cancellable syscalls.
6316 * sysdeps/unix/s-proto-cancel.S: New file.
6318 2002-12-29 Roland McGrath <roland@redhat.com>
6320 * resolv/res_libc.c: Move _res defn magic after res_init defn
6321 so _res macro is in effect for that code.
6323 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
6324 pattern for prepending $(..) so it doesn't affect $(foo).
6326 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
6328 2002-12-29 Jakub Jelinek <jakub@redhat.com>
6330 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
6333 2002-12-28 Ulrich Drepper <drepper@redhat.com>
6335 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
6337 2002-12-28 Andreas Jaeger <aj@suse.de>
6339 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
6341 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
6343 2002-12-27 Jakub Jelinek <jakub@redhat.com>
6345 * inet/herrno.c (__h_errno_location): Remove.
6346 * inet/Makefile (routines): Add herrno-loc.
6347 * resolv/res_libc.c (__res_state): Remove.
6348 * resolv/Makefile (routines): Add res-state.
6349 * sysdeps/generic/herrno-loc.c: New file.
6350 * sysdeps/generic/res-state.c: New file.
6352 2002-12-27 Jakub Jelinek <jakub@redhat.com>
6354 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
6355 Only define if USE_DL_SYSINFO is defined.
6357 2002-12-22 Jakub Jelinek <jakub@redhat.com>
6359 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
6360 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
6361 Define. Patch by Richard Henderson and Jes Sorensen.
6362 (PSEUDO): Remove unnecessary ;;.
6363 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
6364 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
6365 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
6366 if not initializing thread pointer.
6367 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
6368 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
6369 make it weak also if NONTLS_INIT_TP.
6370 * sysdeps/unix/common/pause.c: Handle cancellation.
6371 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
6372 (LOADSYSCALL): Remove.
6373 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
6374 (SYSCALL_ERROR_HANDLER): Use it.
6375 (PSEUDO): Don't jump around error handler.
6376 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
6377 jump around error handler.
6378 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
6379 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
6380 to __syscall_error_handler on failure.
6381 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
6382 (LOADSYSCALL): Remove.
6383 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
6384 (SYSCALL_ERROR_HANDLER): Use it.
6385 (PSEUDO): Don't jump around error handler.
6386 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
6387 jump around error handler.
6388 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
6389 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
6390 to __syscall_error_handler on failure.
6392 2002-12-27 Roland McGrath <roland@redhat.com>
6394 * scripts/gen-as-const.awk: New file.
6395 * Makefile (distribute): Add it.
6396 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
6397 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
6399 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
6401 2002-12-27 Andreas Schwab <schwab@suse.de>
6403 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
6405 2002-12-27 Jakub Jelinek <jakub@redhat.com>
6407 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
6410 2002-12-27 Andreas Schwab <schwab@suse.de>
6412 * Makerules ($(common-objpfx)%.make): Filter through
6413 $(sed-remove-objpfx).
6415 2002-12-23 Roland McGrath <roland@redhat.com>
6417 * scripts/abilist.awk: Produce a more compact format, divided into
6418 stanzas for each version set, the set name listed only once.
6419 * scripts/extract-abilist.awk: New file.
6420 * scripts/merge-abilist.awk: New file.
6421 * Makerules (check-abi-%, update-abi-%): New pattern rules.
6422 (update-abi, check-abi): New targets.
6423 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
6425 2002-12-19 Roland McGrath <roland@redhat.com>
6427 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
6429 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
6432 2002-12-21 Andreas Schwab <schwab@suse.de>
6434 * elf/check-textrel.c (handle_file): Swap p_type.
6436 2002-12-21 Andreas Schwab <schwab@suse.de>
6438 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
6439 (INLINE_SYSCALL): Use it.
6440 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
6441 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
6443 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
6444 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
6446 2002-12-20 Art Haas <ahaas@airmail.net>
6448 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
6451 2002-12-21 Philip Blundell <philb@gnu.org>
6453 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
6454 top as seventh arg to __libc_start_main.
6455 Reported by paulnash@wildseed.com.
6457 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
6459 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
6460 compatibility cruft when new enough kernel is assumed.
6462 2002-12-20 Jakub Jelinek <jakub@redhat.com>
6464 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
6465 instead of INLINE_SYSCALL.
6467 2002-12-20 Ulrich Drepper <drepper@redhat.com>
6469 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
6472 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
6473 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6474 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
6475 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6476 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6477 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6478 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6479 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6480 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6481 Patch by William Lee Irwin <wli@holomorphy.com>.
6483 2002-12-20 Andreas Schwab <schwab@suse.de>
6485 * locale/programs/ld-measurement.c (measurement_output): Fix
6488 2002-12-20 Ulrich Drepper <drepper@redhat.com>
6490 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
6491 Redefine _IO_flockifle and _IO_funlockfile as inlines.
6493 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
6494 builds add "tls" in the search path.
6495 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
6496 (path_hwcap): Recognize "tls".
6498 2002-12-19 Ulrich Drepper <drepper@redhat.com>
6500 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
6501 __waitpid instead of waitpid.
6503 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
6505 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
6506 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
6507 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
6509 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
6510 information for system calls.
6512 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
6515 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
6517 2002-12-19 Roland McGrath <roland@redhat.com>
6519 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
6520 * iconvdata/ibm922.h: Likewise.
6521 * iconvdata/ibm930.h: Likewise.
6522 * iconvdata/ibm932.h: Likewise.
6523 * iconvdata/ibm933.h: Likewise.
6524 * iconvdata/ibm935.h: Likewise.
6525 * iconvdata/ibm937.h: Likewise.
6526 * iconvdata/ibm939.h: Likewise.
6527 * iconvdata/ibm943.h: Likewise.
6528 * iconvdata/isiri-3342.h: Likewise.
6530 2002-12-19 Ulrich Drepper <drepper@redhat.com>
6532 * test-skeleton.c (main): Make sure correct value is seen as
6533 argv[0] after adjustment of argv, and argc.
6535 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
6536 RTLD_CORRECT_DYNAMIC_WEAK is defined.
6538 2002-12-19 Jakub Jelinek <jakub@redhat.com>
6540 * nscd/connections.c (nscd_run): Shut up warning.
6541 * tst-ungetc.c (assert): Undefined before redefining.
6543 2002-12-19 Ulrich Drepper <drepper@redhat.com>
6545 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
6548 2002-12-17 Art Haas <ahaas@airmail.net>
6550 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
6551 * iconvdata/cp775.h: Likewise.
6552 * iconvdata/ibm1046.h: Likewise.
6553 * iconvdata/ibm1124.h: Likewise.
6554 * iconvdata/ibm1129.h: Likewise.
6555 * iconvdata/ibm1132.h: Likewise.
6556 * iconvdata/ibm1133.h: Likewise.
6557 * iconvdata/ibm1160.h: Likewise.
6558 * iconvdata/ibm1161.h: Likewise.
6559 * iconvdata/ibm1162.h: Likewise.
6560 * iconvdata/ibm1163.h: Likewise.
6561 * iconvdata/ibm1164.h: Likewise.
6563 2002-12-19 Ulrich Drepper <drepper@redhat.com>
6565 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
6566 __ASSUME_CLONE_THREAD_FLAGS is defined.
6567 * sysdeps/unix/sysv/linux/kernel-features.h
6568 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
6570 2002-12-18 Ulrich Drepper <drepper@redhat.com>
6572 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
6574 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6576 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
6578 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
6580 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
6582 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
6584 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
6585 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
6586 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
6589 2002-12-18 Jakub Jelinek <jakub@redhat.com>
6591 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
6593 [libc: GLIBC_PRIVATE]: ...here.
6594 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
6596 [libc: GLIBC_PRIVATE]: ...here.
6598 2002-12-18 Ulrich Drepper <drepper@redhat.com>
6600 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
6601 Use it instead of directly int $0x80.
6602 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
6603 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
6604 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
6605 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6606 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
6607 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
6609 2002-12-17 Ulrich Drepper <drepper@redhat.com>
6611 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
6613 * elf/elf.h (AT_SYSINFO): New define.
6614 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
6617 2002-12-17 Jakub Jelinek <jakub@redhat.com>
6619 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
6621 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
6623 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
6625 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
6627 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
6629 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
6631 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
6632 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
6633 available, otherwise __libc_maybe_call.
6634 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
6635 cancellation handling.
6636 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
6638 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
6640 * posix/regcomp.c (free_workarea_compile): Free the new member
6642 (analyze): Initialize ORG_INDICES.
6643 (duplicate_node_closure): Search for a existing node, which is
6644 duplicated from the node ORG_DEST and satisfies the constraint
6645 CONSTRAINT. And use it to avoid inifimite loop.
6646 (search_duplicated_node): New function.
6647 (duplicate_node): Store the index of the original node.
6648 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
6650 * posix/regex_internal.h (re_dfa_t): Add new members.
6652 2002-12-17 Ulrich Drepper <drepper@redhat.com>
6654 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
6656 2002-12-16 Ulrich Drepper <drepper@redhat.com>
6658 * sysdeps/posix/system.c (do_system): Add support for installation
6659 of cancellation handlers.
6660 * sysdeps/unix/sysv/linux/i386/system.c: New file.
6662 * stdlib/Makefile (tests): Add tst-system.
6663 * stdlib/tst-system.c: New file.
6665 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
6666 CENABLE]: Don't lose content of %ebx.
6668 2002-12-17 Jakub Jelinek <jakub@redhat.com>
6670 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
6671 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
6673 2002-12-16 Ulrich Drepper <drepper@redhat.com>
6675 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
6676 fails to return a function pointer don't use it.
6678 2002-12-16 Art Haas <ahaas@airmail.net>
6680 * io/ftw.c: Convert GCC extension initializer syntax to C99.
6681 * iconvdata/iso-ir-165.c: Likewise.
6682 * iconvdata/jis0208.c: Likewise.
6683 * iconvdata/jis0212.c: Likewise.
6685 2002-12-16 Ulrich Drepper <drepper@redhat.com>
6687 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
6688 epoll_ctl, and epoll_wait.
6689 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
6690 epoll_create, epoll_ctl, and epoll_wait.
6691 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
6692 Davide Libenzi <davidel@xmailserver.org>.
6693 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
6694 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6697 2002-12-16 Art Haas <ahaas@airmail.net>
6699 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
6701 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
6702 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
6703 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
6705 2002-12-16 Ulrich Drepper <drepper@redhat.com>
6707 * stdio-common/Makefile (routines): Remove lockfile. Add
6708 flockfile, ftrylockfile, and funlockfile.
6709 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
6710 * sysdeps/generic/flockfile.c: New file.
6711 * sysdeps/generic/ftrylockfile.c: New file.
6712 * sysdeps/generic/funlockfile.c: New file.
6714 2002-12-16 Jakub Jelinek <jakub@redhat.com>
6716 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
6717 macros instead of doing the calls directly.
6718 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
6719 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
6722 2002-12-16 Jakub Jelinek <jakub@redhat.com>
6724 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
6725 * sysdeps/ieee754/bits/nan.h: Likewise.
6727 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
6728 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
6730 2002-12-16 Roland McGrath <roland@redhat.com>
6732 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
6733 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
6734 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
6736 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
6737 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
6739 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
6740 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
6741 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
6742 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
6743 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
6744 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
6745 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
6746 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
6748 2002-12-13 Paul Eggert <eggert@twinsun.com>
6750 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
6751 is now u_int, not int.
6752 (struct XDR.x_handy): Now u_int, not int.
6753 * sunrpc/xdr_mem.c: Include <limits.h>.
6754 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
6755 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
6756 x_handy is now unsigned, not signed.
6757 Do not decrement x_handy if no change is made.
6758 (xdrmem_setpos): Check for int overflow.
6759 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
6760 (xdr_sizeof): Remove cast that is now unnecessary, now that
6761 x_handy is unsigned.
6763 2002-12-15 Art Haas <ahaas@airmail.net>
6765 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
6766 * iconvdata/gap.awk: Likewise.
6767 * iconvdata/gen-8bit-gap-1.sh: Likewise.
6768 * iconvdata/gen-8bit-gap.sh: Likewise.
6769 * locale/C-address.c: Likewise.
6770 * locale/C-collate.c: Likewise.
6771 * locale/C-ctype.c: Likewise.
6772 * locale/C-identification.c: Likewise.
6773 * locale/C-measurement.c: Likewise.
6774 * locale/C-messages.c: Likewise.
6775 * locale/C-monetary.c: Likewise.
6776 * locale/C-name.c: Likewise.
6777 * locale/C-numeric.c: Likewise.
6778 * locale/C-paper.c: Likewise.
6779 * locale/C-telephone.c: Likewise.
6780 * locale/C-time.c: Likewise.
6781 * nscd/connections.c: Likewise.
6782 * nscd/grpcache.c: Likewise.
6783 * nscd/hstcache.c: Likewise.
6784 * nscd/pwdcache.c: Likewise.
6785 * stdio-common/vfprintf.c: Likewise.
6786 * stdlib/random.c: Likewise.
6787 * sysdeps/generic/siglist.c: Likewise.
6788 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6789 * sysdeps/ieee754/bits/nan.h: Likewise.
6790 * sysdeps/posix/sprofil.c: Likewise.
6791 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
6792 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
6793 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
6795 2002-12-15 Roland McGrath <roland@redhat.com>
6797 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
6799 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
6800 <tls.h> here, no need for it.
6801 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
6803 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
6804 parameter, not varargs parameter.
6806 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
6807 argument so it's not an unused variable.
6809 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
6810 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
6813 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
6815 2002-12-15 Ulrich Drepper <drepper@redhat.com>
6817 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
6818 original __libc_fcntl code. Just renamed.
6820 2002-12-15 Andreas Schwab <schwab@suse.de>
6822 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
6824 2002-12-14 Olaf Hering <olh@suse.de>
6826 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
6827 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
6829 2002-12-15 Ulrich Drepper <drepper@redhat.com>
6831 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
6833 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
6834 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
6836 * sysdeps/unix/sysv/linux/open64.c: New file.
6838 * sysdeps/generic/pselect.c: Add support for cancellation handling.
6839 * sysdeps/posix/open64.c: Likewise.
6840 * sysdeps/posix/sigpause.c: Likewise.
6841 * sysdeps/posix/sigwait.c: Likewise.
6842 * sysdeps/posix/system.c: Likewise.
6843 * sysdeps/posix/waitid.c: Likewise.
6844 * sysdeps/unix/sysv/linux/accept.S: Likewise.
6845 * sysdeps/unix/sysv/linux/connect.S: Likewise.
6846 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
6847 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
6848 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
6849 * sysdeps/unix/sysv/linux/poll.c: Likewise.
6850 * sysdeps/unix/sysv/linux/pread.c: Likewise.
6851 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
6852 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
6853 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
6854 * sysdeps/unix/sysv/linux/readv.c: Likewise.
6855 * sysdeps/unix/sysv/linux/recv.S: Likewise.
6856 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
6857 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
6858 * sysdeps/unix/sysv/linux/send.S: Likewise.
6859 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
6860 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
6861 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
6862 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
6863 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
6864 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
6865 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
6866 * sysdeps/unix/sysv/linux/wait.c: Likewise.
6867 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
6868 * sysdeps/unix/sysv/linux/writev.c: Likewise.
6869 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6870 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
6872 2002-12-14 Jakub Jelinek <jakub@redhat.com>
6874 * sysdeps/generic/sysdep-cancel.h: New file.
6875 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
6877 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
6878 recvmsg, send, sendmsg, sendto): Make cancelable.
6879 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
6880 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
6881 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6882 sendto, osf_select): Likewise.
6883 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
6884 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
6885 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
6886 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6888 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
6889 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
6890 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
6891 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6893 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
6894 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6895 sendto, select): Likewise.
6896 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
6897 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
6899 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
6900 select, fcntl): Likewise.
6901 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
6902 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
6903 read, readv, select, sigsuspend, write, writev): Likewise.
6905 2002-12-14 Jakub Jelinek <jakub@redhat.com>
6907 * dirent/bug-readdir1.c: Include unistd.h.
6909 2002-12-13 Jakub Jelinek <jakub@redhat.com>
6911 * locale/programs/locale.c: Include locarchive.h.
6912 (ARCHIVE_NAME): Define.
6913 (write_archive_locales): New function.
6914 (write_locales): Use it. Ensure the same locale is not printed
6915 multiple times in verbose mode.
6916 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
6917 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
6919 (struct nameent): New type.
6920 (nameentcmp): New function.
6922 2002-12-14 Jakub Jelinek <jakub@redhat.com>
6924 * posix/regex_internal.c (re_string_context_at): Guard wide char
6925 code with #ifdef RE_ENABLE_I18N.
6927 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
6929 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
6931 2002-12-13 Roland McGrath <roland@redhat.com>
6933 * posix/bug-regex15.c: New file.
6934 * posix/Makefile (tests): Add it.
6936 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
6937 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
6939 2002-12-13 Ulrich Drepper <drepper@redhat.com>
6941 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
6943 * misc/syslog.c (log_cleanup): Don't use parameter in
6944 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
6945 pass NULL instead of a pointer to syslog_lock.
6947 2002-12-12 Ulrich Drepper <drepper@redhat.com>
6949 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
6950 linker map for all iconv modules.
6951 (distribute): Add gconv.map.
6952 * iconvdata/gconv.map: New file.
6954 * elf/Makefile: Also check all iconv modules for text relocations.
6956 * stdlib/Makefile: Remove code to automatically import GMP.
6958 * elf/Makefile (tests): Add rules to build and run check-textrel.
6959 * elf/check-textrel.c: New file.
6961 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
6964 2002-12-11 Jakub Jelinek <jakub@redhat.com>
6966 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
6969 2002-04-30 Bruno Haible <bruno@clisp.org>
6971 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
6972 the encoding if it already has slashes.
6973 Reported by Perry Rapp <prapp@erols.com>.
6975 2002-12-11 Roland McGrath <roland@redhat.com>
6977 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
6978 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
6979 Turn off PIC for compiling this file.
6981 2002-12-11 Ulrich Drepper <drepper@redhat.com>
6983 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
6984 definitions. Not needed.
6985 [_LIBC]: Use definitions from libc-lock.h instead of referencing
6986 pthread routines directly.
6987 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
6989 (arena_get2): Don't look at return value of mutex_lock.
6991 2002-12-11 Roland McGrath <roland@redhat.com>
6993 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
6994 elf-init.o instead of compiling a PIC version.
6996 2002-12-11 Bruno Haible <bruno@clisp.org>
6998 * intl/gettext.h: Renamed to ...
6999 * intl/gmo.h: ... here.
7000 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
7001 * intl/gettextP.h: Update.
7002 * intl/loadmsgcat.c: Update.
7004 * intl/gettextP.h (PARAMS): Make more portable.
7005 (attribute_hidden): Define as empty macro if not already defined.
7006 * intl/hash-string.h (PARAMS): Make more portable.
7007 * intl/loadinfo.h (PARAMS): Likewise.
7008 * intl/plural-exp.h (PARAMS): Likewise.
7009 (attribute_hidden): Move definition near the definition of
7012 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
7013 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
7015 2002-07-13 Bruno Haible <bruno@clisp.org>
7017 * intl/dcigettext.c (freea): New macro.
7018 (FREE_BLOCKS): Free also the registered blocks.
7019 (DCIGETTEXT): Free the 'search' variable.
7020 Reported by Andreas Fischer <a.fischer@asentics.de>.
7022 2002-04-27 Bruno Haible <bruno@clisp.org>
7024 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
7025 * intl/dcigettext.c: Likewise.
7026 * intl/dcgettext.c: Likewise.
7027 * intl/dgettext.c: Likewise.
7028 * intl/gettext.c: Likewise.
7029 * intl/dcngettext.c: Likewise.
7030 * intl/dngettext.c: Likewise.
7031 * intl/ngettext.c: Likewise.
7032 * intl/textdomain.c: Likewise.
7033 * intl/bindtextdom.c: Likewise.
7034 * intl/plural-exp.h: Likewise.
7036 2002-01-02 Bruno Haible <bruno@clisp.org>
7038 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
7040 2001-04-30 Bruno Haible <bruno@clisp.org>
7042 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
7043 default macro definitions. Needed for mingw32.
7045 2002-12-10 Ulrich Drepper <drepper@redhat.com>
7047 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
7048 __builtin_constant_p to macro parameter.
7050 * sysdeps/generic/sigpause.c: Define all functions as weak.
7051 * sysdeps/posix/sigpause.c: Likewise.
7053 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
7056 2002-12-10 Jakub Jelinek <jakub@redhat.com>
7058 * elf/tst-array1.c (preinit_array, init_array, fini_array):
7059 Explicitly align the array to sizeof (void *).
7060 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
7062 * include/libc-symbols.h: Fix a comment typo.
7064 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
7065 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
7067 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
7069 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
7070 (__libc_sigsuspend): Likewise.
7071 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
7072 (__libc_sigsuspend): Likewise.
7073 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
7074 (creat): New weak alias.
7076 2002-12-10 Roland McGrath <roland@redhat.com>
7078 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
7079 contributes a manual chapter.
7080 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
7083 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
7084 and move contents to ...
7085 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
7086 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
7087 it instead of duplicating its contents.
7088 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
7090 2002-12-09 Jakub Jelinek <jakub@redhat.com>
7092 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
7094 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
7096 (EXTRA_LD_ENVVARS): Use it.
7097 (DL_OSVERSION_INIT): Define.
7098 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
7100 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
7102 2002-12-10 Ulrich Drepper <drepper@redhat.com>
7104 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
7106 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
7107 call. It is not allowed to destroy pthread mutexes which are
7108 still in use even though it is safe for our implementations. If
7109 somebody still uses the descriptor it is a bug.
7111 2002-12-09 Richard Henderson <rth@redhat.com>
7113 * csu/abi-note.S: Use .p2align, not .align.
7115 2002-12-09 Ulrich Drepper <drepper@redhat.com>
7117 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
7118 __libc_select aliases.
7120 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
7123 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
7125 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
7127 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
7129 * sysdeps/unix/syscalls.list: Define __libc_select alias.
7131 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
7133 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
7134 __libc___xpg_sigpause aliases.
7136 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
7138 * misc/error.c: Remove use of USE_IN_LIBIO.
7140 2002-12-08 Roland McGrath <roland@redhat.com>
7142 * elf/Makefile (tests): Uncomment tst-array[123].
7143 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
7144 * csu/elf-init.c: New file.
7145 * csu/Makefile (routines, static-only-routines): Add elf-init.
7146 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
7147 and __libc_csu_fini in place of _fini.
7148 * sysdeps/arm/elf/start.S: Likewise.
7149 * sysdeps/cris/elf/start.S: Likewise.
7150 * sysdeps/hppa/elf/start.S: Likewise.
7151 * sysdeps/i386/elf/start.S: Likewise.
7152 * sysdeps/ia64/elf/start.S: Likewise.
7153 * sysdeps/m68k/elf/start.S: Likewise.
7154 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
7155 * sysdeps/mips/elf/start.S: Likewise.
7156 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
7157 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
7158 * sysdeps/s390/s390-32/elf/start.S: Likewise.
7159 * sysdeps/s390/s390-64/elf/start.S: Likewise.
7160 * sysdeps/sh/elf/start.S: Likewise.
7161 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
7162 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7163 * sysdeps/x86_64/elf/start.S: Likewise.
7165 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
7166 struct containing function ptr and value, free it.
7167 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
7168 It's not safe to let the new thread use the SIGEV pointer.
7170 2001-10-20 Paul Eggert <eggert@twinsun.com>
7172 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
7173 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
7174 Use strerror_r that is only a macro, even if it is not a function.
7175 (strerror): Check for HAVE_DECL_STRERROR before declaring.
7176 (private_strerror): Use prototypes, not old-style function definition.
7177 (print_errno_message): New function.
7178 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
7180 (error_tail, error, error_at_line): Use it.
7182 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
7184 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
7186 2002-12-08 Ulrich Drepper <drepper@redhat.com>
7188 * scripts/output-format.sed: Fix bug in one of the s expressions
7189 which used / for one too many things.
7191 * include/unistd.h: Declare __libc_close.
7193 2002-12-07 Ulrich Drepper <drepper@redhat.com>
7195 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
7197 2002-12-07 Roland McGrath <roland@redhat.com>
7199 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
7200 from 2002-12-06, but remove unnecessary memset call without removing
7201 necessary copy of initialization image.
7203 * Makerules ($(common-objpfx)format.lds): New target.
7204 (common-generated): Add it.
7205 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
7206 * scripts/output-format.sed: New file.
7207 * Makefile (distribute): Add it.
7209 2002-12-07 Ulrich Drepper <drepper@redhat.com>
7211 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
7212 Reported by Art Haas <ahaas@airmail.net>.
7214 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
7216 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
7218 2002-12-07 Jakub Jelinek <jakub@redhat.com>
7220 * string/test-strncpy.c (do_random_tests): Improve test coverage.
7222 2002-12-06 Ulrich Drepper <drepper@redhat.com>
7224 * test-skeleton.c (timeout_handler): Allow expected signal to be
7227 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
7229 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
7231 2002-12-07 Jakub Jelinek <jakub@redhat.com>
7233 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
7234 (SYSCALL_ERROR_HANDLER): Fix a pasto.
7235 Reported by Jeff Bailey <jbailey@nisa.net>.
7237 2002-12-06 Ulrich Drepper <drepper@redhat.com>
7239 * sysdeps/generic/libc-tls.c: Undo last patch.
7241 * include/wctype.h: Define iswalnum with libc_hidden_proto.
7243 * include/signal.h: Define raise with libc_hidden_proto.
7245 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
7246 __execve instead of snprintf and execve.
7248 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
7251 2002-12-06 Jakub Jelinek <jakub@redhat.com>
7253 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
7254 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
7256 2002-12-06 Ulrich Drepper <drepper@redhat.com>
7258 * misc/syslog.c (log_cleanup): New function.
7259 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
7260 (closelog): Likewise.
7262 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
7263 * elf/dl-iteratephdr.c: Likewise.
7264 * elf/dl-lookup.c: Likewise.
7265 * elf/dl-misc.c: Likewise.
7266 * elf/dl-open.c: Likewise.
7267 * elf/dl-support.c: Likewise.
7268 * elf/rtld.c: Likewise.
7269 * sysdeps/generic/ldsodefs.h: Likewise.
7270 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
7271 * sysdeps/mach/bits/libc-lock.h: Likewise.
7272 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7274 2002-12-06 Roland McGrath <roland@redhat.com>
7276 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
7278 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
7279 (malloc_starter, memalign_starter, free_starter): Don't define these.
7280 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
7281 Don't declare them either.
7282 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
7283 __pthread_initialize, so no need to set hooks to *_starter.
7284 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
7285 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
7286 (__libc_malloc_pthread_startup): New function.
7287 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
7289 * malloc/hooks.c (memalign_starter): New function.
7290 * malloc/malloc.c: Declare it.
7291 * malloc/arena.c (save_memalign_hook): New variable.
7292 (ptmalloc_init): Set __memalign_hook to memalign_starter.
7294 * elf/dl-minimal.c (free): Clear the memory.
7295 (calloc): Just call malloc, knowing all memory it returns is cleared.
7297 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
7298 malloc and memset; calloc can avoid the zeroing when redundant.
7299 (_dl_tls_setup): Likewise.
7300 * elf/dl-load.c (decompose_rpath): Likewise.
7301 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
7302 call, since memory from sbrk at startup is already zero.
7304 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
7305 error string for failure, null for success. Update callers.
7306 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
7307 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
7309 2002-12-05 Jakub Jelinek <jakub@redhat.com>
7311 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
7313 (readahead): Change args to i:iii.
7314 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
7315 Change args to i:iii.
7316 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
7319 2002-12-05 Roland McGrath <roland@redhat.com>
7321 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
7322 call all functions rather than none.
7323 Reported by Mark P. Mitchell <mark@codesourcery.com>.
7325 2002-12-04 Roland McGrath <roland@redhat.com>
7327 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
7328 on _nl_current_LC_* variables.
7330 2002-12-05 Ulrich Drepper <drepper@redhat.com>
7332 * dirent/bug-readdir1.c (main): Don't call closedir, just close
7333 the file descriptor. This is testing what the bug report was about.
7335 2002-12-04 Ulrich Drepper <drepper@redhat.com>
7337 * po/be.po: New file.
7339 * argp/Makefile (tests): Add tst-argp1.
7341 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
7342 Change type of _attribute to void*.
7343 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
7344 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
7345 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
7346 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7347 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7349 2002-12-04 Roland McGrath <roland@redhat.com>
7351 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
7352 members to the end, so a libpthread compiled with !USE_TLS will still
7353 find other members properly.
7355 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
7356 operand for DEST memory. Fix dummy input operand to use SRC.
7357 Reported by Davin McCall <davmac@ozonline.com.au>.
7359 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
7360 alignment when initializing the DTV entry.
7362 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
7363 when TLS has not been set up, try to set it up if we can.
7364 * elf/tst-tls4.c: Revert last change.
7365 * elf/tst-tls5.c: Likewise.
7366 * elf/tst-tls6.c: Likewise.
7367 * elf/tst-tls7.c: Likewise.
7368 * elf/tst-tls8.c: Likewise.
7369 * elf/tst-tls9.c: Likewise.
7371 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
7372 * sysdeps/generic/ldsodefs.h: Declare it.
7373 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
7374 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
7375 function, broken out of __libc_setup_tls.
7376 (init_static_tls): Likewise.
7377 (__libc_setup_tls): Call them.
7378 (_dl_tls_setup): New function, uses new subroutines.
7380 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
7381 Clear the pointer when returning true.
7382 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
7383 first element of the slotinfo list too.
7385 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
7388 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
7389 (_dl_determine_tlsoffset): Likewise.
7391 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
7392 startup_error_tsd, made global.
7393 (dl_main): Update initialization.
7394 * elf/dl-tsd.c: Likewise.
7395 * sysdeps/generic/ldsodefs.h: Declare it.
7397 2002-12-03 Ulrich Drepper <drepper@redhat.com>
7399 * manual/texinfo.tex: Update from latest upstream version.
7401 2002-12-03 Roland McGrath <roland@redhat.com>
7403 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
7404 area surplus in calculation for sbrk call.
7406 * iconvdata/cp1125.c: New file.
7407 * iconvdata/Makefile (distribute): Add it.
7408 (modules): Add CP1125.
7409 (gen-8bit-gap-modules): Add cp1125.
7410 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
7411 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
7413 2002-12-03 Andreas Jaeger <aj@suse.de>
7415 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7417 2002-12-03 Ulrich Drepper <drepper@redhat.com>
7419 * sysdeps/posix/system.c (do_system): Make signal handler
7420 installation thread safe.
7422 2002-12-02 Roland McGrath <roland@redhat.com>
7424 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
7425 caller from EXTRA to -.
7426 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7427 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7428 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7430 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
7432 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
7433 bits of RM are cleared.
7435 2002-12-02 Roland McGrath <roland@redhat.com>
7437 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
7438 TLS setup is required.
7439 * elf/tst-tls5.c: Likewise.
7440 * elf/tst-tls6.c: Likewise.
7441 * elf/tst-tls7.c: Likewise.
7442 * elf/tst-tls8.c: Likewise.
7443 * elf/tst-tls9.c: Likewise.
7445 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
7446 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
7447 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
7448 for being null before calling free_slotinfo.
7449 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
7450 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
7452 2002-11-30 Bruno Haible <bruno@clisp.org>
7454 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
7455 (struct __gconv_step): New field __btowc_fct.
7456 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
7457 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
7459 (__gconv_btwoc_ascii): New declaration.
7460 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
7461 (__gconv_btwoc_ascii): New function.
7462 * iconv/gconv_builtin.h: Add BtowcFct argument to all
7463 BUILTIN_TRANSFORMATION invocations.
7464 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
7465 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
7466 * iconv/gconv_builtin.c (map): New field btowc_fct.
7467 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
7469 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
7470 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
7471 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
7472 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
7473 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
7474 (gconv_init): Initialize __btowc_fct field.
7475 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
7476 * iconv/loop.c: Document ONEBYTE_BODY.
7477 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
7478 Undefine ONEBYTE_BODY at the end.
7479 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
7480 * iconvdata/8bit-gap.c (NONNUL): New macro.
7481 (BODY for FROM_LOOP): Use it.
7482 (ONEBYTE_BODY): New macro.
7483 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
7484 (NONNUL): New macro.
7485 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
7486 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
7487 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
7488 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
7489 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
7490 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
7491 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
7492 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
7493 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
7494 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
7495 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
7496 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
7497 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
7498 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
7499 * iconvdata/ibm932.c: Include <stdbool.h>.
7500 (TRUE, FALSE): Remove macros.
7501 (BODY for FROM_LOOP): Remove unused variable rp1.
7502 (ONEBYTE_BODY): New macro.
7503 (BODY for TO_LOOP): Use bool.
7504 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
7505 * iconvdata/ibm943.c: Include <stdbool.h>.
7506 (TRUE, FALSE): Remove macros.
7507 (BODY for FROM_LOOP): Remove unused variable rp1.
7508 (ONEBYTE_BODY): New macro.
7509 (BODY for TO_LOOP): Use bool.
7510 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
7511 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
7512 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
7513 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
7514 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
7515 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
7516 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
7517 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
7518 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
7519 * iconvdata/gbbig5.c: Tweak comment.
7521 2002-12-02 Ulrich Drepper <drepper@redhat.com>
7523 * po/fi.po: Update from translation team.
7525 2002-12-01 Roland McGrath <roland@redhat.com>
7527 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
7528 testing getdents64 return value.
7530 * scripts/versions.awk: Don't pass -n flag to sort command.
7532 * posix/bug-regex13.c: Include <string.h>.
7534 * sysdeps/generic/libc-start.c (__libc_start_main): Do
7535 DL_SYSDEP_OSCHECK here.
7536 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
7537 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
7539 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
7540 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
7542 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
7543 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
7545 * include/link.h: Comment typo fix.
7547 2002-12-01 Roland McGrath <roland@frob.com>
7549 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
7550 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
7551 _POSIX_MEMORY_PROTECTION): Likewise.
7552 (_POSIX_POLL, _POSIX_SELECT): Removed.
7554 2002-11-28 Ulrich Drepper <drepper@redhat.com>
7556 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
7557 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
7559 2002-11-28 Jakub Jelinek <jakub@redhat.com>
7561 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
7563 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
7566 2002-11-28 Ulrich Drepper <drepper@redhat.com>
7568 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
7569 branch prediction buffers by using unpaired call/ret.
7571 2002-11-27 Ulrich Drepper <drepper@redhat.com>
7573 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
7574 first parameters constraint string.
7575 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
7577 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
7579 * posix/regcomp.c (parse_expression): Set the bit since the back
7580 reference is used in the regular expression.
7581 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
7583 (re_node_set_init_copy): Likewise.
7584 * posix/regex_internal.h (state_array_t): New structure.
7585 (re_sub_match_last_t): Likewise.
7586 (re_sub_match_top_t): Likewise.
7587 (re_match_context_t): Add new members.
7588 (re_dfa_t): Likewise.
7589 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
7590 to check the matching is really correct, and retry if failed.
7591 Move the routin pruning the impossible nodes from here, ...
7592 (prune_impossible_nodes): To this function.
7593 (check_matching): Invoke check_subexp_matching_top, and replace
7594 redundant checking with transit_state_bkref invocation.
7595 (proceed_next_node): Replace strncmp with memcmp. Reported by
7596 Paolo Bonzini <bonzini@gnu.org>.
7597 (update_cur_sifted_state): Remove search_subexp invocation.
7598 (search_subexp): Remove this function.
7599 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
7601 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
7602 Remove unused invocation of match_ctx_add_entry.
7603 (transit_state): Invoke check_subexp_matching_top.
7604 (check_subexp_matching_top): New function.
7605 (transit_state_bkref): Remove unused array.
7606 Merge transit_state_bkref_loop.
7607 (transit_state_bkref_loop): Use get_subexp instead of
7608 sift_states_backward. Use search_cur_bkref_entry for optimization.
7609 Merge this function to transit_state_bkref.
7610 (get_subexp): New function.
7611 (get_subexp_sub): Likewise.
7612 (find_subexp_node): Likewise.
7613 (check_arrival): Likewise.
7614 (check_arrival_expand_ecl): Likewise.
7615 (check_arrival_expand_ecl_sub): Likewise.
7616 (expand_bkref_cache): Likewise.
7617 (match_ctx_init): Initialize new members.
7618 (match_ctx_clean): New function.
7619 (match_ctx_free): Release new members.
7620 (match_ctx_free_subtops): New function.
7621 (match_ctx_add_entry): Fix indent.
7622 (search_cur_bkref_entry): New function.
7623 (match_ctx_add_subtop): Likewise.
7624 (match_ctx_add_sublast): Likewise.
7626 2002-11-25 Ulrich Drepper <drepper@redhat.com>
7628 * iconv/Makefile (tests): Remove tst-iconv4.c
7629 * iconv/tst-iconv4.c: Moved to...
7630 * iconvdata/tst-iconv4.c: ...here. New file.
7631 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
7633 2002-11-25 Roland McGrath <roland@redhat.com>
7635 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
7636 Grok AF_LINK if defined.
7637 From Momchil Velikov <velco@fadata.bg>.
7639 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
7640 brdaddr, or dstaddr, just set those pointers to null and don't fail.
7641 Reported by Momchil Velikov <velco@fadata.bg>.
7643 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
7644 is > sizeof IFR->ifa_addr, advance past the whole longer length.
7645 (__ifreq): Count up NIFS that way too.
7646 Reported by Momchil Velikov <velco@fadata.bg>.
7648 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
7650 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
7651 and <fpu_control.h>.
7653 2002-11-24 Ulrich Drepper <drepper@redhat.com>
7655 * elf/elf.h (EM_ST19): Fix typo.
7657 2002-11-25 Jakub Jelinek <jakub@redhat.com>
7659 * include/errno.h (__set_errno): Define as errno = val
7662 2002-11-24 Roland McGrath <roland@redhat.com>
7664 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
7665 * sysdeps/posix/writev.c: Likewise.
7666 From Momchil Velikov <velco@fadata.bg>.
7668 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
7669 calling *GL(dl_error_catch_tsd) for a thread-local location.
7670 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
7671 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
7672 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
7674 * libio/iofflush.c: Add libc_hidden_def.
7675 * libio/iofwrite.c: Likewise.
7676 * sysdeps/generic/sigtimedwait.c: Likewise.
7677 * sysdeps/generic/sigwaitinfo.c: Likewise.
7678 * sysdeps/posix/sigwait.c: Likewise.
7679 Reported by Momchil Velikov <velco@fadata.bg>.
7681 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
7682 to match <arpa/inet.h> declaration.
7683 * inet/inet_netof.c (inet_netof): Likewise.
7684 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
7685 Reported by Momchil Velikov <velco@fadata.bg>.
7687 * configure.in: Skip AUTOCONF check under --without-cvs.
7688 * configure: Regenerated.
7690 * posix/Makefile (headers): Add bits/pthreadtypes.h.
7691 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
7692 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
7694 2002-11-24 Andreas Schwab <schwab@suse.de>
7696 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
7699 2002-11-19 Jim Meyering <jim@meyering.net>
7701 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
7703 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
7705 2002-11-23 Roland McGrath <roland@redhat.com>
7707 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
7708 Just produce hex output for datum sizes.
7710 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
7711 Reported by Luca Barbieri <ldb@ldb.ods.org>.
7713 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
7715 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
7716 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
7717 and __unused3 fields.
7718 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
7719 [__WORDSIZE == 32]: Only PPC32 requires __unused1
7720 and __unused2 fields.
7721 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
7722 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
7723 __unused3, and __unused4 fields.
7725 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
7726 obtain lowest address for profiling in __monstartup call.
7728 2002-11-21 Roland McGrath <roland@redhat.com>
7730 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
7731 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
7733 * locale/localeinfo.h (struct locale_data): Revert last change.
7735 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
7736 From Ian Wienand <ianw@gelato.unsw.edu.au>.
7738 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
7739 __NR_pread64 if not defined.
7740 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
7741 From Ian Wienand <ianw@gelato.unsw.edu.au>.
7743 2002-11-21 Roland McGrath <roland@frob.com>
7745 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
7746 __libc_multiple_libcs here. Call __setfpucw.
7748 2002-11-21 Ulrich Drepper <drepper@redhat.com>
7750 * elf/Makefile (tests): Don't run test-arrayX tests for now.
7752 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
7753 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
7754 CLONE_CHILD_*TID flags.
7756 2002-11-20 Andreas Jaeger <aj@suse.de>
7758 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
7759 We pass struct ucontext on x86-64.
7761 (GET_FRAME): Adjust.
7762 (GET_STACK): Adjust.
7764 2002-11-20 Roland McGrath <roland@redhat.com>
7766 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
7767 conditionalize [! DO_VERSIONING] #error.
7769 * scripts/abilist.awk: Grok function descriptor symbols.
7771 * intl/tst-gettext.c (main): Check return values from setlocale.
7772 Add necessary unsetenv's to make LANG=existing-locale check work.
7774 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
7775 so aborted prior runs don't confuse things.
7777 * locale/localeinfo.h (struct locale_data: union locale_data_value):
7778 Use uintptr_t instead of unsigned int for `word' member.
7779 (_NL_CURRENT_WORD): Cast to uint32_t.
7781 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
7784 2002-11-20 Ulrich Drepper <drepper@redhat.com>
7786 * elf/tls-macros.h: Add IA-64 definitions.
7787 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
7789 * iconv/Makefile (tests): Add tst-iconv4.
7790 * iconv/tst-iconv4.c: New file.
7792 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
7793 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
7794 __GCONV_INCOMPLETE_INPUT.
7795 (ucs4le_internal_loop): Likewise.
7796 (ucs4le_internal_loop_unaligned): Likewise.
7797 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
7798 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
7799 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
7801 * iconv/loop.c (LOOPFCT): First test for empty input then for full
7804 * inet/getnameinfo.c: Use extend_alloca where appropriate.
7805 * sysdeps/posix/getaddrinfo.c: Likewise.
7807 * include/alloca.h (extend_alloca): New define. Based on stack
7808 direction it'll try to append to the previouls allocated buffer.
7810 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
7812 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
7813 use the same service for AF_INET and AF_INET6.
7815 2002-11-19 Ulrich Drepper <drepper@redhat.com>
7817 * intl/localealias.c (read_alias_file): Use only about 400 bytes
7818 of stack space instead of 16k.
7820 2002-11-18 Wolfram Gloger <wg@malloc.de>
7823 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
7824 nothing if not initialized. Bug report from Marcus Brinkmann
7825 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
7827 2002-11-19 Roland McGrath <roland@redhat.com>
7829 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
7832 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
7833 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
7834 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
7835 * configure: Regenerated.
7837 2002-11-19 Ulrich Drepper <drepper@redhat.com>
7839 * include/dlfcn.h: __libc_dlopen is now a macro calling
7840 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
7841 (__libc_dlopen_mode): New prototype.
7842 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
7843 new parameter. Store new parameter in mode field of structure passed
7845 (struct do_dlopen_args): Add new field mode.
7846 (do_dlopen): Pass mode from parameter structure to _dl_open.
7848 2002-11-11 Randolf Chung <tausq@debian.org>
7850 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
7851 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
7852 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
7854 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
7856 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
7857 Set -mdisable-fpregs for this file.
7859 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
7861 * sysdeps/unix/sysv/linux/configure.in:
7862 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
7863 from gcc-3.0 era for backwards compatibility.
7864 * sysdeps/unix/sysv/linux/configure: Regenerate.
7866 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
7867 Define mcontext_t as a sigcontext.
7869 2002-11-18 Roland McGrath <roland@redhat.com>
7871 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
7872 Free memory in `last_result' if it was used.
7874 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
7875 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
7876 Do the parsing inline instead of copying strings and calling
7877 inet_network, and properly skip all alias names not matching the form.
7879 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
7881 2002-11-17 Ulrich Drepper <drepper@redhat.com>
7883 * manual/pattern.texi (Wordexp Example): Fix sample code.
7885 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
7886 childs stack which will be loaded into the %esi register.
7888 2002-11-14 Paul Eggert <eggert@twinsun.com>
7890 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
7891 overflow when skipping the question part and when unpacking aliases.
7893 2002-11-15 Roland McGrath <roland@redhat.com>
7895 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
7896 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
7897 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
7899 2002-11-15 Jakub Jelinek <jakub@redhat.com>
7901 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
7902 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
7904 2002-11-15 Roland McGrath <roland@redhat.com>
7906 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
7907 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
7908 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
7909 (+make-include-of-dep): New canned sequence.
7911 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
7912 From Dmitry V. Levin <ldv@altlinux.org>.
7914 2002-11-14 Roland McGrath <roland@redhat.com>
7916 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
7917 * inet/herrno.c (__libc_h_errno): Likewise.
7918 * resolv/res_libc.c (__libc_res): Likewise.
7919 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
7920 (__res_state) [! USE___THREAD]: Don't define as weak.
7921 * csu/Versions: Revert last change.
7922 * resolv/Versions: Revert last change.
7924 * Makerules ($(common-objpfx)%.make): New pattern rule.
7925 * tls.make.c: New file.
7926 * Makefile (distribute): Add it.
7928 * sysdeps/generic/errno.c [! USE___THREAD]
7929 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
7930 with compat_symbol so they are not link-time visible.
7931 [! USE___THREAD] (__libc_errno): New alias for errno.
7932 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
7933 Add __libc_errno here.
7934 * inet/herrno.c [USE___THREAD]: Use this conditional
7935 in place of [USE_TLS && HAVE___THREAD].
7936 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
7937 (h_errno, _h_errno): Declare these with compat_symbol so they are not
7939 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
7940 * resolv/res_libc.c [! USE___THREAD]
7941 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
7942 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
7943 (__libc_res): Define as alias for _res.
7944 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
7945 Add __libc_h_errno and __libc_res here.
7947 2002-11-14 Jakub Jelinek <jakub@redhat.com>
7949 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
7950 * resolv/Versions (h_errno, _res): Likewise.
7952 2002-11-14 Roland McGrath <roland@redhat.com>
7954 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
7955 (%.symlist): Likewise.
7957 2002-11-13 Roland McGrath <roland@redhat.com>
7959 * scripts/abilist.awk: New file.
7960 * Makefile (distribute): Add it.
7961 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
7962 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
7963 [$(subdir) = elf] (tests): Depend on libc.symlist.
7964 (generated, common-generated): Add those files.
7966 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
7967 * configure: Regenerated.
7968 * config.make.in (OBJDUMP): New variable, substituted by configure.
7970 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
7971 (mallochook, reallochook): Set them up.
7972 (checkhdr): Check HDR->magic2 value.
7973 (freehook): Reset HDR->magic2.
7974 (memalignhook): New static function.
7975 (old_memalign_hook): New static variable.
7976 (mcheck, reallochook): Set __memalign_hook to memalignhook.
7978 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
7981 2002-11-13 Andreas Jaeger <aj@suse.de>
7983 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
7985 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7987 2002-11-11 Paul Eggert <eggert@twinsun.com>
7989 * manual/crypt.texi (Cryptographic Functions): Mention that
7990 the MD5 one-way algorithm is compatible with BSD's.
7992 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
7994 * posix/regex_internal.c (re_string_skip_chars): Also return the last
7996 (re_string_reconstruct): Calculate the context by itself when the
7997 offset points out of the valid range.
7998 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
7999 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
8000 (IS_WIDE_WORD_CHAR): New macro.
8001 (IS_WIDE_NEWLINE): New macro.
8003 2002-11-12 Andreas Jaeger <aj@suse.de>
8005 * sysdeps/x86_64/strchr.S: Don't use one register for two
8006 purposes, this fixes a bug noticed by test-strchr.c.
8008 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
8011 2002-11-12 Roland McGrath <roland@redhat.com>
8013 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
8014 (_G_IO_NO_BACKWARD_COMPAT): Define it.
8016 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
8017 instead of <pt-machine.h>.
8018 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
8020 From Ian Wienand <ianw@gelato.unsw.edu.au>.
8022 2002-11-10 Roland McGrath <roland@redhat.com>
8024 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
8025 Call fputs instead of fwprintf (simpler to follow in debugger).
8027 * crypt/md5-crypt.c: Doc fix.
8029 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
8030 the beginning of generated target commands.
8032 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
8033 dependencies for these in case implicit rule search skipped the
8034 nonexistent source directory.
8035 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
8036 files with $(object-suffixes) as targets too.
8037 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
8038 and a target for it using $(make-target-directory).
8040 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
8042 2002-11-10 Roland McGrath <roland@frob.com>
8044 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
8045 * sysdeps/generic/bits/pthreadtypes.h: ... here.
8047 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
8048 l_start == 0 and l_len == 1 as we do l_len == 0.
8050 2002-11-10 Ulrich Drepper <drepper@redhat.com>
8052 * po/da.po: Update from translation team.
8054 2002-11-10 Roland McGrath <roland@redhat.com>
8056 * config.make.in (includedir): New variable, substituted by configure.
8057 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
8058 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
8060 2002-11-10 Andreas Jaeger <aj@suse.de>
8062 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
8063 REG_OLDMASK and REG_CR2 to synch with kernel header.
8066 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
8068 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
8069 * nss/getnssent_r.c (__nss_getent_r): Likewise.
8070 (__nss_setent): Likewise.
8071 (__nss_getent_r): Likewise.
8072 * inet/getnetgrent_r.c (innetgr): Likewise.
8073 (__internal_setnetgrent_reuse): Likewise.
8074 (internal_getnetgrent_r): Likewise.
8075 * inet/ether_hton.c (ether_hostton): Likewise.
8076 * inet/ether_ntoh.c (ether_ntohost): Likewise.
8077 * sunrpc/netname.c (netname2user): Likewise.
8078 * sunrpc/publickey.c (getpublickey): Likewise.
8079 (getsecretkey): Likewise.
8081 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
8083 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
8084 error in range calculation.
8086 2002-10-09 Jakub Jelinek <jakub@redhat.com>
8088 * string/test-strspn.c (do_test): Ensure zero termination.
8089 * string/test-strpbrk.c (do_test): Likewise.
8090 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
8091 * string/test-strncpy.c (stupid_strncpy): Likewise.
8092 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
8094 2002-10-08 Roland McGrath <roland@redhat.com>
8096 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
8099 2002-09-22 H.J. Lu <hjl@gnu.org>
8101 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
8102 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
8103 only if __NR_mmap2 is defined.
8105 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
8106 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
8107 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
8108 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
8110 2002-11-08 Jakub Jelinek <jakub@redhat.com>
8112 * posix/bug-regex13.c (tests): Add new test.
8114 * string/test-strchr.c (stupid_strchr): New function.
8115 (do_random_tests): Make sure the string is zero terminated.
8116 * string/test-strpbrk.c (stupid_strpbrk): New function.
8117 (do_random_tests): Make sure the string is zero terminated.
8118 * string/test-strcmp.c (stupid_strcmp): New function.
8119 (do_random_tests): Make sure the strings are zero terminated.
8120 * string/test-strspn.c (stupid_strspn): New function.
8121 (simple_strspn): Rename rej argument to acc.
8122 (do_random_tests): Make sure the string is zero terminated.
8123 * string/test-strcspn.c (stupid_strcspn): New function.
8124 * string/test-strncpy.c (stupid_strncpy): New function.
8125 * string/test-stpncpy.c (stupid_stpncpy): New function.
8126 * string/test-strncmp.c (stupid_strncmp): New function.
8127 (do_random_tests): Make sure the strings are zero terminated.
8128 * string/test-string.h (impl_t): Change test into long.
8129 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
8131 2002-11-08 Roland McGrath <roland@redhat.com>
8133 * sysdeps/ia64/elf/configure.in: Add TLS check.
8134 From Ian Wienand <ianw@cse.unsw.edu.au>.
8135 * sysdeps/ia64/elf/configure: Regenerated.
8137 2002-11-07 Roland McGrath <roland@redhat.com>
8139 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
8140 place of _IO_new_do_write.
8141 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
8142 #undef before versioned_symbol use.
8144 2002-11-07 Richard Henderson <rth@redhat.com>
8146 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
8147 * configure: Regenerated.
8148 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
8149 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
8150 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
8151 _dl_fini via gp-relative relocations.
8152 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
8154 * elf/tls-macros.h: Add alpha versions.
8155 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
8156 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
8157 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
8158 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
8159 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
8160 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
8161 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
8162 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
8163 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
8164 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
8165 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
8166 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
8167 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
8168 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
8169 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
8170 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
8171 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
8172 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
8174 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
8175 Kill argument registers across the inline syscall.
8177 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
8179 * linuxthreads/sysdeps/alpha/tls.h: New file.
8180 * sysdeps/alpha/dl-tls.h: New file.
8182 2002-10-29 David Mosberger <davidm@hpl.hp.com>
8184 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
8185 (gmon_initializer): New function.
8186 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
8187 __gmon_start__ here. Call it from gmon_initializer() instead.
8189 2002-03-12 H.J. Lu <hjl@gnu.org>
8191 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
8192 tst-array2, and tst-array3.
8193 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
8194 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
8195 ($(objpfx)tst-array1.out): New target.
8196 ($(objpfx)tst-array2): Likewise.
8197 ($(objpfx)tst-array2.out): Likewise.
8198 ($(objpfx)tst-array3.out): Likewise.
8199 * elf/tst-array1.c: New file.
8200 * elf/tst-array1.exp: Likewise.
8201 * elf/tst-array2.c: Likewise.
8202 * elf/tst-array2dep.c: Likewise.
8203 * elf/tst-array2.exp: Likewise.
8204 * elf/tst-array3.c: Likewise.
8206 2002-10-28 David Mosberger <davidm@hpl.hp.com>
8208 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
8209 Don't add L->l_addr to array entry values.
8211 2002-11-07 Jakub Jelinek <jakub@redhat.com>
8213 * string/test-string.h: New file.
8214 * string/test-strlen.c: New file.
8215 * string/test-string.h: New file.
8216 * string/test-strcmp.c: New file.
8217 * string/test-strchr.c: New file.
8218 * string/test-strrchr.c: New file.
8219 * string/test-strcpy.c: New file.
8220 * string/test-stpcpy.c: New file.
8221 * string/test-strncpy.c: New file.
8222 * string/test-stpncpy.c: New file.
8223 * string/test-strpbrk.c: New file.
8224 * string/test-strcspn.c: New file.
8225 * string/test-strspn.c: New file.
8226 * string/test-strcat.c: New file.
8227 * string/test-strncmp.c: New file.
8228 * string/test-memchr.c: New file.
8229 * string/test-memcmp.c: New file.
8230 * string/test-memset.c: New file.
8231 * string/test-memcpy.c: New file.
8232 * string/test-mempcpy.c: New file.
8233 * string/test-memmove.c: New file.
8234 * string/Makefile (strop-tests): New variable.
8235 (tests): Add strop-tests.
8236 (distribute): Add test-string.h.
8238 2002-11-06 Ulrich Drepper <drepper@redhat.com>
8240 * posix/regcomp.c: Use tabs instead of spaces.
8241 * posix/regexec.c: Likewise.
8242 * posix/regex_internal.h: Likewise.
8244 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
8246 2002-11-06 Jakub Jelinek <jakub@redhat.com>
8248 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
8250 (regcomp): Don't set can_be_null here.
8251 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
8252 (re_compile_internal): Clear can_be_null, set regs_allocated.
8254 * posix/regcomp.c (re_set_fastmap): New function.
8255 (re_compile_fastmap_iter): Use it. Remove redundant type ==
8256 COMPLEX_BRACKET check.
8257 * posix/regexec.c (re_search_internal): Optimize searching with
8258 fastmap. Call re_string_reconstruct even if match_first is
8259 smaller than raw_mbs_idx.
8261 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
8263 * posix/regcomp (free_dfa_content): Use free_state.
8264 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
8265 pointers in case that realloc failed.
8266 (re_node_set_merge): Likewise.
8267 (register_state): Likewise.
8268 (create_newstate_common): Invoke memory release functions in case of
8270 (create_ci_newstate): Likewise.
8271 (create_cd_newstate): Likewise.
8272 (free_state): New function.
8273 * posix/regexec.c (re_search_internal): Invoke memory release
8274 functions in case of error conditions.
8275 (sift_states_backward): Likewise.
8276 (merge_state_array): Likewise.
8277 (add_epsilon_src_nodes): Likewise.
8278 (sub_epsilon_src_nodes): Likewise.
8279 (search_subexp): Likewise.
8280 (sift_states_bkref): Likewise.
8281 (transit_state_sb): Likewise.
8282 (transit_state_mb): Likewise.
8283 (transit_state_bkref_loop): Likewise.
8284 (group_nodes_into_DFAstates): Likewise.
8285 (push_fail_stack): Don't edit pointers in case that realloc failed.
8286 (extend_buffers): Likewise.
8287 (match_ctx_add_entry): Likewise.
8289 2002-11-06 Roland McGrath <roland@redhat.com>
8291 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
8292 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
8294 * configure.in: Add checks on as and ld for binutils 2.13 or later.
8295 * configure: Regenerated.
8297 2002-11-06 Ulrich Drepper <drepper@redhat.com>
8299 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
8300 If re_compile_internal failed free fastmap buffer.
8301 (free_dfa_content): Broken out of regfree function. Frees all dfa
8303 (regfree): Add free_dfa_content.
8304 (re_compile_internal): If any of the called functions fails free
8305 all dfa related memory.
8307 2002-11-05 Ulrich Drepper <drepper@redhat.com>
8309 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
8310 warnings from the kernel headers.
8312 2002-11-05 Roland McGrath <roland@redhat.com>
8314 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
8315 From Johannes Stezenbach <js@convergence.de>.
8317 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
8318 #errlist-compat magic comment to give 123 as size.
8319 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
8320 (libc: GLIBC_2.2): ... here.
8321 (libc: GLIBC_2.3): Likewise.
8323 2002-11-05 Ulrich Drepper <drepper@redhat.com>
8325 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
8326 which happens at the beginning so that we can unload modules in
8329 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8331 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
8332 under [__USE_MISC || _ASM].
8334 * elf/elf.h: Remove the obsolete SH TLS relocations.
8336 2002-11-05 Ulrich Drepper <drepper@redhat.com>
8338 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
8340 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8342 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
8343 __NR_pread64 and __NR_pwrite64.
8344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
8345 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
8347 Revert change to use INLINE_SYSCALL.
8348 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
8349 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
8350 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
8351 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
8353 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
8355 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
8356 Update clobber list and add a comment about the syscall ABI.
8358 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
8359 s_pwrite64, s_ftruncate, s_truncate): Re-add.
8361 2002-11-05 Jakub Jelinek <jakub@redhat.com>
8363 * iconv/gconv_dl.c (free_mem): Clear loaded.
8364 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
8367 2002-11-05 Ulrich Drepper <drepper@redhat.com>
8369 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
8371 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
8372 as old code without locking. _IO_seekoff calls this function after
8374 * libio/ioseekpos.c: Likewise for _IO_seekpos.
8375 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
8376 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
8378 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
8379 of _IO_seekoff_internal.
8380 (_IO_rewind): Likewise.
8381 * libio/ioftell.c: Likewise.
8382 * libio/ftello.c: Likewise.
8383 * libio/ftello64.c: Likewise.
8384 * libio/iofgetpos.c: Likewise.
8385 * libio/iofgetpos64.c: Likewise.
8386 * libio/oldiofgetpos.c: Likewise.
8387 * libio/oldiofgetpos64.c: Likewise.
8388 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
8389 _IO_seekpos_internal.
8390 * libio/iofsetpos64.c: Likewise.
8391 * libio/oldiofsetpos.c: Likewise.
8392 * libio/oldiofsetpos64.c: Likewise.
8394 2002-11-04 Roland McGrath <roland@redhat.com>
8396 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
8397 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
8398 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
8399 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
8400 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
8401 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
8402 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
8403 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
8404 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
8405 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
8406 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
8407 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
8408 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
8409 Remove these, no longer used.
8411 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8413 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
8414 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
8415 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
8416 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
8417 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
8418 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
8421 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
8422 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
8423 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
8425 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
8426 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
8428 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
8430 2002-11-03 Roland McGrath <roland@redhat.com>
8432 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
8433 `_dl_tls_static_used'.
8434 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
8435 (__libc_setup_tls): Initialize it. Let the initial value of
8436 _dl_tls_static_size indicate some surplus space in the computed value.
8437 * elf/dl-open.c (_dl_tls_static_size): New variable.
8438 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
8439 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
8440 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
8441 (CHECK_STATIC_TLS): Use it.
8442 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
8443 closed objects occupied a trailing contiguous chunk of static TLS area.
8445 2002-10-18 Bruno Haible <bruno@clisp.org>
8447 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
8449 2002-11-04 Ulrich Drepper <drepper@redhat.com>
8451 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
8452 _wide_data->_IO_read_end if adjustment can be made in the current
8455 * sysdeps/unix/sysv/linux/fexecve.c: New file.
8457 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
8458 wide oriented streams are used.
8460 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
8461 service hasn't been used [PR libc/4744].
8463 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
8464 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
8466 * manual/examples/dir.c: Don't include <stddef.h>.
8467 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
8468 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
8470 2002-11-02 H.J. Lu <hjl@gnu.org>
8472 * stdio-common/reg-printf.c: Include <stddef.h>.
8474 2002-11-03 Ulrich Drepper <drepper@redhat.com>
8476 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
8478 * po/ca.po: Update from translation team.
8479 * po/es.po: Likewise.
8481 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
8482 is defined write out memory map.
8483 * sysdeps/unix/sysv/linux/segfault.c: New file.
8485 2002-11-02 Roland McGrath <roland@redhat.com>
8487 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
8488 pointers that can alias.
8489 Reported by Daniel Jacobowitz <drow@mvista.com>.
8491 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
8493 2002-11-02 Roland McGrath <roland@redhat.com>
8495 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
8496 description to be clearer and to say that *RESULT is set to ENTRY.
8498 2002-10-30 Jakub Jelinek <jakub@redhat.com>
8500 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
8501 dests_ch arrays together. Alloca or malloc dest_states,
8502 dest_states_word and dest_states_nl arrays together. Free memory on
8505 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
8507 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
8508 and current_saltbits.
8510 2002-11-02 Roland McGrath <roland@redhat.com>
8512 * stdio-common/reg-printf.c: Include <stdlib.h>.
8514 2002-11-02 H.J. Lu <hjl@gnu.org>
8516 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
8517 caller to EXTRA instead of execve.
8519 2002-11-01 Roland McGrath <roland@redhat.com>
8521 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
8522 in place of [!(USE_TLS && HAVE___THREAD)].
8523 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
8525 2002-10-31 Roger Sayle <roger@eyesopen.com>
8527 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
8529 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
8531 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
8532 without defining FP_ROUNDMODE.
8534 2002-10-29 Jakub Jelinek <jakub@redhat.com>
8536 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
8537 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
8539 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
8540 (OLD_SIGLIST_SIZE): Define.
8541 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
8542 (OLD_SIGLIST_SIZE): Define.
8543 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
8545 2002-11-01 Jakub Jelinek <jakub@redhat.com>
8547 * sysdeps/ia64/strncpy.S: Fix recovery code.
8549 2002-10-30 Jakub Jelinek <jakub@redhat.com>
8551 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
8553 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
8555 * elf/dl-libc.c (free_mem): Likewise.
8556 * iconv/gconv_conf.c (free_mem): Likewise.
8557 * iconv/gconv_db.c (free_mem): Likewise.
8558 * iconv/gconv_dl.c (free_mem): Likewise.
8559 * iconv/gconv_cache.c (free_mem): Likewise.
8560 * intl/finddomain.c (free_mem): Likewise.
8561 * intl/dcigettext.c (free_mem): Likewise.
8562 * locale/setlocale.c (free_mem): Likewise.
8563 * misc/fstab.c (fstab_free): Likewise.
8564 * nss/nsswitch.c (free_mem): Likewise.
8565 * posix/regcomp.c (free_mem): Likewise.
8566 * resolv/gai_misc.c (free_res): Likewise.
8567 * stdlib/fmtmsg.c (free_mem): Likewise.
8568 * sunrpc/clnt_perr.c (free_mem): Likewise.
8569 * sysdeps/generic/setenv.c (free_mem): Likewise.
8570 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
8571 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
8572 * time/tzset.c (free_mem): Likewise.
8573 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
8574 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
8575 * malloc/set-freeres.c (__libc_freeres): Likewise.
8577 * login/getutent.c: Include stdlib.h instead of stddef.h.
8578 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
8579 (__getutent): Allocate buffer the first time it is run.
8580 * login/getutid.c: Include stdlib.h instead of stddef.h.
8581 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
8582 (__getutid): Allocate buffer the first time it is run.
8583 * login/getutline.c: Include stdlib.h instead of stddef.h.
8584 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
8585 (__getutline): Allocate buffer the first time it is run.
8586 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
8587 (mtrace): Allocate malloc_trace_buffer.
8588 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
8589 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
8590 * string/strerror.c: Include libintl.h and errno.h.
8591 (buf): New variable.
8592 (strerror): Only allocate buffer if actually needed (unknown error).
8593 * time/tzfile.c (transitions): Add libc_freeres_ptr.
8596 2002-10-25 Jakub Jelinek <jakub@redhat.com>
8598 * include/libc-symbols.h (libc_freeres_ptr): New macro.
8599 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
8601 (__libc_freeres): Free all pointers in that section.
8602 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
8603 commands when creating .lds script.
8604 (LDSEDCMD-c.so): New variable.
8605 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
8606 (rcmd_af): Use strdup to allocate ahostbuf.
8607 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
8608 (rexec_af): Use strdup to allocate ahostbuf.
8609 * stdio-common/reg-printf.c (printf_funcs): Remove.
8610 (__printf_arginfo_table): Change into printf_arginfo_function **.
8611 Add libc_freeres_ptr.
8612 (__register_printf_function): Allocate __printf_arginfo_table
8613 and __printf_function_table the first time it is called.
8614 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
8615 printf_arginfo_function **.
8616 (parse_one_spec): Add __builtin_expect.
8617 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
8619 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
8621 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
8622 (string_space, map): Add libc_freeres_ptr.
8624 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
8626 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
8628 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
8629 (buffer): Add libc_freeres_ptr.
8630 (free_mem): Remove for _LIBC.
8631 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
8633 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
8635 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
8637 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
8639 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
8641 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
8643 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
8646 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
8650 2002-10-30 Jakub Jelinek <jakub@redhat.com>
8652 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
8653 instead of duplicating the whole function in libc.
8655 2002-10-31 Roland McGrath <roland@redhat.com>
8657 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
8658 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
8660 2002-10-30 Jakub Jelinek <jakub@redhat.com>
8662 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
8663 32bit-predefine when creating .new32 list and -U for each
8664 32bit-predefine when creating .new64 list.
8665 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
8667 2002-10-29 Andreas Schwab <schwab@suse.de>
8669 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
8670 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
8672 2002-10-25 Roland McGrath <roland@redhat.com>
8674 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
8675 * sysdeps/unix/sysv/linux/configure: Regenerated.
8677 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
8678 _dl_starting_up decl.
8680 2002-10-20 H.J. Lu <hjl@gnu.org>
8682 * sysdeps/unix/sysv/linux/configure.in: Don't check
8683 /lib/modules/`uname -r`/build/include for kernel headers if
8685 * sysdeps/unix/sysv/linux/configure: Regenerated.
8687 2002-10-25 Roland McGrath <roland@redhat.com>
8689 * math/math.h (M_LOG2El): Correct the value.
8690 From Stephen L Moshier <steve@moshier.net>.
8692 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
8693 conditional from __libc_multiple_libcs access. Remove kludge for weak
8694 symbol access with old compilers we no longer support.
8695 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
8696 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
8698 2002-10-25 Roland McGrath <roland@redhat.com>
8700 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
8701 implement SV_RESETHAND by translating it to SA_RESETHAND.
8703 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
8705 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
8706 type on ELF64 platforms.
8708 2002-10-24 Ulrich Drepper <drepper@redhat.com>
8710 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
8712 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
8714 2002-10-24 Jakub Jelinek <jakub@redhat.com>
8716 * elf/dl-misc.c: Include <sysdep.h>.
8717 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
8719 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
8720 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
8721 (INLINE_SYSCALL): Use that.
8722 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
8723 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
8724 (INLINE_SYSCALL): Use that.
8725 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
8726 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
8727 (INLINE_SYSCALL): Use that.
8728 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
8730 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
8731 (__INTERNAL_SYSCALL_STRING): Define.
8732 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
8734 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
8735 (__INTERNAL_SYSCALL_STRING): Define.
8736 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
8737 __SYSCALL_STRING to inline_syscall*.
8738 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
8740 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
8741 inline_syscall4, inline_syscall5, inline_syscall6): Add string
8744 2002-10-24 Roland McGrath <roland@redhat.com>
8746 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
8747 * sysdeps/unix/sysv/linux/init-first.c: Not here.
8748 * sysdeps/powerpc/elf/libc-start.c: Or here.
8749 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
8750 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
8751 * sysdeps/unix/sysv/aix/init-first.c: Or here.
8752 * sysdeps/generic/libc-start.c: Or here.
8753 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
8754 access with [! SHARED].
8755 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
8757 * libio/bug-wfflush.c: New file.
8758 * libio/Makefile (tests): Add bug-wfflush.
8760 2002-10-23 Roland McGrath <roland@redhat.com>
8762 * stdio-common/tst-fphex.c: New file.
8763 * stdio-common/Makefile (tests): Add tst-fphex.
8764 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
8765 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
8766 chars always before the value digits.
8767 Reported by James Antill <james.antill@redhat.com>.
8769 2002-10-24 Jakub Jelinek <jakub@redhat.com>
8771 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
8772 (free_mem): New function.
8773 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
8774 if not cross compiling.
8775 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
8776 (bug-regex14-ENV): Set.
8777 (bug-regex14-mem): New target.
8778 * posix/bug-regex14.c: New file.
8780 2002-10-23 Roland McGrath <roland@redhat.com>
8782 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
8783 target, so we don't touch it when the link fails.
8785 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
8786 Check for the result overflowing off_t and fail with EOVERFLOW.
8787 * libio/ioftell.c (_IO_ftell): Likewise.
8788 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
8790 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
8791 use a temporary timeval on the stack for gettimeofday and copy it.
8792 * login/logout.c (logout): Likewise.
8793 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
8795 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
8796 Use __SWORD_TYPE instead of int for member types.
8797 (struct statfs64): Likewise.
8798 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
8799 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
8800 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
8801 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
8802 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
8804 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
8805 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
8806 (ST_NODIRATIME): Restore fixed value of 2048.
8807 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
8808 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
8810 Rearranged <bits/types.h> definitions to reduce duplication.
8811 * sysdeps/generic/bits/types.h: Rewritten, using macros from
8812 <bits/wordsize.h> and new header <bits/typesizes.h>.
8813 * posix/Makefile (headers): Add bits/typesizes.h here.
8814 * sysdeps/generic/bits/typesizes.h: New file.
8815 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
8816 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
8817 * sysdeps/mach/hurd/bits/typesizes.h: New file.
8818 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
8819 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
8820 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
8821 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
8822 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
8823 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
8824 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
8825 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
8826 <bits/pthreadtypes.h> here, not in <bits/types.h>.
8827 * signal/signal.h: Likewise.
8829 * streams/stropts.h: Include <bits/xtitypes.h>.
8830 * streams/Makefile (headers): Add bits/xtitypes.h here.
8831 * sysdeps/generic/bits/xtitypes.h: New file.
8832 * sysdeps/s390/bits/xtitypes.h: New file.
8833 * sysdeps/ia64/bits/xtitypes.h: New file.
8834 * sysdeps/x86_64/bits/xtitypes.h: New file.
8836 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
8837 * sysdeps/generic/bits/ipctypes.h: New file.
8838 * sysdeps/mips/bits/ipctypes.h: New file.
8839 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
8840 * sysdeps/gnu/bits/msq.h: Likewise.
8841 * sysvipc/sys/ipc.h: Likewise.
8843 2002-10-22 Ulrich Drepper <drepper@redhat.com>
8845 * elf/dl-load.c (struct filebuf): For buf element to have the
8846 alignment of ElfXX_Ehdr since this is what will be stored in it.
8848 2002-10-22 Jakub Jelinek <jakub@redhat.com>
8850 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
8851 into pointer to locrec_offset.
8852 (add_locale_to_archive): Adjust callers. Free normalized_name right
8853 before returning, not immediately after add_locale, pass it to
8854 add_alias if not NULL instead of name. Rename second normalized_name
8855 occurence to nnormalized_codeset_name.
8857 * locale/programs/locarchive.c (enlarge_archive): Make sure
8858 string_size is always a multiple of 4.
8859 Reported by Andreas Schwab <schwab@suse.de>.
8861 2002-10-21 Andreas Schwab <schwab@suse.de>
8863 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
8864 caller to EXTRA instead of execve, since the latter has a
8865 higher-priority implementation in linuxthreads.
8867 2002-10-21 Roland McGrath <roland@redhat.com>
8869 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
8870 slotinfo list's len member to the proper size, not just 1.
8871 Initialize static_map.l_tls_initimage.
8873 * elf/dl-open.c (dl_open_worker): Fix loop searching for
8874 dtv_slotinfo_list element containing new modules' l_tls_modid.
8876 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
8877 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
8878 * elf/Makefile (tests): Add tst-tls9.
8879 (tests-static): Add tst-tls9-static.
8880 (tst-tls9-static-ENV): New variable.
8881 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
8883 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
8884 modids used by partially loaded modules being closed can't be known.
8886 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
8888 * posix/Makefile: Add a test case for the bug reported by Aharon
8889 Robbins <arnold@skeeve.com>.
8890 * posix/bug-regex13.c: New file.
8891 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
8893 2002-10-21 Ulrich Drepper <drepper@redhat.com>
8895 * csu/gmon-start.c: Pretty printing.
8897 2002-10-19 Art Haas <ahaas@neosoft.com>
8899 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
8900 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
8901 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
8902 * configure: Regenerated.
8904 2002-10-19 Roland McGrath <roland@redhat.com>
8906 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
8907 and then set $subdirs directly, because the new Autoconf breaks
8908 compatibility in every way imaginable and insists on whining
8909 about usage that worked since the dawn of time.
8910 * configure: Regenerated.
8912 * configure: Regenerated (using Autoconf 2.54).
8913 * sysdeps/alpha/elf/configure: Likewise.
8914 * sysdeps/generic/configure: Likewise.
8915 * sysdeps/i386/elf/configure: Likewise.
8916 * sysdeps/ia64/elf/configure: Likewise.
8917 * sysdeps/mach/hurd/configure: Likewise.
8918 * sysdeps/mach/configure: Likewise.
8919 * sysdeps/unix/configure: Likewise.
8920 * sysdeps/unix/common/configure: Likewise.
8921 * sysdeps/unix/sysv/aix/configure: Likewise.
8922 * sysdeps/unix/sysv/linux/configure: Likewise.
8923 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
8924 * sysdeps/x86_64/elf/configure: Likewise.
8926 * config.make.in: Nix completely-soft nonsense.
8927 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
8928 of machine directories instead of fpu subdirectory.
8929 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
8930 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
8931 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
8932 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
8933 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
8934 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
8935 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
8936 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
8937 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
8938 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
8939 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
8940 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
8941 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
8942 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
8943 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
8944 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
8945 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
8946 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
8947 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
8948 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
8949 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
8950 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
8951 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
8952 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
8953 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
8954 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
8955 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
8956 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
8957 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
8958 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
8959 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
8960 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
8961 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
8962 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
8963 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
8964 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
8965 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
8966 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
8967 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
8968 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
8970 2002-10-19 Bruno Haible <bruno@clisp.org>
8972 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
8974 2002-10-18 Roland McGrath <roland@redhat.com>
8976 * io/Makefile (routines): Add lchmod.
8977 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
8978 * sysdeps/generic/lchmod.c: New file.
8979 * sysdeps/mach/hurd/lchmod.c: New file.
8980 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
8982 2002-10-18 Art Haas <ahaas@neosoft.com>
8984 * configure.in: Remove remaining AC_FD_CC macros, and replace
8985 AC_FD_MSG with AS_MESSAGE_FD.
8987 2002-10-18 Roland McGrath <roland@redhat.com>
8989 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
8990 typos: VALUE -> FINALADDR.
8992 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
8993 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
8994 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
8995 (inline_syscall6): Move these macros ...
8996 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
8998 * configure.in (libc_link_dests, libc_link_sources): Remove these
8999 variables and the AC_LINK_FILES call.
9001 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
9002 change to put new symbols here instead of in GLIBC_2.2.
9003 * sysdeps/powerpc/Subdirs: Move this file ...
9004 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
9006 2002-10-07 Roland McGrath <roland@redhat.com>
9008 * sysdeps/generic/bits/time.h: Replaced with contents of the
9009 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
9010 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
9011 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
9012 macros is ok even for architectures that don't now implement them.
9013 * sysdeps/mach/hurd/bits/time.h: File removed.
9014 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
9015 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
9016 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
9017 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
9018 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
9020 2002-10-18 Jeff Bailey <jbailey@gnu.org>
9022 * configure.in: Replace obsolete AC_OUTPUT syntax with
9023 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
9025 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
9026 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
9028 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
9029 * sysdeps/alpha/elf/configure.in: Likewise.
9030 * sysdeps/i386/elf/configure.in: Likewise.
9031 * sysdeps/mach/hurd/configure.in: Likewise.
9032 * sysdeps/x86_64/elf/configure.in: Likewise.
9034 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
9036 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
9037 * sysdeps/generic/configure.in: Likewise.
9038 * sysdeps/i386/elf/configure.in: Likewise.
9039 * sysdeps/ia64/elf/configure.in: Likewise.
9040 * sysdeps/mach/configure.in: Likewise.
9041 * sysdeps/mach/hurd/configure.in: Likewise.
9042 * sysdeps/unix/configure.in: Likewise.
9043 * sysdeps/unix/common/configure.in: Likewise.
9044 * sysdeps/unix/sysv/aix/configure.in: Likewise.
9045 * sysdeps/unix/sysv/linux/configure.in: Likewise.
9046 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
9047 * sysdeps/x86_64/elf/configure.in: Likewise.
9049 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
9050 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
9051 that it's obvious when extra autoconf machinery is being dragged in.
9053 2002-10-18 Roland McGrath <roland@redhat.com>
9055 * configure.in: Remove bogus echo included in
9056 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
9057 * configure: Regenerated.
9059 2002-10-18 Jakub Jelinek <jakub@redhat.com>
9061 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
9062 (statfs_filesize_max): New function.
9063 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
9064 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
9065 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
9066 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
9067 statfs_filesize_max.
9068 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
9069 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
9070 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
9072 2002-10-17 Roland McGrath <roland@redhat.com>
9074 * configure.in (MIG): Just AC_SUBST it here.
9075 * configure: Regenerated.
9076 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
9077 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
9078 * sysdeps/mach/configure: Regenerated.
9080 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
9081 and AC_PROVIDE([_AS_CR_PREPARE]).
9083 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
9084 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
9086 * elf/dl-support.c: Move _dl_tls_* variables to ...
9087 * sysdeps/generic/libc-tls.c: ... here.
9089 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
9090 allow IDX to be one past the current last slotinfo entry.
9091 (_dl_close): Pass IMAP->l_init_called for that parameter.
9093 2002-10-07 Andreas Schwab <schwab@suse.de>
9095 * aclocal.m4: Fix for autoconf 2.53.
9096 * configure.in: Likewise. Require autoconf 2.53.
9098 2002-10-08 Richard Henderson <rth@redhat.com>
9100 * soft-fp/op-4.h: Handle carry correctly in
9101 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
9102 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
9103 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
9105 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
9107 * configure.in: Compute completely-soft.
9108 * config.make.in: Make completely-soft available to sub-makes.
9109 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
9110 gcc-double-routines. Add sim-full.c. Add fenv_const and
9111 fe_nomask to libm-support.
9112 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
9113 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
9114 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
9115 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
9116 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
9117 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
9118 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
9119 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
9120 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
9121 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
9122 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
9123 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
9124 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
9125 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
9126 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
9127 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
9128 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
9129 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
9130 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
9131 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
9133 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
9134 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
9135 FP_HANDLE_EXCEPTIONS.
9136 Define FP_ROUNDMODE.
9137 Redefine FP_* macros to correspond to the FE_* bit positions.
9138 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
9139 Define externs for __sim_exceptions, __sim_disabled_exceptions,
9140 __sim_round_mode, __simulate_exceptions.
9141 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
9142 * sysdeps/powerpc/bits/fenv.h: ...to here.
9144 2002-10-06 Jakub Jelinek <jakub@redhat.com>
9146 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
9147 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
9148 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
9149 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
9152 2002-10-15 Jakub Jelinek <jakub@redhat.com>
9154 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
9155 __libc_res_nsend): New prototypes.
9156 * resolv/res_query.c (QUERYSIZE): Define.
9157 (__libc_res_nquery): Renamed from res_nquery. Added answerp
9158 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
9159 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
9160 res_nsend, pass answerp.
9161 (res_nquery): Changed into wrapper around __libc_res_nquery.
9162 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
9163 argument. Call __libc_res_nquerydomain and __libc_res_nquery
9164 instead of the non-__libc_ variants, pass them answerp.
9165 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
9166 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
9167 Added answerp argument. Call __libc_res_nquery instead of
9168 res_nquery, pass answerp.
9169 (res_nquerydomain): Changed into wrapper around
9170 __libc_res_nquerydomain.
9171 * resolv/res_send.c: Include sys/ioctl.h.
9172 (MAXPACKET): Define.
9173 (send_vc): Change arguments. Reallocate answer buffer if it is
9175 (send_dg): Likewise.
9176 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
9177 Reallocate answer buffer if it is too small and hooks are in use.
9178 Adjust calls to send_vc and send_dg.
9179 (res_nsend): Changed into wrapper around __libc_res_nsend.
9180 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
9181 just 1K answer buffer on the stack, use __libc_res_nsearch instead
9183 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
9184 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
9185 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
9186 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
9187 (gethostbyaddr): Similarly with __libc_res_nquery.
9188 * resolv/Versions (libresolv): Export __libc_res_nquery and
9189 __libc_res_nsearch at GLIBC_PRIVATE.
9191 2002-10-17 Roland McGrath <roland@redhat.com>
9193 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
9194 * configure: Regenerated.
9196 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
9197 before performing the reloc, not after.
9198 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
9200 2002-10-17 Ulrich Drepper <drepper@redhat.com>
9202 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
9203 * locale/programs/linereader.c (lr_open): Likewise.
9204 * locale/programs/charmap-dir.c (charmap_open): Likewise.
9205 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
9207 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
9209 * posix/bug-regex11.c: Add a test case for the bug reported by
9210 Paolo Bonzini <bonzini@gnu.org>.
9211 * posix/regexec.c (sift_states_bkref): Use correct destination of
9214 2002-10-17 Roland McGrath <roland@redhat.com>
9216 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
9217 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
9218 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
9219 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
9220 Call it after performing TPOFF relocs.
9221 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
9222 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
9223 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
9225 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
9226 when closing a partially-initialized object.
9228 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
9229 instead of _dl_fatal_printf when we see PT_TLS.
9231 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
9232 instead of $(libof-$<).
9234 2002-10-16 Roland McGrath <roland@redhat.com>
9236 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
9237 instead of += to append, to be sure $(lib) gets expanded at defn time.
9238 (libof-$(cpp-src)): New variable, define this instead.
9239 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
9240 (lib): Don't use override.
9241 (CPPFLAGS-$(lib)): New variable, put -D's here.
9242 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
9243 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
9244 LIB found by $(libof-*) for basename, target, or source.
9245 * Makerules (CPPFLAGS-nonlib): New variable.
9246 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
9247 * locale/Makefile (lib): Likewise.
9248 * sunrpc/Makefile (lib): Likewise.
9250 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
9251 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
9252 * sysdeps/unix/sysv/linux/pathconf.h: New file.
9253 (statfs_link_max): New function, guts from fpathconf.c.
9254 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
9255 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
9256 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
9257 to use the linux/pathconf.c code by #include rather than duplication.
9258 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
9260 2002-10-16 Jakub Jelinek <jakub@redhat.com>
9262 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
9263 Use __libc_errno only for libc itself.
9265 2002-10-16 Andreas Jaeger <aj@suse.de>
9267 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
9269 2002-10-16 Ulrich Drepper <drepper@redhat.com>
9271 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
9272 Use __libc_errno only for libc itself.
9274 2002-10-15 Roland McGrath <roland@redhat.com>
9275 Jakub Jelinek <jakub@redhat.com>
9277 * sysdeps/unix/sysv/linux/Makefile
9278 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
9279 sparc/Makefile to produce a bi-arch file as needed.
9280 That's now parameterized by the variable $(64bit-predefine).
9281 Use LC_ALL=C for `comm' commands in that rule.
9282 No longer conditional on [$(no_syscall_list_h)].
9283 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
9284 (64bit-predefine): New variable.
9285 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
9286 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
9287 * sysdeps/unix/sysv/linux/powerpc/Makefile
9288 (64bit-predefine): New variable.
9290 2002-10-15 Roland McGrath <roland@redhat.com>
9292 * sysdeps/unix/sysv/linux/Makefile
9293 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
9295 * login/utmp-private.h: Declare __libc_utmp_lock.
9296 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
9297 and call __libc_utmp_jump_table functions directly, instead of using
9300 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
9301 * sysdeps/unix/sysv/linux/configure: Regenerated.
9303 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
9304 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
9305 Use int32_t for ll_time.
9306 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
9307 Use int32_t instead of long int for ut_session.
9308 Use an anonymous struct with 32-bit fields for ut_tv.
9309 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
9310 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
9311 here as in utmp.h for `struct utmp'.
9312 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
9313 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
9314 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
9315 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
9316 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
9317 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
9319 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
9320 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
9321 All the following files were identical or equivalent to it.
9322 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
9323 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
9324 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
9325 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
9326 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
9327 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
9328 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
9329 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
9330 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
9331 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
9333 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
9334 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
9335 Other than the previously incorrect sign of msg_iovlen, this is a
9336 no-op on 32-bit platforms. On 64-bit platforms it makes this header
9337 match their layouts as well, so the following are now identical to it.
9338 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
9339 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
9340 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
9341 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
9342 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
9344 2002-10-15 Ulrich Drepper <drepper@redhat.com>
9346 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
9347 Define for 2.4+ kernels.
9349 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
9350 are known to have the vfork syscall. Don't confuse the CPUs
9351 branch prediction unit by jumping to the return address.
9353 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
9354 support for reiserfs and xfs.
9356 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
9358 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
9360 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
9362 2002-10-16 Jakub Jelinek <jakub@redhat.com>
9364 * include/libc-symbols.h (attribute_tls_model_ie): Define.
9365 * include/errno.h (errno): Define to __libc_errno in libc.so.
9366 Add attribute_tls_model_ie.
9367 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
9368 Add attribute_tls_model_ie.
9369 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
9370 attribute_tls_model_ie.
9371 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
9373 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
9375 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
9376 attribute_tls_model_ie.
9377 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
9379 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
9380 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
9381 __libc_errno in USE___THREAD case.
9382 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
9384 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
9385 __attribute__((tls_model (""))).
9386 * configure: Rebuilt.
9387 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
9389 2002-10-15 Ulrich Drepper <drepper@redhat.com>
9391 * timezone/asia: Update from tzdata2002d.
9392 * timezone/australasia: Likewise.
9393 * timezone/iso3166.tab: Likewise.
9394 * timezone/southamerica: Likewise.
9395 * timezone/zone-tab: Likewise.
9397 2002-10-15 Roland McGrath <roland@redhat.com>
9399 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
9400 Adjust TCB pointer before calling free, so we get the whole block.
9402 2002-10-14 Roland McGrath <roland@redhat.com>
9404 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
9405 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
9406 extern using attribute_hidden instead of static, avoids warning.
9408 2002-10-09 Jakub Jelinek <jakub@redhat.com>
9410 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
9411 * sysdeps/unix/sysv/linux/configure: Rebuilt.
9413 2002-10-14 Ulrich Drepper <drepper@redhat.com>
9415 * po/sv.po: Update from translation team.
9417 2002-10-12 H.J. Lu <hjl@gnu.org>
9419 * sunrpc/thrsvc.c (PROCQUIT): New.
9420 (struct rpc_arg): New.
9421 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
9422 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
9423 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
9424 (main): Modified for struct rpc_arg *.
9426 2002-10-14 Ulrich Drepper <drepper@redhat.com>
9428 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
9430 2002-10-14 Jakub Jelinek <jakub@redhat.com>
9432 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
9433 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
9434 in ld.so even if __thread is supported.
9436 2002-10-13 Jakub Jelinek <jakub@redhat.com>
9438 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
9439 Add hack to prevent the compiler from clobbering the signal context.
9440 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
9442 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
9445 2002-10-14 Andreas Jaeger <aj@suse.de>
9447 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
9448 Guido Guenther <agx@sigxcpu.org>.
9450 2002-10-14 Ulrich Drepper <drepper@redhat.com>
9452 * po/sk.po: Update from translation team.
9454 2002-09-26 Roland McGrath <roland@redhat.com>
9456 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
9458 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
9459 DL_DST_LIB based on $(slibdir).
9461 2002-10-13 Roland McGrath <roland@frob.com>
9463 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
9465 * sysdeps/mach/hurd/getresuid.c: New file.
9466 * sysdeps/mach/hurd/getresgid.c: New file.
9467 * sysdeps/mach/hurd/setresuid.c: New file.
9468 * sysdeps/mach/hurd/setresgid.c: New file.
9470 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
9471 setresgid): Declare them.
9474 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
9475 add libc_hidden_proto.
9476 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
9477 getresuid, getresgid, setresuid, setresgid here.
9478 * Versions.def (libc): Define GLIBC_2.3.2 set.
9479 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
9480 Add libc_hidden_def.
9481 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
9482 * sysdeps/generic/setresgid.c: New file.
9483 * sysdeps/generic/setresuid.c: New file.
9484 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9485 (sysdep_routines): Don't add getresuid and getresgid here.
9486 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
9487 (sysdep_routines): Don't add setresuid and setresgid here.
9488 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
9489 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
9490 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
9491 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
9492 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9493 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
9494 * posix/Makefile (routines): Add them all here instead.
9495 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
9496 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
9497 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
9498 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
9499 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
9500 [! __NR_setresuid]: Include generic file.
9501 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
9502 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
9503 [! __NR_setresuid]: Include generic file.
9504 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
9505 Caller is - now, not EXTRA.
9506 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
9507 (setresuid, setresgid, getresuid, getresgid): Likewise.
9508 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
9509 Add these calls here.
9510 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
9511 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
9512 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9513 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9514 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9515 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
9516 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
9517 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
9518 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9520 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9521 (sysdep_routines): Add setfsuid and setfsgid here.
9522 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
9523 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
9524 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
9525 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
9526 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
9527 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
9528 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9529 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
9531 * hurd/errno.c: Renamed to ...
9532 * hurd/errno-loc.c: ... this.
9533 * hurd/Makefile (routines): errno -> errno-loc
9535 2002-10-13 Ulrich Drepper <drepper@redhat.com>
9537 * po/de.po: Update from translation team.
9539 * MakeTAGS: Add -E flag to xgettext runs.
9541 2002-10-12 Ulrich Drepper <drepper@redhat.com>
9543 * po/fr.po: Update from translation team.
9545 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
9546 Optimize a bit for use in glibc.
9548 2002-10-12 Roland McGrath <roland@redhat.com>
9550 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
9551 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
9553 2002-10-12 Ulrich Drepper <drepper@redhat.com>
9555 * po/sv.po: Update from translation team.
9557 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
9559 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
9561 (regfree): Likewise.
9562 (create_initial_state): Likewise.
9563 (analyze): Remove the substitutions which became useless.
9564 (calc_first): Likewise.
9565 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
9566 epsilon destination.
9567 (duplicate_node_closure): New function.
9568 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
9569 (calc_inveclosure): Likewise.
9570 (calc_eclosure): Likewise.
9571 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
9572 direct invocation of duplicate_node.
9573 (parse): Don't use comma operator in the return to avoid compiler
9575 (parse_reg_exp): Likewise.
9576 (parse_branch): Likewise.
9577 (parse_expression): Likewise.
9578 (parse_sub_exp): Likewise.
9579 (parse_dup_op): Likewise.
9580 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
9581 which became useless.
9582 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
9583 (create_cd_newstate): Likewise.
9584 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
9585 (re_token_t): Likewise.
9586 (re_dfa_t): Likewise.
9587 (re_node_set_remove): New macro.
9588 * posix/regexec.c (check_matching): Remove the handling
9590 (check_halt_node_context): Likewise.
9591 (proceed_next_node): Likewise.
9592 (pop_fail_stack): Fix the memory leak.
9593 (set_regs): Likewise.
9594 (free_fail_stack_return): New function.
9595 (sift_states_backward): Fix the memory leak. Remove the handling
9597 (update_cur_sifted_state): Append some if clause to avoid redundant
9599 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
9601 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
9602 (check_subexp_limits): Likewise.
9603 (search_subexp): Likewise.
9604 (sift_states_bkref): Likewise.
9605 (transit_state_mb): Likewise.
9606 (transit_state_bkref_loop): Likewise.
9607 (transit_state_bkref_loop): Likewise.
9608 (group_nodes_into_DFAstates): Likewise.
9609 (check_node_accept): Likewise.
9610 (sift_ctx_init): Add initializing.
9612 2002-10-12 Ulrich Drepper <drepper@redhat.com>
9614 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
9617 2002-10-11 Ulrich Drepper <drepper@redhat.com>
9619 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
9620 duplicated variable c.
9622 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
9625 * sysdeps/unix/sysv/linux/i386/sysdep.h
9626 (INTERNAL_SYSCALL_ERROR_P): New define.
9627 (INTERNAL_SYSCALL_ERRNO): Likewise.
9629 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
9630 Add hack to prevent the compiler from clobbering the signal context.
9632 2002-10-11 Roland McGrath <roland@redhat.com>
9634 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
9637 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
9638 * sysdeps/sh/dl-lookupcfg.h: File removed.
9639 * sysdeps/i386/dl-lookupcfg.h: File removed.
9641 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
9642 missing labels and ; from last change.
9644 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
9645 number literals, so they are doubles instead of ints.
9647 2002-10-09 Roland McGrath <roland@redhat.com>
9649 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
9650 changed from [USE_TLS && HAVE___THREAD].
9652 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
9653 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
9654 * sysdeps/x86_64/dl-machine.h
9655 (elf_machine_type_class, elf_machine_rela): Likewise.
9656 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
9659 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
9660 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
9661 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
9663 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
9664 instead of ___tls_get_addr.
9665 (___tls_get_addr_internal): Add attribute_hidden to decl.
9667 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
9668 _dl_error_catch_tsd.
9669 * elf/rtld.c (startup_error_tsd): New function.
9670 (dl_main): Point _dl_error_catch_tsd at that.
9671 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
9672 use new function pointer instead.
9673 * elf/dl-tsd.c: New file.
9674 * elf/Makefile (routines): Add it.
9676 2002-10-07 Roland McGrath <roland@redhat.com>
9678 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
9679 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
9680 take _dl_load_lock around calling __writev.
9682 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
9683 (INLINE_SYSCALL): Use that.
9685 * sysdeps/generic/dl-sysdep.h: New file.
9686 * sysdeps/mach/hurd/dl-sysdep.h: New file.
9687 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
9688 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
9689 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
9691 * elf/dl-minimal.c (__errno_location): Removed.
9692 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
9693 Use GOTOFF access for errno.
9694 * sysdeps/unix/sysv/linux/i386/sysdep.h
9695 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
9697 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
9698 Use PC-relative access for errno.
9699 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9700 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
9702 * include/tls.h: New file.
9703 (USE___THREAD): New macro.
9704 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
9706 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
9707 changed from [USE_TLS && HAVE___THREAD].
9708 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9709 * sysdeps/unix/i386/sysdep.S: Likewise.
9710 * sysdeps/unix/x86_64/sysdep.S: Likewise.
9711 * include/errno.h: Likewise.
9712 * include/netdb.h: Likewise.
9713 * include/resolv.h: Likewise.
9715 * sysdeps/generic/errno.c: New file.
9716 * csu/Makefile (aux): New variable, list errno.
9717 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
9718 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
9719 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
9720 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
9721 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
9722 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
9723 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
9724 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
9725 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
9726 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
9727 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
9728 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
9729 * sysdeps/unix/alpha/sysdep.S: Likewise.
9730 * sysdeps/generic/start.c: Likewise.
9731 * sysdeps/unix/start.c: Likewise.
9732 * sysdeps/unix/arm/start.c: Likewise.
9733 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
9734 * sysdeps/unix/sparc/start.c: Likewise.
9735 * sysdeps/unix/sysv/irix4/start.c: Likewise.
9736 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
9738 * manual/search.texi (Tree Search Function, Hash Search Function):
9739 Mention search.h clearly.
9741 2002-10-05 Roland McGrath <roland@redhat.com>
9743 * elf/dl-fxstat64.c: File removed.
9744 * elf/dl-xstat64.c: File removed.
9745 * elf/Makefile (rtld-routines): Remove them.
9746 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
9747 Instead, use strong_alias instead of versioned_symbol in the
9749 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
9750 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
9752 * include/shlib-compat.h
9753 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
9754 [! NOT_IN_libc] (IS_IN_libc): Define it.
9755 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
9756 * elf/Makefile (CPPFLAGS-.os): Likewise.
9758 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
9759 Return the status instead of calling exit.
9761 * Makeconfig (CFLAGS): Prepend -std=gnu99.
9762 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
9763 Remove superfluous rm command, whose @ plus make bugs hid
9764 all these commands from the make output.
9766 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
9767 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
9768 Use that file's contents instead of literal echo's for the prologue.
9769 * include/features.h: Include <gnu/stubs.h> unconditionally.
9770 * include/gnu/stubs.h: New file.
9772 2002-09-30 Roland McGrath <roland@redhat.com>
9774 * elf/rtld-Rules: New file.
9775 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
9776 $(objpfx)rtld-libc.a): New targets.
9777 (generated): Add them.
9778 (reloc-link): Remove -o $@ from the variable.
9779 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
9780 (distribute): Add rtld-Rules.
9781 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
9782 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
9783 (common-mostlyclean, common-clean): Clean up rtld-* files.
9784 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
9786 2003-05-20 Jakub Jelinek <jakub@redhat.com>
9788 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
9789 If temp != NULL, copy dynamic entries which need relocation to temp
9790 array before relocating.
9791 (DL_RO_DYN_TEMP_CNT): Define.
9792 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
9793 * elf/rtld.c (_dl_start): Likewise.
9794 (dl_main): Likewise. Add dyn_temp static variable.
9796 2002-10-11 Roland McGrath <roland@redhat.com>
9798 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
9799 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
9801 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
9802 proper set of no-op insn prefixes.
9804 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
9806 2002-10-11 Ulrich Drepper <drepper@redhat.com>
9808 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
9809 __pthread_kill_other_threads_np.
9811 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
9813 2002-10-08 Roland McGrath <roland@redhat.com>
9815 * locale/newlocale.c (__newlocale): If setting all categories to "C",
9816 just return &_nl_C_locobj instead of copying it.
9817 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
9818 * locale/duplocale.c (__duplocale): Likewise.
9820 2002-10-07 Roland McGrath <roland@frob.com>
9822 * config.h.in (HAVE_I386_SET_GDT): New #undef.
9823 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
9824 * sysdeps/mach/configure: Regenerated.
9826 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9828 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
9829 Add all necessary register outputs for syscall-clobbered registers.
9831 2002-10-02 David Mosberger <davidm@hpl.hp.com>
9833 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
9834 Itanium 2 (and Itanium).
9835 Fix unwind directives and make it fit in 80 columns.
9836 * sysdeps/ia64/memset.S: Likewise.
9837 * sysdeps/ia64/memcpy.S: Likewise.
9838 Move jump table to .rodata section.
9840 2002-10-03 Roland McGrath <roland@frob.com>
9842 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
9845 2002-10-10 Andreas Jaeger <aj@suse.de>
9847 * sysdeps/x86_64/_mcount.S: Restore correct registers.
9849 2002-10-10 Ulrich Drepper <drepper@redhat.com>
9851 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
9853 2002-10-09 Ulrich Drepper <drepper@redhat.com>
9855 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
9856 _dl_allocate_tls_init. Add rtld_hidden_proto.
9857 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
9859 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
9861 * version.h (VERSION): Bump to 2.3.1.
9863 * Make-dist: Add back one of the tar invocations removed before.
9865 * stdlib/Makefile (distribute): Add allocalim.h.
9867 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
9868 (__libc_tsd_address): Use correct variable name.
9869 Patch by Stefan Jones <stefan.jones@multigig.com>.
9871 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
9872 Reported by edwardsg@sgi.com [PR libc/4678].
9874 * Versions.def (libc): Add GLIBC_2.3.1.
9875 (libpthread): Add GLIBC_2.3.1.
9877 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
9879 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
9880 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
9882 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
9883 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
9885 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
9886 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
9887 and make old name an alias.
9888 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
9889 and make old name an alias.
9890 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
9893 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
9894 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
9896 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
9898 * sysdeps/posix/readv.c: Likewise
9899 * sysdeps/unix/sysv/aix/readv.c: Likewise.
9900 * sysdeps/unix/sysv/linux/readv.c: Likewise.
9901 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
9903 * sysdeps/posix/writev.c: Likewise
9904 * sysdeps/unix/sysv/aix/writev.c: Likewise.
9905 * sysdeps/unix/sysv/linux/writev.c: Likewise.
9907 * include/sys/wait.h: Declare __waitid.
9908 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
9909 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
9911 * sysdeps/posix/waitid.c: Likewise.
9912 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
9914 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
9916 2002-10-07 Jakub Jelinek <jakub@redhat.com>
9918 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
9920 (__MAX_ALLOCA_CUTOFF): Define.
9921 Include allocalim.h.
9922 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
9923 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
9924 host_buffer depending on __libc_use_alloca.
9925 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
9926 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
9927 net_buffer depending on __libc_use_alloca.
9928 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
9929 buf depending on __libc_use_alloca.
9930 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
9931 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
9932 instead of hardcoded constants.
9933 Pass proper size argument to alloca and compute end for wide char
9935 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
9936 instead of hardcoded constants.
9937 * string/strcoll.c (strcoll): Likewise.
9938 * string/strxfrm.c (strxfrm): Likewise.
9939 * sysdeps/posix/readv.c (__readv): Likewise.
9940 * sysdeps/posix/writev.c (__writev): Likewise.
9941 * sysdeps/generic/allocalim.h: New file.
9943 2002-10-08 Roland McGrath <roland@redhat.com>
9945 * configure.in (aux_missing warning): Change "too old" to
9946 "incompatible versions", since for autoconf it's "too new" right now.
9947 * configure: Regenerated.
9949 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
9950 one found doesn't work on our configure.in.
9951 * configure: Regenerated.
9952 * config.make.in (AUTOCONF): New substituted variable.
9953 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
9954 (autoconf-it): ... here, use that instead of defining conditionally.
9955 Use $(AUTOCONF) instead of literal autoconf.
9956 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
9957 with this condition.
9958 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
9960 2002-10-08 Ulrich Drepper <drepper@redhat.com>
9962 * Make-dist (dist): Cleanup a bit. We are not interested in the
9963 14 char filename limit anymore. Remove intermediate files and
9966 2002-10-05 Ulrich Drepper <drepper@redhat.com>
9968 * po/sk.po: Update from translation team.
9969 * po/tr.po: Likewise.
9970 * po/gl.po: Likewise.
9972 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9974 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
9976 2002-10-03 Ulrich Drepper <drepper@redhat.com>
9978 * version.h (RELEASE): Change to stable.
9980 2002-10-03 Jakub Jelinek <jakub@redhat.com>
9982 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
9983 __syscall_exit_group): New prototypes.
9985 2002-10-03 Ulrich Drepper <drepper@redhat.com>
9987 * glibc 2.3 released.
9990 See ChangeLog.13 for earlier changes.