minix/lib/libminlib/Makefile
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

43 lines
868 B
Makefile

.include <bsd.own.mk>
.PATH: ${.CURDIR} ${.CURDIR}/${MACHINE_ARCH}
.include "${MACHINE_ARCH}/Makefile.inc"
INCSDIR= /usr/include
LIB= minlib
USE_SHLIBDIR= yes
CPPFLAGS.fslib.c+= -I${NETBSDSRCDIR}/servers
CPPFLAGS.fsversion.c+= -I${NETBSDSRCDIR}/servers
SRCS+= fslib.c fsversion.c
# DHCP get/set tags.
SRCS+= dhcp_gettag.c dhcp_settag.c
# Gcov support.
SRCS+= gcov.c gcov_flush.c
# Various utils
SRCS+= itoa.c u64util.c read_tsc_64.c
# svrctl
SRCS+= svrctl.c
# servxcheck
SRCS+= servxcheck.c
# queryparam
SRCS+= paramvalue.c
# Minix servers/drivers syscall. FIXME: these should be moved into libsys.
SRCS+= checkperms.c copyfd.c getngid.c getnpid.c getnprocnr.c getnucred.c \
getnuid.c getprocnr.c mapdriver.c vm_memctl.c vm_set_priv.c \
vm_query_exit.c vm_update.c
SRCS+= oneC_sum.c
SUBDIR+= pkgconfig
.include <bsd.lib.mk>
.include <bsd.subdir.mk>