1956 /usr/bin/uname '-o' should return 'Illumos'

Review Request #850 - Created Feb. 8, 2018 and updated

Information
Andy Fiddaman
illumos-gate
master
8804884...
Reviewers
general

1956 /usr/bin/uname '-o' should return 'Illumos'

This is based on Andy Stormont's patch attached to the issue (https://illumos.org/issues/1956) but I've additionally:

  • Made "illumos" lower-case as discussed in the issue;
  • Stopped uname -a from including the OS at the end of the line to retain backwards compatibility for any consumers;
  • Updated the syntax line in the man page and moved the new -o block into its alphabetic place;
  • Added a couple of pbchk cleanups.

bloody% cat /etc/motd
The Illumos Project     SunOS 5.11      illumos-gate    February 2018
bloody% uname
SunOS
bloody% uname -a
SunOS bloody 5.11 illumos-gate i86pc i386 i86pc
bloody% uname -o
illumos
bloody% uname -X
System = SunOS
Node = bloody
Release = 5.11
KernelID = illumos-gate
Machine = i86pc
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 16

So no changes apart from a new -o option.

Sebastian Wiedenroth
Peter Tribble
Rob Johnston
Andy Fiddaman
Yuri Pankov
Hans Rosenfeld
Andy Fiddaman
Review request changed

Change Summary:

Remove kernel involvement. uname -o response now hard-coded in the uname binary.

Commit:

-fccdd58b2fad76cd619483b63f1b62b45db6e7e3
+8804884cebb9e7155fad4299586878cfe2c51bc9

Diff:

Revision 3 (+209 -239)

Show changes

Loading...