xref: /netbsd-src/external/bsd/openldap/dist/include/lutil_lockf.h (revision 549b59ed3ccf0d36d3097190a0db27b770f3a839)
1*549b59edSchristos /*	$NetBSD: lutil_lockf.h,v 1.3 2021/08/14 16:14:55 christos Exp $	*/
24e6df137Slukem 
3d11b170bStron /* $OpenLDAP$ */
42de962bdSlukem /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
52de962bdSlukem  *
6*549b59edSchristos  * Copyright 1998-2021 The OpenLDAP Foundation.
72de962bdSlukem  * All rights reserved.
82de962bdSlukem  *
92de962bdSlukem  * Redistribution and use in source and binary forms, with or without
102de962bdSlukem  * modification, are permitted only as authorized by the OpenLDAP
112de962bdSlukem  * Public License.
122de962bdSlukem  *
132de962bdSlukem  * A copy of this license is available in file LICENSE in the
142de962bdSlukem  * top-level directory of the distribution or, alternatively, at
152de962bdSlukem  * <http://www.OpenLDAP.org/license.html>.
162de962bdSlukem  */
172de962bdSlukem 
182de962bdSlukem /* File locking methods
192de962bdSlukem  *
202de962bdSlukem  * lutil_lockf() will block until an exclusive lock is acquired.
212de962bdSlukem  */
222de962bdSlukem 
232de962bdSlukem #ifndef _LUTIL_LOCKF_H_
242de962bdSlukem #define _LUTIL_LOCKF_H_
252de962bdSlukem 
262de962bdSlukem LDAP_BEGIN_DECL
272de962bdSlukem 
282de962bdSlukem LDAP_LUTIL_F( int )
292de962bdSlukem lutil_lockf LDAP_P(( int fd ));
302de962bdSlukem 
312de962bdSlukem LDAP_LUTIL_F( int )
322de962bdSlukem lutil_unlockf LDAP_P(( int fd ));
332de962bdSlukem 
342de962bdSlukem LDAP_END_DECL
352de962bdSlukem 
362de962bdSlukem #endif /* _LUTIL_LOCKF_H_ */
37