Module Name:    src
Committed By:   apb
Date:           Sat Jun 14 14:32:44 UTC 2014

Modified Files:
        src/lib/libc/gen: uname.3

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


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/gen/uname.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/gen/uname.3
diff -u src/lib/libc/gen/uname.3:1.12 src/lib/libc/gen/uname.3:1.13
--- src/lib/libc/gen/uname.3:1.12	Wed Mar 30 16:41:00 2011
+++ src/lib/libc/gen/uname.3	Sat Jun 14 14:32:43 2014
@@ -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 @@ header file, and contains the following 
 .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

Reply via email to