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: Alan Barrett <apb%cequrux.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/49207
Date: Wed, 1 Oct 2014 20:50:20 +0200

 On Sun, 28 Sep 2014, Kamil Rytarowski wrote:
 > 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).
 
 tzfile.h is for use in handling timezone files (the output from 
 zic(8)), not for general calendar-related definitions.
 
 Why is userland relevant here?  I thought you were trying to 
 centralise the kernel's calendar-related definitions.
 
 DAYSTO2000 should be private to clock_subr.c; I don't think it 
 belongs in a header file.
 
 --apb (Alan Barrett)
 


Home | Main Index | Thread Index | Old Index