win32-uname.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* classes: h_files */
  2. #ifndef SCM_WIN32_UNAME_H
  3. #define SCM_WIN32_UNAME_H
  4. /* Copyright (C) 2001, 2006 Free Software Foundation, Inc.
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  19. */
  20. #define _UTSNAME_LENGTH 65
  21. #define _UTSNAME_NODENAME_LENGTH _UTSNAME_LENGTH
  22. #define _UTSNAME_DOMAIN_LENGTH _UTSNAME_LENGTH
  23. /* Structure describing the system and machine. */
  24. struct utsname
  25. {
  26. /* Name of the implementation of the operating system. */
  27. char sysname[_UTSNAME_LENGTH];
  28. /* Name of this node on the network. */
  29. char nodename[_UTSNAME_NODENAME_LENGTH];
  30. /* Current release level of this implementation. */
  31. char release[_UTSNAME_LENGTH];
  32. /* Current version level of this release. */
  33. char version[_UTSNAME_LENGTH];
  34. /* Name of the hardware type the system is running on. */
  35. char machine[_UTSNAME_LENGTH];
  36. /* Name of the domain of this node on the network. */
  37. char domainname[_UTSNAME_DOMAIN_LENGTH];
  38. };
  39. int uname (struct utsname * uts);
  40. #endif /* SCM_WIN32_UNAME_H */