blob: 91effd701d8369cb520883ec28fc45ef0490174a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* Copyright (c) 2003-2004, Roger Dingledine
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
* Copyright (c) 2007-2020, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file lockfile.h
*
* \brief Header for lockfile.c
**/
#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 /* !defined(TOR_LOCKFILE_H) */
|