aboutsummaryrefslogtreecommitdiff
path: root/src/base/fs
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2021-12-04 14:10:21 -0800
committerNicholas Noll <nbnoll@eml.cc>2021-12-04 14:10:21 -0800
commit12e09f9f85ac48ff891adf92f3b2c9a5fea27273 (patch)
tree60051793885e9978dadf6672ef85cdda216676a2 /src/base/fs
parentb80a3d28ce42be4fdec451f74620b10ee75219dc (diff)
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.
Diffstat (limited to 'src/base/fs')
-rw-r--r--src/base/fs/walk.c11
1 files changed, 4 insertions, 7 deletions
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;