| My proposition is [...]
|
| #define SECSPERMIN 60L
| #define MINSPERHOUR 60L
| #define HOURSPERDAY 24L
| #define DAYSPERWEEK 7L
| #define DAYSPERNYEAR 365L
| #define DAYSPERLYEAR 366L
| #define SECSPERHOUR (SECSPERMIN * MINSPERHOUR)
| #define SECSPERDAY (SECSPERHOUR * HOURSPERDAY)
| #define MONSPERYEAR 12L
| #define EPOCH_YEAR 1970L
Why are they all to be long ? The only one that has even the
slightest potential for that need (and which is currently
defined as long for the userspace definitions) is SECSPERDAY,
and that's only to cope with the possibility that int is 16 bits
(which I don't think NetBSD supports at all, since there is no
pdp11 port - but is kept that way for API consistency.)