Re: uname reports 'unknown'

Shawn Starr (spstarr@sh0n.net)
12 Mar 2002 17:59:53 -0500


Perhaps it should display P54C which is my P200 processor type?

On Mon, 2002-03-11 at 22:14, Keith Owens wrote:
> 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/