Searched refs:mib (Results 1 – 4 of 4) sorted by relevance
/libuv/src/unix/ |
H A D | openbsd.c | 62 int mib[4]; in uv_exepath() local 78 mib[0] = CTL_KERN; in uv_exepath() 80 mib[2] = mypid; in uv_exepath() 82 if (sysctl(mib, ARRAY_SIZE(mib), argsbuf, &argsbuf_size, NULL, 0) == 0) { in uv_exepath() 151 int mib[6]; in uv_resident_set_memory() local 153 mib[0] = CTL_KERN; in uv_resident_set_memory() 154 mib[1] = KERN_PROC; in uv_resident_set_memory() 155 mib[2] = KERN_PROC_PID; in uv_resident_set_memory() 156 mib[3] = getpid(); in uv_resident_set_memory() 158 mib[5] = 1; in uv_resident_set_memory() [all …]
|
H A D | freebsd.c | 66 int mib[4]; in uv_exepath() local 72 mib[0] = CTL_KERN; in uv_exepath() 73 mib[1] = KERN_PROC; in uv_exepath() 75 mib[3] = -1; in uv_exepath() 78 if (sysctl(mib, ARRAY_SIZE(mib), abspath, &abspath_size, NULL, 0)) in uv_exepath() 146 int mib[4]; in uv_resident_set_memory() local 148 mib[0] = CTL_KERN; in uv_resident_set_memory() 149 mib[1] = KERN_PROC; in uv_resident_set_memory() 150 mib[2] = KERN_PROC_PID; in uv_resident_set_memory() 151 mib[3] = getpid(); in uv_resident_set_memory() [all …]
|
H A D | netbsd.c | 73 int mib[4]; in uv_exepath() local 78 mib[0] = CTL_KERN; in uv_exepath() 79 mib[1] = KERN_PROC_ARGS; in uv_exepath() 80 mib[2] = -1; in uv_exepath() 81 mib[3] = KERN_PROC_PATHNAME; in uv_exepath() 84 if (sysctl(mib, 4, int_buf, &int_size, NULL, 0)) in uv_exepath()
|
H A D | core.c | 1940 static const char *mib[] = { in uv_available_parallelism() local 1946 for (i = 0; i < ARRAY_SIZE(mib); i++) { in uv_available_parallelism() 1947 if (0 == sysctlbyname(mib[i], &nprocs, &len, NULL, 0) && in uv_available_parallelism() 1958 static int mib[][2] = { in uv_available_parallelism() local 1965 for (i = 0; i < ARRAY_SIZE(mib); i++) { in uv_available_parallelism() 1966 if (0 == sysctl(mib[i], ARRAY_SIZE(mib[i]), &nprocs, &len, NULL, 0) && in uv_available_parallelism()
|
Completed in 12 milliseconds