summaryrefslogtreecommitdiff
path: root/minix/man/man2/uname.2
blob: e688126eed48edb8f3cf7438071ae2fe614931f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.TH UNAME 2
.SH NAME
uname \- get system info
.SH SYNOPSIS
.ft B
.nf
#include <sys/utsname.h>

int uname(struct utsname *name)
.fi
.ft P
.SH DESCRIPTION
.B Uname()
fills a struct utsname with system information.  This structure is described
in <sys/utsname.h> as follows:
.PP
.nf
.ta +4n +6n +25n
struct utsname {
	char	sysname[15+1];		/* System name */
	char	nodename[255+1];	/* Node/Network name */
	char	release[11+1];		/* O.S. release */
	char	version[7+1];		/* O.S. version */
	char	machine[11+1];		/* Machine hardware */
	char	arch[11+1];		/* Architecture */
};
.fi
.PP
The strings are always null terminated, and may be of a different length then
shown here.  The first five are required by \s-2POSIX\s+2, the last is
MINIX 3 specific.
.SH "SEE ALSO"
.BR uname (1).
.SH AUTHOR
Kees J. Bot (kjb@cs.vu.nl)