1 /* 2 Copyright 2021 Northern.tech AS 3 4 This file is part of CFEngine 3 - written and maintained by Northern.tech AS. 5 6 This program is free software; you can redistribute it and/or modify it 7 under the terms of the GNU General Public License as published by the 8 Free Software Foundation; version 3. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program; if not, write to the Free Software 17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 18 19 To the extent this program is licensed as part of the Enterprise 20 versions of CFEngine, the applicable Commercial Open Source License 21 (COSL) may apply to this file if you as a licensee so wish it. See 22 included file COSL.txt. 23 */ 24 25 #ifndef CFENGINE_SYSTYPE_H 26 #define CFENGINE_SYSTYPE_H 27 28 /*******************************************************************/ 29 30 typedef enum 31 { 32 PLATFORM_CONTEXT_UNKNOWN, 33 PLATFORM_CONTEXT_OPENVZ, /* VZ Host with vzps installed */ 34 PLATFORM_CONTEXT_HP, 35 PLATFORM_CONTEXT_AIX, 36 PLATFORM_CONTEXT_LINUX, 37 PLATFORM_CONTEXT_BUSYBOX, /* Linux-based Busybox toolset */ 38 PLATFORM_CONTEXT_SOLARIS, /* > 5.10, BSD-compatible system tools */ 39 PLATFORM_CONTEXT_SUN_SOLARIS, /* < 5.11, BSD tools in /usr/ucb */ 40 PLATFORM_CONTEXT_FREEBSD, 41 PLATFORM_CONTEXT_NETBSD, 42 PLATFORM_CONTEXT_CRAYOS, 43 PLATFORM_CONTEXT_WINDOWS_NT, /* MS-Win CygWin */ 44 PLATFORM_CONTEXT_SYSTEMV, 45 PLATFORM_CONTEXT_OPENBSD, 46 PLATFORM_CONTEXT_CFSCO, 47 PLATFORM_CONTEXT_DARWIN, /* MacOS X */ 48 PLATFORM_CONTEXT_QNX, 49 PLATFORM_CONTEXT_DRAGONFLY, 50 PLATFORM_CONTEXT_MINGW, /* MS-Win native */ 51 PLATFORM_CONTEXT_VMWARE, 52 PLATFORM_CONTEXT_ANDROID, 53 54 PLATFORM_CONTEXT_MAX /* Not an actual platform: must be last */ 55 } PlatformContext; 56 57 /*******************************************************************/ 58 59 extern PlatformContext VSYSTEMHARDCLASS; 60 extern PlatformContext VPSHARDCLASS; /* used to define which ps command to use*/ 61 extern const char *const CLASSTEXT[PLATFORM_CONTEXT_MAX]; 62 extern const char *const VPSCOMM[PLATFORM_CONTEXT_MAX]; 63 extern const char *const VPSOPTS[PLATFORM_CONTEXT_MAX]; 64 extern const char *const VFSTAB[PLATFORM_CONTEXT_MAX]; 65 66 /*******************************************************************/ 67 68 #endif /* CFENGINE_SYSTYPE_H */ 69