1 .\" Copyright (c) 2022 by Alejandro Colomar <colomar.6.4.3@gmail.com>
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .TH OPEN_HOW 2type 2022-06-16 "Linux man-pages (unreleased)"
8 open_how \- how to open a pathname
13 .B #include <linux/openat2.h>
16 .BR " uint64_t flags;" " /* " O_ "* flags */"
17 .BR " uint64_t mode;" " /* Mode for " O_ { CREAT , TMPFILE "} */"
18 .BR " uint64_t resolve;" " /* " RESOLVE_ "* flags */"
23 Specifies how a pathname should be open.
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.
49 This type is Linux-specific.