IDZEBRA  2.2.7
flock.h
Go to the documentation of this file.
1 /* This file is part of the Zebra server.
2  Copyright (C) Index Data
3 
4 Zebra is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2, or (at your option) any later
7 version.
8 
9 Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 for more details.
13 
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 
18 */
19 
20 #include <yaz/yconfig.h>
21 
22 #ifndef FLOCK_H
23 #define FLOCK_H
24 
25 YAZ_BEGIN_CDECL
26 
28 
29 YAZ_EXPORT
30 ZebraLockHandle zebra_lock_create(const char *dir, const char *file);
31 
32 YAZ_EXPORT
34 
35 YAZ_EXPORT
37 YAZ_EXPORT
38 char *zebra_mk_fname (const char *dir, const char *name);
39 
40 YAZ_EXPORT
42 YAZ_EXPORT
44 
45 YAZ_EXPORT
46 void zebra_flock_init(void);
47 
48 YAZ_END_CDECL
49 
50 #endif
51 /*
52  * Local variables:
53  * c-basic-offset: 4
54  * c-file-style: "Stroustrup"
55  * indent-tabs-mode: nil
56  * End:
57  * vim: shiftwidth=4 tabstop=8 expandtab
58  */
59 
ZebraLockHandle zebra_lock_create(const char *dir, const char *file)
Definition: flock.c:106
void zebra_flock_init(void)
Definition: flock.c:380
struct zebra_lock_handle * ZebraLockHandle
Definition: flock.h:27
int zebra_lock_r(ZebraLockHandle h)
Definition: flock.c:277
int zebra_lock_w(ZebraLockHandle h)
Definition: flock.c:240
void zebra_lock_destroy(ZebraLockHandle h)
Definition: flock.c:177
char * zebra_mk_fname(const char *dir, const char *name)
Definition: flock.c:84
int zebra_unlock(ZebraLockHandle h)
Definition: flock.c:313