Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/gen/uname.3,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libc/gen/uname.3,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.7 retrieving revision 1.11 diff -u -p -r1.7 -r1.11 --- src/lib/libc/gen/uname.3 2002/02/07 07:00:18 1.7 +++ src/lib/libc/gen/uname.3 2010/04/27 15:16:28 1.11 @@ -1,4 +1,4 @@ -.\" $NetBSD: uname.3,v 1.7 2002/02/07 07:00:18 ross Exp $ +.\" $NetBSD: uname.3,v 1.11 2010/04/27 15:16:28 jruoho Exp $ .\" .\" Copyright (c) 1994 .\" The Regents of the University of California. All rights reserved. @@ -11,11 +11,7 @@ .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors +.\" 3. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" @@ -33,7 +29,7 @@ .\" .\" @(#)uname.3 8.1 (Berkeley) 1/4/94 .\" -.Dd January 4, 1994 +.Dd April 27, 2010 .Dt UNAME 3 .Os .Sh NAME @@ -42,7 +38,7 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.Fd #include \*[Lt]sys/utsname.h\*[Gt] +.In sys/utsname.h .Ft int .Fn uname "struct utsname *name" .Sh DESCRIPTION @@ -55,24 +51,24 @@ the current system into the structure re The .Li utsname structure is defined in the -.Li \*[Lt]sys/utsname.h\*[Gt] +.In sys/utsname.h header file, and contains the following members: .Bl -tag -width nodenameXXXX -offset indent -.It sysname +.It Va sysname Name of the operating system implementation. -.It nodename +.It Va nodename Network name of this machine. -.It release +.It Va release Release level of the operating system. -.It version +.It Va version Version level of the operating system. -.It machine +.It Va machine Machine hardware platform. .El .Sh RETURN VALUES If .Nm uname -is successful, 0 is returned, otherwise, -1 is returned and +is successful, 0 is returned, otherwise, \-1 is returned and .Va errno is set appropriately. .Sh ERRORS