Package org.lwjgl.system.linux
Class Statx
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct
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
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 classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct alignment in bytes.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionStatx
(ByteBuffer container) Creates aStatx
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic Statx
calloc()
Returns a newStatx
instance allocated withmemCalloc
.static Statx.Buffer
calloc
(int capacity) Returns a newStatx.Buffer
instance allocated withmemCalloc
.static Statx.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newStatx.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static Statx
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newStatx
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static Statx
create()
Returns a newStatx
instance allocated withBufferUtils
.static Statx.Buffer
create
(int capacity) Returns a newStatx.Buffer
instance allocated withBufferUtils
.static Statx
create
(long address) Returns a newStatx
instance for the specified memory address.static Statx.Buffer
create
(long address, int capacity) Create aStatx.Buffer
instance at the specified memory.static Statx
createSafe
(long address) static Statx.Buffer
createSafe
(long address, int capacity) static Statx
malloc()
Returns a newStatx
instance allocated withmemAlloc
.static Statx.Buffer
malloc
(int capacity) Returns a newStatx.Buffer
instance allocated withmemAlloc
.static Statx.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newStatx.Buffer
instance allocated on the specifiedMemoryStack
.static Statx
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newStatx
instance allocated on the specifiedMemoryStack
.static ShortBuffer
n__spare0
(long struct) static short
n__spare0
(long struct, int index) static void
n__spare0
(long struct, int index, short value) static void
n__spare0
(long struct, ShortBuffer value) static long
n__spare2
(long struct) static void
n__spare2
(long struct, long value) static LongBuffer
n__spare3
(long struct) static long
n__spare3
(long struct, int index) static void
n__spare3
(long struct, int index, long value) static void
n__spare3
(long struct, LongBuffer value) static StatxTimestamp
nstx_atime
(long struct) Unsafe version ofstx_atime()
.static void
nstx_atime
(long struct, StatxTimestamp value) Unsafe version ofstx_atime
.static long
nstx_attributes
(long struct) Unsafe version ofstx_attributes()
.static void
nstx_attributes
(long struct, long value) Unsafe version ofstx_attributes
.static long
nstx_attributes_mask
(long struct) Unsafe version ofstx_attributes_mask()
.static void
nstx_attributes_mask
(long struct, long value) Unsafe version ofstx_attributes_mask
.static int
nstx_blksize
(long struct) Unsafe version ofstx_blksize()
.static void
nstx_blksize
(long struct, int value) Unsafe version ofstx_blksize
.static long
nstx_blocks
(long struct) Unsafe version ofstx_blocks()
.static void
nstx_blocks
(long struct, long value) Unsafe version ofstx_blocks
.static StatxTimestamp
nstx_btime
(long struct) Unsafe version ofstx_btime()
.static void
nstx_btime
(long struct, StatxTimestamp value) Unsafe version ofstx_btime
.static StatxTimestamp
nstx_ctime
(long struct) Unsafe version ofstx_ctime()
.static void
nstx_ctime
(long struct, StatxTimestamp value) Unsafe version ofstx_ctime
.static int
nstx_dev_major
(long struct) Unsafe version ofstx_dev_major()
.static void
nstx_dev_major
(long struct, int value) Unsafe version ofstx_dev_major
.static int
nstx_dev_minor
(long struct) Unsafe version ofstx_dev_minor()
.static void
nstx_dev_minor
(long struct, int value) Unsafe version ofstx_dev_minor
.static int
nstx_gid
(long struct) Unsafe version ofstx_gid()
.static void
nstx_gid
(long struct, int value) Unsafe version ofstx_gid
.static long
nstx_ino
(long struct) Unsafe version ofstx_ino()
.static void
nstx_ino
(long struct, long value) Unsafe version ofstx_ino
.static int
nstx_mask
(long struct) Unsafe version ofstx_mask()
.static void
nstx_mask
(long struct, int value) Unsafe version ofstx_mask
.static long
nstx_mnt_id
(long struct) Unsafe version ofstx_mnt_id()
.static void
nstx_mnt_id
(long struct, long value) Unsafe version ofstx_mnt_id
.static short
nstx_mode
(long struct) Unsafe version ofstx_mode()
.static void
nstx_mode
(long struct, short value) Unsafe version ofstx_mode
.static StatxTimestamp
nstx_mtime
(long struct) Unsafe version ofstx_mtime()
.static void
nstx_mtime
(long struct, StatxTimestamp value) Unsafe version ofstx_mtime
.static int
nstx_nlink
(long struct) Unsafe version ofstx_nlink()
.static void
nstx_nlink
(long struct, int value) Unsafe version ofstx_nlink
.static int
nstx_rdev_major
(long struct) Unsafe version ofstx_rdev_major()
.static void
nstx_rdev_major
(long struct, int value) Unsafe version ofstx_rdev_major
.static int
nstx_rdev_minor
(long struct) Unsafe version ofstx_rdev_minor()
.static void
nstx_rdev_minor
(long struct, int value) Unsafe version ofstx_rdev_minor
.static long
nstx_size
(long struct) Unsafe version ofstx_size()
.static void
nstx_size
(long struct, long value) Unsafe version ofstx_size
.static int
nstx_uid
(long struct) Unsafe version ofstx_uid()
.static void
nstx_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.int
sizeof()
last access timestx_atime
(Consumer<StatxTimestamp> consumer) Passes thestx_atime()
field to the specifiedConsumer
.stx_atime
(StatxTimestamp value) Copies the specifiedStatxTimestamp
to thestx_atime()
field.long
flags conveying information about the file [uncond]stx_attributes
(long value) Sets the specified value to thestx_attributes()
field.long
mask to show what's supported instx_attributes
stx_attributes_mask
(long value) Sets the specified value to thestx_attributes_mask()
field.int
preferred general I/O size [uncond]stx_blksize
(int value) Sets the specified value to thestx_blksize()
field.long
number 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 specifiedStatxTimestamp
to thestx_btime()
field.last attribute change timestx_ctime
(Consumer<StatxTimestamp> consumer) Passes thestx_ctime()
field to the specifiedConsumer
.stx_ctime
(StatxTimestamp value) Copies the specifiedStatxTimestamp
to thestx_ctime()
field.int
ID of device containing file [uncond]stx_dev_major
(int value) Sets the specified value to thestx_dev_major()
field.int
stx_dev_minor
(int value) Sets the specified value to thestx_dev_minor
field.int
stx_gid()
group ID of ownerstx_gid
(int value) Sets the specified value to thestx_gid()
field.long
stx_ino()
inode
numberstx_ino
(long value) Sets the specified value to thestx_ino()
field.int
stx_mask()
what results were written [uncond]stx_mask
(int value) Sets the specified value to thestx_mask()
field.long
stx_mnt_id
(long value) Sets the specified value to thestx_mnt_id
field.short
stx_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 specifiedStatxTimestamp
to thestx_mtime()
field.int
number of hard linksstx_nlink
(int value) Sets the specified value to thestx_nlink()
field.int
device ID of special file [if bdev/cdev]stx_rdev_major
(int value) Sets the specified value to thestx_rdev_major()
field.int
stx_rdev_minor
(int value) Sets the specified value to thestx_rdev_minor
field.long
stx_size()
file sizestx_size
(long value) Sets the specified value to thestx_size()
field.int
stx_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
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aStatx
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
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()inode
number -
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_minor
field.
-
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_minor
field.
-
stx_mnt_id
public long stx_mnt_id()- Returns:
- the value of the
stx_mnt_id
field.
-
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 specifiedStatxTimestamp
to thestx_atime()
field. -
stx_atime
Passes thestx_atime()
field to the specifiedConsumer
. -
stx_btime
Copies the specifiedStatxTimestamp
to thestx_btime()
field. -
stx_btime
Passes thestx_btime()
field to the specifiedConsumer
. -
stx_ctime
Copies the specifiedStatxTimestamp
to thestx_ctime()
field. -
stx_ctime
Passes thestx_ctime()
field to the specifiedConsumer
. -
stx_mtime
Copies the specifiedStatxTimestamp
to 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_minor
field. -
stx_dev_major
Sets the specified value to thestx_dev_major()
field. -
stx_dev_minor
Sets the specified value to thestx_dev_minor
field. -
stx_mnt_id
Sets the specified value to thestx_mnt_id
field. -
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 newStatx
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newStatx
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newStatx
instance allocated withBufferUtils
. -
create
Returns a newStatx
instance for the specified memory address. -
createSafe
-
malloc
Returns a newStatx.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newStatx.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newStatx.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aStatx.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newStatx
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newStatx
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newStatx.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newStatx.Buffer
instance allocated on the specifiedMemoryStack
and 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)
-