—
Options · 3
| flags | This field specifies the file creation and file status flags to use when opening the file. |
| mode | This field specifies the mode for the new file. |
| resolve | This is a bit mask of flags that modify the way in which all components of a pathname will be resolved (see path_resolution(7) for background information). |
NAME
open_how - how to open a pathname
LIBRARY
Linux kernel headers
SYNOPSIS
bash
#include <linux/openat2.h>bash
struct open_how {\n
\n u64 flags;\n /* \nO_\n* flags */
\n u64 mode;\n /* Mode for \nO_\n{\nCREAT\n,\nTMPFILE\n} */
\n u64 resolve;\n /* \nRESOLVE_\n* flags */
\n
/* ... */
\n};\nDESCRIPTION
Specifies how a pathname should be opened.
The fields are as follows:
- flags
This field specifies the file creation and file status flags to use when opening the file.
- mode
This field specifies the mode for the new file.
- resolve
This is a bit mask of flags that modify the way in which all components of a pathname will be resolved (see path_resolution(7) for background information).
VERSIONS
Extra fields may be appended to the structure, with a zero value in a new field resulting in the kernel behaving as though that extension field was not present. Therefore, a user must zero-fill this structure on initialization.
STANDARDS
Linux.
SEE ALSO
openat2(2)