Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add as, as+ flags
  • Loading branch information
hyeonisism committed Jul 13, 2021
commit 50e2a1ac2644bcf0c5e70a76e785a23107cbea75
2 changes: 2 additions & 0 deletions src/njs_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down