|
|
1.1.1.2 ! root 1: #ifndef _SYS_UTSNAME_H ! 2: #define _SYS_UTSNAME_H 1 1.1 root 3: 1.1.1.2 ! root 4: /* Length of the entries in `struct utsname' is 65. */ ! 5: #define _UTSNAME_LENGTH 65 ! 6: #define _UTSNAME_NODENAME_LENGTH _UTSNAME_LENGTH ! 7: ! 8: /* Linux provides as additional information in the `struct utsname' ! 9: the name of the current domain. Define _UTSNAME_DOMAIN_LENGTH ! 10: to a value != 0 to activate this entry. */ ! 11: #define _UTSNAME_DOMAIN_LENGTH _UTSNAME_LENGTH 1.1 root 12: 13: struct utsname { 1.1.1.2 ! root 14: /* Name of the implementation of the operating system. */ ! 15: char sysname[_UTSNAME_LENGTH]; ! 16: ! 17: /* Name of this node on the network. */ ! 18: char nodename[_UTSNAME_NODENAME_LENGTH]; ! 19: ! 20: /* Current release level of this implementation. */ ! 21: char release[_UTSNAME_LENGTH]; ! 22: /* Current version level of this release. */ ! 23: char version[_UTSNAME_LENGTH]; ! 24: ! 25: /* Name of the hardware type the system is running on. */ ! 26: char machine[_UTSNAME_LENGTH]; ! 27: ! 28: /* Name of the domain of this node on the network. */ ! 29: char domainname[_UTSNAME_DOMAIN_LENGTH]; 1.1 root 30: }; 31: 1.1.1.2 ! root 32: extern int uname (struct utsname *__name); ! 33: 1.1 root 34: 35: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.