1
2/* : : generated by proto : : */
3/* : : generated from /home/gisburn/ksh93/ast_ksh_20100309/build_i386_64bit/src/lib/libast/features/fcntl.c by iffe version 2009-12-04 : : */
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 O_BINARY		0
87#define O_TEMPORARY		0
88#define O_TEXT			0
89
90#include <ast_fs.h>
91#if _typ_off64_t
92#undef	off_t
93#define	off_t		off64_t
94#endif
95#if _lib_fstat64
96#define fstat		fstat64
97#endif
98#if _lib_lstat64
99#define lstat		lstat64
100#endif
101#if _lib_stat64
102#define stat		stat64
103#endif
104#if _lib_creat64
105#define creat		creat64
106#endif
107#if _lib_mmap64
108#define mmap		mmap64
109#endif
110#if _lib_open64
111#undef	open
112#define open		open64
113#endif
114#endif
115