xref: /illumos-gate/usr/src/cmd/ast/libast/sparcv9/FEATURE/fcntl (revision 689b9301078f0c35c7f198fcee8032a0d30eff3a)
1
2/* : : generated by proto : : */
3/* : : generated from contrib/ast/src/lib/libast/features/fcntl.c by iffe version 2012-07-17 : : */
4#ifndef _def_fcntl_ast
5#if !defined(__PROTO__)
6#  if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
7#    if defined(__cplusplus)
8#      define __LINKAGE__	"C"
9#    else
10#      define __LINKAGE__
11#    endif
12#    define __STDARG__
13#    define __PROTO__(x)	x
14#    define __OTORP__(x)
15#    define __PARAM__(n,o)	n
16#    if !defined(__STDC__) && !defined(__cplusplus)
17#      if !defined(c_plusplus)
18#      	define const
19#      endif
20#      define signed
21#      define void		int
22#      define volatile
23#      define __V_		char
24#    else
25#      define __V_		void
26#    endif
27#  else
28#    define __PROTO__(x)	()
29#    define __OTORP__(x)	x
30#    define __PARAM__(n,o)	o
31#    define __LINKAGE__
32#    define __V_		char
33#    define const
34#    define signed
35#    define void		int
36#    define volatile
37#  endif
38#  define __MANGLE__	__LINKAGE__
39#  if defined(__cplusplus) || defined(c_plusplus)
40#    define __VARARG__	...
41#  else
42#    define __VARARG__
43#  endif
44#  if defined(__STDARG__)
45#    define __VA_START__(p,a)	va_start(p,a)
46#  else
47#    define __VA_START__(p,a)	va_start(p)
48#  endif
49#  if !defined(__INLINE__)
50#    if defined(__cplusplus)
51#      define __INLINE__	extern __MANGLE__ inline
52#    else
53#      if defined(_WIN32) && !defined(__GNUC__)
54#      	define __INLINE__	__inline
55#      endif
56#    endif
57#  endif
58#endif
59#if !defined(__LINKAGE__)
60#define __LINKAGE__		/* 2004-08-11 transition */
61#endif
62
63#define _def_fcntl_ast	1
64#define _sys_types	1	/* #include <sys/types.h> ok */
65
66
67#if _typ_off64_t
68#undef	off_t
69#ifdef __STDC__
70#define	off_t		off_t
71#endif
72#endif
73
74#include <ast_fs.h>
75
76#if _typ_off64_t
77#undef	off_t
78#ifdef __STDC__
79#define	off_t		off_t
80#endif
81#endif
82
83#include <fcntl.h>
84#include <sys/mman.h>
85
86#define F_dupfd_cloexec	F_DUPFD_CLOEXEC
87#define O_BINARY		0
88#define O_cloexec		O_CLOEXEC
89#define O_TEMPORARY		0
90#define O_TEXT			0
91
92#include <ast_fs.h>
93#if _typ_off64_t
94#undef	off_t
95#define	off_t		off64_t
96#endif
97#if _lib_fstat64
98#define fstat		fstat64
99#endif
100#if _lib_lstat64
101#define lstat		lstat64
102#endif
103#if _lib_stat64
104#define stat		stat64
105#endif
106#if _lib_creat64
107#define creat		creat64
108#endif
109#if _lib_mmap64
110#define mmap		mmap64
111#endif
112#if _lib_open64
113#undef	open
114#define open		open64
115#endif
116#endif
117