lockfile.h 480 B

1234567891011121314
  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. #ifndef TOR_LOCKFILE_H
  6. #define TOR_LOCKFILE_H
  7. typedef struct tor_lockfile_t tor_lockfile_t;
  8. tor_lockfile_t *tor_lockfile_lock(const char *filename, int blocking,
  9. int *locked_out);
  10. void tor_lockfile_unlock(tor_lockfile_t *lockfile);
  11. #endif