Postfix3.3.1
myflock.h
[詳解]
1 #ifndef _MYFLOCK_H_INCLUDED_
2 #define _MYFLOCK_H_INCLUDED_
3 
4 /*++
5 /* NAME
6 /* myflock 3h
7 /* SUMMARY
8 /* lock open file
9 /* SYNOPSIS
10 /* #include <myflock.h>
11 /* DESCRIPTION
12 /* .nf
13 
14  /*
15  * External interface.
16  */
17 extern int WARN_UNUSED_RESULT myflock(int, int, int);
18 
19  /*
20  * Lock styles.
21  */
22 #define MYFLOCK_STYLE_FLOCK 1
23 #define MYFLOCK_STYLE_FCNTL 2
24 
25  /*
26  * Lock request types.
27  */
28 #define MYFLOCK_OP_NONE 0
29 #define MYFLOCK_OP_SHARED 1
30 #define MYFLOCK_OP_EXCLUSIVE 2
31 #define MYFLOCK_OP_NOWAIT 4
32 
33 #define MYFLOCK_OP_BITS \
34  (MYFLOCK_OP_SHARED | MYFLOCK_OP_EXCLUSIVE | MYFLOCK_OP_NOWAIT)
35 
36 /* LICENSE
37 /* .ad
38 /* .fi
39 /* The Secure Mailer license must be distributed with this software.
40 /* AUTHOR(S)
41 /* Wietse Venema
42 /* IBM T.J. Watson Research
43 /* P.O. Box 704
44 /* Yorktown Heights, NY 10598, USA
45 /*
46 /* Wietse Venema
47 /* Google, Inc.
48 /* 111 8th Avenue
49 /* New York, NY 10011, USA
50 /*--*/
51 
52 #endif
#define WARN_UNUSED_RESULT
Definition: sys_defs.h:1662
int WARN_UNUSED_RESULT myflock(int, int, int)
Definition: myflock.c:87