Package org.lwjgl.system.linux
Class Statx
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<Statx>
org.lwjgl.system.linux.Statx
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class Statx
extends org.lwjgl.system.Struct<Statx>
implements org.lwjgl.system.NativeResource
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 Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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, org.lwjgl.system.MemoryStack stack) Returns a newStatx.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static Statxcalloc(org.lwjgl.system.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, org.lwjgl.system.MemoryStack stack) Returns a newStatx.Bufferinstance allocated on the specifiedMemoryStack.static Statxmalloc(org.lwjgl.system.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()last access timestx_atime(Consumer<StatxTimestamp> consumer) Passes thestx_atime()field to the specifiedConsumer.stx_atime(StatxTimestamp value) Copies the specifiedStatxTimestampto thestx_atime()field.longflags conveying information about the file [uncond]stx_attributes(long value) Sets the specified value to thestx_attributes()field.longmask to show what's supported instx_attributesstx_attributes_mask(long value) Sets the specified value to thestx_attributes_mask()field.intpreferred general I/O size [uncond]stx_blksize(int value) Sets the specified value to thestx_blksize()field.longnumber of 512-byte blocks allocatedstx_blocks(long value) Sets the specified value to thestx_blocks()field.file creation timestx_btime(Consumer<StatxTimestamp> consumer) Passes thestx_btime()field to the specifiedConsumer.stx_btime(StatxTimestamp value) Copies the specifiedStatxTimestampto thestx_btime()field.last attribute change timestx_ctime(Consumer<StatxTimestamp> consumer) Passes thestx_ctime()field to the specifiedConsumer.stx_ctime(StatxTimestamp value) Copies the specifiedStatxTimestampto thestx_ctime()field.intID of device containing file [uncond]stx_dev_major(int value) Sets the specified value to thestx_dev_major()field.intstx_dev_minor(int value) Sets the specified value to thestx_dev_minorfield.intstx_gid()group ID of ownerstx_gid(int value) Sets the specified value to thestx_gid()field.longstx_ino()inodenumberstx_ino(long value) Sets the specified value to thestx_ino()field.intstx_mask()what results were written [uncond]stx_mask(int value) Sets the specified value to thestx_mask()field.longstx_mnt_id(long value) Sets the specified value to thestx_mnt_idfield.shortstx_mode()file modestx_mode(short value) Sets the specified value to thestx_mode()field.last data modification timestx_mtime(Consumer<StatxTimestamp> consumer) Passes thestx_mtime()field to the specifiedConsumer.stx_mtime(StatxTimestamp value) Copies the specifiedStatxTimestampto thestx_mtime()field.intnumber of hard linksstx_nlink(int value) Sets the specified value to thestx_nlink()field.intdevice ID of special file [if bdev/cdev]stx_rdev_major(int value) Sets the specified value to thestx_rdev_major()field.intstx_rdev_minor(int value) Sets the specified value to thestx_rdev_minorfield.longstx_size()file sizestx_size(long value) Sets the specified value to thestx_size()field.intstx_uid()user ID of ownerstx_uid(int value) Sets the specified value to thestx_uid()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<Statx>
-
stx_mask
public int stx_mask()what results were written [uncond] -
stx_blksize
public int stx_blksize()preferred general I/O size [uncond] -
stx_attributes
public long stx_attributes()flags conveying information about the file [uncond] -
stx_nlink
public int stx_nlink()number of hard links -
stx_uid
public int stx_uid()user ID of owner -
stx_gid
public int stx_gid()group ID of owner -
stx_mode
public short stx_mode()file mode -
stx_ino
public long stx_ino()inodenumber -
stx_size
public long stx_size()file size -
stx_blocks
public long stx_blocks()number of 512-byte blocks allocated -
stx_attributes_mask
public long stx_attributes_mask()mask to show what's supported instx_attributes -
stx_atime
last access time -
stx_btime
file creation time -
stx_ctime
last attribute change time -
stx_mtime
last data modification time -
stx_rdev_major
public int stx_rdev_major()device ID of special file [if bdev/cdev] -
stx_rdev_minor
public int stx_rdev_minor()- Returns:
- the value of the
stx_rdev_minorfield.
-
stx_dev_major
public int stx_dev_major()ID of device containing file [uncond] -
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_mask()field. -
stx_blksize
Sets the specified value to thestx_blksize()field. -
stx_attributes
Sets the specified value to thestx_attributes()field. -
stx_nlink
Sets the specified value to thestx_nlink()field. -
stx_uid
Sets the specified value to thestx_uid()field. -
stx_gid
Sets the specified value to thestx_gid()field. -
stx_mode
Sets the specified value to thestx_mode()field. -
stx_ino
Sets the specified value to thestx_ino()field. -
stx_size
Sets the specified value to thestx_size()field. -
stx_blocks
Sets the specified value to thestx_blocks()field. -
stx_attributes_mask
Sets the specified value to thestx_attributes_mask()field. -
stx_atime
Copies the specifiedStatxTimestampto thestx_atime()field. -
stx_atime
Passes thestx_atime()field to the specifiedConsumer. -
stx_btime
Copies the specifiedStatxTimestampto thestx_btime()field. -
stx_btime
Passes thestx_btime()field to the specifiedConsumer. -
stx_ctime
Copies the specifiedStatxTimestampto thestx_ctime()field. -
stx_ctime
Passes thestx_ctime()field to the specifiedConsumer. -
stx_mtime
Copies the specifiedStatxTimestampto thestx_mtime()field. -
stx_mtime
Passes thestx_mtime()field to the specifiedConsumer. -
stx_rdev_major
Sets the specified value to thestx_rdev_major()field. -
stx_rdev_minor
Sets the specified value to thestx_rdev_minorfield. -
stx_dev_major
Sets the specified value to thestx_dev_major()field. -
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)
-