mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 06:07:59 +00:00
65f75589e9
The libc already supports the configuration of 'stdin', 'stdout', and 'stderr' using '<libc>' config attributes. This patch equips the libc with the additional ability to pre-initialize any other file descriptor. A file descriptor is configured as follows: <config> ... <libc ...> <fd id="3" path="/dev/log" writeable="yes" readable="no" seek="10"/> ... </libc> </config> Furthermore, this patch moves the FD initialization code from the VFS plugin to the libc kernel initialization because opening the FDs depends on 'malloc' ('strdup'), which should not be used at early 'Libc::Kernel' initialization time. Issue #3478 |
||
---|---|---|
.. | ||
fd_alloc.h | ||
plugin_registry.h | ||
plugin.h |