guard: touchups

This commit is contained in:
Matthew LeVan 2024-02-16 13:35:56 -05:00
parent 4cfd3ca1e7
commit 446efcd8d8
3 changed files with 8 additions and 8 deletions

View File

@ -605,7 +605,7 @@ fn work_swap(context: &mut Context, job: Noun, goof: Noun) {
context.work_swap(ovo, fec);
}
Err(goof_crud) => {
eprintln!("\r serf: bail");
eprintln!("\rserf: bail");
let stack = &mut context.nock_context.stack;
let lud = T(stack, &[goof_crud, goof, D(0)]);
context.work_bail(lud);

View File

@ -124,7 +124,7 @@ _signal_handler(int sig, siginfo_t *si, void *unused)
// fprintf(stderr, "guard: hit: %p\r\n", si->si_addr);
err = _focus_guard();
if (err) {
fprintf(stderr, "guard: handler: focus error\r\n");
// fprintf(stderr, "guard: handler: focus error\r\n");
siglongjmp(buffer_list->buffer, err);
}
}

View File

@ -4,9 +4,9 @@
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
pub const GUARD_NULL: u32 = guard_err_guard_null;
pub const GUARD_SIGNAL: u32 = guard_err_guard_signal;
pub const GUARD_OOM: u32 = guard_err_guard_oom;
pub const GUARD_MALLOC: u32 = guard_err_guard_malloc;
pub const GUARD_MPROTECT: u32 = guard_err_guard_mprotect;
pub const GUARD_SIGACTION: u32 = guard_err_guard_sigaction;
pub const GUARD_NULL: u32 = guard_result_guard_null;
pub const GUARD_SIGNAL: u32 = guard_result_guard_signal;
pub const GUARD_OOM: u32 = guard_result_guard_oom;
pub const GUARD_MALLOC: u32 = guard_result_guard_malloc;
pub const GUARD_MPROTECT: u32 = guard_result_guard_mprotect;
pub const GUARD_SIGACTION: u32 = guard_result_guard_sigaction;