-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
113 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
docker/test-base/patches/compiler_builtins+m68k-unknown-linux-gnu.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/src/mem/mod.rs b/src/mem/mod.rs | ||
index ccf1917..dcbbf52 100644 | ||
--- a/src/mem/mod.rs | ||
+++ b/src/mem/mod.rs | ||
@@ -130,6 +130,7 @@ fn memset_element_unordered_atomic<T>(s: *mut T, c: u8, bytes: usize) | ||
} | ||
} | ||
|
||
+#[cfg(not(target_arch = "m68k"))] | ||
intrinsics! { | ||
#[cfg(target_has_atomic_load_store = "8")] | ||
pub unsafe extern "C" fn __llvm_memcpy_element_unordered_atomic_1(dest: *mut u8, src: *const u8, bytes: usize) -> () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 81 additions & 0 deletions
81
docker/test-base/patches/libc+x86_64-unknown-dragonfly.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
diff --git a/libc-test/semver/dragonfly.txt b/libc-test/semver/dragonfly.txt | ||
index 8135be3b4..febed0b3a 100644 | ||
--- a/libc-test/semver/dragonfly.txt | ||
+++ b/libc-test/semver/dragonfly.txt | ||
@@ -326,6 +326,9 @@ GLOB_NOESCAPE | ||
GLOB_NOMATCH | ||
GLOB_NOSORT | ||
GLOB_NOSPACE | ||
+GRND_INSECURE | ||
+GRND_NONBLOCK | ||
+GRND_RANDOM | ||
HW_BYTEORDER | ||
HW_DISKNAMES | ||
HW_DISKSTATS | ||
@@ -1308,6 +1311,7 @@ fstatfs | ||
futimes | ||
getdomainname | ||
getdtablesize | ||
+getentropy | ||
getgrent | ||
getgrent_r | ||
getgrgid | ||
@@ -1331,6 +1335,7 @@ getprogname | ||
getpwent | ||
getpwent_r | ||
getpwnam_r | ||
+getrandom | ||
getresgid | ||
getresuid | ||
getrlimit | ||
diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs | ||
index 78314084c..195c6cb3e 100644 | ||
--- a/src/unix/bsd/freebsdlike/freebsd/mod.rs | ||
+++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs | ||
@@ -3875,11 +3875,6 @@ fn clone(&self) -> dot3Vendors { | ||
// for use with fspacectl | ||
pub const SPACECTL_DEALLOC: ::c_int = 1; | ||
|
||
-// For getrandom() | ||
-pub const GRND_NONBLOCK: ::c_uint = 0x1; | ||
-pub const GRND_RANDOM: ::c_uint = 0x2; | ||
-pub const GRND_INSECURE: ::c_uint = 0x4; | ||
- | ||
// For realhostname* api | ||
pub const HOSTNAME_FOUND: ::c_int = 0; | ||
pub const HOSTNAME_INCORRECTNAME: ::c_int = 1; | ||
@@ -5393,8 +5388,6 @@ pub fn shm_rename( | ||
|
||
pub fn fdatasync(fd: ::c_int) -> ::c_int; | ||
|
||
- pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t; | ||
- pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; | ||
pub fn elf_aux_info(aux: ::c_int, buf: *mut ::c_void, buflen: ::c_int) -> ::c_int; | ||
pub fn setproctitle_fast(fmt: *const ::c_char, ...); | ||
pub fn timingsafe_bcmp(a: *const ::c_void, b: *const ::c_void, len: ::size_t) -> ::c_int; | ||
diff --git a/src/unix/bsd/freebsdlike/mod.rs b/src/unix/bsd/freebsdlike/mod.rs | ||
index 00a944e42..9b555e42e 100644 | ||
--- a/src/unix/bsd/freebsdlike/mod.rs | ||
+++ b/src/unix/bsd/freebsdlike/mod.rs | ||
@@ -1456,6 +1456,11 @@ fn hash<H: ::hash::Hasher>(&self, state: &mut H) { | ||
pub const RB_MUTE: ::c_int = 0x10000; | ||
pub const RB_SELFTEST: ::c_int = 0x20000; | ||
|
||
+// For getrandom() | ||
+pub const GRND_NONBLOCK: ::c_uint = 0x1; | ||
+pub const GRND_RANDOM: ::c_uint = 0x2; | ||
+pub const GRND_INSECURE: ::c_uint = 0x4; | ||
+ | ||
safe_f! { | ||
pub {const} fn WIFCONTINUED(status: ::c_int) -> bool { | ||
status == 0x13 | ||
@@ -1829,6 +1834,9 @@ pub fn mq_timedsend( | ||
abs_timeout: *const ::timespec, | ||
) -> ::c_int; | ||
pub fn mq_unlink(name: *const ::c_char) -> ::c_int; | ||
+ | ||
+ pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t; | ||
+ pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; | ||
} | ||
|
||
#[link(name = "util")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters