Add support for DragonFly BSD

This commit is contained in:
Gary authored and William Hubbs committed 2013-07-25 22:33:24 -05:00
1 parent bee59c68c5
commit 9ebd5a6aff
5 files changed
+31 -4

No files matched your search

+9 -3
View File
@@ -164,9 +164,15 @@ librc_hidden_def(rc_find_pids)
# endif
# define _KINFO_PROC kinfo_proc
# define _KVM_GETARGV kvm_getargv
# define _GET_KINFO_UID(kp) (kp.ki_ruid)
# define _GET_KINFO_COMM(kp) (kp.ki_comm)
# define _GET_KINFO_PID(kp) (kp.ki_pid)
# if defined(__DragonFly__)
# define _GET_KINFO_UID(kp) (kp.kp_ruid)
# define _GET_KINFO_COMM(kp) (kp.kp_comm)
# define _GET_KINFO_PID(kp) (kp.kp_pid)
# else
# define _GET_KINFO_UID(kp) (kp.ki_ruid)
# define _GET_KINFO_COMM(kp) (kp.ki_comm)
# define _GET_KINFO_PID(kp) (kp.ki_pid)
# endif
# define _KVM_PATH _PATH_DEVNULL
# define _KVM_FLAGS O_RDONLY
# endif