Tor
0.4.9.2-alpha-dev
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
b
c
d
f
g
h
l
m
n
o
p
r
s
v
Enumerations
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
g
h
i
m
n
o
p
q
r
s
t
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
lib
fs
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-2021, The Tor Project, Inc. */
4
/* See LICENSE for licensing information */
5
6
/**
7
* \file lockfile.h
8
*
9
* \brief Header for lockfile.c
10
**/
11
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);
18
void
tor_lockfile_unlock
(
tor_lockfile_t
*
lockfile
);
19
20
#endif
/* !defined(TOR_LOCKFILE_H) */
tor_lockfile_lock
tor_lockfile_t * tor_lockfile_lock(const char *filename, int blocking, int *locked_out)
Definition:
lockfile.c:63
tor_lockfile_unlock
void tor_lockfile_unlock(tor_lockfile_t *lockfile)
Definition:
lockfile.c:121
lockfile
static tor_lockfile_t * lockfile
Definition:
main.c:659
tor_lockfile_t
Definition:
lockfile.c:38
tor_lockfile_t::filename
char * filename
Definition:
lockfile.c:40
Generated by
1.9.4