Lines Matching defs:path
191 char path[64];
192 ssize_t rem = sizeof(path);
203 path[--rem] = 0;
211 printf("OID path exceeds %d bytes\n", (int)sizeof(path));
214 memcpy(path + rem, curr->oid_name, len);
216 path[rem + len] = '.';
228 if (getenv_int(path + rem, &val_int) == 0)
234 if (getenv_uint(path + rem, (unsigned int *)&val_int) == 0)
240 if (getenv_long(path + rem, &val_long) == 0)
246 if (getenv_ulong(path + rem, (unsigned long *)&val_long) == 0)
252 if (getenv_int(path + rem, &val_int) == 0)
259 if (getenv_int(path + rem, &val_int) == 0)
266 if (getenv_long(path + rem, &val_long) == 0)
273 if (getenv_quad(path + rem, &val_quad) == 0)
280 if (getenv_uint(path + rem, (unsigned int *)&val_int) == 0)
287 if (getenv_uint(path + rem, (unsigned int *)&val_int) == 0)
294 if (getenv_ulong(path + rem, (unsigned long *)&val_long) == 0)
302 if (getenv_quad(path + rem, &val_quad) == 0)
309 penv = kern_getenv(path + rem);
321 printf("Setting sysctl %s failed: %d\n", path + rem, error);