Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / bsd / openldap / dist / include / lutil_lockf.h
blob829d1e2a8aef1fed69e13e3bc93e64cd47b62e02
1 /* $OpenLDAP: pkg/ldap/include/lutil_lockf.h,v 1.17.2.3 2008/02/11 23:26:40 kurt Exp $ */
2 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 * Copyright 1998-2008 The OpenLDAP Foundation.
5 * All rights reserved.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted only as authorized by the OpenLDAP
9 * Public License.
11 * A copy of this license is available in file LICENSE in the
12 * top-level directory of the distribution or, alternatively, at
13 * <http://www.OpenLDAP.org/license.html>.
16 /* File locking methods
18 * lutil_lockf() will block until an exclusive lock is acquired.
21 #ifndef _LUTIL_LOCKF_H_
22 #define _LUTIL_LOCKF_H_
24 LDAP_BEGIN_DECL
26 LDAP_LUTIL_F( int )
27 lutil_lockf LDAP_P(( int fd ));
29 LDAP_LUTIL_F( int )
30 lutil_unlockf LDAP_P(( int fd ));
32 LDAP_END_DECL
34 #endif /* _LUTIL_LOCKF_H_ */