diff options
author | Matthew Martin <phy1729@gmail.com> | 2022-03-31 17:40:22 -0500 |
---|---|---|
committer | Matthew Martin <phy1729@gmail.com> | 2022-03-31 17:40:41 -0500 |
commit | 95749e9e652849215b5d09c5aaf8928056c41688 (patch) | |
tree | 3ad81b6793a7c606d2f2a9cebb645cb9490f4ec6 /Src/Modules/system.c | |
parent | 9e0303b044b37fc4bffd7ae4375bc6026d06f342 (diff) | |
download | zsh-95749e9e652849215b5d09c5aaf8928056c41688.tar.gz zsh-95749e9e652849215b5d09c5aaf8928056c41688.tar.xz zsh-95749e9e652849215b5d09c5aaf8928056c41688.zip |
49933: Add nonblock to sysopen
Diffstat (limited to 'Src/Modules/system.c')
-rw-r--r-- | Src/Modules/system.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 @@ -297,6 +297,9 @@ static struct { char *name; int oflag; } openopts[] = { #ifdef O_NOATIME { "noatime", O_NOATIME }, #endif +#ifdef O_NONBLOCK + { "nonblock", O_NONBLOCK}, +#endif { "excl", O_EXCL | O_CREAT }, { "creat", O_CREAT }, { "create", O_CREAT }, |