File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -786,6 +786,7 @@ fn test_solarish(target: &str) {
786
786
787
787
headers ! {
788
788
cfg:
789
+ "aio.h" ,
789
790
"ctype.h" ,
790
791
"dirent.h" ,
791
792
"dlfcn.h" ,
@@ -948,6 +949,11 @@ fn test_solarish(target: &str) {
948
949
}
949
950
} ) ;
950
951
952
+ cfg. skip_field_type ( move |struct_, field| {
953
+ // aio_buf is "volatile void*"
954
+ struct_ == "aiocb" && field == "aio_buf"
955
+ } ) ;
956
+
951
957
cfg. skip_field ( move |s, field| {
952
958
match s {
953
959
// C99 sizing on this is tough
@@ -1026,6 +1032,9 @@ fn test_solarish(target: &str) {
1026
1032
// excluded from the tests.
1027
1033
"getifaddrs" if is_illumos => true ,
1028
1034
1035
+ // FIXME: Unsound because `restrict`
1036
+ "lio_listio" => true ,
1037
+
1029
1038
_ => false ,
1030
1039
}
1031
1040
} ) ;
Original file line number Diff line number Diff line change 420
420
pub portnfy_user: * mut :: c_void,
421
421
}
422
422
423
- pub struct aio_result {
423
+ pub struct aio_result_t {
424
424
aio_return: :: ssize_t,
425
425
aio_errno: :: c_int,
426
426
}
433
433
pub aio_reqprio: :: c_int,
434
434
pub aio_sigevent: sigevent,
435
435
pub aio_lio_opcode: :: c_int,
436
- _aio_resultp: :: aio_result ,
436
+ _aio_resultp: :: aio_result_t ,
437
437
_aio_state: :: c_int,
438
438
_aio_pad: :: c_int
439
439
}
@@ -3075,10 +3075,10 @@ extern "C" {
3075
3075
) -> :: c_int ;
3076
3076
pub fn aio_waitn (
3077
3077
aiocb_list : * mut * mut aiocb ,
3078
- nent : :: c_int ,
3079
- nwait : * mut :: c_int ,
3078
+ nent : :: c_uint ,
3079
+ nwait : * mut :: c_uint ,
3080
3080
timeout : * const :: timespec ,
3081
- ) ;
3081
+ ) -> :: c_int ;
3082
3082
pub fn aio_write ( aiocbp : * mut aiocb ) -> :: c_int ;
3083
3083
pub fn lio_listio (
3084
3084
mode : :: c_int ,
You can’t perform that action at this time.
0 commit comments