UNAME(3) Library Routines UNAME(3)
uname - get system identification
int uname (struct utsname *name);
The uname() function stores null-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:
Name of the operating system implementation.
Network name of this machine.
Release level of the operating system.
Version level of the operating system.
Machine hardware platform.
If uname() is successful, 0 is returned, otherwise, -1 is returned and
errno is set appropriately.
The inclusion of the nodename member in the utsname structure does not
imply that it is sufficient information for interfacing to communica-
The uname() function conforms to IEEE Std1003.1-1988 (''POSIX'').
The uname() function first appeared in 4.4BSD.
GNO January 22, 1998 UNAME(3)
Man(1) output converted with