VirtualBox

source: kBuild/vendor/gnumake/current/w32/include/sub_proc.h

Last change on this file was 3138, checked in by bird, 7 years ago

Imported make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6) from https://git.savannah.gnu.org/git/make.git.

  • Property svn:eol-style set to native
File size: 2.4 KB
Line 
1/* Definitions for Windows process invocation.
2Copyright (C) 1996-2016 Free Software Foundation, Inc.
3This file is part of GNU Make.
4
5GNU Make is free software; you can redistribute it and/or modify it under the
6terms of the GNU General Public License as published by the Free Software
7Foundation; either version 3 of the License, or (at your option) any later
8version.
9
10GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
11WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License along with
15this program. If not, see <http://www.gnu.org/licenses/>. */
16
17#ifndef SUB_PROC_H
18#define SUB_PROC_H
19
20/*
21 * Component Name:
22 *
23 * $Date$
24 *
25 * $Source$
26 *
27 * $Id$
28 */
29
30#define EXTERN_DECL(entry, args) extern entry args
31#define VOID_DECL void
32
33EXTERN_DECL(HANDLE process_init, (VOID_DECL));
34EXTERN_DECL(HANDLE process_init_fd, (HANDLE stdinh, HANDLE stdouth,
35 HANDLE stderrh));
36EXTERN_DECL(long process_begin, (HANDLE proc, char **argv, char **envp,
37 char *exec_path, char *as_user));
38EXTERN_DECL(long process_pipe_io, (HANDLE proc, char *stdin_data,
39 int stdin_data_len));
40EXTERN_DECL(long process_file_io, (HANDLE proc));
41EXTERN_DECL(void process_cleanup, (HANDLE proc));
42EXTERN_DECL(HANDLE process_wait_for_any, (int block, DWORD* pdwWaitStatus));
43EXTERN_DECL(void process_register, (HANDLE proc));
44EXTERN_DECL(HANDLE process_easy, (char** argv, char** env,
45 int outfd, int errfd));
46EXTERN_DECL(BOOL process_kill, (HANDLE proc, int signal));
47EXTERN_DECL(int process_used_slots, (VOID_DECL));
48EXTERN_DECL(DWORD process_set_handles, (HANDLE *handles));
49
50/* support routines */
51EXTERN_DECL(long process_errno, (HANDLE proc));
52EXTERN_DECL(long process_last_err, (HANDLE proc));
53EXTERN_DECL(long process_exit_code, (HANDLE proc));
54EXTERN_DECL(long process_signal, (HANDLE proc));
55EXTERN_DECL(char * process_outbuf, (HANDLE proc));
56EXTERN_DECL(char * process_errbuf, (HANDLE proc));
57EXTERN_DECL(int process_outcnt, (HANDLE proc));
58EXTERN_DECL(int process_errcnt, (HANDLE proc));
59EXTERN_DECL(void process_pipes, (HANDLE proc, int pipes[3]));
60EXTERN_DECL(void process_noinherit, (int fildes));
61
62#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette