mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 02:43:15 +01:00
Stopped working on self_spawn() - going to finish clone() syscall first. Arch-specific clone() library call that does ipc() and cloned child setup. - Need to finish thread_create() that satisfy clone() necessities. i.e. setting up its stack. Question: Does the pager (and thus the microkernel) have to explicitly set SP_USR? Once the call is known to be successful, the library could set it.
libposix Copyright (C) 2007 Bahadir Balban Despite the name, this is a library that supports only a small portion of posix functions. Highest priority POSIX functions are: shmat shmget shmdt mmap munmap sbrk read readdir write lseek open close creat mkdir mknod link unlink fork clone execve getpid wait kill getenv setenv Currently supported functions are: shmat shmget shmdt mmap read readdir write lseek open close creat mkdir mknod fork Functions to be supported in the near future are: munmap link unlink getpid execve clone wait kill exit sbrk getenv setenv Other calls: pipe mount unmount swapon New ones will be added as needed.