Annotation of researchv10dc/man/manb/uname.3, revision 1.1.1.1

1.1       root        1: .TH UNAME 3
                      2: .SH NAME
                      3: uname \- get name of current system
                      4: .SH SYNOPSIS
                      5: .B #include <sys/utsname.h>
                      6: .PP
                      7: .B int uname (name)
                      8: .br
                      9: .B struct utsname \(**name;
                     10: .SH DESCRIPTION
                     11: .I Uname\^
                     12: stores
                     13: information identifying the current
                     14: system in the structure pointed to by
                     15: .IR name .
                     16: .PP
                     17: .I Uname\^
                     18: uses the structure
                     19: defined in \f3<sys/utsname.h>\fP whose members are:
                     20: .PP
                     21: .RS
                     22: char   sysname[9];
                     23: .br
                     24: char   nodename[9];
                     25: .br
                     26: char   release[9];
                     27: .br
                     28: char   version[9];
                     29: .RE
                     30: .PP
                     31: .I Uname\^
                     32: returns
                     33: a null-terminated character string naming the current
                     34: system in the character array
                     35: .IR sysname .
                     36: Similarly,
                     37: .I nodename\^
                     38: contains the name that the system is known by on a communications
                     39: network.
                     40: .I Release\^
                     41: and
                     42: .I version\^
                     43: further identify the operating system.
                     44: Upon successful completion, a non-negative value is returned.
                     45: .SH FILES
                     46: /etc/whoami
                     47: .SH DIAGNOSTICS
                     48: If the routine fails, \-1 is returned and
                     49: .I errno\^
                     50: is set to indicate the error.

unix.superglobalmegacorp.com

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