diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2000-06-18 22:07:26 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2000-06-18 22:07:26 +0000 |
commit | 48893562fdfa12c4f376d2556da18e817a34484f (patch) | |
tree | 033e9aaa47f5617ba6ffbcf7e071ffb8f8f71b07 /usr.bin/tcfs/tcfs_getstatus.c | |
parent | 47bc7a26b81967e77c0f021899f1544966df67e2 (diff) |
Initial import of very much rewritten TCFS userland. This code is still
nasty.
Diffstat (limited to 'usr.bin/tcfs/tcfs_getstatus.c')
-rw-r--r-- | usr.bin/tcfs/tcfs_getstatus.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/usr.bin/tcfs/tcfs_getstatus.c b/usr.bin/tcfs/tcfs_getstatus.c new file mode 100644 index 00000000000..3cc02bad0d5 --- /dev/null +++ b/usr.bin/tcfs/tcfs_getstatus.c @@ -0,0 +1,39 @@ +/* + * Transparent Cryptographic File System (TCFS) for NetBSD + * Author and mantainer: Luigi Catuogno [luicat@tcfs.unisa.it] + * + * references: http://tcfs.dia.unisa.it + * tcfs-bsd@tcfs.unisa.it + */ + +/* + * Base utility set v0.1 + */ + +#include <ctype.h> +#include <pwd.h> +#include <unistd.h> +#include <sys/types.h> +#include <sys/param.h> +#include <sys/mount.h> +#include <des.h> +#include <miscfs/tcfs/tcfs.h> +#include <miscfs/tcfs/tcfs_cmd.h> +#include "tcfsdefines.h" +#include <sys/ucred.h> + + +int +tcfs_getstatus(char *filesystem, struct tcfs_status *st) +{ + int i; + struct tcfs_args x; + + if (!tcfs_verify_fs(filesystem)) + return (-1); + + x.cmd = TCFS_GET_STATUS; + i = tcfs_callfunction(filesystem,&x); + *st = x.st; + return (i); +} |