|
|
00db10 |
commit f3aae3f3eb4e4345413dc238e941cdb52f747d16
|
|
|
00db10 |
Author: Joseph Myers <joseph@codesourcery.com>
|
|
|
00db10 |
Date: Fri Feb 8 01:12:11 2013 +0000
|
|
|
00db10 |
|
|
|
00db10 |
Remove CHECK_1 and CHECK_1_NULL_OK.
|
|
|
00db10 |
|
|
|
00db10 |
Conflicts:
|
|
|
00db10 |
sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
|
|
|
00db10 |
|
|
|
00db10 |
Change was already part of glibc-rh977110-2.patch.
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/gettimeofday.c b/ports/sysdeps/unix/sysv/linux/aarch64/gettimeofday.c
|
|
|
00db10 |
index 11194f6da7e56429..90d115577bad42ec 100644
|
|
|
00db10 |
--- a/ports/sysdeps/unix/sysv/linux/aarch64/gettimeofday.c
|
|
|
00db10 |
+++ b/ports/sysdeps/unix/sysv/linux/aarch64/gettimeofday.c
|
|
|
00db10 |
@@ -22,7 +22,6 @@
|
|
|
00db10 |
#undef __gettimeofday
|
|
|
00db10 |
|
|
|
00db10 |
#include <bits/libc-vdso.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
/* Get the current time of day and timezone information,
|
|
|
00db10 |
putting it into *tv and *tz. If tz is null, *tz is not filled.
|
|
|
00db10 |
@@ -32,7 +31,7 @@ __gettimeofday (tv, tz)
|
|
|
00db10 |
struct timeval *tv;
|
|
|
00db10 |
struct timezone *tz;
|
|
|
00db10 |
{
|
|
|
00db10 |
- return INLINE_VSYSCALL (gettimeofday, 2, CHECK_1 (tv), CHECK_1 (tz));
|
|
|
00db10 |
+ return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
|
|
|
00db10 |
}
|
|
|
00db10 |
libc_hidden_def (__gettimeofday)
|
|
|
00db10 |
weak_alias (__gettimeofday, gettimeofday)
|
|
|
00db10 |
diff --git a/ports/sysdeps/unix/sysv/linux/alpha/msgctl.c b/ports/sysdeps/unix/sysv/linux/alpha/msgctl.c
|
|
|
00db10 |
index 82c734b9a06081e7..690efb470c784de8 100644
|
|
|
00db10 |
--- a/ports/sysdeps/unix/sysv/linux/alpha/msgctl.c
|
|
|
00db10 |
+++ b/ports/sysdeps/unix/sysv/linux/alpha/msgctl.c
|
|
|
00db10 |
@@ -21,13 +21,12 @@
|
|
|
00db10 |
#include <ipc_priv.h>
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
|
|
|
00db10 |
int
|
|
|
00db10 |
__new_msgctl (int msqid, int cmd, struct msqid_ds *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
- return INLINE_SYSCALL (msgctl, 3, msqid, cmd | __IPC_64, CHECK_1 (buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (msgctl, 3, msqid, cmd | __IPC_64, buf);
|
|
|
00db10 |
}
|
|
|
00db10 |
|
|
|
00db10 |
#include <shlib-compat.h>
|
|
|
00db10 |
diff --git a/ports/sysdeps/unix/sysv/linux/alpha/shmctl.c b/ports/sysdeps/unix/sysv/linux/alpha/shmctl.c
|
|
|
00db10 |
index fb825a80deb2a9be..009ef651cd2ffdb5 100644
|
|
|
00db10 |
--- a/ports/sysdeps/unix/sysv/linux/alpha/shmctl.c
|
|
|
00db10 |
+++ b/ports/sysdeps/unix/sysv/linux/alpha/shmctl.c
|
|
|
00db10 |
@@ -22,13 +22,12 @@
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
#include <bits/wordsize.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
|
|
|
00db10 |
int
|
|
|
00db10 |
__new_shmctl (int shmid, int cmd, struct shmid_ds *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
- return INLINE_SYSCALL (shmctl, 3, shmid, cmd | __IPC_64, CHECK_1 (buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (shmctl, 3, shmid, cmd | __IPC_64, buf);
|
|
|
00db10 |
}
|
|
|
00db10 |
|
|
|
00db10 |
#include <shlib-compat.h>
|
|
|
00db10 |
diff --git a/ports/sysdeps/unix/sysv/linux/ia64/sigaction.c b/ports/sysdeps/unix/sysv/linux/ia64/sigaction.c
|
|
|
00db10 |
index bb0d53d54cdcf133..403b6d8fd0c9b92f 100644
|
|
|
00db10 |
--- a/ports/sysdeps/unix/sysv/linux/ia64/sigaction.c
|
|
|
00db10 |
+++ b/ports/sysdeps/unix/sysv/linux/ia64/sigaction.c
|
|
|
00db10 |
@@ -26,7 +26,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
/* The variable is shared between all wrappers around signal handling
|
|
|
00db10 |
functions which have RT equivalents. This is the definition. */
|
|
|
00db10 |
@@ -42,8 +41,7 @@ __libc_sigaction (sig, act, oact)
|
|
|
00db10 |
{
|
|
|
00db10 |
/* XXX The size argument hopefully will have to be changed to the
|
|
|
00db10 |
real size of the user-level sigset_t. */
|
|
|
00db10 |
- return INLINE_SYSCALL (rt_sigaction, 4, sig,
|
|
|
00db10 |
- CHECK_1_NULL_OK (act), CHECK_1_NULL_OK (oact), _NSIG / 8);
|
|
|
00db10 |
+ return INLINE_SYSCALL (rt_sigaction, 4, sig, act, oact, _NSIG / 8);
|
|
|
00db10 |
}
|
|
|
00db10 |
libc_hidden_def (__libc_sigaction)
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/ports/sysdeps/unix/sysv/linux/mips/mips64/msgctl.c b/ports/sysdeps/unix/sysv/linux/mips/mips64/msgctl.c
|
|
|
00db10 |
index 91c6f1ab28774288..327e951808509c31 100644
|
|
|
00db10 |
--- a/ports/sysdeps/unix/sysv/linux/mips/mips64/msgctl.c
|
|
|
00db10 |
+++ b/ports/sysdeps/unix/sysv/linux/mips/mips64/msgctl.c
|
|
|
00db10 |
@@ -20,14 +20,12 @@
|
|
|
00db10 |
#include <ipc_priv.h>
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
-
|
|
|
00db10 |
int __msgctl (int msqid, int cmd, struct msqid_ds *buf);
|
|
|
00db10 |
|
|
|
00db10 |
int
|
|
|
00db10 |
__msgctl (int msqid, int cmd, struct msqid_ds *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
- return INLINE_SYSCALL (msgctl, 3, msqid, cmd | __IPC_64, CHECK_1 (buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (msgctl, 3, msqid, cmd | __IPC_64, buf);
|
|
|
00db10 |
}
|
|
|
00db10 |
|
|
|
00db10 |
#include <shlib-compat.h>
|
|
|
00db10 |
diff --git a/ports/sysdeps/unix/sysv/linux/mips/mips64/shmctl.c b/ports/sysdeps/unix/sysv/linux/mips/mips64/shmctl.c
|
|
|
00db10 |
index da07427c3aa6049d..911de66ccd45610f 100644
|
|
|
00db10 |
--- a/ports/sysdeps/unix/sysv/linux/mips/mips64/shmctl.c
|
|
|
00db10 |
+++ b/ports/sysdeps/unix/sysv/linux/mips/mips64/shmctl.c
|
|
|
00db10 |
@@ -20,14 +20,12 @@
|
|
|
00db10 |
#include <ipc_priv.h>
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
-
|
|
|
00db10 |
int __shmctl (int shmid, int cmd, struct shmid_ds *buf);
|
|
|
00db10 |
|
|
|
00db10 |
int
|
|
|
00db10 |
__shmctl (int shmid, int cmd, struct shmid_ds *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
- return INLINE_SYSCALL (shmctl, 3, shmid, cmd | __IPC_64, CHECK_1 (buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (shmctl, 3, shmid, cmd | __IPC_64, buf);
|
|
|
00db10 |
}
|
|
|
00db10 |
|
|
|
00db10 |
#include <shlib-compat.h>
|
|
|
00db10 |
diff --git a/ports/sysdeps/unix/sysv/linux/mips/ustat.c b/ports/sysdeps/unix/sysv/linux/mips/ustat.c
|
|
|
00db10 |
index aa84b536245bbef3..d070403faa9143c9 100644
|
|
|
00db10 |
--- a/ports/sysdeps/unix/sysv/linux/mips/ustat.c
|
|
|
00db10 |
+++ b/ports/sysdeps/unix/sysv/linux/mips/ustat.c
|
|
|
00db10 |
@@ -22,7 +22,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
int
|
|
|
00db10 |
ustat (dev_t dev, struct ustat *ubuf)
|
|
|
00db10 |
@@ -32,5 +31,5 @@ ustat (dev_t dev, struct ustat *ubuf)
|
|
|
00db10 |
/* We must convert the value to dev_t type used by the kernel. */
|
|
|
00db10 |
k_dev = ((major (dev) & 0xff) << 8) | (minor (dev) & 0xff);
|
|
|
00db10 |
|
|
|
00db10 |
- return INLINE_SYSCALL (ustat, 2, k_dev, CHECK_1 (ubuf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (ustat, 2, k_dev, ubuf);
|
|
|
00db10 |
}
|
|
|
00db10 |
diff --git a/sysdeps/generic/bp-checks.h b/sysdeps/generic/bp-checks.h
|
|
|
00db10 |
index 980f3b68a84df8cf..90a07fc10fde3a84 100644
|
|
|
00db10 |
--- a/sysdeps/generic/bp-checks.h
|
|
|
00db10 |
+++ b/sysdeps/generic/bp-checks.h
|
|
|
00db10 |
@@ -36,18 +36,11 @@
|
|
|
00db10 |
/* Same as CHECK_N, but tolerate ARG == NULL. */
|
|
|
00db10 |
# define CHECK_N_NULL_OK(ARG, N) _CHECK_N ((ARG), (N), __ptrvalue (ARG))
|
|
|
00db10 |
|
|
|
00db10 |
-/* Check bounds of a pointer seated to a single object. */
|
|
|
00db10 |
-# define CHECK_1(ARG) CHECK_N ((ARG), 1)
|
|
|
00db10 |
-/* Same as CHECK_1, but tolerate ARG == NULL. */
|
|
|
00db10 |
-# define CHECK_1_NULL_OK(ARG) CHECK_N_NULL_OK ((ARG), 1)
|
|
|
00db10 |
-
|
|
|
00db10 |
#else /* !__BOUNDED_POINTERS__ */
|
|
|
00db10 |
|
|
|
00db10 |
/* Do nothing if not compiling with -fbounded-pointers. */
|
|
|
00db10 |
|
|
|
00db10 |
# define BOUNDS_VIOLATED
|
|
|
00db10 |
-# define CHECK_1(ARG) (ARG)
|
|
|
00db10 |
-# define CHECK_1_NULL_OK(ARG) (ARG)
|
|
|
00db10 |
# define CHECK_N(ARG, N) (ARG)
|
|
|
00db10 |
# define CHECK_N_NULL_OK(ARG, N) (ARG)
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/fxstat.c b/sysdeps/unix/sysv/linux/fxstat.c
|
|
|
00db10 |
index e6ec9dee7fc044ea..369ceb818267086c 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/fxstat.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/fxstat.c
|
|
|
00db10 |
@@ -28,7 +28,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
#include <xstatconv.h>
|
|
|
00db10 |
|
|
|
00db10 |
@@ -37,7 +36,7 @@ int
|
|
|
00db10 |
__fxstat (int vers, int fd, struct stat *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
if (vers == _STAT_VER_KERNEL)
|
|
|
00db10 |
- return INLINE_SYSCALL (fstat, 2, fd, CHECK_1 ((struct kernel_stat *) buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (fstat, 2, fd, (struct kernel_stat *) buf);
|
|
|
00db10 |
|
|
|
00db10 |
#ifdef STAT_IS_KERNEL_STAT
|
|
|
00db10 |
errno = EINVAL;
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/fxstat64.c b/sysdeps/unix/sysv/linux/fxstat64.c
|
|
|
00db10 |
index b2ad48bdb76e0b39..ca948c64c247dc22 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/fxstat64.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/fxstat64.c
|
|
|
00db10 |
@@ -23,7 +23,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
#include <kernel-features.h>
|
|
|
00db10 |
|
|
|
00db10 |
@@ -33,7 +32,7 @@ int
|
|
|
00db10 |
___fxstat64 (int vers, int fd, struct stat64 *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
int result;
|
|
|
00db10 |
- result = INLINE_SYSCALL (fstat64, 2, fd, CHECK_1 (buf));
|
|
|
00db10 |
+ result = INLINE_SYSCALL (fstat64, 2, fd, buf);
|
|
|
00db10 |
#if defined _HAVE_STAT64___ST_INO && __ASSUME_ST_INO_64_BIT == 0
|
|
|
00db10 |
if (__builtin_expect (!result, 1) && buf->__st_ino != (__ino_t) buf->st_ino)
|
|
|
00db10 |
buf->st_ino = buf->__st_ino;
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/fxstatat.c b/sysdeps/unix/sysv/linux/fxstatat.c
|
|
|
00db10 |
index de98e667c76f9b3e..127f979adf050b45 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/fxstatat.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/fxstatat.c
|
|
|
00db10 |
@@ -29,7 +29,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
#include <kernel-features.h>
|
|
|
00db10 |
|
|
|
00db10 |
#include <xstatconv.h>
|
|
|
00db10 |
@@ -110,10 +109,10 @@ __fxstatat (int vers, int fd, const char *file, struct stat *st, int flag)
|
|
|
00db10 |
{
|
|
|
00db10 |
if (flag & AT_SYMLINK_NOFOLLOW)
|
|
|
00db10 |
result = INTERNAL_SYSCALL (lstat, err, 2, file,
|
|
|
00db10 |
- CHECK_1 ((struct kernel_stat *) st));
|
|
|
00db10 |
+ (struct kernel_stat *) st);
|
|
|
00db10 |
else
|
|
|
00db10 |
result = INTERNAL_SYSCALL (stat, err, 2, file,
|
|
|
00db10 |
- CHECK_1 ((struct kernel_stat *) st));
|
|
|
00db10 |
+ (struct kernel_stat *) st);
|
|
|
00db10 |
|
|
|
00db10 |
if (__builtin_expect (!INTERNAL_SYSCALL_ERROR_P (result, err), 1))
|
|
|
00db10 |
return result;
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/fxstatat64.c b/sysdeps/unix/sysv/linux/fxstatat64.c
|
|
|
00db10 |
index 10488b6c1daa210e..a14fd78c1cbaca19 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/fxstatat64.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/fxstatat64.c
|
|
|
00db10 |
@@ -25,7 +25,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
#include <kernel-features.h>
|
|
|
00db10 |
|
|
|
00db10 |
@@ -99,9 +98,9 @@ __fxstatat64 (int vers, int fd, const char *file, struct stat64 *st, int flag)
|
|
|
00db10 |
}
|
|
|
00db10 |
|
|
|
00db10 |
if (flag & AT_SYMLINK_NOFOLLOW)
|
|
|
00db10 |
- result = INTERNAL_SYSCALL (lstat64, err, 2, file, CHECK_1 (st));
|
|
|
00db10 |
+ result = INTERNAL_SYSCALL (lstat64, err, 2, file, st);
|
|
|
00db10 |
else
|
|
|
00db10 |
- result = INTERNAL_SYSCALL (stat64, err, 2, file, CHECK_1 (st));
|
|
|
00db10 |
+ result = INTERNAL_SYSCALL (stat64, err, 2, file, st);
|
|
|
00db10 |
if (__builtin_expect (!INTERNAL_SYSCALL_ERROR_P (result, err), 1))
|
|
|
00db10 |
{
|
|
|
00db10 |
# if defined _HAVE_STAT64___ST_INO && __ASSUME_ST_INO_64_BIT == 0
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/i386/fxstat.c b/sysdeps/unix/sysv/linux/i386/fxstat.c
|
|
|
00db10 |
index a1a950ee7aff64f9..323039927e1687a3 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/i386/fxstat.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/i386/fxstat.c
|
|
|
00db10 |
@@ -27,7 +27,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
#include <kernel-features.h>
|
|
|
00db10 |
|
|
|
00db10 |
@@ -40,7 +39,7 @@ __fxstat (int vers, int fd, struct stat *buf)
|
|
|
00db10 |
int result;
|
|
|
00db10 |
|
|
|
00db10 |
if (vers == _STAT_VER_KERNEL)
|
|
|
00db10 |
- return INLINE_SYSCALL (fstat, 2, fd, CHECK_1 ((struct kernel_stat *) buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (fstat, 2, fd, (struct kernel_stat *) buf);
|
|
|
00db10 |
|
|
|
00db10 |
{
|
|
|
00db10 |
struct stat64 buf64;
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/i386/fxstatat.c b/sysdeps/unix/sysv/linux/i386/fxstatat.c
|
|
|
00db10 |
index 010f637155d35d76..ad3a386864f8b04b 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/i386/fxstatat.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/i386/fxstatat.c
|
|
|
00db10 |
@@ -29,7 +29,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
#include <kernel-features.h>
|
|
|
00db10 |
|
|
|
00db10 |
@@ -103,10 +102,10 @@ __fxstatat (int vers, int fd, const char *file, struct stat *st, int flag)
|
|
|
00db10 |
{
|
|
|
00db10 |
if (flag & AT_SYMLINK_NOFOLLOW)
|
|
|
00db10 |
result = INTERNAL_SYSCALL (lstat, err, 2, file,
|
|
|
00db10 |
- CHECK_1 ((struct kernel_stat *) st));
|
|
|
00db10 |
+ (struct kernel_stat *) st);
|
|
|
00db10 |
else
|
|
|
00db10 |
result = INTERNAL_SYSCALL (stat, err, 2, file,
|
|
|
00db10 |
- CHECK_1 ((struct kernel_stat *) st));
|
|
|
00db10 |
+ (struct kernel_stat *) st);
|
|
|
00db10 |
goto out;
|
|
|
00db10 |
}
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/i386/getresgid.c b/sysdeps/unix/sysv/linux/i386/getresgid.c
|
|
|
00db10 |
index d9ce513b1d80387d..46a3cccacb520602 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/i386/getresgid.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/i386/getresgid.c
|
|
|
00db10 |
@@ -23,15 +23,13 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
/* Consider moving to syscalls.list. */
|
|
|
00db10 |
|
|
|
00db10 |
int
|
|
|
00db10 |
__getresgid (gid_t *rgid, gid_t *egid, gid_t *sgid)
|
|
|
00db10 |
{
|
|
|
00db10 |
- return INLINE_SYSCALL (getresgid32, 3, CHECK_1 (rgid),
|
|
|
00db10 |
- CHECK_1 (egid), CHECK_1 (sgid));
|
|
|
00db10 |
+ return INLINE_SYSCALL (getresgid32, 3, rgid, egid, sgid);
|
|
|
00db10 |
}
|
|
|
00db10 |
libc_hidden_def (__getresgid)
|
|
|
00db10 |
weak_alias (__getresgid, getresgid)
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/i386/getresuid.c b/sysdeps/unix/sysv/linux/i386/getresuid.c
|
|
|
00db10 |
index f9c3180fb1eb846e..42e68384da26b5db 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/i386/getresuid.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/i386/getresuid.c
|
|
|
00db10 |
@@ -23,15 +23,13 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
/* Consider moving to syscalls.list. */
|
|
|
00db10 |
|
|
|
00db10 |
int
|
|
|
00db10 |
__getresuid (uid_t *ruid, uid_t *euid, uid_t *suid)
|
|
|
00db10 |
{
|
|
|
00db10 |
- return INLINE_SYSCALL (getresuid32, 3, CHECK_1 (ruid),
|
|
|
00db10 |
- CHECK_1 (euid), CHECK_1 (suid));
|
|
|
00db10 |
+ return INLINE_SYSCALL (getresuid32, 3, ruid, euid, suid);
|
|
|
00db10 |
}
|
|
|
00db10 |
libc_hidden_def (__getresuid)
|
|
|
00db10 |
weak_alias (__getresuid, getresuid)
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/i386/lxstat.c b/sysdeps/unix/sysv/linux/i386/lxstat.c
|
|
|
00db10 |
index 9be5ff0f0e382c7e..97b237404f8c8822 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/i386/lxstat.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/i386/lxstat.c
|
|
|
00db10 |
@@ -27,7 +27,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
#include <kernel-features.h>
|
|
|
00db10 |
|
|
|
00db10 |
@@ -41,7 +40,7 @@ __lxstat (int vers, const char *name, struct stat *buf)
|
|
|
00db10 |
int result;
|
|
|
00db10 |
|
|
|
00db10 |
if (vers == _STAT_VER_KERNEL)
|
|
|
00db10 |
- return INLINE_SYSCALL (lstat, 2, name, CHECK_1 ((struct kernel_stat *) buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (lstat, 2, name, (struct kernel_stat *) buf);
|
|
|
00db10 |
|
|
|
00db10 |
{
|
|
|
00db10 |
struct stat64 buf64;
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/i386/msgctl.c b/sysdeps/unix/sysv/linux/i386/msgctl.c
|
|
|
00db10 |
index 2125ae192c12af99..7d009801b16fbdba 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/i386/msgctl.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/i386/msgctl.c
|
|
|
00db10 |
@@ -23,7 +23,6 @@
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <string.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
#include <shlib-compat.h>
|
|
|
00db10 |
|
|
|
00db10 |
@@ -56,8 +55,7 @@ int
|
|
|
00db10 |
attribute_compat_text_section
|
|
|
00db10 |
__old_msgctl (int msqid, int cmd, struct __old_msqid_ds *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
- return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl,
|
|
|
00db10 |
- msqid, cmd, 0, CHECK_1 (buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl, msqid, cmd, 0, buf);
|
|
|
00db10 |
}
|
|
|
00db10 |
compat_symbol (libc, __old_msgctl, msgctl, GLIBC_2_0);
|
|
|
00db10 |
#endif
|
|
|
00db10 |
@@ -66,7 +64,7 @@ int
|
|
|
00db10 |
__new_msgctl (int msqid, int cmd, struct msqid_ds *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl,
|
|
|
00db10 |
- msqid, cmd | __IPC_64, 0, CHECK_1 (buf));
|
|
|
00db10 |
+ msqid, cmd | __IPC_64, 0, buf);
|
|
|
00db10 |
}
|
|
|
00db10 |
|
|
|
00db10 |
versioned_symbol (libc, __new_msgctl, msgctl, GLIBC_2_2);
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/i386/setrlimit.c b/sysdeps/unix/sysv/linux/i386/setrlimit.c
|
|
|
00db10 |
index 7683b858f7c9bb05..7d0840ded5fe3c70 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/i386/setrlimit.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/i386/setrlimit.c
|
|
|
00db10 |
@@ -22,7 +22,6 @@
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
#include <shlib-compat.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
extern int __new_setrlimit (enum __rlimit_resource resource,
|
|
|
00db10 |
const struct rlimit *__unboundedrlimits);
|
|
|
00db10 |
@@ -32,7 +31,7 @@ extern int __new_setrlimit (enum __rlimit_resource resource,
|
|
|
00db10 |
int
|
|
|
00db10 |
__new_setrlimit (enum __rlimit_resource resource, const struct rlimit *rlimits)
|
|
|
00db10 |
{
|
|
|
00db10 |
- return INLINE_SYSCALL (setrlimit, 2, resource, CHECK_1 (rlimits));
|
|
|
00db10 |
+ return INLINE_SYSCALL (setrlimit, 2, resource, rlimits);
|
|
|
00db10 |
}
|
|
|
00db10 |
|
|
|
00db10 |
weak_alias (__new_setrlimit, __setrlimit);
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/i386/shmctl.c b/sysdeps/unix/sysv/linux/i386/shmctl.c
|
|
|
00db10 |
index dd2167d9a78d524f..a1f4feb3fe1c815c 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/i386/shmctl.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/i386/shmctl.c
|
|
|
00db10 |
@@ -24,7 +24,6 @@
|
|
|
00db10 |
#include <string.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
#include <bits/wordsize.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
#include <shlib-compat.h>
|
|
|
00db10 |
|
|
|
00db10 |
@@ -63,8 +62,7 @@ int
|
|
|
00db10 |
attribute_compat_text_section
|
|
|
00db10 |
__old_shmctl (int shmid, int cmd, struct __old_shmid_ds *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
- return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl,
|
|
|
00db10 |
- shmid, cmd, 0, CHECK_1 (buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd, 0, buf);
|
|
|
00db10 |
}
|
|
|
00db10 |
compat_symbol (libc, __old_shmctl, shmctl, GLIBC_2_0);
|
|
|
00db10 |
#endif
|
|
|
00db10 |
@@ -73,7 +71,7 @@ int
|
|
|
00db10 |
__new_shmctl (int shmid, int cmd, struct shmid_ds *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl,
|
|
|
00db10 |
- shmid, cmd | __IPC_64, 0, CHECK_1 (buf));
|
|
|
00db10 |
+ shmid, cmd | __IPC_64, 0, buf);
|
|
|
00db10 |
}
|
|
|
00db10 |
|
|
|
00db10 |
versioned_symbol (libc, __new_shmctl, shmctl, GLIBC_2_2);
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/i386/xstat.c b/sysdeps/unix/sysv/linux/i386/xstat.c
|
|
|
00db10 |
index e44599c85a836419..f063ac98d849ed7b 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/i386/xstat.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/i386/xstat.c
|
|
|
00db10 |
@@ -27,7 +27,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
#include <kernel-features.h>
|
|
|
00db10 |
|
|
|
00db10 |
@@ -41,7 +40,7 @@ __xstat (int vers, const char *name, struct stat *buf)
|
|
|
00db10 |
int result;
|
|
|
00db10 |
|
|
|
00db10 |
if (vers == _STAT_VER_KERNEL)
|
|
|
00db10 |
- return INLINE_SYSCALL (stat, 2, name, CHECK_1 ((struct kernel_stat *) buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (stat, 2, name, (struct kernel_stat *) buf);
|
|
|
00db10 |
|
|
|
00db10 |
{
|
|
|
00db10 |
struct stat64 buf64;
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/lxstat.c b/sysdeps/unix/sysv/linux/lxstat.c
|
|
|
00db10 |
index 62b4650d8f771854..15f93b09ec1661f1 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/lxstat.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/lxstat.c
|
|
|
00db10 |
@@ -27,7 +27,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
#include <xstatconv.h>
|
|
|
00db10 |
|
|
|
00db10 |
@@ -36,8 +35,7 @@ int
|
|
|
00db10 |
__lxstat (int vers, const char *name, struct stat *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
if (vers == _STAT_VER_KERNEL)
|
|
|
00db10 |
- return INLINE_SYSCALL (lstat, 2, name,
|
|
|
00db10 |
- CHECK_1 ((struct kernel_stat *) buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (lstat, 2, name, (struct kernel_stat *) buf);
|
|
|
00db10 |
|
|
|
00db10 |
#ifdef STAT_IS_KERNEL_STAT
|
|
|
00db10 |
errno = EINVAL;
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/lxstat64.c b/sysdeps/unix/sysv/linux/lxstat64.c
|
|
|
00db10 |
index d5d9f93f782d0221..c4420904f936ec93 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/lxstat64.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/lxstat64.c
|
|
|
00db10 |
@@ -23,7 +23,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
#include <kernel-features.h>
|
|
|
00db10 |
|
|
|
00db10 |
@@ -32,7 +31,7 @@ int
|
|
|
00db10 |
___lxstat64 (int vers, const char *name, struct stat64 *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
int result;
|
|
|
00db10 |
- result = INLINE_SYSCALL (lstat64, 2, name, CHECK_1 (buf));
|
|
|
00db10 |
+ result = INLINE_SYSCALL (lstat64, 2, name, buf);
|
|
|
00db10 |
#if defined _HAVE_STAT64___ST_INO && __ASSUME_ST_INO_64_BIT == 0
|
|
|
00db10 |
if (__builtin_expect (!result, 1) && buf->__st_ino != (__ino_t) buf->st_ino)
|
|
|
00db10 |
buf->st_ino = buf->__st_ino;
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/msgctl.c b/sysdeps/unix/sysv/linux/msgctl.c
|
|
|
00db10 |
index 7819f3fbf76af81f..00285a7103d70cea 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/msgctl.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/msgctl.c
|
|
|
00db10 |
@@ -25,7 +25,6 @@
|
|
|
00db10 |
#include <string.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
#include <shlib-compat.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
#include <kernel-features.h>
|
|
|
00db10 |
|
|
|
00db10 |
@@ -58,7 +57,7 @@ int
|
|
|
00db10 |
attribute_compat_text_section
|
|
|
00db10 |
__old_msgctl (int msqid, int cmd, struct __old_msqid_ds *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
- return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl, msqid, cmd, 0, CHECK_1 (buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl, msqid, cmd, 0, buf);
|
|
|
00db10 |
}
|
|
|
00db10 |
compat_symbol (libc, __old_msgctl, msgctl, GLIBC_2_0);
|
|
|
00db10 |
#endif
|
|
|
00db10 |
@@ -68,7 +67,7 @@ __new_msgctl (int msqid, int cmd, struct msqid_ds *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
#if __ASSUME_IPC64 > 0
|
|
|
00db10 |
return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl,
|
|
|
00db10 |
- msqid, cmd | __IPC_64, 0, CHECK_1 (buf));
|
|
|
00db10 |
+ msqid, cmd | __IPC_64, 0, buf);
|
|
|
00db10 |
#else
|
|
|
00db10 |
switch (cmd) {
|
|
|
00db10 |
case MSG_STAT:
|
|
|
00db10 |
@@ -77,7 +76,7 @@ __new_msgctl (int msqid, int cmd, struct msqid_ds *buf)
|
|
|
00db10 |
break;
|
|
|
00db10 |
default:
|
|
|
00db10 |
return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl,
|
|
|
00db10 |
- msqid, cmd, 0, CHECK_1 (buf));
|
|
|
00db10 |
+ msqid, cmd, 0, buf);
|
|
|
00db10 |
}
|
|
|
00db10 |
|
|
|
00db10 |
{
|
|
|
00db10 |
@@ -87,7 +86,7 @@ __new_msgctl (int msqid, int cmd, struct msqid_ds *buf)
|
|
|
00db10 |
/* Unfortunately there is no way how to find out for sure whether
|
|
|
00db10 |
we should use old or new msgctl. */
|
|
|
00db10 |
result = INLINE_SYSCALL (ipc, 5, IPCOP_msgctl,
|
|
|
00db10 |
- msqid, cmd | __IPC_64, 0, CHECK_1 (buf));
|
|
|
00db10 |
+ msqid, cmd | __IPC_64, 0, buf);
|
|
|
00db10 |
if (result != -1 || errno != EINVAL)
|
|
|
00db10 |
return result;
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/ptrace.c b/sysdeps/unix/sysv/linux/ptrace.c
|
|
|
00db10 |
index c18590d1cf27e88d..a75e5ba0a8ab6b53 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/ptrace.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/ptrace.c
|
|
|
00db10 |
@@ -24,7 +24,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
long int
|
|
|
00db10 |
ptrace (enum __ptrace_request request, ...)
|
|
|
00db10 |
@@ -43,77 +42,6 @@ ptrace (enum __ptrace_request request, ...)
|
|
|
00db10 |
if (request > 0 && request < 4)
|
|
|
00db10 |
data = &ret;
|
|
|
00db10 |
|
|
|
00db10 |
-#if __BOUNDED_POINTERS__
|
|
|
00db10 |
- switch (request)
|
|
|
00db10 |
- {
|
|
|
00db10 |
- case PTRACE_PEEKTEXT:
|
|
|
00db10 |
- case PTRACE_PEEKDATA:
|
|
|
00db10 |
- case PTRACE_PEEKUSER:
|
|
|
00db10 |
- case PTRACE_POKETEXT:
|
|
|
00db10 |
- case PTRACE_POKEDATA:
|
|
|
00db10 |
- case PTRACE_POKEUSER:
|
|
|
00db10 |
- (void) CHECK_1 ((int *) addr);
|
|
|
00db10 |
- (void) CHECK_1 ((int *) data);
|
|
|
00db10 |
- break;
|
|
|
00db10 |
-
|
|
|
00db10 |
- case PTRACE_GETREGS:
|
|
|
00db10 |
- case PTRACE_SETREGS:
|
|
|
00db10 |
-#ifdef __i386__
|
|
|
00db10 |
- (void) CHECK_1 ((struct user_regs_struct *) data);
|
|
|
00db10 |
-#else
|
|
|
00db10 |
- /* We don't know the size of data, so the best we can do is ensure
|
|
|
00db10 |
- that `data' is valid for at least one word. */
|
|
|
00db10 |
- (void) CHECK_1 ((int *) data);
|
|
|
00db10 |
-#endif
|
|
|
00db10 |
- break;
|
|
|
00db10 |
-
|
|
|
00db10 |
- case PTRACE_GETFPREGS:
|
|
|
00db10 |
- case PTRACE_SETFPREGS:
|
|
|
00db10 |
-#ifdef __i386__
|
|
|
00db10 |
- (void) CHECK_1 ((struct user_fpregs_struct *) data);
|
|
|
00db10 |
-#else
|
|
|
00db10 |
- /* We don't know the size of data, so the best we can do is ensure
|
|
|
00db10 |
- that `data' is valid for at least one word. */
|
|
|
00db10 |
- (void) CHECK_1 ((int *) data);
|
|
|
00db10 |
-#endif
|
|
|
00db10 |
- break;
|
|
|
00db10 |
-
|
|
|
00db10 |
- case PTRACE_GETFPXREGS:
|
|
|
00db10 |
- case PTRACE_SETFPXREGS:
|
|
|
00db10 |
-#ifdef __i386__
|
|
|
00db10 |
- (void) CHECK_1 ((struct user_fpxregs_struct *) data);
|
|
|
00db10 |
-#else
|
|
|
00db10 |
- /* We don't know the size of data, so the best we can do is ensure
|
|
|
00db10 |
- that `data' is valid for at least one word. */
|
|
|
00db10 |
- (void) CHECK_1 ((int *) data);
|
|
|
00db10 |
-#endif
|
|
|
00db10 |
- break;
|
|
|
00db10 |
-
|
|
|
00db10 |
- case PTRACE_GETSIGINFO:
|
|
|
00db10 |
- case PTRACE_SETSIGINFO:
|
|
|
00db10 |
- (void) CHECK_1 ((siginfo_t *) data);
|
|
|
00db10 |
- break;
|
|
|
00db10 |
-
|
|
|
00db10 |
- case PTRACE_GETEVENTMSG:
|
|
|
00db10 |
- (void) CHECK_1 ((unsigned long *) data);
|
|
|
00db10 |
- break;
|
|
|
00db10 |
-
|
|
|
00db10 |
- case PTRACE_SETOPTIONS:
|
|
|
00db10 |
- (void) CHECK_1 ((long *) data);
|
|
|
00db10 |
- break;
|
|
|
00db10 |
-
|
|
|
00db10 |
- case PTRACE_TRACEME:
|
|
|
00db10 |
- case PTRACE_CONT:
|
|
|
00db10 |
- case PTRACE_KILL:
|
|
|
00db10 |
- case PTRACE_SINGLESTEP:
|
|
|
00db10 |
- case PTRACE_ATTACH:
|
|
|
00db10 |
- case PTRACE_DETACH:
|
|
|
00db10 |
- case PTRACE_SYSCALL:
|
|
|
00db10 |
- /* Neither `data' nor `addr' needs any checks. */
|
|
|
00db10 |
- break;
|
|
|
00db10 |
- };
|
|
|
00db10 |
-#endif
|
|
|
00db10 |
-
|
|
|
00db10 |
res = INLINE_SYSCALL (ptrace, 4, request, pid,
|
|
|
00db10 |
__ptrvalue (addr), __ptrvalue (data));
|
|
|
00db10 |
if (res >= 0 && request > 0 && request < 4)
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/s390/gettimeofday.c b/sysdeps/unix/sysv/linux/s390/gettimeofday.c
|
|
|
00db10 |
index efbf1e8110f71cdb..d897e1a6b68c069a 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/s390/gettimeofday.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/s390/gettimeofday.c
|
|
|
00db10 |
@@ -16,7 +16,6 @@
|
|
|
00db10 |
<http://www.gnu.org/licenses/>. */
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
#include <stddef.h>
|
|
|
00db10 |
#include <sys/time.h>
|
|
|
00db10 |
#include <time.h>
|
|
|
00db10 |
@@ -33,7 +32,7 @@ __gettimeofday (tv, tz)
|
|
|
00db10 |
struct timeval *tv;
|
|
|
00db10 |
struct timezone *tz;
|
|
|
00db10 |
{
|
|
|
00db10 |
- return INLINE_VSYSCALL (gettimeofday, 2, CHECK_1 (tv), CHECK_1 (tz));
|
|
|
00db10 |
+ return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
|
|
|
00db10 |
}
|
|
|
00db10 |
libc_hidden_def (__gettimeofday)
|
|
|
00db10 |
weak_alias (__gettimeofday, gettimeofday)
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/shmctl.c b/sysdeps/unix/sysv/linux/shmctl.c
|
|
|
00db10 |
index dbc965e29ca9c701..3fb6b0c0f203db08 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/shmctl.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/shmctl.c
|
|
|
00db10 |
@@ -26,7 +26,6 @@
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
#include <bits/wordsize.h>
|
|
|
00db10 |
#include <shlib-compat.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
#include <kernel-features.h>
|
|
|
00db10 |
|
|
|
00db10 |
@@ -65,8 +64,7 @@ int
|
|
|
00db10 |
attribute_compat_text_section
|
|
|
00db10 |
__old_shmctl (int shmid, int cmd, struct __old_shmid_ds *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
- return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid,
|
|
|
00db10 |
- cmd, 0, CHECK_1_NULL_OK (buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd, 0, buf);
|
|
|
00db10 |
}
|
|
|
00db10 |
compat_symbol (libc, __old_shmctl, shmctl, GLIBC_2_0);
|
|
|
00db10 |
#endif
|
|
|
00db10 |
@@ -76,7 +74,7 @@ __new_shmctl (int shmid, int cmd, struct shmid_ds *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
#if __ASSUME_IPC64 > 0
|
|
|
00db10 |
return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd | __IPC_64, 0,
|
|
|
00db10 |
- CHECK_1 (buf));
|
|
|
00db10 |
+ buf);
|
|
|
00db10 |
#else
|
|
|
00db10 |
switch (cmd) {
|
|
|
00db10 |
case SHM_STAT:
|
|
|
00db10 |
@@ -87,8 +85,7 @@ __new_shmctl (int shmid, int cmd, struct shmid_ds *buf)
|
|
|
00db10 |
#endif
|
|
|
00db10 |
break;
|
|
|
00db10 |
default:
|
|
|
00db10 |
- return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd, 0,
|
|
|
00db10 |
- CHECK_1 (buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd, 0, buf);
|
|
|
00db10 |
}
|
|
|
00db10 |
|
|
|
00db10 |
{
|
|
|
00db10 |
@@ -102,7 +99,7 @@ __new_shmctl (int shmid, int cmd, struct shmid_ds *buf)
|
|
|
00db10 |
/* Unfortunately there is no way how to find out for sure whether
|
|
|
00db10 |
we should use old or new shmctl. */
|
|
|
00db10 |
result = INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd | __IPC_64, 0,
|
|
|
00db10 |
- CHECK_1 (buf));
|
|
|
00db10 |
+ buf);
|
|
|
00db10 |
if (result != -1 || errno != EINVAL)
|
|
|
00db10 |
return result;
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/sigtimedwait.c b/sysdeps/unix/sysv/linux/sigtimedwait.c
|
|
|
00db10 |
index 34834c0cb1f9e362..1cf24d0e47330b8a 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/sigtimedwait.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/sigtimedwait.c
|
|
|
00db10 |
@@ -21,7 +21,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep-cancel.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
#ifdef __NR_rt_sigtimedwait
|
|
|
00db10 |
|
|
|
00db10 |
@@ -52,7 +51,7 @@ do_sigtimedwait (const sigset_t *set, siginfo_t *info,
|
|
|
00db10 |
/* XXX The size argument hopefully will have to be changed to the
|
|
|
00db10 |
real size of the user-level sigset_t. */
|
|
|
00db10 |
int result = INLINE_SYSCALL (rt_sigtimedwait, 4, set,
|
|
|
00db10 |
- CHECK_1 (info), timeout, _NSIG / 8);
|
|
|
00db10 |
+ info, timeout, _NSIG / 8);
|
|
|
00db10 |
|
|
|
00db10 |
/* The kernel generates a SI_TKILL code in si_code in case tkill is
|
|
|
00db10 |
used. tkill is transparently used in raise(). Since having
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/sigwaitinfo.c b/sysdeps/unix/sysv/linux/sigwaitinfo.c
|
|
|
00db10 |
index f70386a31bce66bd..0e38dff1be6cc21a 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/sigwaitinfo.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/sigwaitinfo.c
|
|
|
00db10 |
@@ -23,7 +23,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep-cancel.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
#ifdef __NR_rt_sigtimedwait
|
|
|
00db10 |
|
|
|
00db10 |
@@ -53,7 +52,7 @@ do_sigwaitinfo (const sigset_t *set, siginfo_t *info)
|
|
|
00db10 |
/* XXX The size argument hopefully will have to be changed to the
|
|
|
00db10 |
real size of the user-level sigset_t. */
|
|
|
00db10 |
int result = INLINE_SYSCALL (rt_sigtimedwait, 4, set,
|
|
|
00db10 |
- CHECK_1 (info), NULL, _NSIG / 8);
|
|
|
00db10 |
+ info, NULL, _NSIG / 8);
|
|
|
00db10 |
|
|
|
00db10 |
/* The kernel generates a SI_TKILL code in si_code in case tkill is
|
|
|
00db10 |
used. tkill is transparently used in raise(). Since having
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c b/sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c
|
|
|
00db10 |
index 98e06e3d0e7d0f46..3655426350652a7d 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c
|
|
|
00db10 |
@@ -22,7 +22,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
/* Allows to control internal state and destruction of message queue
|
|
|
00db10 |
objects. */
|
|
|
00db10 |
@@ -33,5 +32,5 @@ msgctl (msqid, cmd, buf)
|
|
|
00db10 |
int cmd;
|
|
|
00db10 |
struct msqid_ds *buf;
|
|
|
00db10 |
{
|
|
|
00db10 |
- return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl, msqid, cmd, 0, CHECK_1 (buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl, msqid, cmd, 0, buf);
|
|
|
00db10 |
}
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c b/sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c
|
|
|
00db10 |
index eb3b4f3bab2a22a7..89f755a984044fa7 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c
|
|
|
00db10 |
@@ -22,7 +22,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
/* Provide operations to control over shared memory segments. */
|
|
|
00db10 |
|
|
|
00db10 |
@@ -32,5 +31,5 @@ shmctl (shmid, cmd, buf)
|
|
|
00db10 |
int cmd;
|
|
|
00db10 |
struct shmid_ds *buf;
|
|
|
00db10 |
{
|
|
|
00db10 |
- return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd, 0, CHECK_1 (buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd, 0, buf);
|
|
|
00db10 |
}
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/ustat.c b/sysdeps/unix/sysv/linux/ustat.c
|
|
|
00db10 |
index 70d6e89ba8f6cadf..007ae35997d9c3d6 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/ustat.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/ustat.c
|
|
|
00db10 |
@@ -22,7 +22,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
int
|
|
|
00db10 |
ustat (dev_t dev, struct ustat *ubuf)
|
|
|
00db10 |
@@ -37,5 +36,5 @@ ustat (dev_t dev, struct ustat *ubuf)
|
|
|
00db10 |
return -1;
|
|
|
00db10 |
}
|
|
|
00db10 |
|
|
|
00db10 |
- return INLINE_SYSCALL (ustat, 2, (unsigned int) k_dev, CHECK_1 (ubuf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (ustat, 2, (unsigned int) k_dev, ubuf);
|
|
|
00db10 |
}
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/wordsize-64/fxstat.c b/sysdeps/unix/sysv/linux/wordsize-64/fxstat.c
|
|
|
00db10 |
index e6366c9edbe31bcc..401db59272eb91cb 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/wordsize-64/fxstat.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/wordsize-64/fxstat.c
|
|
|
00db10 |
@@ -27,14 +27,13 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
/* Get information about the file FD in BUF. */
|
|
|
00db10 |
int
|
|
|
00db10 |
__fxstat (int vers, int fd, struct stat *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
if (vers == _STAT_VER_KERNEL || vers == _STAT_VER_LINUX)
|
|
|
00db10 |
- return INLINE_SYSCALL (fstat, 2, fd, CHECK_1 (buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (fstat, 2, fd, buf);
|
|
|
00db10 |
|
|
|
00db10 |
__set_errno (EINVAL);
|
|
|
00db10 |
return -1;
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c b/sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c
|
|
|
00db10 |
index 3891e858af998003..f9289f4526e47fc6 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c
|
|
|
00db10 |
@@ -29,7 +29,6 @@
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <kernel-features.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
|
|
|
00db10 |
/* Get information about the file NAME relative to FD in ST. */
|
|
|
00db10 |
@@ -95,9 +94,9 @@ __fxstatat (int vers, int fd, const char *file, struct stat *st, int flag)
|
|
|
00db10 |
INTERNAL_SYSCALL_DECL (err);
|
|
|
00db10 |
|
|
|
00db10 |
if (flag & AT_SYMLINK_NOFOLLOW)
|
|
|
00db10 |
- res = INTERNAL_SYSCALL (lstat, err, 2, file, CHECK_1 (st));
|
|
|
00db10 |
+ res = INTERNAL_SYSCALL (lstat, err, 2, file, st);
|
|
|
00db10 |
else
|
|
|
00db10 |
- res = INTERNAL_SYSCALL (stat, err, 2, file, CHECK_1 (st));
|
|
|
00db10 |
+ res = INTERNAL_SYSCALL (stat, err, 2, file, st);
|
|
|
00db10 |
|
|
|
00db10 |
if (__builtin_expect (INTERNAL_SYSCALL_ERROR_P (res, err), 0))
|
|
|
00db10 |
{
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/wordsize-64/lxstat.c b/sysdeps/unix/sysv/linux/wordsize-64/lxstat.c
|
|
|
00db10 |
index f44778e787e5ad80..6830d567b5727875 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/wordsize-64/lxstat.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/wordsize-64/lxstat.c
|
|
|
00db10 |
@@ -27,14 +27,13 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
/* Get information about the file FD in BUF. */
|
|
|
00db10 |
int
|
|
|
00db10 |
__lxstat (int vers, const char *name, struct stat *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
if (vers == _STAT_VER_KERNEL || vers == _STAT_VER_LINUX)
|
|
|
00db10 |
- return INLINE_SYSCALL (lstat, 2, name, CHECK_1 (buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (lstat, 2, name, buf);
|
|
|
00db10 |
|
|
|
00db10 |
__set_errno (EINVAL);
|
|
|
00db10 |
return -1;
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/wordsize-64/xstat.c b/sysdeps/unix/sysv/linux/wordsize-64/xstat.c
|
|
|
00db10 |
index b4ab7b8fe9ebf2a8..3bee7a3fc88cd03a 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/wordsize-64/xstat.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/wordsize-64/xstat.c
|
|
|
00db10 |
@@ -27,14 +27,13 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
/* Get information about the file NAME in BUF. */
|
|
|
00db10 |
int
|
|
|
00db10 |
__xstat (int vers, const char *name, struct stat *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
if (vers == _STAT_VER_KERNEL || vers == _STAT_VER_LINUX)
|
|
|
00db10 |
- return INLINE_SYSCALL (stat, 2, name, CHECK_1 (buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (stat, 2, name, buf);
|
|
|
00db10 |
|
|
|
00db10 |
__set_errno (EINVAL);
|
|
|
00db10 |
return -1;
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/xstat.c b/sysdeps/unix/sysv/linux/xstat.c
|
|
|
00db10 |
index 179ea9e30123fb81..a3c0c1ca42424830 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/xstat.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/xstat.c
|
|
|
00db10 |
@@ -27,7 +27,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
#include <xstatconv.h>
|
|
|
00db10 |
|
|
|
00db10 |
@@ -36,8 +35,7 @@ int
|
|
|
00db10 |
__xstat (int vers, const char *name, struct stat *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
if (vers == _STAT_VER_KERNEL)
|
|
|
00db10 |
- return INLINE_SYSCALL (stat, 2, name,
|
|
|
00db10 |
- CHECK_1 ((struct kernel_stat *) buf));
|
|
|
00db10 |
+ return INLINE_SYSCALL (stat, 2, name, (struct kernel_stat *) buf);
|
|
|
00db10 |
|
|
|
00db10 |
#ifdef STAT_IS_KERNEL_STAT
|
|
|
00db10 |
errno = EINVAL;
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/xstat64.c b/sysdeps/unix/sysv/linux/xstat64.c
|
|
|
00db10 |
index 89976a68e9d86699..5c31a919828d311b 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/xstat64.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/xstat64.c
|
|
|
00db10 |
@@ -23,7 +23,6 @@
|
|
|
00db10 |
|
|
|
00db10 |
#include <sysdep.h>
|
|
|
00db10 |
#include <sys/syscall.h>
|
|
|
00db10 |
-#include <bp-checks.h>
|
|
|
00db10 |
|
|
|
00db10 |
#include <kernel-features.h>
|
|
|
00db10 |
|
|
|
00db10 |
@@ -33,7 +32,7 @@ int
|
|
|
00db10 |
___xstat64 (int vers, const char *name, struct stat64 *buf)
|
|
|
00db10 |
{
|
|
|
00db10 |
int result;
|
|
|
00db10 |
- result = INLINE_SYSCALL (stat64, 2, name, CHECK_1 (buf));
|
|
|
00db10 |
+ result = INLINE_SYSCALL (stat64, 2, name, buf);
|
|
|
00db10 |
#if defined _HAVE_STAT64___ST_INO && __ASSUME_ST_INO_64_BIT == 0
|
|
|
00db10 |
if (__builtin_expect (!result, 1) && buf->__st_ino != (__ino_t) buf->st_ino)
|
|
|
00db10 |
buf->st_ino = buf->__st_ino;
|