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

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



NAME    [Toc]    [Back]

     uname - get system identification

SYNOPSIS    [Toc]    [Back]

     #include <sys/utsname.h>

     uname(struct utsname *name);

DESCRIPTION    [Toc]    [Back]

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

     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 function sysctl(3).

SEE ALSO    [Toc]    [Back]

     uname(1), sysctl(3)

STANDARDS    [Toc]    [Back]

     The  uname()  function  conforms  to  IEEE  Std  1003.1-1988

HISTORY    [Toc]    [Back]

     The uname() function first appeared in 4.4BSD.

OpenBSD      3.6                          January     4,     1994
[ 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