tor  0.4.2.0-alpha-dev
lockfile.h
Go to the documentation of this file.
1 /* Copyright (c) 2003-2004, Roger Dingledine
2  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3  * Copyright (c) 2007-2019, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
5 
12 #ifndef TOR_LOCKFILE_H
13 #define TOR_LOCKFILE_H
14 
15 typedef struct tor_lockfile_t tor_lockfile_t;
16 tor_lockfile_t *tor_lockfile_lock(const char *filename, int blocking,
17  int *locked_out);
19 
20 #endif /* !defined(TOR_LOCKFILE_H) */
char * filename
Definition: lockfile.c:40
tor_lockfile_t * tor_lockfile_lock(const char *filename, int blocking, int *locked_out)
Definition: lockfile.c:63
void tor_lockfile_unlock(tor_lockfile_t *lockfile)
Definition: lockfile.c:121
static tor_lockfile_t * lockfile
Definition: main.c:665