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

  man pages->IRIX man pages -> standard/uname (2)              
Title
Content
Arch
Section
 

Contents


uname(2)							      uname(2)


NAME    [Toc]    [Back]

     uname - get name of current UNIX system

SYNOPSIS    [Toc]    [Back]

     #include <sys/utsname.h>

     int uname(struct utsname *name);

DESCRIPTION    [Toc]    [Back]

     uname stores information identifying the current UNIX system in the
     structure pointed to by name.

     uname uses	the structure utsname defined in <sys/utsname.h> whose members
     are:

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

     uname returns a null-terminated character string naming the current IRIX
     system in the character array sysname.  Similarly,	nodename contains the
     name that the system is known by on a communications network.  release
     and version further identify the operating	system release and version.
     release has one of	the following forms:  m.n or m.n.a where m is the
     major release number, n is	the minor release number and a is the
     (optional)	maintenance level of the release; e.g.	3.2 or 3.2.1.  version
     contains the date and time	that the operating system was generated.  It
     has the form:  mmddhhmm.

     machine contains the type of CPU board that the IRIX system is running
     on, e.g.  IP6.

     EFAULT	    uname fails	if name	points to an invalid address.

FILES    [Toc]    [Back]

     Message catalog:  uxcore.abi

SEE ALSO    [Toc]    [Back]

      
      
     uname(1), gethostname(2)

DIAGNOSTICS    [Toc]    [Back]

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


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
uupick HP-UX public UNIX system to UNIX system file copy
uuto HP-UX public UNIX system to UNIX system file copy
uuto IRIX public UNIX-to-UNIX system file copy
uux IRIX UNIX-to-UNIX system command execution
uux HP-UX UNIX system to UNIX system command execution
uucp IRIX UNIX-to-UNIX system copy
uuname HP-UX UNIX system to UNIX system copy
uulog HP-UX UNIX system to UNIX system copy
uutry HP-UX UNIX system to UNIX system copy
uucp HP-UX UNIX system to UNIX system copy
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service