lutil_lockf.h 813 B

12345678910111213141516171819202122232425262728293031323334
  1. /* $OpenLDAP$ */
  2. /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  3. *
  4. * Copyright 1998-2022 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. /* File locking methods
  16. *
  17. * lutil_lockf() will block until an exclusive lock is acquired.
  18. */
  19. #ifndef _LUTIL_LOCKF_H_
  20. #define _LUTIL_LOCKF_H_
  21. LDAP_BEGIN_DECL
  22. LDAP_LUTIL_F( int )
  23. lutil_lockf LDAP_P(( int fd ));
  24. LDAP_LUTIL_F( int )
  25. lutil_unlockf LDAP_P(( int fd ));
  26. LDAP_END_DECL
  27. #endif /* _LUTIL_LOCKF_H_ */