[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: How to know __FreeBSD_version for a symbol
From:       mdf () FreeBSD ! org
Date:       2012-08-13 14:14:40
Message-ID: CAMBSHm9N6jOmDUt-1A-AzVcVp5DpZ_E=x9gNZ4cyV+6JQ7jA=Q () mail ! gmail ! com
[Download RAW message or body]

On Mon, Aug 13, 2012 at 1:24 AM, Hooman Fazaeli <hoomanfazaeli@gmail.com> wrote:
> Hi hackers
>
> In the process of back porting drivers to older freebsd versions,
> We sometimes need to add suitable '#if __FreeBSD_version >= xxxxx ... else
> ... '
> directives to the source to use an alternate function or exclude certain
> statements, defines, etc.
>
> What is the best (quick/reliable) way to know in which __FreeBSD_version
> a symbol (function, struct member, macro, ...) has been first introduced?

As far as I know it's a slightly painful look over SVN logs.  First,
find the SVN revision that introduced or changed the relevant symbol.
Then, look at the SVN history of sys/sys/param.h for changes to
__FreeBSD_version symbol.  The one that's from the same or later SVN
revision as the symbol change is the value you'll need.

Cheers,
matthew
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic