]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 7 Feb 1999 12:50:11 +0000 (12:50 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 7 Feb 1999 12:50:11 +0000 (12:50 +0000)
1999-02-07  Ulrich Drepper  <drepper@cygnus.com>

* Versions.def: New version GLIBC_2.1.1 for libc.
* stdlib/Versions: Add _Exit, imaxdiv, and imaxdiv to GLIBC_2.1.1.
* stdlib/labs.c: Moved to...
* sysdeps/generic/labs.c: ...here.
* stdlib/llabs.c: Moved to...
* sysdeps/generic/llabs.c: ...here.
* stdlib/stdlib.h: Allow definition of ldiv_t and lldiv_t in other
header.  Declare _Exit.
* sysdeps/generic/_exit.c: Add alias _Exit.
* sysdeps/mach/hurd/_exit.c: Likewise.
* sysdeps/standalone/i386/force_cpu386/_exit.c: Likewise.
* sysdeps/standalone/i960/nindy960/_exit.c: Likewise.
* sysdeps/standalone/m68k/m68020/mvme136/_exit.c: Likewise.
* sysdeps/unix/_exit.c: Likewise.
* sysdeps/wordsize-32/inttypes.h: Define imaxdiv_t and declare
imaxdiv and imaxabs.  Declare lldiv_t if necessary.
* sysdeps/wordsize-64/inttypes.h: Likewise.
* sysdeps/wordsize-32/llabs.c: New file.
* sysdeps/wordsize-32/lldiv.c: New file.
* sysdeps/wordsize-64/labs.c: New file.
* sysdeps/wordsize-64/ldiv.c: New file.
* manual/arith.texi: Document imaxabs, imaxdiv_t, and imaxdiv.
* manual/startup.texi: Document _Exit.

1999-02-07  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

* nscd/cache.c: Include <arpa/inet.h> for inet_ntop.

22 files changed:
ChangeLog
NEWS
Versions.def
manual/arith.texi
manual/startup.texi
nscd/cache.c
stdlib/Versions
stdlib/stdlib.h
sysdeps/generic/_exit.c
sysdeps/generic/labs.c [moved from stdlib/labs.c with 100% similarity]
sysdeps/generic/llabs.c [moved from stdlib/llabs.c with 100% similarity]
sysdeps/mach/hurd/_exit.c
sysdeps/standalone/i386/force_cpu386/_exit.c
sysdeps/standalone/i960/nindy960/_exit.c
sysdeps/standalone/m68k/m68020/mvme136/_exit.c
sysdeps/unix/_exit.S
sysdeps/wordsize-32/inttypes.h
sysdeps/wordsize-32/llabs.c [new file with mode: 0644]
sysdeps/wordsize-32/lldiv.c [new file with mode: 0644]
sysdeps/wordsize-64/inttypes.h
sysdeps/wordsize-64/labs.c [new file with mode: 0644]
sysdeps/wordsize-64/ldiv.c [new file with mode: 0644]

index 29e51c4969244090ec168bc49120401bafdbe737..34e56034dc697be74767852e2b4cb4379d5872c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,33 @@
+1999-02-07  Ulrich Drepper  <drepper@cygnus.com>
+
+       * Versions.def: New version GLIBC_2.1.1 for libc.
+       * stdlib/Versions: Add _Exit, imaxdiv, and imaxdiv to GLIBC_2.1.1.
+       * stdlib/labs.c: Moved to...
+       * sysdeps/generic/labs.c: ...here.
+       * stdlib/llabs.c: Moved to...
+       * sysdeps/generic/llabs.c: ...here.
+       * stdlib/stdlib.h: Allow definition of ldiv_t and lldiv_t in other
+       header.  Declare _Exit.
+       * sysdeps/generic/_exit.c: Add alias _Exit.
+       * sysdeps/mach/hurd/_exit.c: Likewise.
+       * sysdeps/standalone/i386/force_cpu386/_exit.c: Likewise.
+       * sysdeps/standalone/i960/nindy960/_exit.c: Likewise.
+       * sysdeps/standalone/m68k/m68020/mvme136/_exit.c: Likewise.
+       * sysdeps/unix/_exit.c: Likewise.
+       * sysdeps/wordsize-32/inttypes.h: Define imaxdiv_t and declare
+       imaxdiv and imaxabs.  Declare lldiv_t if necessary.
+       * sysdeps/wordsize-64/inttypes.h: Likewise.
+       * sysdeps/wordsize-32/llabs.c: New file.
+       * sysdeps/wordsize-32/lldiv.c: New file.
+       * sysdeps/wordsize-64/labs.c: New file.
+       * sysdeps/wordsize-64/ldiv.c: New file.
+       * manual/arith.texi: Document imaxabs, imaxdiv_t, and imaxdiv.
+       * manual/startup.texi: Document _Exit.
+
+1999-02-07  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
+
+       * nscd/cache.c: Include <arpa/inet.h> for inet_ntop.
+
 1999-02-06  Ulrich Drepper  <drepper@cygnus.com>
 
        * Versions.def: Add versions for ld.so.
diff --git a/NEWS b/NEWS
index ffa79ef4fa5cadb4a6a020944fe0a7e46e369078..7c74a79360806049718825aafa88f9ef2c9ddfcc 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-GNU C Library NEWS -- history of user-visible changes.  1999-02-02
+GNU C Library NEWS -- history of user-visible changes.  1999-02-07
 
 Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
 See the end for copying conditions.
@@ -7,6 +7,10 @@ Please send GNU C library bug reports using the `glibcbug' script to
 <bugs@gnu.org>.  Questions and suggestions should be send to
 <bug-glibc@gnu.org>.
 \f
+Version 2.1.1
+
+* New ISO C 9x function _exit, imaxabs, and imaxdiv are added.
+\f
 Version 2.1
 
 * Richard Henderson corrected size of struct timeval on Linux/Alpha to
index da36b547eb871a0630ef31c7ff2a2ac9ef87fa5e..246155be657d2c37ab050097aa66c11b467056e2 100644 (file)
@@ -4,6 +4,7 @@ libBrokenLocale {
 libc {
   GLIBC_2.0
   GLIBC_2.1 GLIBC_2.0
+  GLIBC_2.1.1 GLIBC_2.1
 }
 libcrypt {
   GLIBC_2.0
index 3cd298b3f3a21ef9e6b7bafa901694d169f31d03..a42267712d200dd999d547348f9c3ddefb165d18 100644 (file)
@@ -826,6 +826,7 @@ whose imaginary part is @var{y}, the absolute value is @w{@code{sqrt
 @pindex math.h
 @pindex stdlib.h
 Prototypes for @code{abs}, @code{labs} and @code{llabs} are in @file{stdlib.h};
+@code{imaxabs} is declared in @file{inttypes.h};
 @code{fabs}, @code{fabsf} and @code{fabsl} are declared in @file{math.h}.
 @code{cabs}, @code{cabsf} and @code{cabsl} are declared in @file{complex.h}.
 
@@ -838,13 +839,16 @@ Prototypes for @code{abs}, @code{labs} and @code{llabs} are in @file{stdlib.h};
 @comment stdlib.h
 @comment ISO
 @deftypefunx {long long int} llabs (long long int @var{number})
+@comment inttypes.h
+@comment ISO
+@deftypefunx intmax_t imaxabs (intmax_t @var{number})
 These functions return the absolute value of @var{number}.
 
 Most computers use a two's complement integer representation, in which
 the absolute value of @code{INT_MIN} (the smallest possible @code{int})
 cannot be represented; thus, @w{@code{abs (INT_MIN)}} is not defined.
 
-@code{llabs} is new to @w{ISO C 9x}
+@code{llabs} and @code{imaxdiv} are new to @w{ISO C 9x}.
 @end deftypefun
 
 @comment math.h
@@ -1820,6 +1824,34 @@ a structure of type @code{lldiv_t}.
 The @code{lldiv} function was added in @w{ISO C 9x}.
 @end deftypefun
 
+@comment inttypes.h
+@comment ISO
+@deftp {Data Type} imaxdiv_t
+This is a structure type used to hold the result returned by the @code{imaxdiv}
+function.  It has the following members:
+
+@table @code
+@item intmax_t quot
+The quotient from the division.
+
+@item intmax_t rem
+The remainder from the division.
+@end table
+
+(This is identical to @code{div_t} except that the components are of
+type @code{intmax_t} rather than @code{int}.)
+@end deftp
+
+@comment inttypes.h
+@comment ISO
+@deftypefun imaxdiv_t imaxdiv (intmax_t @var{numerator}, intmax_t @var{denominator})
+The @code{imaxdiv} function is like the @code{div} function, but the
+arguments are of type @code{intmax_t} and the result is returned as
+a structure of type @code{imaxdiv_t}.
+
+The @code{imaxdiv} function was added in @w{ISO C 9x}.
+@end deftypefun
+
 
 @node Parsing of Numbers
 @section Parsing of Numbers
index 1d903b49d7c1fb7e1ead40849c3a4ab33fd0db18..1c75d3cabd03d870dd463e019d9911ed8ceafef0 100644 (file)
@@ -776,6 +776,18 @@ execute cleanup functions registered with @code{atexit} or
 @code{on_exit}.
 @end deftypefun
 
+@comment stdlib.h
+@comment ISO
+@deftypefun void _Exit (int @var{status})
+The @code{_Exit} function is the @w{ISO C} equivalent to @code{_exit}.
+The @w{ISO C} committee members were not sure whether the definitions of
+@code{_exit} and @code{_Exit} were compatible so they have not used the
+POSIX name.
+
+This function was introduced in @w{ISO C9x} and is declared in
+@file{stdlib.h}.
+@end deftypefun
+
 When a process terminates for any reason---either by an explicit
 termination call, or termination as a result of a signal---the
 following things happen:
index dbc89fb8ecc648c6fbd6e5417ba982f86b7b2232..fc293a36f37ee0c3428cd7a075181c3f095390b3 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 1998 Free Software Foundation, Inc.
+/* Copyright (c) 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
 
@@ -23,6 +23,7 @@
 #include <limits.h>
 #include <stdlib.h>
 #include <string.h>
+#include <arpa/inet.h>
 #include <rpcsvc/nis.h>
 #include <sys/param.h>
 #include <sys/stat.h>
index 6e92552794cb74f2e87bc0ffb8a3fb3c6c38033b..9536e3240e888579b2820ccb8730ad34a32ea79e 100644 (file)
@@ -83,4 +83,11 @@ libc {
     # s*
     strtoimax; strtoumax; swapcontext;
   }
+  GLIBC_2.1.1 {
+    # _*
+    _Exit;
+
+    # i*
+    imaxabs; imaxdiv;
+  }
 }
index 3b9539e3299ec98f657c0dde7193a618b1b40937..8a47b81ed9d28fbb08d416446311f450888645cd 100644 (file)
@@ -45,19 +45,23 @@ typedef struct
   } div_t;
 
 /* Returned by `ldiv'.  */
+#ifndef __ldiv_t_defined
 typedef struct
   {
     long int quot;             /* Quotient.  */
     long int rem;              /* Remainder.  */
   } ldiv_t;
+# define __ldiv_t_defined      1
+#endif
 
-#ifdef __USE_ISOC9X
+#if defined __USE_ISOC9X && !defined __lldiv_t_defined
 /* Returned by `lldiv'.  */
 __extension__ typedef struct
   {
     long long int quot;                /* Quotient.  */
     long long int rem;         /* Remainder.  */
   } lldiv_t;
+# define __lldiv_t_defined     1
 #endif
 
 
@@ -515,6 +519,12 @@ extern int on_exit __P ((void (*__func) (int __status, __ptr_t __arg),
    perform stdio cleanup, and terminate program execution with STATUS.  */
 extern void exit __P ((int __status)) __attribute__ ((__noreturn__));
 
+#ifdef __USE_ISOC9X
+/* Terminate the program with STATUS without calling any of the
+   functions registered with `atexit' or `on_exit'.  */
+extern void _Exit __P ((int __status)) __attribute__ ((__noreturn__));
+#endif
+
 
 /* Return the value of envariable NAME, or NULL if it doesn't exist.  */
 extern char *getenv __P ((__const char *__name));
index 5fb4366e49614eff2c2a79057b5453745b355488..4bd6ddf4f2ef7bc50e618d0001697327974f2017 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 94, 95, 96, 97, 99 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
@@ -29,6 +29,7 @@ _exit (status)
   status &= 0xff;
   abort ();
 }
+weak_alias (_exit, _Exit)
 
 stub_warning (_exit)
 #include <stub-tag.h>
similarity index 100%
rename from stdlib/labs.c
rename to sysdeps/generic/labs.c
similarity index 100%
rename from stdlib/llabs.c
rename to sysdeps/generic/llabs.c
index 2780146e6046f3ed7fe3ae7bac688676d44b1821..9d207b1267503c1f362239683753d42a0a3c5493 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 94, 95, 96, 97, 99 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
@@ -52,3 +52,4 @@ _exit (status)
 {
   _hurd_exit (W_EXITCODE (status, 0));
 }
+weak_alias (_exit, _Exit)
index 455dc0e7b813c428cb80522c64421e76d7ecff1d..5f9e5e3116905bcaddad3d454079367fd08eb2cb 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Joel Sherrill (jsherril@redstone-emh2.army.mil),
      On-Line Applications Research Corporation.
@@ -36,6 +36,7 @@ _exit (status)
   /* status is ignored */
   Bsp_cleanup();
 }
+weak_alias (_exit, _Exit)
 
 #ifdef  HAVE_GNU_LD
 
index e56dcc07a46b075bed4bc83e80a7a35bac5d344d..8ca6e78e800bf5332edae8e08d8a41957b41b3a2 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Joel Sherrill (jsherril@redstone-emh2.army.mil),
      On-Line Applications Research Corporation.
@@ -43,6 +43,7 @@ _exit (status)
   *  application if the user types "go".
   */
 }
+weak_alias (_exit, _Exit)
 
 
 #ifdef  HAVE_GNU_LD
index d45e52d41db438cacc4579fa654abd843f0c8e4f..ecd93db129391c9721d5dee0472ba0834cec7d53 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Joel Sherrill (jsherril@redstone-emh2.army.mil),
      On-Line Applications Research Corporation.
@@ -47,3 +47,4 @@ _exit (status)
   M68Kvec[ 45 ] = __exit_trap;   /* install exit_trap handler */
   asm volatile( "trap #13" );  /* insures SUPV mode */
 }
+weak_alias (_exit, _Exit)
index dfdeebd90895ae0536ea883ddc6b5b2dffcfbf8e..da502c76a6be811020898d7292a40ec037666bf6 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1997, 1999 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,3 +21,4 @@
 PSEUDO (_exit, exit, 1)
        /* Shouldn't get here.  */
 PSEUDO_END(_exit)
+weak_alias (_exit, _Exit)
index 5897fdab19f160d89fdc5798547eda36b9245816..e80036bd24f8a9f96659b81a250f8b3bfabc418f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999 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
 
 __BEGIN_DECLS
 
+/* We have to define the `uintmax_t' type using `lldiv_t'.  */
+#ifndef _STDLIB_H
+/* Returned by `lldiv'.  */
+__extension__ typedef struct
+  {
+    long long int quot;                /* Quotient.  */
+    long long int rem;         /* Remainder.  */
+  } lldiv_t;
+# define __lldiv_t_defined     1
+#endif
+
+/* Returned by `imaxdiv'.  */
+typedef lldiv_t imaxdiv_t;
+
+
+/* Compute absolute value of N.  */
+extern intmax_t imaxabs __P ((intmax_t __n)) __attribute__ ((__const__));
+
+/* Return the `imaxdiv_t' representation of the value of NUMER over DENOM. */
+extern imaxdiv_t imaxdiv __P ((intmax_t __numer, intmax_t __denom))
+     __attribute__ ((__const__));
+
 /* Like `strtol' but convert to `intmax_t'.  */
 extern intmax_t strtoimax __P ((__const char *__restrict __nptr,
                                char **__restrict __endptr, int __base));
@@ -269,6 +291,29 @@ extern uintmax_t wcstoumax __P ((__const wchar_t * __restrict __nptr,
 
 #ifdef __USE_EXTERN_INLINES
 
+/* We ant to use the appropriate functions from <stdlib.h> but cannot
+   assume the header is read already.  */
+__extension__ extern long long int llabs __P ((long long int __x))
+     __attribute__ ((__const__));
+__extension__ extern lldiv_t lldiv __P ((long long int __numer,
+                                        long long int __denom))
+     __attribute__ ((__const__));
+
+
+/* Compute absolute value of N.  */
+extern __inline intmax_t
+imaxabs (intmax_t __n) __THROW
+{
+  return llabs (__n);
+}
+
+/* Return the `imaxdiv_t' representation of the value of NUMER over DENOM. */
+extern __inline imaxdiv_t
+imaxdiv (intmax_t __numer, intmax_t __denom) __THROW
+{
+  return lldiv (__numer, __denom);
+}
+
 /* Like `strtol' but convert to `intmax_t'.  */
 # ifndef __strtoll_internal_defined
 __extension__
diff --git a/sysdeps/wordsize-32/llabs.c b/sysdeps/wordsize-32/llabs.c
new file mode 100644 (file)
index 0000000..f335fb0
--- /dev/null
@@ -0,0 +1,23 @@
+/* Copyright (C) 1999 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
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+#include <inttypes.h>
+
+#include <sysdeps/generic/llabs.c>
+
+weak_alias (llabs, imaxabs)
diff --git a/sysdeps/wordsize-32/lldiv.c b/sysdeps/wordsize-32/lldiv.c
new file mode 100644 (file)
index 0000000..f666ad8
--- /dev/null
@@ -0,0 +1,23 @@
+/* Copyright (C) 1999 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
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+#include <inttypes.h>
+
+#include <sysdeps/generic/lldiv.c>
+
+weak_alias (lldiv, imaxdiv)
index f37221b640269fcd7f63fc41781f0ddffcdc61d4..a3763c7880f7801b89ed679cac6b1a34f977918f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999 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
 
 __BEGIN_DECLS
 
+/* We have to define the `uintmax_t' type using `ldiv_t'.  */
+#ifndef _STDLIB_H
+/* Returned by `ldiv'.  */
+typedef struct
+  {
+    long int quot;             /* Quotient.  */
+    long int rem;              /* Remainder.  */
+  } ldiv_t;
+# define __ldiv_t_defined      1
+#endif
+
+/* Returned by `imaxdiv'.  */
+typedef ldiv_t imaxdiv_t;
+
+
+/* Compute absolute value of N.  */
+extern intmax_t imaxabs __P ((intmax_t __n)) __attribute__ ((__const__));
+
+/* Return the `imaxdiv_t' representation of the value of NUMER over DENOM. */
+extern imaxdiv_t imaxdiv __P ((intmax_t __numer, intmax_t __denom))
+     __attribute__ ((__const__));
+
 /* Like `strtol' but convert to `intmax_t'.  */
 extern intmax_t strtoimax __P ((__const char *__restrict __nptr,
                                char **__restrict __endptr, int __base));
@@ -269,6 +291,28 @@ extern uintmax_t wcstoumax __P ((__const wchar_t * __restrict __nptr,
 
 #ifdef __USE_EXTERN_INLINES
 
+/* We ant to use the appropriate functions from <stdlib.h> but cannot
+   assume the header is read already.  */
+__extension__ extern long int labs __P ((long int __x))
+     __attribute__ ((__const__));
+__extension__ extern ldiv_t ldiv __P ((long int __numer, long int __denom))
+     __attribute__ ((__const__));
+
+
+/* Compute absolute value of N.  */
+extern __inline intmax_t
+imaxabs (intmax_t __n) __THROW
+{
+  return labs (__n);
+}
+
+/* Return the `imaxdiv_t' representation of the value of NUMER over DENOM. */
+extern __inline imaxdiv_t
+imaxdiv (intmax_t __numer, intmax_t __denom) __THROW
+{
+  return ldiv (__numer, __denom);
+}
+
 /* Like `strtol' but convert to `intmax_t'.  */
 # ifndef __strtol_internal_defined
 extern long int __strtol_internal __P ((__const char *__restrict __nptr,
diff --git a/sysdeps/wordsize-64/labs.c b/sysdeps/wordsize-64/labs.c
new file mode 100644 (file)
index 0000000..6ff9835
--- /dev/null
@@ -0,0 +1,23 @@
+/* Copyright (C) 1999 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
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+#include <inttypes.h>
+
+#include <sysdeps/generic/labs.c>
+
+weak_alias (labs, imaxabs)
diff --git a/sysdeps/wordsize-64/ldiv.c b/sysdeps/wordsize-64/ldiv.c
new file mode 100644 (file)
index 0000000..f42f327
--- /dev/null
@@ -0,0 +1,23 @@
+/* Copyright (C) 1999 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
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+#include <inttypes.h>
+
+#include <sysdeps/generic/ldiv.c>
+
+weak_alias (ldiv, imaxdiv)