mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 21:28:21 +00:00
open syscall
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ typedef struct _proc_t{
|
||||
gid_t gid;
|
||||
uid_t uid;
|
||||
fd_t* fds;
|
||||
int fdlock;
|
||||
size_t fdcount;
|
||||
off_t firstfreefd;
|
||||
vmm_context* context;
|
||||
|
||||
Reference in New Issue
Block a user