equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 /* |
|
22 * Process.h |
|
23 */ |
|
24 |
|
25 |
|
26 #ifndef _TALON_PROCESS_H_ |
|
27 #define _TALON_PROCESS_H_ |
|
28 |
|
29 #include <sys/types.h> |
|
30 #include "buffer.h" |
|
31 |
|
32 typedef pid_t proc_handle; |
|
33 |
|
34 #define PROC_NORMALDEATH 0 |
|
35 #define PROC_TIMEOUTDEATH 1 |
|
36 #define PROC_SOMEODDDEATH 2 |
|
37 #define PROC_PIPECREATE 3 |
|
38 #define PROC_START 4 |
|
39 |
|
40 |
|
41 typedef struct |
|
42 { |
|
43 proc_handle pid; |
|
44 unsigned int starttime; |
|
45 unsigned int endtime; |
|
46 int returncode; |
|
47 unsigned int causeofdeath; |
|
48 buffer *output; |
|
49 } proc; |
|
50 |
|
51 proc *process_run(char executable[], char *args[], int timeout); |
|
52 void process_free(proc **pp); |
|
53 |
|
54 #endif |