Skip to content

Commit 6ae1987

Browse files
committed
Add PROT_READ and PROT_WRITE for trusty
1 parent 93e4d7a commit 6ae1987

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libc-test/semver/trusty.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
AT_PAGESZ
22
CLOCK_REALTIME
33
MAP_FAILED
4+
PROT_READ
5+
PROT_WRITE
46
STDERR_FILENO
57
STDOUT_FILENO
68
calloc

src/trusty.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ s! {
5959
}
6060
}
6161

62+
pub const PROT_READ: i32 = 1;
63+
pub const PROT_WRITE: i32 = 2;
64+
6265
pub const CLOCK_REALTIME: clockid_t = 0;
6366

6467
pub const STDOUT_FILENO: ::c_int = 1;

0 commit comments

Comments
 (0)