summaryrefslogtreecommitdiffstats
path: root/usr.bin/uname/uname.c
Commit message (Collapse)AuthorAgeFilesLines
* Add missing static keywords to uname(1)ed2011-11-061-20/+21
|
* Add new -o option (r203042) to manpage synopsis and usage().emaste2010-02-101-1/+1
| | | | Submitted by: ru
* Allow -o as a synonym for -s, for compatibility with other systems.emaste2010-01-261-1/+2
| | | | | | | Using -s is preferred, but some existing scripts and makefiles expect to get the system name from uname -o. Reviewed by: imp
* Make the sysctlbyname stuff look like the 2-level MIB stuff. Thisjmallett2003-07-011-0/+1
| | | | | | | | 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.
* Add sysctlbyname(3) support, and use that for uname -i, in preparation forjmallett2003-06-091-1/+13
| | | | | replacing the committed static OID version with a string-based OID_AUTO version.
* Make kernel identification (`ident' in the config(8) driver) available tojmallett2003-06-091-4/+14
| | | | | | | | | 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@
* Use some macro evil to create the functions for using sysctl(3) to get eachjmallett2002-09-231-83/+38
| | | | | | | | 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
* Check to see if we should print a space, rather than using the annoyingjmallett2002-09-231-12/+12
| | | | | | prefix methodology. Adjust nearby style. Sponsored by: Bright Path Solutions
* Mostly rewrite the flag handling of uname(1) to be overridable, such as:jmallett2002-09-181-69/+161
| | | | | | | | | freefall% uname -s FreeBSD freefall% env UNAME_s=Linnex ./uname -s Linnex MFC after: 1 month
* ANSIify function definitions.dwmalone2002-09-041-4/+2
| | | | | | | | | 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
* remove __Pimp2002-03-221-1/+1
|
* 'uname -p' prints the value of hw.machine_arch instead of hw.machine.nyan2002-01-141-5/+17
| | | | | | Reviewed by: imp No response from: -arch MFC after: 3 weeks
* WARNS=2 fixes, use __FBSDID().markm2001-12-111-5/+10
|
* Fixed printf format errors.bde1998-07-061-5/+5
|
* Add a -p option which is the same as the -m option but providedsteve1998-02-241-1/+2
| | | | | | for SVR4 compatibility. PR: 5826
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Import some parts of CSRG 4.4BSD-Lite2 usr.bin sources to fix tree build.peter1997-03-111-1/+2
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+162
OpenPOWER on IntegriCloud