open_how

Section: Misc. Reference Manual Pages (2type)
Updated: 2022-12-30
Index Return to Main Contents
 

NAME

open_how - how to open a pathname  

LIBRARY

Linux kernel headers  

SYNOPSIS

#include <linux/openat2.h>

struct open_how { u64 flags; /* O_* flags */ u64 mode; /* Mode for O_{CREAT,TMPFILE} */ u64 resolve; /* RESOLVE_* flags */
    /* ... */ };  

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).
 

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

This type is Linux-specific.  

SEE ALSO

openat2(2)


 

Index

NAME
LIBRARY
SYNOPSIS
DESCRIPTION
VERSIONS
STANDARDS
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 12:46:00 GMT, May 03, 2024