struct aiocb { int aio_fildes; /* file desriptor. */ int aio_lio_opcode; /* operation to be performed. */ int aio_reqprio; /* request priority offset. */ volatile void *aio_buf; /* location of buffer. */ size_t aio_nbytes; /* length of transfer. */ struct sigevent aio_sigevent; /* signal number and value. */
/* internal members. */ struct aiocb *__next_prio; int __abs_prio; int __policy; int __error_code; __ssize_t __return_value; };
siginfo.h中的struct sigevent和union sigval
typedef struct sigevent { sigval_t sigev_value; int sigev_signo; int sigev_notify;
union { int _pad[__sigev_pad_size];
/* when sigev_signal and sigev_thread_id set, lwp id of the thread to receive the signal. */ __pid_t _tid;
/* posix names to access some of the members. */ # define sigev_notify_function _sigev_un._sigev_thread._function # define sigev_notify_attributes _sigev_un._sigev_thread._attribute
typedef union sigval { int sival_int; void *sival_ptr; } sigval_t;