summaryrefslogtreecommitdiff
path: root/pflocal/mig-mutate.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-03-20 22:27:44 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-03-20 22:27:44 +0100
commit0da2914ac9d9321cca2d402b2c505881e436c725 (patch)
tree56d77172f8126e4b4324e53dfbed36fade48110f /pflocal/mig-mutate.h
parent03f8e9b08a9d4f5034ea1a27c3a8e86d9b147306 (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/mig-mutate.h')
-rw-r--r--pflocal/mig-mutate.h6
1 files changed, 6 insertions, 0 deletions
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)