Subject: Re: Silly uname -v question
To: B. James Phillippe <email@example.com>
From: Andrew Brown <firstname.lastname@example.org>
Date: 02/14/2002 13:45:36
>I'm having a bit of trouble finding where the text of "uname -v" is getting
>fabricated during the kernel build process. I'm somewhat curious as to why
>there is such verbosity in that text, at least in the default builds I've
>done. For example, the output of "uname -sr" is repeated in "uname -v",
>along with the full path of the config file. I'd like to trim that down a
>bit or customize it, but I have to figure out where it is getting set
from kern/kern_sysctl.c, ~line 350:
return (sysctl_rdstring(oldp, oldlenp, newp, version));
# cd /sys/arch/i386/conf
# config GENERIC
Don't forget to run "make depend"
# cd ../compile/GENERIC
# make vers.o
# cat vers.c
const char ostype = "NetBSD";
const char osrelease = "1.5ZA";
const char sccs = "@(#)NetBSD 1.5ZA (GENERIC) #0: Thu Feb 14 13:44:08 EST 2002\n andrew@this:/usr/src/sys/arch/i386/compile/GENERIC\n";
const char version = "NetBSD 1.5ZA (GENERIC) #0: Thu Feb 14 13:44:08 EST 2002\n andrew@this:/usr/src/sys/arch/i386/compile/GENERIC\n";
there ya go.
|-----< "CODE WARRIOR" >-----|
email@example.com * "ah! i see you have the internet
firstname.lastname@example.org (Andrew Brown) that goes *ping*!"
email@example.com * "information is power -- share the wealth."