musl/include/sys/epoll.h, branch master musl - an implementation of the standard library for Linux-based systems sys/epoll.h: add epoll ioctls 2024年06月22日T20:53:06+00:00 Joe Damato jdamato@fastly.com 2024年05月29日T06:49:59+00:00 1b97d0060ba585df41f0a55a1f8c33c704d0dfbe add two ioctls to get and set struct epoll_params to allow users to control epoll based busy polling of network sockets. added to uapi in commit 18e2bf0edf4dd88d9656ec92395aa47392e85b61 (Linux kernel 6.9 and newer).
add two ioctls to get and set struct epoll_params to allow users to
control epoll based busy polling of network sockets.
added to uapi in commit 18e2bf0edf4dd88d9656ec92395aa47392e85b61 (Linux
kernel 6.9 and newer).
sys/epoll.h: add EPOLLNVAL from linux v4.16 2018年06月19日T17:25:16+00:00 Szabolcs Nagy nsz@port70.net 2018年04月28日T15:52:06+00:00 29f3202b731185d993a399f04d2f3e3f78db5a81 added to uapi in commit 65aaf87b3aa2d049c6b9fd85221858a895df3393 used since commit a9a08845e9acbd224e4ee466f5c1275ed50054e8, which renamed POLL* to EPOLL* in the kernel.
added to uapi in commit 65aaf87b3aa2d049c6b9fd85221858a895df3393
used since commit a9a08845e9acbd224e4ee466f5c1275ed50054e8,
which renamed POLL* to EPOLL* in the kernel.
add EPOLLEXCLUSIVE epoll flag from linux v4.5 2016年03月19日T15:31:19+00:00 Szabolcs Nagy nsz@port70.net 2016年03月19日T12:37:03+00:00 b10ca0f560491ed9e353ead6e35f8992e9800c7a new flag for exclusive wakeup mode when an event source fd is attached to multiple epoll fds but they should not all receive the events. new in linux commit df0108c5da561c66c333bb46bfe3c1fc65905898
new flag for exclusive wakeup mode when an event source fd is attached
to multiple epoll fds but they should not all receive the events.
new in linux commit df0108c5da561c66c333bb46bfe3c1fc65905898
fix epoll structure alignment on non-x86_64 archs 2013年03月07日T04:57:39+00:00 Rich Felker dalias@aerifal.cx 2013年03月07日T04:57:39+00:00 08514d0614c97f8c7055955073517844e1b1cf0b this fix is far from ideal and breaks the rule of not using arch-specific #ifdefs, but for now we just need a solution to the existing breakage. the underlying problem is that the kernel folks made a very stupid decision to make misalignment of this struct part of the kernel API/ABI for x86_64, in order to avoid writing a few extra lines of code to handle both 32- and 64-bit userspace on 64-bit kernels. I had just added the packed attribute unconditionally thinking it was harmless on 32-bit archs, but non-x86 32-bit archs have 8-byte alignment on 64-bit types.
this fix is far from ideal and breaks the rule of not using
arch-specific #ifdefs, but for now we just need a solution to the
existing breakage.
the underlying problem is that the kernel folks made a very stupid
decision to make misalignment of this struct part of the kernel
API/ABI for x86_64, in order to avoid writing a few extra lines of
code to handle both 32- and 64-bit userspace on 64-bit kernels. I had
just added the packed attribute unconditionally thinking it was
harmless on 32-bit archs, but non-x86 32-bit archs have 8-byte
alignment on 64-bit types.
add EPOLLWAKEUP flag to sys/epoll.h 2013年01月12日T18:42:39+00:00 Szabolcs Nagy nsz@port70.net 2013年01月12日T16:29:45+00:00 ada88f6178db186305d6c8f2fe1420d71490a798
align EPOLL_* flags with fcntl O_* flag definitions, which vary by arch 2012年12月28日T01:44:44+00:00 Rich Felker dalias@aerifal.cx 2012年12月28日T01:44:44+00:00 761ebe065ca75a2dda9407a1a31da273412525c6 the old definitions were wrong on some archs. actually, EPOLL_NONBLOCK probably should not even be defined; it is not accepted by the kernel and it's not clear to me whether it has any use at all, even if it did work. this issue should be revisited at some point, but I'm leaving it in place for now in case some applications reference it.
the old definitions were wrong on some archs. actually, EPOLL_NONBLOCK
probably should not even be defined; it is not accepted by the kernel
and it's not clear to me whether it has any use at all, even if it did
work. this issue should be revisited at some point, but I'm leaving it
in place for now in case some applications reference it.
initial check-in, version 0.5.0 2011年02月12日T05:22:29+00:00 Rich Felker dalias@aerifal.cx 2011年02月12日T05:22:29+00:00 0b44a0315b47dd8eced9f3b7f31580cf14bbfc01

AltStyle によって変換されたページ (->オリジナル) /