vfs: remove opendir, readdir, closedir
This commit is contained in:
parent
4aefedf276
commit
285086d77d
3 changed files with 3 additions and 74 deletions
|
|
@ -88,14 +88,6 @@ struct dirent {
|
|||
struct vnode *vnode; /* we don't want duplicate vnodes */
|
||||
};
|
||||
|
||||
typedef struct _DIR {
|
||||
struct fs *fs;
|
||||
struct dirent *dirents;
|
||||
size_t num_dirents;
|
||||
struct file *file;
|
||||
uint64_t pos;
|
||||
} DIR;
|
||||
|
||||
struct file {
|
||||
struct vnode *vnode;
|
||||
|
||||
|
|
@ -148,10 +140,6 @@ int vfs_close(struct file *file);
|
|||
int unlink(const char *pathname);
|
||||
int statfd(struct file_descriptor *fdesc, struct statbuf *statbuf);
|
||||
|
||||
DIR *opendir(const char *name);
|
||||
struct dirent *readdir(DIR *dir);
|
||||
int closedir(DIR *dir);
|
||||
|
||||
char *basename(char *path);
|
||||
char *dirname(char *path);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue