]> git.sur5r.net Git - openldap/blob - include/lutil_lockf.h
Added extra checks to locking definitions
[openldap] / include / lutil_lockf.h
1 /*
2  * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms are permitted only
6  * as authorized by the OpenLDAP Public License.  A copy of this
7  * license is available at http://www.OpenLDAP.org/license.html or
8  * in file LICENSE in the top-level directory of the distribution.
9  */
10 /* File locking methods */
11
12 #ifndef _LUTIL_LOCKF_H_
13 #define _LUTIL_LOCKF_H_
14
15 #include <stdio.h>
16 #include <ldap_cdefs.h>
17 #include <ac/bytes.h>
18
19 #ifdef HAVE_FCNTL_H
20 #include <fcntl.h>
21 #endif
22
23 #ifdef NEED_FCNTL_LOCKING
24 LDAP_BEGIN_DECL
25
26 LDAP_F int lutil_ldap_lockf LDAP_P(( FILE *fs ));
27 LDAP_F int lutil_ldap_unlockf LDAP_P(( FILE *fs ));
28
29 LDAP_END_DECL
30 #endif /* NEED_FCNTL_LOCKING */
31
32 #endif /* _LUTIL_LOCKF_H_ */