From owner-freebsd-questions Wed Jan 31 14:56:14 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 4E19837B491 for ; Wed, 31 Jan 2001 14:55:57 -0800 (PST) Received: (qmail 36813 invoked by uid 100); 31 Jan 2001 22:55:56 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14968.38908.323145.31607@guru.mired.org> Date: Wed, 31 Jan 2001 16:55:56 -0600 (CST) To: Prasad.Chemburkar@Vashimail.ltitl.com Cc: questions@freebsd.org Subject: Re: Regarding Compilation In-Reply-To: <117195708@toto.iv> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Prasad.Chemburkar@Vashimail.ltitl.com types: > Hi! > Everybody, > > > our developer team is developing some application on 4.2 FreeBSD, they are using > tsleep() function in there code but when they compile there code using 'C' > compiler it gives following error > > /usr/include/sys/systm.h::332: syntax error before 'int' > /usr/include/sys/systm.h::333: syntax error before 'int' > /usr/include/sys/systm.h::334: syntax error before '{' > > i want to ask whether any compilation options in kernel conf had to be used to > use above function, pl help me on this topic, > thanks in advance. Didn't this just get asked last week? tsleep is a kernel function; you can't use it in application code. You want to use kqueue and kevent instead. Check the man pages. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message