locker.texi 918 Bytes
@c This is part of the GNU Mailutils manual.
@c Copyright (C) 1999,2000,2001,2002 Free Software Foundation, Inc.
@c See file mailutils.texi for copying conditions.
@comment *******************************************************************
@example
@code{/* Prefix @emph{locker_} is reserved */}
@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