From e046530eb6de28842dd75e9b0bfbba261dbf9f97 Mon Sep 17 00:00:00 2001 From: Gavin Hayes Date: Mon, 17 Oct 2022 14:25:33 -0400 Subject: [PATCH] F_SETFL is not implemented on nt --- libc/calls/fcntl-nt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/calls/fcntl-nt.c b/libc/calls/fcntl-nt.c index 20c94be4e..a4ef82aea 100644 --- a/libc/calls/fcntl-nt.c +++ b/libc/calls/fcntl-nt.c @@ -140,7 +140,7 @@ textwindows int sys_fcntl_nt(int fd, int cmd, uintptr_t arg) { // O_DSYNC / O_RSYNC / O_SYNC maybe if we fsync() everything // O_DIRECT | O_RANDOM | O_SEQUENTIAL | O_NDELAY possible but // not worth it. - return einval(); + return enosys(); } else if (cmd == F_GETFD) { if (g_fds.p[fd].flags & O_CLOEXEC) { return FD_CLOEXEC;