Annotation of src/usr.bin/tcfs/tcfs_getstatus.c, Revision 1.6
1.6 ! fgsch 1: /* $OpenBSD: tcfs_getstatus.c,v 1.5 2000/06/20 01:29:14 provos Exp $ */
1.2 fgsch 2:
1.1 provos 3: /*
4: * Transparent Cryptographic File System (TCFS) for NetBSD
5: * Author and mantainer: Luigi Catuogno [luicat@tcfs.unisa.it]
6: *
7: * references: http://tcfs.dia.unisa.it
8: * tcfs-bsd@tcfs.unisa.it
9: */
10:
11: /*
12: * Base utility set v0.1
13: */
14:
15: #include <ctype.h>
16: #include <pwd.h>
17: #include <unistd.h>
18: #include <sys/types.h>
19: #include <sys/param.h>
20: #include <sys/mount.h>
21: #include <miscfs/tcfs/tcfs.h>
22: #include <miscfs/tcfs/tcfs_cmd.h>
23: #include "tcfsdefines.h"
24: #include <sys/ucred.h>
1.6 ! fgsch 25:
! 26: #include "tcfslib.h"
! 27: #include "tcfspwdb.h"
1.1 provos 28:
29:
30: int
31: tcfs_getstatus(char *filesystem, struct tcfs_status *st)
32: {
33: int i;
34: struct tcfs_args x;
35:
36: if (!tcfs_verify_fs(filesystem))
37: return (-1);
38:
39: x.cmd = TCFS_GET_STATUS;
1.3 aaron 40: i = tcfs_callfunction(filesystem, &x);
1.1 provos 41: *st = x.st;
1.4 aaron 42:
1.1 provos 43: return (i);
44: }