aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/proc.h
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2019-03-15 18:18:05 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2019-03-15 18:18:05 +0000
commitb6f8cfb93a521e8235160580ebcd3999f1fe9a15 (patch)
treed132ef50945d94eea04180d5c5a13d0a89493257 /sys/sys/proc.h
parent4920f9a3489827b0beb505a8d44c39ae856c33ba (diff)
downloadsrc-b6f8cfb93a521e8235160580ebcd3999f1fe9a15.tar.gz
src-b6f8cfb93a521e8235160580ebcd3999f1fe9a15.zip
Deanonymize thread and proc state enums, so that a userland app can
use them without redefining the value names. New clang no longer allows to redefine a enum value name to the same value. Bump __FreeBSD_version, since ports depend on that. Discussed with: jhb
Notes
Notes: svn path=/head/; revision=345196
Diffstat (limited to 'sys/sys/proc.h')
-rw-r--r--sys/sys/proc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 7e67ec48e0ac..b2f75f921ec5 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -326,7 +326,7 @@ struct thread {
* or already have been set in the allocator, constructor, etc.
*/
struct pcb *td_pcb; /* (k) Kernel VA of pcb and kstack. */
- enum {
+ enum td_states {
TDS_INACTIVE = 0x0,
TDS_INHIBITED,
TDS_CAN_RUN,
@@ -573,7 +573,7 @@ struct proc {
int p_flag; /* (c) P_* flags. */
int p_flag2; /* (c) P2_* flags. */
- enum {
+ enum p_states {
PRS_NEW = 0, /* In creation */
PRS_NORMAL, /* threads can be run. */
PRS_ZOMBIE