source of uname information

Robert Huff roberthuff at rcn.com
Wed Jan 21 05:06:55 PST 2009


Trober <trober at trober.com>:

>>   Am I correct in believing "uname" gets its information from the
>>   kern.version sysctl?
>
>   I believe "YES", based on
>   [1]http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/uname/uname.c
>
>   See "= NATIVE_SYSCTL2_GET(ver= sion, CTL_KERN, KERN_VERSION)", on
>   source above.
>
>   I hope I've helped.

	It does.
	Next question:
	Can someone explain this:

huff at jerusalem>> sysctl kern.version
kern.version: FreeBSD 8.0-CURRENT #0: Tue Jan 20 10:40:57 EST 2009
    huff at jerusalem.litteratus.org:/usr/obj/usr/src/sys/JERUSALEM
huff at jerusalem>> uname -a
FreeBSD jerusalem.litteratus.org 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Tue Jan 20 10:40:57 EST 2009     huff at jerusalem.litteratus.org:/usr/obj/usr/src/sys/JERUSALEM  i386


				Robert huff



More information about the freebsd-questions mailing list