Initial commit.

This commit is contained in:
2010-11-05 21:18:22 +01:00
commit e56a62e529
4 changed files with 41 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
tcfs
*.o
*~

17
Makefile Normal file
View File

@@ -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

1
config.h Normal file
View File

@@ -0,0 +1 @@
#define FUSE_USE_VERSION 28

20
tcfs.c Normal file
View File

@@ -0,0 +1,20 @@
#include "config.h"
#include <stdlib.h>
#include <fuse.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
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);
}