lock_fcntl
Description:
Create a lock using fcntl(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 fcntl locking had not been compiled.
Parameters:
fd |
a file descriptor |
type |
a LockType |
Returns:
-1 on error. |
Namespace: Camel
Package: camel-1.2