Searched refs:sysctl (Results 176 - 200 of 2117) sorted by relevance

1234567891011>>

/freebsd-12-stable/lib/libc/gen/
H A Dsysctl.c33 __SCCSID("@(#)sysctl.c 8.2 (Berkeley) 1/4/94");
37 #include <sys/sysctl.h>
50 sysctl(const int *name, u_int namelen, void *oldp, size_t *oldlenp, function
59 * All valid names under CTL_USER have a dummy entry in the sysctl
/freebsd-12-stable/sys/dev/drm2/
H A Ddrm_sysctl.c35 #include <sys/sysctl.h>
68 dev->sysctl = info;
70 /* Add the sysctl node for DRI if it doesn't already exist */
74 free(dev->sysctl, DRM_MEM_DRIVER);
75 dev->sysctl = NULL;
143 if (dev->sysctl == NULL)
146 error = sysctl_ctx_free(&dev->sysctl->ctx);
147 free(dev->sysctl, DRM_MEM_DRIVER);
148 dev->sysctl = NULL;
/freebsd-12-stable/sys/compat/linux/
H A Dcheck_error.d81 linuxulator*:sysctl:handle_string:copyout_error,
82 linuxulator*:sysctl:linux_sysctl:copyin_error,
134 linuxulator*:sysctl:linux_sysctl:wrong_length
136 printf("ERROR: Application %s issued a sysctl which failed the length restrictions.\nThe length passed is %d, the min length supported is 1 and the max length supported is %d.\n", execname, arg0, arg1);
141 linuxulator*:sysctl:linux_sysctl:unsupported_sysctl
143 printf("ERROR: Application %s issued an unsupported sysctl (%s).\nPatches to support this sysctl are welcome on the freebsd-emulation@FreeBSD.org mailinglist.\n", execname, stringof(args[0]));
/freebsd-12-stable/tests/sys/acl/
H A D00.sh40 if [ $(sysctl -n kern.features.ufs_acl 2>/dev/null || echo 0) -eq 0 ]; then
/freebsd-12-stable/tests/sys/cddl/zfs/tests/zfsd/
H A Dzfsd_fault_001_pos.ksh63 sysctl kern.cam.da.$TMPDISKNUM.error_inject=0 > /dev/null
113 sysctl kern.cam.da.$TMPDISKNUM.error_inject=1 > \
/freebsd-12-stable/usr.bin/gcore/
H A Dgcore.c62 #include <sys/sysctl.h>
116 if (sysctl(name, 4, passpath, &len, NULL, 0) == -1)
/freebsd-12-stable/usr.sbin/bsdinstall/scripts/
H A Dnetconfig50 INTERFACES="$INTERFACES $(sysctl -in net.wlan.devices)"
52 for IF in $(sysctl -in net.wlan.devices); do
61 DESC=`sysctl -n dev.$(echo $IF | sed -E 's/([[:alpha:]]*)([[:digit:]]*)/\1.\2/g').%desc`
94 sysctl -N kern.features.inet6 > /dev/null 2>&1
98 sysctl -N kern.features.inet > /dev/null 2>&1
/freebsd-12-stable/usr.sbin/pc-sysinstall/backend-query/
H A Ddisk-list.sh53 SYSDISK=$(sysctl -n kern.disks)
/freebsd-12-stable/usr.sbin/periodic/etc/weekly/
H A D340.noid24 if [ $(sysctl -n security.jail.jailed) = 0 ]; then
/freebsd-12-stable/contrib/llvm-project/lldb/source/Host/freebsd/
H A DHost.cpp15 #include <sys/sysctl.h>
60 if (::sysctl(mib, 4, arg_data, &arg_data_size, NULL, 0) != 0)
76 if (::sysctl(mib, 4, pathname, &pathname_len, NULL, 0) == 0)
128 if (::sysctl(mib, 4, &proc_kinfo, &proc_kinfo_size, NULL, 0) != 0)
164 if (::sysctl(mib, 3, NULL, &pid_data_size, NULL, 0) != 0)
174 if (::sysctl(mib, 3, &kinfos[0], &pid_data_size, NULL, 0) != 0)
231 // should use libprocstat instead of going right into sysctl?
/freebsd-12-stable/contrib/pjdfstest/tests/chflags/
H A D09.t18 old=`sysctl -n security.jail.chflags_allowed`
19 sysctl security.jail.chflags_allowed=1 >/dev/null
65 sysctl security.jail.chflags_allowed=${old} >/dev/null
/freebsd-12-stable/tests/sys/mac/portacl/
H A Droot_test.sh13 sysctl security.mac.portacl.suser_exempt=1 >/dev/null
27 sysctl security.mac.portacl.suser_exempt=0 >/dev/null
41 sysctl security.mac.portacl.port_high=7778 >/dev/null
/freebsd-12-stable/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_scalars.c37 #include <sys/sysctl.h>
83 /* first time, do the sysctl */
88 if (sysctl(mib, nitems(mib), &kernel_boot_timestamp,
90 syslog(LOG_ERR, "sysctl KERN_BOOTTIME failed: %m");
186 if (sysctl(mib, 2, NULL, &buf_len, NULL, 0) != 0) {
188 "sysctl({CTL_KERN,KERN_BOOTFILE}) failed: %m");
196 if (sysctl(mib, 2, buf, &buf_len, NULL, 0)) {
198 "sysctl({CTL_KERN,KERN_BOOTFILE}) failed: %m");
262 if (sysctl(mib, 2, &mp, &len, NULL, 0) == -1) {
263 syslog(LOG_ERR, "sysctl KERN_MAXPRO
[all...]
/freebsd-12-stable/share/man/man9/
H A DMakefile310 sysctl.9 \
2004 MLINKS+=sysctl.9 SYSCTL_DECL.9 \
2005 sysctl.9 SYSCTL_ADD_INT.9 \
2006 sysctl.9 SYSCTL_ADD_LONG.9 \
2007 sysctl.9 SYSCTL_ADD_NODE.9 \
2008 sysctl.9 SYSCTL_ADD_NODE_WITH_LABEL.9 \
2009 sysctl.9 SYSCTL_ADD_OPAQUE.9 \
2010 sysctl.9 SYSCTL_ADD_PROC.9 \
2011 sysctl.9 SYSCTL_ADD_QUAD.9 \
2012 sysctl
[all...]
/freebsd-12-stable/contrib/netbsd-tests/net/ndp/
H A Dt_ra.sh53 atf_check -s exit:0 -o match:'0.->.1' rump.sysctl -w net.inet6.ip6.forwarding=1
167 atf_check -s exit:0 -o match:'= 0' rump.sysctl net.inet6.ip6.accept_rtadv
187 atf_check -s exit:0 -o match:'0.->.1' rump.sysctl -w net.inet6.ip6.accept_rtadv=1
235 atf_check -s exit:0 -o match:'0.->.1' rump.sysctl -w net.inet6.ip6.accept_rtadv=1
293 atf_check -s exit:0 -o match:'0.->.1' rump.sysctl -w net.inet6.ip6.accept_rtadv=1
351 atf_check -s exit:0 -o match:'0.->.1' rump.sysctl -w net.inet6.ip6.accept_rtadv=1
409 atf_check -s exit:0 -o match:'0.->.1' rump.sysctl -w net.inet6.ip6.accept_rtadv=1
475 atf_check -s exit:0 -o match:'0.->.1' rump.sysctl -w net.inet6.ip6.accept_rtadv=1
545 rump.sysctl -w net.inet6.ip6.accept_rtadv=1
548 rump.sysctl
[all...]
/freebsd-12-stable/usr.sbin/kgmon/
H A Dkgmon.c50 #include <sys/sysctl.h>
201 if (sysctl(mib, 3, &state, &size, NULL, 0) < 0)
208 if (sysctl(mib, 3, NULL, NULL, &state, size) >= 0)
272 if (sysctl(mib, 3, &kvp->gpm, &size, NULL, 0) < 0)
324 if (sysctl(mib, 3, &oldstate, &sz, NULL, 0) < 0)
329 if (sysctl(mib, 3, NULL, NULL, &state, sz) >= 0) {
390 if (sysctl(mib, 3, tickbuf, &i, NULL, 0) < 0)
412 if (sysctl(mib, 3, froms, &i, NULL, 0) < 0)
427 if (sysctl(mib, 3, tos, &i, NULL, 0) < 0)
479 if (sysctl(mi
[all...]
/freebsd-12-stable/usr.sbin/prometheus_sysctl_exporter/
H A Dprometheus_sysctl_exporter.c32 #include <sys/sysctl.h>
48 * Cursor for iterating over all of the system's sysctl OIDs.
64 /* Obtains the OID for a sysctl by name. */
71 err(1, "sysctl(%s)", name);
94 if (sysctl(lookup, 2 + cur->len, &next->id, &nextsize, 0, 0) != 0) {
97 err(1, "sysctl(next)");
138 if (sysctl(lookup, 2 + o->len, of, &oflen, 0, 0) != 0) {
141 err(1, "sysctl(oidfmt)");
246 if (sysctl(o->id, o->len, &value, &valuesize, 0, 0) != 0) \
273 if (sysctl(
[all...]
/freebsd-12-stable/contrib/llvm-project/lldb/source/Host/openbsd/
H A DHost.cpp15 #include <sys/sysctl.h>
66 if (::sysctl(mib, 4, arg_data, &arg_data_size, NULL, 0) == 0) {
124 if (::sysctl(mib, 4, &proc_kinfo, &proc_kinfo_size, NULL, 0) == 0) {
150 if (::sysctl(mib, 3, NULL, &pid_data_size, NULL, 0) != 0)
160 if (::sysctl(mib, 3, &kinfos[0], &pid_data_size, NULL, 0) != 0)
207 // should use libprocstat instead of going right into sysctl?
/freebsd-12-stable/contrib/gcclibs/libiberty/
H A Dphysmem.c52 # include <sys/sysctl.h>
141 if (sysctl (mib, ARRAY_SIZE (mib), &physmem, &len, NULL, 0) == 0
195 if (sysctl (mib, ARRAY_SIZE (mib), &ncpu, &len, NULL, 0) == 0
206 if (sysctl (mib, ARRAY_SIZE (mib), &ncpu, &len, NULL, 0) == 0
277 if (sysctl (mib, ARRAY_SIZE (mib), &usermem, &len, NULL, 0) == 0
/freebsd-12-stable/sys/dev/drm/
H A Ddrm_sysctl.c35 #include <sys/sysctl.h>
70 dev->sysctl = info;
72 /* Add the sysctl node for DRI if it doesn't already exist */
117 error = sysctl_ctx_free( &dev->sysctl->ctx );
119 free(dev->sysctl, DRM_MEM_DRIVER);
120 dev->sysctl = NULL;
/freebsd-12-stable/usr.bin/systat/
H A Dicmp.c47 #include <sys/sysctl.h>
232 if (sysctl(name, 4, 0, &len, 0, 0) < 0) {
233 error("sysctl getting icmpstat size failed");
240 if (sysctl(name, 4, &initstat, &len, 0, 0) < 0) {
241 error("sysctl getting icmpstat size failed");
260 if (sysctl(name, 4, &initstat, &len, 0, 0) < 0) {
261 error("sysctl getting icmpstat size failed");
279 if (sysctl(name, 4, &icmpstat, &len, 0, 0) < 0)
H A Dicmp6.c48 #include <sys/sysctl.h>
230 if (sysctl(name, 4, 0, &len, 0, 0) < 0) {
231 error("sysctl getting icmp6stat size failed");
238 if (sysctl(name, 4, &initstat, &len, 0, 0) < 0) {
239 error("sysctl getting icmp6stat size failed");
258 if (sysctl(name, 4, &initstat, &len, 0, 0) < 0) {
259 error("sysctl getting icmp6stat size failed");
277 if (sysctl(name, 4, &icmp6stat, &len, 0, 0) < 0)
H A Dip6.c48 #include <sys/sysctl.h>
253 if (sysctl(name, 4, 0, &len, 0, 0) < 0) {
254 error("sysctl getting ip6stat size failed");
261 if (sysctl(name, 4, &initstat, &len, 0, 0) < 0) {
262 error("sysctl getting ip6stat failed");
281 if (sysctl(name, 4, &initstat, &len, 0, 0) < 0) {
282 error("sysctl getting ipstat failed");
301 if (sysctl(name, 4, &curstat, &len, 0, 0) < 0)
H A Dtcp.c48 #include <sys/sysctl.h>
281 if (sysctl(name, 4, 0, &len, 0, 0) < 0) {
282 error("sysctl getting tcpstat size failed");
289 if (sysctl(name, 4, &initstat, &len, 0, 0) < 0) {
290 error("sysctl getting tcpstat failed");
309 if (sysctl(name, 4, &initstat, &len, 0, 0) < 0) {
310 error("sysctl getting tcpstat failed");
328 if (sysctl(name, 4, &curstat, &len, 0, 0) < 0)
/freebsd-12-stable/contrib/netbsd-tests/net/icmp/
H A Dt_icmp6_redirect.sh80 atf_check -s exit:0 -o match:'0.->.1' rump.sysctl -w \
104 atf_check -s exit:0 -o match:'0.->.1' rump.sysctl -w \
120 atf_check -s exit:0 -o ignore rump.sysctl -w \

Completed in 405 milliseconds

1234567891011>>