From 12e09f9f85ac48ff891adf92f3b2c9a5fea27273 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sat, 4 Dec 2021 14:10:21 -0800 Subject: Chore(REMOVE): finished deprecation of old io functions. The old methods were simple wrappers of C standard library functions. We've moved (painfully) over to a new interface that allows for files to live on the stack. All users of the functionality are ported over. --- src/base/fs/walk.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/base/fs') diff --git a/src/base/fs/walk.c b/src/base/fs/walk.c index 8842633..752791d 100644 --- a/src/base/fs/walk.c +++ b/src/base/fs/walk.c @@ -3,22 +3,19 @@ #define hash(k) ((int32)k.ino ^ (int32)k.dev) #define equal(k1, k2) (k1.ino == k2.ino && k1.dev == k2.dev) -static -int +static int morehistory(fs·History *h, int n) { SET_GROW(h, struct Key, n, hash, sys·Memory, nil); } -static -int +static int addentry(fs·History *h, struct Key key, int *err) { SET_PUT(h, key, hash, equal, morehistory, err); } -static -void +static void forget(fs·History *h) { if (!h) @@ -35,7 +32,7 @@ fs·walk(fs·Walker *fs) int new, fd, ofd, flags; fs·History *h; struct dirent *d; - io·Stat cwd; + struct stat cwd; struct fs·Entry *it; flags = 0; -- cgit v1.2.1