NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD macros

On Fri, Dec 11, 2009 at 03:41:44PM +0000, Julian Coleman wrote:
> This tells you that __NetBSD__ is defined (on a NetBSD system).  There are
> also version values in /usr/include/sys/param.h.  I don't know if there is
> a define that will tell you what the current OS name is.

I don't think it is a particular good idea to try to figure out the
operation system version from "sys/param.h". The best solution is
propably to use uname(3) instead.

        Kind regarsd

Matthias Scheler                        

Home | Main Index | Thread Index | Old Index