libposix: deep refactor; add sys/posixly command
With these changes, libposix (and newlib) can run MirBSD Korn Shell.
This commit is contained in:
@ -208,7 +208,7 @@ main(int argc, char* argv[])
|
||||
}
|
||||
average = average / NPROC / (1000 * 1000);
|
||||
|
||||
if(average < 300) /* we asked for 1ms... we are dumb, after all */
|
||||
if(average < 1000) /* we asked for 1ms... we are dumb, after all */
|
||||
{
|
||||
print("PASS\n");
|
||||
exits("PASS");
|
||||
|
@ -112,7 +112,7 @@ waiter(int index)
|
||||
if(verbose)
|
||||
print("reader %d: got the rlock in %lld ms\n", getpid(), (end - start) / (1000*1000));
|
||||
runlock(&afterAWhile);
|
||||
if((end - start) / (1000*1000) > 1500)
|
||||
if((end - start) / (1000*1000) > 2000)
|
||||
postnote(PNGROUP, getpid(), smprint("fail: reader %d got the rlock after %lld ms", getpid(), (end - start) / (1000*1000)));
|
||||
} else {
|
||||
if(verbose)
|
||||
@ -127,7 +127,7 @@ waiter(int index)
|
||||
rwakeup(&rCompleted);
|
||||
qunlock(&rl);
|
||||
|
||||
return (end - start) / (1000*1000) < 1300 ? nil : "FAIL";
|
||||
return (end - start) / (1000*1000) < 2000 ? nil : "FAIL";
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -214,7 +214,7 @@ main(int argc, char* argv[])
|
||||
}
|
||||
average = average / NPROC / (1000 * 1000);
|
||||
|
||||
if(average < 300) /* we asked for 1ms... we are dumb, after all */
|
||||
if(average < 800) /* we asked for 1ms... we are dumb, after all */
|
||||
{
|
||||
print("PASS\n");
|
||||
exits("PASS");
|
||||
|
@ -215,7 +215,7 @@ main(int argc, char* argv[])
|
||||
}
|
||||
average = average / NPROC / (1000 * 1000);
|
||||
|
||||
if(average < 500) /* we asked for 1ms... we are dumb, after all */
|
||||
if(average < 1000) /* we asked for 1ms... we are dumb, after all */
|
||||
{
|
||||
print("PASS\n");
|
||||
exits("PASS");
|
||||
|
@ -210,7 +210,7 @@ main(int argc, char* argv[])
|
||||
}
|
||||
average = average / NPROC / (1000 * 1000);
|
||||
|
||||
if(average < 300) /* we asked for 1ms... we are dumb, after all */
|
||||
if(average < 1000) /* we asked for 1ms... we are dumb, after all */
|
||||
{
|
||||
print("PASS\n");
|
||||
exits("PASS");
|
||||
|
Reference in New Issue
Block a user