Date: Mon, 28 Feb 2005 10:08:03 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: Kathy Quinlan <kat-free@kaqelectronics.dyndns.org> Cc: freebsd-hackers@freebsd.org Subject: Re: clock.h Message-ID: <20050228160802.GG8778@dan.emsphone.com> In-Reply-To: <42233B48.4010108@kaqelectronics.dyndns.org> References: <42233B48.4010108@kaqelectronics.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Feb 28), Kathy Quinlan said: > I have this: > > #include <machine/clock.h> > > In program I use this: > > DELAY(1000); > > I get this: > > undefined referance to 'DELAY' > > when I compile the program with GCC with flags -Wall -g -o com main.c DELAY is a kernel function. In user processes, just use sleep() or nanosleep(). When you directly #include <machine/*> headers from userland, the only useable things are structure definitions and macro constants (and even then it's recommended that you use a userland interface instead). You can't call any of the functions. -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050228160802.GG8778>