Searched refs:proc_kinfo (Results 1 – 3 of 3) sorted by relevance
/external/lldb/source/Host/freebsd/ |
D | Host.cpp | 249 struct kinfo_proc proc_kinfo; in GetFreeBSDProcessUserAndGroup() local 258 if (::sysctl (mib, 4, &proc_kinfo, &proc_kinfo_size, NULL, 0) == 0) in GetFreeBSDProcessUserAndGroup() 262 process_info.SetParentProcessID (proc_kinfo.ki_ppid); in GetFreeBSDProcessUserAndGroup() 263 process_info.SetUserID (proc_kinfo.ki_ruid); in GetFreeBSDProcessUserAndGroup() 264 process_info.SetGroupID (proc_kinfo.ki_rgid); in GetFreeBSDProcessUserAndGroup() 265 process_info.SetEffectiveUserID (proc_kinfo.ki_uid); in GetFreeBSDProcessUserAndGroup() 266 if (proc_kinfo.ki_ngroups > 0) in GetFreeBSDProcessUserAndGroup() 267 process_info.SetEffectiveGroupID (proc_kinfo.ki_groups[0]); in GetFreeBSDProcessUserAndGroup()
|
/external/lldb/source/Host/macosx/ |
D | Host.mm | 1194 struct kinfo_proc proc_kinfo; 1197 if (::sysctl (mib, 4, &proc_kinfo, &proc_kinfo_size, NULL, 0) == 0) 1201 process_info.SetParentProcessID (proc_kinfo.kp_eproc.e_ppid); 1202 process_info.SetUserID (proc_kinfo.kp_eproc.e_pcred.p_ruid); 1203 process_info.SetGroupID (proc_kinfo.kp_eproc.e_pcred.p_rgid); 1204 process_info.SetEffectiveUserID (proc_kinfo.kp_eproc.e_ucred.cr_uid); 1205 if (proc_kinfo.kp_eproc.e_ucred.cr_ngroups > 0) 1206 process_info.SetEffectiveGroupID (proc_kinfo.kp_eproc.e_ucred.cr_groups[0]);
|
/external/lldb/tools/debugserver/source/ |
D | RNBRemote.cpp | 3990 struct kinfo_proc proc_kinfo; in HandlePacket_qProcessInfo() local 3993 if (::sysctl (procpid_mib, 4, &proc_kinfo, &proc_kinfo_size, NULL, 0) == 0) in HandlePacket_qProcessInfo() 3997 rep << "parent-pid:" << std::hex << proc_kinfo.kp_eproc.e_ppid << ";"; in HandlePacket_qProcessInfo() 3998 rep << "real-uid:" << std::hex << proc_kinfo.kp_eproc.e_pcred.p_ruid << ";"; in HandlePacket_qProcessInfo() 3999 rep << "real-gid:" << std::hex << proc_kinfo.kp_eproc.e_pcred.p_rgid << ";"; in HandlePacket_qProcessInfo() 4000 rep << "effective-uid:" << std::hex << proc_kinfo.kp_eproc.e_ucred.cr_uid << ";"; in HandlePacket_qProcessInfo() 4001 if (proc_kinfo.kp_eproc.e_ucred.cr_ngroups > 0) in HandlePacket_qProcessInfo() 4002 … rep << "effective-gid:" << std::hex << proc_kinfo.kp_eproc.e_ucred.cr_groups[0] << ";"; in HandlePacket_qProcessInfo()
|