Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen Document the relationship between uname(3) and ...



details:   https://anonhg.NetBSD.org/src/rev/a66bb90d4bf3
branches:  trunk
changeset: 329941:a66bb90d4bf3
user:      apb <apb%NetBSD.org@localhost>
date:      Sat Jun 14 14:32:43 2014 +0000

description:
Document the relationship between uname(3) and sysctl(7) variables.

diffstat:

 lib/libc/gen/uname.3 |  25 +++++++++++++++++++++++--
 1 files changed, 23 insertions(+), 2 deletions(-)

diffs (54 lines):

diff -r 484962a72c75 -r a66bb90d4bf3 lib/libc/gen/uname.3
--- a/lib/libc/gen/uname.3      Sat Jun 14 13:09:37 2014 +0000
+++ b/lib/libc/gen/uname.3      Sat Jun 14 14:32:43 2014 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: uname.3,v 1.12 2011/03/30 16:41:00 jruoho Exp $
+.\"    $NetBSD: uname.3,v 1.13 2014/06/14 14:32:43 apb Exp $
 .\"
 .\" Copyright (c) 1994
 .\"    The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"    @(#)uname.3     8.1 (Berkeley) 1/4/94
 .\"
-.Dd March 30, 2011
+.Dd June 14, 2014
 .Dt UNAME 3
 .Os
 .Sh NAME
@@ -56,14 +56,35 @@
 .Bl -tag -width nodenameXXXX -offset indent
 .It Va sysname
 Name of the operating system implementation.
+Equivalent to the
+.Xr sysctl 7
+.Va kern.ostype
+variable.
 .It Va nodename
 Network name of this machine.
+Equivalent to the
+.Xr sysctl 7
+.Va kern.hostname
+variable.
 .It Va release
 Release level of the operating system.
+Equivalent to the
+.Xr sysctl 7
+.Va kern.osrelease
+variable.
 .It Va version
 Version level of the operating system.
+Equivalent to the
+.Xr sysctl 7
+.Va kern.version
+variable, except that very long values are truncated,
+and newlines are converted to spaces.
 .It Va machine
 Machine hardware platform.
+Equivalent to the
+.Xr sysctl 7
+.Va hw.machine
+variable.
 .El
 .Sh RETURN VALUES
 If



Home | Main Index | Thread Index | Old Index