fixed multiple glitches for building on non-posix platforms

This commit is contained in:
2014-10-19 12:50:51 +00:00
parent e7287cb52c
commit d9d75a5db5
20 changed files with 108 additions and 74 deletions

View File

@ -380,6 +380,7 @@ static int daemonize (int devnull)
int xxxx (void* ctx, qse_env_char_t** envir)
{
/* NOTE: this is for experiment only */
#if 0
extern char** environ;
char buf[1000];
char* cl;
@ -401,6 +402,11 @@ printf ("%s", buf);
/*}
system ("while read xxx; do echo $xxx; done; echo 123 456 789");*/
printf ("</pre></body></html>\n");
#endif
printf ("Content-Type: text/html\n\n");
printf ("<html><body><pre>\n");
system ("ls -laF /tmp");
printf ("</pre></body></html>\n");
return 0;
}