[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7255: [PATCH] Fix reporting `unknown' by uname -p and uname -i

From: Eric Blake
Subject: bug#7255: [PATCH] Fix reporting `unknown' by uname -p and uname -i
Date: Wed, 20 Oct 2010 15:54:59 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4

On 10/20/2010 03:26 PM, Artur Rona wrote:
I'm sending a patch from Launchpad, which fixes bug in coreutils.

Use command 'uname -i' or uname -p'

Launchpad bug: https://launchpad.net/bugs/470550
Patch is able to use on coreutils 8.5.

We look forward to your response.

Thanks for your work.  But as pointed out in that launchpad discussion:

This has been discussed upstream; see:

* http://lists.gnu.org/archive/html/bug-coreutils/2005-09/msg00053.html for a 
more discussed thread, or
* http://lists.gnu.org/archive/html/bug-coreutils/2007-04/msg00089.html for a 
to-the-point one.

There are other hits, BTW.

Summary, as far as I can understand: coreutils will not provide 'uname -p -i' 
on Linux platforms since the 'sysinfo()' call does not support it, and /proc is 
er, considered too Linux-specific.

I would tend to mark this one INVALID

I still think you are better off investing effort in improving the Linux kernel uname() or sysinfo() syscalls to provide the information natively than you are to try and parse /proc/cpuinfo on the fly.

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]