blob: 768bb1fe804de4588e3829502f964aacbef8a926 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/***********************************************************************/
/* */
/* Caml Special Light */
/* */
/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */
/* */
/* Copyright 1995 Institut National de Recherche en Informatique et */
/* Automatique. Distributed only by permission. */
/* */
/***********************************************************************/
/* $Id$ */
#include <process.h>
char * runtime_name = "cslrun.exe";
char * errmsg = "Cannot find cslrun.exe\n";
int main(argc, argv)
int argc;
char ** argv;
{
int retcode;
retcode = spawnvp(P_WAIT, runtime_name, argv);
/* We use P_WAIT instead of P_OVERLAY here because under NT,
P_OVERLAY returns to the command interpreter, displaying the prompt
before executing the command. */
if (retcode == -1) {
write(2, errmsg, strlen(errmsg));
return 2;
}
return retcode;
}
|