win32-uname.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 License
  8. * as published by the Free Software Foundation; either version 3 of
  9. * the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful, but
  12. * 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
  19. * 02110-1301 USA
  20. */
  21. #define _UTSNAME_LENGTH 65
  22. #define _UTSNAME_NODENAME_LENGTH _UTSNAME_LENGTH
  23. #define _UTSNAME_DOMAIN_LENGTH _UTSNAME_LENGTH
  24. /* Structure describing the system and machine. */
  25. struct utsname
  26. {
  27. /* Name of the implementation of the operating system. */
  28. char sysname[_UTSNAME_LENGTH];
  29. /* Name of this node on the network. */
  30. char nodename[_UTSNAME_NODENAME_LENGTH];
  31. /* Current release level of this implementation. */
  32. char release[_UTSNAME_LENGTH];
  33. /* Current version level of this release. */
  34. char version[_UTSNAME_LENGTH];
  35. /* Name of the hardware type the system is running on. */
  36. char machine[_UTSNAME_LENGTH];
  37. /* Name of the domain of this node on the network. */
  38. char domainname[_UTSNAME_DOMAIN_LENGTH];
  39. };
  40. int uname (struct utsname * uts);
  41. #endif /* SCM_WIN32_UNAME_H */