1 /* GNU make's jobserver related functionality. 2 Copyright (C) 2022 Free Software Foundation, Inc. 3 4 This file is part of GCC. 5 6 GCC is free software; you can redistribute it and/or modify it under 7 the terms of the GNU General Public License as published by the Free 8 Software Foundation; either version 3, or (at your option) any later 9 version. 10 11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY 12 WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with GCC; see the file COPYING3. If not see 18 <http://www.gnu.org/licenses/>. 19 20 See dbgcnt.def for usage information. */ 21 22 #ifndef GCC_JOBSERVER_H 23 #define GCC_JOBSERVER_H 24 25 using namespace std; 26 27 struct jobserver_info 28 { 29 /* Default constructor. */ 30 jobserver_info (); 31 32 /* Error message if there is a problem. */ 33 string error_msg = ""; 34 /* Skipped MAKEFLAGS where --jobserver-auth is skipped. */ 35 string skipped_makeflags = ""; 36 /* File descriptor for reading used for jobserver communication. */ 37 int rfd = -1; 38 /* File descriptor for writing used for jobserver communication. */ 39 int wfd = -1; 40 /* Named pipe path. */ 41 string pipe_path = ""; 42 /* Return true if jobserver is active. */ 43 bool is_active = false; 44 }; 45 46 #endif /* GCC_JOBSERVER_H */ 47