]> git.sur5r.net Git - openldap/blob - include/lutil_lockf.h
Sync with HEAD
[openldap] / include / lutil_lockf.h
1 /* $OpenLDAP$ */
2 /* $OpenLDAP$ */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4  *
5  * Copyright 1998-2004 The OpenLDAP Foundation.
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted only as authorized by the OpenLDAP
10  * Public License.
11  *
12  * A copy of this license is available in file LICENSE in the
13  * top-level directory of the distribution or, alternatively, at
14  * <http://www.OpenLDAP.org/license.html>.
15  */
16
17 /* File locking methods
18  *
19  * lutil_lockf() will block until an exclusive lock is acquired.
20  */
21
22 #ifndef _LUTIL_LOCKF_H_
23 #define _LUTIL_LOCKF_H_
24
25 LDAP_BEGIN_DECL
26
27 LDAP_LUTIL_F( int )
28 lutil_lockf LDAP_P(( int fd ));
29
30 LDAP_LUTIL_F( int )
31 lutil_unlockf LDAP_P(( int fd ));
32
33 LDAP_END_DECL
34
35 #endif /* _LUTIL_LOCKF_H_ */