lockfile.h 545 B

1234567891011121314151617181920
  1. /* Copyright (c) 2003-2004, Roger Dingledine
  2. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  3. * Copyright (c) 2007-2018, The Tor Project, Inc. */
  4. /* See LICENSE for licensing information */
  5. /**
  6. * \file lockfile.h
  7. *
  8. * \brief Header for lockfile.c
  9. **/
  10. #ifndef TOR_LOCKFILE_H
  11. #define TOR_LOCKFILE_H
  12. typedef struct tor_lockfile_t tor_lockfile_t;
  13. tor_lockfile_t *tor_lockfile_lock(const char *filename, int blocking,
  14. int *locked_out);
  15. void tor_lockfile_unlock(tor_lockfile_t *lockfile);
  16. #endif