sysdeps/linux: Add sys_faccessat and format fixes
@@ -512,6 +512,13 @@ int sys_access(const char *path, int mode) {
return 0;
}
+int sys_faccessat(int dirfd, const char *pathname, int mode, int flags) {
+ auto ret = do_syscall(SYS_faccessat, dirfd, pathname, mode, flags);
+ if (int e = sc_error(ret); e)
+ return e;
+ return 0;
+}
+
int sys_accept(int fd, int *newfd, struct sockaddr *addr_ptr, socklen_t *addr_length) {
auto ret = do_syscall(SYS_accept, fd, addr_ptr, addr_length, 0, 0, 0);
if (int e = sc_error(ret); e)
