Top Description Inners Fields Constructors Methods
org.lwjgl.system.linux

public Class Statx

extends Struct<Statx>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct statx
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Layout


struct statx {
    __u32 stx_mask;
    __u32 stx_blksize;
    __u64 stx_attributes;
    __u32 stx_nlink;
    __u32 stx_uid;
    __u32 stx_gid;
    __u16 stx_mode;
    __u16 __spare0[1];
    __u64 stx_ino;
    __u64 stx_size;
    __u64 stx_blocks;
    __u64 stx_attributes_mask;
    struct statx_timestamp stx_atime;
    struct statx_timestamp stx_btime;
    struct statx_timestamp stx_ctime;
    struct statx_timestamp stx_mtime;
    __u32 stx_rdev_major;
    __u32 stx_rdev_minor;
    __u32 stx_dev_major;
    __u32 stx_dev_minor;
    __u64 stx_mnt_id;
    __u64 __spare2;
    __u64 __spare3[12];
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Statx.Buffer

An array of Statx structs.

Field Summary

Modifier and TypeField and Description
public static final int
__SPARE0

The struct member offsets.

public static final int
__SPARE2

The struct member offsets.

public static final int
__SPARE3

The struct member offsets.

public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STX_ATIME

The struct member offsets.

public static final int
STX_ATTRIBUTES

The struct member offsets.

public static final int
STX_ATTRIBUTES_MASK

The struct member offsets.

public static final int
STX_BLKSIZE

The struct member offsets.

public static final int
STX_BLOCKS

The struct member offsets.

public static final int
STX_BTIME

The struct member offsets.

public static final int
STX_CTIME

The struct member offsets.

public static final int
STX_DEV_MAJOR

The struct member offsets.

public static final int
STX_DEV_MINOR

The struct member offsets.

public static final int
STX_GID

The struct member offsets.

public static final int
STX_INO

The struct member offsets.

public static final int
STX_MASK

The struct member offsets.

public static final int
STX_MNT_ID

The struct member offsets.

public static final int
STX_MODE

The struct member offsets.

public static final int
STX_MTIME

The struct member offsets.

public static final int
STX_NLINK

The struct member offsets.

public static final int
STX_RDEV_MAJOR

The struct member offsets.

public static final int
STX_RDEV_MINOR

The struct member offsets.

public static final int
STX_SIZE

The struct member offsets.

public static final int
STX_UID

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
Statx(long address, ByteBuffer container)

public
Statx(ByteBuffer container)

Creates a Statx instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static Statx
calloc()

Returns a new Statx instance allocated with memCalloc.

public static Statx.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new Statx.Buffer instance allocated with memCalloc.

public static Statx
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new Statx instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static Statx.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new Statx.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected Statx
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static Statx
create()

Returns a new Statx instance allocated with BufferUtils.

public static Statx
create(long address)

Returns a new Statx instance for the specified memory address.

public static Statx.Buffer
create(int
the buffer capacity
capacity
)

Returns a new Statx.Buffer instance allocated with BufferUtils.

public static Statx.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a Statx.Buffer instance at the specified memory.

public static Statx
createSafe(long address)

Like create, but returns null if address is NULL.

public static Statx.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public static Statx
malloc()

Returns a new Statx instance allocated with memAlloc.

public static Statx.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new Statx.Buffer instance allocated with memAlloc.

public static Statx
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new Statx instance allocated on the specified MemoryStack.

public static Statx.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new Statx.Buffer instance allocated on the specified MemoryStack.

public static ShortBuffer
n__spare0(long struct)

public static short
n__spare0(long struct, int index)

public static void
n__spare0(long struct, ShortBuffer value)

public static void
n__spare0(long struct, int index, short value)

public static long
n__spare2(long struct)

public static void
n__spare2(long struct, long value)

public static LongBuffer
n__spare3(long struct)

public static long
n__spare3(long struct, int index)

public static void
n__spare3(long struct, LongBuffer value)

public static void
n__spare3(long struct, int index, long value)

public static StatxTimestamp
nstx_atime(long struct)

Unsafe version of stx_atime.

public static void
nstx_atime(long struct, StatxTimestamp value)

Unsafe version of stx_atime.

public static long
nstx_attributes(long struct)

Unsafe version of stx_attributes.

public static void
nstx_attributes(long struct, long value)

Unsafe version of stx_attributes.

public static long
nstx_attributes_mask(long struct)

Unsafe version of stx_attributes_mask.

public static void
nstx_attributes_mask(long struct, long value)

Unsafe version of stx_attributes_mask.

public static int
nstx_blksize(long struct)

Unsafe version of stx_blksize.

public static void
nstx_blksize(long struct, int value)

Unsafe version of stx_blksize.

public static long
nstx_blocks(long struct)

Unsafe version of stx_blocks.

public static void
nstx_blocks(long struct, long value)

Unsafe version of stx_blocks.

public static StatxTimestamp
nstx_btime(long struct)

Unsafe version of stx_btime.

public static void
nstx_btime(long struct, StatxTimestamp value)

Unsafe version of stx_btime.

public static StatxTimestamp
nstx_ctime(long struct)

Unsafe version of stx_ctime.

public static void
nstx_ctime(long struct, StatxTimestamp value)

Unsafe version of stx_ctime.

public static int
nstx_dev_major(long struct)

Unsafe version of stx_dev_major.

public static void
nstx_dev_major(long struct, int value)

Unsafe version of stx_dev_major.

public static int
nstx_dev_minor(long struct)

Unsafe version of stx_dev_minor.

public static void
nstx_dev_minor(long struct, int value)

Unsafe version of stx_dev_minor.

public static int
nstx_gid(long struct)

Unsafe version of stx_gid.

public static void
nstx_gid(long struct, int value)

Unsafe version of stx_gid.

public static long
nstx_ino(long struct)

Unsafe version of stx_ino.

public static void
nstx_ino(long struct, long value)

Unsafe version of stx_ino.

public static int
nstx_mask(long struct)

Unsafe version of stx_mask.

public static void
nstx_mask(long struct, int value)

Unsafe version of stx_mask.

public static long
nstx_mnt_id(long struct)

Unsafe version of stx_mnt_id.

public static void
nstx_mnt_id(long struct, long value)

Unsafe version of stx_mnt_id.

public static short
nstx_mode(long struct)

Unsafe version of stx_mode.

public static void
nstx_mode(long struct, short value)

Unsafe version of stx_mode.

public static StatxTimestamp
nstx_mtime(long struct)

Unsafe version of stx_mtime.

public static void
nstx_mtime(long struct, StatxTimestamp value)

Unsafe version of stx_mtime.

public static int
nstx_rdev_major(long struct)

Unsafe version of stx_rdev_major.

public static void
nstx_rdev_major(long struct, int value)

Unsafe version of stx_rdev_major.

public static int
nstx_rdev_minor(long struct)

Unsafe version of stx_rdev_minor.

public static void
nstx_rdev_minor(long struct, int value)

Unsafe version of stx_rdev_minor.

public static long
nstx_size(long struct)

Unsafe version of stx_size.

public static void
nstx_size(long struct, long value)

Unsafe version of stx_size.

public static int
nstx_uid(long struct)

Unsafe version of stx_uid.

public static void
nstx_uid(long struct, int value)

Unsafe version of stx_uid.

public Statx
set(int stx_mask, int stx_blksize, long stx_attributes, int stx_nlink, int stx_uid, int stx_gid, short stx_mode, long stx_ino, long stx_size, long stx_blocks, long stx_attributes_mask, StatxTimestamp stx_atime, StatxTimestamp stx_btime, StatxTimestamp stx_ctime, StatxTimestamp stx_mtime, int stx_rdev_major, int stx_rdev_minor, int stx_dev_major, int stx_dev_minor, long stx_mnt_id)

Initializes this struct with the specified values.

public Statx

Returns:

this struct
set
(Statx
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public StatxTimestamp
stx_atime()

last access time

public Statx
stx_atime(StatxTimestamp value)

Copies the specified StatxTimestamp to the stx_atime field.

public Statx
stx_atime(Consumer<StatxTimestamp> consumer)

Passes the stx_atime field to the specified Consumer.

public long
stx_attributes()

flags conveying information about the file [uncond]

public Statx
stx_attributes(long value)

Sets the specified value to the stx_attributes field.

public long
stx_attributes_mask()

mask to show what's supported in stx_attributes

public Statx
stx_attributes_mask(long value)

Sets the specified value to the stx_attributes_mask field.

public int
stx_blksize()

preferred general I/O size [uncond]

public Statx
stx_blksize(int value)

Sets the specified value to the stx_blksize field.

public long
stx_blocks()

number of 512-byte blocks allocated

public Statx
stx_blocks(long value)

Sets the specified value to the stx_blocks field.

public StatxTimestamp
stx_btime()

file creation time

public Statx
stx_btime(StatxTimestamp value)

Copies the specified StatxTimestamp to the stx_btime field.

public Statx
stx_btime(Consumer<StatxTimestamp> consumer)

Passes the stx_btime field to the specified Consumer.

public StatxTimestamp
stx_ctime()

last attribute change time

public Statx
stx_ctime(StatxTimestamp value)

Copies the specified StatxTimestamp to the stx_ctime field.

public Statx
stx_ctime(Consumer<StatxTimestamp> consumer)

Passes the stx_ctime field to the specified Consumer.

public int
stx_dev_major()

ID of device containing file [uncond]

public Statx
stx_dev_major(int value)

Sets the specified value to the stx_dev_major field.

public int

Returns:

the value of the stx_dev_minor field.
stx_dev_minor
()

public Statx
stx_dev_minor(int value)

Sets the specified value to the stx_dev_minor field.

public int
stx_gid()

group ID of owner

public Statx
stx_gid(int value)

Sets the specified value to the stx_gid field.

public long
stx_ino()

inode number

public Statx
stx_ino(long value)

Sets the specified value to the stx_ino field.

public int
stx_mask()

what results were written [uncond]

public Statx
stx_mask(int value)

Sets the specified value to the stx_mask field.

public long

Returns:

the value of the stx_mnt_id field.
stx_mnt_id
()

public Statx
stx_mnt_id(long value)

Sets the specified value to the stx_mnt_id field.

public short
stx_mode()

file mode

public Statx
stx_mode(short value)

Sets the specified value to the stx_mode field.

public StatxTimestamp
stx_mtime()

last data modification time

public Statx
stx_mtime(StatxTimestamp value)

Copies the specified StatxTimestamp to the stx_mtime field.

public Statx
stx_mtime(Consumer<StatxTimestamp> consumer)

Passes the stx_mtime field to the specified Consumer.

public int
stx_rdev_major()

device ID of special file [if bdev/cdev]

public Statx
stx_rdev_major(int value)

Sets the specified value to the stx_rdev_major field.

public int

Returns:

the value of the stx_rdev_minor field.
stx_rdev_minor
()

public Statx
stx_rdev_minor(int value)

Sets the specified value to the stx_rdev_minor field.

public long
stx_size()

file size

public Statx
stx_size(long value)

Sets the specified value to the stx_size field.

public int
stx_uid()

user ID of owner

public Statx
stx_uid(int value)

Sets the specified value to the stx_uid field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate