From b6b209d5433fb9f29acc468781edd267ce741cb5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 2 Jan 2004 22:11:39 +0000 Subject: Forgot much of the changes git-svn-id: file:///home/lennart/svn/public/ivam2/trunk@11 dbf6933d-3bce-0310-9bcc-ed052ba35b35 --- src/msntab.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/msntab.c (limited to 'src/msntab.c') diff --git a/src/msntab.c b/src/msntab.c new file mode 100644 index 0000000..bcd3030 --- /dev/null +++ b/src/msntab.c @@ -0,0 +1,23 @@ +#include +#include +#include "msntab.h" + +struct tabentry* msntab_check_call(const char *callee, const char *caller) { + static char *args[] = { "/bin/cat", NULL }; + static struct tabentry ca = { CALL_ACTION_ACCEPT, 1, args }; + + return msntab_ref(&ca); +} + + +struct tabentry* msntab_ref(struct tabentry *t) { + assert(t && t->ref_counter >= 1); + t->ref_counter++; + return t; +} + +void msntab_unref(struct tabentry *t) { + assert(t && t->ref_counter >= 1); + t->ref_counter--; +} + -- cgit