1aio_return(3C)           Standard C Library Functions           aio_return(3C)
2
3
4

NAME

6       aio_return - retrieve return status of an asynchronous I/O operation
7

SYNOPSIS

9       #include <aio.h>
10
11       ssize_t aio_return(struct aiocb *aiocbp);
12
13

DESCRIPTION

15       The aio_return() function returns the return status associated with the
16       aiocb structure referenced by the aiocbp argument.  The  return  status
17       for  an  asynchronous I/O operation is the value that would be returned
18       by the corresponding read(2), write(2), or fsync(3C) function call.  If
19       the  error  status  for the operation is equal to EINPROGRESS, then the
20       return status for the operation is undefined. The aio_return() function
21       may  be  called  exactly  once to retrieve the return status of a given
22       asynchronous operation; thereafter, if the same aiocb structure is used
23       in  a  call to aio_return() or aio_error(3C), an error may be returned.
24       When the aiocb structure referred  to  by  aiocbp  is  used  to  submit
25       another  asynchronous  operation, then aio_return() may be successfully
26       used to retrieve the return status of that operation.
27

RETURN VALUES

29       If the asynchronous I/O operation has completed, then the  return  sta‐
30       tus, as described for read(2), write(2), and fsync(3C), is returned. If
31       the asynchronous I/O operation has not yet completed,  the  results  of
32       aio_return() are undefined.
33

ERRORS

35       The aio_return() function will fail if:
36
37       EINVAL    The  aiocbp argument does not refer to an asynchronous opera‐
38                 tion whose return status has not yet been retrieved.
39
40
41       ENOSYS    The aio_return() function is not supported by the system.
42
43

USAGE

45       The aio_return() function has a transitional interface for 64-bit  file
46       offsets.  See lf64(5).
47

ATTRIBUTES

49       See attributes(5) for descriptions of the following attributes:
50
51
52
53
54       ┌─────────────────────────────┬─────────────────────────────┐
55ATTRIBUTE TYPE               ATTRIBUTE VALUE              
56       ├─────────────────────────────┼─────────────────────────────┤
57       │Interface Stability          │Committed                    │
58       ├─────────────────────────────┼─────────────────────────────┤
59       │MT-Level                     │Async-Signal-Safe            │
60       ├─────────────────────────────┼─────────────────────────────┤
61       │Standard                     │See standards(5).            │
62       └─────────────────────────────┴─────────────────────────────┘
63

SEE ALSO

65       close(2),  exec(2),  exit(2),  fork(2),  lseek(2),  read(2),  write(2),
66       fsync(3C),     aio.h(3HEAD),      signal.h(3HEAD),      aio_cancel(3C),
67       aio_fsync(3C),  aio_read(3C),  lio_listio(3C),  attributes(5), lf64(5),
68       standards(5)
69

NOTES

71       Solaris 2.6 was the first release to support the Asynchronous Input and
72       Output  option. Prior to this release, this function always returned −1
73       and set errno to ENOSYS.
74
75
76
77SunOS 5.11                        5 Feb 2008                    aio_return(3C)
Impressum