public enum LockfFlag extends Enum<LockfFlag>
| Enum Constant and Description |
|---|
F_LOCK
Set an exclusive lock on the specified section of the file.
|
F_TEST
Test the lock: return 0 if the specified section is unlocked or locked by this process;
return -1, set errno to EAGAIN (EACCES on some other systems), if another process holds a lock.
|
F_TLOCK
Same as F_LOCK but the call never blocks and returns an error instead if the file is already locked.
|
F_ULOCK
Unlock the indicated section of the file.
|
| Modifier and Type | Method and Description |
|---|---|
int |
value()
This method is a getter for the value instance variable.
|
static LockfFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LockfFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LockfFlag F_ULOCK
public static final LockfFlag F_LOCK
public static final LockfFlag F_TLOCK
public static final LockfFlag F_TEST
public static LockfFlag[] values()
for (LockfFlag c : LockfFlag.values()) System.out.println(c);
public static LockfFlag valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int value()
Copyright © 2024. All rights reserved.