mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Rewrite special file handling on Windows
This change gets GNU grep working. What caused it to not work, is it wouldn't write to an output file descriptor when its dev/ino equaled /dev/null's. So now we invent special dev/ino values for these files
This commit is contained in:
parent
aca2261cda
commit
2db2f40a98
53 changed files with 485 additions and 299 deletions
|
@ -116,8 +116,7 @@ errno_t pthread_timedjoin_np(pthread_t thread, void **value_ptr,
|
|||
if (value_ptr) {
|
||||
*value_ptr = pt->pt_rc;
|
||||
}
|
||||
_pthread_free(pt, false);
|
||||
_pthread_decimate();
|
||||
_pthread_unref(pt);
|
||||
}
|
||||
STRACE("pthread_timedjoin_np(%d, %s, %s) → %s", _pthread_tid(pt),
|
||||
DescribeReturnValue(alloca(30), err, value_ptr),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue