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