Need _ILLUMOS #define

Issue #4 resolved
Garrett D'Amore repo owner created an issue

We really would like to have an _ILLUMOS define. It might be nice to define this to a numeric value (date based?) indicating a release. But for now just define it; we can set numeric values once we have something resembling a release policy (or even releases!)

This should go in sys/feature_tests.h.

(Arguably a compiler could also define illumos.)

Comments (4)

  1. Garrett D'Amore reporter

    Proposing the numeric value %3d%3d%3d (major, minor, micro). That gives us lots of room for minor and micro numbers (1000 each). To put this in context, if we bumped only the micro number every month, it would take 83 years to exhaust the numbers. Its unlikely that anyone is going to go that long without resetting a minor number.

    We prefer this to dates, because dates can break in the face of multiple release trains. We recommend that micro numbers increment based on months from some date in the past. (August 2010 is the best choice for now, representing months since illumos announced.)

  2. Log in to comment