diff options
Diffstat (limited to 'usr/src/cmd/ast/libshell/amd64')
-rw-r--r-- | usr/src/cmd/ast/libshell/amd64/FEATURE/acct | 8 | ||||
-rw-r--r-- | usr/src/cmd/ast/libshell/amd64/FEATURE/cmds | 22 | ||||
-rw-r--r-- | usr/src/cmd/ast/libshell/amd64/FEATURE/dynamic | 16 | ||||
-rw-r--r-- | usr/src/cmd/ast/libshell/amd64/FEATURE/execargs | 5 | ||||
-rw-r--r-- | usr/src/cmd/ast/libshell/amd64/FEATURE/externs | 80 | ||||
-rw-r--r-- | usr/src/cmd/ast/libshell/amd64/FEATURE/locale | 42 | ||||
-rw-r--r-- | usr/src/cmd/ast/libshell/amd64/FEATURE/math | 171 | ||||
-rw-r--r-- | usr/src/cmd/ast/libshell/amd64/FEATURE/options | 21 | ||||
-rw-r--r-- | usr/src/cmd/ast/libshell/amd64/FEATURE/poll | 117 | ||||
-rw-r--r-- | usr/src/cmd/ast/libshell/amd64/FEATURE/pstat | 5 | ||||
-rw-r--r-- | usr/src/cmd/ast/libshell/amd64/FEATURE/rlimits | 37 | ||||
-rw-r--r-- | usr/src/cmd/ast/libshell/amd64/FEATURE/setjmp | 30 | ||||
-rw-r--r-- | usr/src/cmd/ast/libshell/amd64/FEATURE/sigfeatures | 48 | ||||
-rw-r--r-- | usr/src/cmd/ast/libshell/amd64/FEATURE/time | 23 | ||||
-rw-r--r-- | usr/src/cmd/ast/libshell/amd64/FEATURE/ttys | 14 | ||||
-rw-r--r-- | usr/src/cmd/ast/libshell/amd64/Makefile | 30 | ||||
-rw-r--r-- | usr/src/cmd/ast/libshell/amd64/Makefile.iffe | 17 |
17 files changed, 686 insertions, 0 deletions
diff --git a/usr/src/cmd/ast/libshell/amd64/FEATURE/acct b/usr/src/cmd/ast/libshell/amd64/FEATURE/acct new file mode 100644 index 0000000000..ca587e66ea --- /dev/null +++ b/usr/src/cmd/ast/libshell/amd64/FEATURE/acct @@ -0,0 +1,8 @@ +/* : : 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 diff --git a/usr/src/cmd/ast/libshell/amd64/FEATURE/cmds b/usr/src/cmd/ast/libshell/amd64/FEATURE/cmds new file mode 100644 index 0000000000..9c8159bf36 --- /dev/null +++ b/usr/src/cmd/ast/libshell/amd64/FEATURE/cmds @@ -0,0 +1,22 @@ +/* : : 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 "/usr/bin/ed" +#endif diff --git a/usr/src/cmd/ast/libshell/amd64/FEATURE/dynamic b/usr/src/cmd/ast/libshell/amd64/FEATURE/dynamic new file mode 100644 index 0000000000..96c308357b --- /dev/null +++ b/usr/src/cmd/ast/libshell/amd64/FEATURE/dynamic @@ -0,0 +1,16 @@ +/* : : 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 diff --git a/usr/src/cmd/ast/libshell/amd64/FEATURE/execargs b/usr/src/cmd/ast/libshell/amd64/FEATURE/execargs new file mode 100644 index 0000000000..a3488f6cf7 --- /dev/null +++ b/usr/src/cmd/ast/libshell/amd64/FEATURE/execargs @@ -0,0 +1,5 @@ +/* : : 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 diff --git a/usr/src/cmd/ast/libshell/amd64/FEATURE/externs b/usr/src/cmd/ast/libshell/amd64/FEATURE/externs new file mode 100644 index 0000000000..8828c30ba8 --- /dev/null +++ b/usr/src/cmd/ast/libshell/amd64/FEATURE/externs @@ -0,0 +1,80 @@ + +/* : : 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 diff --git a/usr/src/cmd/ast/libshell/amd64/FEATURE/locale b/usr/src/cmd/ast/libshell/amd64/FEATURE/locale new file mode 100644 index 0000000000..6b5aba0a08 --- /dev/null +++ b/usr/src/cmd/ast/libshell/amd64/FEATURE/locale @@ -0,0 +1,42 @@ +/* : : 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 diff --git a/usr/src/cmd/ast/libshell/amd64/FEATURE/math b/usr/src/cmd/ast/libshell/amd64/FEATURE/math new file mode 100644 index 0000000000..b86d8d56ac --- /dev/null +++ b/usr/src/cmd/ast/libshell/amd64/FEATURE/math @@ -0,0 +1,171 @@ + +/* : : 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 diff --git a/usr/src/cmd/ast/libshell/amd64/FEATURE/options b/usr/src/cmd/ast/libshell/amd64/FEATURE/options new file mode 100644 index 0000000000..24978488cd --- /dev/null +++ b/usr/src/cmd/ast/libshell/amd64/FEATURE/options @@ -0,0 +1,21 @@ +/* : : 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 diff --git a/usr/src/cmd/ast/libshell/amd64/FEATURE/poll b/usr/src/cmd/ast/libshell/amd64/FEATURE/poll new file mode 100644 index 0000000000..c76d76c633 --- /dev/null +++ b/usr/src/cmd/ast/libshell/amd64/FEATURE/poll @@ -0,0 +1,117 @@ + +/* : : 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 diff --git a/usr/src/cmd/ast/libshell/amd64/FEATURE/pstat b/usr/src/cmd/ast/libshell/amd64/FEATURE/pstat new file mode 100644 index 0000000000..a82763d595 --- /dev/null +++ b/usr/src/cmd/ast/libshell/amd64/FEATURE/pstat @@ -0,0 +1,5 @@ +/* : : 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 diff --git a/usr/src/cmd/ast/libshell/amd64/FEATURE/rlimits b/usr/src/cmd/ast/libshell/amd64/FEATURE/rlimits new file mode 100644 index 0000000000..6dc4d85bd9 --- /dev/null +++ b/usr/src/cmd/ast/libshell/amd64/FEATURE/rlimits @@ -0,0 +1,37 @@ +/* : : 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 diff --git a/usr/src/cmd/ast/libshell/amd64/FEATURE/setjmp b/usr/src/cmd/ast/libshell/amd64/FEATURE/setjmp new file mode 100644 index 0000000000..2e57e9cd18 --- /dev/null +++ b/usr/src/cmd/ast/libshell/amd64/FEATURE/setjmp @@ -0,0 +1,30 @@ +/* : : 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 diff --git a/usr/src/cmd/ast/libshell/amd64/FEATURE/sigfeatures b/usr/src/cmd/ast/libshell/amd64/FEATURE/sigfeatures new file mode 100644 index 0000000000..39231bc866 --- /dev/null +++ b/usr/src/cmd/ast/libshell/amd64/FEATURE/sigfeatures @@ -0,0 +1,48 @@ +/* : : 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 diff --git a/usr/src/cmd/ast/libshell/amd64/FEATURE/time b/usr/src/cmd/ast/libshell/amd64/FEATURE/time new file mode 100644 index 0000000000..0e1c2627b6 --- /dev/null +++ b/usr/src/cmd/ast/libshell/amd64/FEATURE/time @@ -0,0 +1,23 @@ +/* : : 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 diff --git a/usr/src/cmd/ast/libshell/amd64/FEATURE/ttys b/usr/src/cmd/ast/libshell/amd64/FEATURE/ttys new file mode 100644 index 0000000000..f9748cf4c3 --- /dev/null +++ b/usr/src/cmd/ast/libshell/amd64/FEATURE/ttys @@ -0,0 +1,14 @@ +/* : : 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 diff --git a/usr/src/cmd/ast/libshell/amd64/Makefile b/usr/src/cmd/ast/libshell/amd64/Makefile new file mode 100644 index 0000000000..d6a7d68d4f --- /dev/null +++ b/usr/src/cmd/ast/libshell/amd64/Makefile @@ -0,0 +1,30 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# + +# +# Copyright 2008 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# + +include ../Makefile.com +include $(SRC)/lib/Makefile.lib.64 + +install: all $(ROOTLIBS64) $(ROOTLINKS64) diff --git a/usr/src/cmd/ast/libshell/amd64/Makefile.iffe b/usr/src/cmd/ast/libshell/amd64/Makefile.iffe new file mode 100644 index 0000000000..ff23738b70 --- /dev/null +++ b/usr/src/cmd/ast/libshell/amd64/Makefile.iffe @@ -0,0 +1,17 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2021 OmniOS Community Edition (OmniOSce) Association. +# + +include ../Makefile.iffe +include $(SRC)/lib/Makefile.lib.64 |