UNAME(2)

NAME
uname - return system information.

SYNOPSIS
#include <sys/utsname.h>
#include <unistd.h>
int uname(struct utsname *buf);

DESCRIPTION
uname() returns system information in buf. The utsname struct is as defined in /usr/include/sys/utsname.h :
struct utsname {
char sysname[9];
char nodename[MAXHOSTNAMELEN+1];
char release[9];
char version[9];
char machine[9];
};

0 is returned on success, a negative value on error.

ERRORS
-ERROR is returned if buf is null.

FILES
linux/kernel/sys.c
/usr/include/linux/sys.h
/usr/include/unistd.h

SEE ALSO
sethostname(2)

BUGS
release, version, machine, sysname, etc are hard coded into the utsname structure and should probably be constants in config.h.