summaryrefslogtreecommitdiff
path: root/src/user/driver
diff options
context:
space:
mode:
authordzwdz2022-07-12 22:25:46 +0200
committerdzwdz2022-07-12 22:25:46 +0200
commitf9c1ceb309a85226b950c05e31f0f3cb1614dd4d (patch)
treef837f6f86a6934ae74c69c381b8408c3e6a39203 /src/user/driver
parenta854f2979a86f76bd6405041bf5227257548acf3 (diff)
remove the incorrect OPEN_CREATE guards in fs drivers
Diffstat (limited to 'src/user/driver')
-rw-r--r--src/user/driver/ansiterm.c4
-rw-r--r--src/user/driver/ps2.c4
2 files changed, 0 insertions, 8 deletions
diff --git a/src/user/driver/ansiterm.c b/src/user/driver/ansiterm.c
index e332ca2..4b9f0d0 100644
--- a/src/user/driver/ansiterm.c
+++ b/src/user/driver/ansiterm.c
@@ -78,10 +78,6 @@ void ansiterm_drv(void) {
while (!_syscall_fs_wait(buf, sizeof buf, &res)) {
switch (res.op) {
case VFSOP_OPEN:
- if (res.flags & OPEN_CREATE) {
- _syscall_fs_respond(NULL, -1, 0);
- break;
- }
// TODO check path
_syscall_fs_respond(NULL, 0, 0);
break;
diff --git a/src/user/driver/ps2.c b/src/user/driver/ps2.c
index b2811c3..fd81882 100644
--- a/src/user/driver/ps2.c
+++ b/src/user/driver/ps2.c
@@ -55,10 +55,6 @@ static void main_loop(void) {
while (!_syscall_fs_wait(buf, sizeof buf, &res)) {
switch (res.op) {
case VFSOP_OPEN:
- if (res.flags & OPEN_CREATE) {
- _syscall_fs_respond(NULL, -1, 0);
- break;
- }
_syscall_fs_respond(NULL, 1, 0);
break;