diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-12-05 16:53:55 -0800 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-12-05 16:53:55 -0800 |
commit | b4cb7c06f94e2e91b22b7d82efd7943a82331d86 (patch) | |
tree | 99fa7085855875efa7422ee58f322f8c94bda860 /src/base/fs/openfd.c | |
parent | 07e77936d535e58b0aeb4f2a11400c1050556739 (diff) |
Chore: updated fs·walk to use new data structures
Completes the port to our standard library (up to malloc).
Diffstat (limited to 'src/base/fs/openfd.c')
-rw-r--r-- | src/base/fs/openfd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/base/fs/openfd.c b/src/base/fs/openfd.c new file mode 100644 index 0000000..6a57b23 --- /dev/null +++ b/src/base/fs/openfd.c @@ -0,0 +1,10 @@ +#include <u.h> +#include <base.h> + +int +fs·openfd(int fd, fs·Directory *dir) +{ + mem·set(dir, 0, sizeof(*dir)); + dir->fd = fd; + return 0; +} |