File tree 2 files changed +1
-31
lines changed
src/unix/linux_like/emscripten
2 files changed +1
-31
lines changed Original file line number Diff line number Diff line change @@ -2739,7 +2739,6 @@ fn test_emscripten(target: &str) {
2739
2739
cfg. define ( "_GNU_SOURCE" , None ) ; // FIXME: ??
2740
2740
2741
2741
headers ! { cfg:
2742
- "aio.h" ,
2743
2742
"ctype.h" ,
2744
2743
"dirent.h" ,
2745
2744
"dlfcn.h" ,
@@ -2964,10 +2963,7 @@ fn test_emscripten(target: &str) {
2964
2963
( struct_ == "sigaction" && field == "sa_sigaction" ) ||
2965
2964
// sigval is actually a union, but we pretend it's a struct
2966
2965
// FIXME: is this necessary?
2967
- ( struct_ == "sigevent" && field == "sigev_value" ) ||
2968
- // aio_buf is "volatile void*" and Rust doesn't understand volatile
2969
- // FIXME: is this necessary?
2970
- ( struct_ == "aiocb" && field == "aio_buf" )
2966
+ ( struct_ == "sigevent" && field == "sigev_value" )
2971
2967
} ) ;
2972
2968
2973
2969
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,
@@ -915,15 +898,6 @@ pub const SYNC_FILE_RANGE_WAIT_AFTER: ::c_uint = 4;
915
898
916
899
pub const EAI_SYSTEM : :: c_int = -11 ;
917
900
918
- pub const AIO_CANCELED : :: c_int = 0 ;
919
- pub const AIO_NOTCANCELED : :: c_int = 1 ;
920
- pub const AIO_ALLDONE : :: c_int = 2 ;
921
- pub const LIO_READ : :: c_int = 0 ;
922
- pub const LIO_WRITE : :: c_int = 1 ;
923
- pub const LIO_NOP : :: c_int = 2 ;
924
- pub const LIO_WAIT : :: c_int = 0 ;
925
- pub const LIO_NOWAIT : :: c_int = 1 ;
926
-
927
901
pub const MREMAP_MAYMOVE : :: c_int = 1 ;
928
902
pub const MREMAP_FIXED : :: c_int = 2 ;
929
903
You can’t perform that action at this time.
0 commit comments