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

  man pages->Tru64 Unix man pages -> uname (2)              



NAME    [Toc]    [Back]

       uname - Get the name of the current system

SYNOPSIS    [Toc]    [Back]

       #include <sys/utsname.h>

       int uname(
               struct utsname *name );

STANDARDS    [Toc]    [Back]

       Interfaces  documented  on  this reference page conform to
       industry standards as follows:

       uname(): XSH4.0, XSH4.2, XSH5.0

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

PARAMETERS    [Toc]    [Back]

       Points to a utsname structure.

DESCRIPTION    [Toc]    [Back]

       The  uname()  function  stores information identifying the
       current system in the structure pointed  to  by  the  name

       The  uname() function uses the utsname structure, which is
       defined in the <sys/utsname.h> file and contains the  following

       char sysname[_SYS_NMLN];         char nodename[_SYS_NMLN];
       char release[_SYS_NMLN];          char version[_SYS_NMLN];
       char machine[_SYS_NMLN];

       The  uname()  function returns a null-terminated character
       string naming the current system in the sysname  character
       array.  The nodename array contains the name that the system
 is known by on a communications network.  The  release
       and  version  arrays  further  identify  the  system.  The
       machine array identifies the CPU hardware being used.

RETURN VALUES    [Toc]    [Back]

       Upon  successful  completion,  a  nonnegative   value   is
       returned.  Otherwise,  -1  is returned and errno is set to
       indicate the error.

ERRORS    [Toc]    [Back]

       If the uname() function fails, errno may  be  set  to  the
       following  value:  [Tru64 UNIX]  The name parameter points
       outside of the process address space.

SEE ALSO    [Toc]    [Back]

       Commands: uname(1)

       Standards: standards(5)

[ Back ]
 Similar pages
Name OS Title
uname IRIX get name of current UNIX system
hostname FreeBSD set or print name of current host system
uname IRIX identify the current IRIX system
hostname OpenBSD set or print name of current host system
getclock Tru64 Get current value of system-wide clock
domainname Tru64 display or set the name of the current NIS domain for this system
hostname IRIX set or print name of current host system
hostname HP-UX set or display name of current host system
runlevel Linux find the current and previous system runlevel.
hostname Tru64 Sets or displays the name of the current host system
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service