Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Sep 2000 17:00:59 +0300
From:      Peter Pentchev <roam@orbitel.bg>
To:        Maxime Henrion <mux@qualys.com>
Cc:        Marco van de Voort <marcov@stack.nl>, freebsd-hackers@freebsd.org
Subject:   Re: misc freebsd-internal questions.
Message-ID:  <20000928170059.C5729@ringwraith.office1.bg>
In-Reply-To: <39D349C6.A89C9340@qualys.com>; from mux@qualys.com on Thu, Sep 28, 2000 at 03:38:15PM %2B0200
References:  <20000928133215.D81A89717@toad.stack.nl> <39D349C6.A89C9340@qualys.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 28, 2000 at 03:38:15PM +0200, Maxime Henrion wrote:
> Marco van de Voort wrote:
> 
> > (for the development of the Free Pascal compiler port):
> >
> > - Is there a way to easily check FreeBSD version (3.x or 4.x+, because of
> > the different syscallnrs for signal functions) on syscall level?
> >
> 
> Use the sysctl kern.osreldate.

If it is for a compile-time check, there's a __FreeBSD_version define in
<sys/param.h> (the kern.osreldate sysctl returns exactly this).  If it is
a configure- or run-time thing, use the sysctl as Maxime suggested.

G'luck,
Peter

-- 
I am not the subject of 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?20000928170059.C5729>