lkml.org 
[lkml]   [2002]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: uname reports 'unknown'
Date
On 11 Mar 2002 20:43:37 -0500, 
Shawn Starr <spstarr@sh0n.net> wrote:
>Linux coredump 2.4.19-pre2-ac4-xfs-shawn10 #2 Mon Mar 11 03:36:35 EST
>2002 i586 unknown
>
>
>what should 'unknown' really be? I've never seen it different on Intel
>systems.

'unknown' is the output from uname -p, host processor type. That field
is not supported in the Linux kernel. uname.c in sh-utils has this

#if defined (HAVE_SYSINFO) && defined (SI_ARCHITECTURE)
if (sysinfo (SI_ARCHITECTURE, processor, sizeof (processor)) == -1)
error (1, errno, _("cannot get processor type"));
#else
strcpy (processor, "unknown");
#endif

HAVE_SYSINFO is always false in sh-utils and SI_ARCHITECTURE is not
defined in glibc so you always get unknown.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:1.063 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site