(no commit message)
Sapan Bhatia [Fri, 20 Mar 2009 15:00:42 +0000 (15:00 +0000)]
fuse/Makefile
fuse/stolen_from_fuse.h [new file with mode: 0644]

index 3d0c5eb..975679b 100644 (file)
@@ -1,4 +1,4 @@
-all: reroutemount.c reroutemount_server.c stolen_from_fuse.c
-       gcc -g -c stolen_from_fuse.c -o stolen_from_fuse.o
-       gcc -g stolen_from_fuse.o reroutemount_server.c -o reroutemount_server
-       gcc -g -shared stolen_from_fuse.o reroutemount.c -o reroutemount.so
+all: fuse_vsys_wrapper.so
+
+fuse_vsys_wrapper.so: stolen_from_fuse.c reroutemount.c
+       gcc -shared stolen_from_fuse.c reroutemount.c -o fuse_vsys_wrapper.so
diff --git a/fuse/stolen_from_fuse.h b/fuse/stolen_from_fuse.h
new file mode 100644 (file)
index 0000000..2ade06c
--- /dev/null
@@ -0,0 +1,8 @@
+#define FUSE_DEV_OLD "/proc/fs/fuse/dev"
+#define FUSE_DEV_NEW "/dev/fuse"
+
+int rrm_receive_fd(int fd);
+int rrm_send_fd(int sock_fd, int fd);
+int rrm_open_fuse_device(char **devp);
+int rrm_fuse_mnt_umount(const char *progname, const char *mnt, int lazy);
+