summaryrefslogtreecommitdiff
path: root/lib/librt/aio.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-261-1/+3
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326219
* Implement SIGEV_THREAD notifications for lio_listio(2)Alan Somers2017-07-211-8/+39
| | | | | | | | | | | | | Our man pages have always indicated that this was supported, but in fact the feature was never implemented for lio_listio(2). Reviewed by: jhb, kib (earlier version) MFC after: 20 days Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D11680 Notes: svn path=/head/; revision=321332
* Remove some private symbols from librtAlan Somers2017-07-201-5/+0
| | | | | | | | | | | | | | | Private functions like __aio_read and _aio_read were exposed in FBSDprivate_1.0 by r169090, even though they've never been used outside of librt. Also, remove some weak references from r156136 that have never resolved. Reviewed by: kib MFC after: 3 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D11649 Notes: svn path=/head/; revision=321295
* Fix aio system call wrappers in librt.John Baldwin2016-07-141-7/+15
| | | | | | | | | | | | | | | - 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. Reviewed by: kib (earlier version) MFC after: 1 week Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D7120 Notes: svn path=/head/; revision=302860
* Implement SIGEV_THREAD notification for aio_fsync.David Xu2006-03-241-18/+55
| | | | Notes: svn path=/head/; revision=157078
* 1. Always call user callback function in newly created thread, it seemsDavid Xu2006-03-071-3/+0
| | | | | | | | | POSIX implies that the user callback function must be executed in clean environment. 2. Use newly introduced pthread stubs in libc. Notes: svn path=/head/; revision=156383
* Use a thread pool to process notification if sigev_notify_attributesDavid Xu2006-03-041-2/+2
| | | | | | | | | | | is default and caller does not require dedicated thread. timer needs a dedicated thread to maintain overrun count correctly in notification context. mqueue and aio can use thread pool to do notification concurrently, the thread pool has lifecycle control, some threads will exit if they have idled for a while. Notes: svn path=/head/; revision=156267
* 1. Fix a race in aio_return.David Xu2006-03-011-6/+12
| | | | | | | | 2. Save and restore syscall errno correctly. 3. Style fix. Notes: svn path=/head/; revision=156194
* Bring in my initial version of POSIX realtime extension library.David Xu2006-03-011-0/+156
Current the library implements mqueue, timer and aio with SIGEV_THREAD notification supported. Earlier version reviewed by: deischen Notes: svn path=/head/; revision=156136