File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed
src/unix/linux_like/linux/musl Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,17 @@ use crate::prelude::*;
4
4
pub type wchar_t = i32 ;
5
5
6
6
s ! {
7
+ pub struct termios {
8
+ pub c_iflag: crate :: tcflag_t,
9
+ pub c_oflag: crate :: tcflag_t,
10
+ pub c_cflag: crate :: tcflag_t,
11
+ pub c_lflag: crate :: tcflag_t,
12
+ pub c_cc: [ crate :: cc_t; crate :: NCCS ] ,
13
+ pub c_line: crate :: cc_t,
14
+ pub __c_ispeed: crate :: speed_t,
15
+ pub __c_ospeed: crate :: speed_t,
16
+ }
17
+
7
18
pub struct stat {
8
19
pub st_dev: crate :: dev_t,
9
20
pub st_ino: crate :: ino_t,
Original file line number Diff line number Diff line change @@ -8,6 +8,17 @@ pub type nlink_t = u64;
8
8
pub type blksize_t = c_long ;
9
9
10
10
s ! {
11
+ pub struct termios {
12
+ pub c_iflag: crate :: tcflag_t,
13
+ pub c_oflag: crate :: tcflag_t,
14
+ pub c_cflag: crate :: tcflag_t,
15
+ pub c_lflag: crate :: tcflag_t,
16
+ pub c_cc: [ crate :: cc_t; crate :: NCCS ] ,
17
+ pub c_line: crate :: cc_t,
18
+ pub __c_ispeed: crate :: speed_t,
19
+ pub __c_ospeed: crate :: speed_t,
20
+ }
21
+
11
22
pub struct stat {
12
23
pub st_dev: crate :: dev_t,
13
24
pub st_ino: crate :: ino_t,
Original file line number Diff line number Diff line change 203
203
__f_reserved: [ c_int; 6 ] ,
204
204
}
205
205
206
+ // PowerPC implementations are special, see the subfolders
207
+ #[ cfg( not( any( target_arch = "powerpc" , target_arch = "powerpc64" ) ) ) ]
206
208
pub struct termios {
207
209
pub c_iflag: crate :: tcflag_t,
208
210
pub c_oflag: crate :: tcflag_t,
You can’t perform that action at this time.
0 commit comments