HomeSort by relevance Sort by last modified time
    Searched defs:sysctl (Results 1 - 25 of 48) sorted by null

1 2

  /prebuilts/go/darwin-x86/src/vendor/golang_org/x/net/route/
syscall.go 16 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 16 func sysctl(mib []int32, old *byte, oldlen *uintptr, new *byte, newlen uintptr) error { func
  /cts/tests/tests/net/src/android/net/cts/
MultinetworkSysctlTest.java 30 * Tests for multinetwork sysctl functionality.
50 * e110861 net: add a sysctl to reflect the fwmark on replies
58 for (String sysctl : GLOBAL_SYSCTLS) {
59 int value = getIntValue(sysctl);
60 assertEquals(sysctl, 1, value);
68 String sysctl = new File(interfaceDir, AUTOCONF_SYSCTL).getAbsolutePath(); local
69 int value = getIntValue(sysctl);
70 assertLess(sysctl, value, 0);
  /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
71 #include <linux/sysctl.h>
81 int sysctl(int *name, int nlen, void *oldval, size_t * oldlenp, function
127 TEST(sysctl(name, ARRAY_SIZE(name), 0, 0, osname, osnamelth));
130 tst_resm(TFAIL, "sysctl(2) succeeded unexpectedly");
157 TEST(sysctl(name, ARRAY_SIZE(name), 0, 0, osname, osnamelth));
209 "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...]
  /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>
56 // sysctlnametomib fill mib with dynamically assigned sysctl entries of name,
61 if sysctl(&oid[0], 2, (*byte)(unsafe.Pointer(mib)), &miblen, (*byte)(unsafe.Pointer(&name[0])), (uintptr)(len(name))) < 0 {
93 // with dynamically assigned sysctl entries.
102 if sysctl(&mib[0], miblen, (*byte)(unsafe.Pointer(&maxcpus)), &dstsize, nil, 0) != 0 {
135 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0)
os_netbsd.go 47 func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32 func
86 // From NetBSD's <sys/sysctl.h>
97 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0)
108 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 27 func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32 func
68 // Use sysctl to fetch kern.osrelease
72 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0)
85 // Use sysctl to fetch hw.ncpu.
89 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0)
97 // Use sysctl to fetch hw.pagesize.
101 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>
56 // sysctlnametomib fill mib with dynamically assigned sysctl entries of name,
61 if sysctl(&oid[0], 2, (*byte)(unsafe.Pointer(mib)), &miblen, (*byte)(unsafe.Pointer(&name[0])), (uintptr)(len(name))) < 0 {
93 // with dynamically assigned sysctl entries.
102 if sysctl(&mib[0], miblen, (*byte)(unsafe.Pointer(&maxcpus)), &dstsize, nil, 0) != 0 {
135 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0)
os_netbsd.go 47 func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32 func
86 // From NetBSD's <sys/sysctl.h>
97 ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0)
108 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)
  /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
zsyscall_netbsd_arm.go 212 func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { func

Completed in 2094 milliseconds

1 2