Line | |
---|
1 | /* |
---|
2 | * Copyright 1993, 1995 Christopher Seiwald. |
---|
3 | * |
---|
4 | * This file is part of Jam - see jam.c for Copyright information. |
---|
5 | */ |
---|
6 | |
---|
7 | /* |
---|
8 | * execcmd.h - execute a shell script |
---|
9 | * |
---|
10 | * 05/04/94 (seiwald) - async multiprocess interface |
---|
11 | */ |
---|
12 | |
---|
13 | typedef struct timing_info |
---|
14 | { |
---|
15 | /* double elapsed; */ /* We don't know how to get this number on Unix */ |
---|
16 | double system; |
---|
17 | double user; |
---|
18 | } timing_info; |
---|
19 | |
---|
20 | void execcmd( |
---|
21 | char *string, |
---|
22 | void (*func)( void *closure, int status, timing_info* ), |
---|
23 | void *closure, |
---|
24 | LIST *shell ); |
---|
25 | |
---|
26 | int execwait(); |
---|
27 | |
---|
28 | # define EXEC_CMD_OK 0 |
---|
29 | # define EXEC_CMD_FAIL 1 |
---|
30 | # define EXEC_CMD_INTR 2 |
---|
Note: See
TracBrowser
for help on using the repository browser.