summaryrefslogtreecommitdiff
path: root/src/kernel/handle.h
diff options
context:
space:
mode:
authordzwdz2022-10-02 19:25:17 +0200
committerdzwdz2022-10-02 19:25:17 +0200
commit710e9b2b5c16f74f66420c66d12455ad518d42c7 (patch)
tree82b88cc07ef3f122512354d649af68584bd4da4d /src/kernel/handle.h
parent503d9ff758f8b83295830bdfc8c2ea56837d25e5 (diff)
syscall/open: add the full suite of READ/WRITE flags
Diffstat (limited to 'src/kernel/handle.h')
-rw-r--r--src/kernel/handle.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/handle.h b/src/kernel/handle.h
index 6b095e5..3c16061 100644
--- a/src/kernel/handle.h
+++ b/src/kernel/handle.h
@@ -19,7 +19,8 @@ struct handle {
enum handle_type type;
struct vfs_backend *backend; // HANDLE_FILE | HANDLE_FS_FRONT
void __user *file_id; // only applicable to HANDLE_FILE
- bool ro; /* currently only for HANDLE_FILE */
+ // TODO readable/writeable could be reused for pipes
+ bool readable, writeable; /* currently only for HANDLE_FILE */
struct vfs_request *req; /* HANDLE_FS_REQ */
struct {
struct process *queued;