aboutsummaryrefslogtreecommitdiff
path: root/src/lib/fs/lockfile.h
blob: 1c5bb023b553bfb9909addb4272c2948d8fc5cf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* 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