remove reference to clone

This commit is contained in:
auronandace
2026-02-19 12:20:54 +00:00
parent dcca06f80e
commit 2d647590a7
+4 -3
View File
@@ -6,8 +6,10 @@ use core::{
};
use redox_rt::{
RtTcb,
proc::*,
protocol::{WaitFlags, wifstopped},
sys::{Resugid, WaitpidTarget},
thread::rlct_clone_impl,
};
use syscall::{
self, EILSEQ, Error, MODE_PERM,
@@ -55,7 +57,6 @@ use crate::{
};
pub use redox_rt::proc::FdGuard;
use redox_rt::{proc::*, thread::rlct_clone_impl};
mod epoll;
mod event;
@@ -312,7 +313,7 @@ impl Pal for Sys {
// TODO: Find way to avoid lock.
let _guard = CLONE_LOCK.write();
Ok(clone::fork_impl(&redox_rt::proc::ForkArgs::Managed)? as pid_t)
Ok(fork_impl(&redox_rt::proc::ForkArgs::Managed)? as pid_t)
}
fn fstat(fildes: c_int, mut buf: Out<stat>) -> Result<()> {
@@ -956,7 +957,7 @@ impl Pal for Sys {
os_specific: &mut OsSpecific,
) -> Result<crate::pthread::OsTid> {
let _guard = CLONE_LOCK.read();
let res = unsafe { clone::rlct_clone_impl(stack, os_specific) };
let res = unsafe { redox_rt::thread::rlct_clone_impl(stack, os_specific) };
res.map(|thread_fd| crate::pthread::OsTid { thread_fd })
.map_err(|error| Errno(error.errno))