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) {
3406
3406
headers ! {
3407
3407
cfg:
3408
3408
"asm/mman.h" ,
3409
+ [ gnu] : "linux/aio_abi.h" ,
3409
3410
"linux/can.h" ,
3410
3411
"linux/can/raw.h" ,
3411
3412
// FIXME: requires kernel headers >= 5.4.1.
Original file line number Diff line number Diff line change @@ -638,6 +638,7 @@ glob64
638
638
glob64_t
639
639
globfree
640
640
globfree64
641
+ iocb
641
642
lio_listio
642
643
mallinfo
643
644
mallinfo2
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ pub type __priority_which_t = ::c_uint;
3
3
pub type __rlimit_resource_t = :: c_uint ;
4
4
pub type Lmid_t = :: c_long ;
5
5
pub type regoff_t = :: c_int ;
6
+ pub type __kernel_rwf_t = :: c_int ;
6
7
7
8
cfg_if ! {
8
9
if #[ cfg( doc) ] {
@@ -432,6 +433,27 @@ s! {
432
433
pub len: :: __u32,
433
434
pub options: :: __u32,
434
435
}
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
+ }
435
457
}
436
458
437
459
impl siginfo_t {
You can’t perform that action at this time.
0 commit comments