@@ -237,7 +237,8 @@ impl ::Clone for devstat_select_mode {
237237
238238s ! {
239239 pub struct __c_anonymous_sigev_thread {
240- pub _function: * mut :: c_void, // Actually a function pointer
240+ pub _function: Option <extern "C" fn ( :: sigval) -> * mut :: c_void>,
241+ //pub _function: *mut ::c_void, // Actually a function pointer
241242 pub _attribute: * mut :: pthread_attr_t,
242243 }
243244
@@ -1340,20 +1341,24 @@ s! {
13401341}
13411342
13421343s_no_extra_traits ! {
1344+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
1345+ pub struct __aiocb_private {
1346+ status: :: c_long,
1347+ error: :: c_long,
1348+ spare: * mut :: c_void
1349+ }
1350+
13431351 #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
13441352 pub struct aiocb {
13451353 pub aio_fildes: :: c_int,
13461354 pub aio_offset: :: off_t,
13471355 pub aio_buf: * mut :: c_void,
13481356 pub aio_nbytes: :: size_t,
1349- __unused1 : [ :: c_int; 2 ] ,
1350- __unused2 : * mut :: c_void,
1357+ __spare__ : [ :: c_int; 2 ] ,
1358+ __spare2__ : * mut :: c_void,
13511359 pub aio_lio_opcode: :: c_int,
13521360 pub aio_reqprio: :: c_int,
1353- // unused 3 through 5 are the __aiocb_private structure
1354- __unused3: :: c_long,
1355- __unused4: :: c_long,
1356- __unused5: * mut :: c_void,
1361+ _aiocb_private: __aiocb_private,
13571362 pub aio_sigevent: sigevent,
13581363 }
13591364
0 commit comments