8f55767619
By making m_in job local (i.e., each job has its own copy of m_in instead of refering to the global m_in) we don't have to store and restore m_in on every thread yield. This reduces overhead. Moreover, remove the assumption that m_in is preserved. Do_XXX functions have to copy the system call parameters as soon as possible and only pass those copies to other functions. Furthermore, this patch cleans up some code and uses better types in a lot of places.
25 lines
557 B
Makefile
25 lines
557 B
Makefile
# Makefile for Virtual File System (VFS)
|
|
.include <bsd.own.mk>
|
|
|
|
PROG= vfs
|
|
SRCS= main.c open.c read.c write.c pipe.c dmap.c \
|
|
path.c device.c mount.c link.c exec.c \
|
|
filedes.c stadir.c protect.c time.c \
|
|
lock.c misc.c utility.c select.c table.c \
|
|
vnode.c vmnt.c request.c fscall.c \
|
|
tll.c comm.c worker.c coredump.c
|
|
|
|
.if ${MKCOVERAGE} != "no"
|
|
SRCS+= gcov.c
|
|
CPPFLAGS+= -DUSE_COVERAGE
|
|
.endif
|
|
|
|
CFLAGS+= -Wall -Wextra
|
|
DPADD+= ${LIBSYS} ${LIBTIMERS} ${LIBEXEC}
|
|
LDADD+= -lsys -ltimers -lexec -lmthread
|
|
|
|
MAN=
|
|
|
|
BINDIR?= /usr/sbin
|
|
|
|
.include <minix.bootprog.mk>
|