Package libcore.io

Class StructFlock

java.lang.Object
libcore.io.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 Details

    • 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 Details

    • StructFlock

      public StructFlock()