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