File tree Expand file tree Collapse file tree 2 files changed +1
-31
lines changed
src/unix/linux_like/emscripten Expand file tree Collapse file tree 2 files changed +1
-31
lines changed Original file line number Diff line number Diff line change @@ -2794,7 +2794,6 @@ fn test_emscripten(target: &str) {
2794
2794
cfg. define ( "_GNU_SOURCE" , None ) ; // FIXME: ??
2795
2795
2796
2796
headers ! { cfg:
2797
- "aio.h" ,
2798
2797
"ctype.h" ,
2799
2798
"dirent.h" ,
2800
2799
"dlfcn.h" ,
@@ -3019,10 +3018,7 @@ fn test_emscripten(target: &str) {
3019
3018
( struct_ == "sigaction" && field == "sa_sigaction" ) ||
3020
3019
// sigval is actually a union, but we pretend it's a struct
3021
3020
// FIXME: is this necessary?
3022
- ( struct_ == "sigevent" && field == "sigev_value" ) ||
3023
- // aio_buf is "volatile void*" and Rust doesn't understand volatile
3024
- // FIXME: is this necessary?
3025
- ( struct_ == "aiocb" && field == "aio_buf" )
3021
+ ( struct_ == "sigevent" && field == "sigev_value" )
3026
3022
} ) ;
3027
3023
3028
3024
cfg. skip_field ( move |struct_, field| {
Original file line number Diff line number Diff line change @@ -171,23 +171,6 @@ s! {
171
171
pub sem_flg: :: c_short,
172
172
}
173
173
174
- pub struct aiocb {
175
- pub aio_fildes: :: c_int,
176
- pub aio_lio_opcode: :: c_int,
177
- pub aio_reqprio: :: c_int,
178
- pub aio_buf: * mut :: c_void,
179
- pub aio_nbytes: :: size_t,
180
- pub aio_sigevent: :: sigevent,
181
- __td: * mut :: c_void,
182
- __lock: [ :: c_int; 2 ] ,
183
- __err: :: c_int,
184
- __ret: :: ssize_t,
185
- pub aio_offset: off_t,
186
- __next: * mut :: c_void,
187
- __prev: * mut :: c_void,
188
- __dummy4: [ :: c_char; 24 ] ,
189
- }
190
-
191
174
pub struct sigaction {
192
175
pub sa_sigaction: :: sighandler_t,
193
176
pub sa_mask: :: sigset_t,
@@ -917,15 +900,6 @@ pub const SYNC_FILE_RANGE_WAIT_AFTER: ::c_uint = 4;
917
900
918
901
pub const EAI_SYSTEM : :: c_int = -11 ;
919
902
920
- pub const AIO_CANCELED : :: c_int = 0 ;
921
- pub const AIO_NOTCANCELED : :: c_int = 1 ;
922
- pub const AIO_ALLDONE : :: c_int = 2 ;
923
- pub const LIO_READ : :: c_int = 0 ;
924
- pub const LIO_WRITE : :: c_int = 1 ;
925
- pub const LIO_NOP : :: c_int = 2 ;
926
- pub const LIO_WAIT : :: c_int = 0 ;
927
- pub const LIO_NOWAIT : :: c_int = 1 ;
928
-
929
903
pub const MREMAP_MAYMOVE : :: c_int = 1 ;
930
904
pub const MREMAP_FIXED : :: c_int = 2 ;
931
905
You can’t perform that action at this time.
0 commit comments