index.html (5.4): Recommend against -I options for finding the ext headers.
[official-gcc.git] / gcc / fixinc / server.h
blobc27a51eb493fbe1309dcb88c6904f7ac6d93724a
2 /*
3 * server.c Set up and handle communications with a server process.
5 * Server Handling copyright 1992-1999 The Free Software Foundation
7 * Server Handling is free software.
8 * You may redistribute it and/or modify it under the terms of the
9 * GNU General Public License, as published by the Free Software
10 * Foundation; either version 2, or (at your option) any later version.
12 * Server Handling 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.
17 * You should have received a copy of the GNU General Public License
18 * along with Server Handling. See the file "COPYING". If not,
19 * write to: The Free Software Foundation, Inc.,
20 * 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
23 * As a special exception, The Free Software Foundation gives
24 * permission for additional uses of the text contained in his release
25 * of ServerHandler.
27 * The exception is that, if you link the ServerHandler library with other
28 * files to produce an executable, this does not by itself cause the
29 * resulting executable to be covered by the GNU General Public License.
30 * Your use of that executable is in no way restricted on account of
31 * linking the ServerHandler library code into it.
33 * This exception does not however invalidate any other reasons why
34 * the executable file might be covered by the GNU General Public License.
36 * This exception applies only to the code released by The Free
37 * Software Foundation under the name ServerHandler. If you copy code
38 * from other sources under the General Public License into a copy of
39 * ServerHandler, as the General Public License permits, the exception
40 * does not apply to the code that you add in this way. To avoid
41 * misleading anyone as to the status of such modified files, you must
42 * delete this exception notice from them.
44 * If you write modifications of your own for ServerHandler, it is your
45 * choice whether to permit this exception to apply to your modifications.
46 * If you do not wish that, delete this exception notice.
49 #ifndef GCC_SERVER_H
50 #define GCC_SERVER_H
52 #include <stdio.h>
53 #ifdef HAVE_UNISTD_H
54 #include <unistd.h>
55 #endif
57 #include "fixlib.h"
60 * Dual pipe opening of a child process
63 typedef struct
65 int read_fd;
66 int write_fd;
67 } t_fd_pair;
69 typedef struct
71 FILE *pf_read; /* parent read fp */
72 FILE *pf_write; /* parent write fp */
73 } t_pf_pair;
75 char *run_shell PARAMS (( const char *pzCmd));
76 pid_t proc2_fopen PARAMS (( t_pf_pair * p_pair, tCC ** pp_args));
77 pid_t proc2_open PARAMS (( t_fd_pair * p_pair, tCC ** pp_args));
78 int chain_open PARAMS (( int in_fd, tCC ** pp_args,
79 pid_t * p_child));
80 void close_server PARAMS (( void ));
82 #endif /* ! GCC_SERVER_H */