Date: Thu, 13 Nov 2003 12:02:59 +0100 From: "Reinier Kleipool" <Reinier@Kleipool.org> To: <freebsd-hackers@freebsd.org> Subject: RE: kernel enviroment in sysctl MIB Message-ID: <00bf01c3a9d5$b3bb9890$5201a8c0@ovs.kleipool.org> In-Reply-To: <20031112153107.GB453@straylight.oblivion.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
Perter Pentechv wrote > Take a look at the kenv(1) utility - its source is in the > src/usr.bin/kenv/kenv.c file. Yes this does the job. But in a strange way... It starts at OID 0.3 (kern.environment) and appends small integers to it (0,1,2,3 etc). Why do it so strange.. Why are the variable names not just visible in sysctl. I know that the kern enviroment is not often used in normal operation, but would't it be nicer to just see the variables in the sysctl mib? I can incorporate this "trick" in my install program, but I could also try to patch kern_environment.c so the variables become visible. What do you think.... Kind regards, Reinier
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00bf01c3a9d5$b3bb9890$5201a8c0>