minix/lib/libminlib
David van Moolenbroek e5cc85fdc4 Extend dupfrom(2) into copyfd(2)
This single function allows copying file descriptors from and to
processes, and closing a previously copied remote file descriptor.
This function replaces the five FD-related UDS backcalls. While it
limits the total number of in-flight file descriptors to OPEN_MAX,
this change greatly improves crash recovery support of UDS, since all
in-flight file descriptors will be closed instead of keeping them
open indefinitely (causing VFS to crash on system shutdown). With the
new copyfd call, UDS becomes simpler, and the concept of filps is no
longer exposed outside of VFS.

This patch also moves the checkperms(2) stub into libminlib, thus
fully abstracting away message details of VFS communication from UDS.

Change-Id: Idd32ad390a566143c8ef66955e5ae2c221cff966
2014-03-01 09:04:58 +01:00
..
earm ARM updates 2013-01-17 10:03:58 +01:00
i386 ARM: make cycle counter available to userspace 2013-01-11 09:18:36 +00:00
pkgconfig Toolchain upgrade and portability improvements. 2012-11-15 16:07:29 +01:00
checkperms.c Extend dupfrom(2) into copyfd(2) 2014-03-01 09:04:58 +01:00
copyfd.c Extend dupfrom(2) into copyfd(2) 2014-03-01 09:04:58 +01:00
dhcp_gettag.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
dhcp_settag.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
fslib.c retire _ANSI and <minix/ansi.h> 2012-03-25 21:58:27 +02:00
fsversion.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
gcov_flush.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
gcov.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
getngid.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
getnpid.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
getnprocnr.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
getnucred.c struct uucred 2014-02-18 11:25:01 +01:00
getnuid.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
getprocnr.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
itoa.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
Makefile Extend dupfrom(2) into copyfd(2) 2014-03-01 09:04:58 +01:00
mapdriver.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
oneC_sum.c Restore and use C version of oneC_sum 2012-08-10 14:48:48 +02:00
paramvalue.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
read_tsc_64.c ARM: make cycle counter available to userspace 2013-01-11 09:18:36 +00:00
servxcheck.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
shlib_version set major version of shlibs to 0 2012-05-10 16:38:24 +02:00
svrctl.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
u64util.c get rid of __LONG_LONG_SUPPORTED 2012-03-25 21:58:26 +02:00
vm_memctl.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
vm_query_exit.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
vm_set_priv.c VM: support for shared call mask ACLs 2013-08-08 23:22:58 +02:00
vm_update.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00