[Bug 220459] lio_listio(2) doesn't support SIGEV_THREAD
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Jul 3 22:07:26 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220459
Bug ID: 220459
Summary: lio_listio(2) doesn't support SIGEV_THREAD
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: freebsd-bugs at FreeBSD.org
Reporter: asomers at FreeBSD.org
lio_listio(2) returns EINVAL when its sig->sigev_notify is SIGEV_THREAD. That
error gets returned from kern_lio_listio. The lio_listio(2) man page makes no
mention of this limitation. In fact, it says that SIGEV_THREAD _is_ supported.
For other aio(4) functions, SIGEV_THREAD is handled in librt and implemented
using SIGEV_THREAD_ID, which is what the kernel actually sees. But lio_listio
doesn't go through librt. Instead, it's a direct syscall.
Either the man page should be updated, or lio_listio should gain a librt
wrapper just like aio_read(2) and friends.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list