=================================================================== RCS file: /home/cvs/OpenXM/src/kxx/oxmain.c,v retrieving revision 1.27 retrieving revision 1.30 diff -u -p -r1.27 -r1.30 --- OpenXM/src/kxx/oxmain.c 2016/03/30 21:34:03 1.27 +++ OpenXM/src/kxx/oxmain.c 2020/10/07 07:47:23 1.30 @@ -1,4 +1,4 @@ -/* $OpenXM: OpenXM/src/kxx/oxmain.c,v 1.26 2016/03/30 09:20:40 takayama Exp $ */ +/* $OpenXM: OpenXM/src/kxx/oxmain.c,v 1.29 2016/09/26 11:43:38 takayama Exp $ */ /* Note on IntelMac. [2006.06.05] SIGINT does not seem to be blocked on the rosetta emulator of ppc on the IntelMac's. "ox" should be universal binary. @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -26,6 +27,13 @@ #define SERVERNAME "ox_sm1" +void oxmainUsage(); +void parentServerMain(int fdControl, int fdStream); +int childServerMain(int fdControl, int fdStream); +void unlockCtrlCForOx(); +void restoreLockCtrlCForOx(); + + extern char **environ; int OxCritical = 0; int OxInterruptFlag = 0; @@ -43,6 +51,7 @@ int LocalMode = 1; int NotifyPortnumber = 0; int Do_not_use_control_stream_to_tell_no_server = 1; int IgnoreSIGINT = 1; +int Ox_protocol_1999 = 0; static void errorToStartEngine(void); static int findOxServer(char *server); static void couldNotFind(char *s); @@ -53,7 +62,7 @@ void *sGC_malloc(int n) { return (void *)malloc(n); } -main(int argc, char *argv[]) { +void main(int argc, char *argv[]) { int fd; int size; char sname[1024]; @@ -146,6 +155,8 @@ main(int argc, char *argv[]) { if (i