Fork me on GitHub

root/include/fiwix/utsname.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /* Copyright (C) 1991, 1992, 1994, 1996 Free Software Foundation, Inc.
   2    This file is part of the GNU C Library.
   3 
   4    The GNU C Library is free software; you can redistribute it and/or
   5    modify it under the terms of the GNU Library General Public License as
   6    published by the Free Software Foundation; either version 2 of the
   7    License, or (at your option) any later version.
   8 
   9    The GNU C Library is distributed in the hope that it will be useful,
  10    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12    Library General Public License for more details.
  13 
  14    You should have received a copy of the GNU Library General Public
  15    License along with the GNU C Library; see the file COPYING.LIB.  If not,
  16    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17    Boston, MA 02111-1307, USA.  */
  18 
  19 /*
  20  *      POSIX Standard: 4.4 System Identification       <fiwix/utsname.h>
  21  */
  22 
  23 #ifndef _FIWIX_UTSNAME_H
  24 #define _FIWIX_UTSNAME_H
  25 
  26 #define _OLD_UTSNAME_LENGTH     9
  27 #define _UTSNAME_LENGTH         65
  28 
  29 #ifndef _UTSNAME_NODENAME_LENGTH
  30 #define _UTSNAME_NODENAME_LENGTH _UTSNAME_LENGTH
  31 #endif
  32 
  33 /* Very OLD structure describing the system and machine.  */
  34 struct oldold_utsname
  35 {
  36     char sysname[_OLD_UTSNAME_LENGTH];
  37     char nodename[_OLD_UTSNAME_LENGTH];
  38     char release[_OLD_UTSNAME_LENGTH];
  39     char version[_OLD_UTSNAME_LENGTH];
  40     char machine[_OLD_UTSNAME_LENGTH];
  41 };
  42 
  43 /* OLD structure describing the system and machine.  */
  44 struct old_utsname
  45 {
  46     char sysname[_UTSNAME_LENGTH];
  47     char nodename[_UTSNAME_NODENAME_LENGTH];
  48     char release[_UTSNAME_LENGTH];
  49     char version[_UTSNAME_LENGTH];
  50     char machine[_UTSNAME_LENGTH];
  51 };
  52 
  53 /* NEW structure describing the system and machine.  */
  54 struct new_utsname
  55 {
  56     /* Name of the implementation of the operating system.  */
  57     char sysname[_UTSNAME_LENGTH];
  58 
  59     /* Name of this node on the network.  */
  60     char nodename[_UTSNAME_NODENAME_LENGTH];
  61 
  62     /* Current release level of this implementation.  */
  63     char release[_UTSNAME_LENGTH];
  64     /* Current version level of this release.  */
  65     char version[_UTSNAME_LENGTH];
  66 
  67     /* Name of the hardware type the system is running on.  */
  68     char machine[_UTSNAME_LENGTH];
  69     char domainname[_UTSNAME_LENGTH];
  70 };
  71 
  72 extern struct new_utsname sys_utsname;
  73 extern char UTS_MACHINE[_UTSNAME_LENGTH];
  74 
  75 #endif /* _FIWIX_UTSNAME_H */

/* [previous][next][first][last][top][bottom][index][help] */