Lines Matching refs:EXTERN
166 #ifdef EXTERN
347 extern int flock(int, int);
360 extern int getrusage(int, struct rusage *);
369 extern int revoke(const char *);
375 extern const char *cstrerror(int);
387 extern int __cdecl seteuid(uid_t);
388 extern int __cdecl setegid(gid_t);
421 extern int wcwidth(__WCHAR_TYPE__);
426 #ifdef EXTERN
430 # define EXTERN extern
448 EXTERN const char *safe_prompt; /* safe prompt if PS1 substitution fails */
455 EXTERN const char initvsn[] E_INIT("KSH_VERSION=@(#)" KSH_VERSIONNAME \
459 EXTERN const char digits_uc[] E_INIT("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ");
460 EXTERN const char digits_lc[] E_INIT("0123456789abcdefghijklmnopqrstuvwxyz");
646 EXTERN Area aperm; /* permanent object space */
680 EXTERN struct sretrace_info *retrace_info E_INIT(NULL);
681 EXTERN int subshell_nesting_type E_INIT(0);
683 extern struct env {
731 EXTERN pid_t procpid; /* PID of executing process */
732 EXTERN int exstat; /* exit status */
733 EXTERN int subst_exstat; /* exit status of last $(..)/`..` */
734 EXTERN struct tbl *vp_pipest; /* global PIPESTATUS array */
735 EXTERN short trap_exstat; /* exit status before running a trap */
736 EXTERN uint8_t trap_nested; /* running nested traps */
737 EXTERN uint8_t shell_flags[FNFLAGS];
738 EXTERN const char *kshname; /* $0 */
739 EXTERN struct {
771 extern const struct shoption options[];
774 EXTERN char null[] E_INIT("");
776 EXTERN const char Tintovfl[] E_INIT("integer overflow %zu %c %zu prevented");
777 EXTERN const char Toomem[] E_INIT("can't allocate %lu data bytes");
782 EXTERN const char Tsynerr[] E_INIT("syntax error");
784 EXTERN const char Tselect[] E_INIT("select");
785 EXTERN const char Tr_fc_e_dash[] E_INIT("r=fc -e -");
788 EXTERN const char Tlocal_typeset[] E_INIT("local=typeset");
791 EXTERN const char Tpalias[] E_INIT("+alias");
793 EXTERN const char Tpunalias[] E_INIT("+unalias");
795 EXTERN const char Tsgset[] E_INIT("*=set");
797 EXTERN const char Tsgunset[] E_INIT("*=unset");
799 EXTERN const char Tsgexport[] E_INIT("*=export");
801 EXTERN const char Tsgreadonly[] E_INIT("*=readonly");
803 EXTERN const char Tgbuiltin[] E_INIT("=builtin");
805 EXTERN const char T_function[] E_INIT(" function");
807 EXTERN const char TC_LEX1[] E_INIT("|&;<>() \t\n");
839 EXTERN bool shl_stdout_ok;
880 EXTERN volatile sig_atomic_t trap; /* traps pending? */
881 EXTERN volatile sig_atomic_t intrsig; /* pending trap interrupts command */
882 EXTERN volatile sig_atomic_t fatal_trap; /* received a fatal signal */
883 extern Trap sigtraps[NSIG+1];
887 EXTERN volatile sig_atomic_t got_winch E_INIT(1);
901 EXTERN unsigned int ksh_tmout;
902 EXTERN enum tmout_enum ksh_tmout_state E_INIT(TMOUT_EXECUTING);
905 EXTERN bool really_exit;
920 extern unsigned char chtypes[];
928 EXTERN int ifs0 E_INIT(' '); /* for "$*" */
956 EXTERN Getopt builtin_opt; /* for shell builtin commands */
957 EXTERN Getopt user_opt; /* parsing state for getopts builtin command */
972 EXTERN struct coproc coproc;
976 EXTERN sigset_t sm_default, sm_sigchld;
980 EXTERN const char *builtin_argv0;
982 EXTERN uint32_t builtin_flag;
985 EXTERN char *current_wd;
997 EXTERN mksh_ari_t x_cols E_INIT(80); /* tty columns */
998 EXTERN mksh_ari_t x_lins E_INIT(24); /* tty lines */
1075 extern struct shf shf_iob[];
1120 EXTERN struct tbl vtemp;
1166 EXTERN enum {
1231 EXTERN struct table taliases; /* tracked aliases */
1232 EXTERN struct table builtins; /* built-in commands */
1233 EXTERN struct table aliases; /* aliases */
1234 EXTERN struct table keywords; /* keywords */
1236 EXTERN struct table homedirs; /* homedir() cache */
1244 extern const struct builtin mkshbuiltins[];
1250 EXTERN char *path; /* copy of either PATH or def_path */
1251 EXTERN const char *def_path; /* path to use if PATH not set */
1252 EXTERN char *tmpdir; /* TMPDIR value */
1253 EXTERN const char *prompt;
1254 EXTERN int cur_prompt; /* PS1 or PS2 */
1255 EXTERN int current_lineno; /* LINENO value */
1597 EXTERN Source *source; /* yyparse/yylex source */
1598 EXTERN YYSTYPE yylval; /* result from yylex */
1599 EXTERN struct ioword *heres[HERES], **herep;
1600 EXTERN char ident[IDENT + 1];
1602 EXTERN char **history; /* saved commands */
1603 EXTERN char **histptr; /* last history item */
1604 EXTERN mksh_ari_t histsize; /* history size */
1607 EXTERN struct timeval j_usrtime, j_systime;
2063 extern const char * const dbtest_tokens[];
2069 EXTERN int tty_fd E_INIT(-1); /* dup'd tty file descriptor */
2070 EXTERN bool tty_devtty; /* true if tty_fd is from /dev/tty */
2071 EXTERN mksh_ttyst tty_state; /* saved tty state */
2072 EXTERN bool tty_hasstate; /* true if tty_state is valid */
2074 extern int tty_init_fd(void); /* initialise tty_fd, tty_devtty */
2076 /* be sure not to interfere with anyone else's idea about EXTERN */
2079 # undef EXTERN