[BACK]Return to uname.3 CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Annotation of src/lib/libc/gen/uname.3, Revision 1.13

1.13    ! apb         1: .\"    $NetBSD: uname.3,v 1.12 2011/03/30 16:41:00 jruoho Exp $
1.2       cgd         2: .\"
1.1       cgd         3: .\" Copyright (c) 1994
                      4: .\"    The Regents of the University of California.  All rights reserved.
                      5: .\"
                      6: .\" Redistribution and use in source and binary forms, with or without
                      7: .\" modification, are permitted provided that the following conditions
                      8: .\" are met:
                      9: .\" 1. Redistributions of source code must retain the above copyright
                     10: .\"    notice, this list of conditions and the following disclaimer.
                     11: .\" 2. Redistributions in binary form must reproduce the above copyright
                     12: .\"    notice, this list of conditions and the following disclaimer in the
                     13: .\"    documentation and/or other materials provided with the distribution.
1.10      agc        14: .\" 3. Neither the name of the University nor the names of its contributors
1.1       cgd        15: .\"    may be used to endorse or promote products derived from this software
                     16: .\"    without specific prior written permission.
                     17: .\"
                     18: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     19: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     20: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     21: .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     22: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     23: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     24: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     25: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     26: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     27: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     28: .\" SUCH DAMAGE.
                     29: .\"
                     30: .\"    @(#)uname.3     8.1 (Berkeley) 1/4/94
                     31: .\"
1.13    ! apb        32: .Dd June 14, 2014
1.1       cgd        33: .Dt UNAME 3
                     34: .Os
                     35: .Sh NAME
                     36: .Nm uname
                     37: .Nd get system identification
1.6       perry      38: .Sh LIBRARY
                     39: .Lb libc
1.1       cgd        40: .Sh SYNOPSIS
1.9       wiz        41: .In sys/utsname.h
1.1       cgd        42: .Ft int
                     43: .Fn uname "struct utsname *name"
                     44: .Sh DESCRIPTION
                     45: The
                     46: .Fn uname
                     47: function stores nul-terminated strings of information identifying
                     48: the current system into the structure referenced by
                     49: .Fa name .
                     50: .Pp
                     51: The
1.12      jruoho     52: .Em utsname
1.1       cgd        53: structure is defined in the
1.11      jruoho     54: .In sys/utsname.h
1.1       cgd        55: header file, and contains the following members:
                     56: .Bl -tag -width nodenameXXXX -offset indent
1.11      jruoho     57: .It Va sysname
1.1       cgd        58: Name of the operating system implementation.
1.13    ! apb        59: Equivalent to the
        !            60: .Xr sysctl 7
        !            61: .Va kern.ostype
        !            62: variable.
1.11      jruoho     63: .It Va nodename
1.1       cgd        64: Network name of this machine.
1.13    ! apb        65: Equivalent to the
        !            66: .Xr sysctl 7
        !            67: .Va kern.hostname
        !            68: variable.
1.11      jruoho     69: .It Va release
1.1       cgd        70: Release level of the operating system.
1.13    ! apb        71: Equivalent to the
        !            72: .Xr sysctl 7
        !            73: .Va kern.osrelease
        !            74: variable.
1.11      jruoho     75: .It Va version
1.1       cgd        76: Version level of the operating system.
1.13    ! apb        77: Equivalent to the
        !            78: .Xr sysctl 7
        !            79: .Va kern.version
        !            80: variable, except that very long values are truncated,
        !            81: and newlines are converted to spaces.
1.11      jruoho     82: .It Va machine
1.1       cgd        83: Machine hardware platform.
1.13    ! apb        84: Equivalent to the
        !            85: .Xr sysctl 7
        !            86: .Va hw.machine
        !            87: variable.
1.1       cgd        88: .El
                     89: .Sh RETURN VALUES
                     90: If
                     91: .Nm uname
1.8       wiz        92: is successful, 0 is returned, otherwise, \-1 is returned and
1.1       cgd        93: .Va errno
                     94: is set appropriately.
                     95: .Sh ERRORS
                     96: The
                     97: .Fn uname
                     98: function may fail and set
                     99: .Va errno
                    100: for any of the errors specified for the library functions
                    101: .Xr sysctl 3 .
                    102: .Sh SEE ALSO
                    103: .Xr uname 1 ,
                    104: .Xr sysctl 3
                    105: .Sh STANDARDS
                    106: The
                    107: .Fn uname
                    108: function conforms to
1.4       kleink    109: .St -p1003.1-90 .
1.1       cgd       110: .Sh HISTORY
                    111: The
                    112: .Nm uname
1.5       perry     113: function first appeared in
                    114: .Bx 4.4 .

CVSweb <webmaster@jp.NetBSD.org>