mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 16:22:29 +00:00
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:
parent
29bf8b1a30
commit
4f98ad1054
79 changed files with 707 additions and 197 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue