summaryrefslogtreecommitdiff
path: root/src/user/lib/compat.c
diff options
context:
space:
mode:
authordzwdz2023-08-14 18:51:07 +0200
committerdzwdz2023-08-14 18:51:07 +0200
commit642b5fb0007b64c77d186fcb018d571152ee1d47 (patch)
tree1c466461f3602d306be309a053edae558ef2568e /src/user/lib/compat.c
parent8050069c57b729c18c19b1a03ab6e4bf63b4735e (diff)
reorganization: first steps
Diffstat (limited to 'src/user/lib/compat.c')
-rw-r--r--src/user/lib/compat.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/user/lib/compat.c b/src/user/lib/compat.c
deleted file mode 100644
index 3ec47f9..0000000
--- a/src/user/lib/compat.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <camellia/syscalls.h>
-#include <stdio.h>
-#include <camellia/compat.h>
-
-#define eprintf(fmt, ...) fprintf(stderr, "user/lib/compat: "fmt"\n" __VA_OPT__(,) __VA_ARGS__)
-
-static hid_t h = -1;
-long c0_fs_wait(char *buf, long len, struct ufs_request *res) {
- if (h != -1) {
- eprintf("didn't respond to request!");
- c0_fs_respond(NULL, -1, 0);
- }
- h = _sys_fs_wait(buf, len, res);
- return h >= 0 ? 0 : -1;
-}
-long c0_fs_respond(void *buf, long ret, int flags) {
- ret = _sys_fs_respond(h, buf, ret, flags);
- h = -1;
- return ret;
-}