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