Package org.lwjgl.system.linux
Class Statx
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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 Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct alignment in bytes.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionStatx(ByteBuffer container) Creates aStatxinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic Statxcalloc()Returns a newStatxinstance allocated withmemCalloc.static Statx.Buffercalloc(int capacity) Returns a newStatx.Bufferinstance allocated withmemCalloc.static Statx.Buffercalloc(int capacity, MemoryStack stack) Returns a newStatx.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static Statxcalloc(MemoryStack stack) Returns a newStatxinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static Statxcreate()Returns a newStatxinstance allocated withBufferUtils.static Statx.Buffercreate(int capacity) Returns a newStatx.Bufferinstance allocated withBufferUtils.static Statxcreate(long address) Returns a newStatxinstance for the specified memory address.static Statx.Buffercreate(long address, int capacity) Create aStatx.Bufferinstance at the specified memory.static @Nullable StatxcreateSafe(long address) static @Nullable Statx.BuffercreateSafe(long address, int capacity) static Statxmalloc()Returns a newStatxinstance allocated withmemAlloc.static Statx.Buffermalloc(int capacity) Returns a newStatx.Bufferinstance allocated withmemAlloc.static Statx.Buffermalloc(int capacity, MemoryStack stack) Returns a newStatx.Bufferinstance allocated on the specifiedMemoryStack.static Statxmalloc(MemoryStack stack) Returns a newStatxinstance allocated on the specifiedMemoryStack.static ShortBuffern__spare0(long struct) static shortn__spare0(long struct, int index) static voidn__spare0(long struct, int index, short value) static voidn__spare0(long struct, ShortBuffer value) static longn__spare2(long struct) static voidn__spare2(long struct, long value) static LongBuffern__spare3(long struct) static longn__spare3(long struct, int index) static voidn__spare3(long struct, int index, long value) static voidn__spare3(long struct, LongBuffer value) static StatxTimestampnstx_atime(long struct) Unsafe version ofstx_atime().static voidnstx_atime(long struct, StatxTimestamp value) Unsafe version ofstx_atime.static longnstx_attributes(long struct) Unsafe version ofstx_attributes().static voidnstx_attributes(long struct, long value) Unsafe version ofstx_attributes.static longnstx_attributes_mask(long struct) Unsafe version ofstx_attributes_mask().static voidnstx_attributes_mask(long struct, long value) Unsafe version ofstx_attributes_mask.static intnstx_blksize(long struct) Unsafe version ofstx_blksize().static voidnstx_blksize(long struct, int value) Unsafe version ofstx_blksize.static longnstx_blocks(long struct) Unsafe version ofstx_blocks().static voidnstx_blocks(long struct, long value) Unsafe version ofstx_blocks.static StatxTimestampnstx_btime(long struct) Unsafe version ofstx_btime().static voidnstx_btime(long struct, StatxTimestamp value) Unsafe version ofstx_btime.static StatxTimestampnstx_ctime(long struct) Unsafe version ofstx_ctime().static voidnstx_ctime(long struct, StatxTimestamp value) Unsafe version ofstx_ctime.static intnstx_dev_major(long struct) Unsafe version ofstx_dev_major().static voidnstx_dev_major(long struct, int value) Unsafe version ofstx_dev_major.static intnstx_dev_minor(long struct) Unsafe version ofstx_dev_minor().static voidnstx_dev_minor(long struct, int value) Unsafe version ofstx_dev_minor.static intnstx_gid(long struct) Unsafe version ofstx_gid().static voidnstx_gid(long struct, int value) Unsafe version ofstx_gid.static longnstx_ino(long struct) Unsafe version ofstx_ino().static voidnstx_ino(long struct, long value) Unsafe version ofstx_ino.static intnstx_mask(long struct) Unsafe version ofstx_mask().static voidnstx_mask(long struct, int value) Unsafe version ofstx_mask.static longnstx_mnt_id(long struct) Unsafe version ofstx_mnt_id().static voidnstx_mnt_id(long struct, long value) Unsafe version ofstx_mnt_id.static shortnstx_mode(long struct) Unsafe version ofstx_mode().static voidnstx_mode(long struct, short value) Unsafe version ofstx_mode.static StatxTimestampnstx_mtime(long struct) Unsafe version ofstx_mtime().static voidnstx_mtime(long struct, StatxTimestamp value) Unsafe version ofstx_mtime.static intnstx_nlink(long struct) Unsafe version ofstx_nlink().static voidnstx_nlink(long struct, int value) Unsafe version ofstx_nlink.static intnstx_rdev_major(long struct) Unsafe version ofstx_rdev_major().static voidnstx_rdev_major(long struct, int value) Unsafe version ofstx_rdev_major.static intnstx_rdev_minor(long struct) Unsafe version ofstx_rdev_minor().static voidnstx_rdev_minor(long struct, int value) Unsafe version ofstx_rdev_minor.static longnstx_size(long struct) Unsafe version ofstx_size().static voidnstx_size(long struct, long value) Unsafe version ofstx_size.static intnstx_uid(long struct) Unsafe version ofstx_uid().static voidnstx_uid(long struct, int value) Unsafe version ofstx_uid.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.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).stx_atime(Consumer<StatxTimestamp> consumer) Passes thestx_atimefield to the specifiedConsumer.stx_atime(StatxTimestamp value) Copies the specifiedStatxTimestampto thestx_atimefield.longstx_attributes(long value) Sets the specified value to thestx_attributesfield.longstx_attributes_mask(long value) Sets the specified value to thestx_attributes_maskfield.intstx_blksize(int value) Sets the specified value to thestx_blksizefield.longstx_blocks(long value) Sets the specified value to thestx_blocksfield.stx_btime(Consumer<StatxTimestamp> consumer) Passes thestx_btimefield to the specifiedConsumer.stx_btime(StatxTimestamp value) Copies the specifiedStatxTimestampto thestx_btimefield.stx_ctime(Consumer<StatxTimestamp> consumer) Passes thestx_ctimefield to the specifiedConsumer.stx_ctime(StatxTimestamp value) Copies the specifiedStatxTimestampto thestx_ctimefield.intstx_dev_major(int value) Sets the specified value to thestx_dev_majorfield.intstx_dev_minor(int value) Sets the specified value to thestx_dev_minorfield.intstx_gid()stx_gid(int value) Sets the specified value to thestx_gidfield.longstx_ino()stx_ino(long value) Sets the specified value to thestx_inofield.intstx_mask()stx_mask(int value) Sets the specified value to thestx_maskfield.longstx_mnt_id(long value) Sets the specified value to thestx_mnt_idfield.shortstx_mode()stx_mode(short value) Sets the specified value to thestx_modefield.stx_mtime(Consumer<StatxTimestamp> consumer) Passes thestx_mtimefield to the specifiedConsumer.stx_mtime(StatxTimestamp value) Copies the specifiedStatxTimestampto thestx_mtimefield.intstx_nlink(int value) Sets the specified value to thestx_nlinkfield.intstx_rdev_major(int value) Sets the specified value to thestx_rdev_majorfield.intstx_rdev_minor(int value) Sets the specified value to thestx_rdev_minorfield.longstx_size()stx_size(long value) Sets the specified value to thestx_sizefield.intstx_uid()stx_uid(int value) Sets the specified value to thestx_uidfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STX_MASK
public static final int STX_MASKThe struct member offsets. -
STX_BLKSIZE
public static final int STX_BLKSIZEThe struct member offsets. -
STX_ATTRIBUTES
public static final int STX_ATTRIBUTESThe struct member offsets. -
STX_NLINK
public static final int STX_NLINKThe struct member offsets. -
STX_UID
public static final int STX_UIDThe struct member offsets. -
STX_GID
public static final int STX_GIDThe struct member offsets. -
STX_MODE
public static final int STX_MODEThe struct member offsets. -
__SPARE0
public static final int __SPARE0The struct member offsets. -
STX_INO
public static final int STX_INOThe struct member offsets. -
STX_SIZE
public static final int STX_SIZEThe struct member offsets. -
STX_BLOCKS
public static final int STX_BLOCKSThe struct member offsets. -
STX_ATTRIBUTES_MASK
public static final int STX_ATTRIBUTES_MASKThe struct member offsets. -
STX_ATIME
public static final int STX_ATIMEThe struct member offsets. -
STX_BTIME
public static final int STX_BTIMEThe struct member offsets. -
STX_CTIME
public static final int STX_CTIMEThe struct member offsets. -
STX_MTIME
public static final int STX_MTIMEThe struct member offsets. -
STX_RDEV_MAJOR
public static final int STX_RDEV_MAJORThe struct member offsets. -
STX_RDEV_MINOR
public static final int STX_RDEV_MINORThe struct member offsets. -
STX_DEV_MAJOR
public static final int STX_DEV_MAJORThe struct member offsets. -
STX_DEV_MINOR
public static final int STX_DEV_MINORThe struct member offsets. -
STX_MNT_ID
public static final int STX_MNT_IDThe struct member offsets. -
__SPARE2
public static final int __SPARE2The struct member offsets. -
__SPARE3
public static final int __SPARE3The struct member offsets.
-
-
Constructor Details
-
Statx
Creates aStatxinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct). -
stx_mask
public int stx_mask()- Returns:
- the value of the
stx_maskfield.
-
stx_blksize
public int stx_blksize()- Returns:
- the value of the
stx_blksizefield.
-
stx_attributes
public long stx_attributes()- Returns:
- the value of the
stx_attributesfield.
-
stx_nlink
public int stx_nlink()- Returns:
- the value of the
stx_nlinkfield.
-
stx_uid
public int stx_uid()- Returns:
- the value of the
stx_uidfield.
-
stx_gid
public int stx_gid()- Returns:
- the value of the
stx_gidfield.
-
stx_mode
public short stx_mode()- Returns:
- the value of the
stx_modefield.
-
stx_ino
public long stx_ino()- Returns:
- the value of the
stx_inofield.
-
stx_size
public long stx_size()- Returns:
- the value of the
stx_sizefield.
-
stx_blocks
public long stx_blocks()- Returns:
- the value of the
stx_blocksfield.
-
stx_attributes_mask
public long stx_attributes_mask()- Returns:
- the value of the
stx_attributes_maskfield.
-
stx_atime
- Returns:
- a
StatxTimestampview of thestx_atimefield.
-
stx_btime
- Returns:
- a
StatxTimestampview of thestx_btimefield.
-
stx_ctime
- Returns:
- a
StatxTimestampview of thestx_ctimefield.
-
stx_mtime
- Returns:
- a
StatxTimestampview of thestx_mtimefield.
-
stx_rdev_major
public int stx_rdev_major()- Returns:
- the value of the
stx_rdev_majorfield.
-
stx_rdev_minor
public int stx_rdev_minor()- Returns:
- the value of the
stx_rdev_minorfield.
-
stx_dev_major
public int stx_dev_major()- Returns:
- the value of the
stx_dev_majorfield.
-
stx_dev_minor
public int stx_dev_minor()- Returns:
- the value of the
stx_dev_minorfield.
-
stx_mnt_id
public long stx_mnt_id()- Returns:
- the value of the
stx_mnt_idfield.
-
stx_mask
Sets the specified value to thestx_maskfield. -
stx_blksize
Sets the specified value to thestx_blksizefield. -
stx_attributes
Sets the specified value to thestx_attributesfield. -
stx_nlink
Sets the specified value to thestx_nlinkfield. -
stx_uid
Sets the specified value to thestx_uidfield. -
stx_gid
Sets the specified value to thestx_gidfield. -
stx_mode
Sets the specified value to thestx_modefield. -
stx_ino
Sets the specified value to thestx_inofield. -
stx_size
Sets the specified value to thestx_sizefield. -
stx_blocks
Sets the specified value to thestx_blocksfield. -
stx_attributes_mask
Sets the specified value to thestx_attributes_maskfield. -
stx_atime
Copies the specifiedStatxTimestampto thestx_atimefield. -
stx_atime
Passes thestx_atimefield to the specifiedConsumer. -
stx_btime
Copies the specifiedStatxTimestampto thestx_btimefield. -
stx_btime
Passes thestx_btimefield to the specifiedConsumer. -
stx_ctime
Copies the specifiedStatxTimestampto thestx_ctimefield. -
stx_ctime
Passes thestx_ctimefield to the specifiedConsumer. -
stx_mtime
Copies the specifiedStatxTimestampto thestx_mtimefield. -
stx_mtime
Passes thestx_mtimefield to the specifiedConsumer. -
stx_rdev_major
Sets the specified value to thestx_rdev_majorfield. -
stx_rdev_minor
Sets the specified value to thestx_rdev_minorfield. -
stx_dev_major
Sets the specified value to thestx_dev_majorfield. -
stx_dev_minor
Sets the specified value to thestx_dev_minorfield. -
stx_mnt_id
Sets the specified value to thestx_mnt_idfield. -
set
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. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newStatxinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newStatxinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newStatxinstance allocated withBufferUtils. -
create
Returns a newStatxinstance for the specified memory address. -
createSafe
-
malloc
Returns a newStatx.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newStatx.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newStatx.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aStatx.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newStatxinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newStatxinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newStatx.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newStatx.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nstx_mask
public static int nstx_mask(long struct) Unsafe version ofstx_mask(). -
nstx_blksize
public static int nstx_blksize(long struct) Unsafe version ofstx_blksize(). -
nstx_attributes
public static long nstx_attributes(long struct) Unsafe version ofstx_attributes(). -
nstx_nlink
public static int nstx_nlink(long struct) Unsafe version ofstx_nlink(). -
nstx_uid
public static int nstx_uid(long struct) Unsafe version ofstx_uid(). -
nstx_gid
public static int nstx_gid(long struct) Unsafe version ofstx_gid(). -
nstx_mode
public static short nstx_mode(long struct) Unsafe version ofstx_mode(). -
n__spare0
-
n__spare0
public static short n__spare0(long struct, int index) -
nstx_ino
public static long nstx_ino(long struct) Unsafe version ofstx_ino(). -
nstx_size
public static long nstx_size(long struct) Unsafe version ofstx_size(). -
nstx_blocks
public static long nstx_blocks(long struct) Unsafe version ofstx_blocks(). -
nstx_attributes_mask
public static long nstx_attributes_mask(long struct) Unsafe version ofstx_attributes_mask(). -
nstx_atime
Unsafe version ofstx_atime(). -
nstx_btime
Unsafe version ofstx_btime(). -
nstx_ctime
Unsafe version ofstx_ctime(). -
nstx_mtime
Unsafe version ofstx_mtime(). -
nstx_rdev_major
public static int nstx_rdev_major(long struct) Unsafe version ofstx_rdev_major(). -
nstx_rdev_minor
public static int nstx_rdev_minor(long struct) Unsafe version ofstx_rdev_minor(). -
nstx_dev_major
public static int nstx_dev_major(long struct) Unsafe version ofstx_dev_major(). -
nstx_dev_minor
public static int nstx_dev_minor(long struct) Unsafe version ofstx_dev_minor(). -
nstx_mnt_id
public static long nstx_mnt_id(long struct) Unsafe version ofstx_mnt_id(). -
n__spare2
public static long n__spare2(long struct) -
n__spare3
-
n__spare3
public static long n__spare3(long struct, int index) -
nstx_mask
public static void nstx_mask(long struct, int value) Unsafe version ofstx_mask. -
nstx_blksize
public static void nstx_blksize(long struct, int value) Unsafe version ofstx_blksize. -
nstx_attributes
public static void nstx_attributes(long struct, long value) Unsafe version ofstx_attributes. -
nstx_nlink
public static void nstx_nlink(long struct, int value) Unsafe version ofstx_nlink. -
nstx_uid
public static void nstx_uid(long struct, int value) Unsafe version ofstx_uid. -
nstx_gid
public static void nstx_gid(long struct, int value) Unsafe version ofstx_gid. -
nstx_mode
public static void nstx_mode(long struct, short value) Unsafe version ofstx_mode. -
n__spare0
-
n__spare0
public static void n__spare0(long struct, int index, short value) -
nstx_ino
public static void nstx_ino(long struct, long value) Unsafe version ofstx_ino. -
nstx_size
public static void nstx_size(long struct, long value) Unsafe version ofstx_size. -
nstx_blocks
public static void nstx_blocks(long struct, long value) Unsafe version ofstx_blocks. -
nstx_attributes_mask
public static void nstx_attributes_mask(long struct, long value) Unsafe version ofstx_attributes_mask. -
nstx_atime
Unsafe version ofstx_atime. -
nstx_btime
Unsafe version ofstx_btime. -
nstx_ctime
Unsafe version ofstx_ctime. -
nstx_mtime
Unsafe version ofstx_mtime. -
nstx_rdev_major
public static void nstx_rdev_major(long struct, int value) Unsafe version ofstx_rdev_major. -
nstx_rdev_minor
public static void nstx_rdev_minor(long struct, int value) Unsafe version ofstx_rdev_minor. -
nstx_dev_major
public static void nstx_dev_major(long struct, int value) Unsafe version ofstx_dev_major. -
nstx_dev_minor
public static void nstx_dev_minor(long struct, int value) Unsafe version ofstx_dev_minor. -
nstx_mnt_id
public static void nstx_mnt_id(long struct, long value) Unsafe version ofstx_mnt_id. -
n__spare2
public static void n__spare2(long struct, long value) -
n__spare3
-
n__spare3
public static void n__spare3(long struct, int index, long value)
-