Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gmake / w32 / include / sub_proc.h
blob02d82c04fc63f3e085d6bb2e7e6dc4d5c78e9d68
1 #ifndef SUB_PROC_H
2 #define SUB_PROC_H
4 /*
5 * Component Name:
7 * $Date: 2006/03/29 21:09:36 $
9 * $Source: /pub/NetBSD/misc/repositories/cvsroot/src/gnu/dist/gmake/w32/include/sub_proc.h,v $
11 * $Revision: 1.1.1.1 $
14 /* $Id: sub_proc.h,v 1.1.1.1 2006/03/29 21:09:36 jmc Exp $ */
16 #ifdef WINDOWS32
18 #define EXTERN_DECL(entry, args) extern entry args
19 #define VOID_DECL void
21 EXTERN_DECL(HANDLE process_init, (VOID_DECL));
22 EXTERN_DECL(HANDLE process_init_fd, (HANDLE stdinh, HANDLE stdouth,
23 HANDLE stderrh));
24 EXTERN_DECL(long process_begin, (HANDLE proc, char **argv, char **envp,
25 char *exec_path, char *as_user));
26 EXTERN_DECL(long process_pipe_io, (HANDLE proc, char *stdin_data,
27 int stdin_data_len));
28 EXTERN_DECL(long process_file_io, (HANDLE proc));
29 EXTERN_DECL(void process_cleanup, (HANDLE proc));
30 EXTERN_DECL(HANDLE process_wait_for_any, (VOID_DECL));
31 EXTERN_DECL(void process_register, (HANDLE proc));
32 EXTERN_DECL(HANDLE process_easy, (char** argv, char** env));
33 EXTERN_DECL(BOOL process_kill, (HANDLE proc, int signal));
35 /* support routines */
36 EXTERN_DECL(long process_errno, (HANDLE proc));
37 EXTERN_DECL(long process_last_err, (HANDLE proc));
38 EXTERN_DECL(long process_exit_code, (HANDLE proc));
39 EXTERN_DECL(long process_signal, (HANDLE proc));
40 EXTERN_DECL(char * process_outbuf, (HANDLE proc));
41 EXTERN_DECL(char * process_errbuf, (HANDLE proc));
42 EXTERN_DECL(int process_outcnt, (HANDLE proc));
43 EXTERN_DECL(int process_errcnt, (HANDLE proc));
44 EXTERN_DECL(void process_pipes, (HANDLE proc, int pipes[3]));
46 #endif
47 #endif