NetBSD-Bugs archive

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

Re: kern/49207

The following reply was made to PR kern/49207; it has been noted by GNATS.

From: "Kamil Rytarowski" <>
Subject: Re: kern/49207
Date: Sun, 28 Sep 2014 13:00:09 +0200

 Another quick question.
 I'm prototyping clock.h based on /usr/include/tzfile.h and clock_subr.[ch].
 There is a separation, in clock_subr.c, between kernel and user-land headers:
 #ifdef _KERNEL
 #include <sys/cdefs.h>
 __KERNEL_RCSID(0, "$NetBSD: clock_subr.c,v 1.22 2014/09/07 11:50:23 martin Exp $");
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/errno.h>
 #else /* ! _KERNEL */
 #include <string.h>
 #include <time.h>
 #include <errno.h>
 #endif /* ! _KERNEL */
 #include <dev/clock_subr.h>
 My prototype of <sys/clock.h> doesn't contain anything else than in-lined functions and macros. Can I use <sys/clock.h> for both worlds?
 If not, then I will go for inclusion of tzfile.h for !_KERNEL and sys/clock.h for _KERNEL, with the shared names of defines and adding missing pieces for tzfile.h (DAYSTO2000 etc).

Home | Main Index | Thread Index | Old Index