Official MINIX sources - Automatically replicated from gerrit.minix3.org
Go to file
David van Moolenbroek 163cbaa857 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
2013-10-12 13:59:16 +02:00
benchmarks Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
bin work-3.2.1 WIP, jenkins testing only 2013-10-12 13:55:30 +02:00
commands system.conf: subsystem VID/DID matching support 2013-10-12 13:55:55 +02:00
common a bit more -Werror compatability 2013-08-20 11:37:40 +02:00
dist/nvi Termcap update, replacing elvis by nvi. 2013-01-24 07:44:38 +01:00
distrib UDS: split off from PFS 2013-10-12 13:56:13 +02:00
docs Allow install of binutils and import texinfo 2013-07-12 14:18:08 +02:00
drivers Extend dupfrom(2) into copyfd(2) 2013-10-12 13:59:16 +02:00
etc Extend dupfrom(2) into copyfd(2) 2013-10-12 13:59:16 +02:00
external work-3.2.1 WIP, jenkins testing only 2013-10-12 13:55:30 +02:00
gnu Prevent make -C gnu from installing files in / 2013-09-17 15:19:50 +02:00
include Extend dupfrom(2) into copyfd(2) 2013-10-12 13:59:16 +02:00
kernel work-3.2.1 WIP, jenkins testing only 2013-10-12 13:55:30 +02:00
lib Extend dupfrom(2) into copyfd(2) 2013-10-12 13:59:16 +02:00
libexec increase -Werror resilience 2013-08-21 13:53:39 +02:00
man system.conf: subsystem VID/DID matching support 2013-10-12 13:55:55 +02:00
releasetools work-3.2.1 WIP, jenkins testing only 2013-10-12 13:55:30 +02:00
sbin work-3.2.1 WIP, jenkins testing only 2013-10-12 13:55:30 +02:00
servers Extend dupfrom(2) into copyfd(2) 2013-10-12 13:59:16 +02:00
share enable fatal warnings 2013-09-01 12:59:37 +00:00
sys UDS: align struct sockaddr_un with NetBSD 2013-10-12 13:56:52 +02:00
test Extend dupfrom(2) into copyfd(2) 2013-10-12 13:59:16 +02:00
tests fix a few more minix specific warnings 2013-08-27 16:16:03 +00:00
tools x86 hd image creator 2013-09-25 19:30:22 +02:00
usr.bin work-3.2.1 WIP, jenkins testing only 2013-10-12 13:55:30 +02:00
usr.sbin work-3.2.1 WIP, jenkins testing only 2013-10-12 13:55:30 +02:00
.gitignore gitignore: ignore some more generated files 2012-12-06 13:29:20 +00:00
.gitreview misc:Add gerrit code review support. 2013-01-16 09:44:16 +01:00
build.sh Reverting back to default value of MKARZERO 2013-01-17 10:03:58 +01:00
LICENSE Fix parameter parsing in cut 2010-01-21 10:16:05 +00:00
Makefile Importing NetBSD "Kyua" test framework 2013-07-23 20:43:41 +02:00