Lines Matching refs:sysctl
35 #include <sys/sysctl.h>
45 /* the default sysctl name */
55 /* the Management Information Base entries for the search path sysctl */
58 /* the sysctl name, defaults to PATHCTL */
60 /* the sysctl value - the current module search path */
62 /* flag whether user actions require changing the sysctl value */
73 /* sysctl-related functions */
81 /* Get the MIB entry for our sysctl */
109 if (sysctl(mib, miblen, NULL, &sz, NULL, 0) == -1)
110 err(1, "getting path: sysctl(%s) - size only", pathctl);
116 if (sysctl(mib, miblen, path, &sz, NULL, 0) == -1)
117 err(1, "getting path: sysctl(%s)", pathctl);
133 if (sysctl(mib, miblen, NULL, NULL, newpath, strlen(newpath)+1) == -1)
134 err(1, "setting path: sysctl(%s)", pathctl);
326 err(1, "initializing sysctl name %s", PATHCTL);
363 err(1, "sysctl name %s", optarg);
385 /* Retrieve and store the path from the sysctl value */