Return to tcfs_getstatus.c CVS log | Up to [local] / src / usr.bin / tcfs |
File: [local] / src / usr.bin / tcfs / Attic / tcfs_getstatus.c (download)
Revision 1.1.1.1 (vendor branch), Sun Jun 18 22:07:24 2000 UTC (23 years, 11 months ago) by provos
Initial import of very much rewritten TCFS userland. This code is still nasty. |
/* * 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); }