utsname.h 554 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2023-03-27 xqyjlj add uname
  9. */
  10. #ifndef MLIBC_SYS_UTSNAME_H__
  11. #define MLIBC_SYS_UTSNAME_H__
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. struct utsname
  16. {
  17. char sysname[65];
  18. char nodename[65];
  19. char release[65];
  20. char version[65];
  21. char machine[65];
  22. char domainname[65];
  23. };
  24. int uname(struct utsname *);
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif /* MLIBC_SYS_UTSNAME_H__ */