01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

UNAME ( 2 ) UNAME (2)<br />

NAME<br />

uname - get name of current UNIX system<br />

SYNOPSIS<br />

#include <br />

int uname (name)<br />

struct utsname •name;<br />

DESCRIPTION<br />

Uname stores information identifying the current UNIX system in<br />

the structure pointed to by name .<br />

Uname uses the structure defined in whose<br />

members are:<br />

char sysname[9];<br />

char nodename[9];<br />

char release [ 9] ;<br />

char version[9];<br />

char machine[9];<br />

Uname returns a null-terminated character string naming the<br />

current UNIX system in the character array sysname. Similarly,<br />

nodename contains the name that the system is known by on a<br />

communications network. Release and version further identify<br />

the operating system. Machine contains a standard name that<br />

identifies the hardware that UNIX is running on.<br />

Uname will fail if name points to an invalid address. [EFAULT]<br />

RETURN VALUE<br />

Upon successful completion, a non-negative value is returned.<br />

Otherwise, -1 is returned and errno is set to indicate the error.<br />

SEE ALSO<br />

uname( 1).<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!