Lines Matching refs:mib
55 int mib[3], error; in get_pid_by_tid() local
62 mib[0] = CTL_KERN; in get_pid_by_tid()
63 mib[1] = KERN_PROC; in get_pid_by_tid()
64 mib[2] = KERN_PROC_ALL; in get_pid_by_tid()
66 error = sysctl(mib, 3, NULL, &len, NULL, 0); in get_pid_by_tid()
74 error = sysctl(mib, 3, buf, &len, NULL, 0); in get_pid_by_tid()
95 int mib[4], error, ret; in tdep_get_elf_image() local
101 mib[0] = CTL_KERN; in tdep_get_elf_image()
102 mib[1] = KERN_PROC; in tdep_get_elf_image()
103 mib[2] = KERN_PROC_VMMAP; in tdep_get_elf_image()
104 mib[3] = pid; in tdep_get_elf_image()
106 error = sysctl(mib, 4, NULL, &len, NULL, 0); in tdep_get_elf_image()
109 mib[3] = get_pid_by_tid(pid); in tdep_get_elf_image()
110 if (mib[3] != -1) in tdep_get_elf_image()
111 error = sysctl(mib, 4, NULL, &len, NULL, 0); in tdep_get_elf_image()
122 error = sysctl(mib, 4, buf, &len, NULL, 0); in tdep_get_elf_image()
152 int mib[4], error; in tdep_get_exe_image_path() local
156 mib[0] = CTL_KERN; in tdep_get_exe_image_path()
157 mib[1] = KERN_PROC; in tdep_get_exe_image_path()
158 mib[2] = KERN_PROC_PATHNAME; in tdep_get_exe_image_path()
159 mib[3] = getpid(); in tdep_get_exe_image_path()
161 error = sysctl(mib, 4, path, &len, NULL, 0); in tdep_get_exe_image_path()