|
|
1.1 ! root 1: .TH UNAME 3 ! 2: .CT 2 sa ! 3: .SH NAME ! 4: uname \- identify machine and kernel ! 5: .SH SYNOPSIS ! 6: .nf ! 7: .B #include <utsname.h> ! 8: .PP ! 9: .B int uname(name) ! 10: .B struct utsname *name; ! 11: .fi ! 12: .SH DESCRIPTION ! 13: .I Uname ! 14: stores information identifying the current UNIX system in the ! 15: structure pointed to by ! 16: .I name. ! 17: .nf ! 18: .ft L ! 19: .ta 8n 16n ! 20: struct utsname { ! 21: char sysname[32]; ! 22: char nodename[32]; ! 23: char release[32]; ! 24: char version[32]; ! 25: }; ! 26: .fi ! 27: .ft R ! 28: .PP ! 29: .I Uname ! 30: returns a null-terminated character string naming the current UNIX system ! 31: in the character array ! 32: .I sysname. ! 33: Similarly, ! 34: .I nodename ! 35: contains the name that the system is known by on some communications network. ! 36: .I Release ! 37: and ! 38: .I version ! 39: further identify the operating system. ! 40: .SH FILES ! 41: .TP ! 42: .F /etc/whoami ! 43: .SH BUGS ! 44: Since a machine can have different names on different networks, ! 45: .I nodename ! 46: is pretty useless. ! 47: .PP ! 48: This call is a partial simulation of one appearing in other systems. ! 49: .I Sysname ! 50: and ! 51: .I nodename ! 52: are copied from ! 53: .FR /etc/whoami ; ! 54: the other fields are meaningless.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.