genode/repos/libports/include/libc-plugin
Norman Feske 65f75589e9 libc: configurable initial FDs
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
2019-08-28 14:18:44 +02:00
..
fd_alloc.h libc: configurable initial FDs 2019-08-28 14:18:44 +02:00
plugin_registry.h libc: reintegrate libc_resolv library 2017-10-05 17:40:04 +02:00
plugin.h Libc: update port to Freebsd 12 2019-05-27 14:46:53 +02:00