locker.texi 676 Bytes
@example
@code{/* Prefix @emph{locker_} is reserve */}
@code{#include <mailutils/locker.h>}

@end example

@deftypefun int locker_create (locker_t * @var{plocker}, char *@var{filename}, size_t @var{len}, int @var{flags})
@end deftypefun

@deftypefun void locker_destroy (locker_t * @var{plocker})
@end deftypefun

@deftypefun int locker_lock (locker_t @var{locker}, int @var{flag})
@table @code
@item MU_LOCKER_RDLOCK
@item MU_LOCKER_WRLOCK
@item MU_LOCKER_PID
@item MU_LOCKER_FCNTL
@item MU_LOCKER_TIME
@end table
@end deftypefun

@deftypefun int locker_touchlock (locker_t @var{locker})
@end deftypefun

@deftypefun int locker_unlock (locker_t @var{locker})
@end deftypefun