Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2001 16:55:56 -0600 (CST)
From:      Mike Meyer <mwm@mired.org>
To:        Prasad.Chemburkar@Vashimail.ltitl.com
Cc:        questions@freebsd.org
Subject:   Re: Regarding Compilation
Message-ID:  <14968.38908.323145.31607@guru.mired.org>
In-Reply-To: <117195708@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

	<mike
--
Mike Meyer <mwm@mired.org>			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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14968.38908.323145.31607>