1 | #ifndef SUB_PROC_H
|
---|
2 | #define SUB_PROC_H
|
---|
3 |
|
---|
4 | /*
|
---|
5 | * Component Name:
|
---|
6 | *
|
---|
7 | * $Date: 2005/02/10 00:10:58 $
|
---|
8 | *
|
---|
9 | * $Source: /cvsroot/make/make/w32/include/sub_proc.h,v $
|
---|
10 | *
|
---|
11 | * $Revision: 1.5 $
|
---|
12 | */
|
---|
13 |
|
---|
14 | /* $Id: sub_proc.h,v 1.5 2005/02/10 00:10:58 psmith Exp $ */
|
---|
15 |
|
---|
16 | #define EXTERN_DECL(entry, args) extern entry args
|
---|
17 | #define VOID_DECL void
|
---|
18 |
|
---|
19 | EXTERN_DECL(HANDLE process_init, (VOID_DECL));
|
---|
20 | EXTERN_DECL(HANDLE process_init_fd, (HANDLE stdinh, HANDLE stdouth,
|
---|
21 | HANDLE stderrh));
|
---|
22 | EXTERN_DECL(long process_begin, (HANDLE proc, char **argv, char **envp,
|
---|
23 | char *exec_path, char *as_user));
|
---|
24 | EXTERN_DECL(long process_pipe_io, (HANDLE proc, char *stdin_data,
|
---|
25 | int stdin_data_len));
|
---|
26 | EXTERN_DECL(long process_file_io, (HANDLE proc));
|
---|
27 | EXTERN_DECL(void process_cleanup, (HANDLE proc));
|
---|
28 | EXTERN_DECL(HANDLE process_wait_for_any, (VOID_DECL));
|
---|
29 | EXTERN_DECL(void process_register, (HANDLE proc));
|
---|
30 | EXTERN_DECL(HANDLE process_easy, (char** argv, char** env));
|
---|
31 | EXTERN_DECL(BOOL process_kill, (HANDLE proc, int signal));
|
---|
32 |
|
---|
33 | /* support routines */
|
---|
34 | EXTERN_DECL(long process_errno, (HANDLE proc));
|
---|
35 | EXTERN_DECL(long process_last_err, (HANDLE proc));
|
---|
36 | EXTERN_DECL(long process_exit_code, (HANDLE proc));
|
---|
37 | EXTERN_DECL(long process_signal, (HANDLE proc));
|
---|
38 | EXTERN_DECL(char * process_outbuf, (HANDLE proc));
|
---|
39 | EXTERN_DECL(char * process_errbuf, (HANDLE proc));
|
---|
40 | EXTERN_DECL(int process_outcnt, (HANDLE proc));
|
---|
41 | EXTERN_DECL(int process_errcnt, (HANDLE proc));
|
---|
42 | EXTERN_DECL(void process_pipes, (HANDLE proc, int pipes[3]));
|
---|
43 |
|
---|
44 | #endif
|
---|