1956 /usr/bin/uname '-o' should return 'Illumos'
Review Request #850 — Created Feb. 8, 2018 and submitted
Information | |
---|---|
citrus | |
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.
-
Why go via systeminfo when you could just hardcode "illumos" into the uname binary and not modify systeminfo at all?
Most of the point of using systeminfo is for information that varies between systems, that's not the case here, so putting a fixed string there doesn't make a lot of sense.
Change Summary:
Replaced man page with mdoc format from Yuri Pankov
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+221 -241) |
Change Summary:
Remove kernel involvement.
uname -o
response now hard-coded in the uname binary.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+209 -239) |