tor/src/lib/fs/lockfile.h

21 lines
576 B
C
Raw Normal View History

2018-06-28 11:33:50 -04:00
/* Copyright (c) 2003-2004, Roger Dingledine
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
2019-01-16 12:33:22 -05:00
* Copyright (c) 2007-2019, The Tor Project, Inc. */
2018-06-28 11:33:50 -04:00
/* See LICENSE for licensing information */
/**
* \file lockfile.h
*
* \brief Header for lockfile.c
**/
2018-06-28 11:33:50 -04:00
#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);
2019-06-05 09:33:35 -04:00
#endif /* !defined(TOR_LOCKFILE_H) */