xref: /netbsd-src/external/bsd/openldap/dist/include/lutil_lockf.h (revision bdc22b2e01993381dcefeff2bc9b56ca75a4235c)
1 /*	$NetBSD: lutil_lockf.h,v 1.1.1.6 2018/02/06 01:53:05 christos Exp $	*/
2 
3 /* $OpenLDAP$ */
4 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5  *
6  * Copyright 1998-2017 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