Class Statx

    • 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 a Statx instance at the current position of the specified ByteBuffer 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.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 in stx_attributes
      • 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_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

        public Statx stx_mask​(int value)
        Sets the specified value to the stx_mask() field.
      • stx_blksize

        public Statx stx_blksize​(int value)
        Sets the specified value to the stx_blksize() field.
      • stx_attributes

        public Statx stx_attributes​(long value)
        Sets the specified value to the stx_attributes() field.
      • stx_nlink

        public Statx stx_nlink​(int value)
        Sets the specified value to the stx_nlink() field.
      • stx_uid

        public Statx stx_uid​(int value)
        Sets the specified value to the stx_uid() field.
      • stx_gid

        public Statx stx_gid​(int value)
        Sets the specified value to the stx_gid() field.
      • stx_mode

        public Statx stx_mode​(short value)
        Sets the specified value to the stx_mode() field.
      • stx_ino

        public Statx stx_ino​(long value)
        Sets the specified value to the stx_ino() field.
      • stx_size

        public Statx stx_size​(long value)
        Sets the specified value to the stx_size() field.
      • stx_blocks

        public Statx stx_blocks​(long value)
        Sets the specified value to the stx_blocks() field.
      • stx_attributes_mask

        public Statx stx_attributes_mask​(long value)
        Sets the specified value to the stx_attributes_mask() field.
      • stx_atime

        public Statx stx_atime​(java.util.function.Consumer<StatxTimestamp> consumer)
        Passes the stx_atime() field to the specified Consumer.
      • stx_btime

        public Statx stx_btime​(java.util.function.Consumer<StatxTimestamp> consumer)
        Passes the stx_btime() field to the specified Consumer.
      • stx_ctime

        public Statx stx_ctime​(java.util.function.Consumer<StatxTimestamp> consumer)
        Passes the stx_ctime() field to the specified Consumer.
      • stx_mtime

        public Statx stx_mtime​(java.util.function.Consumer<StatxTimestamp> consumer)
        Passes the stx_mtime() field to the specified Consumer.
      • stx_rdev_major

        public Statx stx_rdev_major​(int value)
        Sets the specified value to the stx_rdev_major() field.
      • stx_rdev_minor

        public Statx stx_rdev_minor​(int value)
        Sets the specified value to the stx_rdev_minor field.
      • stx_dev_major

        public Statx stx_dev_major​(int value)
        Sets the specified value to the stx_dev_major() field.
      • stx_dev_minor

        public Statx stx_dev_minor​(int value)
        Sets the specified value to the stx_dev_minor field.
      • stx_mnt_id

        public Statx stx_mnt_id​(long value)
        Sets the specified value to the stx_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

        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 new Statx instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static Statx calloc()
        Returns a new Statx instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static Statx create()
        Returns a new Statx instance allocated with BufferUtils.
      • create

        public static Statx create​(long address)
        Returns a new Statx instance for the specified memory address.
      • createSafe

        @Nullable
        public static Statx createSafe​(long address)
        Like create, but returns null if address is NULL.
      • malloc

        public static Statx.Buffer malloc​(int capacity)
        Returns a new Statx.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • calloc

        public static Statx.Buffer calloc​(int capacity)
        Returns a new Statx.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • create

        public static Statx.Buffer create​(int capacity)
        Returns a new Statx.Buffer instance allocated with BufferUtils.
        Parameters:
        capacity - the buffer capacity
      • create

        public static Statx.Buffer create​(long address,
                                          int capacity)
        Create a Statx.Buffer instance at the specified memory.
        Parameters:
        address - the memory address
        capacity - the buffer capacity
      • createSafe

        @Nullable
        public static Statx.Buffer createSafe​(long address,
                                              int capacity)
        Like create, but returns null if address is NULL.
      • malloc

        public static Statx malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new Statx instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static Statx calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new Statx instance allocated on the specified MemoryStack and 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 new Statx.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static Statx.Buffer calloc​(int capacity,
                                          org.lwjgl.system.MemoryStack stack)
        Returns a new Statx.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nstx_mask

        public static int nstx_mask​(long struct)
        Unsafe version of stx_mask().
      • nstx_blksize

        public static int nstx_blksize​(long struct)
        Unsafe version of stx_blksize().
      • nstx_attributes

        public static long nstx_attributes​(long struct)
        Unsafe version of stx_attributes().
      • nstx_nlink

        public static int nstx_nlink​(long struct)
        Unsafe version of stx_nlink().
      • nstx_uid

        public static int nstx_uid​(long struct)
        Unsafe version of stx_uid().
      • nstx_gid

        public static int nstx_gid​(long struct)
        Unsafe version of stx_gid().
      • nstx_mode

        public static short nstx_mode​(long struct)
        Unsafe version of stx_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 of stx_ino().
      • nstx_size

        public static long nstx_size​(long struct)
        Unsafe version of stx_size().
      • nstx_blocks

        public static long nstx_blocks​(long struct)
        Unsafe version of stx_blocks().
      • nstx_attributes_mask

        public static long nstx_attributes_mask​(long struct)
        Unsafe version of stx_attributes_mask().
      • nstx_rdev_major

        public static int nstx_rdev_major​(long struct)
        Unsafe version of stx_rdev_major().
      • nstx_rdev_minor

        public static int nstx_rdev_minor​(long struct)
        Unsafe version of stx_rdev_minor().
      • nstx_dev_major

        public static int nstx_dev_major​(long struct)
        Unsafe version of stx_dev_major().
      • nstx_dev_minor

        public static int nstx_dev_minor​(long struct)
        Unsafe version of stx_dev_minor().
      • nstx_mnt_id

        public static long nstx_mnt_id​(long struct)
        Unsafe version of stx_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 of stx_mask.
      • nstx_blksize

        public static void nstx_blksize​(long struct,
                                        int value)
        Unsafe version of stx_blksize.
      • nstx_attributes

        public static void nstx_attributes​(long struct,
                                           long value)
        Unsafe version of stx_attributes.
      • nstx_nlink

        public static void nstx_nlink​(long struct,
                                      int value)
        Unsafe version of stx_nlink.
      • nstx_uid

        public static void nstx_uid​(long struct,
                                    int value)
        Unsafe version of stx_uid.
      • nstx_gid

        public static void nstx_gid​(long struct,
                                    int value)
        Unsafe version of stx_gid.
      • nstx_mode

        public static void nstx_mode​(long struct,
                                     short value)
        Unsafe version of stx_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 of stx_ino.
      • nstx_size

        public static void nstx_size​(long struct,
                                     long value)
        Unsafe version of stx_size.
      • nstx_blocks

        public static void nstx_blocks​(long struct,
                                       long value)
        Unsafe version of stx_blocks.
      • nstx_attributes_mask

        public static void nstx_attributes_mask​(long struct,
                                                long value)
        Unsafe version of stx_attributes_mask.
      • nstx_rdev_major

        public static void nstx_rdev_major​(long struct,
                                           int value)
        Unsafe version of stx_rdev_major.
      • nstx_rdev_minor

        public static void nstx_rdev_minor​(long struct,
                                           int value)
        Unsafe version of stx_rdev_minor.
      • nstx_dev_major

        public static void nstx_dev_major​(long struct,
                                          int value)
        Unsafe version of stx_dev_major.
      • nstx_dev_minor

        public static void nstx_dev_minor​(long struct,
                                          int value)
        Unsafe version of stx_dev_minor.
      • nstx_mnt_id

        public static void nstx_mnt_id​(long struct,
                                       long value)
        Unsafe version of stx_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)