summaryrefslogtreecommitdiff
path: root/src/libk/include
diff options
context:
space:
mode:
authordzwdz2024-07-20 23:17:36 +0200
committerdzwdz2024-07-20 23:17:36 +0200
commit1fc2d9c88af77c3af81b6bd461e6b019b97d2dbb (patch)
tree56d19935958983882872495f556bdb74c8ae26b8 /src/libk/include
parente88aee660ea668cc96d8a5a11060b6e02b2f0fd7 (diff)
*: moving files
Diffstat (limited to 'src/libk/include')
-rw-r--r--src/libk/include/camellia/flags.h2
-rw-r--r--src/libk/include/camellia/syscalls.h3
-rw-r--r--src/libk/include/camellia/types.h3
3 files changed, 7 insertions, 1 deletions
diff --git a/src/libk/include/camellia/flags.h b/src/libk/include/camellia/flags.h
index 472215b..1585ace 100644
--- a/src/libk/include/camellia/flags.h
+++ b/src/libk/include/camellia/flags.h
@@ -30,3 +30,5 @@
* The idea is that if all flags which allow modifying the filesystem state require
* OPEN_WRITE to be set, filesystem handlers could just check for the OPEN_WRITE flag. */
#define OPEN_CREATE 4
+
+#define DUPLEX_REMOVE 1
diff --git a/src/libk/include/camellia/syscalls.h b/src/libk/include/camellia/syscalls.h
index 3e7576e..16576e0 100644
--- a/src/libk/include/camellia/syscalls.h
+++ b/src/libk/include/camellia/syscalls.h
@@ -23,6 +23,7 @@
#define _SYS_GETPROCFS 22
#define _SYS_TIME 23
#define _SYS_GETNULL 24
+#define _SYS_DUPLEX 25
#define _SYS_EXECBUF 100
#define _SYS_DEBUG_KLOG 101
@@ -89,6 +90,8 @@ uint64_t _sys_time(int flags);
hid_t _sys_getnull(int flags);
+long _sys_duplex(hid_t from, hid_t to, int flags);
+
/* see shared/execbuf.h */
long _sys_execbuf(void __user *buf, size_t len);
diff --git a/src/libk/include/camellia/types.h b/src/libk/include/camellia/types.h
index 65200d7..3117877 100644
--- a/src/libk/include/camellia/types.h
+++ b/src/libk/include/camellia/types.h
@@ -20,13 +20,14 @@ enum vfs_op {
VFSOP_GETSIZE,
VFSOP_REMOVE,
VFSOP_CLOSE,
+ VFSOP_DUPLEX,
};
struct ufs_request {
enum vfs_op op;
size_t len; // how much was put in *buf
size_t capacity; // how much output can be accepted by the caller
- void __user *id; // file id (returned by the open handler, passed to other calls)
+ void __user *id, *id2; // file id (returned by the open handler, passed to other calls)
long offset;
int flags;
};