From 8b4a2d50de67b746bcc472bd46c55d83eff668fc Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 18 Aug 2024 23:06:26 +0200 Subject: kernel: basic _sys_setxattr implementation --- src/libk/include/camellia/errno.h | 1 + src/libk/include/camellia/syscalls.h | 2 ++ src/libk/include/camellia/types.h | 1 + 3 files changed, 4 insertions(+) (limited to 'src/libk/include') diff --git a/src/libk/include/camellia/errno.h b/src/libk/include/camellia/errno.h index eaeae38..8a424f2 100644 --- a/src/libk/include/camellia/errno.h +++ b/src/libk/include/camellia/errno.h @@ -35,3 +35,4 @@ #define EADDRINUSE 215 #define ENOSPC 216 #define ECONNREFUSED 217 +#define E2BIG 218 diff --git a/src/libk/include/camellia/syscalls.h b/src/libk/include/camellia/syscalls.h index b8dd52e..887d084 100644 --- a/src/libk/include/camellia/syscalls.h +++ b/src/libk/include/camellia/syscalls.h @@ -26,6 +26,7 @@ #define _SYS_DUPLEX 25 #define _SYS_INTR_RETURN 26 #define _SYS_GETXATTR 27 +#define _SYS_SETXATTR 28 #define _SYS_EXECBUF 100 #define _SYS_DEBUG_KLOG 101 @@ -97,6 +98,7 @@ long _sys_duplex(hid_t from, hid_t to, int flags); void _sys_intr_return(struct intr_data __user *intr, int flags); ssize_t _sys_getxattr(hid_t h, const char __user *name, void __user *buf, size_t len, int flags); +ssize_t _sys_setxattr(hid_t h, const char __user *name, const void __user *buf, size_t len, 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 6864d4c..70af409 100644 --- a/src/libk/include/camellia/types.h +++ b/src/libk/include/camellia/types.h @@ -25,6 +25,7 @@ enum vfs_op { VFSOP_CLOSE, VFSOP_DUPLEX, VFSOP_GETXATTR, + VFSOP_SETXATTR, }; struct ufs_request { -- cgit v1.2.3