summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2011-09-18 23:07:33 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2011-09-18 23:07:33 +0000
commit9307b5720a5e9ac8b2edc0667194b9d47a2e567a (patch)
treeb3ec26af060667c70a0094e0ff9f8e0e134e5ed3 /sys
parent866d070e6bdcf275203c7b33074b889d2704d2be (diff)
PS_* flags are exposed to userspace via sysctl(KERN_PROC); don't require
such programs to #define __need_process just to get them ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/proc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 3ad1dcb7cd9..d1cc7498d63 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: proc.h,v 1.141 2011/07/07 18:00:33 guenther Exp $ */
+/* $OpenBSD: proc.h,v 1.142 2011/09/18 23:07:32 guenther Exp $ */
/* $NetBSD: proc.h,v 1.44 1996/04/22 01:23:21 christos Exp $ */
/*-
@@ -176,9 +176,11 @@ struct process {
#define ps_session ps_pgrp->pg_session
#define ps_pgid ps_pgrp->pg_id
+#endif /* __need_process */
+
/*
* These flags are kept in ps_flags, but they used to be in proc's p_flag
- * and were exported to userspace via the KERN_PROC2 sysctl. We'll retain
+ * and were exported to userspace via the KERN_PROC sysctl. We'll retain
* compat by using non-overlapping bits for PS_* and P_* flags and just
* OR them together for export.
*/
@@ -198,8 +200,6 @@ struct process {
#define PS_CONTINUED _P_CONTINUED
#define PS_STOPPED _P_STOPPED
-#endif /* __need_process */
-
struct proc {
TAILQ_ENTRY(proc) p_runq;
LIST_ENTRY(proc) p_list; /* List of all processes. */