Manpages

Manpage of UNAME

UNAME

Section: Linux Programmer's Manual (2)
Updated: 1993-07-24
Index
Return to Main Contents
 

NAME

uname - get name and information about current kernel  

SYNOPSIS

#include <sys/utsname.h>

int uname(struct utsname *buf);  

DESCRIPTION

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];
#endif
};
 

RETURN VALUE

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

ERRORS

EFAULT
buf is not valid.
 

CONFORMING TO

SVr4, SVID, POSIX, X/OPEN

The domainname member is a GNU extension.  

SEE ALSO

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


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
CONFORMING TO
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 17:08:36 GMT, November 07, 2024