Any idea why timespec* is _KERNEL stuff only?

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Jul 21 04:36:52 PDT 2004


In message <20040721113211.GA1899 at frontfree.net>, Xin LI writes:
>Hi, Poul-Henning,
>
>It seems that rev. 1.23 of sys/sys/time.h has constrained timespec* macros
>to be _KERNEL (KERNEL in the old days) only. Is this intended? (NetBSD and
>OpenBSD don't expect _KERNEL for these macros, e.g. timespeccmp, and I
>personally think that these macros will be better for more generic use,
>as timespec structure is not _KERNEL protected :-)

I agree.  I belive I made the _KERNEL only due to pressure from the
standards people or possibly bde@, can't remember to be honest.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-current mailing list