Date: Fri, 15 Mar 2019 18:18:05 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r345196 - head/sys/sys Message-ID: <201903151818.x2FII5Kv085552@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Fri Mar 15 18:18:05 2019 New Revision: 345196 URL: https://svnweb.freebsd.org/changeset/base/345196 Log: 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 Modified: head/sys/sys/param.h head/sys/sys/proc.h Modified: head/sys/sys/param.h ============================================================================== --- head/sys/sys/param.h Fri Mar 15 18:06:51 2019 (r345195) +++ head/sys/sys/param.h Fri Mar 15 18:18:05 2019 (r345196) @@ -60,7 +60,7 @@ * in the range 5 to 9. */ #undef __FreeBSD_version -#define __FreeBSD_version 1300014 /* Master, propagated to newvers */ +#define __FreeBSD_version 1300015 /* Master, propagated to newvers */ /* * __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD, Modified: head/sys/sys/proc.h ============================================================================== --- head/sys/sys/proc.h Fri Mar 15 18:06:51 2019 (r345195) +++ head/sys/sys/proc.h Fri Mar 15 18:18:05 2019 (r345196) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903151818.x2FII5Kv085552>