commit e56a62e52922b67b0f6edd82c5cb9ddb4609d5e5 Author: Matthias Blankertz Date: Fri Nov 5 21:18:22 2010 +0100 Initial commit. 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); +}