From 0da2914ac9d9321cca2d402b2c505881e436c725 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 20 Mar 2016 22:27:44 +0100 Subject: 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. --- pflocal/mig-mutate.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pflocal/mig-mutate.h') diff --git a/pflocal/mig-mutate.h b/pflocal/mig-mutate.h index 238c806b..0743f336 100644 --- a/pflocal/mig-mutate.h +++ b/pflocal/mig-mutate.h @@ -26,6 +26,12 @@ #define IO_IMPORTS import "mig-decls.h"; +#define FILE_INTRAN sock_user_t begin_using_sock_user_port (io_t) +#define FILE_INTRAN_PAYLOAD sock_user_t begin_using_sock_user_payload +#define FILE_DESTRUCTOR end_using_sock_user_port (sock_user_t) + +#define FILE_IMPORTS import "mig-decls.h"; + #define SOCKET_INTRAN sock_user_t begin_using_sock_user_port (socket_t) #define SOCKET_INTRAN_PAYLOAD sock_user_t begin_using_sock_user_payload #define SOCKET_DESTRUCTOR end_using_sock_user_port (sock_user_t) -- cgit v1.2.3