History log of /freebsd-current/usr.bin/uname/uname.c
Revision Date Author Comments
# 0b8224d1 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

Remove copyright strings ifdef'd out

We've ifdef'd out the copyright strings for some time now. Go ahead and
remove the ifdefs. Plus whatever other detritis was left over from other
recent removals. These copyright strings are present in the comments and
are largely from CSRG's attempt at adding their copyright to every
binary file (which modern interpretations of the license doesn't
require).

Sponsored by: Netflix


# bdcbfde3 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.bin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# e5d258c9 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line .c pattern

Remove /^#include\s+<sys/cdefs.h>.*$\n\s+__FBSDID\("\$FreeBSD\$"\);\n/


# cccdaf50 07-Jul-2023 Alfonso Gregory <gfunni234@gmail.com>

Mark usage function as __dead2 in programs where it does not return

In most cases, usage does not return, so mark them as __dead2. For the
cases where they do return, they have not been marked __dead2.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/735


# 7e05fa3b 18-Feb-2022 наб <nabijaczleweli@nabijaczleweli.xyz>

uname: -v: strip final whitespace compatibly with uname(3)

This restores POSIX.1 conformance

PR: 260938


# fb9a9855 27-Jun-2019 Ed Maste <emaste@FreeBSD.org>

Expose the kernel's build-ID through `uname -b`

After r348611 the kernel's build-ID is available via sysctl. Add a -b flag
to uname to report it.

Submitted by: Ali Mashtizadeh <ali_mashtizadeh.com>
Reviewed by: markj, imp
Relnotes: Yes
Event: Waterloo Hackathon 2019
Differential Revision: https://reviews.freebsd.org/D20511


# df57947f 18-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

spdx: initial adoption of licensing ID tags.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.

Initially, only tag files that use BSD 4-Clause "Original" license.

RelNotes: yes
Differential Revision: https://reviews.freebsd.org/D13133


# 876a7cf4 15-Oct-2013 Peter Wemm <peter@FreeBSD.org>

Add -K (__FreeBSD_version of kernel) and -U (__FreeBSD_version of userland).
Things like Makefile.inc1 resort to parsing /usr/include/osreldate.h with
awk because this isn't easily available by other means. The separation
of user and kernel versions is important for jail/chroot environments.


# 4b7373b8 06-Nov-2011 Ed Schouten <ed@FreeBSD.org>

Add missing static keywords to uname(1)


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# a0b96fd4 09-Feb-2010 Ed Maste <emaste@FreeBSD.org>

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

Submitted by: ru


# 8293a8fe 26-Jan-2010 Ed Maste <emaste@FreeBSD.org>

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


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# e7b883c4 01-Jul-2003 Juli Mallett <jmallett@FreeBSD.org>

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.


# 8ec00900 09-Jun-2003 Juli Mallett <jmallett@FreeBSD.org>

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.


# c4119c76 09-Jun-2003 Juli Mallett <jmallett@FreeBSD.org>

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@


# 5a4ba400 23-Sep-2002 Juli Mallett <jmallett@FreeBSD.org>

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


# 2ee166b2 23-Sep-2002 Juli Mallett <jmallett@FreeBSD.org>

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

Sponsored by: Bright Path Solutions


# bed4636e 17-Sep-2002 Juli Mallett <jmallett@FreeBSD.org>

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


# f4ac32de 04-Sep-2002 David Malone <dwmalone@FreeBSD.org>

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


# 3f330d7d 21-Mar-2002 Warner Losh <imp@FreeBSD.org>

remove __P


# 1c6d3890 13-Jan-2002 Yoshihiro Takahashi <nyan@FreeBSD.org>

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

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


# 043c9b9b3 11-Dec-2001 Mark Murray <markm@FreeBSD.org>

WARNS=2 fixes, use __FBSDID().


# 22694eba 06-Jul-1998 Bruce Evans <bde@FreeBSD.org>

Fixed printf format errors.


# 7db98de9 24-Feb-1998 Steve Price <steve@FreeBSD.org>

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

PR: 5826


# 1c8af878 28-Mar-1997 Warner Losh <imp@FreeBSD.org>

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


# 0da30e9a 11-Mar-1997 Peter Wemm <peter@FreeBSD.org>

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


# 9b50d902 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite Usr.bin Sources