mirror of
https://github.com/fluencelabs/musl
synced 2025-07-30 22:01:57 +00:00
implement forkall
this is a "nonstandard" function that was "rejected" by POSIX, but nonetheless had its behavior documented in the POSIX rationale for fork. it's present on solaris and possibly some other systems, and duplicates the whole calling process, not just a single thread. glibc does not have this function. it should not be used in programs intending to be portable, but may be useful for testing, checkpointing, etc. and it's an interesting (and quite small) example of the usefulness of the __synccall framework originally written to work around deficiencies in linux's setuid syscall.
This commit is contained in:
@@ -147,6 +147,7 @@ int getdtablesize(void);
|
||||
#ifdef _GNU_SOURCE
|
||||
int brk(void *);
|
||||
void *sbrk(intptr_t);
|
||||
pid_t forkall(void);
|
||||
pid_t vfork(void);
|
||||
int vhangup(void);
|
||||
int chroot(const char *);
|
||||
|
Reference in New Issue
Block a user