Skip to content

Commit ad43e8e

Browse files
authored
Merge pull request #4344 from hermit-os/hermit-af
hermit: add/fix `AF_*` values
2 parents e289552 + 13ac7db commit ad43e8e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

libc-test/semver/hermit.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
AF_INET
22
AF_INET6
3+
AF_UNSPEC
4+
AF_VSOCK
35
CLOCK_MONOTONIC
46
CLOCK_REALTIME
57
DT_BLK

src/hermit.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,10 @@ s! {
114114
}
115115
}
116116

117-
pub const AF_INET: i32 = 0;
117+
pub const AF_UNSPEC: i32 = 0;
118+
pub const AF_INET: i32 = 3;
118119
pub const AF_INET6: i32 = 1;
120+
pub const AF_VSOCK: i32 = 2;
119121

120122
pub const CLOCK_REALTIME: clockid_t = 1;
121123
pub const CLOCK_MONOTONIC: clockid_t = 4;

0 commit comments

Comments
 (0)