| Line | |
|---|
| 1 | .TH UNAME 2
|
|---|
| 2 | .SH NAME
|
|---|
| 3 | uname \- get system info
|
|---|
| 4 | .SH SYNOPSIS
|
|---|
| 5 | .ft B
|
|---|
| 6 | .nf
|
|---|
| 7 | #include <sys/utsname.h>
|
|---|
| 8 |
|
|---|
| 9 | int uname(struct utsname *name)
|
|---|
| 10 | .fi
|
|---|
| 11 | .ft P
|
|---|
| 12 | .SH DESCRIPTION
|
|---|
| 13 | .B Uname()
|
|---|
| 14 | fills a struct utsname with system information. This structure is described
|
|---|
| 15 | in <sys/utsname.h> as follows:
|
|---|
| 16 | .PP
|
|---|
| 17 | .nf
|
|---|
| 18 | .ta +4n +6n +25n
|
|---|
| 19 | struct utsname {
|
|---|
| 20 | char sysname[15+1]; /* System name */
|
|---|
| 21 | char nodename[255+1]; /* Node/Network name */
|
|---|
| 22 | char release[11+1]; /* O.S. release */
|
|---|
| 23 | char version[7+1]; /* O.S. version */
|
|---|
| 24 | char machine[11+1]; /* Machine hardware */
|
|---|
| 25 | char arch[11+1]; /* Architecture */
|
|---|
| 26 | };
|
|---|
| 27 | .fi
|
|---|
| 28 | .PP
|
|---|
| 29 | The strings are always null terminated, and may be of a different length then
|
|---|
| 30 | shown here. The first five are required by \s-2POSIX\s+2, the last is
|
|---|
| 31 | MINIX 3 specific.
|
|---|
| 32 | .SH "SEE ALSO"
|
|---|
| 33 | .BR uname (1).
|
|---|
| 34 | .SH AUTHOR
|
|---|
| 35 | Kees J. Bot (kjb@cs.vu.nl)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.