utsname.h 372 B

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