File tree Expand file tree Collapse file tree 3 files changed +35
-5
lines changed Expand file tree Collapse file tree 3 files changed +35
-5
lines changed Original file line number Diff line number Diff line change @@ -389,6 +389,24 @@ s! {
389
389
#[ cfg( target_pointer_width = "64" ) ]
390
390
__size: [ c_char; 32 ] ,
391
391
}
392
+
393
+ pub struct mbstate_t {
394
+ __count: c_int,
395
+ __wchb: [ c_char; 4 ] ,
396
+ }
397
+
398
+ pub struct fpos64_t {
399
+ __pos: off64_t,
400
+ __state: crate :: mbstate_t,
401
+ }
402
+
403
+ pub struct fpos_t {
404
+ #[ cfg( not( gnu_file_offset_bits64) ) ]
405
+ __pos: off_t,
406
+ #[ cfg( gnu_file_offset_bits64) ]
407
+ __pos: off64_t,
408
+ __state: crate :: mbstate_t,
409
+ }
392
410
}
393
411
394
412
impl siginfo_t {
Original file line number Diff line number Diff line change @@ -74,9 +74,14 @@ pub type iconv_t = *mut c_void;
74
74
pub type sctp_assoc_t = __s32 ;
75
75
76
76
pub type eventfd_t = u64 ;
77
- missing ! {
78
- #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
79
- pub enum fpos64_t { } // FIXME(linux): fill this out with a struct
77
+
78
+ cfg_if ! {
79
+ if #[ cfg( not( target_env = "gnu" ) ) ] {
80
+ missing! {
81
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
82
+ pub enum fpos64_t { } // FIXME(linux): fill this out with a struct
83
+ }
84
+ }
80
85
}
81
86
82
87
e ! {
Original file line number Diff line number Diff line change @@ -539,11 +539,18 @@ cfg_if! {
539
539
}
540
540
}
541
541
542
+ cfg_if ! {
543
+ if #[ cfg( not( target_env = "gnu" ) ) ] {
544
+ missing! {
545
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
546
+ pub enum fpos_t { } // FIXME(unix): fill this out with a struct
547
+ }
548
+ }
549
+ }
550
+
542
551
missing ! {
543
552
#[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
544
553
pub enum FILE { }
545
- #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
546
- pub enum fpos_t { } // FIXME(unix): fill this out with a struct
547
554
}
548
555
549
556
extern "C" {
You can’t perform that action at this time.
0 commit comments