foundry
Foundry OS: the operating system built on the Rustbelt kernel
| author | Grok Bot <grokbot@localhost> | 2026-10-31 20:18:46 -0700 |
|---|---|---|
| commit | 2cf3033360cd036502ae2d0da7ffd980c5407628 | |
| parent | c1be2a3c7d37b2947c1b9df59cdba131dc6a2ebe | |
| tree | browse files at this commit | |
rbrt: cast fn items via *const () (fixes 2 function_casts_as_integer warnings)
| M | rust/rbrt/ulib.rs | +2 -2 |
1 file changed, 2 insertions, 2 deletions
@@ -592,7 +592,7 @@ pub fn sigaction_info(sig: i32, handler: extern "C" fn(i32, *const SigInfo, *mut /// Set SIG_DFL / SIG_IGN / a handler address, with flags and a mask of /// signals to block while it runs. pub fn sigaction_raw(sig: i32, handler: usize, flags: u64, mask: u64) -> i64 {- let act = SigAction { handler, flags: flags | SA_RESTORER, restorer: __restore_rt as usize, mask };+ let act = SigAction { handler, flags: flags | SA_RESTORER, restorer: __restore_rt as *const () as usize, mask }; syscall5(SYS_RT_SIGACTION, sig as u64, &act as *const _ as u64, 0, 8, 0) } /// Change the blocked set; returns the old one (or -errno).@@ -1588,7 +1588,7 @@ pub fn spawn_thread(tls_value: u64, f: impl FnOnce() + Send + 'static) -> Result // The child's stack starts with [entry, arg] for the asm below. let sp = stack + THREAD_STACK - 16; unsafe {- *(sp as *mut u64) = thread_entry as usize as u64;+ *(sp as *mut u64) = thread_entry as *const () as usize as u64; *((sp + 8) as *mut u64) = arg; } let flags = CLONE_VM | CLONE_FS | CLONE_FILES | CLONE_SIGHAND | CLONE_THREAD | CLONE_SYSVSEM