]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove CHECK_1 and CHECK_1_NULL_OK.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 8 Feb 2013 01:12:11 +0000 (01:12 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 8 Feb 2013 01:12:11 +0000 (01:12 +0000)
44 files changed:
ChangeLog
ports/ChangeLog.aarch64
ports/ChangeLog.alpha
ports/ChangeLog.ia64
ports/ChangeLog.mips
ports/sysdeps/unix/sysv/linux/aarch64/gettimeofday.c
ports/sysdeps/unix/sysv/linux/alpha/msgctl.c
ports/sysdeps/unix/sysv/linux/alpha/shmctl.c
ports/sysdeps/unix/sysv/linux/ia64/sigaction.c
ports/sysdeps/unix/sysv/linux/mips/mips64/msgctl.c
ports/sysdeps/unix/sysv/linux/mips/mips64/shmctl.c
ports/sysdeps/unix/sysv/linux/mips/ustat.c
sysdeps/generic/bp-checks.h
sysdeps/unix/sysv/linux/fxstat.c
sysdeps/unix/sysv/linux/fxstat64.c
sysdeps/unix/sysv/linux/fxstatat.c
sysdeps/unix/sysv/linux/fxstatat64.c
sysdeps/unix/sysv/linux/i386/fxstat.c
sysdeps/unix/sysv/linux/i386/fxstatat.c
sysdeps/unix/sysv/linux/i386/getresgid.c
sysdeps/unix/sysv/linux/i386/getresuid.c
sysdeps/unix/sysv/linux/i386/lxstat.c
sysdeps/unix/sysv/linux/i386/msgctl.c
sysdeps/unix/sysv/linux/i386/setrlimit.c
sysdeps/unix/sysv/linux/i386/shmctl.c
sysdeps/unix/sysv/linux/i386/xstat.c
sysdeps/unix/sysv/linux/lxstat.c
sysdeps/unix/sysv/linux/lxstat64.c
sysdeps/unix/sysv/linux/msgctl.c
sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
sysdeps/unix/sysv/linux/ptrace.c
sysdeps/unix/sysv/linux/s390/gettimeofday.c
sysdeps/unix/sysv/linux/shmctl.c
sysdeps/unix/sysv/linux/sigtimedwait.c
sysdeps/unix/sysv/linux/sigwaitinfo.c
sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c
sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c
sysdeps/unix/sysv/linux/ustat.c
sysdeps/unix/sysv/linux/wordsize-64/fxstat.c
sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c
sysdeps/unix/sysv/linux/wordsize-64/lxstat.c
sysdeps/unix/sysv/linux/wordsize-64/xstat.c
sysdeps/unix/sysv/linux/xstat.c
sysdeps/unix/sysv/linux/xstat64.c

index a1923147f0517cb5e32d986a37992e77c8e22946..e387dd284707417b9cabb4744ce24472b0db5150 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,98 @@
 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
 
+       [BZ #13550]
+       * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
+       (CHECK_1_NULL_OK): Likewise.
+       * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
+       (__fxstat): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
+       <bp-checks.h>.
+       (___fxstat64): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
+       <bp-checks.h>.
+       (__fxstatat): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
+       <bp-checks.h>.
+       (__fxstatat64): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
+       <bp-checks.h>.
+       (__fxstat): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
+       <bp-checks.h>.
+       (__fxstatat): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
+       <bp-checks.h>.
+       (__getresgid): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
+       <bp-checks.h>.
+       (__getresuid): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
+       <bp-checks.h>.
+       (__lxstat): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
+       <bp-checks.h>.
+       (__old_msgctl): Do not use CHECK_1.
+       (__new_msgctl): Likewise.
+       * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
+       <bp-checks.h>.
+       (__new_setrlimit): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
+       <bp-checks.h>.
+       (__old_shmctl): Do not use CHECK_1.
+       (__new_shmctl): Likewise.
+       * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
+       <bp-checks.h>.
+       (__xstat): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
+       (__lxstat): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
+       <bp-checks.h>.
+       (___lxstat64): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
+       (__old_msgctl): Do not use CHECK_1.
+       (__new_msgctl): Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
+       <bp-checks.h>.
+       (__gettimeofday): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
+       (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
+       * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
+       <bp-checks.h>.
+       (__gettimeofday): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
+       (__old_shmctl): Do not use CHECK_1_NULL_OK.
+       (__new_shmctl): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
+       <bp-checks.h>.
+       (do_sigtimedwait): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
+       <bp-checks.h>.
+       (do_sigwaitinfo): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
+       <bp-checks.h>.
+       (msgctl): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
+       <bp-checks.h>.
+       (shmctl): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
+       (ustat): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
+       <bp-checks.h>.
+       (__fxstat): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
+       <bp-checks.h>.
+       (__fxstatat): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
+       <bp-checks.h>.
+       (__lxstat): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
+       <bp-checks.h>.
+       (__xstat): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
+       (__xstat): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
+       (___xstat64): Do not use CHECK_1.
+
        [BZ #13550]
        * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
        definitions.
index 5a42510cb6171be0c1cb547db76a42434b41f45a..767e1f1b5a9958fcd9a7160affce9e9d978af975 100644 (file)
@@ -1,3 +1,10 @@
+2013-02-08  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #13550]
+       * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Do not include
+       <bp-checks.h>.
+       (__gettimeofday): Do not use CHECK_1.
+
 2013-01-23  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
 
         * sysdeps/aarch64/strncmp.S: New file.
index 758e97c950e37142f5f9c859908de7d4481b39b6..f631c5bfb294616153a1f44bafddea61ec35676f 100644 (file)
@@ -1,3 +1,13 @@
+2013-02-08  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #13550]
+       * sysdeps/unix/sysv/linux/alpha/msgctl.c: Do not include
+       <bp-checks.h>.
+       (__new_msgctl): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/alpha/shmctl.c: Do not include
+       <bp-checks.h>.
+       (__new_shmctl): Do not use CHECK_1.
+
 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #13550]
index 3b00dafe8595f9f33edb6cf823c778267701a757..26d99f7b225e968e8dbc2b4aba9df9bc919824ae 100644 (file)
@@ -1,3 +1,10 @@
+2013-02-08  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #13550]
+       * sysdeps/unix/sysv/linux/ia64/sigaction.c: Do not include
+       <bp-checks.h>.
+       (__libc_sigaction): Do not use CHECK_1_NULL_OK.
+
 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #13550]
index f1496e2f6920b969ce580537b437e4f4e8737f54..b04001ecf05b154a9e4217ad59b20cf80eda5738 100644 (file)
@@ -1,3 +1,16 @@
+2013-02-08  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #13550]
+       * sysdeps/unix/sysv/linux/mips/mips64/msgctl.c: Do not include
+       <bp-checks.h>.
+       (__msgctl): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/mips/mips64/shmctl.c: Do not include
+       <bp-checks.h>.
+       (__shmctl): Do not use CHECK_1.
+       * sysdeps/unix/sysv/linux/mips/ustat.c: Do not include
+       <bp-checks.h>.
+       (ustat): Do not use CHECK_1.
+
 2013-02-05  Maciej W. Rozycki  <macro@codesourcery.com>
 
        * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Add a missing
index 1da284dec8c41449b00d2a1df3658a6a0b0f1e26..4d1ec3b101d4d351fb4b61c983c18fe4950b3486 100644 (file)
@@ -22,7 +22,6 @@
 #undef __gettimeofday
 
 #include <bits/libc-vdso.h>
-#include <bp-checks.h>
 
 /* Get the current time of day and timezone information,
    putting it into *tv and *tz.  If tz is null, *tz is not filled.
@@ -32,7 +31,7 @@ __gettimeofday (tv, tz)
      struct timeval *tv;
      struct timezone *tz;
 {
-  return INLINE_VSYSCALL (gettimeofday, 2, CHECK_1 (tv), CHECK_1 (tz));
+  return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
 }
 libc_hidden_def (__gettimeofday)
 weak_alias (__gettimeofday, gettimeofday)
index b4633f413569cbcea080d3371028066ee737a445..dbd03c1b2c13d2d3ec6521e4a88a6b63e6b4a95e 100644 (file)
 #include <ipc_priv.h>
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 
 int
 __new_msgctl (int msqid, int cmd, struct msqid_ds *buf)
 {
-  return INLINE_SYSCALL (msgctl, 3, msqid, cmd | __IPC_64, CHECK_1 (buf));
+  return INLINE_SYSCALL (msgctl, 3, msqid, cmd | __IPC_64, buf);
 }
 
 #include <shlib-compat.h>
index 5e52200442408dd8a6c91b1a1ab372786916feef..f2217a2b5a3f2539d71402cba75ec3de8249213a 100644 (file)
 #include <sysdep.h>
 #include <sys/syscall.h>
 #include <bits/wordsize.h>
-#include <bp-checks.h>
 
 
 int
 __new_shmctl (int shmid, int cmd, struct shmid_ds *buf)
 {
-  return INLINE_SYSCALL (shmctl, 3, shmid, cmd | __IPC_64, CHECK_1 (buf));
+  return INLINE_SYSCALL (shmctl, 3, shmid, cmd | __IPC_64, buf);
 }
 
 #include <shlib-compat.h>
index b41c6c3a7e794c728df234f96086b06001f6864e..664d0e12b987848f2777fa80ae838b567764ec14 100644 (file)
@@ -26,7 +26,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* The variable is shared between all wrappers around signal handling
    functions which have RT equivalents.  This is the definition.  */
@@ -42,8 +41,7 @@ __libc_sigaction (sig, act, oact)
 {
   /* XXX The size argument hopefully will have to be changed to the
      real size of the user-level sigset_t.  */
-  return INLINE_SYSCALL (rt_sigaction, 4, sig,
-                        CHECK_1_NULL_OK (act), CHECK_1_NULL_OK (oact), _NSIG / 8);
+  return INLINE_SYSCALL (rt_sigaction, 4, sig, act, oact, _NSIG / 8);
 }
 libc_hidden_def (__libc_sigaction)
 
index b8905edd7d80946a438feb5987606a85ad0b0ad1..3b94b1befe58bbc45aadef44322926e59cb1b0b0 100644 (file)
 #include <ipc_priv.h>
 #include <sysdep.h>
 
-#include <bp-checks.h>
-
 int __msgctl (int msqid, int cmd, struct msqid_ds *buf);
 
 int
 __msgctl (int msqid, int cmd, struct msqid_ds *buf)
 {
-  return INLINE_SYSCALL (msgctl, 3, msqid, cmd | __IPC_64, CHECK_1 (buf));
+  return INLINE_SYSCALL (msgctl, 3, msqid, cmd | __IPC_64, buf);
 }
 
 #include <shlib-compat.h>
index 9b183f335cbc243149fafc45a340f8767a9c7ab4..197f7eb809ff4868ca95e8bcb6505ced24c1e758 100644 (file)
 #include <ipc_priv.h>
 #include <sysdep.h>
 
-#include <bp-checks.h>
-
 int __shmctl (int shmid, int cmd, struct shmid_ds *buf);
 
 int
 __shmctl (int shmid, int cmd, struct shmid_ds *buf)
 {
-  return INLINE_SYSCALL (shmctl, 3, shmid, cmd | __IPC_64, CHECK_1 (buf));
+  return INLINE_SYSCALL (shmctl, 3, shmid, cmd | __IPC_64, buf);
 }
 
 #include <shlib-compat.h>
index f05bba629473a3101430077f2fc065c175e8092a..6db482e96bcf4a277535865ed73909fb07f158d0 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 int
 ustat (dev_t dev, struct ustat *ubuf)
@@ -32,5 +31,5 @@ ustat (dev_t dev, struct ustat *ubuf)
   /* We must convert the value to dev_t type used by the kernel.  */
   k_dev = ((major (dev) & 0xff) << 8) | (minor (dev) & 0xff);
 
-  return INLINE_SYSCALL (ustat, 2, k_dev, CHECK_1 (ubuf));
+  return INLINE_SYSCALL (ustat, 2, k_dev, ubuf);
 }
index 618497cba1a6b35b62d05d5baf7f8d287f886a22..162f785187d54e3e276549e4eed0451d1e59b062 100644 (file)
 /* Same as CHECK_N, but tolerate ARG == NULL.  */
 # define CHECK_N_NULL_OK(ARG, N) _CHECK_N ((ARG), (N), __ptrvalue (ARG))
 
-/* Check bounds of a pointer seated to a single object.  */
-# define CHECK_1(ARG) CHECK_N ((ARG), 1)
-/* Same as CHECK_1, but tolerate ARG == NULL.  */
-# define CHECK_1_NULL_OK(ARG) CHECK_N_NULL_OK ((ARG), 1)
-
 #else /* !__BOUNDED_POINTERS__ */
 
 /* Do nothing if not compiling with -fbounded-pointers.  */
 
 # define BOUNDS_VIOLATED
-# define CHECK_1(ARG) (ARG)
-# define CHECK_1_NULL_OK(ARG) (ARG)
 # define CHECK_N(ARG, N) (ARG)
 # define CHECK_N_NULL_OK(ARG, N) (ARG)
 
index d2dd1091073a168429e075dd788d6b29d556727b..06a7fc08ee79b06e17c32693ef80cd46d336a3e0 100644 (file)
@@ -28,7 +28,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <xstatconv.h>
 
@@ -37,7 +36,7 @@ int
 __fxstat (int vers, int fd, struct stat *buf)
 {
   if (vers == _STAT_VER_KERNEL)
-    return INLINE_SYSCALL (fstat, 2, fd, CHECK_1 ((struct kernel_stat *) buf));
+    return INLINE_SYSCALL (fstat, 2, fd, (struct kernel_stat *) buf);
 
 #ifdef STAT_IS_KERNEL_STAT
   errno = EINVAL;
index a13beeba5e4d55b775688641db980777340b6545..3cb1c3503725b21932097c2d2ea9b0f56d0be927 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -33,7 +32,7 @@ int
 ___fxstat64 (int vers, int fd, struct stat64 *buf)
 {
   int result;
-  result = INLINE_SYSCALL (fstat64, 2, fd, CHECK_1 (buf));
+  result = INLINE_SYSCALL (fstat64, 2, fd, buf);
 #if defined _HAVE_STAT64___ST_INO && __ASSUME_ST_INO_64_BIT == 0
   if (__builtin_expect (!result, 1) && buf->__st_ino != (__ino_t) buf->st_ino)
     buf->st_ino = buf->__st_ino;
index c0835bb68f9c968a6f5868f62b90cc5a0f5b97e1..2578eeae3e9d1a7aa33fdddc944ab28a8270ec8b 100644 (file)
@@ -29,7 +29,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 #include <kernel-features.h>
 
 #include <xstatconv.h>
@@ -110,10 +109,10 @@ __fxstatat (int vers, int fd, const char *file, struct stat *st, int flag)
     {
       if (flag & AT_SYMLINK_NOFOLLOW)
        result = INTERNAL_SYSCALL (lstat, err, 2, file,
-                                  CHECK_1 ((struct kernel_stat *) st));
+                                  (struct kernel_stat *) st);
       else
        result = INTERNAL_SYSCALL (stat, err, 2, file,
-                                  CHECK_1 ((struct kernel_stat *) st));
+                                  (struct kernel_stat *) st);
 
       if (__builtin_expect (!INTERNAL_SYSCALL_ERROR_P (result, err), 1))
        return result;
index c81fe188226ddaecebbe9e7e69e0f83e28fc13ea..abd39ea906eecf9d491958639b0832e344ca1621 100644 (file)
@@ -25,7 +25,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -99,9 +98,9 @@ __fxstatat64 (int vers, int fd, const char *file, struct stat64 *st, int flag)
     }
 
   if (flag & AT_SYMLINK_NOFOLLOW)
-    result = INTERNAL_SYSCALL (lstat64, err, 2, file, CHECK_1 (st));
+    result = INTERNAL_SYSCALL (lstat64, err, 2, file, st);
   else
-    result = INTERNAL_SYSCALL (stat64, err, 2, file, CHECK_1 (st));
+    result = INTERNAL_SYSCALL (stat64, err, 2, file, st);
   if (__builtin_expect (!INTERNAL_SYSCALL_ERROR_P (result, err), 1))
     {
 # if defined _HAVE_STAT64___ST_INO && __ASSUME_ST_INO_64_BIT == 0
index 0ab94f53d223fb1c3e792225d227735d5fb2c4d2..8ceb26932e957a0ed3bd7202dd4f502b47ea7855 100644 (file)
@@ -27,7 +27,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -40,7 +39,7 @@ __fxstat (int vers, int fd, struct stat *buf)
   int result;
 
   if (vers == _STAT_VER_KERNEL)
-    return INLINE_SYSCALL (fstat, 2, fd, CHECK_1 ((struct kernel_stat *) buf));
+    return INLINE_SYSCALL (fstat, 2, fd, (struct kernel_stat *) buf);
 
   {
     struct stat64 buf64;
index 3f5420cf34a385ce955c7cdbaced1bd49b9bfdd8..a98c6c890c9977a6068c157507da54ad4b59fa71 100644 (file)
@@ -29,7 +29,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -103,10 +102,10 @@ __fxstatat (int vers, int fd, const char *file, struct stat *st, int flag)
     {
       if (flag & AT_SYMLINK_NOFOLLOW)
        result = INTERNAL_SYSCALL (lstat, err, 2, file,
-                                  CHECK_1 ((struct kernel_stat *) st));
+                                  (struct kernel_stat *) st);
       else
        result = INTERNAL_SYSCALL (stat, err, 2, file,
-                                  CHECK_1 ((struct kernel_stat *) st));
+                                  (struct kernel_stat *) st);
       goto out;
     }
 
index e0b6999dd437704da6f1cc3acd9269e105dc6985..bdc3b82b6996c098a7dac1f0420e0cc7667bd038 100644 (file)
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* Consider moving to syscalls.list.  */
 
 int
 __getresgid (gid_t *rgid, gid_t *egid, gid_t *sgid)
 {
-  return INLINE_SYSCALL (getresgid32, 3, CHECK_1 (rgid),
-                        CHECK_1 (egid), CHECK_1 (sgid));
+  return INLINE_SYSCALL (getresgid32, 3, rgid, egid, sgid);
 }
 libc_hidden_def (__getresgid)
 weak_alias (__getresgid, getresgid)
index 5a06ad68d80bb4213694a7800e4ad7bfd0f50e83..49b33028404ac9130ddd43b0d4841936a28a58fc 100644 (file)
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* Consider moving to syscalls.list.  */
 
 int
 __getresuid (uid_t *ruid, uid_t *euid, uid_t *suid)
 {
-  return INLINE_SYSCALL (getresuid32, 3, CHECK_1 (ruid),
-                        CHECK_1 (euid), CHECK_1 (suid));
+  return INLINE_SYSCALL (getresuid32, 3, ruid, euid, suid);
 }
 libc_hidden_def (__getresuid)
 weak_alias (__getresuid, getresuid)
index b083afdd4dea296c538e724069ed3546f5c1b03a..a10f40367ec764e825ec9c108457ed0c664dc1da 100644 (file)
@@ -27,7 +27,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -41,7 +40,7 @@ __lxstat (int vers, const char *name, struct stat *buf)
   int result;
 
   if (vers == _STAT_VER_KERNEL)
-    return INLINE_SYSCALL (lstat, 2, name, CHECK_1 ((struct kernel_stat *) buf));
+    return INLINE_SYSCALL (lstat, 2, name, (struct kernel_stat *) buf);
 
   {
     struct stat64 buf64;
index 37cfcb6fce66bf00340b8465baede29ad69b630c..f48d8e250a6b6080374817562d4e7f394f3ff699 100644 (file)
@@ -23,7 +23,6 @@
 #include <sysdep.h>
 #include <string.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <shlib-compat.h>
 
@@ -56,8 +55,7 @@ int
 attribute_compat_text_section
 __old_msgctl (int msqid, int cmd, struct __old_msqid_ds *buf)
 {
-  return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl,
-                        msqid, cmd, 0, CHECK_1 (buf));
+  return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl, msqid, cmd, 0, buf);
 }
 compat_symbol (libc, __old_msgctl, msgctl, GLIBC_2_0);
 #endif
@@ -66,7 +64,7 @@ int
 __new_msgctl (int msqid, int cmd, struct msqid_ds *buf)
 {
   return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl,
-                        msqid, cmd | __IPC_64, 0, CHECK_1 (buf));
+                        msqid, cmd | __IPC_64, 0, buf);
 }
 
 versioned_symbol (libc, __new_msgctl, msgctl, GLIBC_2_2);
index cc11847108838f135544c7be7323e5804b619e94..05ccb1cc21cbb04a06ad5ea66b55732859ff76a2 100644 (file)
@@ -22,7 +22,6 @@
 #include <sysdep.h>
 #include <sys/syscall.h>
 #include <shlib-compat.h>
-#include <bp-checks.h>
 
 extern int __new_setrlimit (enum __rlimit_resource resource,
                            const struct rlimit *__unboundedrlimits);
@@ -32,7 +31,7 @@ extern int __new_setrlimit (enum __rlimit_resource resource,
 int
 __new_setrlimit (enum __rlimit_resource resource, const struct rlimit *rlimits)
 {
-  return INLINE_SYSCALL (setrlimit, 2, resource, CHECK_1 (rlimits));
+  return INLINE_SYSCALL (setrlimit, 2, resource, rlimits);
 }
 
 weak_alias (__new_setrlimit, __setrlimit);
index 15f055d845de532080bbb99ade0f513a26832242..cb1539a0b0f5e1e15db9e36700d6ecb0816da541 100644 (file)
@@ -24,7 +24,6 @@
 #include <string.h>
 #include <sys/syscall.h>
 #include <bits/wordsize.h>
-#include <bp-checks.h>
 
 #include <shlib-compat.h>
 
@@ -63,8 +62,7 @@ int
 attribute_compat_text_section
 __old_shmctl (int shmid, int cmd, struct __old_shmid_ds *buf)
 {
-  return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl,
-                        shmid, cmd, 0, CHECK_1 (buf));
+  return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd, 0, buf);
 }
 compat_symbol (libc, __old_shmctl, shmctl, GLIBC_2_0);
 #endif
@@ -73,7 +71,7 @@ int
 __new_shmctl (int shmid, int cmd, struct shmid_ds *buf)
 {
   return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl,
-                        shmid, cmd | __IPC_64, 0, CHECK_1 (buf));
+                        shmid, cmd | __IPC_64, 0, buf);
 }
 
 versioned_symbol (libc, __new_shmctl, shmctl, GLIBC_2_2);
index 071f7fb972b9df59f4e10d69fce4dde3dd573fba..26dc00a5b39702288e796ddc9b1fdeb8f546887c 100644 (file)
@@ -27,7 +27,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -41,7 +40,7 @@ __xstat (int vers, const char *name, struct stat *buf)
   int result;
 
   if (vers == _STAT_VER_KERNEL)
-    return INLINE_SYSCALL (stat, 2, name, CHECK_1 ((struct kernel_stat *) buf));
+    return INLINE_SYSCALL (stat, 2, name, (struct kernel_stat *) buf);
 
   {
     struct stat64 buf64;
index f76e08191d553fd9feea672a1c82567deb795aec..5f7bce23b106c6849f60772bc9cdecfb9567e100 100644 (file)
@@ -27,7 +27,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <xstatconv.h>
 
@@ -36,8 +35,7 @@ int
 __lxstat (int vers, const char *name, struct stat *buf)
 {
   if (vers == _STAT_VER_KERNEL)
-    return INLINE_SYSCALL (lstat, 2, name,
-                          CHECK_1 ((struct kernel_stat *) buf));
+    return INLINE_SYSCALL (lstat, 2, name, (struct kernel_stat *) buf);
 
 #ifdef STAT_IS_KERNEL_STAT
   errno = EINVAL;
index c6199bb311eecbf37f9caf5b51e77404991cef39..de889966fe93a08aa69bce97d980149ba1447377 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -32,7 +31,7 @@ int
 ___lxstat64 (int vers, const char *name, struct stat64 *buf)
 {
   int result;
-  result = INLINE_SYSCALL (lstat64, 2, name, CHECK_1 (buf));
+  result = INLINE_SYSCALL (lstat64, 2, name, buf);
 #if defined _HAVE_STAT64___ST_INO && __ASSUME_ST_INO_64_BIT == 0
   if (__builtin_expect (!result, 1) && buf->__st_ino != (__ino_t) buf->st_ino)
     buf->st_ino = buf->__st_ino;
index 4dc6b0887876173a63265e98f678d6cd5a747329..2483ebb24315e293c1fb773e421b221ed01712cb 100644 (file)
@@ -24,7 +24,6 @@
 #include <string.h>
 #include <sys/syscall.h>
 #include <shlib-compat.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -57,7 +56,7 @@ int
 attribute_compat_text_section
 __old_msgctl (int msqid, int cmd, struct __old_msqid_ds *buf)
 {
-  return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl, msqid, cmd, 0, CHECK_1 (buf));
+  return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl, msqid, cmd, 0, buf);
 }
 compat_symbol (libc, __old_msgctl, msgctl, GLIBC_2_0);
 #endif
@@ -67,7 +66,7 @@ __new_msgctl (int msqid, int cmd, struct msqid_ds *buf)
 {
 #if __ASSUME_IPC64 > 0
   return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl,
-                        msqid, cmd | __IPC_64, 0, CHECK_1 (buf));
+                        msqid, cmd | __IPC_64, 0, buf);
 #else
   switch (cmd) {
     case MSG_STAT:
@@ -76,7 +75,7 @@ __new_msgctl (int msqid, int cmd, struct msqid_ds *buf)
       break;
     default:
       return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl,
-                            msqid, cmd, 0, CHECK_1 (buf));
+                            msqid, cmd, 0, buf);
   }
 
   {
@@ -86,7 +85,7 @@ __new_msgctl (int msqid, int cmd, struct msqid_ds *buf)
     /* Unfortunately there is no way how to find out for sure whether
        we should use old or new msgctl.  */
     result = INLINE_SYSCALL (ipc, 5, IPCOP_msgctl,
-                            msqid, cmd | __IPC_64, 0, CHECK_1 (buf));
+                            msqid, cmd | __IPC_64, 0, buf);
     if (result != -1 || errno != EINVAL)
       return result;
 
index 36512a0fcbdd67bf5752ceb92e8ed1441c043d1d..f607485072b3c63a2622ed818e31fb61d8dc7315 100644 (file)
@@ -16,7 +16,6 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sysdep.h>
-#include <bp-checks.h>
 #include <stddef.h>
 #include <sys/time.h>
 #include <time.h>
@@ -33,7 +32,7 @@ __gettimeofday (tv, tz)
      struct timeval *tv;
      struct timezone *tz;
 {
-  return INLINE_VSYSCALL (gettimeofday, 2, CHECK_1 (tv), CHECK_1 (tz));
+  return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
 }
 libc_hidden_def (__gettimeofday)
 weak_alias (__gettimeofday, gettimeofday)
index 926dfbd9e07de2c446bd1edf0c2753f8a52fd329..e94cbd55f629509ebf4b4ddde670f5dfeae8dbfa 100644 (file)
@@ -24,7 +24,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 long int
 ptrace (enum __ptrace_request request, ...)
@@ -43,77 +42,6 @@ ptrace (enum __ptrace_request request, ...)
   if (request > 0 && request < 4)
     data = &ret;
 
-#if __BOUNDED_POINTERS__
-  switch (request)
-    {
-    case PTRACE_PEEKTEXT:
-    case PTRACE_PEEKDATA:
-    case PTRACE_PEEKUSER:
-    case PTRACE_POKETEXT:
-    case PTRACE_POKEDATA:
-    case PTRACE_POKEUSER:
-      (void) CHECK_1 ((int *) addr);
-      (void) CHECK_1 ((int *) data);
-      break;
-
-    case PTRACE_GETREGS:
-    case PTRACE_SETREGS:
-#ifdef __i386__
-      (void) CHECK_1 ((struct user_regs_struct *) data);
-#else
-      /* We don't know the size of data, so the best we can do is ensure
-        that `data' is valid for at least one word.  */
-      (void) CHECK_1 ((int *) data);
-#endif
-      break;
-
-    case PTRACE_GETFPREGS:
-    case PTRACE_SETFPREGS:
-#ifdef __i386__
-      (void) CHECK_1 ((struct user_fpregs_struct *) data);
-#else
-      /* We don't know the size of data, so the best we can do is ensure
-        that `data' is valid for at least one word.  */
-      (void) CHECK_1 ((int *) data);
-#endif
-      break;
-
-    case PTRACE_GETFPXREGS:
-    case PTRACE_SETFPXREGS:
-#ifdef __i386__
-      (void) CHECK_1 ((struct user_fpxregs_struct *) data);
-#else
-      /* We don't know the size of data, so the best we can do is ensure
-        that `data' is valid for at least one word.  */
-      (void) CHECK_1 ((int *) data);
-#endif
-      break;
-
-    case PTRACE_GETSIGINFO:
-    case PTRACE_SETSIGINFO:
-      (void) CHECK_1 ((siginfo_t *) data);
-      break;
-
-    case PTRACE_GETEVENTMSG:
-      (void) CHECK_1 ((unsigned long *) data);
-      break;
-
-    case PTRACE_SETOPTIONS:
-      (void) CHECK_1 ((long *) data);
-      break;
-
-    case PTRACE_TRACEME:
-    case PTRACE_CONT:
-    case PTRACE_KILL:
-    case PTRACE_SINGLESTEP:
-    case PTRACE_ATTACH:
-    case PTRACE_DETACH:
-    case PTRACE_SYSCALL:
-      /* Neither `data' nor `addr' needs any checks.  */
-      break;
-    };
-#endif
-
   res = INLINE_SYSCALL (ptrace, 4, request, pid,
                        __ptrvalue (addr), __ptrvalue (data));
   if (res >= 0 && request > 0 && request < 4)
index 54c5e1d202484bf98702853f91d857e48ff322f2..22df7282a384278204fdd83617711422e03616eb 100644 (file)
@@ -16,7 +16,6 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sysdep.h>
-#include <bp-checks.h>
 #include <stddef.h>
 #include <sys/time.h>
 #include <time.h>
@@ -33,7 +32,7 @@ __gettimeofday (tv, tz)
      struct timeval *tv;
      struct timezone *tz;
 {
-  return INLINE_VSYSCALL (gettimeofday, 2, CHECK_1 (tv), CHECK_1 (tz));
+  return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
 }
 libc_hidden_def (__gettimeofday)
 weak_alias (__gettimeofday, gettimeofday)
index 01dbdd087d7972975ef5df4688cd1356d4d230f6..10b0ccdf35b0faf3ec7d25ff74b7052c4ffe93fc 100644 (file)
@@ -25,7 +25,6 @@
 #include <sys/syscall.h>
 #include <bits/wordsize.h>
 #include <shlib-compat.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -64,8 +63,7 @@ int
 attribute_compat_text_section
 __old_shmctl (int shmid, int cmd, struct __old_shmid_ds *buf)
 {
-  return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid,
-                        cmd, 0, CHECK_1_NULL_OK (buf));
+  return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd, 0, buf);
 }
 compat_symbol (libc, __old_shmctl, shmctl, GLIBC_2_0);
 #endif
@@ -75,7 +73,7 @@ __new_shmctl (int shmid, int cmd, struct shmid_ds *buf)
 {
 #if __ASSUME_IPC64 > 0
   return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd | __IPC_64, 0,
-                        CHECK_1 (buf));
+                        buf);
 #else
   switch (cmd) {
     case SHM_STAT:
@@ -86,8 +84,7 @@ __new_shmctl (int shmid, int cmd, struct shmid_ds *buf)
 #endif
       break;
     default:
-      return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd, 0,
-                            CHECK_1 (buf));
+      return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd, 0, buf);
   }
 
   {
@@ -101,7 +98,7 @@ __new_shmctl (int shmid, int cmd, struct shmid_ds *buf)
     /* Unfortunately there is no way how to find out for sure whether
        we should use old or new shmctl.  */
     result = INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd | __IPC_64, 0,
-                            CHECK_1 (buf));
+                            buf);
     if (result != -1 || errno != EINVAL)
       return result;
 
index df14c2b5d68168f89ba46f6aa0a7980c86aa6e2b..20fe3550d88919c067b58be84a78053c60dc5bef 100644 (file)
@@ -21,7 +21,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #ifdef __NR_rt_sigtimedwait
 
@@ -52,7 +51,7 @@ do_sigtimedwait (const sigset_t *set, siginfo_t *info,
     /* XXX The size argument hopefully will have to be changed to the
        real size of the user-level sigset_t.  */
   int result = INLINE_SYSCALL (rt_sigtimedwait, 4, set,
-                              CHECK_1 (info), timeout, _NSIG / 8);
+                              info, timeout, _NSIG / 8);
 
   /* The kernel generates a SI_TKILL code in si_code in case tkill is
      used.  tkill is transparently used in raise().  Since having
index 46afb46ef26b3bf3f714e23849afde3ad7524eb5..50fa72bf4b773f2b3f7c95aa5df69355482e2f85 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #ifdef __NR_rt_sigtimedwait
 
@@ -53,7 +52,7 @@ do_sigwaitinfo (const sigset_t *set, siginfo_t *info)
   /* XXX The size argument hopefully will have to be changed to the
      real size of the user-level sigset_t.  */
   int result = INLINE_SYSCALL (rt_sigtimedwait, 4, set,
-                              CHECK_1 (info), NULL, _NSIG / 8);
+                              info, NULL, _NSIG / 8);
 
   /* The kernel generates a SI_TKILL code in si_code in case tkill is
      used.  tkill is transparently used in raise().  Since having
index 3bda4b275c24639d3300438ce7cc6f0435a39b0b..d55511e10556e79d7aed8914c070f293a17197f6 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* Allows to control internal state and destruction of message queue
    objects.  */
@@ -33,5 +32,5 @@ msgctl (msqid, cmd, buf)
      int cmd;
      struct msqid_ds *buf;
 {
-  return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl, msqid, cmd, 0, CHECK_1 (buf));
+  return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl, msqid, cmd, 0, buf);
 }
index fc2573905c9e202b2d0a4545c213e7b251dba169..7c4af74768124ce95cbfa8b3cdcfa09e1ce17a51 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* Provide operations to control over shared memory segments.  */
 
@@ -32,5 +31,5 @@ shmctl (shmid, cmd, buf)
      int cmd;
      struct shmid_ds *buf;
 {
-  return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd, 0, CHECK_1 (buf));
+  return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd, 0, buf);
 }
index 7a57ee1e9f5cbc713ad7755a4f34e9ccd3865eb3..499ed7eaf337c93084f9243b59fd63573f8154e1 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 int
 ustat (dev_t dev, struct ustat *ubuf)
@@ -37,5 +36,5 @@ ustat (dev_t dev, struct ustat *ubuf)
       return -1;
     }
 
-  return INLINE_SYSCALL (ustat, 2, (unsigned int) k_dev, CHECK_1 (ubuf));
+  return INLINE_SYSCALL (ustat, 2, (unsigned int) k_dev, ubuf);
 }
index bbaa0e04d933d5ec7831096689c9b8471bb96285..d6023e2a23c571c29677630b7b5de0cce4fd6394 100644 (file)
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* Get information about the file FD in BUF.  */
 int
 __fxstat (int vers, int fd, struct stat *buf)
 {
   if (vers == _STAT_VER_KERNEL || vers == _STAT_VER_LINUX)
-    return INLINE_SYSCALL (fstat, 2, fd, CHECK_1 (buf));
+    return INLINE_SYSCALL (fstat, 2, fd, buf);
 
   __set_errno (EINVAL);
   return -1;
index 733348cbf8f0985264c1e9434c788acc2022e15b..73a2e871c981e90e61f6bc7357fcc88a95cfa355 100644 (file)
@@ -29,7 +29,6 @@
 #include <sysdep.h>
 #include <kernel-features.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 
 /* Get information about the file NAME relative to FD in ST.  */
@@ -95,9 +94,9 @@ __fxstatat (int vers, int fd, const char *file, struct stat *st, int flag)
   INTERNAL_SYSCALL_DECL (err);
 
   if (flag & AT_SYMLINK_NOFOLLOW)
-    res = INTERNAL_SYSCALL (lstat, err, 2, file, CHECK_1 (st));
+    res = INTERNAL_SYSCALL (lstat, err, 2, file, st);
   else
-    res = INTERNAL_SYSCALL (stat, err, 2, file, CHECK_1 (st));
+    res = INTERNAL_SYSCALL (stat, err, 2, file, st);
 
   if (__builtin_expect (INTERNAL_SYSCALL_ERROR_P (res, err), 0))
     {
index 6a78d6ceb46a3bc142cae99e0542c729bfe30337..62b6c89ba545aa2bd7dc2b30f6c49e7787cacc24 100644 (file)
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* Get information about the file FD in BUF.  */
 int
 __lxstat (int vers, const char *name, struct stat *buf)
 {
   if (vers == _STAT_VER_KERNEL || vers == _STAT_VER_LINUX)
-    return INLINE_SYSCALL (lstat, 2, name, CHECK_1 (buf));
+    return INLINE_SYSCALL (lstat, 2, name, buf);
 
   __set_errno (EINVAL);
   return -1;
index b9b533d306d3886d48249eac306e298121a56090..1fa2280c2d17541f9cc64672aa5cf5037912cbb5 100644 (file)
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* Get information about the file NAME in BUF.  */
 int
 __xstat (int vers, const char *name, struct stat *buf)
 {
   if (vers == _STAT_VER_KERNEL || vers == _STAT_VER_LINUX)
-    return INLINE_SYSCALL (stat, 2, name, CHECK_1 (buf));
+    return INLINE_SYSCALL (stat, 2, name, buf);
 
   __set_errno (EINVAL);
   return -1;
index 2cdceb5a09d899b12ad4c6d89bc59484531161c7..2eaf380b1173e35ac62555f222bd342aa1782199 100644 (file)
@@ -27,7 +27,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <xstatconv.h>
 
@@ -36,8 +35,7 @@ int
 __xstat (int vers, const char *name, struct stat *buf)
 {
   if (vers == _STAT_VER_KERNEL)
-    return INLINE_SYSCALL (stat, 2, name,
-                          CHECK_1 ((struct kernel_stat *) buf));
+    return INLINE_SYSCALL (stat, 2, name, (struct kernel_stat *) buf);
 
 #ifdef STAT_IS_KERNEL_STAT
   errno = EINVAL;
index c9f32cc476602c1637d3e3aedc24125413902e6c..2377ac5030866a5233b59fd915ede3dc8ca7d7aa 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -33,7 +32,7 @@ int
 ___xstat64 (int vers, const char *name, struct stat64 *buf)
 {
   int result;
-  result = INLINE_SYSCALL (stat64, 2, name, CHECK_1 (buf));
+  result = INLINE_SYSCALL (stat64, 2, name, buf);
 #if defined _HAVE_STAT64___ST_INO && __ASSUME_ST_INO_64_BIT == 0
   if (__builtin_expect (!result, 1) && buf->__st_ino != (__ino_t) buf->st_ino)
     buf->st_ino = buf->__st_ino;