openat2(2) should open the target path.
If only flags and @mode are non-zero, then openat2(2) operates very similarly to openat(2).
However, unlike openat(2), unknown or invalid bits in flags result in -EINVAL rather than being silently ignored. mode
must be zero unless one of FCNTL#O_CREAT, FCNTL#O_TMPFILE are set.
struct open_how {
__u64 flags;
__u64 mode;
__u64 resolve;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | OpenHow.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | MODE
The struct member offsets. |
| public static final int | RESOLVE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | OpenHow(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static OpenHow | |
| public static OpenHow. | calloc(int
the buffer capacity capacity)Returns a new |
| public static OpenHow | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OpenHow. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected OpenHow | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static OpenHow | |
| public static OpenHow | |
| public static OpenHow. | create(int
the buffer capacity capacity)Returns a new |
| public static OpenHow. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static OpenHow | |
| public static OpenHow. | |
| public long | |
| public OpenHow | |
| public static OpenHow | |
| public static OpenHow. | malloc(int
the buffer capacity capacity)Returns a new |
| public static OpenHow | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OpenHow. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public long | |
| public OpenHow | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public long | |
| public OpenHow | |
| public OpenHow | |
| public OpenHow | |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| FLAGS | back to summary |
|---|---|
| public static final int FLAGS The struct member offsets. | |
| MODE | back to summary |
|---|---|
| public static final int MODE The struct member offsets. | |
| RESOLVE | back to summary |
|---|---|
| public static final int RESOLVE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| OpenHow | back to summary |
|---|---|
| protected OpenHow(long address, ByteBuffer container) | |
| OpenHow | back to summary |
|---|---|
| public OpenHow(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static OpenHow calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static OpenHow. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OpenHow calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OpenHow. Returns a new
| |
| create | back to summary |
|---|---|
| protected OpenHow create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static OpenHow create() Returns a new | |
| create | back to summary |
|---|---|
| public static OpenHow create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static OpenHow. Returns a new
| |
| create | back to summary |
|---|---|
| public static OpenHow. Create a
| |
| createSafe | back to summary |
|---|---|
| public static OpenHow createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static OpenHow. Like
| |
| flags | back to summary |
|---|---|
public long flags()
| |
| flags | back to summary |
|---|---|
| public OpenHow flags(long value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static OpenHow malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static OpenHow. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OpenHow malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OpenHow. Returns a new
| |
| mode | back to summary |
|---|---|
public long mode()
| |
| mode | back to summary |
|---|---|
| public OpenHow mode(long value) Sets the specified value to the | |
| nflags | back to summary |
|---|---|
| public static long nflags(long struct) Unsafe version of | |
| nflags | back to summary |
|---|---|
| public static void nflags(long struct, long value) Unsafe version of | |
| nmode | back to summary |
|---|---|
| public static long nmode(long struct) Unsafe version of | |
| nmode | back to summary |
|---|---|
| public static void nmode(long struct, long value) Unsafe version of | |
| nresolve | back to summary |
|---|---|
| public static long nresolve(long struct) Unsafe version of | |
| nresolve | back to summary |
|---|---|
| public static void nresolve(long struct, long value) Unsafe version of | |
| resolve | back to summary |
|---|---|
public long resolve()
| |
| resolve | back to summary |
|---|---|
| public OpenHow resolve(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public OpenHow set(long flags, long mode, long resolve) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public OpenHow set(OpenHow src) Copies the specified struct data to this struct. | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
OpenHow structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final OpenHow |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public OpenHow. | |
| protected OpenHow | |
| public long | |
| public OpenHow. | |
| public long | |
| public OpenHow. | |
| protected OpenHow. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final OpenHow ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| flags | back to summary |
|---|---|
public long flags()
| |
| flags | back to summary |
|---|---|
| public OpenHow. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected OpenHow getElementFactory() Implements abstract org.
| |
| mode | back to summary |
|---|---|
public long mode()
| |
| mode | back to summary |
|---|---|
| public OpenHow. Sets the specified value to the | |
| resolve | back to summary |
|---|---|
public long resolve()
| |
| resolve | back to summary |
|---|---|
| public OpenHow. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected OpenHow. Implements abstract org.
| |