No empty .Rs/.Re
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / util / myflock.h
blobd77b43d0ac3cebc8f57846d7c7146c8b4a306879
1 /* $NetBSD$ */
3 #ifndef _MYFLOCK_H_INCLUDED_
4 #define _MYFLOCK_H_INCLUDED_
6 /*++
7 /* NAME
8 /* myflock 3h
9 /* SUMMARY
10 /* lock open file
11 /* SYNOPSIS
12 /* #include <myflock.h>
13 /* DESCRIPTION
14 /* .nf
17 * External interface.
19 extern int myflock(int, int, int);
22 * Lock styles.
24 #define MYFLOCK_STYLE_FLOCK 1
25 #define MYFLOCK_STYLE_FCNTL 2
28 * Lock request types.
30 #define MYFLOCK_OP_NONE 0
31 #define MYFLOCK_OP_SHARED 1
32 #define MYFLOCK_OP_EXCLUSIVE 2
33 #define MYFLOCK_OP_NOWAIT 4
35 #define MYFLOCK_OP_BITS \
36 (MYFLOCK_OP_SHARED | MYFLOCK_OP_EXCLUSIVE | MYFLOCK_OP_NOWAIT)
38 /* LICENSE
39 /* .ad
40 /* .fi
41 /* The Secure Mailer license must be distributed with this software.
42 /* AUTHOR(S)
43 /* Wietse Venema
44 /* IBM T.J. Watson Research
45 /* P.O. Box 704
46 /* Yorktown Heights, NY 10598, USA
47 /*--*/
49 #endif