Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

uname(1)




uname(2) uname(2)
NAME uname - get name of current system SYNOPSIS #include <sys/utsname.h> int uname(name) struct utsname *name; DESCRIPTION uname stores information identifying the current system in the structure referenced by name. uname uses the structure defined in <sys/utsname.h>: struct utsname { char sysname[9]; char nodename[9]; char release[9]; char version[9]; char machine[9]; }; extern struct utsname utsname; uname returns a null-terminated character string naming the current system in the character array sysname. Similarly, nodename contains the name by which the system is known on a communications network. release and version further identify the operating system. machine contains a standard name that identifies the hardware that the system is running on. STATUS MESSAGES AND VALUES Upon successful completion, a non-negative value is returned. Otherwise, -1 is returned and errno is set to indicate the error. The uname program will fail if the following is true: EFAULT name points to an invalid address. SEE ALSO uname(1) in A/UX Command Reference January 1992 1

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026