Initial commit.
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
tcfs
|
||||
*.o
|
||||
*~
|
||||
17
Makefile
Normal file
17
Makefile
Normal 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
|
||||
20
tcfs.c
Normal file
20
tcfs.c
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user