From 2600337aa704efbeba8201e88147a764b4fd2b90 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 2 Jan 2005 19:46:12 +0000 Subject: remove libfs. now lib9pclient --- src/libfs/wstat.c | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 src/libfs/wstat.c (limited to 'src/libfs/wstat.c') diff --git a/src/libfs/wstat.c b/src/libfs/wstat.c deleted file mode 100644 index f1f14ea5..00000000 --- a/src/libfs/wstat.c +++ /dev/null @@ -1,49 +0,0 @@ -/* Copyright (C) 2003 Russ Cox, Massachusetts Institute of Technology */ -/* See COPYRIGHT */ - -#include -#include -#include -#include -#include "fsimpl.h" - -int -fsdirwstat(Fsys *fs, char *name, Dir *d) -{ - int n; - Fid *fid; - - if((fid = fswalk(fs->root, name)) == nil) - return -1; - - n = fsdirfwstat(fid, d); - fsclose(fid); - return n; -} - -int -fsdirfwstat(Fid *fid, Dir *d) -{ - uchar *a; - int n, nn; - Fcall tx, rx; - - n = sizeD2M(d); - a = malloc(n); - if(a == nil) - return -1; - nn = convD2M(d, a, n); - if(n != nn){ - werrstr("convD2M and sizeD2M disagree"); - free(a); - return -1; - } - - tx.type = Twstat; - tx.fid = fid->fid; - tx.stat = a; - tx.nstat = n; - n = fsrpc(fid->fs, &tx, &rx, 0); - free(a); - return n; -} -- cgit v1.2.3