Annotation of src/usr.bin/tcfs/tcfs_getstatus.c, Revision 1.5
1.5 ! provos 1: /* $OpenBSD: tcfs_getstatus.c,v 1.4 2000/06/19 23:06:25 aaron 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>
25:
26:
27: int
28: tcfs_getstatus(char *filesystem, struct tcfs_status *st)
29: {
30: int i;
31: struct tcfs_args x;
32:
33: if (!tcfs_verify_fs(filesystem))
34: return (-1);
35:
36: x.cmd = TCFS_GET_STATUS;
1.3 aaron 37: i = tcfs_callfunction(filesystem, &x);
1.1 provos 38: *st = x.st;
1.4 aaron 39:
1.1 provos 40: return (i);
41: }