Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Feb 1998 16:32:19 -0500
From:      Max Euston <meuston@jmrodgers.com>
To:        "'FreeBSD Bugs'" <freebsd-bugs@FreeBSD.ORG>
Subject:   FW: bin/5826: uname '-p' option
Message-ID:  <01BD4141.C79A4DA0.meuston@jmrodgers.com>

next in thread | raw e-mail | index | archive | help
[Unintentionally sent directly to submitter]

-----Original Message-----
From:	Max Euston [SMTP:meuston@jmrodgers.com]
Sent:	Tuesday, February 24, 1998 9:21 AM
To:	'Nate Williams'
Subject:	RE: bin/5826: uname '-p' option

On Monday, February 23, 1998 5:42 PM, Nate Williams [SMTP:nate@mt.sri.com] wrote:
> > The following reply was made to PR bin/5826; it has been noted by GNATS.
> > 
> > From: Steve Price <sprice@hiwaay.net>
> > To: alk@East.Sun.COM, freebsd-gnats-submit@FreeBSD.ORG
> > Cc:  Subject: Re: bin/5826: uname '-p' option
> > Date: Mon, 23 Feb 1998 16:21:44 -0600
> > 
> >  > I find many SVR4 scripts using the -p option of uname to get
> >  > BSD uname -m functionality.  Here's a one-line to provide
> >  > script-compatibility.
> >  
> >  Actually I think the intent of the -p option is to show
> >  the processor type of the machine, at least according to
> >  a Digital box running OSF1.  Maybe the attached patch 
> >  would be more appropriate?
> 
> Hmm, all of the scripts I've used all return the same thing on the SUNS,
> irregardless of whether it's an IPC/SparcStattion/Ultra/Sparc 5, or
> what.  This seems contradictory to the above statement, since all of the
> scripts expect to return 'i386' on all Solaris-PC platforms,
> irregardless of the CPU used.
> 
> 
> Nate
> 
On my (old) AT&T Starserver E (SMP EISA 486 PC) (Unix SVR4 3.1):

$ man uname
[...]
       -a   Print all information.

       -m   Print the machine hardware name.

       -n   Print the nodename (the nodename is the name by which the
            system is known to a communications network).  This is the
            default.

       -p   Print the current host's processor type.

       -r   Print the operating system release.

       -s   Print the name of the operating system (e.g.  UNIX System V).

       -v   Print the operating system version.
[...]
$ uname -p
386/AT
$ uname -m
i386

Just another environment FWIW.

Max

-----
Max Euston <meuston@jmrodgers.com>
Sysadm, Programmer, etc...


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01BD4141.C79A4DA0.meuston>