Class StructFlock


  • public final class StructFlock
    extends Object
    Information returned/taken by fcntl(2) F_GETFL and F_SETFL. Corresponds to C's struct flock from <fcntl.h>
    • Field Detail

      • l_type

        public short l_type
        The operation type, one of F_RDLCK, F_WRLCK, or F_UNLCK.
      • l_whence

        public short l_whence
        How to interpret l_start, one of SEEK_CUR, SEEK_END, SEEK_SET.
      • l_start

        public long l_start
        Start offset.
      • l_len

        public long l_len
        Byte count to operate on.
      • l_pid

        public int l_pid
        Process blocking our lock (filled in by F_GETLK, otherwise unused).
    • Constructor Detail

      • StructFlock

        public StructFlock()
    • Method Detail

      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.