1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Remove CHECK_N and bp-checks.h.

This commit is contained in:
Joseph Myers
2013-02-08 20:06:30 +00:00
parent 7f3e75f87a
commit a2da1673fe
46 changed files with 181 additions and 183 deletions

View File

@ -22,13 +22,11 @@
#include <sysdep.h>
#include <sys/syscall.h>
#include <bp-checks.h>
int
__sysctl (int *name, int nlen, void *oldval, size_t *oldlenp,
void *newval, size_t newlen)
{
/* GKM FIXME: force __sysctl_args decl to have unbounded pointers. */
struct __sysctl_args args =
{
.name = name,
@ -38,9 +36,6 @@ __sysctl (int *name, int nlen, void *oldval, size_t *oldlenp,
.newval = newval,
.newlen = newlen
};
(void) CHECK_N (name, nlen);
(void) CHECK_N (oldval, *oldlenp);
(void) CHECK_N (newval, newlen);
return INLINE_SYSCALL (_sysctl, 1, __ptrvalue (&args));
}