From owner-freebsd-hackers Thu Sep 28 7: 1:52 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from sentinel.office1.bg (sentinel.office1.bg [195.24.48.182]) by hub.freebsd.org (Postfix) with SMTP id 8F17837B422 for ; Thu, 28 Sep 2000 07:01:33 -0700 (PDT) Received: (qmail 19070 invoked by uid 1001); 28 Sep 2000 14:00:59 -0000 Date: Thu, 28 Sep 2000 17:00:59 +0300 From: Peter Pentchev To: Maxime Henrion Cc: Marco van de Voort , freebsd-hackers@freebsd.org Subject: Re: misc freebsd-internal questions. Message-ID: <20000928170059.C5729@ringwraith.office1.bg> References: <20000928133215.D81A89717@toad.stack.nl> <39D349C6.A89C9340@qualys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <39D349C6.A89C9340@qualys.com>; from mux@qualys.com on Thu, Sep 28, 2000 at 03:38:15PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 (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