File:  [Research Unix] / researchv10dc / man / adm / man3 / uname.3
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.TH UNAME 3
.CT 2 sa
.SH NAME
uname \- identify machine and kernel
.SH SYNOPSIS
.nf
.B #include <utsname.h>
.PP
.B int uname(name)
.B struct utsname *name;
.fi
.SH DESCRIPTION
.I Uname
stores information identifying the current UNIX system in the
structure pointed to by
.I name.
.nf
.ft L
.ta 8n 16n
struct utsname {
	char sysname[32];
	char nodename[32];
	char release[32];
	char version[32];
};
.fi
.ft R
.PP
.I Uname
returns a null-terminated character string naming the current UNIX system
in the character array
.I sysname.
Similarly, 
.I nodename
contains the name that the system is known by on some communications network.
.I Release
and
.I version
further identify the operating system.
.SH FILES
.TP
.F /etc/whoami
.SH BUGS
Since a machine can have different names on different networks, 
.I nodename
is pretty useless.
.PP
This call is a partial simulation of one appearing in other systems.
.I Sysname
and
.I nodename
are copied from
.FR /etc/whoami ;
the other fields are meaningless.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.