open syscall

This commit is contained in:
Matheus
2022-08-19 19:01:59 -03:00
parent 1d3405ba10
commit 098b2f5691
7 changed files with 263 additions and 12 deletions
+6
View File
@@ -1,6 +1,11 @@
#ifndef _FD_H_INCLUDE
#define _FD_H_INCLUDE
#include <kernel/vfs.h>
#include <sys/types.h>
#define FD_FLAGS_READ 1
#define FD_FLAGS_WRITE 2
#define O_RDONLY 00
#define O_WRONLY 01
@@ -30,6 +35,7 @@ typedef struct {
vnode_t* node;
off_t offset;
int flags;
int lock;
} fd_t;