Lines Matching refs:sysctl
32 #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(o->id, o->len, &tv, &tvsize, 0, 0) != 0)
287 if (sysctl(o->id, o->len, &la, &lasize, 0, 0) != 0)
347 if (sysctl(lookup, 2 + o->len, on->names, &len, 0, 0) != 0)
348 err(1, "sysctl(name)");
362 if (sysctl(lookup, 2 + i + 1, label, &len, 0, 0) == 0) {
367 err(1, "sysctl(oidlabel)");
383 fprintf(fp, "sysctl");
463 if (sysctl(lookup, 2 + o->len, &od->description, &odlen, 0, 0) != 0) {
466 err(1, "sysctl(oiddescr)");
499 * guaranteed by sysctl if labels are present. Omit the