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