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:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class Statx extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct statx { __u32stx_mask(); __u32stx_blksize(); __u64stx_attributes(); __u32stx_nlink(); __u32stx_uid(); __u32stx_gid(); __u16stx_mode(); __u16 __spare0[1]; __u64stx_ino(); __u64stx_size(); __u64stx_blocks(); __u64stx_attributes_mask();struct statx_timestampstx_atime();struct statx_timestampstx_btime();struct statx_timestampstx_ctime();struct statx_timestampstx_mtime(); __u32stx_rdev_major(); __u32 stx_rdev_minor; __u32stx_dev_major(); __u32 stx_dev_minor; __u64 stx_mnt_id; __u64 __spare2; __u64 __spare3[12]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStatx.BufferAn array ofStatxstructs.
-
Field Summary
Fields Modifier and Type Field Description static int__SPARE0
__SPARE2
__SPARE3The struct member offsets.static intALIGNOFThe struct alignment in bytes.static intSIZEOFThe struct size in bytes.static intSTX_ATIME
STX_ATTRIBUTES
STX_ATTRIBUTES_MASK
STX_BLKSIZE
STX_BLOCKS
STX_BTIME
STX_CTIME
STX_DEV_MAJOR
STX_DEV_MINOR
STX_GID
STX_INO
STX_MASK
STX_MNT_ID
STX_MODE
STX_MTIME
STX_NLINK
STX_RDEV_MAJOR
STX_RDEV_MINOR
STX_SIZE
STX_UIDThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description Statx(java.nio.ByteBuffer container)Creates aStatxinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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 StatxcreateSafe(long address)static 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 java.nio.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, java.nio.ShortBuffer value)static longn__spare2(long struct)static voidn__spare2(long struct, long value)static java.nio.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, java.nio.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.Statxset(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.Statxset(Statx src)Copies the specified struct data to this struct.intsizeof()StatxTimestampstx_atime()last access timeStatxstx_atime(java.util.function.Consumer<StatxTimestamp> consumer)Passes thestx_atime()field to the specifiedConsumer.Statxstx_atime(StatxTimestamp value)Copies the specifiedStatxTimestampto thestx_atime()field.longstx_attributes()flags conveying information about the file [uncond]Statxstx_attributes(long value)Sets the specified value to thestx_attributes()field.longstx_attributes_mask()mask to show what's supported instx_attributesStatxstx_attributes_mask(long value)Sets the specified value to thestx_attributes_mask()field.intstx_blksize()preferred general I/O size [uncond]Statxstx_blksize(int value)Sets the specified value to thestx_blksize()field.longstx_blocks()number of 512-byte blocks allocatedStatxstx_blocks(long value)Sets the specified value to thestx_blocks()field.StatxTimestampstx_btime()file creation timeStatxstx_btime(java.util.function.Consumer<StatxTimestamp> consumer)Passes thestx_btime()field to the specifiedConsumer.Statxstx_btime(StatxTimestamp value)Copies the specifiedStatxTimestampto thestx_btime()field.StatxTimestampstx_ctime()last attribute change timeStatxstx_ctime(java.util.function.Consumer<StatxTimestamp> consumer)Passes thestx_ctime()field to the specifiedConsumer.Statxstx_ctime(StatxTimestamp value)Copies the specifiedStatxTimestampto thestx_ctime()field.intstx_dev_major()ID of device containing file [uncond]Statxstx_dev_major(int value)Sets the specified value to thestx_dev_major()field.intstx_dev_minor()Statxstx_dev_minor(int value)Sets the specified value to thestx_dev_minorfield.intstx_gid()group ID of ownerStatxstx_gid(int value)Sets the specified value to thestx_gid()field.longstx_ino()inodenumberStatxstx_ino(long value)Sets the specified value to thestx_ino()field.intstx_mask()what results were written [uncond]Statxstx_mask(int value)Sets the specified value to thestx_mask()field.longstx_mnt_id()Statxstx_mnt_id(long value)Sets the specified value to thestx_mnt_idfield.shortstx_mode()file modeStatxstx_mode(short value)Sets the specified value to thestx_mode()field.StatxTimestampstx_mtime()last data modification timeStatxstx_mtime(java.util.function.Consumer<StatxTimestamp> consumer)Passes thestx_mtime()field to the specifiedConsumer.Statxstx_mtime(StatxTimestamp value)Copies the specifiedStatxTimestampto thestx_mtime()field.intstx_nlink()number of hard linksStatxstx_nlink(int value)Sets the specified value to thestx_nlink()field.intstx_rdev_major()device ID of special file [if bdev/cdev]Statxstx_rdev_major(int value)Sets the specified value to thestx_rdev_major()field.intstx_rdev_minor()Statxstx_rdev_minor(int value)Sets the specified value to thestx_rdev_minorfield.longstx_size()file sizeStatxstx_size(long value)Sets the specified value to thestx_size()field.intstx_uid()user ID of ownerStatxstx_uid(int value)Sets the specified value to thestx_uid()field.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
STX_MASK, STX_BLKSIZE, STX_ATTRIBUTES, STX_NLINK, STX_UID, STX_GID, STX_MODE, __SPARE0, STX_INO, STX_SIZE, STX_BLOCKS, STX_ATTRIBUTES_MASK, STX_ATIME, STX_BTIME, STX_CTIME, STX_MTIME, STX_RDEV_MAJOR, STX_RDEV_MINOR, STX_DEV_MAJOR, STX_DEV_MINOR, STX_MNT_ID, __SPARE2, __SPARE3
The struct member offsets.
-
-
Constructor Detail
-
Statx
public Statx(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin 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()
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
public StatxTimestamp stx_atime()
last access time
-
stx_btime
public StatxTimestamp stx_btime()
file creation time
-
stx_ctime
public StatxTimestamp stx_ctime()
last attribute change time
-
stx_mtime
public StatxTimestamp 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
public Statx stx_mask(int value)
Sets the specified value to thestx_mask()field.
-
stx_blksize
public Statx stx_blksize(int value)
Sets the specified value to thestx_blksize()field.
-
stx_attributes
public Statx stx_attributes(long value)
Sets the specified value to thestx_attributes()field.
-
stx_nlink
public Statx stx_nlink(int value)
Sets the specified value to thestx_nlink()field.
-
stx_mode
public Statx stx_mode(short value)
Sets the specified value to thestx_mode()field.
-
stx_size
public Statx stx_size(long value)
Sets the specified value to thestx_size()field.
-
stx_blocks
public Statx stx_blocks(long value)
Sets the specified value to thestx_blocks()field.
-
stx_attributes_mask
public Statx stx_attributes_mask(long value)
Sets the specified value to thestx_attributes_mask()field.
-
stx_atime
public Statx stx_atime(StatxTimestamp value)
Copies the specifiedStatxTimestampto thestx_atime()field.
-
stx_atime
public Statx stx_atime(java.util.function.Consumer<StatxTimestamp> consumer)
Passes thestx_atime()field to the specifiedConsumer.
-
stx_btime
public Statx stx_btime(StatxTimestamp value)
Copies the specifiedStatxTimestampto thestx_btime()field.
-
stx_btime
public Statx stx_btime(java.util.function.Consumer<StatxTimestamp> consumer)
Passes thestx_btime()field to the specifiedConsumer.
-
stx_ctime
public Statx stx_ctime(StatxTimestamp value)
Copies the specifiedStatxTimestampto thestx_ctime()field.
-
stx_ctime
public Statx stx_ctime(java.util.function.Consumer<StatxTimestamp> consumer)
Passes thestx_ctime()field to the specifiedConsumer.
-
stx_mtime
public Statx stx_mtime(StatxTimestamp value)
Copies the specifiedStatxTimestampto thestx_mtime()field.
-
stx_mtime
public Statx stx_mtime(java.util.function.Consumer<StatxTimestamp> consumer)
Passes thestx_mtime()field to the specifiedConsumer.
-
stx_rdev_major
public Statx stx_rdev_major(int value)
Sets the specified value to thestx_rdev_major()field.
-
stx_rdev_minor
public Statx stx_rdev_minor(int value)
Sets the specified value to thestx_rdev_minorfield.
-
stx_dev_major
public Statx stx_dev_major(int value)
Sets the specified value to thestx_dev_major()field.
-
stx_dev_minor
public Statx stx_dev_minor(int value)
Sets the specified value to thestx_dev_minorfield.
-
stx_mnt_id
public Statx stx_mnt_id(long value)
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
public Statx set(Statx src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static Statx malloc()
Returns a newStatxinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static Statx calloc()
Returns a newStatxinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static Statx create()
Returns a newStatxinstance allocated withBufferUtils.
-
create
public static Statx create(long address)
Returns a newStatxinstance for the specified memory address.
-
createSafe
@Nullable public static Statx createSafe(long address)
-
malloc
public static Statx.Buffer malloc(int capacity)
Returns a newStatx.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static Statx.Buffer calloc(int capacity)
Returns a newStatx.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static Statx.Buffer create(int capacity)
Returns a newStatx.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static Statx.Buffer create(long address, int capacity)
Create aStatx.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static Statx.Buffer createSafe(long address, int capacity)
-
malloc
public static Statx malloc(org.lwjgl.system.MemoryStack stack)
Returns a newStatxinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static Statx calloc(org.lwjgl.system.MemoryStack stack)
Returns a newStatxinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static Statx.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newStatx.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static Statx.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newStatx.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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
public static java.nio.ShortBuffer n__spare0(long struct)
-
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
public static StatxTimestamp nstx_atime(long struct)
Unsafe version ofstx_atime().
-
nstx_btime
public static StatxTimestamp nstx_btime(long struct)
Unsafe version ofstx_btime().
-
nstx_ctime
public static StatxTimestamp nstx_ctime(long struct)
Unsafe version ofstx_ctime().
-
nstx_mtime
public static StatxTimestamp nstx_mtime(long struct)
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
public static java.nio.LongBuffer n__spare3(long struct)
-
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
public static void n__spare0(long struct, java.nio.ShortBuffer value)
-
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
public static void nstx_atime(long struct, StatxTimestamp value)Unsafe version ofstx_atime.
-
nstx_btime
public static void nstx_btime(long struct, StatxTimestamp value)Unsafe version ofstx_btime.
-
nstx_ctime
public static void nstx_ctime(long struct, StatxTimestamp value)Unsafe version ofstx_ctime.
-
nstx_mtime
public static void nstx_mtime(long struct, StatxTimestamp value)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
public static void n__spare3(long struct, java.nio.LongBuffer value)
-
n__spare3
public static void n__spare3(long struct, int index, long value)
-
-