No empty .Rs/.Re
[netbsd-mini2440.git] / sys / compat / irix / irix_fcntl.h
blob2e4a9d221a84904ee6477bc9d1ddc07c9d0918df
1 /* $NetBSD: irix_fcntl.h,v 1.2 2002/06/01 16:16:36 manu Exp $ */
3 /*-
4 * Copyright (c) 2002 The NetBSD Foundation, Inc.
5 * All rights reserved.
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Emmanuel Dreyfus
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
32 #ifndef _IRIX_FCNTL_H_
33 #define _IRIX_FCNTL_H_
35 #include <compat/svr4/svr4_fcntl.h>
37 /* From IRIX's <sys/fcntl.h> */
38 #define IRIX_F_DUPFD SVR4_F_DUPFD
39 #define IRIX_F_GETFD SVR4_F_GETFD
40 #define IRIX_F_SETFD SVR4_F_SETFD
41 #define IRIX_F_GETFL SVR4_F_GETFL
42 #define IRIX_F_SETFL SVR4_F_SETFL
43 #define IRIX_F_SETLK SVR4_F_SETLK
44 #define IRIX_F_SETLKW SVR4_F_SETLKW
45 #define IRIX_F_CHKFL SVR4_F_CHKFL
46 #define IRIX_F_ALLOCSP SVR4_F_ALLOCSP
47 #define IRIX_F_FREESP SVR4_F_FREESP
48 #define IRIX_F_SETBSDLK 12
49 #define IRIX_F_SETBSDLKW 13
50 #define IRIX_F_GETLK SVR4_F_GETLK
51 #define IRIX_F_CHKLK 15
52 #define IRIX_F_CHKLKW 16
53 #define IRIX_F_CLNLK 17
54 #define IRIX_F_RSETLK SVR4_F_RSETLK
55 #define IRIX_F_RGETLK SVR4_F_RGETLK
56 #define IRIX_F_RSETLKW SVR4_F_RSETLKW
57 #define IRIX_F_GETOWN SVR4_F_GETOWN
58 #define IRIX_F_SETOWN SVR4_F_SETOWN
59 #define IRIX_F_DIOINFO 30
60 #define IRIX_F_FSGETXATTR 31
61 #define IRIX_F_FSSETXATTR 32
62 #define IRIX_F_GETLK64 SVR4_F_GETLK64
63 #define IRIX_F_SETLK64 SVR4_F_SETLK64
64 #define IRIX_F_SETLKW64 SVR4_F_SETLKW64
65 #define IRIX_F_ALLOCSP64 36
66 #define IRIX_F_FREESP64 SVR4_F_FREESP64
67 #define IRIX_F_GETBMAP 38
68 #define IRIX_F_FSSETDM 39
69 #define IRIX_F_RESVSP 40
70 #define IRIX_F_UNRESVSP 41
71 #define IRIX_F_RESVSP64 42
72 #define IRIX_F_UNRESVSP64 43
73 #define IRIX_F_GETBMAPA 44
74 #define IRIX_F_FSGETXATTRA 45
75 #define IRIX_F_SETBIOSIZE 46
76 #define IRIX_F_GETBIOSIZE 47
77 #define IRIX_F_GETOPS 50
78 #define IRIX_F_DMAPI 51
79 #define IRIX_F_FSYNC 52
80 #define IRIX_F_FSYNC64 53
81 #define IRIX_F_GETBDSATTR 54
82 #define IRIX_F_SETBDSATTR 55
83 #define IRIX_F_GETBMAPX 56
84 #define IRIX_F_SETPRIO 57
85 #define IRIX_F_GETPRIO 58
87 /* fcntl F_GETFL flags */
88 #define IRIX_FNDELAY 0x000004
89 #define IRIX_FAPPEND 0x000008
90 #define IRIX_FSYNC 0x000010
91 #define IRIX_FDSYNC 0x000020
92 #define IRIX_FRSYNC 0x000040
93 #define IRIX_FNONBLOCK 0x000080
94 #define IRIX_FASYNC 0x001000
95 #define IRIX_FLARGEFILE 0x002000
96 #define IRIX_FDIRECT 0x008000
97 #define IRIX_FBULK 0x010000
98 #define IRIX_FLCINVAL 0x020000
99 #define IRIX_FLCFLUSH 0x040000
101 #endif /* _IRIX_FCNTL_H_ */