apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jun Kuriyama <kuriy...@imgsrc.co.jp>
Subject Re: FreeBSD version check for thread-safe sendfile
Date Sat, 13 Jan 2001 01:25:02 GMT
At 11 Jan 2001 16:12:02 -0500,
Jeff Trawick wrote:
> If there is 3.4.x, then perhaps it should be 340 for 3.4, 341 for
> 3.4.1, etc.
> 
> The version could be set to 
> 
> uname -r | sed -e 's/\(.\)\.\(.\)\.\(.\).*/\1\2\3/' | sed -e 's/\(.\)\.\(.\)\-.*/\1\20/'
> 
> yielding 341 for 3.4.1-RELEASE and 340 for 3.4-RELEASE.
> 
> Why limit the variable to FreeBSD?  We'll have (or already have)
> similar checks on other platforms.  Make the variable name more
> generic.

If version specific hack for FreeBSD is required, is it useful to use
"sysctl kern.osreldate"?

% sysctl kern.osreldate
kern.osreldate: 500015


# See http://www.FreeBSD.org/porters-handbook/porting-versions.html
# for detail of values


-- 
Jun Kuriyama <kuriyama@imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama@FreeBSD.org> // FreeBSD Project

Mime
View raw message