why timeradd() and co are hidden from the kernel space ?

Bruce Evans bde at zeta.org.au
Thu Jun 17 22:21:43 GMT 2004

On Thu, 17 Jun 2004, Cyrille Lefevre wrote:

> is there any reasons to hide timeradd() and co in <sys/time.h>
> from the kernel space (! _KERNEL) ?

Yes.  This prevents them being used in the kernel.  They are compatibility
cruft for NetBSD.  In the kernel the corresponding interfaces are
spelled timevaladd(), etc.  Unfortunately, the timeradd() form of these
interfaces escaped to userland via NetBSD.


More information about the freebsd-current mailing list