Back to index

openldap  2.4.31
lutil_lockf.h
Go to the documentation of this file.
00001 /* $OpenLDAP$ */
00002 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
00003  *
00004  * Copyright 1998-2012 The OpenLDAP Foundation.
00005  * All rights reserved.
00006  *
00007  * Redistribution and use in source and binary forms, with or without
00008  * modification, are permitted only as authorized by the OpenLDAP
00009  * Public License.
00010  *
00011  * A copy of this license is available in file LICENSE in the
00012  * top-level directory of the distribution or, alternatively, at
00013  * <http://www.OpenLDAP.org/license.html>.
00014  */
00015 
00016 /* File locking methods
00017  *
00018  * lutil_lockf() will block until an exclusive lock is acquired.
00019  */
00020 
00021 #ifndef _LUTIL_LOCKF_H_
00022 #define _LUTIL_LOCKF_H_
00023 
00024 LDAP_BEGIN_DECL
00025 
00026 LDAP_LUTIL_F( int )
00027 lutil_lockf LDAP_P(( int fd ));
00028 
00029 LDAP_LUTIL_F( int )
00030 lutil_unlockf LDAP_P(( int fd ));
00031 
00032 LDAP_END_DECL
00033 
00034 #endif /* _LUTIL_LOCKF_H_ */