@@ -44,11 +44,6 @@
#endif /* WIN32 */
-//# undef system
-int system(const char *);
-//# define system(_run) my_system(_run)
-
#define BIT0 (uint32_t) 0x000000001
#define BIT1 (uint32_t) 0x000000002
#define BIT2 (uint32_t) 0x000000004
@@ -724,12 +724,6 @@ int main(int argc, char **argv)
srandom(now % (mypid + getppid()) * randint(1000));
-/*
- char *out = NULL;
-printf("ret: %d\n", system("c:/wraith/leaf.exe"));
- shell_exec("c:\\windows\\notepad.exe", NULL, &out, &out);
-printf("out: %s\n", out);
-*/
setlimits();
init_debug();
init_signals();
@@ -51,36 +51,6 @@
bool clear_tmpdir = 0;
-int my_system(const char *run)
-{
-#ifdef WIN32NOFUCK
- int ret = -1;
- PROCESS_INFORMATION pinfo;
- STARTUPINFO sinfo;
- memset(&sinfo, 0, sizeof(STARTUPINFO));
- sinfo.cb = sizeof(sinfo);
- sinfo.wShowWindow = SW_HIDE;
- sinfo.dwFlags |= STARTF_USESTDHANDLES;
- sinfo.hStdInput =
- sinfo.hStdOutput =
- sinfo.hStdError =
- ret =
- CreateProcess(NULL, (char *) run, NULL, NULL, TRUE, NORMAL_PRIORITY_CLASS | DETACHED_PROCESS, NULL, NULL,
- (STARTUPINFO *) &sinfo, (PROCESS_INFORMATION *) &pinfo);
- if (ret == 0)
- return -1;
- else
- return 0;
-#else
- return system(run);
-#endif /* WIN32 */
-}
void clear_tmp()
{
if (!clear_tmpdir)