From 6af4cfa2bb9d7defdaa391b26c3b0636fdcb8927 Mon Sep 17 00:00:00 2001 From: wes Date: Sat, 9 Oct 1999 01:35:58 +0000 Subject: Correct the description of the timeout argument. I've examined the code, which seems to implement the POSIX requirements, and have described the behavior here. Basically, it behaves the same as select(2). Noticed by: John Polstra --- lib/libc/sys/aio_suspend.2 | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/libc') diff --git a/lib/libc/sys/aio_suspend.2 b/lib/libc/sys/aio_suspend.2 index 39fd2e8..908492b 100644 --- a/lib/libc/sys/aio_suspend.2 +++ b/lib/libc/sys/aio_suspend.2 @@ -48,6 +48,16 @@ is an array of .Ar niocb pointers to asynchronous I/O requests. Array members containing NULL will be silently ignored. +.Pp +If +.Ar timeout +is a non-nil pointer, it specifies a maximum interval to suspend. +If +.Ar timeout +is a nil pointer, the suspend blocks indefinitely. To effect a +poll, the +.Ar timeout +should point to a zero-value timespec structure. .Sh RETURN VALUES If one or more of the specified asynchronous I/O requests have completed, -- cgit v1.1