1 /*
2  * BEGIN illumos section
3  *   This is an unstable interface; changes may be made
4  *   without notice.
5  * END illumos section
6  */
7 #ifndef __amd64
8 /***********************************************************************
9 *                                                                      *
10 *               This software is part of the ast package               *
11 *          Copyright (c) 1985-2025 AT&T Intellectual Property          *
12 *                         All Rights Reserved                          *
13 *       This software is licensed by AT&T Intellectual Property        *
14 *           under the terms and conditions of the license in           *
15 *          http://www.eclipse.org/org/documents/epl-v10.html           *
16 *      (with an md5 checksum of b35adb5213ca9657e911e9befb180842)      *
17 *                                                                      *
18 *              Information and Software Systems Research               *
19 *                            AT&T Research                             *
20 *                           Florham Park NJ                            *
21 *                                                                      *
22 *                 Glenn Fowler <gsf@research.att.com>                  *
23 *                  David Korn <dgk@research.att.com>                   *
24 *                   Phong Vo <kpv@research.att.com>                    *
25 *                                                                      *
26 ***********************************************************************/
27 
28 /* : : generated by proto : : */
29 /* : : generated from contrib/ast/src/lib/libast/features/dirent by iffe version 2012-07-17 : : */
30 
31 #ifndef _def_dirent_ast
32 #if !defined(__PROTO__)
33 #  if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
34 #    if defined(__cplusplus)
35 #      define __LINKAGE__	"C"
36 #    else
37 #      define __LINKAGE__
38 #    endif
39 #    define __STDARG__
40 #    define __PROTO__(x)	x
41 #    define __OTORP__(x)
42 #    define __PARAM__(n,o)	n
43 #    if !defined(__STDC__) && !defined(__cplusplus)
44 #      if !defined(c_plusplus)
45 #      	define const
46 #      endif
47 #      define signed
48 #      define void		int
49 #      define volatile
50 #      define __V_		char
51 #    else
52 #      define __V_		void
53 #    endif
54 #  else
55 #    define __PROTO__(x)	()
56 #    define __OTORP__(x)	x
57 #    define __PARAM__(n,o)	o
58 #    define __LINKAGE__
59 #    define __V_		char
60 #    define const
61 #    define signed
62 #    define void		int
63 #    define volatile
64 #  endif
65 #  define __MANGLE__	__LINKAGE__
66 #  if defined(__cplusplus) || defined(c_plusplus)
67 #    define __VARARG__	...
68 #  else
69 #    define __VARARG__
70 #  endif
71 #  if defined(__STDARG__)
72 #    define __VA_START__(p,a)	va_start(p,a)
73 #  else
74 #    define __VA_START__(p,a)	va_start(p)
75 #  endif
76 #  if !defined(__INLINE__)
77 #    if defined(__cplusplus)
78 #      define __INLINE__	extern __MANGLE__ inline
79 #    else
80 #      if defined(_WIN32) && !defined(__GNUC__)
81 #      	define __INLINE__	__inline
82 #      endif
83 #    endif
84 #  endif
85 #endif
86 #if !defined(__LINKAGE__)
87 #define __LINKAGE__		/* 2004-08-11 transition */
88 #endif
89 
90 #define _def_dirent_ast	1
91 #define _lib_opendir	1	/* opendir() in default lib(s) */
92 #define _hdr_dirent	1	/* #include <dirent.h> ok */
93 #define _nxt_dirent <../include/dirent.h>	/* include path for the native <dirent.h> */
94 #define _nxt_dirent_str "../include/dirent.h"	/* include string for the native <dirent.h> */
95 /*
96  * <dirent.h> for [fl]stat64 and off64_t
97  */
98 
99 #ifndef _AST_STD_H
100 
101 #include <../include/dirent.h>	/* the native <dirent.h> */
102 
103 #else
104 
105 #ifndef _DIR64_H
106 #define _DIR64_H
107 
108 #include <ast_std.h>
109 
110 #if _typ_off64_t
111 #undef	off_t
112 #endif
113 
114 #include <../include/dirent.h>	/* the native <dirent.h> */
115 
116 #if _typ_off64_t
117 #define	off_t		off64_t
118 #endif
119 
120 #if _lib_readdir64 && _typ_struct_dirent64
121 #ifndef	dirent
122 #define dirent		dirent64
123 #endif
124 #ifndef	readdir
125 #define readdir		readdir64
126 #endif
127 #endif
128 
129 #endif
130 
131 #endif
132 #endif
133 #else /* __amd64 */
134 /***********************************************************************
135 *                                                                      *
136 *               This software is part of the ast package               *
137 *          Copyright (c) 1985-2025 AT&T Intellectual Property          *
138 *                         All Rights Reserved                          *
139 *       This software is licensed by AT&T Intellectual Property        *
140 *           under the terms and conditions of the license in           *
141 *          http://www.eclipse.org/org/documents/epl-v10.html           *
142 *      (with an md5 checksum of b35adb5213ca9657e911e9befb180842)      *
143 *                                                                      *
144 *              Information and Software Systems Research               *
145 *                            AT&T Research                             *
146 *                           Florham Park NJ                            *
147 *                                                                      *
148 *                 Glenn Fowler <gsf@research.att.com>                  *
149 *                  David Korn <dgk@research.att.com>                   *
150 *                   Phong Vo <kpv@research.att.com>                    *
151 *                                                                      *
152 ***********************************************************************/
153 
154 /* : : generated by proto : : */
155 /* : : generated from contrib/ast/src/lib/libast/features/dirent by iffe version 2012-07-17 : : */
156 
157 #ifndef _def_dirent_ast
158 #if !defined(__PROTO__)
159 #  if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
160 #    if defined(__cplusplus)
161 #      define __LINKAGE__	"C"
162 #    else
163 #      define __LINKAGE__
164 #    endif
165 #    define __STDARG__
166 #    define __PROTO__(x)	x
167 #    define __OTORP__(x)
168 #    define __PARAM__(n,o)	n
169 #    if !defined(__STDC__) && !defined(__cplusplus)
170 #      if !defined(c_plusplus)
171 #      	define const
172 #      endif
173 #      define signed
174 #      define void		int
175 #      define volatile
176 #      define __V_		char
177 #    else
178 #      define __V_		void
179 #    endif
180 #  else
181 #    define __PROTO__(x)	()
182 #    define __OTORP__(x)	x
183 #    define __PARAM__(n,o)	o
184 #    define __LINKAGE__
185 #    define __V_		char
186 #    define const
187 #    define signed
188 #    define void		int
189 #    define volatile
190 #  endif
191 #  define __MANGLE__	__LINKAGE__
192 #  if defined(__cplusplus) || defined(c_plusplus)
193 #    define __VARARG__	...
194 #  else
195 #    define __VARARG__
196 #  endif
197 #  if defined(__STDARG__)
198 #    define __VA_START__(p,a)	va_start(p,a)
199 #  else
200 #    define __VA_START__(p,a)	va_start(p)
201 #  endif
202 #  if !defined(__INLINE__)
203 #    if defined(__cplusplus)
204 #      define __INLINE__	extern __MANGLE__ inline
205 #    else
206 #      if defined(_WIN32) && !defined(__GNUC__)
207 #      	define __INLINE__	__inline
208 #      endif
209 #    endif
210 #  endif
211 #endif
212 #if !defined(__LINKAGE__)
213 #define __LINKAGE__		/* 2004-08-11 transition */
214 #endif
215 
216 #define _def_dirent_ast	1
217 #define _lib_opendir	1	/* opendir() in default lib(s) */
218 #define _hdr_dirent	1	/* #include <dirent.h> ok */
219 #define _nxt_dirent <../include/dirent.h>	/* include path for the native <dirent.h> */
220 #define _nxt_dirent_str "../include/dirent.h"	/* include string for the native <dirent.h> */
221 /*
222  * <dirent.h> for systems with ok <dirent.h>
223  */
224 
225 #ifndef _DIRENT_H
226 
227 #include <../include/dirent.h>	/* the native <dirent.h> */
228 
229 #ifndef _DIRENT_H
230 #define _DIRENT_H
231 #endif
232 
233 #endif
234 #endif
235 #endif /* __amd64 */
236