Hi!
Workaround, but work :)
http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2006-05/msg01071.html
Trober
-
-
-
-
-
- Mensagem Original -
De: B. Cook bc...@poughkeepsieschools.org
Para: freebsd-questions@freebsd.org
Data: Quinta, 19 De Fevereiro De 2009 17:01
Assunto
Hi.
I believe YES, based on
[1]http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.b
in/uname/uname.c?rev=1.14.28.1;content-type=text%2Fplain .
See NATIVE_SYSCTL2_GET(version, CTL_KERN, KERN_VERSION), on source
abov= e.
I hope I've helped.
Trober
tro...@trober.com
Hi.
I believe YES, based on [1]http://www.freebsd.org/cgi/cvsweb.
cgi/src/usr.bin/uname/uname.c?rev=1.14.28.1;content-type=3
Dtext= %2Fplain.
See = NATIVE_SYSCTL2_GET(ver= sion, CTL_KERN, KERN_VERSION), on
source above.
I hope I've helpe= d.
Trober
tro...@trober.com
= Hi!
kern.version is small part only of output uname command= .
uname command concatane KERN_OSTYPE, KERN_HOSTNAME,
KERN_OSRELEASE,nb= sp;KERN_VERSION (not in this order) to show
output.
I hope I've he= lped.
Trober
tro...@trober.com
Hi!
Wow! Good question!
Sorry, I had not seen the difference between 7 and 8 in uname and sysctl
output. Sorry.
What your /usr/obj/usr/src/include/vers.h file say in:
SCCSSTR
VERSTR
RELSTR
char ostype
char osrelease
int osreldate
kern_ident
Thanks.
Trober
tro...@trober.com