2000-11-23 00:32:24

by J.A. Magallon

[permalink] [raw]
Subject: uname

Hi everyone.

Little question about 'uname'. Does it read data from kernel, /proc or
get its data from other source ?

uname info page:
$ uname -a
Linux hayley 1.0.4 #3 Thu May 12 18:06:34 1994 i486

my system:

uname -a
Linux werewolf 2.2.18-pre23-vm #3 SMP Wed Nov 22 22:33:53 CET 2000 i686 unknown

uname -m (machine)
i686

uname -p (processor)
unknown

Seems like swapping machine-processor.
Perhaps it can be changed to uname -m give the info in get_cpu_vendor(),
and uname -p give the ix86.
Or if some utility relays on uname -m being ix86, make uname -p give cpu_vendor+
cpu_model.

--
Juan Antonio Magallon Lacarta #> cd /pub
mailto:[email protected] #> more beer

Linux 2.2.18-pre23-vm #3 SMP Wed Nov 22 22:33:53 CET 2000 i686 unknown


2000-11-23 00:49:49

by Alex Belits

[permalink] [raw]
Subject: Re: uname

On Thu, 23 Nov 2000, J . A . Magallon wrote:

> Little question about 'uname'. Does it read data from kernel, /proc or
> get its data from other source ?

uname(1) utility calls uname(2) syscall.

--
Alex

----------------------------------------------------------------------
Excellent.. now give users the option to cut your hair you hippie!
-- Anonymous Coward

2000-11-23 00:51:49

by David Schwartz

[permalink] [raw]
Subject: RE: uname


> Little question about 'uname'. Does it read data from kernel, /proc or
> get its data from other source ?

'strace' was made to answer questions like this.

DS