@@ -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,
@@ -1133,9 +1138,19 @@ pub const SIG_BLOCK: ::c_int = 1;
11331138pub const SIG_UNBLOCK : :: c_int = 2 ;
11341139pub const SIG_SETMASK : :: c_int = 3 ;
11351140
1141+ pub const AIO_CANCELED : :: c_int = 0 ;
1142+ pub const AIO_ALLDONE : :: c_int = 1 ;
1143+ pub const AIO_NOTCANCELED : :: c_int = 2 ;
1144+ pub const LIO_NOP : :: c_int = 0 ;
1145+ pub const LIO_READ : :: c_int = 1 ;
1146+ pub const LIO_WRITE : :: c_int = 2 ;
1147+ pub const LIO_NOWAIT : :: c_int = 0 ;
1148+ pub const LIO_WAIT : :: c_int = 1 ;
1149+
11361150pub const SIGEV_NONE : :: c_int = 1 ;
11371151pub const SIGEV_SIGNAL : :: c_int = 2 ;
11381152pub const SIGEV_THREAD : :: c_int = 3 ;
1153+ pub const SIGEV_PORT : :: c_int = 4 ;
11391154
11401155pub const CLD_EXITED : :: c_int = 1 ;
11411156pub const CLD_KILLED : :: c_int = 2 ;
@@ -3045,6 +3060,30 @@ extern "C" {
30453060
30463061 pub fn sync ( ) ;
30473062
3063+ pub fn aio_cancel ( fd : :: c_int , aiocbp : * mut aiocb ) -> :: c_int ;
3064+ pub fn aio_error ( aiocbp : * const aiocb ) -> :: c_int ;
3065+ pub fn aio_fsync ( op : :: c_int , aiocbp : * mut aiocb ) -> :: c_int ;
3066+ pub fn aio_read ( aiocbp : * mut aiocb ) -> :: c_int ;
3067+ pub fn aio_return ( aiocbp : * mut aiocb ) -> :: ssize_t ;
3068+ pub fn aio_suspend (
3069+ aiocb_list : * const * const aiocb ,
3070+ nitems : :: c_int ,
3071+ timeout : * const :: timespec ,
3072+ ) -> :: c_int ;
3073+ pub fn aio_waitn (
3074+ aiocb_list : * mut * mut aiocb ,
3075+ nent : :: c_uint ,
3076+ nwait : * mut :: c_uint ,
3077+ timeout : * const :: timespec ,
3078+ ) -> :: c_int ;
3079+ pub fn aio_write ( aiocbp : * mut aiocb ) -> :: c_int ;
3080+ pub fn lio_listio (
3081+ mode : :: c_int ,
3082+ aiocb_list : * const * mut aiocb ,
3083+ nitems : :: c_int ,
3084+ sevp : * mut sigevent ,
3085+ ) -> :: c_int ;
3086+
30483087 pub fn __major ( version : :: c_int , devnum : :: dev_t ) -> :: major_t ;
30493088 pub fn __minor ( version : :: c_int , devnum : :: dev_t ) -> :: minor_t ;
30503089 pub fn __makedev ( version : :: c_int , majdev : :: major_t , mindev : :: minor_t ) -> :: dev_t ;
0 commit comments