1 .\" Copyright (c) 2022 by Alejandro Colomar <alx@kernel.org>
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .TH open_how 2type (date) "Linux man-pages (unreleased)"
8 open_how \- how to open a pathname
13 .B #include <linux/openat2.h>
16 .BR " u64 flags;" " /* " O_ "* flags */"
17 .BR " u64 mode;" " /* Mode for " O_ { CREAT , TMPFILE "} */"
18 .BR " u64 resolve;" " /* " RESOLVE_ "* flags */"
23 Specifies how a pathname should be opened.
25 The fields are as follows:
28 This field specifies the file creation and file status flags
29 to use when opening the file.
32 This field specifies the mode for the new file.
35 This is a bit mask of flags that modify the way in which
37 components of a pathname will be resolved
39 .BR path_resolution (7)
40 for background information).
42 Extra fields may be appended to the structure,
43 with a zero value in a new field resulting in
44 the kernel behaving as though that extension field was not present.
47 zero-fill this structure on initialization.