1/* Generated by ./xlat/gen.sh from ./xlat/flockcmds.in; do not edit. */
2#if !(defined(LOCK_SH) || (defined(HAVE_DECL_LOCK_SH) && HAVE_DECL_LOCK_SH))
3# define LOCK_SH 1
4#endif
5#if !(defined(LOCK_EX) || (defined(HAVE_DECL_LOCK_EX) && HAVE_DECL_LOCK_EX))
6# define LOCK_EX 2
7#endif
8#if !(defined(LOCK_NB) || (defined(HAVE_DECL_LOCK_NB) && HAVE_DECL_LOCK_NB))
9# define LOCK_NB 4
10#endif
11#if !(defined(LOCK_UN) || (defined(HAVE_DECL_LOCK_UN) && HAVE_DECL_LOCK_UN))
12# define LOCK_UN 8
13#endif
14#if !(defined(LOCK_MAND) || (defined(HAVE_DECL_LOCK_MAND) && HAVE_DECL_LOCK_MAND))
15# define LOCK_MAND 32
16#endif
17#if !(defined(LOCK_RW) || (defined(HAVE_DECL_LOCK_RW) && HAVE_DECL_LOCK_RW))
18# define LOCK_RW 192
19#endif
20#if !(defined(LOCK_READ) || (defined(HAVE_DECL_LOCK_READ) && HAVE_DECL_LOCK_READ))
21# define LOCK_READ 64
22#endif
23#if !(defined(LOCK_WRITE) || (defined(HAVE_DECL_LOCK_WRITE) && HAVE_DECL_LOCK_WRITE))
24# define LOCK_WRITE 128
25#endif
26
27#ifdef IN_MPERS
28
29# error static const struct xlat flockcmds in mpers mode
30
31#else
32
33static
34const struct xlat flockcmds[] = {
35 XLAT(LOCK_SH),
36 XLAT(LOCK_EX),
37 XLAT(LOCK_NB),
38 XLAT(LOCK_UN),
39 XLAT(LOCK_MAND),
40 XLAT(LOCK_RW),
41 XLAT(LOCK_READ),
42 XLAT(LOCK_WRITE),
43 XLAT_END
44};
45
46#endif /* !IN_MPERS */
47