boredos_mirror/src/userland/libc
boreddevnl af5eda1647 feat: Add signals, exec/wait, and FD/pipe support
Introduce process lifecycle and POSIX-like features: add parent_pid, pgid, exited/exit_status, signal state and handlers, waitpid/reap, and an exec-replace function. Refactor file descriptor handling to use fd_kind/fd_flags with reference-counted file refs and in-process pipes; implement open/read/write/close/seek/tell/size/dup/dup2/pipe/fcntl semantics and O_* flags. Add syscall handlers for exec, waitpid, kill/signal, sigaction, sigprocmask, sigpending, meminfo/ticks and map many SYSTEM_CMD_* constants; deliver signals from the syscall path. Cleanup/terminate logic updated to free resources correctly and initialize kernel/user processes with new state. Misc: minor syscall/table renames (wallpaper), helper utilities (process_close_fd_inner, process_init_signal_state) and paging/stack handling for exec.
2026-04-20 00:03:52 +02:00
..
sys feat: Add signals, exec/wait, and FD/pipe support 2026-04-20 00:03:52 +02:00
ctype.c refactor(libc): move Lua an DOOM stubs into shared libc modules 2026-04-19 21:58:25 +02:00
ctype.h refactor(libc): move Lua an DOOM stubs into shared libc modules 2026-04-19 21:58:25 +02:00
errno.c refactor(libc): move Lua an DOOM stubs into shared libc modules 2026-04-19 21:58:25 +02:00
errno.h feat: Add signals, exec/wait, and FD/pipe support 2026-04-20 00:03:52 +02:00
fcntl.h feat: Add signals, exec/wait, and FD/pipe support 2026-04-20 00:03:52 +02:00
input.h Fix missing newline at end of input.h 2026-04-17 01:12:20 +02:00
libmath.c FEAT: Lua runtime 5.5.0 2026-04-18 21:53:39 +02:00
libui.c feat: Add signals, exec/wait, and FD/pipe support 2026-04-20 00:03:52 +02:00
libui.h feat: Add signals, exec/wait, and FD/pipe support 2026-04-20 00:03:52 +02:00
limits.h refactor(libc): move Lua an DOOM stubs into shared libc modules 2026-04-19 21:58:25 +02:00
locale.c refactor(libc): move Lua an DOOM stubs into shared libc modules 2026-04-19 21:58:25 +02:00
locale.h refactor(libc): move Lua an DOOM stubs into shared libc modules 2026-04-19 21:58:25 +02:00
math.h refactor(libc): move Lua an DOOM stubs into shared libc modules 2026-04-19 21:58:25 +02:00
math_ext.c refactor(libc): move Lua an DOOM stubs into shared libc modules 2026-04-19 21:58:25 +02:00
posix_fs.c feat: Add signals, exec/wait, and FD/pipe support 2026-04-20 00:03:52 +02:00
posix_io.c feat: Add signals, exec/wait, and FD/pipe support 2026-04-20 00:03:52 +02:00
posix_process.c feat: Add signals, exec/wait, and FD/pipe support 2026-04-20 00:03:52 +02:00
runtime.c refactor(libc): move Lua an DOOM stubs into shared libc modules 2026-04-19 21:58:25 +02:00
setjmp.c refactor(libc): move Lua an DOOM stubs into shared libc modules 2026-04-19 21:58:25 +02:00
setjmp.h refactor(libc): move Lua an DOOM stubs into shared libc modules 2026-04-19 21:58:25 +02:00
signal.c feat: Add signals, exec/wait, and FD/pipe support 2026-04-20 00:03:52 +02:00
signal.h feat: Add signals, exec/wait, and FD/pipe support 2026-04-20 00:03:52 +02:00
stdio.c feat: Add signals, exec/wait, and FD/pipe support 2026-04-20 00:03:52 +02:00
stdio.h refactor(libc): move Lua an DOOM stubs into shared libc modules 2026-04-19 21:58:25 +02:00
stdlib.c feat: Add signals, exec/wait, and FD/pipe support 2026-04-20 00:03:52 +02:00
stdlib.h refactor(libc): move Lua an DOOM stubs into shared libc modules 2026-04-19 21:58:25 +02:00
string.h refactor(libc): move Lua an DOOM stubs into shared libc modules 2026-04-19 21:58:25 +02:00
string_ext.c refactor(libc): move Lua an DOOM stubs into shared libc modules 2026-04-19 21:58:25 +02:00
syscall.c feat: Add signals, exec/wait, and FD/pipe support 2026-04-20 00:03:52 +02:00
syscall.h feat: Add signals, exec/wait, and FD/pipe support 2026-04-20 00:03:52 +02:00
syscall_user.h src/kernel --> src/ 2026-03-16 00:30:47 +01:00
time.c refactor(libc): move Lua an DOOM stubs into shared libc modules 2026-04-19 21:58:25 +02:00
time.h refactor(libc): move Lua an DOOM stubs into shared libc modules 2026-04-19 21:58:25 +02:00
unistd.h feat: Add signals, exec/wait, and FD/pipe support 2026-04-20 00:03:52 +02:00