|
root / base / usr / src / cmd / ast / libshell / amd64 / FEATURE
FEATURE Plain Text 640 lines 21.6 KB
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
/* : : generated by iffe version 2012-07-17 : : */
#ifndef _def_acct_amd64
#define _def_acct_amd64	1
#define _sys_types	1	/* #include <sys/types.h> ok */
#define _dat_acct	1	/* acct in default lib(s) */
#define _lib_acct	1	/* acct() in default lib(s) */
#define _sys_acct	1	/* #include <sys/acct.h> ok */
#endif
/* : : generated from contrib/ast/src/cmd/ksh93/features/cmds by iffe version 2012-07-17 : : */
#ifndef _def_cmds_ksh93
#define _def_cmds_ksh93	1
#define _sys_types	1	/* #include <sys/types.h> ok */
#define _cmd_newgrp	1
#define _usr_bin_newgrp	1
#define _cmd_test	1
#define _usr_bin_test	1
#define _cmd_id	1
#define _usr_bin_id	1
#define _cmd_wc	1
#define _usr_bin_wc	1
#define _cmd_cut	1
#define _usr_bin_cut	1
#define _cmd_logname	1
#define _usr_bin_logname	1
#define _cmd_pfexec	1
#define _usr_bin_pfexec	1
#define _cmd_tput	1
#define _usr_bin_tput	1
#define _pth_ed	"/bin/ed"
#endif
/* : : generated from contrib/ast/src/cmd/ksh93/features/dynamic by iffe version 2012-07-17 : : */
#ifndef _def_dynamic_ksh93
#define _def_dynamic_ksh93	1
#define _sys_types	1	/* #include <sys/types.h> ok */
#if SHOPT_DYNAMIC
#include	<dlldefs.h>
#endif
#if !defined(SHOPT_FS_3D) && SHOPT_DYNAMIC
#   define SHOPT_FS_3D	1
#endif /* !SHOPT_FS_3D */
#if SHOPT_FS_3D
#   undef mount
#   include	<fs3d.h>
#endif /* SHOPT_FS_3D */

#endif
/* : : generated by iffe version 2012-07-17 : : */
#ifndef _def_execargs_amd64
#define _def_execargs_amd64	1
#define _sys_types	1	/* #include <sys/types.h> ok */
#endif

/* : : generated by proto : : */
/* : : generated from contrib/ast/src/cmd/ksh93/features/externs by iffe version 2012-07-17 : : */

#ifndef _def_externs_ksh93
#if !defined(__PROTO__)
#  if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
#    if defined(__cplusplus)
#      define __LINKAGE__	"C"
#    else
#      define __LINKAGE__
#    endif
#    define __STDARG__
#    define __PROTO__(x)	x
#    define __OTORP__(x)
#    define __PARAM__(n,o)	n
#    if !defined(__STDC__) && !defined(__cplusplus)
#      if !defined(c_plusplus)
#      	define const
#      endif
#      define signed
#      define void		int
#      define volatile
#      define __V_		char
#    else
#      define __V_		void
#    endif
#  else
#    define __PROTO__(x)	()
#    define __OTORP__(x)	x
#    define __PARAM__(n,o)	o
#    define __LINKAGE__
#    define __V_		char
#    define const
#    define signed
#    define void		int
#    define volatile
#  endif
#  define __MANGLE__	__LINKAGE__
#  if defined(__cplusplus) || defined(c_plusplus)
#    define __VARARG__	...
#  else
#    define __VARARG__
#  endif
#  if defined(__STDARG__)
#    define __VA_START__(p,a)	va_start(p,a)
#  else
#    define __VA_START__(p,a)	va_start(p)
#  endif
#  if !defined(__INLINE__)
#    if defined(__cplusplus)
#      define __INLINE__	extern __MANGLE__ inline
#    else
#      if defined(_WIN32) && !defined(__GNUC__)
#      	define __INLINE__	__inline
#      endif
#    endif
#  endif
#endif
#if !defined(__LINKAGE__)
#define __LINKAGE__		/* 2004-08-11 transition */
#endif

#define _def_externs_ksh93	1
#define _sys_types	1	/* #include <sys/types.h> ok */
#define _hdr_exec_attr	1	/* #include <exec_attr.h> ok */
#define _hdr_math	1	/* #include <math.h> ok */
#define _mem_name_exception	1	/* name is a member of struct exception */
#define _lib_setreuid	1	/* setreuid() in default lib(s) */
#define _lib_setregid	1	/* setregid() in default lib(s) */
#define _lib_nice	1	/* nice() in default lib(s) */
#define _lib_fork	1	/* fork() in default lib(s) */
#define _lib_spawnveg	1	/* spawnveg() in default lib(s) */
#define _lib_fchdir	1	/* fchdir() in default lib(s) */
#define _sys_mman	1	/* #include <sys/mman.h> ok */
#define _lib_memcntl	1	/* memcntl() in default lib(s) */
#define _LIB_secdb	1	/* -lsecdb is a library */
#define _lib_getexecuser	1	/* getexecuser() in default lib(s) */
#define _lib_free_execattr	1	/* free_execattr() in default lib(s) */
#endif
/* : : generated from contrib/ast/src/cmd/ksh93/features/locale by iffe version 2012-07-17 : : */
#ifndef _def_locale_ksh93
#define _def_locale_ksh93	1
#define _sys_types	1	/* #include <sys/types.h> ok */
#define _hdr_locale	1	/* #include <locale.h> ok */
#define _hdr_wchar	1	/* #include <wchar.h> ok */
#define _hdr_wctype	1	/* #include <wctype.h> ok */
#define _lib_localeconv	1	/* localeconv() in default lib(s) */
#define _lib_wctype	1	/* wctype() in default lib(s) */
#define _lib_iswctype	1	/* iswctype() in default lib(s) */
#define _lib_iswblank	1	/* iswblank() in default lib(s) */
#define _lib_wctrans	1	/* wctrans() in default lib(s) */
#define _lib_towctrans	1	/* towctrans() in default lib(s) */
#define _hdr_time	1	/* #include <time.h> ok */
#define _sys_time	1	/* #include <sys/time.h> ok */
#define _sys_times	1	/* #include <sys/times.h> ok */
#define _hdr_stddef	1	/* #include <stddef.h> ok */
#define _hdr_stdlib	1	/* #include <stdlib.h> ok */
#define _typ_wctrans_t	1	/* wctrans_t is a type */
#if _PACKAGE_ast
#   undef  _hdr_locale
#   define _hdr_locale 1
#else
#   ifdef _hdr_locale
#	include <locale.h>
#	ifndef LC_MESSAGES
#	    define LC_MESSAGES  LC_ALL
#	endif /* LC_MESSAGES */
#   endif /* _hdr_locale */
#endif /* _PACKAGE_ast */
#ifdef _hdr_locale
#   ifdef _lib_localeconv
	static struct lconv *lp;
#	define GETDECIMAL(x)  (((lp=localeconv()) && lp->decimal_point && *lp->decimal_point) ?  *lp->decimal_point : '.' )
#   else
#	define GETDECIMAL(x)	('.')
#   endif /* _lib_localeconv */
#else
#   define GETDECIMAL(x)	('.')
#endif /* _hdr_locale */

#endif

/* : : generated by proto : : */
/* : : generated from contrib/ast/src/cmd/ksh93/features/math.sh by iffe version 2012-07-17 : : */
#ifndef _def_math_ksh93
#if !defined(__PROTO__)
#  if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
#    if defined(__cplusplus)
#      define __LINKAGE__	"C"
#    else
#      define __LINKAGE__
#    endif
#    define __STDARG__
#    define __PROTO__(x)	x
#    define __OTORP__(x)
#    define __PARAM__(n,o)	n
#    if !defined(__STDC__) && !defined(__cplusplus)
#      if !defined(c_plusplus)
#      	define const
#      endif
#      define signed
#      define void		int
#      define volatile
#      define __V_		char
#    else
#      define __V_		void
#    endif
#  else
#    define __PROTO__(x)	()
#    define __OTORP__(x)	x
#    define __PARAM__(n,o)	o
#    define __LINKAGE__
#    define __V_		char
#    define const
#    define signed
#    define void		int
#    define volatile
#  endif
#  define __MANGLE__	__LINKAGE__
#  if defined(__cplusplus) || defined(c_plusplus)
#    define __VARARG__	...
#  else
#    define __VARARG__
#  endif
#  if defined(__STDARG__)
#    define __VA_START__(p,a)	va_start(p,a)
#  else
#    define __VA_START__(p,a)	va_start(p)
#  endif
#  if !defined(__INLINE__)
#    if defined(__cplusplus)
#      define __INLINE__	extern __MANGLE__ inline
#    else
#      if defined(_WIN32) && !defined(__GNUC__)
#      	define __INLINE__	__inline
#      endif
#    endif
#  endif
#endif
#if !defined(__LINKAGE__)
#define __LINKAGE__		/* 2004-08-11 transition */
#endif

#define _def_math_ksh93	1
#define _sys_types	1	/* #include <sys/types.h> ok */


/* : : generated by cmd/ast/tools/iffe from contrib/ast/src/cmd/ksh93/data/math.tab : : */

typedef Sfdouble_t (*Math_f) __PROTO__((Sfdouble_t,...));

#include <math.h>
#include <ieeefp.h>

static Sfdouble_t local_finite __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return finite(a1);}
static int local_fpclassify __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return fpclassify(a1);}
static int local_fpclass __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return fpclass(a1);}
static int local_isfinite __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return isfinite(a1);}
static int local_isgreater __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_t a1;Sfdouble_t a2;){return isgreater(a1,a2);}
static int local_isgreaterequal __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_t a1;Sfdouble_t a2;){return isgreaterequal(a1,a2);}
static int local_isinf __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return isinf(a1);}
static int local_isless __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_t a1;Sfdouble_t a2;){return isless(a1,a2);}
static int local_islessequal __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_t a1;Sfdouble_t a2;){return islessequal(a1,a2);}
static int local_islessgreater __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_t a1;Sfdouble_t a2;){return islessgreater(a1,a2);}
static int local_isnormal __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return isnormal(a1);}
static int local_issubnormal __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){ int q = fpclassify(a1); return q == FP_SUBNORMAL; }
static int local_isunordered __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_t a1;Sfdouble_t a2;){return isunordered(a1,a2);}
static int local_iszero __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){ int q = fpclassify(a1); return q == FP_ZERO; }
static int local_signbit __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return signbit(a1);}

/*
 * first byte is two-digit octal number.  Last digit is number of args
 * first digit is 0 if return value is double, 1 for integer
 */
const struct mathtab shtab_math[] =
{
	"\001acos",	(Math_f)(uintptr_t)acosl,
	"\001acosh",	(Math_f)(uintptr_t)acoshl,
	"\001asin",	(Math_f)(uintptr_t)asinl,
	"\001asinh",	(Math_f)(uintptr_t)asinhl,
	"\001atan",	(Math_f)(uintptr_t)atanl,
	"\002atan2",	(Math_f)(uintptr_t)atan2l,
	"\001atanh",	(Math_f)(uintptr_t)atanhl,
	"\001cbrt",	(Math_f)(uintptr_t)cbrtl,
	"\001ceil",	(Math_f)(uintptr_t)ceill,
	"\002copysign",	(Math_f)(uintptr_t)copysignl,
	"\001cos",	(Math_f)(uintptr_t)cosl,
	"\001cosh",	(Math_f)(uintptr_t)coshl,
	"\001erf",	(Math_f)(uintptr_t)erfl,
	"\001erfc",	(Math_f)(uintptr_t)erfcl,
	"\001exp",	(Math_f)(uintptr_t)expl,
	"\001exp2",	(Math_f)(uintptr_t)exp2l,
	"\001expm1",	(Math_f)(uintptr_t)expm1l,
	"\001fabs",	(Math_f)(uintptr_t)fabsl,
	"\001abs",	(Math_f)(uintptr_t)fabsl,
	"\002fdim",	(Math_f)(uintptr_t)fdiml,
	"\001finite",	(Math_f)(uintptr_t)local_finite,
	"\001floor",	(Math_f)(uintptr_t)floorl,
	"\001int",	(Math_f)(uintptr_t)floorl,
	"\003fma",	(Math_f)(uintptr_t)fmal,
	"\002fmax",	(Math_f)(uintptr_t)fmaxl,
	"\002fmin",	(Math_f)(uintptr_t)fminl,
	"\002fmod",	(Math_f)(uintptr_t)fmodl,
	"\011fpclassify",	(Math_f)(uintptr_t)local_fpclassify,
	"\011fpclass",	(Math_f)(uintptr_t)local_fpclass,
	"\002hypot",	(Math_f)(uintptr_t)hypotl,
	"\011ilogb",	(Math_f)(uintptr_t)ilogbl,
	"\011isfinite",	(Math_f)(uintptr_t)local_isfinite,
	"\012isgreater",	(Math_f)(uintptr_t)local_isgreater,
	"\012isgreaterequal",	(Math_f)(uintptr_t)local_isgreaterequal,
	"\011isinf",	(Math_f)(uintptr_t)local_isinf,
	"\012isless",	(Math_f)(uintptr_t)local_isless,
	"\012islessequal",	(Math_f)(uintptr_t)local_islessequal,
	"\012islessgreater",	(Math_f)(uintptr_t)local_islessgreater,
	"\011isnan",	(Math_f)(uintptr_t)isnanl,
	"\011isnormal",	(Math_f)(uintptr_t)local_isnormal,
	"\011issubnormal",	(Math_f)(uintptr_t)local_issubnormal,
	"\012isunordered",	(Math_f)(uintptr_t)local_isunordered,
	"\011iszero",	(Math_f)(uintptr_t)local_iszero,
	"\001j0",	(Math_f)(uintptr_t)j0l,
	"\001j1",	(Math_f)(uintptr_t)j1l,
	"\002jn",	(Math_f)(uintptr_t)jnl,
	"\042ldexp",	(Math_f)(uintptr_t)ldexpl,
	"\001lgamma",	(Math_f)(uintptr_t)lgammal,
	"\001log",	(Math_f)(uintptr_t)logl,
	"\001log10",	(Math_f)(uintptr_t)log10l,
	"\001log1p",	(Math_f)(uintptr_t)log1pl,
	"\001log2",	(Math_f)(uintptr_t)log2l,
	"\001logb",	(Math_f)(uintptr_t)logbl,
	"\001nearbyint",	(Math_f)(uintptr_t)nearbyintl,
	"\002nextafter",	(Math_f)(uintptr_t)nextafterl,
	"\002nexttoward",	(Math_f)(uintptr_t)nexttowardl,
	"\002pow",	(Math_f)(uintptr_t)powl,
	"\002remainder",	(Math_f)(uintptr_t)remainderl,
	"\001rint",	(Math_f)(uintptr_t)rintl,
	"\001round",	(Math_f)(uintptr_t)roundl,
	"\002scalb",	(Math_f)(uintptr_t)scalbl,
	"\002scalbn",	(Math_f)(uintptr_t)scalbnl,
	"\011signbit",	(Math_f)(uintptr_t)local_signbit,
	"\001sin",	(Math_f)(uintptr_t)sinl,
	"\001sinh",	(Math_f)(uintptr_t)sinhl,
	"\001sqrt",	(Math_f)(uintptr_t)sqrtl,
	"\001tan",	(Math_f)(uintptr_t)tanl,
	"\001tanh",	(Math_f)(uintptr_t)tanhl,
	"\001tgamma",	(Math_f)(uintptr_t)tgammal,
	"\001trunc",	(Math_f)(uintptr_t)truncl,
	"\001y0",	(Math_f)(uintptr_t)y0l,
	"\001y1",	(Math_f)(uintptr_t)y1l,
	"\002yn",	(Math_f)(uintptr_t)ynl,
	"",		(Math_f)0
};
#endif
/* : : generated from contrib/ast/src/cmd/ksh93/features/options by iffe version 2012-07-17 : : */
#ifndef _def_options_ksh93
#define _def_options_ksh93	1
#define _sys_types	1	/* #include <sys/types.h> ok */
#define SHELLMAGIC	1
#ifndef SHOPT_DEVFD
#   define SHOPT_DEVFD	1
#endif
#ifndef SHOPT_PFSH
#   define SHOPT_PFSH	1
#endif
#undef  SHOPT_TEST_L
#ifndef SHOPT_SYSRC
#   define SHOPT_SYSRC	1
#endif
#undef  SHOPT_UCB
#if !_PACKAGE_ast && ( (MB_LEN_MAX-1)<=0 || !defined(_lib_mbtowc) )
#   undef SHOPT_MULTIBYTE
#endif

#endif

/* : : generated by proto : : */
/* : : generated from contrib/ast/src/cmd/ksh93/features/poll by iffe version 2012-07-17 : : */
#ifndef _def_poll_ksh93
#if !defined(__PROTO__)
#  if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
#    if defined(__cplusplus)
#      define __LINKAGE__	"C"
#    else
#      define __LINKAGE__
#    endif
#    define __STDARG__
#    define __PROTO__(x)	x
#    define __OTORP__(x)
#    define __PARAM__(n,o)	n
#    if !defined(__STDC__) && !defined(__cplusplus)
#      if !defined(c_plusplus)
#      	define const
#      endif
#      define signed
#      define void		int
#      define volatile
#      define __V_		char
#    else
#      define __V_		void
#    endif
#  else
#    define __PROTO__(x)	()
#    define __OTORP__(x)	x
#    define __PARAM__(n,o)	o
#    define __LINKAGE__
#    define __V_		char
#    define const
#    define signed
#    define void		int
#    define volatile
#  endif
#  define __MANGLE__	__LINKAGE__
#  if defined(__cplusplus) || defined(c_plusplus)
#    define __VARARG__	...
#  else
#    define __VARARG__
#  endif
#  if defined(__STDARG__)
#    define __VA_START__(p,a)	va_start(p,a)
#  else
#    define __VA_START__(p,a)	va_start(p)
#  endif
#  if !defined(__INLINE__)
#    if defined(__cplusplus)
#      define __INLINE__	extern __MANGLE__ inline
#    else
#      if defined(_WIN32) && !defined(__GNUC__)
#      	define __INLINE__	__inline
#      endif
#    endif
#  endif
#endif
#if !defined(__LINKAGE__)
#define __LINKAGE__		/* 2004-08-11 transition */
#endif

#define _def_poll_ksh93	1
#define _sys_types	1	/* #include <sys/types.h> ok */
#define _LIB_nsl	1	/* -lnsl is a library */
#define _LIB_socket	1	/* -lsocket is a library */
#define _hdr_poll	1	/* #include <poll.h> ok */
#define _hdr_netinet_in	1	/* #include <netinet/in.h> ok */
#define _sys_poll	1	/* #include <sys/poll.h> ok */
#define _sys_socket	1	/* #include <sys/socket.h> ok */
#define _lib_select	1	/* select() in default lib(s) */
#define _lib_poll	1	/* poll() in default lib(s) */
#define _lib_socket	1	/* socket() in default lib(s) */
#define _lib_htons	1	/* htons() in default lib(s) */
#define _lib_htonl	1	/* htonl() in default lib(s) */
#define _hdr_netdb	1	/* #include <netdb.h> ok */
#define _lib_getaddrinfo	1	/* getaddrinfo() in default lib(s) */
#define _hdr_time	1	/* #include <time.h> ok */
#define _sys_time	1	/* #include <sys/time.h> ok */
#define _sys_times	1	/* #include <sys/times.h> ok */
#define _hdr_stddef	1	/* #include <stddef.h> ok */
#define _hdr_stdlib	1	/* #include <stdlib.h> ok */
#define _sys_select	1	/* #include <sys/select.h> ok */
#define _typ_fd_set	1	/* fd_set is a type */
#define _hdr_unistd	1	/* #include <unistd.h> ok */
#define _typ_socklen_t	1	/* socklen_t is a type */

#ifdef _lib_poll
#   define poll _SYS_poll
#else
#   undef _hdr_poll
#   undef _sys_poll
#endif /* _lib_poll */
#ifdef _hdr_poll
#    include    <poll.h>
#else
#   ifdef _sys_poll
#	include    <sys/poll.h>
#   endif /* _sys_poll */
#endif /* _hdr_poll */
#ifdef _lib_poll
#   undef poll
    extern __MANGLE__ int poll __PROTO__((struct pollfd*,unsigned long,int));
#endif /* _lib_poll */
#ifdef _lib_select
#   ifndef FD_ZERO
#	define FD_ZERO(x)	(*(x)=0)
#   endif /* FD_ZERO */
#   ifndef FD_SET
#	define FD_SET(n,x)	(*(x)|=(1L<<(n)))
#   endif /* FD_SET */
#   ifndef _typ_fd_set
	typedef long fd_set;
#   endif /*_typ_fd_set */
#endif /* _lib_select */

#endif
/* : : generated by iffe version 2012-07-17 : : */
#ifndef _def_pstat_amd64
#define _def_pstat_amd64	1
#define _sys_types	1	/* #include <sys/types.h> ok */
#endif
/* : : generated from contrib/ast/src/cmd/ksh93/features/rlimits by iffe version 2012-07-17 : : */
#ifndef _def_rlimits_ksh93
#define _def_rlimits_ksh93	1
#define _sys_types	1	/* #include <sys/types.h> ok */
#define _sys_time	1	/* #include <sys/time.h> ok */
#define _sys_resource	1	/* #include <sys/resource.h> ok */
#define _lib_getrlimit	1	/* getrlimit() in default lib(s) */
#define _lib_ulimit	1	/* ulimit() in default lib(s) */
#define _hdr_time	1	/* #include <time.h> ok */
#define _sys_times	1	/* #include <sys/times.h> ok */
#define _hdr_stddef	1	/* #include <stddef.h> ok */
#define _hdr_stdlib	1	/* #include <stdlib.h> ok */
#define _typ_rlim_t	1	/* rlim_t is a type */
#define _typ_rlim64_t	1	/* rlim64_t is a type */

#if _sys_resource
#	include <sys/resource.h>
#	if _lib_getrlimit64
#		undef	getrlimit
#		define	getrlimit	getrlimit64
#		undef	setrlimit
#		define	setrlimit	setrlimit64
#		if _typ_rlim64_t
#			undef	rlimit
#			define	rlimit	rlimit64
#			undef	rlim_t
#			define	rlim_t	rlim64_t
#		endif
#		ifdef RLIM64_INFINITY
#			undef	RLIM_INFINITY
#			define	RLIM_INFINITY	RLIM64_INFINITY
#		endif
#	endif
#endif


#endif
/* : : generated from contrib/ast/src/cmd/ksh93/features/setjmp by iffe version 2012-07-17 : : */
#ifndef _def_setjmp_ksh93
#define _def_setjmp_ksh93	1
#define _sys_types	1	/* #include <sys/types.h> ok */
#define _lib_sigsetjmp	1	/* sigsetjmp() in default lib(s) */
#define _lib__setjmp	1	/* _setjmp() in default lib(s) */
#define _lib__longjmp	1	/* _longjmp() in default lib(s) */
#define _hdr_time	1	/* #include <time.h> ok */
#define _sys_time	1	/* #include <sys/time.h> ok */
#define _sys_times	1	/* #include <sys/times.h> ok */
#define _hdr_stddef	1	/* #include <stddef.h> ok */
#define _hdr_stdlib	1	/* #include <stdlib.h> ok */
#define _hdr_setjmp	1	/* #include <setjmp.h> ok */
#define _typ_sigjmp_buf	1	/* sigjmp_buf is a type */
#undef sigsetjmp
#undef siglongjmp
#undef sigjmp_buf
#define sigjmp_buf		jmp_buf
#ifdef	_lib__setjmp
#   define sigsetjmp(a,b)	_setjmp(a)
#else
#   define sigsetjmp(a,b)	setjmp(a)
#endif 	/* _lib__setjmp */
#ifdef	_lib__longjmp
#   define siglongjmp(a,b)	_longjmp(a,b)
#else
#   define siglongjmp(a,b)	longjmp(a,b)
#endif 	/* _lib__longjmp */

#endif
/* : : generated from contrib/ast/src/cmd/ksh93/features/sigfeatures by iffe version 2012-07-17 : : */
#ifndef _def_sigfeatures_ksh93
#define _def_sigfeatures_ksh93	1
#define _sys_types	1	/* #include <sys/types.h> ok */
#define _lib_sigrelse	1	/* sigrelse() in default lib(s) */
#define _lib_sigprocmask	1	/* sigprocmask() in default lib(s) */
#define _hdr_time	1	/* #include <time.h> ok */
#define _sys_time	1	/* #include <sys/time.h> ok */
#define _sys_times	1	/* #include <sys/times.h> ok */
#define _hdr_stddef	1	/* #include <stddef.h> ok */
#define _hdr_stdlib	1	/* #include <stdlib.h> ok */
#define _hdr_signal	1	/* #include <signal.h> ok */
#define _typ_sigset_t	1	/* sigset_t is a type */
#ifndef _mem_sigvec_sv_mask
#   undef _lib_sigvec
#endif
#ifdef _lib_sigprocmask
#    define sh_sigaction(s,action) do { sigset_t ss;\
			sigemptyset(&ss); \
			if(s) sigaddset(&ss,(s)); \
			sigprocmask(action,&ss,0); \
			}while(0)
#    define sigrelease(s)	sh_sigaction(s,SIG_UNBLOCK)
#    define sigblock(s)	 	sh_sigaction(s,SIG_BLOCK)
#    define sig_begin()		sh_sigaction(0,SIG_SETMASK)
#else
#   ifndef _lib_sigblock
#	define sigblock(s)
#   endif
#   ifdef _lib_sigsetmask
#       define sigrelease(s)  sigsetmask(0)
#       define sig_begin()    sigsetmask(0)
#   else
#	ifdef _lib_sigrelse
#	    define sigrelease	sigrelse
#	    define sig_begin()
#	else
#	    define sig_begin()		(0)
#	    define sigrelease(s)	(0)
#	endif /* _lib_sigrelse */
#    endif /* _lib_sigsetmask */
#endif /* _lib_sigprocmask */

#undef	_SIGRTMIN
#define _SIGRTMIN	42
#undef	_SIGRTMAX
#define _SIGRTMAX	73
#endif
/* : : generated from contrib/ast/src/cmd/ksh93/features/time by iffe version 2012-07-17 : : */
#ifndef _def_time_ksh93
#define _def_time_ksh93	1
#define _sys_types	1	/* #include <sys/types.h> ok */
#define _hdr_utime	1	/* #include <utime.h> ok */
#define _lib_gettimeofday	1	/* gettimeofday() in default lib(s) */
#define _lib_setitimer	1	/* setitimer() in default lib(s) */
#define _sys_time	1	/* #include <sys/time.h> ok */
#define _mem_tv_usec_timeval	1	/* tv_usec is a member of struct timeval */
#define _lib_2_timeofday	1	/* 2 arg gettimeofday() */
#undef _def_time
#include	<times.h>
#define _def_time	1
#undef timeofday
#if _lib_2_timeofday
#define timeofday(p)	gettimeofday(p,(struct timezone*)0)
#else
#if _lib_1_timeofday
#define timeofday(p)	gettimeofday(p)
#endif
#endif

#endif
/* : : generated from contrib/ast/src/cmd/ksh93/features/ttys by iffe version 2012-07-17 : : */
#ifndef _def_ttys_ksh93
#define _def_ttys_ksh93	1
#define _sys_types	1	/* #include <sys/types.h> ok */
#define _hdr_termios	1	/* #include <termios.h> ok */
#define _hdr_termio	1	/* #include <termio.h> ok */
#define _hdr_sgtty	1	/* #include <sgtty.h> ok */
#define _sys_termios	1	/* #include <sys/termios.h> ok */
#define _sys_termio	1	/* #include <sys/termio.h> ok */
#define _sys_ioctl	1	/* #include <sys/ioctl.h> ok */
#define _sys_filio	1	/* #include <sys/filio.h> ok */
#define _lib_tcgetattr	1	/* tcgetattr() in default lib(s) */
#define _lib_tcgetpgrp	1	/* tcgetpgrp() in default lib(s) */
#endif