-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gpkg/glibc): disabling the `epoll_pwait2` system call
- Loading branch information
Showing
14 changed files
with
411 additions
and
659 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include <stddef.h> | ||
#include <unistd.h> | ||
#include <sys/types.h> | ||
#include <sys/epoll.h> | ||
#include <sysdep-cancel.h> | ||
|
||
int __epoll_pwait2_time64 (int fd, struct epoll_event *ev, int maxev, const struct __timespec64 *tmo, const sigset_t *s) | ||
{ | ||
// tmo->tv_nsec | ||
return epoll_pwait (fd, ev, maxev, tmo->tv_sec*1000, s, __NSIG_BYTES); | ||
} | ||
|
||
#if __TIMESIZE != 64 | ||
libc_hidden_def (__epoll_pwait2_time64) | ||
|
||
int epoll_pwait2 (int fd, struct epoll_event *ev, int maxev, const struct timespec *tmo, const sigset_t *s) | ||
{ | ||
struct __timespec64 tmo64, *ptmo64 = NULL; | ||
if (tmo != NULL) | ||
{ | ||
tmo64 = valid_timespec_to_timespec64 (*tmo); | ||
ptmo64 = &tmo64; | ||
} | ||
return __epoll_pwait2_time64 (fd, ev, maxev, ptmo64, s); | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.