summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2021-08-24 16:25:50 +0200
committerdzwdz2021-08-24 16:25:50 +0200
commit83fa1f34ea744da7d26997179a0dd6af751dd8b0 (patch)
tree0794348a02acebf36ecab9ad665bc0f0f75fbfee /src/kernel/proc.h
parent2df1c7370bf596aebbe06f7333a65a6f4d6ec15a (diff)
add some scaffolding for file descriptors
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h
index ffc342a..0a1a42c 100644
--- a/src/kernel/proc.h
+++ b/src/kernel/proc.h
@@ -1,5 +1,6 @@
#pragma once
#include <kernel/arch/generic.h>
+#include <kernel/fd.h>
#include <kernel/vfs/mount.h>
enum process_state {
@@ -28,6 +29,8 @@ struct process {
size_t saved_len;
struct vfs_mount *mount;
+
+ struct fd fds[FD_MAX];
};
extern struct process *process_first;