]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 302860: Fix aio system call wrappers in librt.
authorjhb <jhb@FreeBSD.org>
Mon, 25 Jul 2016 15:56:37 +0000 (15:56 +0000)
committerjhb <jhb@FreeBSD.org>
Mon, 25 Jul 2016 15:56:37 +0000 (15:56 +0000)
commit8260830da87c9b81593b28fb3822aced3233660b
tree18079c6d79a125256237f9bfe47f96ea1663c58b
parent8925d1cf89b69ae37c22a7e4dceb2848732b3d62
MFC 302860: Fix aio system call wrappers in librt.

- Update aio_return/waitcomplete wrappers for the ssize_t return type.
- Fix the aio_return() wrapper to fail with EINVAL on a pending job.
  This matches the semantics of the in-kernel system call.  Also,
  aio_return() returns errors via errno, not via the return value.

Approved by: re (gjb)
Sponsored by: Chelsio Communications
lib/librt/aio.c