From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 28 16:08:04 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4435E16A50B for ; Mon, 28 Feb 2005 16:08:04 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id C39A143D39 for ; Mon, 28 Feb 2005 16:08:03 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id j1SG834A054436; Mon, 28 Feb 2005 10:08:03 -0600 (CST) (envelope-from dan) Date: Mon, 28 Feb 2005 10:08:03 -0600 From: Dan Nelson To: Kathy Quinlan Message-ID: <20050228160802.GG8778@dan.emsphone.com> References: <42233B48.4010108@kaqelectronics.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42233B48.4010108@kaqelectronics.dyndns.org> X-OS: FreeBSD 5.3-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.8i cc: freebsd-hackers@freebsd.org Subject: Re: clock.h X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Feb 2005 16:08:04 -0000 In the last episode (Feb 28), Kathy Quinlan said: > I have this: > > #include > > 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 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