minix/servers/pm
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
..
alarm.c Replacing timer_t by netbsd's timer_t 2014-03-01 09:04:54 +01:00
break.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
const.h Fix a few compile time warnings 2010-07-02 12:41:19 +00:00
exec.c Removing CSU patches 2014-02-18 11:25:02 +01:00
forkexit.c Retire ptrace(T_DUMPCORE), dumpcore(1), gcore(1) 2014-02-18 11:25:03 +01:00
getset.c fix some warnings 2013-05-31 20:57:39 +00:00
glo.h PM: remove obsolete sys_getkinfo() 2013-08-06 11:46:46 +02:00
main.c Input infrastructure, INPUT server, PCKBD driver 2014-03-01 09:04:55 +01:00
Makefile Cleanup: Remove minix.bootprog.mk 2013-03-06 11:56:56 +01:00
mcontext.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
misc.c uname: normalize release and version 2014-03-01 09:04:55 +01:00
mproc.h Replacing timer_t by netbsd's timer_t 2014-03-01 09:04:54 +01:00
param.h libc: add adjtime() system call. 2013-04-04 15:04:54 +02:00
pm.h Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
profile.c profiling related cleanup 2012-07-15 21:56:55 +02:00
proto.h Replacing timer_t by netbsd's timer_t 2014-03-01 09:04:54 +01:00
schedule.c Replacing timer_t by netbsd's timer_t 2014-03-01 09:04:54 +01:00
signal.c Rename SYSCTL kernel call to DIAGCTL 2014-03-01 09:04:54 +01:00
table.c Extend dupfrom(2) into copyfd(2) 2014-03-01 09:04:58 +01:00
time.c PM: fix clock_gettime() nanosecond overflow 2013-10-27 17:05:03 +01:00
trace.c Retire ptrace(T_DUMPCORE), dumpcore(1), gcore(1) 2014-02-18 11:25:03 +01:00
type.h Removed 'system process' magic from PM and FS. 2005-05-13 08:57:08 +00:00
utility.c Replacing timer_t by netbsd's timer_t 2014-03-01 09:04:54 +01:00