xref: /illumos-gate/usr/src/cmd/ast/libshell/amd64/FEATURE/externs (revision b30d193948be5a7794d7ae3ba0ed9c2f72c88e0f)
1*b30d1939SAndy Fiddaman
2*b30d1939SAndy Fiddaman/* : : generated by proto : : */
3*b30d1939SAndy Fiddaman/* : : generated from contrib/ast/src/cmd/ksh93/features/externs by iffe version 2012-07-17 : : */
4*b30d1939SAndy Fiddaman
5*b30d1939SAndy Fiddaman#ifndef _def_externs_ksh93
6*b30d1939SAndy Fiddaman#if !defined(__PROTO__)
7*b30d1939SAndy Fiddaman#  if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
8*b30d1939SAndy Fiddaman#    if defined(__cplusplus)
9*b30d1939SAndy Fiddaman#      define __LINKAGE__	"C"
10*b30d1939SAndy Fiddaman#    else
11*b30d1939SAndy Fiddaman#      define __LINKAGE__
12*b30d1939SAndy Fiddaman#    endif
13*b30d1939SAndy Fiddaman#    define __STDARG__
14*b30d1939SAndy Fiddaman#    define __PROTO__(x)	x
15*b30d1939SAndy Fiddaman#    define __OTORP__(x)
16*b30d1939SAndy Fiddaman#    define __PARAM__(n,o)	n
17*b30d1939SAndy Fiddaman#    if !defined(__STDC__) && !defined(__cplusplus)
18*b30d1939SAndy Fiddaman#      if !defined(c_plusplus)
19*b30d1939SAndy Fiddaman#      	define const
20*b30d1939SAndy Fiddaman#      endif
21*b30d1939SAndy Fiddaman#      define signed
22*b30d1939SAndy Fiddaman#      define void		int
23*b30d1939SAndy Fiddaman#      define volatile
24*b30d1939SAndy Fiddaman#      define __V_		char
25*b30d1939SAndy Fiddaman#    else
26*b30d1939SAndy Fiddaman#      define __V_		void
27*b30d1939SAndy Fiddaman#    endif
28*b30d1939SAndy Fiddaman#  else
29*b30d1939SAndy Fiddaman#    define __PROTO__(x)	()
30*b30d1939SAndy Fiddaman#    define __OTORP__(x)	x
31*b30d1939SAndy Fiddaman#    define __PARAM__(n,o)	o
32*b30d1939SAndy Fiddaman#    define __LINKAGE__
33*b30d1939SAndy Fiddaman#    define __V_		char
34*b30d1939SAndy Fiddaman#    define const
35*b30d1939SAndy Fiddaman#    define signed
36*b30d1939SAndy Fiddaman#    define void		int
37*b30d1939SAndy Fiddaman#    define volatile
38*b30d1939SAndy Fiddaman#  endif
39*b30d1939SAndy Fiddaman#  define __MANGLE__	__LINKAGE__
40*b30d1939SAndy Fiddaman#  if defined(__cplusplus) || defined(c_plusplus)
41*b30d1939SAndy Fiddaman#    define __VARARG__	...
42*b30d1939SAndy Fiddaman#  else
43*b30d1939SAndy Fiddaman#    define __VARARG__
44*b30d1939SAndy Fiddaman#  endif
45*b30d1939SAndy Fiddaman#  if defined(__STDARG__)
46*b30d1939SAndy Fiddaman#    define __VA_START__(p,a)	va_start(p,a)
47*b30d1939SAndy Fiddaman#  else
48*b30d1939SAndy Fiddaman#    define __VA_START__(p,a)	va_start(p)
49*b30d1939SAndy Fiddaman#  endif
50*b30d1939SAndy Fiddaman#  if !defined(__INLINE__)
51*b30d1939SAndy Fiddaman#    if defined(__cplusplus)
52*b30d1939SAndy Fiddaman#      define __INLINE__	extern __MANGLE__ inline
53*b30d1939SAndy Fiddaman#    else
54*b30d1939SAndy Fiddaman#      if defined(_WIN32) && !defined(__GNUC__)
55*b30d1939SAndy Fiddaman#      	define __INLINE__	__inline
56*b30d1939SAndy Fiddaman#      endif
57*b30d1939SAndy Fiddaman#    endif
58*b30d1939SAndy Fiddaman#  endif
59*b30d1939SAndy Fiddaman#endif
60*b30d1939SAndy Fiddaman#if !defined(__LINKAGE__)
61*b30d1939SAndy Fiddaman#define __LINKAGE__		/* 2004-08-11 transition */
62*b30d1939SAndy Fiddaman#endif
63*b30d1939SAndy Fiddaman
64*b30d1939SAndy Fiddaman#define _def_externs_ksh93	1
65*b30d1939SAndy Fiddaman#define _sys_types	1	/* #include <sys/types.h> ok */
66*b30d1939SAndy Fiddaman#define _hdr_exec_attr	1	/* #include <exec_attr.h> ok */
67*b30d1939SAndy Fiddaman#define _hdr_math	1	/* #include <math.h> ok */
68*b30d1939SAndy Fiddaman#define _mem_name_exception	1	/* name is a member of struct exception */
69*b30d1939SAndy Fiddaman#define _lib_setreuid	1	/* setreuid() in default lib(s) */
70*b30d1939SAndy Fiddaman#define _lib_setregid	1	/* setregid() in default lib(s) */
71*b30d1939SAndy Fiddaman#define _lib_nice	1	/* nice() in default lib(s) */
72*b30d1939SAndy Fiddaman#define _lib_fork	1	/* fork() in default lib(s) */
73*b30d1939SAndy Fiddaman#define _lib_spawnveg	1	/* spawnveg() in default lib(s) */
74*b30d1939SAndy Fiddaman#define _lib_fchdir	1	/* fchdir() in default lib(s) */
75*b30d1939SAndy Fiddaman#define _sys_mman	1	/* #include <sys/mman.h> ok */
76*b30d1939SAndy Fiddaman#define _lib_memcntl	1	/* memcntl() in default lib(s) */
77*b30d1939SAndy Fiddaman#define _LIB_secdb	1	/* -lsecdb is a library */
78*b30d1939SAndy Fiddaman#define _lib_getexecuser	1	/* getexecuser() in default lib(s) */
79*b30d1939SAndy Fiddaman#define _lib_free_execattr	1	/* free_execattr() in default lib(s) */
80*b30d1939SAndy Fiddaman#endif
81