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/>. 3 * 4 * Copyright 1998-2008 The OpenLDAP Foundation. 5 * All rights reserved. 6 * 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. 10 * 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>. 14 */ 15 16 /* File locking methods 17 * 18 * lutil_lockf() will block until an exclusive lock is acquired. 19 */ 20 21 #ifndef _LUTIL_LOCKF_H_ 22 #define _LUTIL_LOCKF_H_ 23 24 LDAP_BEGIN_DECL 25 26 LDAP_LUTIL_F( int ) 27 lutil_lockf LDAP_P(( int fd )); 28 29 LDAP_LUTIL_F( int ) 30 lutil_unlockf LDAP_P(( int fd )); 31 32 LDAP_END_DECL 33 34 #endif /* _LUTIL_LOCKF_H_ */ 35