]> git.sur5r.net Git - openldap/blob - include/lutil_lockf.h
86fc9cebd6956c8811ba63b8bab1d8fe177a155a
[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
11 /* File locking methods
12  *
13  * lutil_lockf() will block until an exclusive lock is acquired.
14  */
15
16 #ifndef _LUTIL_LOCKF_H_
17 #define _LUTIL_LOCKF_H_
18
19 LDAP_BEGIN_DECL
20
21 LDAP_F( int )
22 lutil_lockf LDAP_P(( int fd ));
23
24 LDAP_F( int )
25 lutil_unlockf LDAP_P(( int fd ));
26
27 LDAP_END_DECL
28
29 #endif /* _LUTIL_LOCKF_H_ */