mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-26 23:52:30 +01:00
15 lines
480 B
C
15 lines
480 B
C
|
/* Copyright (c) 2003-2004, Roger Dingledine
|
||
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
||
|
* Copyright (c) 2007-2018, The Tor Project, Inc. */
|
||
|
/* See LICENSE for licensing information */
|
||
|
|
||
|
#ifndef TOR_LOCKFILE_H
|
||
|
#define TOR_LOCKFILE_H
|
||
|
|
||
|
typedef struct tor_lockfile_t tor_lockfile_t;
|
||
|
tor_lockfile_t *tor_lockfile_lock(const char *filename, int blocking,
|
||
|
int *locked_out);
|
||
|
void tor_lockfile_unlock(tor_lockfile_t *lockfile);
|
||
|
|
||
|
#endif
|