summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/Support/Signals.cpp
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2015-08-12 07:59:00 +0000
committered <ed@FreeBSD.org>2015-08-12 07:59:00 +0000
commit2c00348ef69de83c44900bf4d038b159649986eb (patch)
treee85af40ce609bae793418e609f1d741e47813cb8 /contrib/llvm/lib/Support/Signals.cpp
parent2cbd9cb8cc40b235ee56228ef13acedb98ec812e (diff)
downloadFreeBSD-src-2c00348ef69de83c44900bf4d038b159649986eb.zip
FreeBSD-src-2c00348ef69de83c44900bf4d038b159649986eb.tar.gz
Make poll() and kqueue() on CloudABI work.
This change implements two functions, cloudabi64_kevent_copyin() and cloudabi64_kevent_copyout(), that convert CloudABI structures to FreeBSD's struct kevent. CloudABI uses two structures: subscription_t and event_t. The former is used for input, whereas the latter is used for output. Unlike struct kevent, fields aren't overloaded for multiple purposes or for separate event types. For poll() we call into the newly introduced kern_kevent_anonymous() function that allows us to poll without a file descriptor. This function is not only used by poll(), but also by functions such as sleep() and clock_nanosleep(). Reviewed by: jmg Obtained from: https://github.com/NuxiNL/freebsd Differential Revision: https://reviews.freebsd.org/D3308
Diffstat (limited to 'contrib/llvm/lib/Support/Signals.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud