Skip to content

Commit a1e1a90

Browse files
committed
Auto merge of #2391 - sunfishcode:sunfishcode/madv-soft-offline-riscv, r=JohnTitor
Define `MADV_SOFT_OFFLINE` for risc-v. Define `MADV_SOFT_OFFLINE` for riscv32 and riscv64 on *-unknown-linux-gnu.
2 parents 5fefaf6 + cbd280d commit a1e1a90

File tree

2 files changed

+2
-0
lines changed
  • src/unix/linux_like/linux/gnu

2 files changed

+2
-0
lines changed

src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ pub const O_SYNC: ::c_int = 1052672;
221221
pub const O_RSYNC: ::c_int = 1052672;
222222
pub const O_DSYNC: ::c_int = 4096;
223223
pub const O_FSYNC: ::c_int = 1052672;
224+
pub const MADV_SOFT_OFFLINE: ::c_int = 101;
224225
pub const MAP_GROWSDOWN: ::c_int = 256;
225226
pub const EDEADLK: ::c_int = 35;
226227
pub const ENAMETOOLONG: ::c_int = 36;

src/unix/linux_like/linux/gnu/b64/riscv64/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ pub const O_FSYNC: ::c_int = 1052672;
226226
pub const O_NOATIME: ::c_int = 262144;
227227
pub const O_PATH: ::c_int = 2097152;
228228
pub const O_TMPFILE: ::c_int = 4259840;
229+
pub const MADV_SOFT_OFFLINE: ::c_int = 101;
229230
pub const MAP_GROWSDOWN: ::c_int = 256;
230231
pub const EDEADLK: ::c_int = 35;
231232
pub const ENAMETOOLONG: ::c_int = 36;

0 commit comments

Comments
 (0)