Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jul 1998 18:06:56 +0200
From:      Eivind Eklund <eivind@yes.no>
To:        Hideki Yamamoto <hyama@kansai.oki.co.jp>
Cc:        jkh@time.cdrom.com, mike@sentex.net, stable@FreeBSD.ORG
Subject:   Re: Release schedule for 2.2.7
Message-ID:  <19980704180656.03205@follo.net>
In-Reply-To: <199807041348.WAA18723@emerald.carrot.kansai.oki.co.jp>; from Hideki Yamamoto on Sat, Jul 04, 1998 at 10:48:23PM %2B0900
References:  <19980702164724.07060@follo.net> <199807041348.WAA18723@emerald.carrot.kansai.oki.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jul 04, 1998 at 10:48:23PM +0900, Hideki Yamamoto wrote:
> 
> Hi,
> 
> Thank you for your good ideas and tips.
> 
> > Not in 2.2 at this time, which is why I specifically didn't say that. :)
> 
> Eivind> Simple - if __FreeBSD_version isn't available, it is 2.2 :-)
> 
> Eivind> <osreldate.h> cannot be retrieved from the kernel (I believe it will
> Eivind> even fail to compile in some circumstances), so getting it from there
> Eivind> isn't an option.  Then it would even be better (*shudder*) to rely on
> Eivind> __FreeBSD__ (reader, please don't.  Use __FreeBSD_version, and assume
> Eivind> 2.2 if not available).
> 
> I have a question.  Is the technique available both kernel module 
> and the others?

Yes.

> I have ported msdosfs module in kernel and
> mount_msdos command in sbin/i386.
> 
> In mount_msdos source code, I think we can add the following 
> code to distinguish between two branches.
> 
> ---------------
> #include <osreldate.h>
> 
> #if __FreeBSD_version > 300000
>        printf(" This code is for -current branche\n");
> #else
>        printf(" This code is for -stable branche\n");
> #endif
> ---------------

This is correct.  If you want to do this in the kernel, just replace
<osreldate.h> with <sys/param.h>

Eivind.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message



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