Imported Upstream version 2.4.3
[platform/upstream/audit.git] / auparse / open-flagtab.h
1 /* open-flagtab.h --
2  * Copyright 2007,2012-14 Red Hat Inc., Durham, North Carolina.
3  * All Rights Reserved.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  *
19  * Authors:
20  *      Steve Grubb <sgrubb@redhat.com>
21  * Location: include/uapi/asm-generic/fcntl.h
22  * NOTE: When updating this table, update interpret.c:print_open_flags()
23  */
24
25 // Handled in the code: _S(00,          "O_RDONLY" )
26 _S(01,          "O_WRONLY" )
27 _S(02,          "O_RDWR" )
28 _S(0100,        "O_CREAT")
29 _S(0200,        "O_EXCL" )
30 _S(0400,        "O_NOCTTY" )
31 _S(01000,       "O_TRUNC" )
32 _S(02000,       "O_APPEND" )
33 _S(04000,       "O_NONBLOCK" )
34 _S(010000,      "O_DSYNC" )
35 _S(020000,      "O_ASYNC" )
36 _S(040000,      "O_DIRECT" )
37 _S(0200000,     "O_DIRECTORY" )
38 _S(0400000,     "O_NOFOLLOW" )
39 _S(01000000,    "O_NOATIME" )
40 _S(02000000,    "O_CLOEXEC")
41 _S(04000000,    "__O_SYNC")
42 _S(010000000,   "O_PATH")
43 _S(020000000,   "__O_TMPFILE")
44