home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue6 / SDL.ZIP / !gcc / include / unixlib / sys / h / utsname < prev    next >
Encoding:
Text File  |  2006-09-17  |  1.5 KB  |  51 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source: /usr/local/cvsroot/gccsdk/unixlib/source/clib/sys/utsname.h,v $
  4.  * $Date: 2004/04/17 10:51:15 $
  5.  * $Revision: 1.5 $
  6.  * $State: Exp $
  7.  * $Author: nick $
  8.  *
  9.  ***************************************************************************/
  10.  
  11. /* POSIX Standard 4.4: System Identification <sys/utsname.h> */
  12.  
  13. #ifndef __SYS_UTSNAME_H
  14. #define __SYS_UTSNAME_H 1
  15.  
  16. #ifndef __UNIXLIB_FEATURES_H
  17. #include <features.h>
  18. #endif
  19.  
  20. __BEGIN_DECLS
  21.  
  22. /* Length of the entries in `struct utsname' is 65.  */
  23. #define _UTSNAME_LENGTH 65
  24.  
  25. /* Linux provides as additional information in the `struct utsname'
  26.    the name of the current domain.  Define _UTSNAME_DOMAIN_LENGTH
  27.    to a value != 0 to activate this entry.  */
  28. #define _UTSNAME_DOMAIN_LENGTH _UTSNAME_LENGTH
  29.  
  30. /* Structure describing the system and machine.  */
  31. struct utsname
  32.   {
  33.     /* Name of the implementation of the operating system.  */
  34.     char sysname[_UTSNAME_LENGTH];
  35.     /* Name of this node on the network.  */
  36.     char nodename[_UTSNAME_DOMAIN_LENGTH];
  37.     /* Current release level of this implementation.  */
  38.     char release[_UTSNAME_LENGTH];
  39.     /* Current version level of this release.  */
  40.     char version[_UTSNAME_LENGTH];
  41.     /* Name of the hardware type the system is running on.  */
  42.     char machine[_UTSNAME_LENGTH];
  43.   };
  44.  
  45. /* Put information about the system in NAME.  */
  46. extern int uname (struct utsname *__name) __THROW;
  47.  
  48. __END_DECLS
  49.  
  50. #endif
  51.