Make improvements

- Make rand64() thread safe
- Introduce lemur64 lcg prng
- Improve strace on New Technology
- Improve msync() on New Technology
This commit is contained in:
Justine Tunney 2022-04-07 00:15:35 -07:00
parent 43ba3009b2
commit 29bf8b1a30
73 changed files with 888 additions and 269 deletions

View file

@ -51,7 +51,7 @@ static textwindows int SyncDirectory(int df, char16_t path[PATH_MAX], int n) {
if (FlushFileBuffers(df)) {
return 0;
} else {
return __winerr();
return -1;
}
}
path[0] = '.';
@ -65,11 +65,11 @@ static textwindows int SyncDirectory(int df, char16_t path[PATH_MAX], int n) {
if (FlushFileBuffers(fh)) {
rc = 0;
} else {
rc = __winerr();
rc = -1;
}
CloseHandle(fh);
} else {
rc = __winerr();
rc = -1;
}
return rc;
}