From e56a62e52922b67b0f6edd82c5cb9ddb4609d5e5 Mon Sep 17 00:00:00 2001 From: Matthias Blankertz Date: Fri, 5 Nov 2010 21:18:22 +0100 Subject: [PATCH] Initial commit. --- .gitignore | 3 +++ Makefile | 17 +++++++++++++++++ config.h | 1 + tcfs.c | 20 ++++++++++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 config.h create mode 100644 tcfs.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f517b33 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +tcfs +*.o +*~ \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3e20389 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +OBJS=tcfs.o +CC=gcc +COPTS=-Wall -g -O0 --std=gnu99 -pedantic `pkg-config fuse --cflags` +LDOPTS=`pkg-config fuse --libs` + +%.o: %.c + $(CC) $(COPTS) -o $@ -c $< + +tcfs: $(OBJS) + $(CC) $(COPTS) $(LDOPTS) -o tcfs $(OBJS) + +.PHONY=clean all + +clean: + rm -f tcfs $(OBJS) + +all: tcfs diff --git a/config.h b/config.h new file mode 100644 index 0000000..1217100 --- /dev/null +++ b/config.h @@ -0,0 +1 @@ +#define FUSE_USE_VERSION 28 diff --git a/tcfs.c b/tcfs.c new file mode 100644 index 0000000..53e79a1 --- /dev/null +++ b/tcfs.c @@ -0,0 +1,20 @@ +#include "config.h" + +#include +#include +#include +#include +#include +#include + +static struct fuse_operations tcfs_oper = { + .getattr = NULL, + .readdir = NULL, + .open = NULL, + .read = NULL +}; + +int main(int argc, char *argv[]) +{ + return fuse_main(argc, argv, &tcfs_oper, NULL); +}