utsname.h 621 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _UAPI_LINUX_UTSNAME_H
  2. #define _UAPI_LINUX_UTSNAME_H
  3. #define __OLD_UTS_LEN 8
  4. struct oldold_utsname {
  5. char sysname[9];
  6. char nodename[9];
  7. char release[9];
  8. char version[9];
  9. char machine[9];
  10. };
  11. #define __NEW_UTS_LEN 64
  12. struct old_utsname {
  13. char sysname[65];
  14. char nodename[65];
  15. char release[65];
  16. char version[65];
  17. char machine[65];
  18. };
  19. struct new_utsname {
  20. char sysname[__NEW_UTS_LEN + 1];
  21. char nodename[__NEW_UTS_LEN + 1];
  22. char release[__NEW_UTS_LEN + 1];
  23. char version[__NEW_UTS_LEN + 1];
  24. char machine[__NEW_UTS_LEN + 1];
  25. char domainname[__NEW_UTS_LEN + 1];
  26. };
  27. #endif /* _UAPI_LINUX_UTSNAME_H */