utsname.h 684 B

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