]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 9 Apr 2002 20:36:24 +0000 (20:36 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 9 Apr 2002 20:36:24 +0000 (20:36 +0000)
* sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
* sysdeps/unix/sysv/aix/chown.c: Likewise.
* sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
* sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
* sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
__chown_internal.
* sysdeps/unix/sysv/linux/s390/s390-32//chown.c: Likewise.

* intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
* intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
* intl/ngettext.c: Likewise.

* include/sys/socket.h: Declare __connect_internal and define
__connect macro if not NOT_IN_libc.
* sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
* sysdeps/unix/sysv/aix/connect.c: Likewise.
* sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.

* include/unistd.h: Declare __close_internal and define __close macro
if not NOT_IN_libc.
* libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
WJUMP3): Add extra parenthesis to avoid expanding element names with
macors like __close.
* sysdeps/unix/syscalls.list: Add __close_internal alias.

* include/unistd.h: Declare __dup2_internal and define __dup2 macro
if not NOT_IN_libc.
* sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
* sysdeps/posix/dup2.c: Use INTDEF for __dup2.
* sysdeps/unix/syscalls.list: Add __dup2_internal alias.

* include/unistd.h: Declare __fork_internal and define __fork macro
if not NOT_IN_libc.
* sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
* sysdeps/unix/sysv/aix/fork.c: Likewise.
* sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.

* include/stdio_ext.h: Declare __fsetlocking_internal and define
__fsetlocking macro to use it if not NOT_IN_libc.
* libio/__fsetlocking.c: Use INTDEF for __fsetlocking.

* libio/__fbufsize.c: Correct copyright.
* libio/__flbf.c: Likewise.
* libio/__fpending.c: Likewise.
* libio/__fpurge.c: Likewise.
* libio/__freadable.c: Likewise.
* libio/__freading.c: Likewise.
* libio/__fsetlocking.c: Likewise.
* libio/__fwritable.c: Likewise.
* libio/__fwriting.c: Likewise.

* include/stdio.h: Declare __asprintf_internal and define __asprintf
macro to use it if not NOT_IN_libc.
* stdio-common/asprintf.c: Use INTDEF for __asprintf.

* include/mntent.h: Declare __setmntent_internal,
__getmntent_r_internal, __endmntent_internal.  Define __setmntent,
__getmntent_r, and __endmntent macros to use these functions if not
NOT_IN_libc.
* misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
__endmntent.

* include/math.h: Declare __finite_internal, __finitef_internal, and
__finitel_internal.  Redefine isfinite macro if in libc or libm using
these functions.
* sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
* sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
* sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
* sysdeps/i386/fpu/s_finite.S: Define _internal alias.
* sysdeps/i386/fpu/s_finitef.S: Likewise.
* sysdeps/i386/fpu/s_finitel.S: Likewise.
* sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
* sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
* sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
* sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.

* include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
to use this function if not NOT_IN_libc.
* libio/iofdopen.c (_IO_fcntl): Use INTUSE.
* sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
* sysdeps/mach/hurd/fcntl.c: Likewise.
* sysdeps/unix/sysv/aix/fcntl.c: Likewise.
* sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.

* include/argz.h: Declare __argz_count_internal and
__argz_stringify_internal.
* intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
__argz_stringify.
* string/argz-count.c: Use INTDEF for __argz_count.
* string/argz-stringify.c: Use INTDEF for __argz_stringify.

* include/stdlib.h: Declare __cxa_atexit_internal and define
__cxa_atexit macro if not NOT_IN_libc.
* stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
* dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.

* assert/assert.c: Use INTDEF for __assert_fail.
* assert/__assert.c: Use INTUSE for call to __assert_fail.
* include/assert.h: Declare __assert_fail_internal.

66 files changed:
ChangeLog
Makerules
assert/__assert.c
assert/assert.c
dlfcn/Makefile
include/argz.h
include/assert.h
include/fcntl.h
include/math.h
include/mntent.h
include/stdio.h
include/stdio_ext.h
include/stdlib.h
include/sys/socket.h
include/unistd.h
intl/dcngettext.c
intl/dngettext.c
intl/l10nflist.c
intl/ngettext.c
libio/__fbufsize.c
libio/__flbf.c
libio/__fpending.c
libio/__fpurge.c
libio/__freadable.c
libio/__freading.c
libio/__fsetlocking.c
libio/__fwritable.c
libio/__fwriting.c
libio/iofdopen.c
libio/libioP.h
linuxthreads/sysdeps/unix/sysv/linux/bits/local_lim.h
misc/mntent_r.c
stdio-common/asprintf.c
stdlib/cxa_atexit.c
string/argz-count.c
string/argz-stringify.c
sysdeps/generic/fcntl.c
sysdeps/generic/s_ldexp.c
sysdeps/generic/s_ldexpf.c
sysdeps/generic/s_ldexpl.c
sysdeps/i386/fpu/s_finite.S
sysdeps/i386/fpu/s_finitef.S
sysdeps/i386/fpu/s_finitel.S
sysdeps/ieee754/dbl-64/s_finite.c
sysdeps/ieee754/flt-32/s_finitef.c
sysdeps/ieee754/ldbl-128/s_finitel.c
sysdeps/ieee754/ldbl-96/s_finitel.c
sysdeps/mach/hurd/chown.c
sysdeps/mach/hurd/connect.c
sysdeps/mach/hurd/dup2.c
sysdeps/mach/hurd/fcntl.c
sysdeps/mach/hurd/fork.c
sysdeps/posix/dup2.c
sysdeps/unix/grantpt.c
sysdeps/unix/syscalls.list
sysdeps/unix/sysv/aix/chown.c
sysdeps/unix/sysv/aix/connect.c
sysdeps/unix/sysv/aix/fcntl.c
sysdeps/unix/sysv/aix/fork.c
sysdeps/unix/sysv/linux/connect.S
sysdeps/unix/sysv/linux/i386/chown.c
sysdeps/unix/sysv/linux/i386/fcntl.c
sysdeps/unix/sysv/linux/m68k/chown.c
sysdeps/unix/sysv/linux/powerpc/chown.c
sysdeps/unix/sysv/linux/s390/s390-32/chown.c
sysdeps/unix/sysv/linux/syscalls.list

index e786cacfd012ff90750782cb0605dc106e90b65c..c799a8bc0ee7f3c3694a6d40f6c40a58a9f2ef6c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,106 @@
 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
+       * sysdeps/unix/sysv/aix/chown.c: Likewise.
+       * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
+       * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
+       * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
+       __chown_internal.
+       * sysdeps/unix/sysv/linux/s390/s390-32//chown.c: Likewise.
+
+       * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
+       * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
+       * intl/ngettext.c: Likewise.
+
+       * include/sys/socket.h: Declare __connect_internal and define
+       __connect macro if not NOT_IN_libc.
+       * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
+       * sysdeps/unix/sysv/aix/connect.c: Likewise.
+       * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
+
+       * include/unistd.h: Declare __close_internal and define __close macro
+       if not NOT_IN_libc.
+       * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
+       WJUMP3): Add extra parenthesis to avoid expanding element names with
+       macors like __close.
+       * sysdeps/unix/syscalls.list: Add __close_internal alias.
+
+       * include/unistd.h: Declare __dup2_internal and define __dup2 macro
+       if not NOT_IN_libc.
+       * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
+       * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
+       * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
+
+       * include/unistd.h: Declare __fork_internal and define __fork macro
+       if not NOT_IN_libc.
+       * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
+       * sysdeps/unix/sysv/aix/fork.c: Likewise.
+       * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
+
+       * include/stdio_ext.h: Declare __fsetlocking_internal and define
+       __fsetlocking macro to use it if not NOT_IN_libc.
+       * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
+
+       * libio/__fbufsize.c: Correct copyright.
+       * libio/__flbf.c: Likewise.
+       * libio/__fpending.c: Likewise.
+       * libio/__fpurge.c: Likewise.
+       * libio/__freadable.c: Likewise.
+       * libio/__freading.c: Likewise.
+       * libio/__fsetlocking.c: Likewise.
+       * libio/__fwritable.c: Likewise.
+       * libio/__fwriting.c: Likewise.
+
+       * include/stdio.h: Declare __asprintf_internal and define __asprintf
+       macro to use it if not NOT_IN_libc.
+       * stdio-common/asprintf.c: Use INTDEF for __asprintf.
+
+       * include/mntent.h: Declare __setmntent_internal,
+       __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
+       __getmntent_r, and __endmntent macros to use these functions if not
+       NOT_IN_libc.
+       * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
+       __endmntent.
+
+       * include/math.h: Declare __finite_internal, __finitef_internal, and
+       __finitel_internal.  Redefine isfinite macro if in libc or libm using
+       these functions.
+       * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
+       * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
+       * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
+       * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
+       * sysdeps/i386/fpu/s_finitef.S: Likewise.
+       * sysdeps/i386/fpu/s_finitel.S: Likewise.
+       * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
+       * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
+       * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
+       * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
+
+       * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
+       to use this function if not NOT_IN_libc.
+       * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
+       * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
+       * sysdeps/mach/hurd/fcntl.c: Likewise.
+       * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
+       * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
+
+       * include/argz.h: Declare __argz_count_internal and
+       __argz_stringify_internal.
+       * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
+       __argz_stringify.
+       * string/argz-count.c: Use INTDEF for __argz_count.
+       * string/argz-stringify.c: Use INTDEF for __argz_stringify.
+
+       * include/stdlib.h: Declare __cxa_atexit_internal and define
+       __cxa_atexit macro if not NOT_IN_libc.
+       * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
+       * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
+
+       * assert/assert.c: Use INTDEF for __assert_fail.
+       * assert/__assert.c: Use INTUSE for call to __assert_fail.
+       * include/assert.h: Declare __assert_fail_internal.
+
        * extra-lib.mk: Mark assignment to lib with override.
 
 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
index 7ef49ba83a11f50a7591e2b20e075569b3b75bcb..72fdc92f5e45424a2dc424d7f099eef4335be6f1 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -1038,7 +1038,7 @@ check: tests
 
 ifneq (,$(tests))
 cpp-srcs-left = $(tests)
-lib = tests
+lib := tests
 include $(patsubst %,$(..)cppflags-iterator.mk,$(tests))
 endif
 \f
index b72ea9f567f5dba11f84a15837fc382448d34aa3..94f34d1561c498daa2dfb6a845beb664d6d6b0d9 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -23,5 +23,5 @@
 void
 __assert (const char *assertion, const char *file, int line)
 {
-  __assert_fail (assertion, file, line, (const char *) 0);
+  INTUSE(__assert_fail) (assertion, file, line, (const char *) 0);
 }
index aa20f1f6a0cffc3b7f3307ec5dacba82216f42f3..453d2af8a3a7ba672e9d23ed1ce95237b8005f0e 100644 (file)
@@ -79,3 +79,4 @@ __assert_fail (const char *assertion, const char *file, unsigned int line,
 
   abort ();
 }
+INTDEF(__assert_fail)
index abe40965abd6be08406735e890d346e12fb06953..9faee3edf4dcf2748a169f6d626aa34dba26545b 100644 (file)
@@ -83,6 +83,7 @@ $(objpfx)errmsg1.out: $(objpfx)errmsg1 $(objpfx)errmsg1mod.so
 $(objpfx)tstatexit: $(libdl)
 $(objpfx)tstatexit.out: $(objpfx)tstatexit $(objpfx)modatexit.so
 
+CPPFLAGS-modcxaatexit.c = -DNOT_IN_libc
 $(objpfx)tstcxaatexit: $(libdl)
 $(objpfx)tstcxaatexit.out: $(objpfx)tstcxaatexit $(objpfx)modcxaatexit.so
 
index 179e6931063b468bad21cb7834f810fdb1468e7e..0b4f8a04828415e3c5bad182a9b51b5a00e14f60 100644 (file)
@@ -1 +1,10 @@
+f#ifndef _ARGZ_H
+
 #include <string/argz.h>
+
+extern size_t __argz_count_internal (__const char *__argz, size_t __len)
+     __attribute_pure__ attribute_hidden;
+extern void __argz_stringify_internal (char *__argz, size_t __len, int __sep)
+     attribute_hidden;
+
+#endif
index e2fa7020c112c8a40c8265e89e34ba1b77a5e9f2..e18d37364f00c81a3d6be490d454bbf8c792ea3a 100644 (file)
@@ -1 +1,7 @@
 #include <assert/assert.h>
+
+extern void __assert_fail_internal (__const char *__assertion,
+                                   __const char *__file,
+                                   unsigned int __line,
+                                   __const char *__function)
+     __attribute__ ((__noreturn__)) attribute_hidden;
index 748854a023b673fc5a43322e221f67c6de323faa..7ac5febbf2facb8e0ae2c946ec1045c70833c8e3 100644 (file)
@@ -7,6 +7,11 @@ extern int __libc_open64 (const char *file, int oflag, ...);
 extern int __libc_open (const char *file, int oflag, ...);
 extern int __libc_fcntl (int fd, int cmd, ...);
 extern int __open (__const char *__file, int __oflag, ...);
-extern int __fcntl (int __fd, int __cmd, ...) __THROW;
+extern int __fcntl (int __fd, int __cmd, ...);
+extern int __fcntl_internal (int __fd, int __cmd, ...);
+
+#ifndef NOT_IN_libc
+# define __fcntl(fd, cmd, args...) INTUSE(__fcntl) (fd, cmd, ##args)
+#endif
 
 #endif
index 8759c28bff5c0e6300faa082de470e7e70e0a3b4..2a694300b7aaa5842ea4c62e3121ad999e4e634f 100644 (file)
@@ -5,4 +5,27 @@
 /* Now define the internal interfaces.  */
 extern int __matherr (struct exception *__exc);
 
+extern int __finite_internal (double __value)
+     __attribute__ ((__const__)) attribute_hidden;
+extern int __finitef_internal (float __value)
+     __attribute__ ((__const__)) attribute_hidden;
+extern int __finitel_internal (long double __value)
+     __attribute__ ((__const__)) attribute_hidden;
+
+#if !defined NOT_IN_libc || defined IS_IN_libm
+# undef isfinite
+# ifdef __NO_LONG_DOUBLE_MATH
+#  define isfinite(x) \
+     (sizeof (x) == (sizeof (float)                                          \
+                    ? INTUSE(__finitef) (x) : INTUSE(__finite) (x)))
+# else
+#  define isfinite(x) \
+     (sizeof (x) == sizeof (float)                                           \
+      ? INTUSE(__finitef) (x)                                                \
+      : sizeof (x) == sizeof (double)                                        \
+      ? INTUSE(__finite) (x) : INTUSE(__finitel) (x))
+# endif
+#endif
+
+
 #endif
index 7035630444bf6606b19f365fa063f4b6ab6c2d76..421f1df5dea112b27c61be1c3495559518138d7a 100644 (file)
@@ -3,11 +3,25 @@
 
 /* Now define the internal interfaces.  */
 extern FILE *__setmntent (__const char *__file, __const char *__mode);
+extern FILE *__setmntent_internal (__const char *__file, __const char *__mode);
 extern struct mntent *__getmntent_r (FILE *__stream,
                                     struct mntent *__result,
                                     char *__buffer, int __bufsize);
+extern struct mntent *__getmntent_r_internal (FILE *__stream,
+                                             struct mntent *__result,
+                                             char *__buffer, int __bufsize)
+     attribute_hidden;
 extern int __addmntent (FILE *__stream, __const struct mntent *__mnt);
 extern int __endmntent (FILE *__stream);
+extern int __endmntent_internal (FILE *__stream) attribute_hidden;
 extern char *__hasmntopt (__const struct mntent *__mnt,
                          __const char *__opt);
+
+#ifndef NOT_IN_libc
+# define __setmntent(file, mode) INTUSE(__setmntent) (file, mode)
+# define __endmntent(stream) INTUSE(__endmntent) (stream)
+# define __getmntent_r(stream, result, buffer, bufsize) \
+  INTUSE(__getmntent_r) (stream, result, buffer, bufsize)
+#endif
+
 #endif
index a72d1d741a8bef39fee0c2e493298c3d56712f7b..0eddd7d8b25af05ece1216e09d154e0905fd96cc 100644 (file)
@@ -77,6 +77,14 @@ extern wint_t __getwc_unlocked (FILE *__fp);
 extern __const char *__const _sys_errlist_internal[] attribute_hidden;
 extern int _sys_nerr_internal attribute_hidden;
 
+extern int __asprintf_internal (char **__restrict __ptr,
+                               __const char *__restrict __fmt, ...)
+     attribute_hidden __attribute__ ((__format__ (__printf__, 2, 3)));
+#  ifndef NOT_IN_libc
+#    define __asprintf(ptr, fmt, args...) \
+  INTUSE(__asprintf) (ptr, fmt, ##args)
+#  endif
+
 # endif
 
 #endif
index 09db6f2c9c0b56e3a2d8dff0efd2f1d3607071ad..31c7a4e7a1bf1f723fd6325f52af9b1136f5994f 100644 (file)
@@ -2,4 +2,10 @@
 
 # include <stdio-common/stdio_ext.h>
 
+extern int __fsetlocking_internal (FILE *__fp, int __type) attribute_hidden;
+
+#ifndef NOT_IN_libc
+# define __fsetlocking(fp, type) INTUSE(__fsetlocking) (fp, type)
+#endif
+
 #endif
index 110a78ca17a506396574f5122b33491df70fe580..f4e6d30ca7a96e884605b89f753ae9819a44d3c7 100644 (file)
@@ -60,6 +60,8 @@ extern void _quicksort (void *const pbase, size_t total_elems,
 extern int __on_exit (void (*__func) (int __status, void *__arg), void *__arg);
 
 extern int __cxa_atexit (void (*func) (void *), void *arg, void *d);
+extern int __cxa_atexit_internal (void (*func) (void *), void *arg, void *d)
+     attribute_hidden;
 
 extern void __cxa_finalize (void *d);
 
@@ -150,6 +152,8 @@ __strtoull_l (__const char * __restrict __nptr, char **__restrict __endptr,
 # ifndef NOT_IN_libc
 #  undef MB_CUR_MAX
 #  define MB_CUR_MAX (_NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_MB_CUR_MAX))
+
+# define __cxa_atexit(func, arg, d) INTUSE(__cxa_atexit) (func, arg, d)
 # endif
 
 #endif
index 4ae71085090f9cb1bbb40822050cf68e2495a2d2..c09eac488faaafd57699afc85af1eeb0099a0538 100644 (file)
@@ -27,6 +27,8 @@ extern ssize_t __send (int __fd, __const void *__buf, size_t __n, int __flags);
    and the only address from which to accept transmissions.
    Return 0 on success, -1 for errors.  */
 extern int __connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len);
+extern int __connect_internal (int __fd, __CONST_SOCKADDR_ARG __addr,
+                              socklen_t __len) attribute_hidden;
 
 /* Return the length of a `sockaddr' structure.  */
 #ifdef _HAVE_SA_LEN
@@ -36,4 +38,9 @@ extern int __connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len);
 extern int __libc_sa_len (sa_family_t __af) __THROW;
 #endif
 
+
+#ifndef NOT_IN_libc
+# define __connect(fd, addr, len) INTUSE(__connect) (fd, addr, len)
+#endif
+
 #endif
index 5cd4360c550b090e337d3a82ea351b216a0cb57b..f2d31a195ceb454c23aedc9cc411ec67f7916486 100644 (file)
@@ -51,6 +51,7 @@ char *__canonicalize_directory_name_internal (__const char *__thisdir,
 
 extern int __dup (int __fd);
 extern int __dup2 (int __fd, int __fd2);
+extern int __dup2_internal (int __fd, int __fd2) attribute_hidden;
 extern int __execve (__const char *__path, char *__const __argv[],
                     char *__const __envp[]);
 extern long int __pathconf (__const char *__path, int __name);
@@ -83,9 +84,11 @@ extern int __profil (unsigned short int *__sample_buffer, size_t __size,
 extern int __getdtablesize (void);
 extern int __brk (void *__addr);
 extern int __close (int __fd);
+extern int __close_internal (int __fd) attribute_hidden;
 extern ssize_t __read (int __fd, void *__buf, size_t __nbytes);
 extern ssize_t __write (int __fd, __const void *__buf, size_t __n);
 extern __pid_t __fork (void);
+extern __pid_t __fork_internal (void) attribute_hidden;
 extern int __getpagesize (void) __attribute__ ((__const__));
 extern int __ftruncate (int __fd, __off_t __length);
 extern int __ftruncate64 (int __fd, __off64_t __length);
@@ -108,4 +111,10 @@ extern int __libc_enable_secure_internal attribute_hidden;
 extern void __libc_check_standard_fds (void);
 
 
+#ifndef NOT_IN_libc
+# define __close(fd) INTUSE(__close) (fd)
+# define __dup2(fd, fd2) INTUSE(__dup2) (fd, fd2)
+# define __fork() INTUSE(__fork) ()
+#endif
+
 #endif
index 068d5fa3f14d2db45953998f1fa868398b413015..6d360a109a3adfc5c2604a624674f019031ede32 100644 (file)
@@ -1,5 +1,5 @@
 /* Implementation of the dcngettext(3) function.
-   Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1995-1999, 2000, 2001, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -57,5 +57,6 @@ DCNGETTEXT (domainname, msgid1, msgid2, n, category)
 
 #ifdef _LIBC
 /* Alias for function name in GNU C Library.  */
+INTDEF(__dcngettext)
 weak_alias (__dcngettext, dcngettext);
 #endif
index 14f06c37797763909ba8e5b28d52bcf617b3d354..2f24f9c1c9fdfc7926842fe53363e720bb19ad1a 100644 (file)
@@ -1,5 +1,5 @@
 /* Implementation of the dngettext(3) function.
-   Copyright (C) 1995-1997, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1995-1997, 2000, 2001, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -38,7 +38,7 @@
    prefix.  So we have to make a difference here.  */
 #ifdef _LIBC
 # define DNGETTEXT __dngettext
-# define DCNGETTEXT __dcngettext
+# define DCNGETTEXT INTUSE(__dcngettext)
 #else
 # define DNGETTEXT dngettext__
 # define DCNGETTEXT dcngettext__
index bb5900068c5bfe44e8f022b8dbf3c3b5498199b6..80d8acebad385960a6dcd74cacf423283f8e0705 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1995-1999, 2000, 2001, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
 
@@ -86,6 +86,10 @@ argz_count__ (argz, len)
 }
 # undef __argz_count
 # define __argz_count(argz, len) argz_count__ (argz, len)
+#else
+# ifdef _LIBC
+#  define __argz_count(argz, len) INTUSE(__argz_count) (argz, len)
+# endif
 #endif /* !_LIBC && !HAVE___ARGZ_COUNT */
 
 #if !defined _LIBC && !defined HAVE___ARGZ_STRINGIFY
@@ -110,6 +114,11 @@ argz_stringify__ (argz, len, sep)
 }
 # undef __argz_stringify
 # define __argz_stringify(argz, len, sep) argz_stringify__ (argz, len, sep)
+#else
+# ifdef _LIBC
+#  define __argz_stringify(argz, len, sep) \
+  INTUSE(__argz_stringify) (argz, len, sep)
+# endif
 #endif /* !_LIBC && !HAVE___ARGZ_STRINGIFY */
 
 #if !defined _LIBC && !defined HAVE___ARGZ_NEXT
index b58c5648546172cf9289c51f51e103a9b3258419..7843d75711f0ae142edce4c577fd89ee0ba25fc7 100644 (file)
@@ -1,5 +1,5 @@
 /* Implementation of ngettext(3) function.
-   Copyright (C) 1995, 1997, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1997, 2000, 2001, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -45,7 +45,7 @@
    prefix.  So we have to make a difference here.  */
 #ifdef _LIBC
 # define NGETTEXT __ngettext
-# define DCNGETTEXT __dcngettext
+# define DCNGETTEXT INTUSE(__dcngettext)
 #else
 # define NGETTEXT ngettext__
 # define DCNGETTEXT dcngettext__
index 67cf14347790f34c63734eee567c6f3f7f9a7fd2..cd300f9c462e2221fb2d56bb3311517f690f578a 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, write to the Free
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.
-
-   As a special exception, if you link the code in this file with
-   files compiled with a GNU compiler to produce an executable,
-   that does not cause the resulting executable to be covered by
-   the GNU Lesser General Public License.  This exception does not
-   however invalidate any other reasons why the executable file
-   might be covered by the GNU Lesser General Public License.
-   This exception applies to code released by its copyright holders
-   in files containing the exception.  */
+   02111-1307 USA.  */
 
 #include <stdio_ext.h>
 
index 9146bbb11822685003a121e9fad91c1f9eeed8b4..70c6806aebc89cfe0e627879d3f7baefa64aef66 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, write to the Free
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.
-
-   As a special exception, if you link the code in this file with
-   files compiled with a GNU compiler to produce an executable,
-   that does not cause the resulting executable to be covered by
-   the GNU Lesser General Public License.  This exception does not
-   however invalidate any other reasons why the executable file
-   might be covered by the GNU Lesser General Public License.
-   This exception applies to code released by its copyright holders
-   in files containing the exception.  */
+   02111-1307 USA.  */
 
 #include <stdio_ext.h>
 
index 649b46df27dd4a9613fae828609a873ec9c3c98d..c9be0f8ab873243f97dedae6463899c0bb95e5a1 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, write to the Free
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.
-
-   As a special exception, if you link the code in this file with
-   files compiled with a GNU compiler to produce an executable,
-   that does not cause the resulting executable to be covered by
-   the GNU Lesser General Public License.  This exception does not
-   however invalidate any other reasons why the executable file
-   might be covered by the GNU Lesser General Public License.
-   This exception applies to code released by its copyright holders
-   in files containing the exception.  */
+   02111-1307 USA.  */
 
 #include <stdio_ext.h>
 
index 50ba2812ee74729eec0c525211d4a344655347b4..c02d8e9213861a723648574edacbf28037698d37 100644 (file)
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, write to the Free
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.
-
-   As a special exception, if you link the code in this file with
-   files compiled with a GNU compiler to produce an executable,
-   that does not cause the resulting executable to be covered by
-   the GNU Lesser General Public License.  This exception does not
-   however invalidate any other reasons why the executable file
-   might be covered by the GNU Lesser General Public License.
-   This exception applies to code released by its copyright holders
-   in files containing the exception.  */
+   02111-1307 USA.  */
 
 #include <stdio_ext.h>
 #include "libioP.h"
index 6ab6f272e13e1b2e395a2d206c275b686bcf116c..ff14250829d9dc133018a30243a90f4e745fba0d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, write to the Free
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.
-
-   As a special exception, if you link the code in this file with
-   files compiled with a GNU compiler to produce an executable,
-   that does not cause the resulting executable to be covered by
-   the GNU Lesser General Public License.  This exception does not
-   however invalidate any other reasons why the executable file
-   might be covered by the GNU Lesser General Public License.
-   This exception applies to code released by its copyright holders
-   in files containing the exception.  */
+   02111-1307 USA.  */
 
 #include <stdio_ext.h>
 
index 51e5ee501697d40490176b22406d3f446caaefb5..37200bba78189d17394bc44bd23191e6600e53d1 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, write to the Free
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.
-
-   As a special exception, if you link the code in this file with
-   files compiled with a GNU compiler to produce an executable,
-   that does not cause the resulting executable to be covered by
-   the GNU Lesser General Public License.  This exception does not
-   however invalidate any other reasons why the executable file
-   might be covered by the GNU Lesser General Public License.
-   This exception applies to code released by its copyright holders
-   in files containing the exception.  */
+   02111-1307 USA.  */
 
 #include <stdio_ext.h>
 
index b56128f1f09cc2989f7dcfd8c519912f5122234f..0542e08dbecfb9be1d01056a1a65c9268c559207 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, write to the Free
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.
-
-   As a special exception, if you link the code in this file with
-   files compiled with a GNU compiler to produce an executable,
-   that does not cause the resulting executable to be covered by
-   the GNU Lesser General Public License.  This exception does not
-   however invalidate any other reasons why the executable file
-   might be covered by the GNU Lesser General Public License.
-   This exception applies to code released by its copyright holders
-   in files containing the exception.  */
+   02111-1307 USA.  */
 
 #include <stdio_ext.h>
 
+#undef __fsetlocking
+
 int
 __fsetlocking (FILE *fp, int type)
 {
@@ -42,3 +35,4 @@ __fsetlocking (FILE *fp, int type)
 
   return result;
 }
+INTDEF(__fsetlocking)
index 6885cc2575b41c9a8ab24286421d26f27686ef69..60ceeb5cbd3e04d03e2f37bffe9716de47f297ca 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, write to the Free
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.
-
-   As a special exception, if you link the code in this file with
-   files compiled with a GNU compiler to produce an executable,
-   that does not cause the resulting executable to be covered by
-   the GNU Lesser General Public License.  This exception does not
-   however invalidate any other reasons why the executable file
-   might be covered by the GNU Lesser General Public License.
-   This exception applies to code released by its copyright holders
-   in files containing the exception.  */
+   02111-1307 USA.  */
 
 #include <stdio_ext.h>
 
index f2ba6b95087d89d78bf21b4b21f8b89bcbdb35ed..c62884a5b1190cd66c44146d1bcffaa691157e37 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, write to the Free
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.
-
-   As a special exception, if you link the code in this file with
-   files compiled with a GNU compiler to produce an executable,
-   that does not cause the resulting executable to be covered by
-   the GNU Lesser General Public License.  This exception does not
-   however invalidate any other reasons why the executable file
-   might be covered by the GNU Lesser General Public License.
-   This exception applies to code released by its copyright holders
-   in files containing the exception.  */
+   02111-1307 USA.  */
 
 #include <stdio_ext.h>
 
index 1c76ba7a4f43a78a3ff4d2eb53ac96f65c3b7282..5167220aa214b3998cba9569ec8ac2ef2540aa5d 100644 (file)
@@ -37,7 +37,7 @@
 
 #ifndef _IO_fcntl
 #ifdef _LIBC
-#define _IO_fcntl __fcntl
+#define _IO_fcntl INTUSE(__fcntl)
 #else
 #define _IO_fcntl fcntl
 #endif
index 1679e1fffaf3d26393636b173ed76bcf19d83163..553cfc9905f0bbe1d06a17cb721ad54db24dff2b 100644 (file)
@@ -97,17 +97,17 @@ extern "C" {
 #define _IO_WIDE_JUMPS_FUNC(THIS) _IO_WIDE_JUMPS(THIS)
 #ifdef _G_USING_THUNKS
 # define JUMP_FIELD(TYPE, NAME) TYPE NAME
-# define JUMP0(FUNC, THIS) _IO_JUMPS_FUNC(THIS)->FUNC (THIS)
-# define JUMP1(FUNC, THIS, X1) _IO_JUMPS_FUNC(THIS)->FUNC (THIS, X1)
-# define JUMP2(FUNC, THIS, X1, X2) _IO_JUMPS_FUNC(THIS)->FUNC (THIS, X1, X2)
-# define JUMP3(FUNC, THIS, X1,X2,X3) _IO_JUMPS_FUNC(THIS)->FUNC (THIS, X1,X2, X3)
+# define JUMP0(FUNC, THIS) (_IO_JUMPS_FUNC(THIS)->FUNC) (THIS)
+# define JUMP1(FUNC, THIS, X1) (_IO_JUMPS_FUNC(THIS)->FUNC) (THIS, X1)
+# define JUMP2(FUNC, THIS, X1, X2) (_IO_JUMPS_FUNC(THIS)->FUNC) (THIS, X1, X2)
+# define JUMP3(FUNC, THIS, X1,X2,X3) (_IO_JUMPS_FUNC(THIS)->FUNC) (THIS, X1,X2, X3)
 # define JUMP_INIT(NAME, VALUE) VALUE
 # define JUMP_INIT_DUMMY JUMP_INIT(dummy, 0), JUMP_INIT (dummy2, 0)
 
-# define WJUMP0(FUNC, THIS) _IO_WIDE_JUMPS_FUNC(THIS)->FUNC (THIS)
-# define WJUMP1(FUNC, THIS, X1) _IO_WIDE_JUMPS_FUNC(THIS)->FUNC (THIS, X1)
-# define WJUMP2(FUNC, THIS, X1, X2) _IO_WIDE_JUMPS_FUNC(THIS)->FUNC (THIS, X1, X2)
-# define WJUMP3(FUNC, THIS, X1,X2,X3) _IO_WIDE_JUMPS_FUNC(THIS)->FUNC (THIS, X1,X2, X3)
+# define WJUMP0(FUNC, THIS) (_IO_WIDE_JUMPS_FUNC(THIS)->FUNC) (THIS)
+# define WJUMP1(FUNC, THIS, X1) (_IO_WIDE_JUMPS_FUNC(THIS)->FUNC) (THIS, X1)
+# define WJUMP2(FUNC, THIS, X1, X2) (_IO_WIDE_JUMPS_FUNC(THIS)->FUNC) (THIS, X1, X2)
+# define WJUMP3(FUNC, THIS, X1,X2,X3) (_IO_WIDE_JUMPS_FUNC(THIS)->FUNC) (THIS, X1,X2, X3)
 #else
 /* These macros will change when we re-implement vtables to use "thunks"! */
 # define JUMP_FIELD(TYPE, NAME) struct { short delta1, delta2; TYPE pfn; } NAME
index 0a7c83706f717ed9fa1adb6ac2cbd5d5ddaa7aa6..63de09a1b0da24fb6bff0f7f0ae46cf72c325e7e 100644 (file)
@@ -1,5 +1,5 @@
 /* Minimum guaranteed maximum values for system limits.  Linux version.
-   Copyright (C) 1993, 94, 95, 96, 97, 98, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1993,94,95,96,97,98,2000,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -75,3 +75,6 @@
 
 /* Maximum number of POSIX timers available.  */
 #define TIMER_MAX      256
+
+/* Maximum number of timer expiration overruns.  */
+#define DELAYTIMER_MAX 2147483647
index 1a87105657aad458c760ae5621fd421a3fd36537..7a394186d489cc3a2598bf1c6b38c33b398aa50b 100644 (file)
@@ -1,5 +1,5 @@
 /* Utilities for reading/writing fstab, mtab, etc.
-   Copyright (C) 1995-2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1995-2000, 2001, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 # define funlockfile(s) _IO_funlockfile (s)
 #endif
 
+#undef __setmntent
+#undef __endmntent
+#undef __getmntent_r
+
 /* Prepare to begin reading and/or writing mount table entries from the
    beginning of FILE.  MODE is as for `fopen'.  */
 FILE *
@@ -42,6 +46,7 @@ __setmntent (const char *file, const char *mode)
 
   return result;
 }
+INTDEF(__setmntent)
 weak_alias (__setmntent, setmntent)
 
 
@@ -53,6 +58,7 @@ __endmntent (FILE *stream)
     fclose (stream);
   return 1;            /* SunOS 4.x says to always return 1 */
 }
+INTDEF(__endmntent)
 weak_alias (__endmntent, endmntent)
 
 
@@ -157,6 +163,7 @@ __getmntent_r (FILE *stream, struct mntent *mp, char *buffer, int bufsiz)
 
   return mp;
 }
+INTDEF(__getmntent_r)
 weak_alias (__getmntent_r, getmntent_r)
 
 
index 37b8879c33e31ff21c7287259c05a37b72e07337..3b211d62b864a3df4ea71dac75bc992fc3066edc 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1995, 1997, 1998, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -23,6 +23,7 @@
 # include <libio/libioP.h>
 # define vasprintf(s, f, a) _IO_vasprintf (s, f, a)
 #endif
+#undef __asprintf
 
 /* Write formatted output from FORMAT to a string which is
    allocated with malloc and stored in *STRING_PTR.  */
@@ -39,4 +40,5 @@ __asprintf (char **string_ptr, const char *format, ...)
 
   return done;
 }
+INTDEF(__asprintf)
 weak_alias (__asprintf, asprintf)
index 78acbbdb3d66f4989d672d01d0a673aea2d6e800..a3d4c5037dc53ac0068fc7f839276fd8ddf59f32 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -20,6 +20,8 @@
 #include <stdlib.h>
 #include "exit.h"
 
+#undef __cxa_atexit
+
 /* Register a function to be called by exit or when a shared library
    is unloaded.  This function is only called from code generated by
    the C++ compiler.  */
@@ -37,6 +39,7 @@ __cxa_atexit (void (*func) (void *), void *arg, void *d)
   new->func.cxa.dso_handle = d;
   return 0;
 }
+INTDEF(__cxa_atexit)
 
 
 /* We change global data, so we need locking.  */
index 58c797bef7d65cc65fd5b7ad461193924a7006de..39282e84a25abab8ebb0409acec9359fd78ee67d 100644 (file)
@@ -1,5 +1,5 @@
 /* Routines for dealing with '\0' separated arg vectors.
-   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1996, 1997, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Written by Miles Bader <miles@gnu.ai.mit.edu>
 
@@ -35,4 +35,5 @@ __argz_count (const char *argz, size_t len)
     }
   return count;
 }
+INTDEF(__argz_count)
 weak_alias (__argz_count, argz_count)
index 9e1c0c7da603960bbe7da8c9febcef64587da88d..46af8899c8207502cef5e41c34c60029b30f90b9 100644 (file)
@@ -1,5 +1,5 @@
 /* Routines for dealing with '\0' separated arg vectors.
-   Copyright (C) 1995,96,97,2000,2001 Free Software Foundation, Inc.
+   Copyright (C) 1995,96,97,2000,2001, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Written by Miles Bader <miles@gnu.org>
 
@@ -37,4 +37,5 @@ __argz_stringify (char *argz, size_t len, int sep)
        *argz++ = sep;
       }
 }
+INTDEF(__argz_stringify)
 weak_alias (__argz_stringify, argz_stringify)
index 6bc216cca6d38b09b7ab4de1ff857eb446f53f4e..aff3e84503b29321dd2bb9029a3133fc5f899c70 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1995, 1996, 1997, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -19,6 +19,8 @@
 #include <errno.h>
 #include <fcntl.h>
 
+#undef __fcntl
+
 /* Perform file control operations on FD.  */
 int
 __fcntl (fd, cmd)
index 12c336fad49d7d94fac1b5037ff7d0ec6bc45462..20c444f7db1e11f1b541738d4026afec0681a35f 100644 (file)
@@ -25,9 +25,9 @@ static char rcsid[] = "$NetBSD: s_ldexp.c,v 1.6 1995/05/10 20:47:40 jtc Exp $";
        double value; int exp;
 #endif
 {
-       if(!__finite(value)||value==0.0) return value;
+       if(!INTUSE(__finite)(value)||value==0.0) return value;
        value = __scalbn(value,exp);
-       if(!__finite(value)||value==0.0) __set_errno (ERANGE);
+       if(!INTUSE(__finite)(value)||value==0.0) __set_errno (ERANGE);
        return value;
 }
 weak_alias (__ldexp, ldexp)
index 1ecbe8346b7ac7136d88300169248dd6b2123ded..07f0c9ecffb96df0251f657fba37c3b70b9c9f73 100644 (file)
@@ -28,9 +28,10 @@ static char rcsid[] = "$NetBSD: s_ldexpf.c,v 1.3 1995/05/10 20:47:42 jtc Exp $";
        float value; int exp;
 #endif
 {
-       if(!__finitef(value)||value==(float)0.0) return value;
+       if(!INTUSE(__finitef)(value)||value==(float)0.0) return value;
        value = __scalbnf(value,exp);
-       if(!__finitef(value)||value==(float)0.0) __set_errno (ERANGE);
+       if(!INTUSE(__finitef)(value)||value==(float)0.0) __set_errno (ERANGE);
        return value;
 }
+INTDEF(__ldexpf)
 weak_alias (__ldexpf, ldexpf)
index 123a6b3b589484c84c02ef9efb562fbeb76ca081..a5603988f4c491cbdeb61f50390c0c32cb84ce52 100644 (file)
@@ -29,9 +29,9 @@ static char rcsid[] = "$NetBSD: $";
        long double value; int exp;
 #endif
 {
-       if(!__finitel(value)||value==0.0) return value;
+       if(!INTUSE(__finitel)(value)||value==0.0) return value;
        value = __scalbnl(value,exp);
-       if(!__finitel(value)||value==0.0) __set_errno (ERANGE);
+       if(!INTUSE(__finitel)(value)||value==0.0) __set_errno (ERANGE);
        return value;
 }
 weak_alias (__ldexpl, ldexpl)
index 63c766a950a3ee7a711c01cc979dce5779d81d32..52359acdc2d5f79ddd11b2f312e0d1c2ec4569dc 100644 (file)
@@ -12,4 +12,5 @@ ENTRY(__finite)
        shrl    $31, %eax
        ret
 END (__finite)
+strong_alias(__finite, __finite_internal)
 weak_alias (__finite, finite)
index dabb71a115e88f298e99e0d8c97aa1da22b05f84..98c6c59c00f8948295e24cb63eb30d6430633cc7 100644 (file)
@@ -12,4 +12,5 @@ ENTRY(__finitef)
        shrl    $31,%eax
        ret
 END (__finitef)
+strong_alias(__finitef, __finitef_internal)
 weak_alias (__finitef, finitef)
index acc5ad4cd04e495f5a0f5a8042614799de9bf73b..b473443a042b78ed9e9968eb3a0de7562db4fe4b 100644 (file)
@@ -11,4 +11,5 @@ ENTRY(__finitel)
        shrl    $31, %eax
        ret
 END (__finitel)
+strong_alias(__finitel, __finitel_internal)
 weak_alias (__finitel, finitel)
index b12ff423606e626513863ea578e4b0fe63213db4..2317f4a1054dd068a83a1adfd57933cd2e042a3a 100644 (file)
@@ -22,6 +22,8 @@ static char rcsid[] = "$NetBSD: s_finite.c,v 1.8 1995/05/10 20:47:17 jtc Exp $";
 #include "math.h"
 #include "math_private.h"
 
+#undef __finite
+
 #ifdef __STDC__
        int __finite(double x)
 #else
@@ -33,6 +35,7 @@ static char rcsid[] = "$NetBSD: s_finite.c,v 1.8 1995/05/10 20:47:17 jtc Exp $";
        GET_HIGH_WORD(hx,x);
        return (int)((u_int32_t)((hx&0x7fffffff)-0x7ff00000)>>31);
 }
+INTDEF(__finite)
 weak_alias (__finite, finite)
 #ifdef NO_LONG_DOUBLE
 strong_alias (__finite, __finitel)
index baafc31aec75f5b697b0a0bfa5f09e4f4ce425d8..74019c763ea56f9f544822ec5df45b67d0521f42 100644 (file)
@@ -8,7 +8,7 @@
  *
  * Developed at SunPro, a Sun Microsystems, Inc. business.
  * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice 
+ * software is freely granted, provided that this notice
  * is preserved.
  * ====================================================
  */
@@ -25,6 +25,8 @@ static char rcsid[] = "$NetBSD: s_finitef.c,v 1.4 1995/05/10 20:47:18 jtc Exp $"
 #include "math.h"
 #include "math_private.h"
 
+#undef __finitef
+
 #ifdef __STDC__
        int __finitef(float x)
 #else
@@ -36,4 +38,5 @@ static char rcsid[] = "$NetBSD: s_finitef.c,v 1.4 1995/05/10 20:47:18 jtc Exp $"
        GET_FLOAT_WORD(ix,x);
        return (int)((u_int32_t)((ix&0x7fffffff)-0x7f800000)>>31);
 }
+INTDEF(__finitef)
 weak_alias (__finitef, finitef)
index dd176c1e7a4661f27e94ab64a6a6b73e749b9867..a2372dc8d9551f40bf5cb05e2a8d92bbb80cb735 100644 (file)
@@ -25,6 +25,8 @@ static char rcsid[] = "$NetBSD: $";
 #include "math.h"
 #include "math_private.h"
 
+#undef __finitel
+
 #ifdef __STDC__
        int __finitel(long double x)
 #else
@@ -37,4 +39,5 @@ static char rcsid[] = "$NetBSD: $";
        return (int)((u_int64_t)((hx&0x7fffffffffffffffLL)
                                 -0x7fff000000000000LL)>>63);
 }
+INTDEF(__finitel)
 weak_alias (__finitel, finitel)
index 6e444e90d02b8c364a930fa558d29e33fdecf8bf..3bbb21a2bb227e9035d0cd4706c9e8a44f9f77a0 100644 (file)
@@ -26,6 +26,8 @@ static char rcsid[] = "$NetBSD: $";
 #include "math.h"
 #include "math_private.h"
 
+#undef __finitel
+
 #ifdef __STDC__
        int __finitel(long double x)
 #else
@@ -37,4 +39,5 @@ static char rcsid[] = "$NetBSD: $";
        GET_LDOUBLE_EXP(exp,x);
        return (int)((u_int32_t)((exp&0x7fff)-0x7fff)>>31);
 }
+INTDEF(__finitel)
 weak_alias (__finitel, finitel)
index 5c0d8a05eccc8d157b0dfa0b25c4e804fda159dc..cab26fc4196fe5a255d4f6e550a7afb1cb18eb4b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1994, 1995, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1992,1994,1995,1997,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -39,4 +39,5 @@ __chown (file, owner, group)
   return 0;
 }
 
+INTDEF(__chown)
 weak_alias (__chown, chown)
index 178e335ecaea85bde044d3efc42e54eb1fcf981f..30883f65ae9eb4108bf9b27bf405c8c450aa1aad 100644 (file)
@@ -24,6 +24,8 @@
 #include <sys/un.h>
 #include <hurd/ifsock.h>
 
+#undef __connect
+
 /* Open a connection on socket FD to peer at ADDR (which LEN bytes long).
    For connectionless socket types, just set the default address to send to
    and the only address from which to accept transmissions.
@@ -72,4 +74,5 @@ __connect (int fd, __CONST_SOCKADDR_ARG addrarg, socklen_t len)
   return err ? __hurd_dfail (fd, err) : 0;
 }
 
+INTDEF(__connect)
 weak_alias (__connect, connect)
index 6038e87fd9b11eeafe0a46cea76c2695040493ad..64d69d9af14ef7aa112341bb4640fe13ed1c87f8 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 92, 93, 94, 95, 97 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 92, 93, 94, 95, 97, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -22,6 +22,8 @@
 #include <hurd.h>
 #include <hurd/fd.h>
 
+#undef __dup2
+
 
 /* Duplicate FD to FD2, closing the old FD2 and making FD2 be
    open on the same file as FD is.  Return FD2 or -1.  */
@@ -132,4 +134,5 @@ __dup2 (fd, fd2)
   return fd2;
 }
 
+INTDEF(__dup2)
 weak_alias (__dup2, dup2)
index 3b4a0375cdf1c261d5b8dffe7c46c5130c7f0cf6..9c03b3cbc2fc8fb4eb1da371e7722a8b3b1583c9 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992,93,94,95,96,97,99,2000 Free Software Foundation, Inc.
+/* Copyright (C) 1992-1997,1999,2000,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -23,6 +23,8 @@
 #include <stdarg.h>
 #include <sys/file.h>          /* XXX for LOCK_* */
 
+#undef __fcntl
+
 
 /* Perform file control operations on FD.  */
 int
index 635110a9cb784ebdea69fddf1a2c0973d26a16de..b730b344f399145e05bfa0027d81181495b0f5c9 100644 (file)
@@ -27,6 +27,8 @@
 #include <assert.h>
 #include "hurdmalloc.h"                /* XXX */
 
+#undef __fork
+
 
 /* Things that want to be locked while forking.  */
 symbol_set_declare (_hurd_fork_locks)
@@ -675,4 +677,5 @@ __fork (void)
   return err ? __hurd_fail (err) : pid;
 }
 
+INTDEF(__fork)
 weak_alias (__fork, fork)
index 49a8e57ea194f0510c4660b6a2f07e3802dcbcfe..bc8d422831faf62073e7b1d2810cfe1da1dee4df 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 92, 93, 95, 96, 97 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 92, 93, 95, 96, 97, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -21,6 +21,8 @@
 #include <limits.h>
 #include <unistd.h>
 
+#undef __dup2
+
 
 /* Duplicate FD to FD2, closing the old FD2 and making FD2 be
    open the same file as FD is.  Return FD2 or -1.  */
@@ -57,4 +59,5 @@ __dup2 (fd, fd2)
   return fcntl (fd, F_DUPFD, fd2);
 }
 
+INTDEF(__dup2)
 weak_alias (__dup2, dup2)
index dad7d16b43122a0cf3ed02b20258e548beb333cb..f24932b64b3c485d6760f6476f1ea87cd4e4c689 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Zack Weinberg <zack@rabi.phys.columbia.edu>, 1998.
 
@@ -116,7 +116,7 @@ grantpt (int fd)
   uid = __getuid ();
   if (st.st_uid != uid)
     {
-      if (__chown (buf, uid, st.st_gid) < 0)
+      if (INTUSE(__chown) (buf, uid, st.st_gid) < 0)
        goto helper;
     }
 
@@ -132,7 +132,7 @@ grantpt (int fd)
   /* Make sure the group of the device is that special group.  */
   if (st.st_gid != gid)
     {
-      if (__chown (buf, uid, gid) < 0)
+      if (INTUSE(__chown) (buf, uid, gid) < 0)
        goto helper;
     }
 
index 3c605973299cbc437fceba20dceb99a04b3e7a9c..f13cfd42f0c11889d0c5c0cdb64dbbbccba6144e 100644 (file)
@@ -6,9 +6,9 @@ chdir           -       chdir           i:s     __chdir         chdir
 chmod          -       chmod           i:si    __chmod         chmod
 chown          -       chown           i:sii   __chown         chown
 chroot         -       chroot          i:s     chroot
-close          -       close           i:i     __libc_close    __close close
+close          -       close           i:i     __libc_close    __close close __close_internal
 dup            -       dup             i:i     __dup           dup
-dup2           -       dup2            i:ii    __dup2          dup2
+dup2           -       dup2            i:ii    __dup2          dup2 __dup2_internal
 fchdir         -       fchdir          i:i     __fchdir        fchdir
 fcntl          -       fcntl           i:iiF   __libc_fcntl    __fcntl fcntl
 fstatfs                -       fstatfs         i:ip    __fstatfs       fstatfs
index 568c26ac776f6153ce948ee17b238cf7ae255479..037b14b276d6b31291c11cb34ab71fc475517b69 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 
 #include <unistd.h>
 
+#undef __chown
+
 int
 __chown (const char *file, uid_t owner, gid_t group)
 {
   return chown (file, owner, group);
 }
+INTDEF(__chown)
index 7fb636dea92ee08630d37dcce7d6c33d665ff879..2f58be1ede83dbd78f31f50b9661869f577e24dd 100644 (file)
@@ -1,8 +1,11 @@
 /* This is a system call.  We only have to provide the wrapper.  */
 #include <sys/socket.h>
 
+#undef __connect
+
 int
 __connect (int fd, __CONST_SOCKADDR_ARG addr, socklen_t len)
 {
   return connect (fd, addr, len);
 }
+INTDEF(__connect)
index 8c5ba154c25b9f3f5e3ad0fade4fde89b1c981b5..43f21b6e5829e735e8a2a2f3ffdb4101485466b3 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -19,6 +19,8 @@
 #include <fcntl.h>
 #include <stdarg.h>
 
+#undef __fcntl
+
 extern int kfcntl (int fdes, int cmd, unsigned long int arg);
 
 int
index f31f3428a9839cd2a310c4825bb1e1274d390681..085342b7167e18ca0f53281b098add9789d19b96 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 
 #include <unistd.h>
 
+#undef __fork
 
 pid_t
 __fork (void)
 {
   return kfork ();
 }
+INTDEF(__fork)
 strong_alias (__fork, fork)
index d1dd69a217505510e3acb283079503e0f7a48380..2de35180fc38f6c9bcc17c53af050979555a21ce 100644 (file)
@@ -2,4 +2,5 @@
 #define __socket __libc_connect
 #define        NARGS   3
 #include <socket.S>
+strong_alias (__libc_connect, __connect_internal)
 weak_alias (__libc_connect, __connect)
index 025e58df083d06bc515801a31ffa5b0de6e3d376..a54f2b5dd3db85c51590665aa4e31b2b47281ab6 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -154,10 +154,12 @@ compat_symbol (libc, _chown_is_lchown, chown, GLIBC_2_0);
 #endif
 
 #ifdef __NR_lchown
+INTDEF2(__real_chown, __chown)
 strong_alias (__real_chown, _real_chown)
 versioned_symbol (libc, __real_chown, __chown, GLIBC_2_1);
 versioned_symbol (libc, _real_chown, chown, GLIBC_2_1);
 #else
+INTDEF2(__chown_is_lchown, __chown)
 strong_alias (__chown_is_lchown, __chown_is_lchown21)
 strong_alias (__chown_is_lchown, _chown_is_lchown21)
 versioned_symbol (libc, __chown_is_lchown21, __chown, GLIBC_2_1);
index 6e4d591c58ea359472467c52e766a572d63f9058..3c013cc962a22620890f157f80d2ee208aaacb10 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -25,6 +25,8 @@
 #include <sys/syscall.h>
 #include "../kernel-features.h"
 
+#undef __fcntl
+
 extern int __syscall_fcntl (int __fd, int __cmd, ...);
 #ifdef __NR_fcntl64
 extern int __syscall_fcntl64 (int __fd, int __cmd, ...);
@@ -130,6 +132,7 @@ __libc_fcntl (int fd, int cmd, ...)
   return -1;
 #endif  /* __ASSUME_FCNTL64  */
 }
+INTDEF2(__libc_fcntl, __fcntl);
 
 weak_alias (__libc_fcntl, __fcntl)
 weak_alias (__libc_fcntl, fcntl)
index 50e11c1aa95fa38a5ba48a7d10d5f472b4e579fa..f8f4b5c0afecbe10c00e56b788b17071c14747d2 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -71,4 +71,5 @@ __chown (const char *file, uid_t owner, gid_t group)
   return INLINE_SYSCALL (chown, 3, CHECK_STRING (file), owner, group);
 #endif
 }
+INTDEF(__chown)
 weak_alias (__chown, chown)
index a446277c960fb8615751207dc5e3bf07d81e9566..23eaefa5e6799d1fac683375d7ab51347eba6f0b 100644 (file)
@@ -1,5 +1,5 @@
 /* chown() compatibility.
-   Copyright (C) 1998, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1998, 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -44,7 +44,7 @@ __chown (const char *file, uid_t owner, gid_t group)
    int loopct;
    int filelen;
    static int libc_old_chown = 0 /* -1=old linux, 1=new linux, 0=unknown */;
-   
+
    if (libc_old_chown == 1)
      return __syscall_chown (file, owner, group);
 
@@ -62,7 +62,7 @@ __chown (const char *file, uid_t owner, gid_t group)
        libc_old_chown = -1;
      }
 #endif
-   
+
    err = __readlink (file, link, PATH_MAX+1);
    if (err == -1)
      {
@@ -83,7 +83,7 @@ __chown (const char *file, uid_t owner, gid_t group)
    for (loopct = 0; loopct < 128; loopct++)
    {
      int linklen;
-     
+
      if (err >= PATH_MAX+1)
        {
         errno = ENAMETOOLONG;
@@ -93,13 +93,13 @@ __chown (const char *file, uid_t owner, gid_t group)
       link[err] = 0;  /* Null-terminate string, just-in-case.  */
 
       linklen = strlen (link) + 1;
-      
+
       if (link[0] == '/')
        memcpy (path, link, linklen);
       else
        {
          filelen = strlen (path);
-         
+
          while (filelen > 1 && path[filelen-1] == '/')
            filelen--;
          while (filelen > 0 && path[filelen-1] != '/')
@@ -113,9 +113,9 @@ __chown (const char *file, uid_t owner, gid_t group)
        }
 
       err = __readlink(path, link, PATH_MAX+1);
-      
+
       if (err == -1)
-      {  
+      {
        errno = old_errno;
        return __lchown(path, owner, group);
       }
@@ -123,6 +123,7 @@ __chown (const char *file, uid_t owner, gid_t group)
    errno = ELOOP;
    return -1;
 }
+INTDEF(__chown)
 
 #include <shlib-compat.h>
 versioned_symbol (libc, __chown, chown, GLIBC_2_1);
index 1ccf578766e1d28e64847dbf228b21eb7f74bf24..64d7285f13408f65ce1bdcfdd6a2bf6453f79e04 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -109,10 +109,12 @@ strong_alias (__chown_is_lchown, _chown_is_lchown)
 compat_symbol (libc, __chown_is_lchown, __chown, GLIBC_2_0);
 compat_symbol (libc, _chown_is_lchown, chown, GLIBC_2_0);
 
+INTDEF2(__real_chown, __chown)
 strong_alias (__real_chown, _real_chown)
 versioned_symbol (libc, __real_chown, __chown, GLIBC_2_1);
 versioned_symbol (libc, _real_chown, chown, GLIBC_2_1);
 #else
+INTDEF2(__real_chown, __chown)
 strong_alias (__real_chown, __chown)
 weak_alias (__real_chown, chown)
 #endif
index 7ca6e48c8cd81bb91a90133111d8b3dd3b7c74d0..e443ca60c162713947d19a07a8df960e49371618 100644 (file)
@@ -8,7 +8,7 @@ create_module   EXTRA   create_module   3       create_module
 delete_module  EXTRA   delete_module   3       delete_module
 fdatasync      -       fdatasync       i:i     fdatasync
 flock          -       flock           i:ii    __flock         flock
-fork           -       fork            i:      __libc_fork     __fork fork
+fork           -       fork            i:      __libc_fork     __fork fork __fork_internal
 get_kernel_syms        EXTRA   get_kernel_syms i:p     get_kernel_syms
 getegid                -       getegid         i:      __getegid       getegid
 geteuid                -       geteuid         i:      __geteuid       geteuid