IDZEBRA 2.2.8
flock.h
Go to the documentation of this file.
1/* This file is part of the Zebra server.
2 Copyright (C) Index Data
3
4Zebra is free software; you can redistribute it and/or modify it under
5the terms of the GNU General Public License as published by the Free
6Software Foundation; either version 2, or (at your option) any later
7version.
8
9Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
10WARRANTY; without even the implied warranty of MERCHANTABILITY or
11FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program; if not, write to the Free Software
16Foundation, 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
25YAZ_BEGIN_CDECL
26
28
29YAZ_EXPORT
30ZebraLockHandle zebra_lock_create(const char *dir, const char *file);
31
32YAZ_EXPORT
34
35YAZ_EXPORT
37YAZ_EXPORT
38char *zebra_mk_fname (const char *dir, const char *name);
39
40YAZ_EXPORT
42YAZ_EXPORT
44
45YAZ_EXPORT
46void zebra_flock_init(void);
47
48YAZ_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
char * zebra_mk_fname(const char *dir, const char *name)
Definition flock.c:84
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
int zebra_unlock(ZebraLockHandle h)
Definition flock.c:313