File tree Expand file tree Collapse file tree 4 files changed +19
-3
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,17 @@ macro_rules! expand_align {
7
7
target_arch = "mips64" ,
8
8
target_arch = "s390x" ,
9
9
target_arch = "sparc64" ,
10
- target_arch = "aarch64" ) ,
10
+ target_arch = "aarch64" ,
11
+ target_arch = "riscv64" ) ,
11
12
repr( align( 4 ) ) ) ]
12
13
#[ cfg_attr( not( any( target_pointer_width = "32" ,
13
14
target_arch = "x86_64" ,
14
15
target_arch = "powerpc64" ,
15
16
target_arch = "mips64" ,
16
17
target_arch = "s390x" ,
17
18
target_arch = "sparc64" ,
18
- target_arch = "aarch64" ) ) ,
19
+ target_arch = "aarch64" ,
20
+ target_arch = "riscv64" ) ) ,
19
21
repr( align( 8 ) ) ) ]
20
22
pub struct pthread_mutexattr_t {
21
23
#[ doc( hidden) ]
Original file line number Diff line number Diff line change @@ -205,11 +205,22 @@ s! {
205
205
pub l_len: :: off_t,
206
206
pub l_pid: :: pid_t,
207
207
}
208
+
209
+ pub struct flock64 {
210
+ pub l_type: :: c_short,
211
+ pub l_whence: :: c_short,
212
+ pub l_start: :: off64_t,
213
+ pub l_len: :: off64_t,
214
+ pub l_pid: :: pid_t,
215
+ }
208
216
}
209
217
210
218
pub const POSIX_FADV_DONTNEED : :: c_int = 4 ;
211
219
pub const POSIX_FADV_NOREUSE : :: c_int = 5 ;
212
220
pub const VEOF : usize = 4 ;
221
+ pub const RTLD_DEEPBIND : :: c_int = 0x8 ;
222
+ pub const RTLD_GLOBAL : :: c_int = 0x100 ;
223
+ pub const RTLD_NOLOAD : :: c_int = 0x4 ;
213
224
pub const TIOCGSOFTCAR : :: c_ulong = 21529 ;
214
225
pub const TIOCSSOFTCAR : :: c_ulong = 21530 ;
215
226
pub const TIOCGRS485 : :: c_int = 21550 ;
Original file line number Diff line number Diff line change @@ -907,7 +907,8 @@ cfg_if! {
907
907
target_arch = "arm" ,
908
908
target_arch = "x86" ,
909
909
target_arch = "x86_64" ,
910
- target_arch = "s390x"
910
+ target_arch = "s390x" ,
911
+ target_arch = "riscv64"
911
912
) ) ] {
912
913
pub const PTHREAD_STACK_MIN : :: size_t = 16384 ;
913
914
} else if #[ cfg( any(
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ macro_rules! expand_align {
7
7
target_arch = "mips64" ,
8
8
target_arch = "s390x" ,
9
9
target_arch = "sparc64" ,
10
+ target_arch = "riscv64" ,
10
11
all( target_arch = "aarch64" ,
11
12
target_env = "musl" ) ) ) ]
12
13
__align: [ :: c_int; 0 ] ,
@@ -15,6 +16,7 @@ macro_rules! expand_align {
15
16
target_arch = "mips64" ,
16
17
target_arch = "s390x" ,
17
18
target_arch = "sparc64" ,
19
+ target_arch = "riscv64" ,
18
20
all( target_arch = "aarch64" ,
19
21
target_env = "musl" ) ) ) ) ]
20
22
__align: [ :: c_long; 0 ] ,
You can’t perform that action at this time.
0 commit comments