1open_how(2type) open_how(2type)
2
3
4
6 open_how - how to open a pathname
7
9 Linux kernel headers
10
12 #include <linux/openat2.h>
13
14 struct open_how {
15 u64 flags; /* O_* flags */
16 u64 mode; /* Mode for O_{CREAT,TMPFILE} */
17 u64 resolve; /* RESOLVE_* flags */
18 /* ... */
19 };
20
22 Specifies how a pathname should be opened.
23
24 The fields are as follows:
25
26 flags This field specifies the file creation and file status flags to
27 use when opening the file.
28
29 mode This field specifies the mode for the new file.
30
31 resolve
32 This is a bit mask of flags that modify the way in which all
33 components of a pathname will be resolved (see path_resoluā
34 tion(7) for background information).
35
37 Extra fields may be appended to the structure, with a zero value in a
38 new field resulting in the kernel behaving as though that extension
39 field was not present. Therefore, a user must zero-fill this structure
40 on initialization.
41
43 Linux.
44
46 openat2(2)
47
48
49
50Linux man-pages 6.05 2023-03-30 open_how(2type)