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