mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-08 19:00:27 +00:00
F_SETFL is not implemented on nt
This commit is contained in:
parent
8b4991b2db
commit
e046530eb6
1 changed files with 1 additions and 1 deletions
|
@ -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_DSYNC / O_RSYNC / O_SYNC maybe if we fsync() everything
|
||||||
// O_DIRECT | O_RANDOM | O_SEQUENTIAL | O_NDELAY possible but
|
// O_DIRECT | O_RANDOM | O_SEQUENTIAL | O_NDELAY possible but
|
||||||
// not worth it.
|
// not worth it.
|
||||||
return einval();
|
return enosys();
|
||||||
} else if (cmd == F_GETFD) {
|
} else if (cmd == F_GETFD) {
|
||||||
if (g_fds.p[fd].flags & O_CLOEXEC) {
|
if (g_fds.p[fd].flags & O_CLOEXEC) {
|
||||||
return FD_CLOEXEC;
|
return FD_CLOEXEC;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue