tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sys/idtype.h unused enumeration values



I copied these from FreeBSD who in turn copied them from solaris and changed
P_ZONEID to P_JAILID. The FreeBSD comment is:
http://bxr.su/FreeBSD/sys/sys/wait.h#100
I decided to keep all the names too.

christos

On May 18, 2020, at 1:45 PM, Kamil Rytarowski <n54%gmx.com@localhost> wrote:

Signed PGP part
POSIX notes:

"The type idtype_t shall be defined as an enumeration type whose
possible values shall include at least the following: P_ALL P_PGID P_PID"

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_wait.h.html

For some reason we copied as-is solaris types into our public headers
with fields that will possibly never apply to NetBSD, such as P_CTID,
P_POOLID etc.

I have got a local use-case for another P_type (premature to discuss it
in this thread) and I would rather recycle an unused value.

Do we plan to get Solaris feature-parity with all the types? I assume
that the answer is NO. If so, can we delete the P_ values that are not
applicable for NetBSD?

If something is used in some compat shim for sunos software (dtrace,
zfs) we could easily add a compat wrapper in the 3rd party code.
Defining the types does not make the features to work.


<sanitizer.log>

Attachment: signature.asc
Description: Message signed with OpenPGP



Home | Main Index | Thread Index | Old Index