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

  man pages->FreeBSD 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]

     The uname() function returns the value 0 if successful; otherwise the
     value -1 is returned and the global variable errno is set to indicate the

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 IEEE Std 1003.1-1988 (``POSIX.1'').

HISTORY    [Toc]    [Back]

     The uname() function first appeared in 4.4BSD.

FreeBSD 5.2.1			January 4, 1994 		 FreeBSD 5.2.1
[ 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