"Fossies" - the Fresh Open Source Software Archive

Member "usr/include/sys/utsname.h" (19 Aug 2019, 665 Bytes) of package /windows/misc/cygwin-20190819-x86.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /* sys/utsname.h
    2 
    3 This file is part of Cygwin.
    4 
    5 This software is a copyrighted work licensed under the terms of the
    6 Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
    7 details. */
    8 
    9 #ifndef _SYS_UTSNAME_H
   10 #define _SYS_UTSNAME_H
   11 
   12 #ifdef __cplusplus
   13 extern "C" {
   14 #endif
   15 
   16 #define _UTSNAME_LENGTH 65
   17 
   18 struct utsname
   19 {
   20   char sysname[_UTSNAME_LENGTH];
   21   char nodename[_UTSNAME_LENGTH];
   22   char release[_UTSNAME_LENGTH];
   23   char version[_UTSNAME_LENGTH];
   24   char machine[_UTSNAME_LENGTH];
   25 #if __GNU_VISIBLE
   26   char domainname[_UTSNAME_LENGTH];
   27 #else
   28   char __domainname[_UTSNAME_LENGTH];
   29 #endif
   30 };
   31 
   32 int uname (struct utsname *);
   33 
   34 #ifdef __cplusplus
   35 }
   36 #endif
   37 
   38 #endif