Go to the previous, next section.

uname

SYNOPSIS

int uname(struct utsname *buf);

PARAMETERS

buf: [out] where to store the information.

DESCRIPTION

Retreives some information on the system. The structure utsname has the following layout:

struct utsname {
        char sysname[65];
        char nodename[65];
        char release[65];
        char version[65];
        char machine[65];
        char domainname[65];
};

RETURN VALUE

On success zero is returned. On error -1 is returned and errno is set to EFAULT.

Go to the previous, next section.