Subject: Re: function
To: Alex van Denzel <>
From: R. C. Dowdeswell <>
List: port-i386
Date: 10/11/1999 14:34:41
There is a /kern/version, but wouldn't it be easier and more portable
to just use uname?

On 939674468 seconds since the Beginning of the UNIX epoch
Alex van Denzel wrote:
> wrote:
>> Had an interesting thought last night: in APL Quote Quad I remember
>> a discussion about a function call "whereami", which would determine
>> which dialect of APL you were using.
>>   Would it be possible to write such a function in PERL? It would
>> tell which OS PERL was being run under. If I could determine which
>> OS the perl app was run under, could I not then choose a config
>> file to run it under that particular OS?
>I know that linux has a /proc/version pseudo-file available. I don't
>have a running netbsd, but something like /kern/version or /proc/version
>(assuming kernfs and/or procfs is mounted) should be available. 
>Or try to find the version message in /var/log/dmesg (linux) or the
>netbsd equiv.

 == Roland Dowdeswell                      http://www.Imrryr.ORG/~elric/  ==
 == The Unofficial NetBSD Web Pages        http://www.Imrryr.ORG/NetBSD/  ==
 == The NetBSD Project                            http://www.NetBSD.ORG/  ==