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 Summary
Fields Modifier and Type Field Description longl_lenByte count to operate on.intl_pidProcess blocking our lock (filled in by F_GETLK, otherwise unused).longl_startStart offset.shortl_typeThe operation type, one of F_RDLCK, F_WRLCK, or F_UNLCK.shortl_whenceHow to interpret l_start, one of SEEK_CUR, SEEK_END, SEEK_SET. -
Constructor Summary
Constructors Constructor Description StructFlock() -
Method Summary
-
Field Details
-
l_type
public short l_typeThe operation type, one of F_RDLCK, F_WRLCK, or F_UNLCK. -
l_whence
public short l_whenceHow to interpret l_start, one of SEEK_CUR, SEEK_END, SEEK_SET. -
l_start
public long l_startStart offset. -
l_len
public long l_lenByte count to operate on. -
l_pid
public int l_pidProcess blocking our lock (filled in by F_GETLK, otherwise unused).
-
-
Constructor Details
-
StructFlock
public StructFlock()
-