|
|
147e83 |
commit a2da1673fe32540799c801e8aec374dc1c0e0596
|
|
|
147e83 |
Author: Joseph Myers <joseph@codesourcery.com>
|
|
|
147e83 |
Date: Fri Feb 8 20:06:30 2013 +0000
|
|
|
147e83 |
|
|
|
147e83 |
Remove CHECK_N and bp-checks.h.
|
|
|
147e83 |
|
|
|
147e83 |
Conflicts:
|
|
|
147e83 |
sysdeps/generic/bp-checks.h
|
|
|
147e83 |
|
|
|
147e83 |
Copyright header change; file removed manually.
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/debug/segfault.c b/debug/segfault.c
|
|
|
147e83 |
index 98886dbf152f6ea3..67435b305b84089b 100644
|
|
|
147e83 |
--- a/debug/segfault.c
|
|
|
147e83 |
+++ b/debug/segfault.c
|
|
|
147e83 |
@@ -32,8 +32,6 @@
|
|
|
147e83 |
#include <_itoa.h>
|
|
|
147e83 |
#include <ldsodefs.h>
|
|
|
147e83 |
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
-
|
|
|
147e83 |
/* This file defines macros to access the content of the sigcontext element
|
|
|
147e83 |
passed up by the signal handler. */
|
|
|
147e83 |
#include <sigcontextinfo.h>
|
|
|
147e83 |
diff --git a/ports/sysdeps/unix/sysv/linux/alpha/fdatasync.c b/ports/sysdeps/unix/sysv/linux/alpha/fdatasync.c
|
|
|
147e83 |
index 10f5035787aace19..ecb4a669d37b40c0 100644
|
|
|
147e83 |
--- a/ports/sysdeps/unix/sysv/linux/alpha/fdatasync.c
|
|
|
147e83 |
+++ b/ports/sysdeps/unix/sysv/linux/alpha/fdatasync.c
|
|
|
147e83 |
@@ -23,7 +23,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/ports/sysdeps/unix/sysv/linux/alpha/gethostname.c b/ports/sysdeps/unix/sysv/linux/alpha/gethostname.c
|
|
|
147e83 |
index cec26d9815dfc2c8..0bfdd399ba0d4767 100644
|
|
|
147e83 |
--- a/ports/sysdeps/unix/sysv/linux/alpha/gethostname.c
|
|
|
147e83 |
+++ b/ports/sysdeps/unix/sysv/linux/alpha/gethostname.c
|
|
|
147e83 |
@@ -22,14 +22,13 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
int
|
|
|
147e83 |
__gethostname (char *name, size_t len)
|
|
|
147e83 |
{
|
|
|
147e83 |
int result;
|
|
|
147e83 |
|
|
|
147e83 |
- result = INLINE_SYSCALL (gethostname, 2, CHECK_N (name, len), len);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (gethostname, 2, name, len);
|
|
|
147e83 |
|
|
|
147e83 |
if (result == 0
|
|
|
147e83 |
/* See whether the string is terminated. If not we will return
|
|
|
147e83 |
diff --git a/ports/sysdeps/unix/sysv/linux/arm/pread.c b/ports/sysdeps/unix/sysv/linux/arm/pread.c
|
|
|
147e83 |
index 4efe349e930b778c..ed7be7394307892c 100644
|
|
|
147e83 |
--- a/ports/sysdeps/unix/sysv/linux/arm/pread.c
|
|
|
147e83 |
+++ b/ports/sysdeps/unix/sysv/linux/arm/pread.c
|
|
|
147e83 |
@@ -23,7 +23,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
ssize_t
|
|
|
147e83 |
__libc_pread (fd, buf, count, offset)
|
|
|
147e83 |
@@ -38,7 +37,7 @@ __libc_pread (fd, buf, count, offset)
|
|
|
147e83 |
{
|
|
|
147e83 |
/* In the ARM EABI, 64-bit values are aligned to even/odd register
|
|
|
147e83 |
pairs for syscalls. */
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread64, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread64, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR (offset >> 31, offset));
|
|
|
147e83 |
|
|
|
147e83 |
return result;
|
|
|
147e83 |
@@ -48,7 +47,7 @@ __libc_pread (fd, buf, count, offset)
|
|
|
147e83 |
|
|
|
147e83 |
/* In the ARM EABI, 64-bit values are aligned to even/odd register
|
|
|
147e83 |
pairs for syscalls. */
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread64, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread64, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR (offset >> 31, offset));
|
|
|
147e83 |
|
|
|
147e83 |
LIBC_CANCEL_RESET (oldtype);
|
|
|
147e83 |
diff --git a/ports/sysdeps/unix/sysv/linux/arm/pread64.c b/ports/sysdeps/unix/sysv/linux/arm/pread64.c
|
|
|
147e83 |
index 59bd9cfe0b9133ba..a3e8dfccb7446d76 100644
|
|
|
147e83 |
--- a/ports/sysdeps/unix/sysv/linux/arm/pread64.c
|
|
|
147e83 |
+++ b/ports/sysdeps/unix/sysv/linux/arm/pread64.c
|
|
|
147e83 |
@@ -23,7 +23,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
ssize_t
|
|
|
147e83 |
__libc_pread64 (fd, buf, count, offset)
|
|
|
147e83 |
@@ -38,7 +37,7 @@ __libc_pread64 (fd, buf, count, offset)
|
|
|
147e83 |
{
|
|
|
147e83 |
/* In the ARM EABI, 64-bit values are aligned to even/odd register
|
|
|
147e83 |
pairs for syscalls. */
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread64, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread64, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR ((off_t) (offset >> 32),
|
|
|
147e83 |
(off_t) (offset & 0xffffffff)));
|
|
|
147e83 |
|
|
|
147e83 |
@@ -49,7 +48,7 @@ __libc_pread64 (fd, buf, count, offset)
|
|
|
147e83 |
|
|
|
147e83 |
/* In the ARM EABI, 64-bit values are aligned to even/odd register
|
|
|
147e83 |
pairs for syscalls. */
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread64, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread64, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR ((off_t) (offset >> 32),
|
|
|
147e83 |
(off_t) (offset & 0xffffffff)));
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/ports/sysdeps/unix/sysv/linux/arm/pwrite.c b/ports/sysdeps/unix/sysv/linux/arm/pwrite.c
|
|
|
147e83 |
index 43788e5420240b69..a102f307926c2873 100644
|
|
|
147e83 |
--- a/ports/sysdeps/unix/sysv/linux/arm/pwrite.c
|
|
|
147e83 |
+++ b/ports/sysdeps/unix/sysv/linux/arm/pwrite.c
|
|
|
147e83 |
@@ -23,7 +23,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
ssize_t
|
|
|
147e83 |
__libc_pwrite (fd, buf, count, offset)
|
|
|
147e83 |
@@ -38,7 +37,7 @@ __libc_pwrite (fd, buf, count, offset)
|
|
|
147e83 |
{
|
|
|
147e83 |
/* In the ARM EABI, 64-bit values are aligned to even/odd register
|
|
|
147e83 |
pairs for syscalls. */
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite64, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite64, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR (offset >> 31, offset));
|
|
|
147e83 |
|
|
|
147e83 |
return result;
|
|
|
147e83 |
@@ -48,7 +47,7 @@ __libc_pwrite (fd, buf, count, offset)
|
|
|
147e83 |
|
|
|
147e83 |
/* In the ARM EABI, 64-bit values are aligned to even/odd register
|
|
|
147e83 |
pairs for syscalls. */
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite64, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite64, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR (offset >> 31, offset));
|
|
|
147e83 |
|
|
|
147e83 |
LIBC_CANCEL_RESET (oldtype);
|
|
|
147e83 |
diff --git a/ports/sysdeps/unix/sysv/linux/arm/pwrite64.c b/ports/sysdeps/unix/sysv/linux/arm/pwrite64.c
|
|
|
147e83 |
index c7bfdaf9f34a15b5..19b15f6bd7cb2e0d 100644
|
|
|
147e83 |
--- a/ports/sysdeps/unix/sysv/linux/arm/pwrite64.c
|
|
|
147e83 |
+++ b/ports/sysdeps/unix/sysv/linux/arm/pwrite64.c
|
|
|
147e83 |
@@ -23,7 +23,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
ssize_t
|
|
|
147e83 |
__libc_pwrite64 (fd, buf, count, offset)
|
|
|
147e83 |
@@ -38,7 +37,7 @@ __libc_pwrite64 (fd, buf, count, offset)
|
|
|
147e83 |
{
|
|
|
147e83 |
/* In the ARM EABI, 64-bit values are aligned to even/odd register
|
|
|
147e83 |
pairs for syscalls. */
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite64, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite64, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR ((off_t) (offset >> 32),
|
|
|
147e83 |
(off_t) (offset & 0xffffffff)));
|
|
|
147e83 |
|
|
|
147e83 |
@@ -49,7 +48,7 @@ __libc_pwrite64 (fd, buf, count, offset)
|
|
|
147e83 |
|
|
|
147e83 |
/* In the ARM EABI, 64-bit values are aligned to even/odd register
|
|
|
147e83 |
pairs for syscalls. */
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite64, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite64, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR ((off_t) (offset >> 32),
|
|
|
147e83 |
(off_t) (offset & 0xffffffff)));
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/ports/sysdeps/unix/sysv/linux/mips/mips64/fxstat64.c b/ports/sysdeps/unix/sysv/linux/mips/mips64/fxstat64.c
|
|
|
147e83 |
index 24b517e43846b80a..dda02b14442d5cb5 100644
|
|
|
147e83 |
--- a/ports/sysdeps/unix/sysv/linux/mips/mips64/fxstat64.c
|
|
|
147e83 |
+++ b/ports/sysdeps/unix/sysv/linux/mips/mips64/fxstat64.c
|
|
|
147e83 |
@@ -23,7 +23,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <xstatconv.h>
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/ports/sysdeps/unix/sysv/linux/mips/pread.c b/ports/sysdeps/unix/sysv/linux/mips/pread.c
|
|
|
147e83 |
index a868130ea1144e44..f24e500c10efae99 100644
|
|
|
147e83 |
--- a/ports/sysdeps/unix/sysv/linux/mips/pread.c
|
|
|
147e83 |
+++ b/ports/sysdeps/unix/sysv/linux/mips/pread.c
|
|
|
147e83 |
@@ -26,7 +26,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -54,10 +53,9 @@ __libc_pread (fd, buf, count, offset)
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
{
|
|
|
147e83 |
#if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
- offset);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
|
|
|
147e83 |
#else
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR (offset >> 31, offset));
|
|
|
147e83 |
#endif
|
|
|
147e83 |
return result;
|
|
|
147e83 |
@@ -66,9 +64,9 @@ __libc_pread (fd, buf, count, offset)
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
#if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count, offset);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
|
|
|
147e83 |
#else
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR (offset >> 31, offset));
|
|
|
147e83 |
#endif
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/ports/sysdeps/unix/sysv/linux/mips/pread64.c b/ports/sysdeps/unix/sysv/linux/mips/pread64.c
|
|
|
147e83 |
index 6f9b0054a53faf67..d5172a039d7fd269 100644
|
|
|
147e83 |
--- a/ports/sysdeps/unix/sysv/linux/mips/pread64.c
|
|
|
147e83 |
+++ b/ports/sysdeps/unix/sysv/linux/mips/pread64.c
|
|
|
147e83 |
@@ -25,7 +25,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -50,10 +49,9 @@ __libc_pread64 (fd, buf, count, offset)
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
{
|
|
|
147e83 |
#if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
- offset);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
|
|
|
147e83 |
#else
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR ((off_t) (offset >> 32),
|
|
|
147e83 |
(off_t) (offset & 0xffffffff)));
|
|
|
147e83 |
#endif
|
|
|
147e83 |
@@ -63,9 +61,9 @@ __libc_pread64 (fd, buf, count, offset)
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
#if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count, offset);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
|
|
|
147e83 |
#else
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR ((off_t) (offset >> 32),
|
|
|
147e83 |
(off_t) (offset & 0xffffffff)));
|
|
|
147e83 |
#endif
|
|
|
147e83 |
diff --git a/ports/sysdeps/unix/sysv/linux/mips/pwrite.c b/ports/sysdeps/unix/sysv/linux/mips/pwrite.c
|
|
|
147e83 |
index cc0c3b7c22199cc0..caa69cbb4f7e3e77 100644
|
|
|
147e83 |
--- a/ports/sysdeps/unix/sysv/linux/mips/pwrite.c
|
|
|
147e83 |
+++ b/ports/sysdeps/unix/sysv/linux/mips/pwrite.c
|
|
|
147e83 |
@@ -26,7 +26,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -54,10 +53,9 @@ __libc_pwrite (fd, buf, count, offset)
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
{
|
|
|
147e83 |
#if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
- offset);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
|
|
|
147e83 |
#else
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR (offset >> 31, offset));
|
|
|
147e83 |
#endif
|
|
|
147e83 |
return result;
|
|
|
147e83 |
@@ -66,9 +64,9 @@ __libc_pwrite (fd, buf, count, offset)
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
#if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count, offset);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
|
|
|
147e83 |
#else
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR (offset >> 31, offset));
|
|
|
147e83 |
#endif
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/ports/sysdeps/unix/sysv/linux/mips/pwrite64.c b/ports/sysdeps/unix/sysv/linux/mips/pwrite64.c
|
|
|
147e83 |
index d60accd57fc3c535..d8ae27a9abf5c606 100644
|
|
|
147e83 |
--- a/ports/sysdeps/unix/sysv/linux/mips/pwrite64.c
|
|
|
147e83 |
+++ b/ports/sysdeps/unix/sysv/linux/mips/pwrite64.c
|
|
|
147e83 |
@@ -25,7 +25,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -49,10 +48,9 @@ __libc_pwrite64 (fd, buf, count, offset)
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
{
|
|
|
147e83 |
#if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
- offset);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
|
|
|
147e83 |
#else
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR ((off_t) (offset >> 32),
|
|
|
147e83 |
(off_t) (offset & 0xffffffff)));
|
|
|
147e83 |
#endif
|
|
|
147e83 |
@@ -63,9 +61,9 @@ __libc_pwrite64 (fd, buf, count, offset)
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
#if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count, offset);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
|
|
|
147e83 |
#else
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR ((off_t) (offset >> 32),
|
|
|
147e83 |
(off_t) (offset & 0xffffffff)));
|
|
|
147e83 |
#endif
|
|
|
147e83 |
diff --git a/sysdeps/generic/bp-checks.h b/sysdeps/generic/bp-checks.h
|
|
|
147e83 |
deleted file mode 100644
|
|
|
147e83 |
index 90a07fc10fde3a84..0000000000000000
|
|
|
147e83 |
--- a/sysdeps/generic/bp-checks.h
|
|
|
147e83 |
+++ /dev/null
|
|
|
147e83 |
@@ -1,49 +0,0 @@
|
|
|
147e83 |
-/* Bounded-pointer checking macros for C.
|
|
|
147e83 |
- Copyright (C) 2000 Free Software Foundation, Inc.
|
|
|
147e83 |
- This file is part of the GNU C Library.
|
|
|
147e83 |
- Contributed by Greg McGary <greg@mcgary.org>
|
|
|
147e83 |
-
|
|
|
147e83 |
- The GNU C Library is free software; you can redistribute it and/or
|
|
|
147e83 |
- modify it under the terms of the GNU Lesser General Public
|
|
|
147e83 |
- License as published by the Free Software Foundation; either
|
|
|
147e83 |
- version 2.1 of the License, or (at your option) any later version.
|
|
|
147e83 |
-
|
|
|
147e83 |
- The GNU C Library is distributed in the hope that it will be useful,
|
|
|
147e83 |
- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
147e83 |
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
147e83 |
- Lesser General Public License for more details.
|
|
|
147e83 |
-
|
|
|
147e83 |
- You should have received a copy of the GNU Lesser General Public
|
|
|
147e83 |
- License along with the GNU C Library; if not, see
|
|
|
147e83 |
- <http://www.gnu.org/licenses/>. */
|
|
|
147e83 |
-
|
|
|
147e83 |
-#ifndef _bp_checks_h_
|
|
|
147e83 |
-#define _bp_checks_h_ 1
|
|
|
147e83 |
-
|
|
|
147e83 |
-#if __BOUNDED_POINTERS__
|
|
|
147e83 |
-
|
|
|
147e83 |
-# define BOUNDS_VIOLATED (__builtin_trap (), 0)
|
|
|
147e83 |
-
|
|
|
147e83 |
-# define _CHECK_N(ARG, N, COND) \
|
|
|
147e83 |
- (((COND) \
|
|
|
147e83 |
- && (__ptrvalue (ARG) < __ptrlow (ARG) \
|
|
|
147e83 |
- || __ptrvalue (ARG) + (N) > __ptrhigh (ARG)) \
|
|
|
147e83 |
- && BOUNDS_VIOLATED), \
|
|
|
147e83 |
- __ptrvalue (ARG))
|
|
|
147e83 |
-
|
|
|
147e83 |
-/* Check bounds of a pointer seated to an array of N objects. */
|
|
|
147e83 |
-# define CHECK_N(ARG, N) _CHECK_N ((ARG), (N), 1)
|
|
|
147e83 |
-/* Same as CHECK_N, but tolerate ARG == NULL. */
|
|
|
147e83 |
-# define CHECK_N_NULL_OK(ARG, N) _CHECK_N ((ARG), (N), __ptrvalue (ARG))
|
|
|
147e83 |
-
|
|
|
147e83 |
-#else /* !__BOUNDED_POINTERS__ */
|
|
|
147e83 |
-
|
|
|
147e83 |
-/* Do nothing if not compiling with -fbounded-pointers. */
|
|
|
147e83 |
-
|
|
|
147e83 |
-# define BOUNDS_VIOLATED
|
|
|
147e83 |
-# define CHECK_N(ARG, N) (ARG)
|
|
|
147e83 |
-# define CHECK_N_NULL_OK(ARG, N) (ARG)
|
|
|
147e83 |
-
|
|
|
147e83 |
-#endif /* !__BOUNDED_POINTERS__ */
|
|
|
147e83 |
-
|
|
|
147e83 |
-#endif /* _bp_checks_h_ */
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/getdents.c b/sysdeps/unix/sysv/linux/getdents.c
|
|
|
147e83 |
index babfbd0a43a29450..6b64f5d9bdb6b573 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/getdents.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/getdents.c
|
|
|
147e83 |
@@ -28,7 +28,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <linux/posix_types.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -109,7 +108,7 @@ __GETDENTS (int fd, char *buf, size_t nbytes)
|
|
|
147e83 |
&& (offsetof (struct kernel_dirent, d_reclen)
|
|
|
147e83 |
== offsetof (struct dirent, d_reclen)))
|
|
|
147e83 |
{
|
|
|
147e83 |
- retval = INLINE_SYSCALL (getdents, 3, fd, CHECK_N(buf, nbytes), nbytes);
|
|
|
147e83 |
+ retval = INLINE_SYSCALL (getdents, 3, fd, buf, nbytes);
|
|
|
147e83 |
|
|
|
147e83 |
/* The kernel added the d_type value after the name. Change
|
|
|
147e83 |
this now. */
|
|
|
147e83 |
@@ -158,8 +157,7 @@ __GETDENTS (int fd, char *buf, size_t nbytes)
|
|
|
147e83 |
- offsetof (DIRENT_TYPE, d_name);
|
|
|
147e83 |
kbuf = __alloca(kbytes);
|
|
|
147e83 |
}
|
|
|
147e83 |
- retval = INLINE_SYSCALL (getdents64, 3, fd, CHECK_N(kbuf, kbytes),
|
|
|
147e83 |
- kbytes);
|
|
|
147e83 |
+ retval = INLINE_SYSCALL (getdents64, 3, fd, kbuf, kbytes);
|
|
|
147e83 |
# ifndef __ASSUME_GETDENTS64_SYSCALL
|
|
|
147e83 |
if (retval != -1 || (errno != EINVAL && errno != ENOSYS))
|
|
|
147e83 |
# endif
|
|
|
147e83 |
@@ -255,8 +253,7 @@ __GETDENTS (int fd, char *buf, size_t nbytes)
|
|
|
147e83 |
|
|
|
147e83 |
skdp = kdp = __alloca (red_nbytes);
|
|
|
147e83 |
|
|
|
147e83 |
- retval = INLINE_SYSCALL (getdents, 3, fd,
|
|
|
147e83 |
- CHECK_N ((char *) kdp, red_nbytes), red_nbytes);
|
|
|
147e83 |
+ retval = INLINE_SYSCALL (getdents, 3, fd, (char *) kdp, red_nbytes);
|
|
|
147e83 |
|
|
|
147e83 |
if (retval == -1)
|
|
|
147e83 |
return -1;
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/i386/brk.c b/sysdeps/unix/sysv/linux/i386/brk.c
|
|
|
147e83 |
index 68451f1b17e52c45..0b367096f47007ce 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/i386/brk.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/i386/brk.c
|
|
|
147e83 |
@@ -20,8 +20,6 @@
|
|
|
147e83 |
#include <unistd.h>
|
|
|
147e83 |
#include <sysdep.h>
|
|
|
147e83 |
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
-
|
|
|
147e83 |
/* This must be initialized data because commons can't have aliases. */
|
|
|
147e83 |
void *__curbrk = 0;
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/i386/getgroups.c b/sysdeps/unix/sysv/linux/i386/getgroups.c
|
|
|
147e83 |
index e0871ec2d29258ab..7759c17a9bbfb37c 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/i386/getgroups.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/i386/getgroups.c
|
|
|
147e83 |
@@ -22,7 +22,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <linux/posix_types.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -34,7 +33,7 @@
|
|
|
147e83 |
int
|
|
|
147e83 |
__getgroups (int n, gid_t *groups)
|
|
|
147e83 |
{
|
|
|
147e83 |
- return INLINE_SYSCALL (getgroups32, 2, n, CHECK_N (groups, n));
|
|
|
147e83 |
+ return INLINE_SYSCALL (getgroups32, 2, n, groups);
|
|
|
147e83 |
}
|
|
|
147e83 |
|
|
|
147e83 |
weak_alias (__getgroups, getgroups)
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/i386/setgroups.c b/sysdeps/unix/sysv/linux/i386/setgroups.c
|
|
|
147e83 |
index 73b341ac53010d2b..e9466fd9e1eef27f 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/i386/setgroups.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/i386/setgroups.c
|
|
|
147e83 |
@@ -22,7 +22,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <setxid.h>
|
|
|
147e83 |
#include <linux/posix_types.h>
|
|
|
147e83 |
@@ -33,6 +32,6 @@
|
|
|
147e83 |
int
|
|
|
147e83 |
setgroups (size_t n, const gid_t *groups)
|
|
|
147e83 |
{
|
|
|
147e83 |
- return INLINE_SETXID_SYSCALL (setgroups32, 2, n, CHECK_N (groups, n));
|
|
|
147e83 |
+ return INLINE_SETXID_SYSCALL (setgroups32, 2, n, groups);
|
|
|
147e83 |
}
|
|
|
147e83 |
libc_hidden_def (setgroups)
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/mmap64.c b/sysdeps/unix/sysv/linux/mmap64.c
|
|
|
147e83 |
index bca15f9c5dd4c590..87bd532c5e350c56 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/mmap64.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/mmap64.c
|
|
|
147e83 |
@@ -22,7 +22,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/msgrcv.c b/sysdeps/unix/sysv/linux/msgrcv.c
|
|
|
147e83 |
index 0b47ce7bbe125945..dc0e34fe3d7f2ffd 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/msgrcv.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/msgrcv.c
|
|
|
147e83 |
@@ -23,8 +23,6 @@
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
-
|
|
|
147e83 |
/* Kludge to work around Linux' restriction of only up to five
|
|
|
147e83 |
arguments to a system call. */
|
|
|
147e83 |
struct ipc_kludge
|
|
|
147e83 |
@@ -46,7 +44,7 @@ __libc_msgrcv (msqid, msgp, msgsz, msgtyp, msgflg)
|
|
|
147e83 |
fives parameters to a system call. */
|
|
|
147e83 |
struct ipc_kludge tmp;
|
|
|
147e83 |
|
|
|
147e83 |
- tmp.msgp = CHECK_N (msgp, msgsz);
|
|
|
147e83 |
+ tmp.msgp = msgp;
|
|
|
147e83 |
tmp.msgtyp = msgtyp;
|
|
|
147e83 |
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/msgsnd.c b/sysdeps/unix/sysv/linux/msgsnd.c
|
|
|
147e83 |
index 2f57fe74f10dae31..2883cad8aa370c6c 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/msgsnd.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/msgsnd.c
|
|
|
147e83 |
@@ -23,8 +23,6 @@
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
-
|
|
|
147e83 |
int
|
|
|
147e83 |
__libc_msgsnd (msqid, msgp, msgsz, msgflg)
|
|
|
147e83 |
int msqid;
|
|
|
147e83 |
@@ -34,12 +32,12 @@ __libc_msgsnd (msqid, msgp, msgsz, msgflg)
|
|
|
147e83 |
{
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
return INLINE_SYSCALL (ipc, 5, IPCOP_msgsnd, msqid, msgsz,
|
|
|
147e83 |
- msgflg, (void *) CHECK_N (msgp, msgsz));
|
|
|
147e83 |
+ msgflg, (void *) msgp);
|
|
|
147e83 |
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
int result = INLINE_SYSCALL (ipc, 5, IPCOP_msgsnd, msqid, msgsz,
|
|
|
147e83 |
- msgflg, (void *) CHECK_N (msgp, msgsz));
|
|
|
147e83 |
+ msgflg, (void *) msgp);
|
|
|
147e83 |
|
|
|
147e83 |
LIBC_CANCEL_RESET (oldtype);
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
|
|
|
147e83 |
index 364834f1d0c717e7..9a9d0d456e5db1c0 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
|
|
|
147e83 |
@@ -22,7 +22,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -38,7 +37,7 @@ __libc_pread (fd, buf, count, offset)
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
{
|
|
|
147e83 |
/* On PPC32 64bit values are aligned in odd/even register pairs. */
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 6, fd, buf, count,
|
|
|
147e83 |
0, offset >> 31, offset);
|
|
|
147e83 |
|
|
|
147e83 |
return result;
|
|
|
147e83 |
@@ -47,7 +46,7 @@ __libc_pread (fd, buf, count, offset)
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
/* On PPC32 64bit values are aligned in odd/even register pairs. */
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 6, fd, buf, count,
|
|
|
147e83 |
0, offset >> 31, offset);
|
|
|
147e83 |
|
|
|
147e83 |
LIBC_CANCEL_RESET (oldtype);
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
|
|
|
147e83 |
index 5b1445ff23ef9ab4..1435b293b143159b 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
|
|
|
147e83 |
@@ -21,7 +21,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -38,7 +37,7 @@ __libc_pread64 (fd, buf, count, offset)
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
{
|
|
|
147e83 |
/* On PPC32 64bit values are aligned in odd/even register pairs. */
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 6, fd, buf, count,
|
|
|
147e83 |
0, (long) (offset >> 32),
|
|
|
147e83 |
(long) offset);
|
|
|
147e83 |
|
|
|
147e83 |
@@ -48,7 +47,7 @@ __libc_pread64 (fd, buf, count, offset)
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
/* On PPC32 64bit values are aligned in odd/even register pairs. */
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 6, fd, buf, count,
|
|
|
147e83 |
0, (long) (offset >> 32),
|
|
|
147e83 |
(long) offset);
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
|
|
|
147e83 |
index ed1878bc5ee94a5e..d3a551c5a97550ca 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
|
|
|
147e83 |
@@ -22,7 +22,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -39,7 +38,7 @@ __libc_pwrite (fd, buf, count, offset)
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
{
|
|
|
147e83 |
/* On PPC32 64bit values are aligned in odd/even register pairs. */
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 6, fd, buf, count,
|
|
|
147e83 |
0, offset >> 31, offset);
|
|
|
147e83 |
|
|
|
147e83 |
return result;
|
|
|
147e83 |
@@ -48,7 +47,7 @@ __libc_pwrite (fd, buf, count, offset)
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
/* On PPC32 64bit values are aligned in odd/even register pairs. */
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 6, fd, buf, count,
|
|
|
147e83 |
0, offset >> 31, offset);
|
|
|
147e83 |
|
|
|
147e83 |
LIBC_CANCEL_RESET (oldtype);
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
|
|
|
147e83 |
index dedeb7e97d8ed14b..d89a1759d1903eba 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
|
|
|
147e83 |
@@ -21,7 +21,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -38,7 +37,7 @@ __libc_pwrite64 (fd, buf, count, offset)
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
{
|
|
|
147e83 |
/* On PPC32 64bit values are aligned in odd/even register pairs. */
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 6, fd, buf, count,
|
|
|
147e83 |
0, (long) (offset >> 32),
|
|
|
147e83 |
(long) offset);
|
|
|
147e83 |
|
|
|
147e83 |
@@ -48,7 +47,7 @@ __libc_pwrite64 (fd, buf, count, offset)
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
/* On PPC32 64bit values are aligned in odd/even register pairs. */
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 6, fd, buf, count,
|
|
|
147e83 |
0, (long) (offset >> 32),
|
|
|
147e83 |
(long) offset);
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c b/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
|
|
|
147e83 |
index ed4708f2dee6b9a7..43ead1af67b0c0da 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
|
|
|
147e83 |
@@ -22,7 +22,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -40,16 +39,14 @@ __libc_pread (fd, buf, count, offset)
|
|
|
147e83 |
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
{
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
- offset);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
|
|
|
147e83 |
|
|
|
147e83 |
return result;
|
|
|
147e83 |
}
|
|
|
147e83 |
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
- offset);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
|
|
|
147e83 |
|
|
|
147e83 |
LIBC_CANCEL_RESET (oldtype);
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c b/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
|
|
|
147e83 |
index 63ba30df297b703a..dc9fc81c4ccf067e 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
|
|
|
147e83 |
@@ -21,7 +21,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -39,16 +38,14 @@ __libc_pread64 (fd, buf, count, offset)
|
|
|
147e83 |
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
{
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
- offset);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
|
|
|
147e83 |
|
|
|
147e83 |
return result;
|
|
|
147e83 |
}
|
|
|
147e83 |
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
- offset);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
|
|
|
147e83 |
|
|
|
147e83 |
LIBC_CANCEL_RESET (oldtype);
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c b/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
|
|
|
147e83 |
index 68f26dfb7e2c8d4e..57c62bdb74805836 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
|
|
|
147e83 |
@@ -22,7 +22,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -40,16 +39,14 @@ __libc_pwrite (fd, buf, count, offset)
|
|
|
147e83 |
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
{
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
- offset);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
|
|
|
147e83 |
|
|
|
147e83 |
return result;
|
|
|
147e83 |
}
|
|
|
147e83 |
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
- offset);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
|
|
|
147e83 |
|
|
|
147e83 |
LIBC_CANCEL_RESET (oldtype);
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c b/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
|
|
|
147e83 |
index 71ffa17c5befd899..430bb4ef2bd2eb3e 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
|
|
|
147e83 |
@@ -21,7 +21,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -39,16 +38,14 @@ __libc_pwrite64 (fd, buf, count, offset)
|
|
|
147e83 |
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
{
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
- offset);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
|
|
|
147e83 |
|
|
|
147e83 |
return result;
|
|
|
147e83 |
}
|
|
|
147e83 |
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
- offset);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
|
|
|
147e83 |
|
|
|
147e83 |
LIBC_CANCEL_RESET (oldtype);
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/pread.c b/sysdeps/unix/sysv/linux/pread.c
|
|
|
147e83 |
index 4ea67fcb0b04c271..7322e42d6ed990c1 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/pread.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/pread.c
|
|
|
147e83 |
@@ -23,7 +23,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -44,7 +43,7 @@ do_pread (int fd, void *buf, size_t count, off_t offset)
|
|
|
147e83 |
ssize_t result;
|
|
|
147e83 |
|
|
|
147e83 |
assert (sizeof (offset) == 4);
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 5, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 5, fd, buf, count,
|
|
|
147e83 |
__LONG_LONG_PAIR (offset >> 31, offset));
|
|
|
147e83 |
|
|
|
147e83 |
return result;
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/pread64.c b/sysdeps/unix/sysv/linux/pread64.c
|
|
|
147e83 |
index 897b5674a75c23be..03e5f1402bf8b888 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/pread64.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/pread64.c
|
|
|
147e83 |
@@ -22,7 +22,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -39,7 +38,7 @@ do_pread64 (int fd, void *buf, size_t count, off64_t offset)
|
|
|
147e83 |
{
|
|
|
147e83 |
ssize_t result;
|
|
|
147e83 |
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 5, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 5, fd, buf, count,
|
|
|
147e83 |
__LONG_LONG_PAIR ((off_t) (offset >> 32),
|
|
|
147e83 |
(off_t) (offset & 0xffffffff)));
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/pwrite.c b/sysdeps/unix/sysv/linux/pwrite.c
|
|
|
147e83 |
index c4940fcdd09b0726..e773d65f2e5602a8 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/pwrite.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/pwrite.c
|
|
|
147e83 |
@@ -23,7 +23,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -44,7 +43,7 @@ do_pwrite (int fd, const void *buf, size_t count, off_t offset)
|
|
|
147e83 |
ssize_t result;
|
|
|
147e83 |
|
|
|
147e83 |
assert (sizeof (offset) == 4);
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 5, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 5, fd, buf, count,
|
|
|
147e83 |
__LONG_LONG_PAIR (offset >> 31, offset));
|
|
|
147e83 |
|
|
|
147e83 |
return result;
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/pwrite64.c b/sysdeps/unix/sysv/linux/pwrite64.c
|
|
|
147e83 |
index ad945a2903a44714..558a08e735616649 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/pwrite64.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/pwrite64.c
|
|
|
147e83 |
@@ -22,7 +22,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -39,7 +38,7 @@ do_pwrite64 (int fd, const void *buf, size_t count, off64_t offset)
|
|
|
147e83 |
{
|
|
|
147e83 |
ssize_t result;
|
|
|
147e83 |
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 5, fd, CHECK_N (buf, count), count,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 5, fd, buf, count,
|
|
|
147e83 |
__LONG_LONG_PAIR ((off_t) (offset >> 32),
|
|
|
147e83 |
(off_t) (offset & 0xffffffff)));
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/readv.c b/sysdeps/unix/sysv/linux/readv.c
|
|
|
147e83 |
index 440e1039c3a8f3ac..e8acd65ce377963a 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/readv.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/readv.c
|
|
|
147e83 |
@@ -24,7 +24,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
#ifndef __ASSUME_COMPLETE_READV_WRITEV
|
|
|
147e83 |
@@ -48,12 +47,12 @@ __libc_readv (fd, vector, count)
|
|
|
147e83 |
ssize_t result;
|
|
|
147e83 |
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
- result = INLINE_SYSCALL (readv, 3, fd, CHECK_N (vector, count), count);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (readv, 3, fd, vector, count);
|
|
|
147e83 |
else
|
|
|
147e83 |
{
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
- result = INLINE_SYSCALL (readv, 3, fd, CHECK_N (vector, count), count);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (readv, 3, fd, vector, count);
|
|
|
147e83 |
|
|
|
147e83 |
LIBC_CANCEL_RESET (oldtype);
|
|
|
147e83 |
}
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/semop.c b/sysdeps/unix/sysv/linux/semop.c
|
|
|
147e83 |
index 22bdeeb0f19bef15..4cd6891976858cc2 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/semop.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/semop.c
|
|
|
147e83 |
@@ -22,7 +22,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
/* Perform user-defined atomical operation of array of semaphores. */
|
|
|
147e83 |
|
|
|
147e83 |
@@ -32,6 +31,5 @@ semop (semid, sops, nsops)
|
|
|
147e83 |
struct sembuf *sops;
|
|
|
147e83 |
size_t nsops;
|
|
|
147e83 |
{
|
|
|
147e83 |
- return INLINE_SYSCALL (ipc, 5, IPCOP_semop,
|
|
|
147e83 |
- semid, (int) nsops, 0, CHECK_N (sops, nsops));
|
|
|
147e83 |
+ return INLINE_SYSCALL (ipc, 5, IPCOP_semop, semid, (int) nsops, 0, sops);
|
|
|
147e83 |
}
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/semtimedop.c b/sysdeps/unix/sysv/linux/semtimedop.c
|
|
|
147e83 |
index 6e2c40f3758483a9..5a43f53975aeafcc 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/semtimedop.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/semtimedop.c
|
|
|
147e83 |
@@ -22,7 +22,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
/* Perform user-defined atomical operation of array of semaphores. */
|
|
|
147e83 |
|
|
|
147e83 |
@@ -34,6 +33,6 @@ semtimedop (semid, sops, nsops, timeout)
|
|
|
147e83 |
const struct timespec *timeout;
|
|
|
147e83 |
{
|
|
|
147e83 |
return INLINE_SYSCALL (ipc, 6, IPCOP_semtimedop,
|
|
|
147e83 |
- semid, (int) nsops, 0, CHECK_N (sops, nsops),
|
|
|
147e83 |
+ semid, (int) nsops, 0, sops,
|
|
|
147e83 |
timeout);
|
|
|
147e83 |
}
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/sh/pread.c b/sysdeps/unix/sysv/linux/sh/pread.c
|
|
|
147e83 |
index 3e7702f10d26c347..160c906a4d0197fd 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/sh/pread.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/sh/pread.c
|
|
|
147e83 |
@@ -23,7 +23,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -46,14 +45,14 @@ __libc_pread (fd, buf, count, offset)
|
|
|
147e83 |
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
{
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR (offset >> 31, offset));
|
|
|
147e83 |
return result;
|
|
|
147e83 |
}
|
|
|
147e83 |
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR (offset >> 31, offset));
|
|
|
147e83 |
|
|
|
147e83 |
LIBC_CANCEL_RESET (oldtype);
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/sh/pread64.c b/sysdeps/unix/sysv/linux/sh/pread64.c
|
|
|
147e83 |
index 523ed7f82f5e5de7..bb4f13d06b72fdf1 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/sh/pread64.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/sh/pread64.c
|
|
|
147e83 |
@@ -22,7 +22,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -45,7 +44,7 @@ __libc_pread64 (fd, buf, count, offset)
|
|
|
147e83 |
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
{
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR ((off_t) (offset >> 32),
|
|
|
147e83 |
(off_t) (offset & 0xffffffff)));
|
|
|
147e83 |
return result;
|
|
|
147e83 |
@@ -53,7 +52,7 @@ __libc_pread64 (fd, buf, count, offset)
|
|
|
147e83 |
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
- result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR ((off_t) (offset >> 32),
|
|
|
147e83 |
(off_t) (offset & 0xffffffff)));
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/sh/pwrite.c b/sysdeps/unix/sysv/linux/sh/pwrite.c
|
|
|
147e83 |
index e8052757aae56afe..b17bd87a5d4f74cc 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/sh/pwrite.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/sh/pwrite.c
|
|
|
147e83 |
@@ -23,7 +23,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -46,14 +45,14 @@ __libc_pwrite (fd, buf, count, offset)
|
|
|
147e83 |
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
{
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR (offset >> 31, offset));
|
|
|
147e83 |
return result;
|
|
|
147e83 |
}
|
|
|
147e83 |
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR (offset >> 31, offset));
|
|
|
147e83 |
|
|
|
147e83 |
LIBC_CANCEL_RESET (oldtype);
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/sh/pwrite64.c b/sysdeps/unix/sysv/linux/sh/pwrite64.c
|
|
|
147e83 |
index 8f80fea49501ed2b..d9f41ec34cf01fb4 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/sh/pwrite64.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/sh/pwrite64.c
|
|
|
147e83 |
@@ -22,7 +22,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
@@ -45,7 +44,7 @@ __libc_pwrite64 (fd, buf, count, offset)
|
|
|
147e83 |
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
{
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR ((off_t) (offset >> 32),
|
|
|
147e83 |
(off_t) (offset & 0xffffffff)));
|
|
|
147e83 |
|
|
|
147e83 |
@@ -54,7 +53,7 @@ __libc_pwrite64 (fd, buf, count, offset)
|
|
|
147e83 |
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
- result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
|
|
|
147e83 |
+ result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
|
|
|
147e83 |
__LONG_LONG_PAIR ((off_t) (offset >> 32),
|
|
|
147e83 |
(off_t) (offset & 0xffffffff)));
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c b/sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c
|
|
|
147e83 |
index 15eb7983c6ebd3f9..3684a01142f68323 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c
|
|
|
147e83 |
@@ -22,8 +22,6 @@
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
-
|
|
|
147e83 |
ssize_t
|
|
|
147e83 |
__libc_msgrcv (msqid, msgp, msgsz, msgtyp, msgflg)
|
|
|
147e83 |
int msqid;
|
|
|
147e83 |
@@ -34,12 +32,12 @@ __libc_msgrcv (msqid, msgp, msgsz, msgtyp, msgflg)
|
|
|
147e83 |
{
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
return INLINE_SYSCALL (ipc, 6, IPCOP_msgrcv, msqid, msgsz, msgflg,
|
|
|
147e83 |
- CHECK_N (msgp, msgsz), msgtyp);
|
|
|
147e83 |
+ msgp, msgtyp);
|
|
|
147e83 |
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
ssize_t result = INLINE_SYSCALL (ipc, 6, IPCOP_msgrcv, msqid, msgsz, msgflg,
|
|
|
147e83 |
- CHECK_N (msgp, msgsz), msgtyp);
|
|
|
147e83 |
+ msgp, msgtyp);
|
|
|
147e83 |
|
|
|
147e83 |
LIBC_CANCEL_RESET (oldtype);
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/sysctl.c b/sysdeps/unix/sysv/linux/sysctl.c
|
|
|
147e83 |
index f69c8229643ae5a9..e00ecfe85cfc0281 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/sysctl.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/sysctl.c
|
|
|
147e83 |
@@ -22,13 +22,11 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
|
|
|
147e83 |
int
|
|
|
147e83 |
__sysctl (int *name, int nlen, void *oldval, size_t *oldlenp,
|
|
|
147e83 |
void *newval, size_t newlen)
|
|
|
147e83 |
{
|
|
|
147e83 |
- /* GKM FIXME: force __sysctl_args decl to have unbounded pointers. */
|
|
|
147e83 |
struct __sysctl_args args =
|
|
|
147e83 |
{
|
|
|
147e83 |
.name = name,
|
|
|
147e83 |
@@ -38,9 +36,6 @@ __sysctl (int *name, int nlen, void *oldval, size_t *oldlenp,
|
|
|
147e83 |
.newval = newval,
|
|
|
147e83 |
.newlen = newlen
|
|
|
147e83 |
};
|
|
|
147e83 |
- (void) CHECK_N (name, nlen);
|
|
|
147e83 |
- (void) CHECK_N (oldval, *oldlenp);
|
|
|
147e83 |
- (void) CHECK_N (newval, newlen);
|
|
|
147e83 |
|
|
|
147e83 |
return INLINE_SYSCALL (_sysctl, 1, __ptrvalue (&args));
|
|
|
147e83 |
}
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/writev.c b/sysdeps/unix/sysv/linux/writev.c
|
|
|
147e83 |
index 26a68df6b902a6fc..8b018ecdf6fbc323 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/writev.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/writev.c
|
|
|
147e83 |
@@ -23,7 +23,6 @@
|
|
|
147e83 |
|
|
|
147e83 |
#include <sysdep-cancel.h>
|
|
|
147e83 |
#include <sys/syscall.h>
|
|
|
147e83 |
-#include <bp-checks.h>
|
|
|
147e83 |
#include <kernel-features.h>
|
|
|
147e83 |
|
|
|
147e83 |
#ifndef __ASSUME_COMPLETE_READV_WRITEV
|
|
|
147e83 |
@@ -47,12 +46,12 @@ __libc_writev (fd, vector, count)
|
|
|
147e83 |
ssize_t result;
|
|
|
147e83 |
|
|
|
147e83 |
if (SINGLE_THREAD_P)
|
|
|
147e83 |
- result = INLINE_SYSCALL (writev, 3, fd, CHECK_N (vector, count), count);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (writev, 3, fd, vector, count);
|
|
|
147e83 |
else
|
|
|
147e83 |
{
|
|
|
147e83 |
int oldtype = LIBC_CANCEL_ASYNC ();
|
|
|
147e83 |
|
|
|
147e83 |
- result = INLINE_SYSCALL (writev, 3, fd, CHECK_N (vector, count), count);
|
|
|
147e83 |
+ result = INLINE_SYSCALL (writev, 3, fd, vector, count);
|
|
|
147e83 |
|
|
|
147e83 |
LIBC_CANCEL_RESET (oldtype);
|
|
|
147e83 |
}
|