summaryrefslogtreecommitdiff
path: root/usr.bin/uname
AgeCommit message (Collapse)Author
2024-06-03OpenBSD intentionally does not print a flavor for -r.Florian Obser
confirmed by & OK deraadt
2023-10-09Document the OpenBSD-specific output format.Ingo Schwarze
Feedback and OK millert, "more reasonable" deraadt@.
2022-07-25If a command or interface first appeared in PWB/UNIX, UNIX System III orJonathan Gray
UNIX System V mention it. Only do so in manual pages with a pre-existing HISTORY section. Prompted by the comparison of System V and BSD commands and interfaces in Sun's "System V Enhancements Overview" document. checked against manuals on bitsavers, TUHS archive and CSRG archive CDs ok jmc@ schwarze@
2016-10-28Delete some useless setlocale(3) calls in /usr/bin, no functional change.Ingo Schwarze
Patches from Jan Stary <hans at stare dot cz>, tweaked by me and tb@. While here, apply some simple style improvements: Sort headers, static void __dead usage(), return from main(), zap case '?', drop /* NOTREACHED */, drop break after usage(), ... OK tb@ millert@
2016-10-10calls to uname(3) should be checked against non-negative valueGleydson Soares
upon successful and -1 on failure (as per POSIX). No functional change, just improves portability. OK millert@ schwarze@ guenther@
2015-12-24KNF cleanup: sort #includes and cases in switch statements.tb
Fix whitespace issues with if-statements. Use return instead of exit. From fritjof () alokat ! org, thanks! ok benno@
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-03tame "stdio" right between setlocale and getopt, it is easy to reviewTheo de Raadt
this program and see it does uname(3) and stdio printf. uname(3) is backed by a cluster of sysctl() reads, all permitted by the kernel in tame_sysctl_check()
2015-07-21kill trailing whitespaceJasper Lievisse Adriaanse
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2011-10-21'-p' is an extension so all systems come up with their own output. ItAntoine Jacoutot
turns out most of them return the machine processor architecture name, so let's do that as well since it is more useful. Also several external softwares (python being one) use 'uname -p' to get the cpu architecture name. e.g. * before $ uname -p 7455 (Revision 0x201) * after $ uname -p powerpc ok millert@ miod@
2010-09-03add an EXIT STATUS section for /usr/bin;Jason McIntyre
2010-07-22document exit returns; from daniel dickmanJason McIntyre
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2008-06-19knf; Mark LumsdenTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-30- use a consistent text for STANDARDSJason McIntyre
- note which options are extensions to POSIX
2005-12-28Pass sysctl() the buffer, not a pointer to the buffer. From mpech@Todd C. Miller
2004-02-23`r' before `s';Jason McIntyre
2003-07-10add missing includesDavid Krause
ok deraadt@ tedu@
2003-07-02protoTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-09-17ansiTheo de Raadt
2001-07-12first pass at a -Wall cleanupTheo de Raadt
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-03-11Various cleanups and standardizations.Aaron Campbell
2000-03-06Add HISTORY sections; from FreeBSD.Aaron Campbell
2000-03-05Finish standardizing options list introduction.Aaron Campbell
1999-06-05- remove trailing white spaceAaron Campbell
- remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/
1998-10-30usr.bin/ man page fixes, t-zAaron Campbell
1998-06-15add -p opt to usage; form@vs.itam.nsc.ruTheo de Raadt
1998-02-24add uname -p option, provides detailed cpu infoTheo de Raadt
1996-06-26rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt