mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 00:38:31 +00:00
Improve dead code elimination
This commit is contained in:
parent
760db8c5ad
commit
0e36cb3ac4
6606 changed files with 9685 additions and 9854 deletions
|
@ -1399,7 +1399,7 @@ err:
|
|||
return -1;
|
||||
}
|
||||
|
||||
static textwindows noinline int sys_close_epoll_nt(int fd) {
|
||||
textwindows int sys_close_epoll_nt(int fd) {
|
||||
struct PortState *port_state;
|
||||
struct TsTreeNode *tree_node;
|
||||
if (wepoll_init() < 0) return -1;
|
||||
|
@ -1417,14 +1417,6 @@ err:
|
|||
return -1;
|
||||
}
|
||||
|
||||
int sys_close_epoll(int fd) {
|
||||
if (!IsWindows()) {
|
||||
return sys_close(fd);
|
||||
} else {
|
||||
return sys_close_epoll_nt(fd);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates new epoll instance.
|
||||
*
|
||||
|
@ -1448,7 +1440,7 @@ int epoll_create1(int flags) {
|
|||
int fd;
|
||||
if (flags & ~O_CLOEXEC) return einval();
|
||||
if (!IsWindows()) {
|
||||
return __ensurefds(__fixupnewfd(sys_epoll_create(1337), flags));
|
||||
return __fixupnewfd(sys_epoll_create(1337), flags);
|
||||
} else {
|
||||
return sys_epoll_create1_nt(flags);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue