=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/builtin/batch.c,v retrieving revision 1.2 retrieving revision 1.6 diff -u -p -r1.2 -r1.6 --- OpenXM_contrib2/asir2000/builtin/batch.c 2000/08/21 08:31:18 1.2 +++ OpenXM_contrib2/asir2000/builtin/batch.c 2015/08/14 13:51:54 1.6 @@ -23,7 +23,7 @@ * shall be made on your publication or presentation in any form of the * results obtained by use of the SOFTWARE. * (4) In the event that you modify the SOFTWARE, you shall notify FLL by - * e-mail at risa-admin@flab.fujitsu.co.jp of the detailed specification + * e-mail at risa-admin@sec.flab.fujitsu.co.jp of the detailed specification * for such modification or the source code of the modified part of the * SOFTWARE. * @@ -45,9 +45,9 @@ * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. * - * $OpenXM: OpenXM_contrib2/asir2000/builtin/batch.c,v 1.1.1.1 1999/12/03 07:39:07 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/builtin/batch.c,v 1.5 2015/08/06 10:01:51 fujimoto Exp $ */ -#if !defined(VISUAL) +#if !defined(VISUAL) && !defined(__MINGW32__) #include #include @@ -75,14 +75,14 @@ static void read_until_eof(); static HANDLE hRead,hWrite,hNotify,hNotify_Ack,hIntr,hIntr_Ack,hKill,hProc; int exec_file(char *bindir,char *fname) { - int i; char *av[BUFSIZ]; char AsirExe[BUFSIZ]; - DWORD tid,mypid,pid,len; + DWORD mypid; HANDLE hR0,hW0,hR1,hW1; - SECURITY_ATTRIBUTES SecurityAttributes; + SECURITY_ATTRIBUTES SecurityAttributes; char remread[10],remwrite[10]; char notify[100],notify_ack[100],intr[100],intr_ack[100],kill[100]; + void _setargv(); mypid = GetCurrentProcessId(); sprintf(notify,"asir_notify_%d",mypid); @@ -136,7 +136,6 @@ static int insert_buf_len = 0; static void read_until_eof() { - char *p; DWORD len; unsigned int cmdsize,cmd,size;