open_how - how to open a pathname
Contents
Description
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).
Library
Linux kernel headers
Name
open_how - how to open a pathname
See Also
openat2(2)
Linux man-pages 6.9.1 2024-05-02 open_how(2type)
Standards
Linux.
Synopsis
#include<linux/openat2.h>structopen_how{u64flags; /* O_* flags */
u64mode; /* Mode for O_{CREAT,TMPFILE} */
u64resolve; /* RESOLVE_* flags */
/* ... */
};
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.
