diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-01-02 22:11:39 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-01-02 22:11:39 +0000 |
commit | b6b209d5433fb9f29acc468781edd267ce741cb5 (patch) | |
tree | a2b6406fb0050af5bcc184a2fa5644f2b4c799ed /src/msntab.c | |
parent | 263b632288c0662ae4ef08925291f8d1a55c1311 (diff) |
Forgot much of the changes
git-svn-id: file:///home/lennart/svn/public/ivam2/trunk@11 dbf6933d-3bce-0310-9bcc-ed052ba35b35
Diffstat (limited to 'src/msntab.c')
-rw-r--r-- | src/msntab.c | 23 |
1 files changed, 23 insertions, 0 deletions
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 <stddef.h> +#include <assert.h> +#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--; +} + |