1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License version 2 as
4  * published by the Free Software Foundation, or (at your option) any
5  * later version. See the COPYING file in the top-level directory.
6  */
7 
8 #ifndef ALPHA_TARGET_FCNTL_H
9 #define ALPHA_TARGET_FCNTL_H
10 
11 #define TARGET_O_NONBLOCK           04
12 #define TARGET_O_APPEND            010
13 #define TARGET_O_CREAT           01000 /* not fcntl */
14 #define TARGET_O_TRUNC           02000 /* not fcntl */
15 #define TARGET_O_EXCL            04000 /* not fcntl */
16 #define TARGET_O_NOCTTY         010000 /* not fcntl */
17 #define TARGET_O_DSYNC          040000
18 #define TARGET_O_LARGEFILE           0 /* not necessary, always 64-bit */
19 #define TARGET_O_DIRECTORY     0100000 /* must be a directory */
20 #define TARGET_O_NOFOLLOW      0200000 /* don't follow links */
21 #define TARGET_O_DIRECT       02000000 /* direct disk access hint */
22 #define TARGET_O_NOATIME      04000000
23 #define TARGET_O_CLOEXEC     010000000
24 #define TARGET___O_SYNC      020000000
25 #define TARGET_O_PATH        040000000
26 #define TARGET___O_TMPFILE  0100000000
27 
28 #define TARGET_F_GETLK         7
29 #define TARGET_F_SETLK         8
30 #define TARGET_F_SETLKW        9
31 #define TARGET_F_SETOWN        5       /*  for sockets. */
32 #define TARGET_F_GETOWN        6       /*  for sockets. */
33 
34 #define TARGET_F_RDLCK         1
35 #define TARGET_F_WRLCK         2
36 #define TARGET_F_UNLCK         8
37 
38 #include "../generic/fcntl.h"
39 #endif
40