xref: /netbsd-src/external/bsd/openldap/dist/include/lutil_lockf.h (revision b1c86f5f087524e68db12794ee9c3e3da1ab17a0)
1 /*	$NetBSD: lutil_lockf.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $	*/
2 
3 /* OpenLDAP: pkg/ldap/include/lutil_lockf.h,v 1.17.2.4 2009/01/22 00:00:52 kurt Exp */
4 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5  *
6  * Copyright 1998-2009 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