Update USB boot docs and relibc patch overlays
This commit is contained in:
@@ -1,18 +1,10 @@
|
||||
diff --git a/src/header/fcntl/mod.rs b/src/header/fcntl/mod.rs
|
||||
--- a/src/header/fcntl/mod.rs
|
||||
+++ b/src/header/fcntl/mod.rs
|
||||
@@ -8,6 +8,7 @@ use crate::{
|
||||
c_str::CStr,
|
||||
error::{Errno, ResultExt},
|
||||
header::errno::ENAMETOOLONG,
|
||||
@@ -9,0 +10 @@
|
||||
+ header::unistd::close,
|
||||
platform::{
|
||||
Pal, Sys,
|
||||
types::{
|
||||
@@ -78,6 +79,23 @@ pub unsafe extern "C" fn fcntl(fildes: c_int, cmd: c_int, mut __valist: ...) ->
|
||||
_ => 0,
|
||||
};
|
||||
|
||||
@@ -75,0 +77,17 @@
|
||||
+
|
||||
+ if cmd == F_DUPFD_CLOEXEC {
|
||||
+ let new_fd = Sys::fcntl(fildes, F_DUPFD_CLOEXEC, arg).or_minus_one_errno();
|
||||
+ if new_fd >= 0 {
|
||||
@@ -29,6 +21,3 @@ diff --git a/src/header/fcntl/mod.rs b/src/header/fcntl/mod.rs
|
||||
+ }
|
||||
+ return new_fd;
|
||||
+ }
|
||||
+
|
||||
Sys::fcntl(fildes, cmd, arg).or_minus_one_errno()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user