diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-03-20 22:27:44 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-03-20 22:27:44 +0100 |
commit | 0da2914ac9d9321cca2d402b2c505881e436c725 (patch) | |
tree | 56d77172f8126e4b4324e53dfbed36fade48110f /pflocal/Makefile | |
parent | 03f8e9b08a9d4f5034ea1a27c3a8e86d9b147306 (diff) |
pflocal: Add support for access() on pipes
bash's '<(' helper creates a pipe and gives /dev/fd/63 to the program, and
gcc would then run access() on it. So we actually need to support at least
some FS operations on pipes.
* pflocal/fs.c: New file.
* pflocal/mig-mutate.h (FILE_INTRAN, FILE_INTRAN_PAYLOAD, FILE_DESTRUCTOR,
FILE_IMPORTS): New macros.
* pflocal/sserver.c: Include "fs_S.h".
(sock_demuxer): Call fs_server_routine.
* pflocal/Makefile (SRCS): Add fs.c.
(MIGSTUBS): Add fsServer.o.
Diffstat (limited to 'pflocal/Makefile')
-rw-r--r-- | pflocal/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pflocal/Makefile b/pflocal/Makefile index 0d9341f1..3a079753 100644 --- a/pflocal/Makefile +++ b/pflocal/Makefile @@ -21,9 +21,9 @@ makemode := server target = pflocal -SRCS = connq.c io.c pflocal.c socket.c pf.c sock.c sserver.c +SRCS = connq.c io.c fs.c pflocal.c socket.c pf.c sock.c sserver.c -MIGSTUBS = ioServer.o socketServer.o +MIGSTUBS = ioServer.o fsServer.o socketServer.o OBJS = $(SRCS:.c=.o) $(MIGSTUBS) HURDLIBS = pipe trivfs iohelp fshelp ports ihash shouldbeinlibc LDLIBS = -lpthread |