[BACK]Return to tcfs_getstatus.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tcfs

Annotation of src/usr.bin/tcfs/tcfs_getstatus.c, Revision 1.7

1.7     ! fgsch       1: /*     $OpenBSD: tcfs_getstatus.c,v 1.6 2000/06/20 07:09:46 fgsch 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:
1.7     ! fgsch      15: #include <sys/types.h>
        !            16: #include <sys/mount.h>
        !            17: #include <sys/param.h>
        !            18: #include <sys/ucred.h>
1.1       provos     19: #include <ctype.h>
                     20: #include <pwd.h>
                     21: #include <unistd.h>
1.7     ! fgsch      22:
1.1       provos     23: #include <miscfs/tcfs/tcfs.h>
                     24: #include <miscfs/tcfs/tcfs_cmd.h>
1.7     ! fgsch      25:
1.1       provos     26: #include "tcfsdefines.h"
1.6       fgsch      27: #include "tcfslib.h"
                     28: #include "tcfspwdb.h"
1.1       provos     29:
                     30:
                     31: int
                     32: tcfs_getstatus(char *filesystem, struct tcfs_status *st)
                     33: {
                     34:        int i;
                     35:        struct tcfs_args x;
                     36:
                     37:        if (!tcfs_verify_fs(filesystem))
                     38:                return (-1);
                     39:
                     40:        x.cmd = TCFS_GET_STATUS;
1.3       aaron      41:        i = tcfs_callfunction(filesystem, &x);
1.1       provos     42:        *st = x.st;
1.4       aaron      43:
1.1       provos     44:        return (i);
                     45: }