aboutsummaryrefslogtreecommitdiff
path: root/src/base/fs/openfd.c
blob: 6a57b23c7265744f3e2eb8b37b44703f59cc0f16 (plain)
1
2
3
4
5
6
7
8
9
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;
}