1 /* Multi-Call Binary for vlmcs and vlmcsd */
4 #define CONFIG "config.h"
8 #if MULTI_CALL_BINARY < 1
9 #error "Please define MULTI_CALL_BINARY=1 when compiling this file."
18 #include "shared_globals.h"
21 #if (defined(_WIN32) || defined(__CYGWIN__))
22 #define compare strcasecmp // Best for case-preserving (but otherwise case-insensitive) filesystems
24 #define compare strcmp // for case-sensitive filesystems
27 int main(int argc
, CARGV argv
)
32 if (!compare(basename((char*)*argv
), "vlmcsd"))
33 return server_main(argc
, argv
);
35 if (!compare(basename((char*)*argv
), "vlmcs"))
36 return client_main(argc
, argv
);
39 if (!compare(basename((char*)*argv
), "vlmcsd.exe"))
40 return server_main(argc
, argv
);
42 if (!compare(basename((char*)*argv
), "vlmcs.exe"))
43 return client_main(argc
, argv
);
48 if (!strcmp((char*)argv
[1],"vlmcsd"))
49 return server_main(argc
- 1, argv
+ 1);
51 if (!strcmp((char*)argv
[1],"vlmcs"))
52 return client_main(argc
- 1, argv
+ 1);
58 "\t%s vlmcsd [<vlmcsd command line>]\n"
59 "\t%s vlmcs [<vlmcs command line>]\n\n",