Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
+fg option: decode O_CLOEXEC as CX
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
  • Loading branch information
masatake committed May 9, 2019
1 parent 7110c63 commit dfaa056
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dialects/linux/dstore.c
Expand Up @@ -101,6 +101,10 @@ struct pff_tab Pff_tab[] = {
{ (long)0100000, FF_LARGEFILE },
#endif /* defined(O_LARGEFILE) */

#if defined(O_CLOEXEC)
{ (long)O_CLOEXEC, POF_CLOEXEC },
#endif /* defined(O_CLOEXEC) */

#if defined(O_PATH)
{ (long)O_PATH, FF_PATH },
#endif /* defined(O_PATH) */
Expand Down
1 change: 1 addition & 0 deletions dialects/linux/tests/open_with_flags.c
Expand Up @@ -14,6 +14,7 @@ struct {
int flag;
} table [] = {
{ "path", O_PATH },
{ "cx", O_CLOEXEC },

This comment has been minimized.

Copy link
@masatake

masatake May 10, 2019

Author Contributor

This change is for a test case, and should not be in this commit.

};

#define TABLELEN sizeof(table)/sizeof(table[0])
Expand Down

0 comments on commit dfaa056

Please sign in to comment.