1 /*
2 ** popen.h -- prototypes for pipe functions
3 */
4 /*
5 * Copyright (C) 2010, 2013, 2014, 2016, 2022, 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 (popen)
26 # undef popen
27 # undef pclose
28 # endif
29 # define popen(c, m) os_popen(c, m)
30 # define pclose(f) os_pclose(f)
31 extern FILE *os_popen( const char *, const char * );
32 extern int os_pclose( FILE * );
33 #ifdef __MINGW32__
34 # define system(c) os_system(c)
35 extern int os_system( const char * );
36 # define SIGKILL 9
37 extern int kill( int, int );
38 extern char *quote_cmd( const char * );
39 #endif /* __MINGW32__ */