libc: fork, getpid, and wait4

This patch complements the C runtime with support for fork, getpid, and
wait4 (and its cousin 'waitpid').

Fixes #3478
This commit is contained in:
Norman Feske
2019-08-14 17:34:09 +02:00
committed by Christian Helmuth
parent 581785a48f
commit bb5827b4e3
11 changed files with 1140 additions and 80 deletions

View File

@ -20,6 +20,7 @@
#include <os/path.h>
#include <base/allocator.h>
#include <base/id_space.h>
#include <util/xml_generator.h>
/* libc includes */
#include <stdlib.h>
@ -115,6 +116,8 @@ namespace Libc {
void preserve(int libc_fd);
File_descriptor *find_by_libc_fd(int libc_fd);
void generate_info(Genode::Xml_generator &);
};