Coda Distributed File System
coda_flock.h
Go to the documentation of this file.
1/* BLURB gpl
2
3 Coda File System
4 Release 6
5
6 Copyright (c) 1987-2003 Carnegie Mellon University
7 Additional copyrights listed below
8
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU General Public Licence Version 2, as shown in the
11file LICENSE. The technical and financial contributors to Coda are
12listed in the file CREDITS.
13
14 Additional copyrights
15
16#*/
17
18#ifndef CODA_FLOCK_H
19#define CODA_FLOCK_H
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25extern int myflock(int fd, int type, int block);
26
27#ifdef HAVE_FCNTL_LOCKING
28#define MYFLOCK_UN F_UNLCK
29#define MYFLOCK_SH F_RDLCK
30#define MYFLOCK_EX F_WRLCK
31#define MYFLOCK_NB F_SETLK
32#define MYFLOCK_BL F_SETLKW
33#else /* HAVE_FLOCK_LOCKING */
34#define MYFLOCK_UN LOCK_UN
35#define MYFLOCK_SH LOCK_SH
36#define MYFLOCK_EX LOCK_EX
37#define MYFLOCK_NB LOCK_NB
38#define MYFLOCK_BL 0
39#endif
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif
int myflock(int fd, int type, int block)
Definition: coda_flock.c:32
void(* type)()
Definition: rp2main.c:424
Definition: tar-FromRedHatCD.h:228