mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
Make improvements
- Polyfill pselect() on Windows - Add -O NOFILE flag to pledge.com - Polyfill ppoll() on NetBSD, XNU, and Windows - Support negative numbers and errno in sizetol() - Add .RSS, .NOFILE, and .MAXCORE to Landlock Make - Fix issue with .PLEDGE preventing touching of output files - Add __watch() function (like ftrace) for logging memory changes
This commit is contained in:
parent
d3b599a796
commit
f0701d2a24
35 changed files with 635 additions and 340 deletions
|
@ -105,7 +105,7 @@ static void EmptySignalMask(void) {
|
|||
}
|
||||
|
||||
static void FixIrregularFds(void) {
|
||||
int i, fd, maxfds;
|
||||
int e, i, fd, maxfds;
|
||||
struct rlimit rlim;
|
||||
struct pollfd *pfds;
|
||||
for (i = 0; i < 3; ++i) {
|
||||
|
@ -118,6 +118,9 @@ static void FixIrregularFds(void) {
|
|||
}
|
||||
}
|
||||
}
|
||||
e = errno;
|
||||
if (!closefrom(3)) return;
|
||||
errno = e;
|
||||
if (IsWindows()) {
|
||||
maxfds = 64;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue