mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 15:28:30 +00:00
Add epoll and do more release readiness changes
This change also pays off some of the remaining technical debt with stdio, file descriptors, and memory managemnt polyfills.
This commit is contained in:
parent
a9ea949df8
commit
3e4fd4b0ad
271 changed files with 5706 additions and 1365 deletions
|
@ -31,7 +31,8 @@ static textwindows ssize_t sendfile$linux2nt(int outfd, int infd,
|
|||
size_t uptobytes) {
|
||||
struct NtOverlapped Overlapped;
|
||||
struct NtOverlapped *lpOverlapped;
|
||||
if (!isfdkind(outfd, kFdSocket) || !isfdkind(outfd, kFdFile)) return ebadf();
|
||||
if (!__isfdkind(outfd, kFdSocket) || !__isfdkind(outfd, kFdFile))
|
||||
return ebadf();
|
||||
if (inout_opt_inoffset) {
|
||||
memset(&Overlapped, 0, sizeof(Overlapped));
|
||||
Overlapped.Pointer = (void *)(intptr_t)(*inout_opt_inoffset);
|
||||
|
@ -44,7 +45,7 @@ static textwindows ssize_t sendfile$linux2nt(int outfd, int infd,
|
|||
lpOverlapped, NULL, 0)) {
|
||||
return uptobytes;
|
||||
} else {
|
||||
return winsockerr();
|
||||
return __winsockerr();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue