Welcome! Log In Create A New Profile

Advanced

[njs] Added fs flags missed in 5c6aa60224cb (0.1.15).

Dmitry Volyntsev
July 13, 2021 11:24AM
details: https://hg.nginx.org/njs/rev/537f897451ef
branches:
changeset: 1676:537f897451ef
user: hyeonisism <hyeonisism@gmail.com>
date: Tue Jul 13 10:23:23 2021 +0900
description:
Added fs flags missed in 5c6aa60224cb (0.1.15).

This closes #405 issue on Github.

diffstat:

src/njs_fs.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 42fdcacfd131 -r 537f897451ef src/njs_fs.c
--- a/src/njs_fs.c Fri Jul 09 19:14:23 2021 +0000
+++ b/src/njs_fs.c Tue Jul 13 10:23:23 2021 +0900
@@ -112,6 +112,8 @@ static njs_fs_entry_t njs_flags_table[]
{ njs_str("w+"), O_TRUNC | O_CREAT | O_RDWR },
{ njs_str("a"), O_APPEND | O_CREAT | O_WRONLY },
{ njs_str("a+"), O_APPEND | O_CREAT | O_RDWR },
+ { njs_str("as"), O_SYNC | O_APPEND | O_CREAT | O_WRONLY },
+ { njs_str("as+"), O_SYNC | O_APPEND | O_CREAT | O_RDWR },
{ njs_str("rs"), O_SYNC | O_RDONLY },
{ njs_str("sr"), O_SYNC | O_RDONLY },
{ njs_str("wx"), O_TRUNC | O_CREAT | O_EXCL | O_WRONLY },
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Added fs flags missed in 5c6aa60224cb (0.1.15).

Dmitry Volyntsev 78 July 13, 2021 11:24AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 52
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready