/prebuilts/go/darwin-x86/src/vendor/golang_org/x/net/route/ |
syscall.go | 20 func sysctl(mib []int32, old *byte, oldlen *uintptr, new *byte, newlen uintptr) error { func
|
/prebuilts/go/linux-x86/src/vendor/golang_org/x/net/route/ |
syscall.go | 20 func sysctl(mib []int32, old *byte, oldlen *uintptr, new *byte, newlen uintptr) error { func
|
/external/ltp/testcases/kernel/syscalls/sysctl/ |
sysctl03.c | 25 * Testcase to check that sysctl(2) sets errno to EPERM correctly. 28 * a. Call sysctl(2) as a root user, and attempt to write data 31 * b. Call sysctl(2) as a non-root user, and attempt to write data 36 * behavior of sysctl(2) isn't properly documented, as discussed in detail in 70 #include <linux/sysctl.h> 80 int sysctl(int *name, int nlen, void *oldval, size_t * oldlenp, function 126 TEST(sysctl(name, ARRAY_SIZE(name), 0, 0, osname, osnamelth)); 129 tst_resm(TFAIL, "sysctl(2) succeeded unexpectedly"); 159 TEST(sysctl(name, ARRAY_SIZE(name), 0, 0, osname, osnamelth)); 213 "This test needs a kernel that has sysctl syscall.") [all...] |
sysctl04.c | 25 * Testcase to check that sysctl(2) sets errno to ENOTDIR 28 * 1. Call sysctl(2) with sc_nlen set to 0, and expect ENOTDIR to be set. 29 * 2. Call sysctl(2) with sc_nlen greater than CTL_MAXNAME, and expect 53 #include <linux/sysctl.h> 62 int sysctl(int *name, int nlen, void *oldval, size_t * oldlenp, function 110 TEST(sysctl(name, 0, osname, &osnamelth, 0, 0)); 164 "This test needs a kernel that has sysctl syscall.");
|
sysctl01.c | 25 * Testcase for testing the basic functionality of sysctl(2) system call. 27 * sysctl({CTL_KERN, KERN_* }, ...) and compares it with the known 52 #include <linux/sysctl.h> 61 static int sysctl(int *name, int nlen, void *oldval, size_t * oldlenp, function 130 TEST(sysctl(TC[i].name, TC[i].size, TC[i].oldval, 140 "sysctl(2) failed unexpectedly " 194 "This test needs a kernel that has sysctl syscall.");
|
sysctl05.c | 25 * Testcase to check that sysctl(2) sets errno to EFAULT 28 * 1. Call sysctl(2) with the address of sc_oldname outside the address 30 * 2. Call sysctl(2) with the address of sc_oldval outside the address 53 #include <linux/sysctl.h> 64 int sysctl(int *name, int nlen, void *oldval, size_t * oldlenp, function 120 TEST(sysctl(testcases[i].name, testcases[i].size, 125 tst_resm(TFAIL, "sysctl(2) returned unexpected " 136 tst_resm(TFAIL, "sysctl(2) returned unexpected " 140 tst_resm(TPASS, "sysctl(2) set errno correctly " 191 "This test needs a kernel that has sysctl syscall.") [all...] |
/cts/tests/tests/net/src/android/net/cts/ |
MultinetworkSysctlTest.java | 30 * Tests for multinetwork sysctl functionality. 45 // Expected mode, UID, and GID of sysctl files. 74 * e110861 net: add a sysctl to reflect the fwmark on replies 82 for (String sysctl : GLOBAL_SYSCTLS) { 83 checkSysctlPermissions(sysctl); 84 int value = Integer.parseInt(readFile(sysctl).trim()); 85 assertEquals("value of " + sysctl + ":", 1, value); 93 String sysctl = new File(interfaceDir, AUTOCONF_SYSCTL).getAbsolutePath(); local 94 checkSysctlPermissions(sysctl); 95 int value = Integer.parseInt(readFile(sysctl).trim()) [all...] |
/external/valgrind/coregrind/m_syswrap/ |
syswrap-xen.c | 565 PRE(sysctl) { 566 struct vki_xen_sysctl *sysctl = (struct vki_xen_sysctl *)ARG1; local 568 PRINT("__HYPERVISOR_sysctl ( %u )", sysctl->cmd); 578 if (!sysctl) 581 switch (sysctl->interface_version) 590 "__HYPERVISOR_sysctl", sysctl->interface_version); 596 (Addr)&sysctl->u._union._field, \ 597 sizeof(sysctl->u._union._field)) 601 switch (sysctl->cmd) { 610 if (sysctl->u.readconsole.incremental 1667 struct vki_xen_sysctl *sysctl = (struct vki_xen_sysctl *)ARG1; local [all...] |
/prebuilts/go/darwin-x86/src/runtime/ |
os_dragonfly.go | 37 func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32 func 55 // From DragonFly's <sys/sysctl.h> 68 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0) 79 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0)
|
os_freebsd.go | 30 func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32 func 42 // From FreeBSD's <sys/sysctl.h> 55 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0) 66 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0)
|
os_netbsd.go | 44 func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32 func 80 // From NetBSD's <sys/sysctl.h> 91 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0) 102 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0)
|
os_openbsd.go | 42 func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32 func 75 // From OpenBSD's <sys/sysctl.h> 87 // Fetch hw.ncpu via sysctl. 88 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0) 99 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0)
|
os_darwin.go | 25 func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32 func 64 // Use sysctl to fetch hw.ncpu. 68 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0) 76 // Use sysctl to fetch hw.pagesize. 80 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0)
|
/prebuilts/go/linux-x86/src/runtime/ |
os_dragonfly.go | 37 func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32 func 55 // From DragonFly's <sys/sysctl.h> 68 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0) 79 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0)
|
os_freebsd.go | 30 func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32 func 42 // From FreeBSD's <sys/sysctl.h> 55 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0) 66 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0)
|
os_netbsd.go | 44 func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32 func 80 // From NetBSD's <sys/sysctl.h> 91 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0) 102 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0)
|
os_openbsd.go | 42 func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32 func 75 // From OpenBSD's <sys/sysctl.h> 87 // Fetch hw.ncpu via sysctl. 88 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0) 99 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0)
|
os_darwin.go | 25 func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32 func 64 // Use sysctl to fetch hw.ncpu. 68 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0) 76 // Use sysctl to fetch hw.pagesize. 80 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0)
|
/external/valgrind/coregrind/ |
m_libcproc.c | 586 Int VG_(sysctl)(Int *name, UInt namelen, void *oldp, SizeT *oldlenp, void *newp, SizeT newlen) function [all...] |
/prebuilts/go/darwin-x86/src/syscall/ |
zsyscall_dragonfly_amd64.go | 212 func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { func
|
zsyscall_freebsd_386.go | 212 func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { func
|
zsyscall_freebsd_amd64.go | 212 func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { func
|
zsyscall_freebsd_arm.go | 212 func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { func
|
zsyscall_netbsd_386.go | 212 func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { func
|
zsyscall_netbsd_amd64.go | 212 func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { func
|