version 1.3, 2000/08/22 05:03:56 |
version 1.7, 2018/09/08 02:06:08 |
|
|
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* |
* |
* $OpenXM: OpenXM_contrib2/asir2000/builtin/batch.c,v 1.2 2000/08/21 08:31:18 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/builtin/batch.c,v 1.6 2015/08/14 13:51:54 fujimoto Exp $ |
*/ |
*/ |
#if !defined(VISUAL) |
#if !defined(VISUAL) && !defined(__MINGW32__) |
|
|
#include <stdio.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <stdlib.h> |
Line 75 static void read_until_eof(); |
|
Line 75 static void read_until_eof(); |
|
static HANDLE hRead,hWrite,hNotify,hNotify_Ack,hIntr,hIntr_Ack,hKill,hProc; |
static HANDLE hRead,hWrite,hNotify,hNotify_Ack,hIntr,hIntr_Ack,hKill,hProc; |
|
|
int exec_file(char *bindir,char *fname) { |
int exec_file(char *bindir,char *fname) { |
int i; |
|
char *av[BUFSIZ]; |
char *av[BUFSIZ]; |
char AsirExe[BUFSIZ]; |
char AsirExe[BUFSIZ]; |
DWORD tid,mypid,pid,len; |
DWORD mypid; |
HANDLE hR0,hW0,hR1,hW1; |
HANDLE hR0,hW0,hR1,hW1; |
SECURITY_ATTRIBUTES SecurityAttributes; |
SECURITY_ATTRIBUTES SecurityAttributes; |
char remread[10],remwrite[10]; |
char remread[10],remwrite[10]; |
char notify[100],notify_ack[100],intr[100],intr_ack[100],kill[100]; |
char notify[100],notify_ack[100],intr[100],intr_ack[100],kill[100]; |
|
void _setargv(); |
|
|
mypid = GetCurrentProcessId(); |
mypid = GetCurrentProcessId(); |
sprintf(notify,"asir_notify_%d",mypid); |
sprintf(notify,"asir_notify_%d",mypid); |
Line 108 int exec_file(char *bindir,char *fname) { |
|
Line 108 int exec_file(char *bindir,char *fname) { |
|
sprintf(remwrite,"%d",(DWORD)hW0); |
sprintf(remwrite,"%d",(DWORD)hW0); |
|
|
sprintf(AsirExe,"%s\\engine.exe",bindir); |
sprintf(AsirExe,"%s\\engine.exe",bindir); |
|
#if _MSC_VER < 1900 |
_setargv(); |
_setargv(); |
|
#endif |
av[0] = "asir"; |
av[0] = "asir"; |
av[1] = remread; |
av[1] = remread; |
av[2] = remwrite; |
av[2] = remwrite; |
Line 136 static int insert_buf_len = 0; |
|
Line 138 static int insert_buf_len = 0; |
|
|
|
static void read_until_eof() |
static void read_until_eof() |
{ |
{ |
char *p; |
|
DWORD len; |
DWORD len; |
unsigned int cmdsize,cmd,size; |
unsigned int cmdsize,cmd,size; |
|
|