home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ldapsdk.zip / include / lutil_lockf.h < prev    next >
C/C++ Source or Header  |  2001-06-02  |  822b  |  32 lines

  1. /* $OpenLDAP: pkg/ldap/include/lutil_lockf.h,v 1.5.8.4 2001/06/02 00:33:03 kurt Exp $ */
  2. /*
  3.  * Copyright 1998-2001 The OpenLDAP Foundation, Redwood City, California, USA
  4.  * All rights reserved.
  5.  *
  6.  * Redistribution and use in source and binary forms, with or without
  7.  * modification, are permitted only as authorized by the OpenLDAP
  8.  * Public License.  A copy of this license is available at
  9.  * http://www.OpenLDAP.org/license.html or in file LICENSE in the
  10.  * top-level directory of the distribution.
  11.  */
  12.  
  13. /* File locking methods
  14.  *
  15.  * lutil_lockf() will block until an exclusive lock is acquired.
  16.  */
  17.  
  18. #ifndef _LUTIL_LOCKF_H_
  19. #define _LUTIL_LOCKF_H_
  20.  
  21. LDAP_BEGIN_DECL
  22.  
  23. LDAP_LUTIL_F( int )
  24. lutil_lockf LDAP_P(( int fd ));
  25.  
  26. LDAP_LUTIL_F( int )
  27. lutil_unlockf LDAP_P(( int fd ));
  28.  
  29. LDAP_END_DECL
  30.  
  31. #endif /* _LUTIL_LOCKF_H_ */
  32.