From 95749e9e652849215b5d09c5aaf8928056c41688 Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Thu, 31 Mar 2022 17:40:22 -0500 Subject: 49933: Add nonblock to sysopen --- Src/Modules/system.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/Modules/system.c b/Src/Modules/system.c index ecd4e2546..71745548f 100644 --- a/Src/Modules/system.c +++ b/Src/Modules/system.c @@ -280,7 +280,7 @@ bin_syswrite(char *nam, char **args, Options ops, UNUSED(int func)) } -static struct { char *name; int oflag; } openopts[] = { +static struct { const char *name; int oflag; } openopts[] = { #ifdef O_CLOEXEC { "cloexec", O_CLOEXEC }, #else @@ -296,6 +296,9 @@ static struct { char *name; int oflag; } openopts[] = { #endif #ifdef O_NOATIME { "noatime", O_NOATIME }, +#endif +#ifdef O_NONBLOCK + { "nonblock", O_NONBLOCK}, #endif { "excl", O_EXCL | O_CREAT }, { "creat", O_CREAT }, -- cgit 1.4.1