summaryrefslogtreecommitdiff
path: root/src/libc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libc')
-rw-r--r--src/libc/include/__errno.h1
-rw-r--r--src/libc/syscall.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/libc/include/__errno.h b/src/libc/include/__errno.h
index 56bd64a..6f971e1 100644
--- a/src/libc/include/__errno.h
+++ b/src/libc/include/__errno.h
@@ -32,4 +32,5 @@ E(214, "EADDRNOTAVAIL")
E(215, "EADDRINUSE")
E(216, "ENOSPC")
E(217, "ECONNREFUSED")
+E(218, "E2BIG")
#endif
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);
}