lock_flock
Description:
Create a lock using flock(2).
type
is CAMEL_LOCK_WRITE or CAMEL_LOCK_READ, to create exclusive or shared read locks
The function does nothing and returns success (zero), when flock locking had not been compiled.
Parameters:
fd |
a file descriptor |
type |
a LockType |
Returns:
-1 on error. |
Namespace: Camel
Package: camel-1.2