@@ -420,6 +420,24 @@ s! {
420
420
pub portnfy_user: * mut :: c_void,
421
421
}
422
422
423
+ pub struct aio_result_t {
424
+ pub aio_return: :: ssize_t,
425
+ pub aio_errno: :: c_int,
426
+ }
427
+
428
+ pub struct aiocb {
429
+ pub aio_fildes: :: c_int,
430
+ pub aio_buf: * mut :: c_void,
431
+ pub aio_nbytes: :: size_t,
432
+ pub aio_offset: :: off_t,
433
+ pub aio_reqprio: :: c_int,
434
+ pub aio_sigevent: sigevent,
435
+ pub aio_lio_opcode: :: c_int,
436
+ pub aio_resultp: :: aio_result_t,
437
+ pub aio_state: :: c_int,
438
+ pub aio__pad: [ :: c_int; 1 ] ,
439
+ }
440
+
423
441
pub struct exit_status {
424
442
e_termination: :: c_short,
425
443
e_exit: :: c_short,
@@ -1123,9 +1141,19 @@ pub const SIG_BLOCK: ::c_int = 1;
1123
1141
pub const SIG_UNBLOCK : :: c_int = 2 ;
1124
1142
pub const SIG_SETMASK : :: c_int = 3 ;
1125
1143
1144
+ pub const AIO_CANCELED : :: c_int = 0 ;
1145
+ pub const AIO_ALLDONE : :: c_int = 1 ;
1146
+ pub const AIO_NOTCANCELED : :: c_int = 2 ;
1147
+ pub const LIO_NOP : :: c_int = 0 ;
1148
+ pub const LIO_READ : :: c_int = 1 ;
1149
+ pub const LIO_WRITE : :: c_int = 2 ;
1150
+ pub const LIO_NOWAIT : :: c_int = 0 ;
1151
+ pub const LIO_WAIT : :: c_int = 1 ;
1152
+
1126
1153
pub const SIGEV_NONE : :: c_int = 1 ;
1127
1154
pub const SIGEV_SIGNAL : :: c_int = 2 ;
1128
1155
pub const SIGEV_THREAD : :: c_int = 3 ;
1156
+ pub const SIGEV_PORT : :: c_int = 4 ;
1129
1157
1130
1158
pub const CLD_EXITED : :: c_int = 1 ;
1131
1159
pub const CLD_KILLED : :: c_int = 2 ;
@@ -3035,6 +3063,30 @@ extern "C" {
3035
3063
3036
3064
pub fn sync ( ) ;
3037
3065
3066
+ pub fn aio_cancel ( fd : :: c_int , aiocbp : * mut aiocb ) -> :: c_int ;
3067
+ pub fn aio_error ( aiocbp : * const aiocb ) -> :: c_int ;
3068
+ pub fn aio_fsync ( op : :: c_int , aiocbp : * mut aiocb ) -> :: c_int ;
3069
+ pub fn aio_read ( aiocbp : * mut aiocb ) -> :: c_int ;
3070
+ pub fn aio_return ( aiocbp : * mut aiocb ) -> :: ssize_t ;
3071
+ pub fn aio_suspend (
3072
+ aiocb_list : * const * const aiocb ,
3073
+ nitems : :: c_int ,
3074
+ timeout : * const :: timespec ,
3075
+ ) -> :: c_int ;
3076
+ pub fn aio_waitn (
3077
+ aiocb_list : * mut * mut aiocb ,
3078
+ nent : :: c_uint ,
3079
+ nwait : * mut :: c_uint ,
3080
+ timeout : * const :: timespec ,
3081
+ ) -> :: c_int ;
3082
+ pub fn aio_write ( aiocbp : * mut aiocb ) -> :: c_int ;
3083
+ pub fn lio_listio (
3084
+ mode : :: c_int ,
3085
+ aiocb_list : * const * mut aiocb ,
3086
+ nitems : :: c_int ,
3087
+ sevp : * mut sigevent ,
3088
+ ) -> :: c_int ;
3089
+
3038
3090
pub fn __major ( version : :: c_int , devnum : :: dev_t ) -> :: major_t ;
3039
3091
pub fn __minor ( version : :: c_int , devnum : :: dev_t ) -> :: minor_t ;
3040
3092
pub fn __makedev ( version : :: c_int , majdev : :: major_t , mindev : :: minor_t ) -> :: dev_t ;
0 commit comments