version 1.17, 2003/11/18 11:08:27 |
version 1.19, 2004/02/25 23:14:35 |
|
|
/* $OpenXM: OpenXM/src/kan96xx/plugin/oxmisc.c,v 1.16 2003/07/20 07:18:45 takayama Exp $ */ |
/* $OpenXM: OpenXM/src/kan96xx/plugin/oxmisc.c,v 1.18 2003/11/19 01:02:39 takayama Exp $ */ |
#include <stdio.h> |
#include <stdio.h> |
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/stat.h> |
#include <sys/stat.h> |
|
|
#include <unistd.h> |
#include <unistd.h> |
#include <signal.h> |
#include <signal.h> |
#include <setjmp.h> |
#include <setjmp.h> |
|
#include <errno.h> |
#define SET_MYERROROUT { if (MyErrorOut == NULL) MyErrorOut=stdout; } |
#define SET_MYERROROUT { if (MyErrorOut == NULL) MyErrorOut=stdout; } |
/* It is also defined in oxmisc2.c */ |
/* It is also defined in oxmisc2.c */ |
FILE *MyErrorOut = NULL; |
FILE *MyErrorOut = NULL; |
Line 500 int oxclientMultiSelect(oxclientp clients[],int datare |
|
Line 501 int oxclientMultiSelect(oxclientp clients[],int datare |
|
int humanfd = 0; |
int humanfd = 0; |
fd_set readfds; |
fd_set readfds; |
struct timeval timeout; |
struct timeval timeout; |
extern int errno; |
|
|
|
SET_MYERROROUT; |
SET_MYERROROUT; |
/** printf("(1)"); fflush(NULL); */ |
/** printf("(1)"); fflush(NULL); */ |
Line 1048 int oxGetClientID() { |
|
Line 1048 int oxGetClientID() { |
|
} |
} |
} |
} |
|
|
|
char *oxFIDtoStr(int id) { |
|
switch( id ) { |
|
case SM_mathcap: |
|
return "SM_mathcap"; break; |
|
case SM_setMathCap: |
|
return "SM_setMathCap"; break; |
|
case SM_pops: |
|
return "SM_pops"; break; |
|
case SM_getsp: |
|
return "SM_getsp"; break; |
|
case SM_dupErrors: |
|
return "SM_dupErrors"; break; |
|
case SM_pushCMOtag: |
|
return "SM_pushCMOtag"; break; |
|
case SM_setName: |
|
return "SM_setName"; break; |
|
case SM_evalName: |
|
return "SM_evalName"; break; |
|
case SM_executeStringByLocalParser: |
|
return "SM_executeStringByLocalParser"; break; |
|
case SM_executeFunction: |
|
return "SM_executeFunction"; break; |
|
case SM_popCMO: |
|
return "SM_popCMO"; break; |
|
case SM_popString: |
|
return "SM_popString"; break; |
|
case SM_shutdown: |
|
return "SM_shutdown"; break; |
|
case SM_beginBlock: |
|
return "SM_beginBlock"; break; |
|
case SM_endBlock: |
|
return "SM_endBlock"; break; |
|
default: |
|
return "Unknown to oxFIDtoStr"; break; |
|
} |
|
} |