File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed
src/unix/linux_like/linux/gnu Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -3406,6 +3406,7 @@ fn test_linux(target: &str) {
34063406 headers ! {
34073407 cfg:
34083408 "asm/mman.h" ,
3409+ [ gnu] : "linux/aio_abi.h" ,
34093410 "linux/can.h" ,
34103411 "linux/can/raw.h" ,
34113412 // FIXME: requires kernel headers >= 5.4.1.
Original file line number Diff line number Diff line change @@ -638,6 +638,7 @@ glob64
638638glob64_t
639639globfree
640640globfree64
641+ iocb
641642lio_listio
642643mallinfo
643644mallinfo2
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ pub type __priority_which_t = ::c_uint;
33pub type __rlimit_resource_t = :: c_uint ;
44pub type Lmid_t = :: c_long ;
55pub type regoff_t = :: c_int ;
6+ pub type __kernel_rwf_t = :: c_int ;
67
78cfg_if ! {
89 if #[ cfg( doc) ] {
@@ -432,6 +433,27 @@ s! {
432433 pub len: :: __u32,
433434 pub options: :: __u32,
434435 }
436+
437+ pub struct iocb {
438+ pub aio_data: :: __u64,
439+ #[ cfg( target_endian = "little" ) ]
440+ pub aio_key: :: __u32,
441+ #[ cfg( target_endian = "little" ) ]
442+ pub aio_rw_flags: :: __kernel_rwf_t,
443+ #[ cfg( target_endian = "big" ) ]
444+ pub aio_rw_flags: :: __kernel_rwf_t,
445+ #[ cfg( target_endian = "big" ) ]
446+ pub aio_key: :: __u32,
447+ pub aio_lio_opcode: :: __u16,
448+ pub aio_reqprio: :: __s16,
449+ pub aio_fildes: :: __u32,
450+ pub aio_buf: :: __u64,
451+ pub aio_nbytes: :: __u64,
452+ pub aio_offset: :: __s64,
453+ aio_reserved2: :: __u64,
454+ pub aio_flags: :: __u32,
455+ pub aio_resfd: :: __u32,
456+ }
435457}
436458
437459impl siginfo_t {
You can’t perform that action at this time.
0 commit comments