1 /* 2 ** popen.h -- prototypes for pipe functions 3 */ 4 /* 5 * Copyright (C) 2010, 2013, 2014, 2016, the Free Software Foundation, Inc. 6 * 7 * This file is part of GAWK, the GNU implementation of the 8 * AWK Programming Language. 9 * 10 * GAWK is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License as published by 12 * the Free Software Foundation; either version 3 of the License, or 13 * (at your option) any later version. 14 * 15 * GAWK is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License 21 * along with this program; if not, write to the Free Software 22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 23 */ 24 25 #if !defined (__DJGPP__) 26 # if defined (popen) 27 # undef popen 28 # undef pclose 29 # endif 30 # define popen(c, m) os_popen(c, m) 31 # define pclose(f) os_pclose(f) 32 extern FILE *os_popen( const char *, const char * ); 33 extern int os_pclose( FILE * ); 34 # ifdef __MINGW32__ 35 # define system(c) os_system(c) 36 extern int os_system( const char * ); 37 # define SIGKILL 9 38 extern int kill( int, int ); 39 extern char *quote_cmd( const char * ); 40 # endif /* __MINGW32__ */ 41 #endif /* !__DJGPP__ */ 42