genode/repos/libports/src/lib/libc/internal
Norman Feske c8b7710e5d libc: improve dup/dup2 in vfs_plugin
This patch replaces the naive dup2 implementation (that merely
duplicated the context pointer) by the replication of the original
FD state by re-opening the same file with the same flags and seek
position. This prevents a potential double release of the VFS handle
(the FD context). It also implements 'dup'.

Fixes #3505
Fixes #3477
2019-11-19 14:10:55 +01:00
..
clone_session.h libc: unify use of namespaces 2019-11-19 14:10:55 +01:00
cloned_malloc_heap_range.h libc: unify use of namespaces 2019-11-19 14:10:55 +01:00
current_time.h libc: split task.cc into multiple files 2019-11-19 14:10:55 +01:00
env.h libc: unify use of namespaces 2019-11-19 14:10:55 +01:00
errno.h libc: split task.cc into multiple files 2019-11-19 14:10:55 +01:00
file.h libc: split task.cc into multiple files 2019-11-19 14:10:55 +01:00
init.h libc: remove global watch() function 2019-11-19 14:10:55 +01:00
kernel_routine.h libc: split task.cc into multiple files 2019-11-19 14:10:55 +01:00
kernel_timer_accessor.h libc: split task.cc into multiple files 2019-11-19 14:10:55 +01:00
kernel.h libc: remove global watch() function 2019-11-19 14:10:55 +01:00
legacy.h libc: remove global watch() function 2019-11-19 14:10:55 +01:00
malloc_ram_allocator.h libc: unify use of namespaces 2019-11-19 14:10:55 +01:00
mem_alloc.h libc: unify use of namespaces 2019-11-19 14:10:55 +01:00
mmap_registry.h libc: unify use of namespaces 2019-11-19 14:10:55 +01:00
pthread_pool.h libc: unify use of namespaces 2019-11-19 14:10:55 +01:00
pthread.h libc: unify use of namespaces 2019-11-19 14:10:55 +01:00
resume.h libc: split task.cc into multiple files 2019-11-19 14:10:55 +01:00
select.h libc: split task.cc into multiple files 2019-11-19 14:10:55 +01:00
socket_fs_plugin.h libc: split task.cc into multiple files 2019-11-19 14:10:55 +01:00
suspend.h libc: unify use of namespaces 2019-11-19 14:10:55 +01:00
thread_create.h libc: unify use of namespaces 2019-11-19 14:10:55 +01:00
timed_semaphore.h libc: split task.cc into multiple files 2019-11-19 14:10:55 +01:00
timer.h libc: unify use of namespaces 2019-11-19 14:10:55 +01:00
types.h libc: unify use of namespaces 2019-11-19 14:10:55 +01:00
vfs_plugin.h libc: improve dup/dup2 in vfs_plugin 2019-11-19 14:10:55 +01:00
watch.h libc: remove global watch() function 2019-11-19 14:10:55 +01:00