| 1 | #ifndef	_SYS_UTSNAME_H |
| 2 | #define	_SYS_UTSNAME_H |
| 3 | |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
| 8 | #include <features.h> |
| 9 | |
| 10 | struct utsname { |
| 11 | 	char sysname[65]; |
| 12 | 	char nodename[65]; |
| 13 | 	char release[65]; |
| 14 | 	char version[65]; |
| 15 | 	char machine[65]; |
| 16 | #ifdef _GNU_SOURCE |
| 17 | 	char domainname[65]; |
| 18 | #else |
| 19 | 	char __domainname[65]; |
| 20 | #endif |
| 21 | }; |
| 22 | |
| 23 | int uname (struct utsname *); |
| 24 | |
| 25 | #ifdef __cplusplus |
| 26 | } |
| 27 | #endif |
| 28 | |
| 29 | #endif |