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

  man pages->Linux man pages -> uname (2)              



NAME    [Toc]    [Back]

       uname - get name and information about current kernel

SYNOPSIS    [Toc]    [Back]

       #include <sys/utsname.h>

       int uname(struct utsname *buf);

DESCRIPTION    [Toc]    [Back]

       uname  returns  system  information in the structure pointed to by buf.
       The utsname struct is as defined in <sys/utsname.h>:
	  struct utsname {
		      char sysname[SYS_NMLN];
		      char nodename[SYS_NMLN];
		      char release[SYS_NMLN];
		      char version[SYS_NMLN];
		      char machine[SYS_NMLN];
	  #ifdef _GNU_SOURCE
		      char domainname[SYS_NMLN];

RETURN VALUE    [Toc]    [Back]

       On success, zero is returned.  On error, -1 is returned, and  errno  is
       set appropriately.

ERRORS    [Toc]    [Back]

       EFAULT buf is not valid.

CONFORMING TO    [Toc]    [Back]

       SVr4, SVID, POSIX, X/OPEN

       The domainname member is a GNU extension.

SEE ALSO    [Toc]    [Back]

       uname(1), getdomainname(2), gethostname(2)

Linux 0.99.11			  1993-07-24			      UNAME(2)
[ Back ]
 Similar pages
Name OS Title
kmpath HP-UX retrieve kernel name and associated kernel configuration information
glgetconvolutionfilterext IRIX get current 1D or 2D convolution filter kernel
glgetconvolutionfilter IRIX get current 1D or 2D convolution filter kernel
select_enqueue Tru64 General: Adds the current kernel thread
mpsleep Tru64 General: Blocks the current kernel thread
thread_set_timeout Tru64 General: Sets a timer for the current kernel thread
assert_wait_mesg Tru64 General: Asserts that the current kernel thread is about to block (sleep)
thread_block Tru64 General: Blocks (puts to sleep) the current kernel thread
show HP-UX Displays current information about the DTS entity
getdomainna HP-UX get/set name of current Network Information Service domain
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service