Skip to content

Commit 7a882bf

Browse files
mkroeningtgross35
authored andcommitted
hermit: add AF_VSOCK
(backport <rust-lang#4344>) (cherry picked from commit 248734e)
1 parent bce5fbd commit 7a882bf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libc-test/semver/hermit.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
AF_INET
22
AF_INET6
33
AF_UNSPEC
4+
AF_VSOCK
45
CLOCK_MONOTONIC
56
CLOCK_REALTIME
67
DT_BLK

src/hermit.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ s! {
117117
pub const AF_UNSPEC: i32 = 0;
118118
pub const AF_INET: i32 = 0;
119119
pub const AF_INET6: i32 = 1;
120+
pub const AF_VSOCK: i32 = 2;
120121

121122
pub const CLOCK_REALTIME: clockid_t = 1;
122123
pub const CLOCK_MONOTONIC: clockid_t = 4;

0 commit comments

Comments
 (0)