xref: /titanic_51/usr/src/cmd/ast/libast/amd64/FEATURE/sys (revision b4dd7d09880f14016feece03929a224eca1cf39a)
1*b4dd7d09SAndy Fiddaman
2*b4dd7d09SAndy Fiddaman/* : : generated by proto : : */
3*b4dd7d09SAndy Fiddaman/* : : generated from contrib/ast/src/lib/libast/features/sys by iffe version 2012-07-17 : : */
4*b4dd7d09SAndy Fiddaman
5*b4dd7d09SAndy Fiddaman#ifndef _AST_SYS_H
6*b4dd7d09SAndy Fiddaman#if !defined(__PROTO__)
7*b4dd7d09SAndy Fiddaman#  if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
8*b4dd7d09SAndy Fiddaman#    if defined(__cplusplus)
9*b4dd7d09SAndy Fiddaman#      define __LINKAGE__	"C"
10*b4dd7d09SAndy Fiddaman#    else
11*b4dd7d09SAndy Fiddaman#      define __LINKAGE__
12*b4dd7d09SAndy Fiddaman#    endif
13*b4dd7d09SAndy Fiddaman#    define __STDARG__
14*b4dd7d09SAndy Fiddaman#    define __PROTO__(x)	x
15*b4dd7d09SAndy Fiddaman#    define __OTORP__(x)
16*b4dd7d09SAndy Fiddaman#    define __PARAM__(n,o)	n
17*b4dd7d09SAndy Fiddaman#    if !defined(__STDC__) && !defined(__cplusplus)
18*b4dd7d09SAndy Fiddaman#      if !defined(c_plusplus)
19*b4dd7d09SAndy Fiddaman#      	define const
20*b4dd7d09SAndy Fiddaman#      endif
21*b4dd7d09SAndy Fiddaman#      define signed
22*b4dd7d09SAndy Fiddaman#      define void		int
23*b4dd7d09SAndy Fiddaman#      define volatile
24*b4dd7d09SAndy Fiddaman#      define __V_		char
25*b4dd7d09SAndy Fiddaman#    else
26*b4dd7d09SAndy Fiddaman#      define __V_		void
27*b4dd7d09SAndy Fiddaman#    endif
28*b4dd7d09SAndy Fiddaman#  else
29*b4dd7d09SAndy Fiddaman#    define __PROTO__(x)	()
30*b4dd7d09SAndy Fiddaman#    define __OTORP__(x)	x
31*b4dd7d09SAndy Fiddaman#    define __PARAM__(n,o)	o
32*b4dd7d09SAndy Fiddaman#    define __LINKAGE__
33*b4dd7d09SAndy Fiddaman#    define __V_		char
34*b4dd7d09SAndy Fiddaman#    define const
35*b4dd7d09SAndy Fiddaman#    define signed
36*b4dd7d09SAndy Fiddaman#    define void		int
37*b4dd7d09SAndy Fiddaman#    define volatile
38*b4dd7d09SAndy Fiddaman#  endif
39*b4dd7d09SAndy Fiddaman#  define __MANGLE__	__LINKAGE__
40*b4dd7d09SAndy Fiddaman#  if defined(__cplusplus) || defined(c_plusplus)
41*b4dd7d09SAndy Fiddaman#    define __VARARG__	...
42*b4dd7d09SAndy Fiddaman#  else
43*b4dd7d09SAndy Fiddaman#    define __VARARG__
44*b4dd7d09SAndy Fiddaman#  endif
45*b4dd7d09SAndy Fiddaman#  if defined(__STDARG__)
46*b4dd7d09SAndy Fiddaman#    define __VA_START__(p,a)	va_start(p,a)
47*b4dd7d09SAndy Fiddaman#  else
48*b4dd7d09SAndy Fiddaman#    define __VA_START__(p,a)	va_start(p)
49*b4dd7d09SAndy Fiddaman#  endif
50*b4dd7d09SAndy Fiddaman#  if !defined(__INLINE__)
51*b4dd7d09SAndy Fiddaman#    if defined(__cplusplus)
52*b4dd7d09SAndy Fiddaman#      define __INLINE__	extern __MANGLE__ inline
53*b4dd7d09SAndy Fiddaman#    else
54*b4dd7d09SAndy Fiddaman#      if defined(_WIN32) && !defined(__GNUC__)
55*b4dd7d09SAndy Fiddaman#      	define __INLINE__	__inline
56*b4dd7d09SAndy Fiddaman#      endif
57*b4dd7d09SAndy Fiddaman#    endif
58*b4dd7d09SAndy Fiddaman#  endif
59*b4dd7d09SAndy Fiddaman#endif
60*b4dd7d09SAndy Fiddaman#if !defined(__LINKAGE__)
61*b4dd7d09SAndy Fiddaman#define __LINKAGE__		/* 2004-08-11 transition */
62*b4dd7d09SAndy Fiddaman#endif
63*b4dd7d09SAndy Fiddaman
64*b4dd7d09SAndy Fiddaman#define _AST_SYS_H	1
65*b4dd7d09SAndy Fiddaman#define _sys_types	1	/* #include <sys/types.h> ok */
66*b4dd7d09SAndy Fiddaman#if __mips == 2 && !defined(_NO_LARGEFILE64_SOURCE)
67*b4dd7d09SAndy Fiddaman#define _NO_LARGEFILE64_SOURCE 1
68*b4dd7d09SAndy Fiddaman#endif
69*b4dd7d09SAndy Fiddaman#if !defined(_NO_LARGEFILE64_SOURCE) && _typ_off64_t && _lib_lseek64 && _lib_stat64
70*b4dd7d09SAndy Fiddaman#if !defined(_LARGEFILE64_SOURCE)
71*b4dd7d09SAndy Fiddaman#define _LARGEFILE64_SOURCE 1
72*b4dd7d09SAndy Fiddaman#endif
73*b4dd7d09SAndy Fiddaman#if !defined(_LARGEFILE_SOURCE)
74*b4dd7d09SAndy Fiddaman#define _LARGEFILE_SOURCE 1
75*b4dd7d09SAndy Fiddaman#endif
76*b4dd7d09SAndy Fiddaman#if !defined(_LARGE_FILE_API)
77*b4dd7d09SAndy Fiddaman#define _LARGE_FILE_API 1
78*b4dd7d09SAndy Fiddaman#endif
79*b4dd7d09SAndy Fiddaman#else
80*b4dd7d09SAndy Fiddaman#undef _LARGEFILE64_SOURCE
81*b4dd7d09SAndy Fiddaman#undef _LARGEFILE_SOURCE
82*b4dd7d09SAndy Fiddaman#undef _LARGE_FILE_API
83*b4dd7d09SAndy Fiddaman#undef _typ_ino64_t
84*b4dd7d09SAndy Fiddaman#undef _typ_off64_t
85*b4dd7d09SAndy Fiddaman#undef _typ_struct_dirent64
86*b4dd7d09SAndy Fiddaman#undef _lib_creat64
87*b4dd7d09SAndy Fiddaman#undef _lib_fstat64
88*b4dd7d09SAndy Fiddaman#undef _lib_fstatvfs64
89*b4dd7d09SAndy Fiddaman#undef _lib_ftruncate64
90*b4dd7d09SAndy Fiddaman#undef _lib_lseek64
91*b4dd7d09SAndy Fiddaman#undef _lib_lstat64
92*b4dd7d09SAndy Fiddaman#undef _lib_mmap64
93*b4dd7d09SAndy Fiddaman#undef _lib_open64
94*b4dd7d09SAndy Fiddaman#undef _lib_readdir64
95*b4dd7d09SAndy Fiddaman#undef _lib_stat64
96*b4dd7d09SAndy Fiddaman#undef _lib_statvfs64
97*b4dd7d09SAndy Fiddaman#undef _lib_truncate64
98*b4dd7d09SAndy Fiddaman#endif
99*b4dd7d09SAndy Fiddaman#if !_lib_readdir64
100*b4dd7d09SAndy Fiddaman#undef _typ_ino64_t
101*b4dd7d09SAndy Fiddaman#endif
102*b4dd7d09SAndy Fiddaman#if defined(__STDC__) && !defined(__USE_FIXED_PROTOTYPES__)
103*b4dd7d09SAndy Fiddaman#define __USE_FIXED_PROTOTYPES__ 1 /* kick gcc out of the past */
104*b4dd7d09SAndy Fiddaman#endif
105*b4dd7d09SAndy Fiddaman#include <stdlib.h>
106*b4dd7d09SAndy Fiddaman#include <stddef.h>
107*b4dd7d09SAndy Fiddaman#include <sys/types.h>
108*b4dd7d09SAndy Fiddaman#include <stdint.h>
109*b4dd7d09SAndy Fiddaman#include <inttypes.h>
110*b4dd7d09SAndy Fiddaman#include <string.h>
111*b4dd7d09SAndy Fiddaman#include <unistd.h>
112*b4dd7d09SAndy Fiddaman#include <limits.h>
113*b4dd7d09SAndy Fiddaman#include <fcntl.h>
114*b4dd7d09SAndy Fiddaman#include <locale.h>
115*b4dd7d09SAndy Fiddaman#define _hdr_time	1	/* #include <time.h> ok */
116*b4dd7d09SAndy Fiddaman#define _sys_time	1	/* #include <sys/time.h> ok */
117*b4dd7d09SAndy Fiddaman#define _sys_times	1	/* #include <sys/times.h> ok */
118*b4dd7d09SAndy Fiddaman#define _typ_dev_t	1	/* dev_t is a type */
119*b4dd7d09SAndy Fiddaman#define _typ_nlink_t	1	/* nlink_t is a type */
120*b4dd7d09SAndy Fiddaman#define _typ_gid_t	1	/* gid_t is a type */
121*b4dd7d09SAndy Fiddaman#define _typ_mode_t	1	/* mode_t is a type */
122*b4dd7d09SAndy Fiddaman#define _typ_uid_t	1	/* uid_t is a type */
123*b4dd7d09SAndy Fiddaman#define _hdr_stdio	1	/* #include <stdio.h> ok */
124*b4dd7d09SAndy Fiddaman#define _hdr_wchar	1	/* #include <wchar.h> ok */
125*b4dd7d09SAndy Fiddaman#define _typ_wchar_t	1	/* wchar_t is a type */
126*b4dd7d09SAndy Fiddaman#define _typ_pid_t	1	/* pid_t is a type */
127*b4dd7d09SAndy Fiddaman#define _typ_ssize_t	1	/* ssize_t is a type */
128*b4dd7d09SAndy Fiddaman#define _typ_wint_t	1	/* wint_t is a type */
129*b4dd7d09SAndy Fiddaman#define _sys_socket	1	/* #include <sys/socket.h> ok */
130*b4dd7d09SAndy Fiddaman#define _typ_socklen_t	1	/* socklen_t is a type */
131*b4dd7d09SAndy Fiddaman#define _typ_size_t	1	/* size_t is a type */
132*b4dd7d09SAndy Fiddaman#define _typ_clock_t	1	/* clock_t is a type */
133*b4dd7d09SAndy Fiddaman#define _typ_ino_t	1	/* ino_t is a type */
134*b4dd7d09SAndy Fiddaman#define _typ_off_t	1	/* off_t is a type */
135*b4dd7d09SAndy Fiddaman#define _typ_ptrdiff_t	1	/* ptrdiff_t is a type */
136*b4dd7d09SAndy Fiddaman#define _typ_time_t	1	/* time_t is a type */
137*b4dd7d09SAndy Fiddaman#define _typ_div_t	1	/* div_t is a type */
138*b4dd7d09SAndy Fiddaman#define _typ_ldiv_t	1	/* ldiv_t is a type */
139*b4dd7d09SAndy Fiddaman#if _BLD_ast && defined(__EXPORT__)
140*b4dd7d09SAndy Fiddaman#undef __MANGLE__
141*b4dd7d09SAndy Fiddaman#define __MANGLE__ __LINKAGE__ __EXPORT__
142*b4dd7d09SAndy Fiddaman#endif
143*b4dd7d09SAndy Fiddamanextern __MANGLE__ void	cfree __PROTO__((__V_*));
144*b4dd7d09SAndy Fiddamanextern __MANGLE__ size_t	confstr __PROTO__((int, char*, size_t));
145*b4dd7d09SAndy Fiddamanextern __MANGLE__ int	eaccess __PROTO__((const char*, int));
146*b4dd7d09SAndy Fiddamanextern __MANGLE__ int	execvpe __PROTO__((const char*, char* const[], char* const[]));
147*b4dd7d09SAndy Fiddamanextern __MANGLE__ __V_*	pvalloc __PROTO__((size_t));
148*b4dd7d09SAndy Fiddamanextern __MANGLE__ pid_t	spawnveg __PROTO__((const char*, char* const[], char* const[], pid_t));
149*b4dd7d09SAndy Fiddaman#undef __MANGLE__
150*b4dd7d09SAndy Fiddaman#define __MANGLE__ __LINKAGE__
151*b4dd7d09SAndy Fiddaman#if !defined(va_start)
152*b4dd7d09SAndy Fiddaman#if defined(__STDARG__)
153*b4dd7d09SAndy Fiddaman#include <stdarg.h>
154*b4dd7d09SAndy Fiddaman#else
155*b4dd7d09SAndy Fiddaman#include <varargs.h>
156*b4dd7d09SAndy Fiddaman#endif
157*b4dd7d09SAndy Fiddaman#endif
158*b4dd7d09SAndy Fiddaman
159*b4dd7d09SAndy Fiddaman#endif
160