* cygrun.c (main): Fix exit code so that it reflects UNIX style.

* winsup.api/ltp/fork04.c (setup): Accommodate change in putenv declaration.
This commit is contained in:
Christopher Faylor 2005-01-10 04:13:39 +00:00
parent a6888c92d9
commit 76eb619239
3 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-01-09 Christopher Faylor <cgf@timesys.com>
* cygrun.c (main): Fix exit code so that it reflects UNIX style.
* winsup.api/ltp/fork04.c (setup): Accommodate change in putenv
declaration.
2004-08-24 Corinna Vinschen <corinna@vinschen.de> 2004-08-24 Corinna Vinschen <corinna@vinschen.de>
* winsup.api/mmaptest01.c (main): Accomodate 9x memory usage. * winsup.api/mmaptest01.c (main): Accomodate 9x memory usage.

View File

@ -63,5 +63,7 @@ main (int argc, char **argv)
CloseHandle (pi.hProcess); CloseHandle (pi.hProcess);
CloseHandle (pi.hThread); CloseHandle (pi.hThread);
if (ec > 0xff)
ec >>= 8;
return ec; return ec;
} }

View File

@ -165,7 +165,7 @@ setup()
tst_tmpdir(); tst_tmpdir();
/* add a variable to the environment */ /* add a variable to the environment */
putenv("TESTPROG=FRKTCS04"); putenv(strdup("TESTPROG=FRKTCS04"));
/* Pause if that option was specified */ /* Pause if that option was specified */
TEST_PAUSE; TEST_PAUSE;