mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-03 16:30:29 +00:00
Improve cosmocc toolchain
- Decouple zlib from libc - Add some underscores to mostly internal names
This commit is contained in:
parent
713d4424c6
commit
ba180e754d
25 changed files with 128 additions and 42 deletions
|
@ -26,12 +26,12 @@
|
|||
/**
|
||||
* Returns maximum number of open files.
|
||||
*/
|
||||
long GetMaxFd(void) {
|
||||
long _GetMaxFd(void) {
|
||||
int rc;
|
||||
if (IsNetbsd()) {
|
||||
if ((rc = __sys_fcntl(0, F_MAXFD, 0)) != -1) {
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
return GetResourceLimit(RLIMIT_NOFILE);
|
||||
return _GetResourceLimit(RLIMIT_NOFILE);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue