control legacy uname with an environment variable
commit0f49f849c8ec985d7a6560f9dd9b04c7100a1c90
authorLauri Tirkkonen <lotheac@iki.fi>
Tue, 1 Aug 2017 16:16:59 +0000 (1 19:16 +0300)
committerLauri Tirkkonen <lotheac@iki.fi>
Wed, 2 Aug 2017 10:04:47 +0000 (2 13:04 +0300)
tree88fedb2d5d81e085d27f441a695b93b72443c5f5
parentf0144dd97140b5b8d894138ad28730dbaa302cf1
control legacy uname with an environment variable

this allows us to remove the process flag and move the implementation
entirely into libc. it also makes puname(1) trivial; it may be removed
later.

this removes the sysinfo() return value mangling, and rtld is modified
to always receive the real uname information (for the $OSREL and
$OSNAME expansions). that's fine, though, because puname is supposed to
be a temporary hack anyway.
26 files changed:
bin/puname/Makefile
bin/puname/puname.1
bin/puname/puname.c
include/sys/procfs.h
include/sys/user.h
include/sys/utsname.h
kernel/fs/proc/prcontrol.c
kernel/fs/proc/prsubr.c
kernel/os/vers.c
kernel/syscall/systeminfo.c
kernel/syscall/uname.c
lib/libc/Makefile
lib/libc/uname.3 [moved from lib/libc/uname.2 with 99% similarity]
share/man/man4/proc.4
usr/src/cmd/ptools/pflags/pflags.c
usr/src/cmd/sgs/libconv/common/tokens.c
usr/src/lib/libc/amd64/Makefile
usr/src/lib/libc/amd64/sys/uname.s [deleted file]
usr/src/lib/libc/i386/Makefile.com
usr/src/lib/libc/i386/sys/uname.s [deleted file]
usr/src/lib/libc/port/sys/uname.c [new file with mode: 0644]
usr/src/lib/libc/sparc/Makefile.com
usr/src/lib/libc/sparc/sys/uname.s [deleted file]
usr/src/lib/libc/sparcv9/Makefile.com
usr/src/pkg/manifests/system-kernel.man2.inc
usr/src/pkg/manifests/system-library.man3.inc