Date: Fri, 8 Jun 2001 15:32:25 +0300 From: Peter Pentchev <roam@orbitel.bg> To: Rasputin <rara.rasputin@virgin.net> Cc: hackers@freebsd.org Subject: Re: problem with systm.h trying to call resettodr() Message-ID: <20010608153225.I19938@ringworld.oblivion.bg> In-Reply-To: <20010608124731.A70666@dogma.freebsd-uk.eu.org>; from rara.rasputin@virgin.net on Fri, Jun 08, 2001 at 12:47:31PM %2B0100 References: <20010608124731.A70666@dogma.freebsd-uk.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 08, 2001 at 12:47:31PM +0100, Rasputin wrote: > I'm playing with resettodr(9), to set the BIOS clock from the system time.. > > When I try to compile the following snippet, > > [rasputin@dogma rasputin]$ cat b0rken.c > #include <sys/time.h> > #include <sys/types.h> > #include <sys/systm.h> > > int main(void){ > resettodr(); > return(0); > } > > I get warning about syntax errors in systm.h: > > [rasputin@dogma rasputin]$ gcc b0rken.c > In file included from b0rken.c:3: > /usr/include/sys/systm.h:333: syntax error before `int' > /usr/include/sys/systm.h:334: syntax error before `int' > /usr/include/sys/systm.h:335: syntax error before `(' > > (System is STABLE/RELENG_4 freshly cvsupped a few days ago, although > /usr/src/sys/sys/systm.h doesn't seem to have changed in STABLE > for four months. > > Any ideas? I know I'm not exactly '3l337' but I'd say that header file > was screwed. Or am I missing some wierd ass compiler option? As others pointed out, resettodr(9) is a kernel-space function. Section 9 of the manual is for those - see the intro(9) manual page with man 9 intro (just man intro would probably show you intro(1)). G'luck, Peter -- If I had finished this sentence, To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010608153225.I19938>