Searched refs:mib (Results 1 - 25 of 199) sorted by relevance

12345678

/freebsd-current/lib/libopenbsd/
H A Dgetdtablecount.c40 int mib[4]; local
46 mib[0] = CTL_KERN;
47 mib[1] = KERN_PROC;
48 mib[2] = KERN_PROC_NFDS;
49 mib[3] = 0;
51 error = sysctl(mib, 4, &nfds, &len, NULL, 0);
/freebsd-current/lib/libc/compat-43/
H A Dgethostid.c40 int mib[2]; local
44 mib[0] = CTL_KERN;
45 mib[1] = KERN_HOSTID;
47 if (sysctl(mib, 2, &value, &size, NULL, 0) == -1)
H A Dsethostid.c40 int mib[2]; local
42 mib[0] = CTL_KERN;
43 mib[1] = KERN_HOSTID;
44 sysctl(mib, 2, NULL, NULL, &hostid, sizeof hostid);
/freebsd-current/lib/libc/gen/
H A Dsetdomainname.c40 int mib[2]; local
42 mib[0] = CTL_KERN;
43 mib[1] = KERN_NISDOMAINNAME;
44 if (sysctl(mib, 2, NULL, NULL, (void *)name, namelen) == -1)
H A Dsethostname.c40 int mib[2]; local
42 mib[0] = CTL_KERN;
43 mib[1] = KERN_HOSTNAME;
44 if (sysctl(mib, 2, NULL, NULL, (void *)name, namelen) == -1)
H A Dgetbootfile.c42 int mib[2]; local
44 mib[0] = CTL_KERN;
45 mib[1] = KERN_BOOTFILE;
46 if (sysctl(mib, 2, name, &size, NULL, 0) == -1)
H A Dgethostname.c41 int mib[2]; local
43 mib[0] = CTL_KERN;
44 mib[1] = KERN_HOSTNAME;
45 if (sysctl(mib, 2, name, &namelen, NULL, 0) == -1) {
H A Dgetdomainname.c40 int mib[2]; local
43 mib[0] = CTL_KERN;
44 mib[1] = KERN_NISDOMAINNAME;
46 if (sysctl(mib, 2, name, &size, NULL, 0) == -1)
H A Dfeature_present.c47 char *mib; local
51 if (asprintf(&mib, "kern.features.%s", feature) < 0)
54 if (sysctlbyname(mib, &i, &len, NULL, 0) < 0) {
55 free(mib);
58 free(mib);
H A Dgetosreldate.c41 int mib[2]; local
51 mib[0] = CTL_KERN;
52 mib[1] = KERN_OSRELDATE;
54 if (sysctl(mib, 2, &value, &size, NULL, 0) == -1)
H A D__xuname.c42 int mib[2], rval; local
50 mib[0] = CTL_KERN;
55 mib[1] = KERN_OSTYPE;
58 if (sysctl(mib, 2, q, &len, NULL, 0) == -1) {
68 mib[1] = KERN_HOSTNAME;
71 if (sysctl(mib, 2, q, &len, NULL, 0) == -1) {
83 mib[1] = KERN_OSRELEASE;
86 if (sysctl(mib, 2, q, &len, NULL, 0) == -1) {
104 mib[1] = KERN_VERSION;
107 if (sysctl(mib,
[all...]
H A Dgetloadavg.c50 int i, mib[2]; local
53 mib[0] = CTL_VM;
54 mib[1] = VM_LOADAVG;
56 if (sysctl(mib, 2, &loadinfo, &size, NULL, 0) < 0)
H A Dsysconf.c75 int mib[2], sverrno, value; local
83 mib[0] = CTL_KERN;
84 mib[1] = KERN_ARGMAX;
99 mib[0] = CTL_KERN;
100 mib[1] = KERN_NGROUPS;
135 mib[0] = CTL_KERN;
136 mib[1] = KERN_SAVED_IDS;
139 mib[0] = CTL_KERN;
140 mib[1] = KERN_POSIX1;
194 mib[
[all...]
/freebsd-current/sys/netinet/
H A Din_kdtrace.h58 SDT_PROVIDER_DECLARE(mib); variable
60 SDT_PROBE_DECLARE(mib, ip, count, ips_total);
61 SDT_PROBE_DECLARE(mib, ip, count, ips_badsum);
62 SDT_PROBE_DECLARE(mib, ip, count, ips_tooshort);
63 SDT_PROBE_DECLARE(mib, ip, count, ips_toosmall);
64 SDT_PROBE_DECLARE(mib, ip, count, ips_badhlen);
65 SDT_PROBE_DECLARE(mib, ip, count, ips_badlen);
66 SDT_PROBE_DECLARE(mib, ip, count, ips_fragments);
67 SDT_PROBE_DECLARE(mib, ip, count, ips_fragdropped);
68 SDT_PROBE_DECLARE(mib, i
[all...]
/freebsd-current/tests/sys/kern/
H A Dsysctl_kern_proc.c33 int mib[4], pid_max; local
40 mib[0] = CTL_KERN;
41 mib[1] = KERN_PROC;
42 mib[2] = cmd;
44 mib[3] = i;
46 if (sysctl(mib, 4, NULL, &sz, NULL, 0) == 0) {
49 (void)sysctl(mib, 4, buf, &sz, NULL, 0);
54 mib[3] = -1;
55 ATF_REQUIRE_ERRNO(ESRCH, sysctl(mib, 4, NULL, &sz, NULL, 0) != 0);
66 int cmd, mib[ local
141 int cmd, fd, mib[4]; local
[all...]
/freebsd-current/lib/libutil/
H A Dkinfo_getproc.c41 int mib[4]; local
49 mib[0] = CTL_KERN;
50 mib[1] = KERN_PROC;
51 mib[2] = KERN_PROC_PID;
52 mib[3] = pid;
54 if (sysctl(mib, nitems(mib), kipp, &len, NULL, 0) < 0)
H A Dkinfo_getallproc.c68 int mib[3]; local
70 mib[0] = CTL_KERN;
71 mib[1] = KERN_PROC;
72 mib[2] = KERN_PROC_PROC;
75 if (sysctl(mib, nitems(mib), NULL, &len, NULL, 0) < 0)
82 if (sysctl(mib, nitems(mib), kipp, &len, NULL, 0) < 0)
H A Dkinfo_getfile.c13 int mib[4]; local
22 mib[0] = CTL_KERN;
23 mib[1] = KERN_PROC;
24 mib[2] = KERN_PROC_FILEDESC;
25 mib[3] = pid;
27 error = sysctl(mib, nitems(mib), NULL, &len, NULL, 0);
34 error = sysctl(mib, nitems(mib), buf, &len, NULL, 0);
H A Dkinfo_getvmmap.c13 int mib[4]; local
22 mib[0] = CTL_KERN;
23 mib[1] = KERN_PROC;
24 mib[2] = KERN_PROC_VMMAP;
25 mib[3] = pid;
27 error = sysctl(mib, nitems(mib), NULL, &len, NULL, 0);
34 error = sysctl(mib, nitems(mib), buf, &len, NULL, 0);
/freebsd-current/contrib/unbound/compat/
H A Dgetentropy_freebsd.c35 int mib[2]; local
38 mib[0] = CTL_KERN;
39 mib[1] = KERN_ARND;
44 if (sysctl(mib, 2, buf, &len, NULL, 0) == -1)
/freebsd-current/lib/libc/arm/gen/
H A Darm_initfini.c60 int mib[2]; local
66 mib[0] = CTL_HW;
67 mib[1] = HW_FLOATINGPT;
70 if (__sysctl(mib, 2, &_libc_arm_fpu_present, &len, NULL, 0) == -1 ||
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/mib/
H A Dtst.icmp.ksh29 # This script tests that several of the the mib:::icmp* probes fire and fire
35 mib:::icmpInEchos
40 mib:::icmpOutEchoReps
45 mib:::icmpOutMsgs
H A Dtst.udp.ksh29 # This script tests that several of the the mib:::udp* probes fire and fire
35 mib:::udpHCOutDatagrams
40 mib:::udpHCInDatagrams
/freebsd-current/crypto/heimdal/lib/roken/
H A Dgetdtablesize.c77 int mib[2]; local
80 mib[0] = CTL_KERN;
81 mib[1] = KERN_MAXFILES;
83 sysctl(&mib, 2, &files, sizeof(files), NULL, 0);
/freebsd-current/lib/libgeom/
H A Dgeom_getxml.c64 int mib[3]; local
68 sizep = sizeof(mib) / sizeof(*mib);
69 if (sysctlnametomib("kern.geom.confxml", mib, &sizep) != 0)
71 if (sysctl(mib, sizep, NULL, &l, NULL, 0) != 0)
79 if (sysctl(mib, sizep, p, &l, NULL, 0) == 0)

Completed in 171 milliseconds

12345678