xref: /netbsd-src/external/bsd/openldap/dist/include/lutil_lockf.h (revision 549b59ed3ccf0d36d3097190a0db27b770f3a839)
1 /*	$NetBSD: lutil_lockf.h,v 1.3 2021/08/14 16:14:55 christos Exp $	*/
2 
3 /* $OpenLDAP$ */
4 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5  *
6  * Copyright 1998-2021 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