Lines Matching refs:EXTERN

184 #ifdef EXTERN
539 #ifdef EXTERN
543 # define EXTERN extern macro
565 EXTERN const char *safe_prompt; /* safe prompt if PS1 substitution fails */
585 EXTERN const char initvsn[] E_INIT("KSH_VERSION=@(#)" KSH_VERSIONNAME_ISLEGACY \
590 EXTERN const char digits_uc[] E_INIT("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ");
591 EXTERN const char digits_lc[] E_INIT("0123456789abcdefghijklmnopqrstuvwxyz");
776 EXTERN Area aperm; /* permanent object space */
810 EXTERN struct sretrace_info *retrace_info;
811 EXTERN unsigned int subshell_nesting_type;
862 EXTERN pid_t procpid; /* PID of executing process */
863 EXTERN int exstat; /* exit status */
864 EXTERN int subst_exstat; /* exit status of last $(..)/`..` */
865 EXTERN struct tbl *vp_pipest; /* global PIPESTATUS array */
866 EXTERN short trap_exstat; /* exit status before running a trap */
867 EXTERN uint8_t trap_nested; /* running nested traps */
868 EXTERN uint8_t shell_flags[FNFLAGS];
869 EXTERN const char *kshname; /* $0 */
870 EXTERN struct {
898 EXTERN char null[] E_INIT("");
919 EXTERN const char T4spaces[] E_INIT(" ");
923 EXTERN const char TinitIFS[] E_INIT("IFS= \t\n");
924 EXTERN const char TFCEDIT_dollaru[] E_INIT("${FCEDIT:-/bin/ed} $_");
926 EXTERN const char Tsgdot[] E_INIT("*=.");
927 EXTERN const char Taugo[] E_INIT("augo");
928 EXTERN const char Tbracket[] E_INIT("[");
931 EXTERN const char Tbadnum[] E_INIT("bad number");
933 EXTERN const char Tbg[] E_INIT("bg");
934 EXTERN const char Tbad_bsize[] E_INIT("bad shf/buf/bsize");
936 EXTERN const char Tbad_sig_ss[] E_INIT("%s: bad signal '%s'");
938 EXTERN const char Tsgbreak[] E_INIT("*=break");
940 EXTERN const char T__builtin[] E_INIT("-\\builtin");
943 EXTERN const char Toomem[] E_INIT("can't allocate %zu data bytes");
944 EXTERN const char Tcant_cd[] E_INIT("restricted shell - can't cd");
945 EXTERN const char Tcant_find[] E_INIT("can't find");
946 EXTERN const char Tcant_open[] E_INIT("can't open");
948 EXTERN const char Tbcat[] E_INIT("!cat");
953 EXTERN const char Tsgcontinue[] E_INIT("*=continue");
955 EXTERN const char Tcreate[] E_INIT("create");
956 EXTERN const char TELIF_unexpected[] E_INIT("TELIF unexpected");
957 EXTERN const char TEXECSHELL[] E_INIT("EXECSHELL");
958 EXTERN const char Tdsgexport[] E_INIT("^*=export");
961 EXTERN const char Textproc[] E_INIT("extproc");
963 EXTERN const char Tfalse[] E_INIT("false");
964 EXTERN const char Tfg[] E_INIT("fg");
965 EXTERN const char Tfg_badsubst[] E_INIT("fileglob: bad substitution");
967 EXTERN const char Tfile_fd[] E_INIT("function definition file");
968 EXTERN const char TFPATH[] E_INIT("FPATH");
969 EXTERN const char T_function[] E_INIT(" function");
971 EXTERN const char T_funny_command[] E_INIT("funny $()-command");
972 EXTERN const char Tgetopts[] E_INIT("getopts");
974 EXTERN const char Tintovfl[] E_INIT("integer overflow %zu %c %zu prevented");
975 EXTERN const char Tinvname[] E_INIT("%s: invalid %s name");
976 EXTERN const char Tjobs[] E_INIT("jobs");
977 EXTERN const char Tjob_not_started[] E_INIT("job not started");
978 EXTERN const char Tmksh[] E_INIT("mksh");
980 EXTERN const char Tno_args[] E_INIT("missing argument");
981 EXTERN const char Tno_OLDPWD[] E_INIT("no OLDPWD");
982 EXTERN const char Tnot_ident[] E_INIT("is not an identifier");
983 EXTERN const char Tnot_in_history[] E_INIT("not in history");
984 EXTERN const char Tnot_found_s[] E_INIT("%s not found");
991 EXTERN const char TpVv[] E_INIT("Vpv");
994 EXTERN const char Tdsgreadonly[] E_INIT("^*=readonly");
996 EXTERN const char Tredirection_dup[] E_INIT("can't finish (dup) redirection");
999 EXTERN const char Treal_sp2[] E_INIT(" real ");
1000 EXTERN const char Treq_arg[] E_INIT("requires an argument");
1001 EXTERN const char Tselect[] E_INIT("select");
1002 EXTERN const char Tsgset[] E_INIT("*=set");
1007 EXTERN const char Tshf_read[] E_INIT("shf_read");
1008 EXTERN const char Tshf_write[] E_INIT("shf_write");
1009 EXTERN const char Tgsource[] E_INIT("=source");
1011 EXTERN const char Tj_suspend[] E_INIT("j_suspend");
1013 EXTERN const char Tsynerr[] E_INIT("syntax error");
1014 EXTERN const char Ttime[] E_INIT("time");
1015 EXTERN const char Ttoo_many_args[] E_INIT("too many arguments");
1016 EXTERN const char Ttoo_many_files[] E_INIT("too many open files in shell");
1017 EXTERN const char Ttrue[] E_INIT("true");
1018 EXTERN const char Ttty_fd_dupof[] E_INIT("dup of tty fd");
1020 EXTERN const char Tdgtypeset[] E_INIT("^=typeset");
1023 EXTERN const char Tunalias[] E_INIT("unalias");
1025 EXTERN const char Tunexpected_type[] E_INIT("%s: unexpected %s type %d");
1026 EXTERN const char Tunknown_option[] E_INIT("unknown option");
1027 EXTERN const char Tunwind[] E_INIT("unwind");
1029 EXTERN const char Tuser_sp2[] E_INIT(" user ");
1031 EXTERN const char Tf__S[] E_INIT(" %S");
1033 EXTERN const char Tf__ss[] E_INIT(" %s%s");
1035 EXTERN const char Tf_sSs[] E_INIT("%s/%s");
1037 EXTERN const char Tf_dN[] E_INIT("%d\n");
1038 EXTERN const char Tf_s_[] E_INIT("%s ");
1039 EXTERN const char Tf_s_T[] E_INIT("%s %T");
1040 EXTERN const char Tf_s_s_sN[] E_INIT("%s %s %s\n");
1043 EXTERN const char Tf_optfoo[] E_INIT("%s%s-%c: %s");
1044 EXTERN const char Tf_sD_[] E_INIT("%s: ");
1045 EXTERN const char Tf_szs[] E_INIT("%s: %zd %s");
1046 EXTERN const char Tf_parm[] E_INIT("%s: parameter not set");
1047 EXTERN const char Tf_coproc[] E_INIT("-p: %s");
1048 EXTERN const char Tf_cant_s[] E_INIT("%s: can't %s");
1049 EXTERN const char Tf_cant_ss_s[] E_INIT("can't %s %s: %s");
1050 EXTERN const char Tf_heredoc[] E_INIT("here document '%s' unclosed");
1052 EXTERN const char Tf_nonnum[] E_INIT("non-numeric %s %s '%s'");
1054 EXTERN const char Tf_S_[] E_INIT("%S ");
1057 EXTERN const char Tf_toolarge[] E_INIT("%s %s too large: %lu");
1058 EXTERN const char Tf_ldfailed[] E_INIT("%s %s(%d, %ld) failed: %s");
1060 EXTERN const char Tf_sss[] E_INIT("%s%s%s");
1061 EXTERN const char Tf_sD_s_sD_s[] E_INIT("%s: %s %s: %s");
1062 EXTERN const char Tf_toomany[] E_INIT("too many %ss");
1063 EXTERN const char Tf_sd[] E_INIT("%s %d");
1065 EXTERN const char Tft_end[] E_INIT("%;");
1066 EXTERN const char Tft_R[] E_INIT("%R");
1068 EXTERN const char Tf_sD_s_qs[] E_INIT("%s: %s '%s'");
1069 EXTERN const char Tf_ro[] E_INIT("read-only: %s");
1070 EXTERN const char Tf_flags[] E_INIT("%s: flags 0x%X");
1071 EXTERN const char Tf_temp[] E_INIT("can't %s temporary file %s: %s");
1072 EXTERN const char Tf_ssfaileds[] E_INIT("%s: %s failed: %s");
1073 EXTERN const char Tf_sD_sD_s[] E_INIT("%s: %s: %s");
1074 EXTERN const char Tf__c_[] E_INIT("-%c ");
1075 EXTERN const char Tf_sD_s_s[] E_INIT("%s: %s %s");
1078 EXTERN const char T_devtty[] E_INIT("/dev/tty");
1271 EXTERN bool shl_stdout_ok;
1312 EXTERN volatile sig_atomic_t trap; /* traps pending? */
1313 EXTERN volatile sig_atomic_t intrsig; /* pending trap interrupts command */
1314 EXTERN volatile sig_atomic_t fatal_trap; /* received a fatal signal */
1319 EXTERN volatile sig_atomic_t got_winch E_INIT(1);
1333 EXTERN unsigned int ksh_tmout;
1334 EXTERN enum tmout_enum ksh_tmout_state;
1337 EXTERN bool really_exit;
1383 EXTERN uint32_t ksh_ctypes[256];
1385 EXTERN char ifs0;
1497 EXTERN unsigned short ebcdic_map[256];
1498 EXTERN unsigned char ebcdic_rtt_toascii[256];
1499 EXTERN unsigned char ebcdic_rtt_fromascii[256];
1562 EXTERN Getopt builtin_opt; /* for shell builtin commands */
1563 EXTERN Getopt user_opt; /* parsing state for getopts builtin command */
1578 EXTERN struct coproc coproc;
1582 EXTERN sigset_t sm_default, sm_sigchld;
1586 EXTERN const char *builtin_argv0;
1588 EXTERN bool builtin_spec;
1591 EXTERN char *current_wd;
1600 EXTERN mksh_ari_t x_cols E_INIT(80);
1601 EXTERN mksh_ari_t x_lins E_INIT(24);
1719 EXTERN struct tbl *vtemp;
1721 EXTERN bool last_lookup_was_array;
1836 EXTERN struct table taliases; /* tracked aliases */
1837 EXTERN struct table builtins; /* built-in commands */
1838 EXTERN struct table aliases; /* aliases */
1839 EXTERN struct table keywords; /* keywords */
1841 EXTERN struct table homedirs; /* homedir() cache */
1855 EXTERN char *path; /* copy of either PATH or def_path */
1856 EXTERN const char *def_path; /* path to use if PATH not set */
1857 EXTERN char *tmpdir; /* TMPDIR value */
1858 EXTERN const char *prompt;
1859 EXTERN uint8_t cur_prompt; /* PS1 or PS2 */
1860 EXTERN int current_lineno; /* LINENO value */
2280 EXTERN Source *source; /* yyparse/yylex source */
2281 EXTERN YYSTYPE yylval; /* result from yylex */
2282 EXTERN struct ioword *heres[HERES], **herep;
2283 EXTERN char ident[IDENT + 1];
2285 EXTERN char **history; /* saved commands */
2286 EXTERN char **histptr; /* last history item */
2287 EXTERN mksh_ari_t histsize; /* history size */
2297 EXTERN struct timeval j_usrtime, j_systime;
2738 EXTERN int tty_fd E_INIT(-1); /* dup'd tty file descriptor */
2739 EXTERN bool tty_devtty; /* true if tty_fd is from /dev/tty */
2740 EXTERN mksh_ttyst tty_state; /* saved tty state */
2741 EXTERN bool tty_hasstate; /* true if tty_state is valid */
2797 # undef EXTERN