summaryrefslogtreecommitdiff
path: root/src/libc/syscall.c
diff options
context:
space:
mode:
authordzwdz2024-08-18 23:06:26 +0200
committerdzwdz2024-08-18 23:06:26 +0200
commit8b4a2d50de67b746bcc472bd46c55d83eff668fc (patch)
tree21bcf9814b07bc54e7705f4e9ae93528d627e838 /src/libc/syscall.c
parent446acde84c7f244792bf412996678254ee296356 (diff)
kernel: basic _sys_setxattr implementationHEADmain
Diffstat (limited to 'src/libc/syscall.c')
-rw-r--r--src/libc/syscall.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libc/syscall.c b/src/libc/syscall.c
index 6577141..2366a9f 100644
--- a/src/libc/syscall.c
+++ b/src/libc/syscall.c
@@ -110,6 +110,10 @@ ssize_t _sys_getxattr(hid_t h, const char __user *name, void __user *buf, size_t
return (ssize_t)_syscall(_SYS_GETXATTR, (long)h, (long)name, (long)buf, (long)len, (long)flags);
}
+ssize_t _sys_setxattr(hid_t h, const char __user *name, const void __user *buf, size_t len, int flags) {
+ return (ssize_t)_syscall(_SYS_SETXATTR, (long)h, (long)name, (long)buf, (long)len, (long)flags);
+}
+
long _sys_execbuf(void __user *buf, size_t len) {
return _syscall(_SYS_EXECBUF, (long)buf, (long)len, 0, 0, 0);
}