|
|
c6d234 |
commit 6277fdabc074afa76ad5883a4b99cdf8e75de31a
|
|
|
c6d234 |
Author: Joseph Myers <joseph@codesourcery.com>
|
|
|
c6d234 |
Date: Mon Feb 4 16:29:39 2013 +0000
|
|
|
c6d234 |
|
|
|
c6d234 |
Remove CHECK_STRING, CHECK_STRING_NULL_OK and __ubp_memchr.
|
|
|
c6d234 |
|
|
|
c6d234 |
Conflicts:
|
|
|
c6d234 |
sysdeps/unix/sysv/linux/getcwd.c
|
|
|
c6d234 |
|
|
|
c6d234 |
Conflict due to context change in glibc-rh1534635.patch.
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/ports/sysdeps/ia64/memchr.S b/ports/sysdeps/ia64/memchr.S
|
|
|
c6d234 |
index 6836571599c0a0af..a6f2451b9a3698a5 100644
|
|
|
c6d234 |
--- a/ports/sysdeps/ia64/memchr.S
|
|
|
c6d234 |
+++ b/ports/sysdeps/ia64/memchr.S
|
|
|
c6d234 |
@@ -154,7 +154,4 @@ ENTRY(__memchr)
|
|
|
c6d234 |
END(__memchr)
|
|
|
c6d234 |
|
|
|
c6d234 |
weak_alias (__memchr, memchr)
|
|
|
c6d234 |
-#if !__BOUNDED_POINTERS__
|
|
|
c6d234 |
-weak_alias (__memchr, __ubp_memchr)
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
libc_hidden_builtin_def (memchr)
|
|
|
c6d234 |
diff --git a/ports/sysdeps/m68k/memchr.S b/ports/sysdeps/m68k/memchr.S
|
|
|
c6d234 |
index 9e7aff816d84c6e6..5f2478f5d150e787 100644
|
|
|
c6d234 |
--- a/ports/sysdeps/m68k/memchr.S
|
|
|
c6d234 |
+++ b/ports/sysdeps/m68k/memchr.S
|
|
|
c6d234 |
@@ -304,7 +304,4 @@ L(L9:)
|
|
|
c6d234 |
END(__memchr)
|
|
|
c6d234 |
|
|
|
c6d234 |
weak_alias (__memchr, memchr)
|
|
|
c6d234 |
-#if !__BOUNDED_POINTERS__
|
|
|
c6d234 |
-weak_alias (__memchr, __ubp_memchr)
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
libc_hidden_builtin_def (memchr)
|
|
|
c6d234 |
diff --git a/ports/sysdeps/unix/sysv/linux/arm/truncate64.c b/ports/sysdeps/unix/sysv/linux/arm/truncate64.c
|
|
|
c6d234 |
index 3fad93f50e745396..a9a8059379fdbba5 100644
|
|
|
c6d234 |
--- a/ports/sysdeps/unix/sysv/linux/arm/truncate64.c
|
|
|
c6d234 |
+++ b/ports/sysdeps/unix/sysv/linux/arm/truncate64.c
|
|
|
c6d234 |
@@ -22,7 +22,6 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
#include <sys/syscall.h>
|
|
|
c6d234 |
-#include <bp-checks.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Truncate the file FD refers to to LENGTH bytes. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
@@ -30,7 +29,7 @@ truncate64 (const char *path, off64_t length)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
unsigned int low = length & 0xffffffff;
|
|
|
c6d234 |
unsigned int high = length >> 32;
|
|
|
c6d234 |
- int result = INLINE_SYSCALL (truncate64, 4, CHECK_STRING (path), 0,
|
|
|
c6d234 |
+ int result = INLINE_SYSCALL (truncate64, 4, path, 0,
|
|
|
c6d234 |
__LONG_LONG_PAIR (high, low));
|
|
|
c6d234 |
return result;
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/ports/sysdeps/unix/sysv/linux/ia64/umount.c b/ports/sysdeps/unix/sysv/linux/ia64/umount.c
|
|
|
c6d234 |
index ae0c03659f0fef9b..86b1acc9c634e55c 100644
|
|
|
c6d234 |
--- a/ports/sysdeps/unix/sysv/linux/ia64/umount.c
|
|
|
c6d234 |
+++ b/ports/sysdeps/unix/sysv/linux/ia64/umount.c
|
|
|
c6d234 |
@@ -20,11 +20,10 @@
|
|
|
c6d234 |
#include <errno.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-checks.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Unmount a filesystem. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
umount (const char *special_file)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- return INLINE_SYSCALL (umount, 2, CHECK_STRING (special_file), 0);
|
|
|
c6d234 |
+ return INLINE_SYSCALL (umount, 2, special_file, 0);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/ports/sysdeps/unix/sysv/linux/mips/mips32/truncate64.c b/ports/sysdeps/unix/sysv/linux/mips/mips32/truncate64.c
|
|
|
c6d234 |
index 3fad93f50e745396..a9a8059379fdbba5 100644
|
|
|
c6d234 |
--- a/ports/sysdeps/unix/sysv/linux/mips/mips32/truncate64.c
|
|
|
c6d234 |
+++ b/ports/sysdeps/unix/sysv/linux/mips/mips32/truncate64.c
|
|
|
c6d234 |
@@ -22,7 +22,6 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
#include <sys/syscall.h>
|
|
|
c6d234 |
-#include <bp-checks.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Truncate the file FD refers to to LENGTH bytes. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
@@ -30,7 +29,7 @@ truncate64 (const char *path, off64_t length)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
unsigned int low = length & 0xffffffff;
|
|
|
c6d234 |
unsigned int high = length >> 32;
|
|
|
c6d234 |
- int result = INLINE_SYSCALL (truncate64, 4, CHECK_STRING (path), 0,
|
|
|
c6d234 |
+ int result = INLINE_SYSCALL (truncate64, 4, path, 0,
|
|
|
c6d234 |
__LONG_LONG_PAIR (high, low));
|
|
|
c6d234 |
return result;
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/ports/sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c b/ports/sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c
|
|
|
c6d234 |
index 1078cc35ac0cc129..645ffa122ea62de6 100644
|
|
|
c6d234 |
--- a/ports/sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c
|
|
|
c6d234 |
+++ b/ports/sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c
|
|
|
c6d234 |
@@ -25,7 +25,6 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
#include <sys/syscall.h>
|
|
|
c6d234 |
-#include <bp-checks.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <kernel-features.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -96,11 +95,9 @@ __fxstatat64 (int vers, int fd, const char *file, struct stat64 *st, int flag)
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
if (flag & AT_SYMLINK_NOFOLLOW)
|
|
|
c6d234 |
- result = INTERNAL_SYSCALL (lstat, err, 2, CHECK_STRING (file),
|
|
|
c6d234 |
- __ptrvalue (&kst));
|
|
|
c6d234 |
+ result = INTERNAL_SYSCALL (lstat, err, 2, file, __ptrvalue (&kst));
|
|
|
c6d234 |
else
|
|
|
c6d234 |
- result = INTERNAL_SYSCALL (stat, err, 2, CHECK_STRING (file),
|
|
|
c6d234 |
- __ptrvalue (&kst));
|
|
|
c6d234 |
+ result = INTERNAL_SYSCALL (stat, err, 2, file, __ptrvalue (&kst));
|
|
|
c6d234 |
|
|
|
c6d234 |
if (__builtin_expect (!INTERNAL_SYSCALL_ERROR_P (result, err), 1))
|
|
|
c6d234 |
return __xstat64_conv (vers, &kst, st);
|
|
|
c6d234 |
diff --git a/ports/sysdeps/unix/sysv/linux/mips/mips64/lxstat64.c b/ports/sysdeps/unix/sysv/linux/mips/mips64/lxstat64.c
|
|
|
c6d234 |
index 71123f2bf9094c0f..f698d9298a3855e6 100644
|
|
|
c6d234 |
--- a/ports/sysdeps/unix/sysv/linux/mips/mips64/lxstat64.c
|
|
|
c6d234 |
+++ b/ports/sysdeps/unix/sysv/linux/mips/mips64/lxstat64.c
|
|
|
c6d234 |
@@ -23,7 +23,6 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
#include <sys/syscall.h>
|
|
|
c6d234 |
-#include <bp-checks.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <xstatconv.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -34,7 +33,7 @@ __lxstat64 (int vers, const char *name, struct stat64 *buf)
|
|
|
c6d234 |
int result;
|
|
|
c6d234 |
struct kernel_stat kbuf;
|
|
|
c6d234 |
|
|
|
c6d234 |
- result = INLINE_SYSCALL (lstat, 2, CHECK_STRING (name), __ptrvalue (&kbuf));
|
|
|
c6d234 |
+ result = INLINE_SYSCALL (lstat, 2, name, __ptrvalue (&kbuf));
|
|
|
c6d234 |
if (result == 0)
|
|
|
c6d234 |
result = __xstat64_conv (vers, &kbuf, buf);
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/ports/sysdeps/unix/sysv/linux/mips/mips64/xstat64.c b/ports/sysdeps/unix/sysv/linux/mips/mips64/xstat64.c
|
|
|
c6d234 |
index b5bb93614340c02a..623299c6b8db85c4 100644
|
|
|
c6d234 |
--- a/ports/sysdeps/unix/sysv/linux/mips/mips64/xstat64.c
|
|
|
c6d234 |
+++ b/ports/sysdeps/unix/sysv/linux/mips/mips64/xstat64.c
|
|
|
c6d234 |
@@ -23,7 +23,6 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
#include <sys/syscall.h>
|
|
|
c6d234 |
-#include <bp-checks.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <xstatconv.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -35,7 +34,7 @@ __xstat64 (int vers, const char *name, struct stat64 *buf)
|
|
|
c6d234 |
int result;
|
|
|
c6d234 |
struct kernel_stat kbuf;
|
|
|
c6d234 |
|
|
|
c6d234 |
- result = INLINE_SYSCALL (stat, 2, CHECK_STRING (name), __ptrvalue (&kbuf));
|
|
|
c6d234 |
+ result = INLINE_SYSCALL (stat, 2, name, __ptrvalue (&kbuf));
|
|
|
c6d234 |
if (result == 0)
|
|
|
c6d234 |
result = __xstat64_conv (vers, &kbuf, buf);
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/generic/bp-checks.h b/sysdeps/generic/bp-checks.h
|
|
|
c6d234 |
index f2610786aed0cc85..bf10617a3f6b8474 100644
|
|
|
c6d234 |
--- a/sysdeps/generic/bp-checks.h
|
|
|
c6d234 |
+++ b/sysdeps/generic/bp-checks.h
|
|
|
c6d234 |
@@ -41,16 +41,6 @@
|
|
|
c6d234 |
&& BOUNDS_VIOLATED), \
|
|
|
c6d234 |
__ptrvalue (ARG))
|
|
|
c6d234 |
|
|
|
c6d234 |
-extern void *__unbounded __ubp_memchr (const void *__unbounded, int, unsigned);
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-# define _CHECK_STRING(ARG, COND) \
|
|
|
c6d234 |
- (((COND) \
|
|
|
c6d234 |
- && (__ptrvalue (ARG) < __ptrlow (ARG) \
|
|
|
c6d234 |
- || !__ubp_memchr (__ptrvalue (ARG), '\0', \
|
|
|
c6d234 |
- (__ptrhigh (ARG) - __ptrvalue (ARG)))) \
|
|
|
c6d234 |
- && BOUNDS_VIOLATED), \
|
|
|
c6d234 |
- __ptrvalue (ARG))
|
|
|
c6d234 |
-
|
|
|
c6d234 |
/* Check bounds of a pointer seated to an array of N objects. */
|
|
|
c6d234 |
# define CHECK_N(ARG, N) _CHECK_N ((ARG), (N), 1)
|
|
|
c6d234 |
/* Same as CHECK_N, but tolerate ARG == NULL. */
|
|
|
c6d234 |
@@ -61,11 +51,6 @@ extern void *__unbounded __ubp_memchr (const void *__unbounded, int, unsigned);
|
|
|
c6d234 |
/* Same as CHECK_1, but tolerate ARG == NULL. */
|
|
|
c6d234 |
# define CHECK_1_NULL_OK(ARG) CHECK_N_NULL_OK ((ARG), 1)
|
|
|
c6d234 |
|
|
|
c6d234 |
-/* Check for NUL-terminator within string's bounds. */
|
|
|
c6d234 |
-# define CHECK_STRING(ARG) _CHECK_STRING ((ARG), 1)
|
|
|
c6d234 |
-/* Same as CHECK_STRING, but tolerate ARG == NULL. */
|
|
|
c6d234 |
-# define CHECK_STRING_NULL_OK(ARG) _CHECK_STRING ((ARG), __ptrvalue (ARG))
|
|
|
c6d234 |
-
|
|
|
c6d234 |
#else /* !__BOUNDED_POINTERS__ */
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Do nothing if not compiling with -fbounded-pointers. */
|
|
|
c6d234 |
@@ -77,7 +62,6 @@ extern void *__unbounded __ubp_memchr (const void *__unbounded, int, unsigned);
|
|
|
c6d234 |
# define CHECK_1_NULL_OK(ARG) (ARG)
|
|
|
c6d234 |
# define CHECK_N(ARG, N) (ARG)
|
|
|
c6d234 |
# define CHECK_N_NULL_OK(ARG, N) (ARG)
|
|
|
c6d234 |
-# define CHECK_STRING(ARG) (ARG)
|
|
|
c6d234 |
|
|
|
c6d234 |
#endif /* !__BOUNDED_POINTERS__ */
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/i386/memchr.S b/sysdeps/i386/memchr.S
|
|
|
c6d234 |
index 191641207efb9076..a3427c17dafd0cbf 100644
|
|
|
c6d234 |
--- a/sysdeps/i386/memchr.S
|
|
|
c6d234 |
+++ b/sysdeps/i386/memchr.S
|
|
|
c6d234 |
@@ -333,7 +333,4 @@ L(pop): popl %edi /* pop saved registers */
|
|
|
c6d234 |
END (BP_SYM (__memchr))
|
|
|
c6d234 |
|
|
|
c6d234 |
weak_alias (BP_SYM (__memchr), BP_SYM (memchr))
|
|
|
c6d234 |
-#if !__BOUNDED_POINTERS__
|
|
|
c6d234 |
-weak_alias (__memchr, __ubp_memchr)
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
libc_hidden_builtin_def (memchr)
|
|
|
c6d234 |
diff --git a/sysdeps/sparc/sparc32/memchr.S b/sysdeps/sparc/sparc32/memchr.S
|
|
|
c6d234 |
index b7a77298ab916ee0..e22b3d8c1adf4322 100644
|
|
|
c6d234 |
--- a/sysdeps/sparc/sparc32/memchr.S
|
|
|
c6d234 |
+++ b/sysdeps/sparc/sparc32/memchr.S
|
|
|
c6d234 |
@@ -139,7 +139,4 @@ ENTRY(__memchr)
|
|
|
c6d234 |
END(__memchr)
|
|
|
c6d234 |
|
|
|
c6d234 |
weak_alias (__memchr, memchr)
|
|
|
c6d234 |
-#if !__BOUNDED_POINTERS__
|
|
|
c6d234 |
-weak_alias (__memchr, __ubp_memchr)
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
libc_hidden_builtin_def (memchr)
|
|
|
c6d234 |
diff --git a/sysdeps/sparc/sparc64/memchr.S b/sysdeps/sparc/sparc64/memchr.S
|
|
|
c6d234 |
index 03423b93f5bd81e1..cf38e6a10329e37f 100644
|
|
|
c6d234 |
--- a/sysdeps/sparc/sparc64/memchr.S
|
|
|
c6d234 |
+++ b/sysdeps/sparc/sparc64/memchr.S
|
|
|
c6d234 |
@@ -256,7 +256,4 @@ ENTRY(__memchr)
|
|
|
c6d234 |
END(__memchr)
|
|
|
c6d234 |
|
|
|
c6d234 |
weak_alias (__memchr, memchr)
|
|
|
c6d234 |
-#if !__BOUNDED_POINTERS__
|
|
|
c6d234 |
-weak_alias (__memchr, __ubp_memchr)
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
libc_hidden_builtin_def (memchr)
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/execve.c b/sysdeps/unix/sysv/linux/execve.c
|
|
|
c6d234 |
index f29615980c531bc2..34fd14bf6afc5417 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/execve.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/execve.c
|
|
|
c6d234 |
@@ -21,7 +21,8 @@
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
#include <alloca.h>
|
|
|
c6d234 |
#include <sys/syscall.h>
|
|
|
c6d234 |
-#include <bp-checks.h>
|
|
|
c6d234 |
+
|
|
|
c6d234 |
+/* Consider moving to syscalls.list. */
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
__execve (file, argv, envp)
|
|
|
c6d234 |
@@ -29,34 +30,6 @@ __execve (file, argv, envp)
|
|
|
c6d234 |
char *const argv[];
|
|
|
c6d234 |
char *const envp[];
|
|
|
c6d234 |
{
|
|
|
c6d234 |
-#if __BOUNDED_POINTERS__
|
|
|
c6d234 |
- {
|
|
|
c6d234 |
- char *const *v;
|
|
|
c6d234 |
- int i;
|
|
|
c6d234 |
- char *__unbounded *__unbounded ubp_argv;
|
|
|
c6d234 |
- char *__unbounded *__unbounded ubp_envp;
|
|
|
c6d234 |
- char *__unbounded *__unbounded ubp_v;
|
|
|
c6d234 |
-
|
|
|
c6d234 |
- for (v = argv; *v; v++)
|
|
|
c6d234 |
- ;
|
|
|
c6d234 |
- i = v - argv + 1;
|
|
|
c6d234 |
- ubp_argv = (char *__unbounded *__unbounded) alloca (sizeof (*ubp_argv) * i);
|
|
|
c6d234 |
- for (v = argv, ubp_v = ubp_argv; --i; v++, ubp_v++)
|
|
|
c6d234 |
- *ubp_v = CHECK_STRING (*v);
|
|
|
c6d234 |
- *ubp_v = 0;
|
|
|
c6d234 |
-
|
|
|
c6d234 |
- for (v = envp; *v; v++)
|
|
|
c6d234 |
- ;
|
|
|
c6d234 |
- i = v - envp + 1;
|
|
|
c6d234 |
- ubp_envp = (char *__unbounded *__unbounded) alloca (sizeof (*ubp_envp) * i);
|
|
|
c6d234 |
- for (v = envp, ubp_v = ubp_envp; --i; v++, ubp_v++)
|
|
|
c6d234 |
- *ubp_v = CHECK_STRING (*v);
|
|
|
c6d234 |
- *ubp_v = 0;
|
|
|
c6d234 |
-
|
|
|
c6d234 |
- return INLINE_SYSCALL (execve, 3, CHECK_STRING (file), ubp_argv, ubp_envp);
|
|
|
c6d234 |
- }
|
|
|
c6d234 |
-#else
|
|
|
c6d234 |
return INLINE_SYSCALL (execve, 3, file, argv, envp);
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
}
|
|
|
c6d234 |
weak_alias (__execve, execve)
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/fxstatat.c b/sysdeps/unix/sysv/linux/fxstatat.c
|
|
|
c6d234 |
index 9bb608957ac98c9d..de98e667c76f9b3e 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/fxstatat.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/fxstatat.c
|
|
|
c6d234 |
@@ -109,10 +109,10 @@ __fxstatat (int vers, int fd, const char *file, struct stat *st, int flag)
|
|
|
c6d234 |
if (vers == _STAT_VER_KERNEL)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (flag & AT_SYMLINK_NOFOLLOW)
|
|
|
c6d234 |
- result = INTERNAL_SYSCALL (lstat, err, 2, CHECK_STRING (file),
|
|
|
c6d234 |
+ result = INTERNAL_SYSCALL (lstat, err, 2, file,
|
|
|
c6d234 |
CHECK_1 ((struct kernel_stat *) st));
|
|
|
c6d234 |
else
|
|
|
c6d234 |
- result = INTERNAL_SYSCALL (stat, err, 2, CHECK_STRING (file),
|
|
|
c6d234 |
+ result = INTERNAL_SYSCALL (stat, err, 2, file,
|
|
|
c6d234 |
CHECK_1 ((struct kernel_stat *) st));
|
|
|
c6d234 |
|
|
|
c6d234 |
if (__builtin_expect (!INTERNAL_SYSCALL_ERROR_P (result, err), 1))
|
|
|
c6d234 |
@@ -126,11 +126,9 @@ __fxstatat (int vers, int fd, const char *file, struct stat *st, int flag)
|
|
|
c6d234 |
}
|
|
|
c6d234 |
#else
|
|
|
c6d234 |
if (flag & AT_SYMLINK_NOFOLLOW)
|
|
|
c6d234 |
- result = INTERNAL_SYSCALL (lstat, err, 2, CHECK_STRING (file),
|
|
|
c6d234 |
- __ptrvalue (&kst));
|
|
|
c6d234 |
+ result = INTERNAL_SYSCALL (lstat, err, 2, file, __ptrvalue (&kst));
|
|
|
c6d234 |
else
|
|
|
c6d234 |
- result = INTERNAL_SYSCALL (stat, err, 2, CHECK_STRING (file),
|
|
|
c6d234 |
- __ptrvalue (&kst));
|
|
|
c6d234 |
+ result = INTERNAL_SYSCALL (stat, err, 2, file, __ptrvalue (&kst));
|
|
|
c6d234 |
|
|
|
c6d234 |
if (__builtin_expect (!INTERNAL_SYSCALL_ERROR_P (result, err), 1))
|
|
|
c6d234 |
return __xstat_conv (vers, &kst, st);
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/fxstatat64.c b/sysdeps/unix/sysv/linux/fxstatat64.c
|
|
|
c6d234 |
index 4aa60df7abc9d929..10488b6c1daa210e 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/fxstatat64.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/fxstatat64.c
|
|
|
c6d234 |
@@ -99,11 +99,9 @@ __fxstatat64 (int vers, int fd, const char *file, struct stat64 *st, int flag)
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
if (flag & AT_SYMLINK_NOFOLLOW)
|
|
|
c6d234 |
- result = INTERNAL_SYSCALL (lstat64, err, 2, CHECK_STRING (file),
|
|
|
c6d234 |
- CHECK_1 (st));
|
|
|
c6d234 |
+ result = INTERNAL_SYSCALL (lstat64, err, 2, file, CHECK_1 (st));
|
|
|
c6d234 |
else
|
|
|
c6d234 |
- result = INTERNAL_SYSCALL (stat64, err, 2, CHECK_STRING (file),
|
|
|
c6d234 |
- CHECK_1 (st));
|
|
|
c6d234 |
+ result = INTERNAL_SYSCALL (stat64, err, 2, file, CHECK_1 (st));
|
|
|
c6d234 |
if (__builtin_expect (!INTERNAL_SYSCALL_ERROR_P (result, err), 1))
|
|
|
c6d234 |
{
|
|
|
c6d234 |
# if defined _HAVE_STAT64___ST_INO && __ASSUME_ST_INO_64_BIT == 0
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/getcwd.c b/sysdeps/unix/sysv/linux/getcwd.c
|
|
|
c6d234 |
index 6a5e6262d997fc53..ab665ac9c6f6ac4d 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/getcwd.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/getcwd.c
|
|
|
c6d234 |
@@ -26,7 +26,6 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
#include <sys/syscall.h>
|
|
|
c6d234 |
-#include <bp-checks.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <kernel-features.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -78,7 +77,7 @@ __getcwd (char *buf, size_t size)
|
|
|
c6d234 |
|
|
|
c6d234 |
int retval;
|
|
|
c6d234 |
|
|
|
c6d234 |
- retval = INLINE_SYSCALL (getcwd, 2, CHECK_STRING (path), alloc_size);
|
|
|
c6d234 |
+ retval = INLINE_SYSCALL (getcwd, 2, path, alloc_size);
|
|
|
c6d234 |
if (retval >= 0 && path[0] == '/')
|
|
|
c6d234 |
{
|
|
|
c6d234 |
#ifndef NO_ALLOCATION
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/i386/chown.c b/sysdeps/unix/sysv/linux/i386/chown.c
|
|
|
c6d234 |
index 5ea3cfd8692f3bf5..0ddf0651ae2e03f3 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/i386/chown.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/i386/chown.c
|
|
|
c6d234 |
@@ -21,7 +21,6 @@
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
#include <sys/syscall.h>
|
|
|
c6d234 |
#include <shlib-compat.h>
|
|
|
c6d234 |
-#include <bp-checks.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <linux/posix_types.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -45,7 +44,7 @@ extern int __real_chown (const char *__file, uid_t __owner, gid_t __group);
|
|
|
c6d234 |
int
|
|
|
c6d234 |
__real_chown (const char *file, uid_t owner, gid_t group)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- return INLINE_SYSCALL (chown32, 3, CHECK_STRING (file), owner, group);
|
|
|
c6d234 |
+ return INLINE_SYSCALL (chown32, 3, file, owner, group);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/i386/fchownat.c b/sysdeps/unix/sysv/linux/i386/fchownat.c
|
|
|
c6d234 |
index 18c8f0b317213b0f..116a24a07458e87c 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/i386/fchownat.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/i386/fchownat.c
|
|
|
c6d234 |
@@ -24,7 +24,6 @@
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
#include <sys/syscall.h>
|
|
|
c6d234 |
#include <shlib-compat.h>
|
|
|
c6d234 |
-#include <bp-checks.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <linux/posix_types.h>
|
|
|
c6d234 |
#include <kernel-features.h>
|
|
|
c6d234 |
@@ -86,11 +85,9 @@ fchownat (int fd, const char *file, uid_t owner, gid_t group, int flag)
|
|
|
c6d234 |
INTERNAL_SYSCALL_DECL (err);
|
|
|
c6d234 |
|
|
|
c6d234 |
if (flag & AT_SYMLINK_NOFOLLOW)
|
|
|
c6d234 |
- result = INTERNAL_SYSCALL (lchown32, err, 3, CHECK_STRING (file), owner,
|
|
|
c6d234 |
- group);
|
|
|
c6d234 |
+ result = INTERNAL_SYSCALL (lchown32, err, 3, file, owner, group);
|
|
|
c6d234 |
else
|
|
|
c6d234 |
- result = INTERNAL_SYSCALL (chown32, err, 3, CHECK_STRING (file), owner,
|
|
|
c6d234 |
- group);
|
|
|
c6d234 |
+ result = INTERNAL_SYSCALL (chown32, err, 3, file, owner, group);
|
|
|
c6d234 |
|
|
|
c6d234 |
if (__builtin_expect (INTERNAL_SYSCALL_ERROR_P (result, err), 0))
|
|
|
c6d234 |
{
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/i386/fxstatat.c b/sysdeps/unix/sysv/linux/i386/fxstatat.c
|
|
|
c6d234 |
index d1e81e081b7e91bf..010f637155d35d76 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/i386/fxstatat.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/i386/fxstatat.c
|
|
|
c6d234 |
@@ -102,20 +102,18 @@ __fxstatat (int vers, int fd, const char *file, struct stat *st, int flag)
|
|
|
c6d234 |
if (vers == _STAT_VER_KERNEL)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (flag & AT_SYMLINK_NOFOLLOW)
|
|
|
c6d234 |
- result = INTERNAL_SYSCALL (lstat, err, 2, CHECK_STRING (file),
|
|
|
c6d234 |
+ result = INTERNAL_SYSCALL (lstat, err, 2, file,
|
|
|
c6d234 |
CHECK_1 ((struct kernel_stat *) st));
|
|
|
c6d234 |
else
|
|
|
c6d234 |
- result = INTERNAL_SYSCALL (stat, err, 2, CHECK_STRING (file),
|
|
|
c6d234 |
+ result = INTERNAL_SYSCALL (stat, err, 2, file,
|
|
|
c6d234 |
CHECK_1 ((struct kernel_stat *) st));
|
|
|
c6d234 |
goto out;
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
if (flag & AT_SYMLINK_NOFOLLOW)
|
|
|
c6d234 |
- result = INTERNAL_SYSCALL (lstat64, err, 2, CHECK_STRING (file),
|
|
|
c6d234 |
- __ptrvalue (&st64));
|
|
|
c6d234 |
+ result = INTERNAL_SYSCALL (lstat64, err, 2, file, __ptrvalue (&st64));
|
|
|
c6d234 |
else
|
|
|
c6d234 |
- result = INTERNAL_SYSCALL (stat64, err, 2, CHECK_STRING (file),
|
|
|
c6d234 |
- __ptrvalue (&st64));
|
|
|
c6d234 |
+ result = INTERNAL_SYSCALL (stat64, err, 2, file, __ptrvalue (&st64));
|
|
|
c6d234 |
if (__builtin_expect (!INTERNAL_SYSCALL_ERROR_P (result, err), 1))
|
|
|
c6d234 |
return __xstat32_conv (vers, &st64, st);
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/i386/lchown.c b/sysdeps/unix/sysv/linux/i386/lchown.c
|
|
|
c6d234 |
index 6190d02a6f068c5b..d90a0b5e350221ab 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/i386/lchown.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/i386/lchown.c
|
|
|
c6d234 |
@@ -20,7 +20,6 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
#include <sys/syscall.h>
|
|
|
c6d234 |
-#include <bp-checks.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <linux/posix_types.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -29,7 +28,7 @@
|
|
|
c6d234 |
int
|
|
|
c6d234 |
__lchown (const char *file, uid_t owner, gid_t group)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- return INLINE_SYSCALL (lchown32, 3, CHECK_STRING (file), owner, group);
|
|
|
c6d234 |
+ return INLINE_SYSCALL (lchown32, 3, file, owner, group);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
weak_alias (__lchown, lchown)
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/i386/lxstat.c b/sysdeps/unix/sysv/linux/i386/lxstat.c
|
|
|
c6d234 |
index 2b1ecaa0d94d86fc..9be5ff0f0e382c7e 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/i386/lxstat.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/i386/lxstat.c
|
|
|
c6d234 |
@@ -41,12 +41,12 @@ __lxstat (int vers, const char *name, struct stat *buf)
|
|
|
c6d234 |
int result;
|
|
|
c6d234 |
|
|
|
c6d234 |
if (vers == _STAT_VER_KERNEL)
|
|
|
c6d234 |
- return INLINE_SYSCALL (lstat, 2, CHECK_STRING (name), CHECK_1 ((struct kernel_stat *) buf));
|
|
|
c6d234 |
+ return INLINE_SYSCALL (lstat, 2, name, CHECK_1 ((struct kernel_stat *) buf));
|
|
|
c6d234 |
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct stat64 buf64;
|
|
|
c6d234 |
|
|
|
c6d234 |
- result = INLINE_SYSCALL (lstat64, 2, CHECK_STRING (name), __ptrvalue (&buf64));
|
|
|
c6d234 |
+ result = INLINE_SYSCALL (lstat64, 2, name, __ptrvalue (&buf64));
|
|
|
c6d234 |
if (result == 0)
|
|
|
c6d234 |
result = __xstat32_conv (vers, &buf64, buf);
|
|
|
c6d234 |
return result;
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/i386/xstat.c b/sysdeps/unix/sysv/linux/i386/xstat.c
|
|
|
c6d234 |
index 0fe7a9dcdf028541..e44599c85a836419 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/i386/xstat.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/i386/xstat.c
|
|
|
c6d234 |
@@ -41,12 +41,12 @@ __xstat (int vers, const char *name, struct stat *buf)
|
|
|
c6d234 |
int result;
|
|
|
c6d234 |
|
|
|
c6d234 |
if (vers == _STAT_VER_KERNEL)
|
|
|
c6d234 |
- return INLINE_SYSCALL (stat, 2, CHECK_STRING (name), CHECK_1 ((struct kernel_stat *) buf));
|
|
|
c6d234 |
+ return INLINE_SYSCALL (stat, 2, name, CHECK_1 ((struct kernel_stat *) buf));
|
|
|
c6d234 |
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct stat64 buf64;
|
|
|
c6d234 |
|
|
|
c6d234 |
- result = INLINE_SYSCALL (stat64, 2, CHECK_STRING (name), __ptrvalue (&buf64));
|
|
|
c6d234 |
+ result = INLINE_SYSCALL (stat64, 2, name, __ptrvalue (&buf64));
|
|
|
c6d234 |
if (result == 0)
|
|
|
c6d234 |
result = __xstat32_conv (vers, &buf64, buf);
|
|
|
c6d234 |
return result;
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/lxstat.c b/sysdeps/unix/sysv/linux/lxstat.c
|
|
|
c6d234 |
index c7359647b67ee461..62b4650d8f771854 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/lxstat.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/lxstat.c
|
|
|
c6d234 |
@@ -36,7 +36,7 @@ int
|
|
|
c6d234 |
__lxstat (int vers, const char *name, struct stat *buf)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (vers == _STAT_VER_KERNEL)
|
|
|
c6d234 |
- return INLINE_SYSCALL (lstat, 2, CHECK_STRING (name),
|
|
|
c6d234 |
+ return INLINE_SYSCALL (lstat, 2, name,
|
|
|
c6d234 |
CHECK_1 ((struct kernel_stat *) buf));
|
|
|
c6d234 |
|
|
|
c6d234 |
#ifdef STAT_IS_KERNEL_STAT
|
|
|
c6d234 |
@@ -46,7 +46,7 @@ __lxstat (int vers, const char *name, struct stat *buf)
|
|
|
c6d234 |
struct kernel_stat kbuf;
|
|
|
c6d234 |
int result;
|
|
|
c6d234 |
|
|
|
c6d234 |
- result = INLINE_SYSCALL (lstat, 2, CHECK_STRING (name), __ptrvalue (&kbuf));
|
|
|
c6d234 |
+ result = INLINE_SYSCALL (lstat, 2, name, __ptrvalue (&kbuf));
|
|
|
c6d234 |
if (result == 0)
|
|
|
c6d234 |
result = __xstat_conv (vers, &kbuf, buf);
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/lxstat64.c b/sysdeps/unix/sysv/linux/lxstat64.c
|
|
|
c6d234 |
index 765b195c6ceb6554..d5d9f93f782d0221 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/lxstat64.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/lxstat64.c
|
|
|
c6d234 |
@@ -32,7 +32,7 @@ int
|
|
|
c6d234 |
___lxstat64 (int vers, const char *name, struct stat64 *buf)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int result;
|
|
|
c6d234 |
- result = INLINE_SYSCALL (lstat64, 2, CHECK_STRING (name), CHECK_1 (buf));
|
|
|
c6d234 |
+ result = INLINE_SYSCALL (lstat64, 2, name, CHECK_1 (buf));
|
|
|
c6d234 |
#if defined _HAVE_STAT64___ST_INO && __ASSUME_ST_INO_64_BIT == 0
|
|
|
c6d234 |
if (__builtin_expect (!result, 1) && buf->__st_ino != (__ino_t) buf->st_ino)
|
|
|
c6d234 |
buf->st_ino = buf->__st_ino;
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c b/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
|
|
|
c6d234 |
index c9f66164ce2397c9..6f416599e9ebdd1d 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
|
|
|
c6d234 |
@@ -21,7 +21,6 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
#include <sys/syscall.h>
|
|
|
c6d234 |
-#include <bp-checks.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Truncate the file referenced by FD to LENGTH bytes. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
@@ -30,7 +29,7 @@ truncate64 (path, length)
|
|
|
c6d234 |
off64_t length;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* On PPC32 64bit values are aligned in odd/even register pairs. */
|
|
|
c6d234 |
- int result = INLINE_SYSCALL (truncate64, 4, CHECK_STRING (path), 0,
|
|
|
c6d234 |
+ int result = INLINE_SYSCALL (truncate64, 4, path, 0,
|
|
|
c6d234 |
(long) (length >> 32),
|
|
|
c6d234 |
(long) length);
|
|
|
c6d234 |
return result;
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/s390/s390-32/chown.c b/sysdeps/unix/sysv/linux/s390/s390-32/chown.c
|
|
|
c6d234 |
index cc0503cbca14e822..f6a533d2b3fbe74e 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/s390/s390-32/chown.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/s390/s390-32/chown.c
|
|
|
c6d234 |
@@ -21,7 +21,6 @@
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
#include <sys/syscall.h>
|
|
|
c6d234 |
#include <shlib-compat.h>
|
|
|
c6d234 |
-#include <bp-checks.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <linux/posix_types.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -42,7 +41,7 @@
|
|
|
c6d234 |
int
|
|
|
c6d234 |
__real_chown (const char *file, uid_t owner, gid_t group)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- return INLINE_SYSCALL (chown32, 3, CHECK_STRING (file), owner, group);
|
|
|
c6d234 |
+ return INLINE_SYSCALL (chown32, 3, file, owner, group);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/s390/s390-32/lchown.c b/sysdeps/unix/sysv/linux/s390/s390-32/lchown.c
|
|
|
c6d234 |
index 6190d02a6f068c5b..d90a0b5e350221ab 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/s390/s390-32/lchown.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/s390/s390-32/lchown.c
|
|
|
c6d234 |
@@ -20,7 +20,6 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
#include <sys/syscall.h>
|
|
|
c6d234 |
-#include <bp-checks.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <linux/posix_types.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -29,7 +28,7 @@
|
|
|
c6d234 |
int
|
|
|
c6d234 |
__lchown (const char *file, uid_t owner, gid_t group)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- return INLINE_SYSCALL (lchown32, 3, CHECK_STRING (file), owner, group);
|
|
|
c6d234 |
+ return INLINE_SYSCALL (lchown32, 3, file, owner, group);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
weak_alias (__lchown, lchown)
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/sh/chown.c b/sysdeps/unix/sysv/linux/sh/chown.c
|
|
|
c6d234 |
index 5ae94b6b25b84e85..9ff0453d0ceb52ee 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/sh/chown.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/sh/chown.c
|
|
|
c6d234 |
@@ -20,7 +20,6 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
#include <sys/syscall.h>
|
|
|
c6d234 |
-#include <bp-checks.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <linux/posix_types.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -29,7 +28,7 @@
|
|
|
c6d234 |
int
|
|
|
c6d234 |
__chown (const char *file, uid_t owner, gid_t group)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- return INLINE_SYSCALL (chown32, 3, CHECK_STRING (file), owner, group);
|
|
|
c6d234 |
+ return INLINE_SYSCALL (chown32, 3, file, owner, group);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
libc_hidden_def (__chown)
|
|
|
c6d234 |
weak_alias (__chown, chown)
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/truncate64.c b/sysdeps/unix/sysv/linux/truncate64.c
|
|
|
c6d234 |
index b31b74d1dee485b4..98f8ec2691bad3a5 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/truncate64.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/truncate64.c
|
|
|
c6d234 |
@@ -22,7 +22,6 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
#include <sys/syscall.h>
|
|
|
c6d234 |
-#include <bp-checks.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Truncate the file referenced by FD to LENGTH bytes. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
@@ -30,7 +29,7 @@ truncate64 (const char *path, off64_t length)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
unsigned int low = length & 0xffffffff;
|
|
|
c6d234 |
unsigned int high = length >> 32;
|
|
|
c6d234 |
- int result = INLINE_SYSCALL (truncate64, 3, CHECK_STRING (path),
|
|
|
c6d234 |
+ int result = INLINE_SYSCALL (truncate64, 3, path,
|
|
|
c6d234 |
__LONG_LONG_PAIR (high, low));
|
|
|
c6d234 |
return result;
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/wordsize-64/lxstat.c b/sysdeps/unix/sysv/linux/wordsize-64/lxstat.c
|
|
|
c6d234 |
index cec71518524c2bc2..f44778e787e5ad80 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/wordsize-64/lxstat.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/wordsize-64/lxstat.c
|
|
|
c6d234 |
@@ -34,7 +34,7 @@ int
|
|
|
c6d234 |
__lxstat (int vers, const char *name, struct stat *buf)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (vers == _STAT_VER_KERNEL || vers == _STAT_VER_LINUX)
|
|
|
c6d234 |
- return INLINE_SYSCALL (lstat, 2, CHECK_STRING (name), CHECK_1 (buf));
|
|
|
c6d234 |
+ return INLINE_SYSCALL (lstat, 2, name, CHECK_1 (buf));
|
|
|
c6d234 |
|
|
|
c6d234 |
__set_errno (EINVAL);
|
|
|
c6d234 |
return -1;
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/xmknod.c b/sysdeps/unix/sysv/linux/xmknod.c
|
|
|
c6d234 |
index 9bd8b6b0d46bee4b..5b782b7af070f2ce 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/xmknod.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/xmknod.c
|
|
|
c6d234 |
@@ -24,7 +24,6 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
#include <sys/syscall.h>
|
|
|
c6d234 |
-#include <bp-checks.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Create a device file named PATH, with permission and special bits MODE
|
|
|
c6d234 |
and device number DEV (which can be constructed from major and minor
|
|
|
c6d234 |
@@ -48,8 +47,7 @@ __xmknod (int vers, const char *path, mode_t mode, dev_t *dev)
|
|
|
c6d234 |
return -1;
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
- return INLINE_SYSCALL (mknod, 3, CHECK_STRING (path), mode,
|
|
|
c6d234 |
- (unsigned int) k_dev);
|
|
|
c6d234 |
+ return INLINE_SYSCALL (mknod, 3, path, mode, (unsigned int) k_dev);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
weak_alias (__xmknod, _xmknod)
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/xmknodat.c b/sysdeps/unix/sysv/linux/xmknodat.c
|
|
|
c6d234 |
index bf91d25329a0193a..a0fa0a7984d0aa51 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/xmknodat.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/xmknodat.c
|
|
|
c6d234 |
@@ -26,7 +26,6 @@
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
#include <kernel-features.h>
|
|
|
c6d234 |
#include <sys/syscall.h>
|
|
|
c6d234 |
-#include <bp-checks.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Create a device file named PATH relative to FD, with permission and
|
|
|
c6d234 |
@@ -92,8 +91,7 @@ __xmknodat (int vers, int fd, const char *file, mode_t mode, dev_t *dev)
|
|
|
c6d234 |
file = buf;
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
- return INLINE_SYSCALL (mknod, 3, CHECK_STRING (file), mode,
|
|
|
c6d234 |
- (unsigned int) k_dev);
|
|
|
c6d234 |
+ return INLINE_SYSCALL (mknod, 3, file, mode, (unsigned int) k_dev);
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/xstat.c b/sysdeps/unix/sysv/linux/xstat.c
|
|
|
c6d234 |
index d62feaf9fe5ee1df..179ea9e30123fb81 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/xstat.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/xstat.c
|
|
|
c6d234 |
@@ -36,7 +36,7 @@ int
|
|
|
c6d234 |
__xstat (int vers, const char *name, struct stat *buf)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (vers == _STAT_VER_KERNEL)
|
|
|
c6d234 |
- return INLINE_SYSCALL (stat, 2, CHECK_STRING (name),
|
|
|
c6d234 |
+ return INLINE_SYSCALL (stat, 2, name,
|
|
|
c6d234 |
CHECK_1 ((struct kernel_stat *) buf));
|
|
|
c6d234 |
|
|
|
c6d234 |
#ifdef STAT_IS_KERNEL_STAT
|
|
|
c6d234 |
@@ -46,8 +46,7 @@ __xstat (int vers, const char *name, struct stat *buf)
|
|
|
c6d234 |
struct kernel_stat kbuf;
|
|
|
c6d234 |
int result;
|
|
|
c6d234 |
|
|
|
c6d234 |
- result = INLINE_SYSCALL (stat, 2, CHECK_STRING (name),
|
|
|
c6d234 |
- __ptrvalue (&kbuf));
|
|
|
c6d234 |
+ result = INLINE_SYSCALL (stat, 2, name, __ptrvalue (&kbuf));
|
|
|
c6d234 |
if (result == 0)
|
|
|
c6d234 |
result = __xstat_conv (vers, &kbuf, buf);
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/xstat64.c b/sysdeps/unix/sysv/linux/xstat64.c
|
|
|
c6d234 |
index dd0f996760502423..89976a68e9d86699 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/xstat64.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/xstat64.c
|
|
|
c6d234 |
@@ -33,7 +33,7 @@ int
|
|
|
c6d234 |
___xstat64 (int vers, const char *name, struct stat64 *buf)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int result;
|
|
|
c6d234 |
- result = INLINE_SYSCALL (stat64, 2, CHECK_STRING (name), CHECK_1 (buf));
|
|
|
c6d234 |
+ result = INLINE_SYSCALL (stat64, 2, name, CHECK_1 (buf));
|
|
|
c6d234 |
#if defined _HAVE_STAT64___ST_INO && __ASSUME_ST_INO_64_BIT == 0
|
|
|
c6d234 |
if (__builtin_expect (!result, 1) && buf->__st_ino != (__ino_t) buf->st_ino)
|
|
|
c6d234 |
buf->st_ino = buf->__st_ino;
|