History log of /freebsd-10.3-release/usr.bin/uname/uname.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 296373 04-Mar-2016 marius

- Copy stable/10@296371 to releng/10.3 in preparation for 10.3-RC1
builds.
- Update newvers.sh to reflect RC1.
- Update __FreeBSD_version to reflect 10.3.
- Update default pkg(8) configuration to use the quarterly branch.

Approved by: re (implicit)

# 258394 20-Nov-2013 peter

MFC r256557: add uname flags to access userland's __FreeBSD_version more
conveniently than the traditional way of scripts parsing #include files.

Approved by: re (hrs)


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 227191 06-Nov-2011 ed

Add missing static keywords to uname(1)


# 203735 10-Feb-2010 emaste

Add new -o option (r203042) to manpage synopsis and usage().

Submitted by: ru


# 203042 26-Jan-2010 emaste

Allow -o as a synonym for -s, for compatibility with other systems.

Using -s is preferred, but some existing scripts and makefiles expect
to get the system name from uname -o.

Reviewed by: imp


# 117137 01-Jul-2003 jmallett

Make the sysctlbyname stuff look like the 2-level MIB stuff. This
means actually setting 'len', for example. Which will make uname -i
work on some systems where it did not. Anywhere where it did work,
it was a matter of coincidence.

Submitted by: redpixel on EFnet.


# 116088 09-Jun-2003 jmallett

Add sysctlbyname(3) support, and use that for uname -i, in preparation for
replacing the committed static OID version with a string-based OID_AUTO
version.


# 116085 09-Jun-2003 jmallett

Make kernel identification (`ident' in the config(8) driver) available to
userland, and the kernel. In the kernel by way of the 'ident[]' variable
akin to all the other stuff generated by newvers.sh. In userland it is
available to sysctl consumers via KERN_IDENT or 'kern.ident'. It is exported
by uname(1) by the -i flag.

Reviewed by: hackers@


# 103846 23-Sep-2002 jmallett

Use some macro evil to create the functions for using sysctl(3) to get each
variable natively. It should allow you to use any sysctl mib set, but due
to limitations of what I can do with macros, right now it's limited to two,
which is all this program used anyway.

Sponsored by: Bright Path Solutions


# 103837 23-Sep-2002 jmallett

Check to see if we should print a space, rather than using the annoying
prefix methodology. Adjust nearby style.

Sponsored by: Bright Path Solutions


# 103518 18-Sep-2002 jmallett

Mostly rewrite the flag handling of uname(1) to be overridable, such as:
freefall% uname -s
FreeBSD
freefall% env UNAME_s=Linnex ./uname -s
Linnex

MFC after: 1 month


# 102944 04-Sep-2002 dwmalone

ANSIify function definitions.
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.

Reviewed by: md5


# 92922 22-Mar-2002 imp

remove __P


# 89346 14-Jan-2002 nyan

'uname -p' prints the value of hw.machine_arch instead of hw.machine.

Reviewed by: imp
No response from: -arch
MFC after: 3 weeks


# 87696 11-Dec-2001 markm

WARNS=2 fixes, use __FBSDID().


# 37453 06-Jul-1998 bde

Fixed printf format errors.


# 33792 24-Feb-1998 steve

Add a -p option which is the same as the -m option but provided
for SVR4 compatibility.

PR: 5826


# 24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# 23691 11-Mar-1997 peter

This commit was generated by cvs2svn to compensate for changes in r23690,
which included commits to RCS files with non-trunk default branches.


# 23690 11-Mar-1997 peter

Import some parts of CSRG 4.4BSD-Lite2 usr.bin sources to fix tree build.


# 1590 27-May-1994 rgrimes

BSD 4.4 Lite Usr.bin Sources