Improve system call support on NT

- Improve i/o perf on New Technology
- Code cleanup on read() for New Technology
- Fix bad bug with dup() of socket on New Technology
- Clean up some more strace errors on New Technology
This commit is contained in:
Justine Tunney 2022-04-07 20:30:04 -07:00
parent 29bf8b1a30
commit 4f98ad1054
79 changed files with 707 additions and 197 deletions

View file

@ -37,8 +37,8 @@ testonly void testlib_showerror(const char *file, int line, const char *func,
const char *code, char *v1, char *v2) {
char *p;
char hostname[128];
__getpid(); /* make strace easier to read */
__getpid();
if (!IsWindows()) __getpid(); /* make strace easier to read */
if (!IsWindows()) __getpid();
__stpcpy(hostname, "unknown");
gethostname(hostname, sizeof(hostname));
kprintf("%serror%s%s:%s:%d%s: %s() in %s(%s) on %s\n"
@ -62,8 +62,8 @@ testonly void testlib_showerror_(int line, const char *wantcode,
va_list va;
char hostname[128];
e = errno;
__getpid();
__getpid();
if (!IsWindows()) __getpid();
if (!IsWindows()) __getpid();
__stpcpy(hostname, "unknown");
gethostname(hostname, sizeof(hostname));
kprintf("%serror%s:%s%s:%d%s: %s(%s) on %s\n"