summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_aio_suspend.c
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2001-01-24 13:03:38 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2001-01-24 13:03:38 +0000
commite5106342c6de9cbe26c4827e4e29bae309cd8cfb (patch)
tree5199387f09deaa21f12482317c165f815c4e8c2b /lib/libpthread/thread/thr_aio_suspend.c
parentf9447cd11209a5fb5ecef3f4cbe539e990f3b1bd (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_aio_suspend.c')
-rw-r--r--lib/libpthread/thread/thr_aio_suspend.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libpthread/thread/thr_aio_suspend.c b/lib/libpthread/thread/thr_aio_suspend.c
index 1253f20d8c3a..ea77f4e40f9b 100644
--- a/lib/libpthread/thread/thr_aio_suspend.c
+++ b/lib/libpthread/thread/thr_aio_suspend.c
@@ -30,10 +30,11 @@
*/
#include <aio.h>
-#ifdef _THREAD_SAFE
#include <pthread.h>
#include "pthread_private.h"
+#pragma weak aio_suspend=_aio_suspend
+
int
_aio_suspend(const struct aiocb * const iocbs[], int niocb, const struct
timespec *timeout)
@@ -41,11 +42,9 @@ _aio_suspend(const struct aiocb * const iocbs[], int niocb, const struct
int ret;
_thread_enter_cancellation_point();
- ret = _aio_suspend(iocbs, niocb, timeout);
+ ret = __sys_aio_suspend(iocbs, niocb, timeout);
_thread_leave_cancellation_point();
-
+
return ret;
}
-__strong_reference(_aio_suspend, aio_suspend);
-#endif