]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove CHECK_N and bp-checks.h.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 8 Feb 2013 20:06:30 +0000 (20:06 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 8 Feb 2013 20:06:30 +0000 (20:06 +0000)
46 files changed:
ChangeLog
debug/segfault.c
ports/ChangeLog.alpha
ports/ChangeLog.arm
ports/ChangeLog.mips
ports/sysdeps/unix/sysv/linux/alpha/fdatasync.c
ports/sysdeps/unix/sysv/linux/alpha/gethostname.c
ports/sysdeps/unix/sysv/linux/arm/pread.c
ports/sysdeps/unix/sysv/linux/arm/pread64.c
ports/sysdeps/unix/sysv/linux/arm/pwrite.c
ports/sysdeps/unix/sysv/linux/arm/pwrite64.c
ports/sysdeps/unix/sysv/linux/mips/mips64/fxstat64.c
ports/sysdeps/unix/sysv/linux/mips/pread.c
ports/sysdeps/unix/sysv/linux/mips/pread64.c
ports/sysdeps/unix/sysv/linux/mips/pwrite.c
ports/sysdeps/unix/sysv/linux/mips/pwrite64.c
sysdeps/generic/bp-checks.h [deleted file]
sysdeps/unix/sysv/linux/getdents.c
sysdeps/unix/sysv/linux/i386/brk.c
sysdeps/unix/sysv/linux/i386/getgroups.c
sysdeps/unix/sysv/linux/i386/setgroups.c
sysdeps/unix/sysv/linux/mmap64.c
sysdeps/unix/sysv/linux/msgrcv.c
sysdeps/unix/sysv/linux/msgsnd.c
sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
sysdeps/unix/sysv/linux/pread.c
sysdeps/unix/sysv/linux/pread64.c
sysdeps/unix/sysv/linux/pwrite.c
sysdeps/unix/sysv/linux/pwrite64.c
sysdeps/unix/sysv/linux/readv.c
sysdeps/unix/sysv/linux/semop.c
sysdeps/unix/sysv/linux/semtimedop.c
sysdeps/unix/sysv/linux/sh/pread.c
sysdeps/unix/sysv/linux/sh/pread64.c
sysdeps/unix/sysv/linux/sh/pwrite.c
sysdeps/unix/sysv/linux/sh/pwrite64.c
sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c
sysdeps/unix/sysv/linux/sysctl.c
sysdeps/unix/sysv/linux/writev.c

index 83d439b7bf6dd86b8a66d635ce8093f8e5425548..27cbc6ddfee5fc3a32e395d881332dd83b68602e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,78 @@
+2013-02-08  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #13550]
+       * debug/segfault.c: Don't include <bp-checks.h>.
+       * sysdeps/generic/bp-checks.h: Remove file.
+       * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
+       (__GETDENTS): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
+       * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
+       (__getgroups): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
+       (setgroups): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
+       * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
+       (__libc_msgrcv): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
+       (__libc_msgsnd): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
+       <bp-checks.h>.
+       (__libc_pread): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
+       include <bp-checks.h>.
+       (__libc_pread64): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
+       include <bp-checks.h>.
+       (__libc_pwrite): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
+       include <bp-checks.h>.
+       (__libc_pwrite64): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
+       <bp-checks.h>.
+       (__libc_pread): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
+       include <bp-checks.h>.
+       (__libc_pread64): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
+       include <bp-checks.h>.
+       (__libc_pwrite): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
+       include <bp-checks.h>.
+       (__libc_pwrite64): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
+       (do_pread): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
+       (do_pread64): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
+       (do_pwrite): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
+       (do_pwrite64): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
+       (__libc_readv): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
+       (semop): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
+       <bp-checks.h>.
+       (semtimedop): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
+       (__libc_pread): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
+       <bp-checks.h>.
+       (__libc_pread64): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
+       <bp-checks.h>.
+       (__libc_pwrite): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
+       <bp-checks.h>.
+       (__libc_pwrite64): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
+       <bp-checks.h>.
+       (__libc_msgrcv): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
+       (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
+       * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
+       (__libc_writev): Don't use CHECK_N.
+
 2013-02-08  Roland McGrath  <roland@hack.frob.com>
 
        * string/strcpy.c: Removed unused variable.
index 99c65a7f136575adad26763a67866d6ff1150919..e1d058f0c75bcf6251ec514efb70cf50b33f369e 100644 (file)
@@ -31,8 +31,6 @@
 #include <_itoa.h>
 #include <ldsodefs.h>
 
-#include <bp-checks.h>
-
 /* This file defines macros to access the content of the sigcontext element
    passed up by the signal handler.  */
 #include <sigcontextinfo.h>
index f631c5bfb294616153a1f44bafddea61ec35676f..38c41dcff42f49a61e48972b342e0f4d5db80f0e 100644 (file)
@@ -1,5 +1,11 @@
 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
 
+       [BZ #13550]
+       * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Don't include
+       <bp-checks.h>.
+       * sysdeps/unix/sysv/linux/alpha/gethostname.c: Likewise.
+       (__gethostname): Don't use CHECK_N.
+
        [BZ #13550]
        * sysdeps/unix/sysv/linux/alpha/msgctl.c: Do not include
        <bp-checks.h>.
index 6f8f33c70d9f73adfa18b2d4d332d35b1b331a2d..23b907516636ca3b40ffd34287cb3fbe83ee9298 100644 (file)
@@ -1,3 +1,19 @@
+2013-02-08  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #13550]
+       * sysdeps/unix/sysv/linux/arm/pread.c: Don't include
+       <bp-checks.h>.
+       (__libc_pread): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/arm/pread64.c: Don't include
+       <bp-checks.h>.
+       (__libc_pread64): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/arm/pwrite.c: Don't include
+       <bp-checks.h>.
+       (__libc_pwrite): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/arm/pwrite64.c: Don't include
+       <bp-checks.h>.
+       (__libc_pwrite64): Don't use CHECK_N.
+
 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
 
        [BZ #15006]
index cde1f700bea04c2184828ab6e290cb4ec23ad3e8..c00275d24361961aacff2744d319a5500e5c512d 100644 (file)
@@ -1,5 +1,20 @@
 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
 
+       [BZ #13550]
+       * sysdeps/unix/sysv/linux/mips/mips64/fxstat64.c: Don't include
+       <bp-checks.h>.
+       * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
+       (__libc_pread): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/mips/pread64.c: Don't include
+       <bp-checks.h>.
+       (__libc_pread64): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/mips/pwrite.c: Don't include
+       <bp-checks.h>.
+       (__libc_pwrite): Don't use CHECK_N.
+       * sysdeps/unix/sysv/linux/mips/pwrite64.c: Don't include
+       <bp-checks.h>.
+       (__libc_pwrite64): Don't use CHECK_N.
+
        * sysdeps/mips/add_n.S (__mpn_add_n): Use END.
        * sysdeps/mips/bsd-_setjmp.S (_setjmp): Likewise.
        * sysdeps/mips/bsd-setjmp.S (setjmp): Likewise.
index 1906741721dd8ef345fa6238bebb07fc3e5842bc..fdcad0bfbbf50240ee9587446a98f561d7531b5a 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
index d6439505ec3c4eb7758a27388cf7606871bb86c7..48f3cec9d9297e1e62de55dfa4cd2d696e308a2f 100644 (file)
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 int
 __gethostname (char *name, size_t len)
 {
   int result;
 
-  result = INLINE_SYSCALL (gethostname, 2, CHECK_N (name, len), len);
+  result = INLINE_SYSCALL (gethostname, 2, name, len);
 
   if (result == 0
       /* See whether the string is terminated.  If not we will return
index dafee3d551acafc51991767684696a0e8ba91d18..e178402a8cf06a8eef669a7543ec9891c70d8e60 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 ssize_t
 __libc_pread (fd, buf, count, offset)
@@ -37,7 +36,7 @@ __libc_pread (fd, buf, count, offset)
     {
       /* In the ARM EABI, 64-bit values are aligned to even/odd register
         pairs for syscalls.  */
-      result = INLINE_SYSCALL (pread64, 6, fd, CHECK_N (buf, count), count, 0,
+      result = INLINE_SYSCALL (pread64, 6, fd, buf, count, 0,
                               __LONG_LONG_PAIR (offset >> 31, offset));
 
       return result;
@@ -47,7 +46,7 @@ __libc_pread (fd, buf, count, offset)
 
   /* In the ARM EABI, 64-bit values are aligned to even/odd register
      pairs for syscalls.  */
-  result = INLINE_SYSCALL (pread64, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pread64, 6, fd, buf, count, 0,
                           __LONG_LONG_PAIR (offset >> 31, offset));
 
   LIBC_CANCEL_RESET (oldtype);
index 6d1d9148aaddd512fb20e90b07493bfe640580d3..c7863a35c65095824025052b869ea2a774a70618 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 ssize_t
 __libc_pread64 (fd, buf, count, offset)
@@ -37,7 +36,7 @@ __libc_pread64 (fd, buf, count, offset)
     {
       /* In the ARM EABI, 64-bit values are aligned to even/odd register
         pairs for syscalls.  */
-      result = INLINE_SYSCALL (pread64, 6, fd, CHECK_N (buf, count), count, 0,
+      result = INLINE_SYSCALL (pread64, 6, fd, buf, count, 0,
                               __LONG_LONG_PAIR ((off_t) (offset >> 32),
                                                 (off_t) (offset & 0xffffffff)));
 
@@ -48,7 +47,7 @@ __libc_pread64 (fd, buf, count, offset)
 
   /* In the ARM EABI, 64-bit values are aligned to even/odd register
      pairs for syscalls.  */
-  result = INLINE_SYSCALL (pread64, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pread64, 6, fd, buf, count, 0,
                           __LONG_LONG_PAIR ((off_t) (offset >> 32),
                                             (off_t) (offset & 0xffffffff)));
 
index f188950af38f6b1bfccf6d458fda28c5cc96710d..4ae2e8330456209143bdb78049b2fec0bf8eb9fe 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 ssize_t
 __libc_pwrite (fd, buf, count, offset)
@@ -37,7 +36,7 @@ __libc_pwrite (fd, buf, count, offset)
     {
       /* In the ARM EABI, 64-bit values are aligned to even/odd register
         pairs for syscalls.  */
-      result = INLINE_SYSCALL (pwrite64, 6, fd, CHECK_N (buf, count), count, 0,
+      result = INLINE_SYSCALL (pwrite64, 6, fd, buf, count, 0,
                               __LONG_LONG_PAIR (offset >> 31, offset));
 
       return result;
@@ -47,7 +46,7 @@ __libc_pwrite (fd, buf, count, offset)
 
   /* In the ARM EABI, 64-bit values are aligned to even/odd register
      pairs for syscalls.  */
-  result = INLINE_SYSCALL (pwrite64, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pwrite64, 6, fd, buf, count, 0,
                           __LONG_LONG_PAIR (offset >> 31, offset));
 
   LIBC_CANCEL_RESET (oldtype);
index 29c63ee33fbdc756418bc0a3350948b4b14bf2d5..bd6fca58325c3c0b60f10ccfdecd4505f474369f 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 ssize_t
 __libc_pwrite64 (fd, buf, count, offset)
@@ -37,7 +36,7 @@ __libc_pwrite64 (fd, buf, count, offset)
     {
       /* In the ARM EABI, 64-bit values are aligned to even/odd register
         pairs for syscalls.  */
-      result = INLINE_SYSCALL (pwrite64, 6, fd, CHECK_N (buf, count), count, 0,
+      result = INLINE_SYSCALL (pwrite64, 6, fd, buf, count, 0,
                               __LONG_LONG_PAIR ((off_t) (offset >> 32),
                                                 (off_t) (offset & 0xffffffff)));
 
@@ -48,7 +47,7 @@ __libc_pwrite64 (fd, buf, count, offset)
 
   /* In the ARM EABI, 64-bit values are aligned to even/odd register
      pairs for syscalls.  */
-  result = INLINE_SYSCALL (pwrite64, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pwrite64, 6, fd, buf, count, 0,
                           __LONG_LONG_PAIR ((off_t) (offset >> 32),
                                             (off_t) (offset & 0xffffffff)));
 
index 017b39d6085341cb8c0be4ccce6d848d1e571956..434c7cd8356badcd4a7308cc6f00500bfd3edb9e 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <xstatconv.h>
 
index b269e1c25a6cd52124efa5e63aa196dfdfcd672a..db18265e3dca7766b062d6ebaf858afc58e54524 100644 (file)
@@ -26,7 +26,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -54,10 +53,9 @@ __libc_pread (fd, buf, count, offset)
   if (SINGLE_THREAD_P)
     {
 #if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
-      result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
-                              offset);
+      result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
 #else
-      result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+      result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
                               __LONG_LONG_PAIR (offset >> 31, offset));
 #endif
       return result;
@@ -66,9 +64,9 @@ __libc_pread (fd, buf, count, offset)
   int oldtype = LIBC_CANCEL_ASYNC ();
 
 #if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
-  result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count, offset);
+  result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
 #else
-  result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
                           __LONG_LONG_PAIR (offset >> 31, offset));
 #endif
 
index 8c2c403a9dc5c72b001ea1a825bc7f6d78fbbdb7..3b8c8aa7200f5576e14e6be964d8acf4ddf281f8 100644 (file)
@@ -25,7 +25,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -50,10 +49,9 @@ __libc_pread64 (fd, buf, count, offset)
   if (SINGLE_THREAD_P)
     {
 #if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
-      result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
-                              offset);
+      result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
 #else
-     result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+     result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
                              __LONG_LONG_PAIR ((off_t) (offset >> 32),
                              (off_t) (offset & 0xffffffff)));
 #endif
@@ -63,9 +61,9 @@ __libc_pread64 (fd, buf, count, offset)
   int oldtype = LIBC_CANCEL_ASYNC ();
 
 #if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
-  result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count, offset);
+  result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
 #else
-  result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
                           __LONG_LONG_PAIR ((off_t) (offset >> 32),
                                             (off_t) (offset & 0xffffffff)));
 #endif
index aa3501414b3ac6e42a857fe2bae3fc3b210ebc55..94213bc8bacbab703346fee2fa837624dd46382f 100644 (file)
@@ -26,7 +26,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -54,10 +53,9 @@ __libc_pwrite (fd, buf, count, offset)
   if (SINGLE_THREAD_P)
     {
 #if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
-      result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
-                              offset);
+      result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
 #else
-      result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
+      result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
                               __LONG_LONG_PAIR (offset >> 31, offset));
 #endif
       return result;
@@ -66,9 +64,9 @@ __libc_pwrite (fd, buf, count, offset)
   int oldtype = LIBC_CANCEL_ASYNC ();
 
 #if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
-  result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count, offset);
+  result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
 #else
-  result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
                           __LONG_LONG_PAIR (offset >> 31, offset));
 #endif
 
index 1d14e0761aae550211fe33be15437a3dac4e2511..aa8a4dec35f9a9f2727c39d1d9ff6cda1d3fb52f 100644 (file)
@@ -25,7 +25,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -49,10 +48,9 @@ __libc_pwrite64 (fd, buf, count, offset)
   if (SINGLE_THREAD_P)
     {
 #if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
-      result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
-                              offset);
+      result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
 #else
-     result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
+     result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
                              __LONG_LONG_PAIR ((off_t) (offset >> 32),
                             (off_t) (offset & 0xffffffff)));
 #endif
@@ -63,9 +61,9 @@ __libc_pwrite64 (fd, buf, count, offset)
   int oldtype = LIBC_CANCEL_ASYNC ();
 
 #if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
-  result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count, offset);
+  result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
 #else
-  result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
                           __LONG_LONG_PAIR ((off_t) (offset >> 32),
                                             (off_t) (offset & 0xffffffff)));
 #endif
diff --git a/sysdeps/generic/bp-checks.h b/sysdeps/generic/bp-checks.h
deleted file mode 100644 (file)
index 162f785..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/* Bounded-pointer checking macros for C.
-   Copyright (C) 2000-2013 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Greg McGary <greg@mcgary.org>
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#ifndef _bp_checks_h_
-#define _bp_checks_h_ 1
-
-#if __BOUNDED_POINTERS__
-
-# define BOUNDS_VIOLATED (__builtin_trap (), 0)
-
-# define _CHECK_N(ARG, N, COND)                                \
-  (((COND)                                             \
-    && (__ptrvalue (ARG) < __ptrlow (ARG)              \
-       || __ptrvalue (ARG) + (N) > __ptrhigh (ARG))    \
-    && BOUNDS_VIOLATED),                               \
-   __ptrvalue (ARG))
-
-/* Check bounds of a pointer seated to an array of N objects.  */
-# define CHECK_N(ARG, N) _CHECK_N ((ARG), (N), 1)
-/* Same as CHECK_N, but tolerate ARG == NULL.  */
-# define CHECK_N_NULL_OK(ARG, N) _CHECK_N ((ARG), (N), __ptrvalue (ARG))
-
-#else /* !__BOUNDED_POINTERS__ */
-
-/* Do nothing if not compiling with -fbounded-pointers.  */
-
-# define BOUNDS_VIOLATED
-# define CHECK_N(ARG, N) (ARG)
-# define CHECK_N_NULL_OK(ARG, N) (ARG)
-
-#endif /* !__BOUNDED_POINTERS__ */
-
-#endif /* _bp_checks_h_ */
index eebdee8ecaf2c46b29212bccbc38907199d66890..2d588a6021b8f756508672b61f2cc8a35241c127 100644 (file)
@@ -28,7 +28,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <linux/posix_types.h>
 
@@ -109,7 +108,7 @@ __GETDENTS (int fd, char *buf, size_t nbytes)
       && (offsetof (struct kernel_dirent, d_reclen)
          == offsetof (struct dirent, d_reclen)))
     {
-      retval = INLINE_SYSCALL (getdents, 3, fd, CHECK_N(buf, nbytes), nbytes);
+      retval = INLINE_SYSCALL (getdents, 3, fd, buf, nbytes);
 
       /* The kernel added the d_type value after the name.  Change
         this now.  */
@@ -158,8 +157,7 @@ __GETDENTS (int fd, char *buf, size_t nbytes)
                   - offsetof (DIRENT_TYPE, d_name);
          kbuf = __alloca(kbytes);
        }
-      retval = INLINE_SYSCALL (getdents64, 3, fd, CHECK_N(kbuf, kbytes),
-                              kbytes);
+      retval = INLINE_SYSCALL (getdents64, 3, fd, kbuf, kbytes);
 # ifndef __ASSUME_GETDENTS64_SYSCALL
       if (retval != -1 || (errno != EINVAL && errno != ENOSYS))
 # endif
@@ -255,8 +253,7 @@ __GETDENTS (int fd, char *buf, size_t nbytes)
 
     skdp = kdp = __alloca (red_nbytes);
 
-    retval = INLINE_SYSCALL (getdents, 3, fd,
-                            CHECK_N ((char *) kdp, red_nbytes), red_nbytes);
+    retval = INLINE_SYSCALL (getdents, 3, fd, (char *) kdp, red_nbytes);
 
     if (retval == -1)
       return -1;
index eea4e02b0ef9f5b16d05c890f462847fe43bc6ad..47bb01d7fa48c816f55124d921a14c07fed83442 100644 (file)
@@ -20,8 +20,6 @@
 #include <unistd.h>
 #include <sysdep.h>
 
-#include <bp-checks.h>
-
 /* This must be initialized data because commons can't have aliases.  */
 void *__curbrk = 0;
 
index c7e44fd03b83a8c458fb733f9a32f50bb3696087..7d85f8f39b179f94bc4fde7bef41c63b1f21eb07 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <linux/posix_types.h>
 
@@ -34,7 +33,7 @@
 int
 __getgroups (int n, gid_t *groups)
 {
-  return INLINE_SYSCALL (getgroups32, 2, n, CHECK_N (groups, n));
+  return INLINE_SYSCALL (getgroups32, 2, n, groups);
 }
 
 weak_alias (__getgroups, getgroups)
index c0895a19b0413a95bd5c323415ec6e2ee59e34db..701ce6ee7becae72ec0492e84409f5a87ad0545d 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <setxid.h>
 #include <linux/posix_types.h>
@@ -33,6 +32,6 @@
 int
 setgroups (size_t n, const gid_t *groups)
 {
-  return INLINE_SETXID_SYSCALL (setgroups32, 2, n, CHECK_N (groups, n));
+  return INLINE_SETXID_SYSCALL (setgroups32, 2, n, groups);
 }
 libc_hidden_def (setgroups)
index 7d94c1db9a2b94d177c7ef8e9e3ebc0d45e2a8c4..a424092ae30a802692bcc4f9790fb9e4170ef22e 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
index f9b399ebd8829b7bd7dd370019ecef09f48550a0..edf81a53d3bc61a77904203ca73469525f4d8e63 100644 (file)
@@ -23,8 +23,6 @@
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
 
-#include <bp-checks.h>
-
 /* Kludge to work around Linux' restriction of only up to five
    arguments to a system call.  */
 struct ipc_kludge
@@ -46,7 +44,7 @@ __libc_msgrcv (msqid, msgp, msgsz, msgtyp, msgflg)
      fives parameters to a system call.  */
   struct ipc_kludge tmp;
 
-  tmp.msgp = CHECK_N (msgp, msgsz);
+  tmp.msgp = msgp;
   tmp.msgtyp = msgtyp;
 
   if (SINGLE_THREAD_P)
index 853ea917415018d8b244f1849722193dbcfa7304..556159b3277505cba996191cc93bacaf4bd7bf9d 100644 (file)
@@ -23,8 +23,6 @@
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
 
-#include <bp-checks.h>
-
 int
 __libc_msgsnd (msqid, msgp, msgsz, msgflg)
      int msqid;
@@ -34,12 +32,12 @@ __libc_msgsnd (msqid, msgp, msgsz, msgflg)
 {
   if (SINGLE_THREAD_P)
     return INLINE_SYSCALL (ipc, 5, IPCOP_msgsnd, msqid, msgsz,
-                          msgflg, (void *) CHECK_N (msgp, msgsz));
+                          msgflg, (void *) msgp);
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
   int result = INLINE_SYSCALL (ipc, 5, IPCOP_msgsnd, msqid, msgsz,
-                              msgflg, (void *) CHECK_N (msgp, msgsz));
+                              msgflg, (void *) msgp);
 
   LIBC_CANCEL_RESET (oldtype);
 
index 3695d8fb9a1d56ba055aa23e42ef77e9c0b7e7dd..619db3261842c511157636cd43701fdad8387504 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -38,7 +37,7 @@ __libc_pread (fd, buf, count, offset)
   if (SINGLE_THREAD_P)
     {
       /* On PPC32 64bit values are aligned in odd/even register pairs.  */
-      result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count,
+      result = INLINE_SYSCALL (pread, 6, fd, buf, count,
                               0, offset >> 31, offset);
 
       return result;
@@ -47,7 +46,7 @@ __libc_pread (fd, buf, count, offset)
   int oldtype = LIBC_CANCEL_ASYNC ();
 
   /* On PPC32 64bit values are aligned in odd/even register pairs.  */
-  result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count,
+  result = INLINE_SYSCALL (pread, 6, fd, buf, count,
                               0, offset >> 31, offset);
 
   LIBC_CANCEL_RESET (oldtype);
index 12e83aa95b34b06d9c29d3ef575fc060f552eeaa..75407b31659e8e100608aa2b8484fd40eb3ec9f3 100644 (file)
@@ -21,7 +21,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -38,7 +37,7 @@ __libc_pread64 (fd, buf, count, offset)
   if (SINGLE_THREAD_P)
     {
       /* On PPC32 64bit values are aligned in odd/even register pairs.  */
-      result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count,
+      result = INLINE_SYSCALL (pread, 6, fd, buf, count,
                               0, (long) (offset >> 32),
                               (long) offset);
 
@@ -48,7 +47,7 @@ __libc_pread64 (fd, buf, count, offset)
   int oldtype = LIBC_CANCEL_ASYNC ();
 
   /* On PPC32 64bit values are aligned in odd/even register pairs.  */
-  result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count,
+  result = INLINE_SYSCALL (pread, 6, fd, buf, count,
                           0, (long) (offset >> 32),
                           (long) offset);
 
index 005e24f964c980765d480b9b760d9376ef41dbb5..e71c91b2611083af4fff877f12c725ae76ffdbc6 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -39,7 +38,7 @@ __libc_pwrite (fd, buf, count, offset)
   if (SINGLE_THREAD_P)
     {
       /* On PPC32 64bit values are aligned in odd/even register pairs.  */
-      result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count,
+      result = INLINE_SYSCALL (pwrite, 6, fd, buf, count,
                               0, offset >> 31, offset);
 
       return result;
@@ -48,7 +47,7 @@ __libc_pwrite (fd, buf, count, offset)
   int oldtype = LIBC_CANCEL_ASYNC ();
 
   /* On PPC32 64bit values are aligned in odd/even register pairs.  */
-  result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count,
+  result = INLINE_SYSCALL (pwrite, 6, fd, buf, count,
                           0, offset >> 31, offset);
 
   LIBC_CANCEL_RESET (oldtype);
index f001c6e97dc0ffe8f0b40ca83a44c797d1850ebc..7094e93d3cd1ad21abb9e12c37389ce5682ada32 100644 (file)
@@ -21,7 +21,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -38,7 +37,7 @@ __libc_pwrite64 (fd, buf, count, offset)
   if (SINGLE_THREAD_P)
     {
   /* On PPC32 64bit values are aligned in odd/even register pairs.  */
-      result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count,
+      result = INLINE_SYSCALL (pwrite, 6, fd, buf, count,
                               0, (long) (offset >> 32),
                               (long) offset);
 
@@ -48,7 +47,7 @@ __libc_pwrite64 (fd, buf, count, offset)
   int oldtype = LIBC_CANCEL_ASYNC ();
 
   /* On PPC32 64bit values are aligned in odd/even register pairs.  */
-  result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count,
+  result = INLINE_SYSCALL (pwrite, 6, fd, buf, count,
                           0, (long) (offset >> 32),
                           (long) offset);
 
index 896a415d873f60ea75865d30a6e0ad8d08971a4d..70f1d6c580519a3a1873f61aec3ad83400899001 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -40,16 +39,14 @@ __libc_pread (fd, buf, count, offset)
 
   if (SINGLE_THREAD_P)
     {
-      result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
-                                offset);
+      result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
 
       return result;
     }
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
-  result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
-                            offset);
+  result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
 
   LIBC_CANCEL_RESET (oldtype);
 
index aaf18e5daa8c7fa8e4a960e028d62e73e51f0323..a11f6e31f4e54befbcc2e42ad9acadcfc057c422 100644 (file)
@@ -21,7 +21,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -39,16 +38,14 @@ __libc_pread64 (fd, buf, count, offset)
 
   if (SINGLE_THREAD_P)
     {
-      result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
-                                offset);
+      result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
 
       return result;
     }
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
-   result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
-                            offset);
+   result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
 
   LIBC_CANCEL_RESET (oldtype);
 
index 9795756f2b97bcd4fb23bfaf4342c2591a067e57..0ccb0a98a3a43102da80578ff81755db4c22824f 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -40,16 +39,14 @@ __libc_pwrite (fd, buf, count, offset)
 
   if (SINGLE_THREAD_P)
     {
-      result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
-                              offset);
+      result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
 
       return result;
     }
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
-  result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
-                                            offset);
+  result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
 
   LIBC_CANCEL_RESET (oldtype);
 
index 65ddefd3c48460be4d0a9a296b211564f1953361..6a8acb4512320c863da02dbb0aabccb380d5e905 100644 (file)
@@ -21,7 +21,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -39,16 +38,14 @@ __libc_pwrite64 (fd, buf, count, offset)
 
   if (SINGLE_THREAD_P)
     {
-      result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
-                                offset);
+      result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
 
       return result;
     }
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
-  result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
-                            offset);
+  result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
 
   LIBC_CANCEL_RESET (oldtype);
 
index aa3ee63792806fd032efa82fe3202222e37a5943..1494879ab91787b239b25ff43d62813c822bcc60 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -44,7 +43,7 @@ do_pread (int fd, void *buf, size_t count, off_t offset)
   ssize_t result;
 
   assert (sizeof (offset) == 4);
-  result = INLINE_SYSCALL (pread, 5, fd, CHECK_N (buf, count), count,
+  result = INLINE_SYSCALL (pread, 5, fd, buf, count,
                           __LONG_LONG_PAIR (offset >> 31, offset));
 
   return result;
index 36cb66b8b8b45fe2af27e95b283398dcd57a1948..be829ce3f66948299b6dde9dfc2bf1d1060891b9 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -39,7 +38,7 @@ do_pread64 (int fd, void *buf, size_t count, off64_t offset)
 {
   ssize_t result;
 
-  result = INLINE_SYSCALL (pread, 5, fd, CHECK_N (buf, count), count,
+  result = INLINE_SYSCALL (pread, 5, fd, buf, count,
                           __LONG_LONG_PAIR ((off_t) (offset >> 32),
                                             (off_t) (offset & 0xffffffff)));
 
index 25147167d4d9c54ec0de433ef74136aac650ec7b..5a31d17ed4777c72564e75abae900d30762786cc 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -44,7 +43,7 @@ do_pwrite (int fd, const void *buf, size_t count, off_t offset)
   ssize_t result;
 
   assert (sizeof (offset) == 4);
-  result = INLINE_SYSCALL (pwrite, 5, fd, CHECK_N (buf, count), count,
+  result = INLINE_SYSCALL (pwrite, 5, fd, buf, count,
                           __LONG_LONG_PAIR (offset >> 31, offset));
 
   return result;
index f2a99b66207d691e593ff6ce609a2ade27177164..fb46e4ba53d342edbc6e7086a888097c2ee201e0 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -39,7 +38,7 @@ do_pwrite64 (int fd, const void *buf, size_t count, off64_t offset)
 {
   ssize_t result;
 
-  result = INLINE_SYSCALL (pwrite, 5, fd, CHECK_N (buf, count), count,
+  result = INLINE_SYSCALL (pwrite, 5, fd, buf, count,
                           __LONG_LONG_PAIR ((off_t) (offset >> 32),
                                             (off_t) (offset & 0xffffffff)));
 
index efee11d4e00d7f943802410f959afd9a30a9bb98..8bdb97a0b13933c33ef474e08f8cb036c022d9c8 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 #include <kernel-features.h>
 
 #ifndef __ASSUME_COMPLETE_READV_WRITEV
@@ -47,12 +46,12 @@ __libc_readv (fd, vector, count)
   ssize_t result;
 
   if (SINGLE_THREAD_P)
-    result = INLINE_SYSCALL (readv, 3, fd, CHECK_N (vector, count), count);
+    result = INLINE_SYSCALL (readv, 3, fd, vector, count);
   else
     {
       int oldtype = LIBC_CANCEL_ASYNC ();
 
-      result = INLINE_SYSCALL (readv, 3, fd, CHECK_N (vector, count), count);
+      result = INLINE_SYSCALL (readv, 3, fd, vector, count);
 
       LIBC_CANCEL_RESET (oldtype);
     }
index f0ea7780b8898b702279eefe4455fe7a7c3f437d..cbe42ac62dc327330ebd4f8b6ca37582122d77ec 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* Perform user-defined atomical operation of array of semaphores.  */
 
@@ -32,6 +31,5 @@ semop (semid, sops, nsops)
      struct sembuf *sops;
      size_t nsops;
 {
-  return INLINE_SYSCALL (ipc, 5, IPCOP_semop,
-                        semid, (int) nsops, 0, CHECK_N (sops, nsops));
+  return INLINE_SYSCALL (ipc, 5, IPCOP_semop, semid, (int) nsops, 0, sops);
 }
index 22a50375fa5e89627be12298266a749043634097..3da35547008f894d9f4ae8379c0a1c74bfa9b77e 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* Perform user-defined atomical operation of array of semaphores.  */
 
@@ -34,6 +33,6 @@ semtimedop (semid, sops, nsops, timeout)
      const struct timespec *timeout;
 {
   return INLINE_SYSCALL (ipc, 6, IPCOP_semtimedop,
-                        semid, (int) nsops, 0, CHECK_N (sops, nsops),
+                        semid, (int) nsops, 0, sops,
                         timeout);
 }
index 6f0c3badb2acb8a46caa84771ec627d812884f2e..ae338dc21863e3528f8b6c38672e2f8f1d0d3fcd 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -46,14 +45,14 @@ __libc_pread (fd, buf, count, offset)
 
   if (SINGLE_THREAD_P)
     {
-      result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+      result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
                               __LONG_LONG_PAIR (offset >> 31, offset));
       return result;
     }
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
-  result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
                           __LONG_LONG_PAIR (offset >> 31, offset));
 
   LIBC_CANCEL_RESET (oldtype);
index acce914c704081d7ea156a6febe4a6f5a0e9f9f5..2a46d7034c9436009bb072a87cf10de5d614b6ef 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -45,7 +44,7 @@ __libc_pread64 (fd, buf, count, offset)
 
   if (SINGLE_THREAD_P)
     {
-     result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+     result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
                              __LONG_LONG_PAIR ((off_t) (offset >> 32),
                              (off_t) (offset & 0xffffffff)));
      return result;
@@ -53,7 +52,7 @@ __libc_pread64 (fd, buf, count, offset)
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
-  result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
                           __LONG_LONG_PAIR ((off_t) (offset >> 32),
                                             (off_t) (offset & 0xffffffff)));
 
index 441c867bf5ffd8a23ba3dd84669fef03b1cb7344..4b20e518cdda3a8875802cca1c8d4cd1d7861c1e 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -46,14 +45,14 @@ __libc_pwrite (fd, buf, count, offset)
 
   if (SINGLE_THREAD_P)
     {
-      result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
+      result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
                               __LONG_LONG_PAIR (offset >> 31, offset));
       return result;
     }
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
-  result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
                           __LONG_LONG_PAIR (offset >> 31, offset));
 
   LIBC_CANCEL_RESET (oldtype);
index a4ca56077db8e3cd4418c874a21e24e223fe95ee..5639b3c419607272fdfde1f925a4e57bcad26dc2 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -45,7 +44,7 @@ __libc_pwrite64 (fd, buf, count, offset)
 
   if (SINGLE_THREAD_P)
     {
-     result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
+     result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
                              __LONG_LONG_PAIR ((off_t) (offset >> 32),
                             (off_t) (offset & 0xffffffff)));
 
@@ -54,7 +53,7 @@ __libc_pwrite64 (fd, buf, count, offset)
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
-  result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
                           __LONG_LONG_PAIR ((off_t) (offset >> 32),
                                             (off_t) (offset & 0xffffffff)));
 
index bce7a58d2ce24e70e2c166d4765da7ee334090d2..625eeb27cf97e8ab6a2f053f3eee01fd42e82838 100644 (file)
@@ -22,8 +22,6 @@
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
 
-#include <bp-checks.h>
-
 ssize_t
 __libc_msgrcv (msqid, msgp, msgsz, msgtyp, msgflg)
      int msqid;
@@ -34,12 +32,12 @@ __libc_msgrcv (msqid, msgp, msgsz, msgtyp, msgflg)
 {
   if (SINGLE_THREAD_P)
     return INLINE_SYSCALL (ipc, 6, IPCOP_msgrcv, msqid, msgsz, msgflg,
-                          CHECK_N (msgp, msgsz), msgtyp);
+                          msgp, msgtyp);
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
   ssize_t result = INLINE_SYSCALL (ipc, 6, IPCOP_msgrcv, msqid, msgsz, msgflg,
-                                  CHECK_N (msgp, msgsz), msgtyp);
+                                  msgp, msgtyp);
 
   LIBC_CANCEL_RESET (oldtype);
 
index 5c6b1fb301893928e684ebf3c4e90bdebee3621d..2d37de73363971e1b8d1940fc23f3e67cfabd604 100644 (file)
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 int
 __sysctl (int *name, int nlen, void *oldval, size_t *oldlenp,
          void *newval, size_t newlen)
 {
-  /* GKM FIXME: force __sysctl_args decl to have unbounded pointers.  */
   struct __sysctl_args args =
   {
     .name = name,
@@ -38,9 +36,6 @@ __sysctl (int *name, int nlen, void *oldval, size_t *oldlenp,
     .newval = newval,
     .newlen = newlen
   };
-  (void) CHECK_N (name, nlen);
-  (void) CHECK_N (oldval, *oldlenp);
-  (void) CHECK_N (newval, newlen);
 
   return INLINE_SYSCALL (_sysctl, 1, __ptrvalue (&args));
 }
index 993660a1194574f719596332eb1102ae44e6d269..e53c0d345a01e95998662832c70f57311b87c96d 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 #include <kernel-features.h>
 
 #ifndef __ASSUME_COMPLETE_READV_WRITEV
@@ -47,12 +46,12 @@ __libc_writev (fd, vector, count)
   ssize_t result;
 
   if (SINGLE_THREAD_P)
-    result = INLINE_SYSCALL (writev, 3, fd, CHECK_N (vector, count), count);
+    result = INLINE_SYSCALL (writev, 3, fd, vector, count);
   else
     {
       int oldtype = LIBC_CANCEL_ASYNC ();
 
-      result = INLINE_SYSCALL (writev, 3, fd, CHECK_N (vector, count), count);
+      result = INLINE_SYSCALL (writev, 3, fd, vector, count);
 
       LIBC_CANCEL_RESET (oldtype);
     }