Manual Page Result
0
Command: uname | Section: 3 | Source: UNIX v10 | File: uname.3
UNAME(3) Library Functions Manual UNAME(3)
NAME
uname - identify machine and kernel
SYNOPSIS
#include <utsname.h>
int uname(name)
struct utsname *name;
DESCRIPTION
Uname stores information identifying the current UNIX system in the
structure pointed to by name.
struct utsname {
char sysname[32];
char nodename[32];
char release[32];
char version[32];
};
Uname returns a null-terminated character string naming the current
UNIX system in the character array sysname. Similarly, nodename con-
tains the name that the system is known by on some communications net-
work. Release and version further identify the operating system.
FILES
BUGS Since a machine can have different names on different networks,
nodename is pretty useless.
This call is a partial simulation of one appearing in other systems.
Sysname and nodename are copied from the other fields are meaningless.
UNAME(3)