The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group


sys/utsname.h - system name structure


#include <sys/utsname.h>


The <sys/utsname.h> header defines structure utsname, which includes at least the following members:

char  sysname[]  name of this implementation of the operating system
char  nodename[] name of this node within an implementation-dependent
                 communications network
char  release[]  current release level of this implementation
char  version[]  current version level of this release
char  machine[]  name of the hardware type on which the system is running

The character arrays are of unspecified size, but the data stored in them is terminated by a null byte.

The following is declared as a function and may also be defined as a macro.

int uname(struct utsname *);







UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]