1 /* 2 * dopid.h - This file is part of ncidd. 3 * 4 * Copyright (c) 2017-2018 5 * by John L. Chmielewski <jlc@users.sourceforge.net> 6 * 7 * ncidd is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * ncidd is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with ncidd. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 21 #ifndef _DOPID_H 22 #define _DOPID_H 23 24 #include <stdio.h> 25 #include <string.h> 26 #include <errno.h> 27 #include <sys/types.h> 28 #include <sys/stat.h> 29 #include <unistd.h> 30 #include <signal.h> 31 #include "logmsg.h" 32 33 int doPID(pid_t *pid, const char * pidfile); 34 35 extern int debug, verbose; 36 extern FILE *logptr; 37 38 #endif /* dopid.h */ 39