@@ -420,6 +420,11 @@ s! {
420420 pub portnfy_user: * mut :: c_void,
421421 }
422422
423+ pub struct aio_result_t {
424+ pub aio_return: :: ssize_t,
425+ pub aio_errno: :: c_int,
426+ }
427+
423428 pub struct exit_status {
424429 e_termination: :: c_short,
425430 e_exit: :: c_short,
@@ -1123,9 +1128,19 @@ pub const SIG_BLOCK: ::c_int = 1;
11231128pub const SIG_UNBLOCK : :: c_int = 2 ;
11241129pub const SIG_SETMASK : :: c_int = 3 ;
11251130
1131+ pub const AIO_CANCELED : :: c_int = 0 ;
1132+ pub const AIO_ALLDONE : :: c_int = 1 ;
1133+ pub const AIO_NOTCANCELED : :: c_int = 2 ;
1134+ pub const LIO_NOP : :: c_int = 0 ;
1135+ pub const LIO_READ : :: c_int = 1 ;
1136+ pub const LIO_WRITE : :: c_int = 2 ;
1137+ pub const LIO_NOWAIT : :: c_int = 0 ;
1138+ pub const LIO_WAIT : :: c_int = 1 ;
1139+
11261140pub const SIGEV_NONE : :: c_int = 1 ;
11271141pub const SIGEV_SIGNAL : :: c_int = 2 ;
11281142pub const SIGEV_THREAD : :: c_int = 3 ;
1143+ pub const SIGEV_PORT : :: c_int = 4 ;
11291144
11301145pub const CLD_EXITED : :: c_int = 1 ;
11311146pub const CLD_KILLED : :: c_int = 2 ;
@@ -3035,6 +3050,30 @@ extern "C" {
30353050
30363051 pub fn sync ( ) ;
30373052
3053+ pub fn aio_cancel ( fd : :: c_int , aiocbp : * mut aiocb ) -> :: c_int ;
3054+ pub fn aio_error ( aiocbp : * const aiocb ) -> :: c_int ;
3055+ pub fn aio_fsync ( op : :: c_int , aiocbp : * mut aiocb ) -> :: c_int ;
3056+ pub fn aio_read ( aiocbp : * mut aiocb ) -> :: c_int ;
3057+ pub fn aio_return ( aiocbp : * mut aiocb ) -> :: ssize_t ;
3058+ pub fn aio_suspend (
3059+ aiocb_list : * const * const aiocb ,
3060+ nitems : :: c_int ,
3061+ timeout : * const :: timespec ,
3062+ ) -> :: c_int ;
3063+ pub fn aio_waitn (
3064+ aiocb_list : * mut * mut aiocb ,
3065+ nent : :: c_uint ,
3066+ nwait : * mut :: c_uint ,
3067+ timeout : * const :: timespec ,
3068+ ) -> :: c_int ;
3069+ pub fn aio_write ( aiocbp : * mut aiocb ) -> :: c_int ;
3070+ pub fn lio_listio (
3071+ mode : :: c_int ,
3072+ aiocb_list : * const * mut aiocb ,
3073+ nitems : :: c_int ,
3074+ sevp : * mut sigevent ,
3075+ ) -> :: c_int ;
3076+
30383077 pub fn __major ( version : :: c_int , devnum : :: dev_t ) -> :: major_t ;
30393078 pub fn __minor ( version : :: c_int , devnum : :: dev_t ) -> :: minor_t ;
30403079 pub fn __makedev ( version : :: c_int , majdev : :: major_t , mindev : :: minor_t ) -> :: dev_t ;
0 commit comments