*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->NetBSD man pages -> uname (3)              



NAME    [Toc]    [Back]

     uname - get system identification

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <sys/utsname.h>

     uname(struct utsname *name);

DESCRIPTION    [Toc]    [Back]

     The uname() function stores nul-terminated strings of information identifying
 the current system into the structure referenced by name.

     The utsname structure is defined in the <sys/utsname.h> header file, and
     contains the following members:

           sysname       Name of the operating system implementation.

           nodename      Network name of this machine.

           release       Release level of the operating system.

           version       Version level of the operating system.

           machine       Machine hardware platform.

RETURN VALUES    [Toc]    [Back]

     If uname is successful, 0 is returned, otherwise, -1 is returned and
     errno is set appropriately.

ERRORS    [Toc]    [Back]

     The uname() function may fail and set errno for any of the errors specified
 for the library functions sysctl(3).

SEE ALSO    [Toc]    [Back]

     uname(1), sysctl(3)

STANDARDS    [Toc]    [Back]

     The uname() function conforms to ISO/IEC 9945-1:1990 (``POSIX.1'').

HISTORY    [Toc]    [Back]

     The uname function first appeared in 4.4BSD.

BSD                             January 4, 1994                            BSD
[ Back ]
 Similar pages
Name OS Title
sysinfo IRIX print system identification
sys_id IRIX system identification (hostname) file
geteuid NetBSD get user identification
getuid FreeBSD get user identification
getpid Linux get process identification
geteuid FreeBSD get user identification
model HP-UX HP-UX machine identification
getuid OpenBSD get user identification
getuid NetBSD get user identification
geteuid OpenBSD get user identification
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service