ARGS
static char *kill_fmt_entry ARGS((void *arg, int i, char *buf, int buflen));
static char *clocktos ARGS((clock_t t));
extern int c_test ARGS((char **wp)); /* in c_test.c */
extern int c_ulimit ARGS((char **wp)); /* in c_ulimit.c */
static int test_nexpr ARGS((Test_env *, int));
static int test_primary ARGS((Test_env *, int));
static int ptest_isa ARGS((Test_env *, Test_meta));
static const char *ptest_getopnd ARGS((Test_env *, Test_op, int));
static int ptest_eval ARGS((Test_env *, Test_op, const char *,
static void ptest_error ARGS((Test_env *, int, const char *));
static int test_stat ARGS((const char *, struct stat *));
static int test_eaccess ARGS((const char *, int));
static int test_oexpr ARGS((Test_env *, int));
static int test_aexpr ARGS((Test_env *, int));
int (*isa) ARGS((Test_env *te, Test_meta meta));
const char *(*getopnd) ARGS((Test_env *te, Test_op op, int do_eval));
int (*eval) ARGS((Test_env *te, Test_op op, const char *opnd1,
void (*error) ARGS((Test_env *te, int offset, const char *msg));
Test_op test_isop ARGS((Test_env *te, Test_meta meta, const char *s));
int test_eval ARGS((Test_env *te, Test_op op, const char *opnd1,
int test_parse ARGS((Test_env *te));
int (*putbuf_func) ARGS((const char *, size_t));
static RETSIGTYPE x_sigwinch ARGS((int sig));
static void check_sigwinch ARGS((void));
static int x_file_glob ARGS((int flags, const char *str, int slen,
static int x_command_glob ARGS((int flags, const char *str, int slen,
static int x_locate_word ARGS((const char *buf, int buflen, int pos,
static char *add_glob ARGS((const char *, int));
static void glob_table ARGS((const char *, XPtrV *, struct table *));
static void glob_path ARGS((int, const char *, XPtrV *, const char *));
int x_getc ARGS((void));
void x_flush ARGS((void));
void x_putc ARGS((int c));
void x_puts ARGS((const char *s));
int promptlen ARGS((const char *cp, const char **spp));
int x_do_comment ARGS((char *buf, int bsize, int *lenp));
void x_print_expansions ARGS((int nwords, char *const *words, int is_command));
int x_cf_glob ARGS((int flags, const char *buf, int buflen, int pos, int *startp,
int x_longest_prefix ARGS((int nwords, char *const *words));
int x_basename ARGS((const char *s, const char *se));
void x_free_words ARGS((int nwords, char **words));
int x_escape ARGS((const char *, size_t, int (*)(const char *s, size_t len)));
int x_emacs ARGS((char *buf, size_t len));
void x_init_emacs ARGS((void));
void x_emacs_keys ARGS((X_chars *ec));
int x_vi ARGS((char *buf, size_t len));
static int x_ins ARGS((char *cp));
static void x_delete ARGS((int nc, int push));
static int x_bword ARGS((void));
static int x_fword ARGS((void));
static void x_goto ARGS((char *cp));
static void x_bs ARGS((int c));
static int x_size_str ARGS((char *cp));
static int x_size ARGS((int c));
static void x_zots ARGS((char *str));
static void x_zotc ARGS((int c));
static void x_load_hist ARGS((char **hp));
static int x_search ARGS((char *pat, int sameline, int offset));
static int x_match ARGS((char *str, char *pat));
static void x_redraw ARGS((int limit));
static void x_push ARGS((int nchars));
static char * x_mapin ARGS((const char *cp, Area *area));
static char * x_mapout ARGS((int c));
static void x_print ARGS((int prefix, int key));
static void x_adjust ARGS((void));
static void x_e_ungetc ARGS((int c));
static int x_e_getc ARGS((void));
static void x_e_putc ARGS((int c));
static void x_e_puts ARGS((const char *s));
static int x_comment ARGS((int c));
static int x_fold_case ARGS((int c));
static char *x_lastcp ARGS((void));
static void do_complete ARGS((int flags, Comp_type type));
static int x_emacs_putbuf ARGS((const char *s, size_t len));
int (*xf_func) ARGS((int c));
static int copy_non_glob ARGS((XString *xs, char **xpp, char *p));
static int varsub ARGS((Expand *xp, char *sp, char *word, int *stypep, int *slenp));
static int comsub ARGS((Expand *xp, char *cp));
static char *trimsub ARGS((char *str, char *pat, int how));
static void ksh_glob ARGS((char *cp, XPtrV *wp, int markdirs));
static void globit ARGS((XString *xs, char **xpp, char *sp, XPtrV *wp,
static char *maybe_expand_tilde ARGS((char *p, XString *dsp, char **dpp,
static char *tilde ARGS((char *acp));
static char *homedir ARGS((char *name));
static void alt_expand ARGS((XPtrV *wp, char *start, char *exp_start,
static char *select_fmt_entry ARGS((void *arg, int i, char *buf, int buflen));
static char *plain_fmt_entry ARGS((void *arg, int i, char *buf, int buflen));
static int comexec ARGS((struct op *, struct tbl *volatile, char **,
static void scriptexec ARGS((struct op *, char **));
static int call_builtin ARGS((struct tbl *, char **));
static int iosetup ARGS((struct ioword *, struct tbl *));
static int herein ARGS((const char *, int));
static int dbteste_isa ARGS((Test_env *, Test_meta));
static const char *dbteste_getopnd ARGS((Test_env *, Test_op, int));
static int dbteste_eval ARGS((Test_env *, Test_op, const char *,
static void dbteste_error ARGS((Test_env *, int, const char *));
int (*func) ARGS((char **));
char * Xcheck_grow_ ARGS((XString *xsp, char *xp, int more));
static struct tbl *evalexpr ARGS((Expr_state *es, enum prec prec));
static void token ARGS((Expr_state *es));
static void assign_check ARGS((Expr_state *es, enum token op,
static struct tbl *tempvar ARGS((void));
static struct tbl *intvar ARGS((Expr_state *es, struct tbl *vp));
static int hist_count_lines ARGS((unsigned char *, int));
static int hist_shrink ARGS((unsigned char *, int));
static unsigned char *hist_skip_back ARGS((unsigned char *,int *,int));
static void histload ARGS((Source *, unsigned char *, int));
static void histinsert ARGS((Source *, int, unsigned char *));
static void writehistfile ARGS((int, char *));
static int sprinkle ARGS((int));
static int hist_execute ARGS((char *));
static int hist_replace ARGS((char **, const char *, const char *, int));
static char **hist_get ARGS((const char *, int, int));
static char **hist_get_newest ARGS((int));
static char **hist_get_oldest ARGS((void));
static void histbackup ARGS((void));
static void j_set_async ARGS((Job *j));
static void j_startjob ARGS((Job *j));
static int j_waitj ARGS((Job *j, int flags, const char *where));
static RETSIGTYPE j_sigchld ARGS((int sig));
static void j_print ARGS((Job *j, int how, struct shf *shf));
static Job *j_lookup ARGS((const char *cp, int *ecodep));
static Job *new_job ARGS((void));
static Proc *new_proc ARGS((void));
static void check_job ARGS((Job *j));
static void put_job ARGS((Job *j, int where));
static void remove_job ARGS((Job *j, const char *where));
static int kill_job ARGS((Job *j, int sig));
int tcsetpgrp ARGS((int fd, pid_t grp));
int tcgetpgrp ARGS((int fd));
extern DIR *ksh_opendir ARGS((const char *d));
static void readhere ARGS((struct ioword *iop));
static int getsc__ ARGS((void));
static void getsc_line ARGS((Source *s));
static int getsc_bn ARGS((void));
static char *get_brace_var ARGS((XString *wsp, char *wp));
static int arraysub ARGS((char **strp));
static const char *ungetsc ARGS((int c));
static void gethere ARGS((void));
static Lex_state *push_state_ ARGS((State_info *si, Lex_state *old_end));
static Lex_state *pop_state_ ARGS((State_info *si, Lex_state *old_end));
static void munset ARGS((mbox_t *mlist)); /* free mlist and mval */
static mbox_t * mballoc ARGS((char *p, char *m)); /* allocate a new mbox */
static void mprintit ARGS((mbox_t *mbp));
static void reclaim ARGS((void));
static void remove_temps ARGS((struct temp *tp));
static int is_restricted ARGS((char *name));
char *(*func) ARGS((void *, int, char *, int));
extern char *getwd ARGS((char *));
static char *options_fmt_entry ARGS((void *arg, int i, char *buf, int buflen));
static void printoptions ARGS((int verbose));
static int do_gmatch ARGS((const unsigned char *s, const unsigned char *p,
static const unsigned char *cclass ARGS((const unsigned char *p, int sub));
static void qsort1 ARGS((void **base, void **lim, int (*f)(void *, void *)));
int (*f) ARGS((void *, void *)); /* compare function */
int (*f) ARGS((void *, void *));
static char *do_phys_path ARGS((XString *, char *, const char *));
int findhist ARGS((int, int, const char *, int));
void errorf ARGS((const char *, ...))
void warningf ARGS((int, const char *, ...))
void bi_errorf ARGS((const char *, ...))
void internal_errorf ARGS((int, const char *, ...))
void error_prefix ARGS((int));
void shellf ARGS((const char *, ...))
void shprintf ARGS((const char *, ...))
void kshdebug_init_ ARGS((void));
void kshdebug_printf_ ARGS((const char *, ...))
Area * ainit ARGS((Area *));
void kshdebug_dump_ ARGS((const char *, const void *, int));
int can_seek ARGS((int));
void initio ARGS((void));
int ksh_dup2 ARGS((int, int, int));
int savefd ARGS((int, int));
void restfd ARGS((int, int));
void openpipe ARGS((int *));
void closepipe ARGS((int *));
int check_fd ARGS((char *, int, const char **));
void afreeall ARGS((Area *));
void coproc_init ARGS((void));
void coproc_read_close ARGS((int));
void coproc_readw_close ARGS((int));
void coproc_write_close ARGS((int));
int coproc_getfd ARGS((int, const char **));
void coproc_cleanup ARGS((int));
struct temp *maketemp ARGS((Area *, Temp_type, struct temp **));
void * alloc ARGS((size_t, Area *));
void j_init ARGS((int));
void j_exit ARGS((void));
void j_change ARGS((void));
int exchild ARGS((struct op *, int, int));
void startlast ARGS((void));
int waitlast ARGS((void));
int waitfor ARGS((const char *, int *));
int j_kill ARGS((const char *, int));
int j_resume ARGS((const char *, int));
int j_jobs ARGS((const char *, int, int));
void * aresize ARGS((void *, size_t, Area *));
void j_notify ARGS((void));
pid_t j_async ARGS((void));
int j_stopped_running ARGS((void));
int yylex ARGS((int));
void yyerror ARGS((const char *, ...))
Source * pushs ARGS((int, Area *));
void set_prompt ARGS((int, Source *));
void pprompt ARGS((const char *, int));
void afree ARGS((void *, Area *));
void mcheck ARGS((void));
void mcset ARGS((long));
void mbset ARGS((char *));
void mpset ARGS((char *));
int include ARGS((const char *, int, char **, int));
int command ARGS((const char *));
int shell ARGS((Source *volatile, int volatile));
void unwind ARGS((int)) GCC_FUNC_ATTR(noreturn);
void newenv ARGS((int));
void quitenv ARGS((void));
void cleanup_parents_env ARGS((void));
void cleanup_proc_env ARGS((void));
void aerror ARGS((Area *, const char *))
void setctypes ARGS((const char *, int));
int c_hash ARGS((char **));
void initctypes ARGS((void));
char * ulton ARGS((unsigned long, int));
char * str_save ARGS((const char *, Area *));
char * str_nsave ARGS((const char *, int, Area *));
int option ARGS((const char *));
char * getoptions ARGS((void));
void change_flag ARGS((enum sh_flag, int, int));
int parse_args ARGS((char **v, int what, int *));
int getn ARGS((const char *, int *));
int bi_getn ARGS((const char *, int *));
int c_cd ARGS((char **));
int gmatch ARGS((const char *, const char *, int));
int has_globbing ARGS((const char *, const char *));
const unsigned char *pat_scan ARGS((const unsigned char *,
void qsortp ARGS((void **, size_t, int (*)(void *, void *)));
int xstrcmp ARGS((void *, void *));
void ksh_getopt_reset ARGS((Getopt *, int));
int ksh_getopt ARGS((char **, Getopt *, const char *));
void print_value_quoted ARGS((const char *));
void print_columns ARGS((struct shf *, int,
int c_pwd ARGS((char **));
int strip_nuls ARGS((char *, int));
char *str_zcpy ARGS((char *, const char *, int));
int blocking_read ARGS((int, char *, int));
int reset_nonblock ARGS((int));
char *ksh_get_wd ARGS((char *, int));
int make_path ARGS((const char *, const char *,
int c_print ARGS((char **));
void simplify_path ARGS((char *));
char *get_phys_path ARGS((const char *));
void set_current_wd ARGS((char *));
void initkeywords ARGS((void));
struct op * compile ARGS((Source *));
unsigned int hash ARGS((const char *));
void tinit ARGS((struct table *, Area *, int));
struct tbl * mytsearch ARGS((struct table *, const char *, unsigned int));
int c_whence ARGS((char **));
struct tbl * tenter ARGS((struct table *, const char *, unsigned int));
void mytdelete ARGS((struct tbl *));
void ksh_twalk ARGS((struct tstate *, struct table *));
struct tbl * tnext ARGS((struct tstate *));
struct tbl ** tsort ARGS((struct table *));
void inittraps ARGS((void));
void alarm_init ARGS((void));
int c_command ARGS((char **));
Trap * gettrap ARGS((const char *, int));
RETSIGTYPE trapsig ARGS((int));
void intrcheck ARGS((void));
int fatal_trap_check ARGS((void));
int trap_pending ARGS((void));
void runtraps ARGS((int));
void runtrap ARGS((Trap *));
void cleartraps ARGS((void));
void restoresigs ARGS((void));
int c_typeset ARGS((char **));
void settrap ARGS((Trap *, char *));
int block_pipe ARGS((void));
void restore_pipe ARGS((int));
int setsig ARGS((Trap *, handler_t, int));
void setexecsig ARGS((Trap *, int));
int fptreef ARGS((struct shf *, int, const char *, ...));
char * snptreef ARGS((char *, int, const char *, ...));
struct op * tcopy ARGS((struct op *, Area *));
char * wdcopy ARGS((const char *, Area *));
int c_alias ARGS((char **));
char * wdscan ARGS((const char *, int));
char * wdstrip ARGS((const char *));
void tfree ARGS((struct op *, Area *));
void newblock ARGS((void));
void popblock ARGS((void));
void initvar ARGS((void));
struct tbl * global ARGS((const char *));
char * str_val ARGS((struct tbl *));
int c_unalias ARGS((char **));
long intval ARGS((struct tbl *));
int setstr ARGS((struct tbl *, const char *, int));
struct tbl *setint_v ARGS((struct tbl *, struct tbl *));
void setint ARGS((struct tbl *, long));
int getint ARGS((struct tbl *, long *));
struct tbl * typeset ARGS((const char *, Tflag, Tflag, int, int));
void unset ARGS((struct tbl *, int));
char * skip_varname ARGS((const char *, int));
char *skip_wdvarname ARGS((const char *, int));
int is_wdvarname ARGS((const char *, int));
int c_let ARGS((char **));
int is_wdvarassign ARGS((const char *));
char ** makenv ARGS((void));
void change_random ARGS((void));
int array_ref_len ARGS((const char *));
char * arrayname ARGS((const char *));
void set_array ARGS((const char *, int, char **));
int c_jobs ARGS((char **));
int c_fgbg ARGS((char **));
int c_kill ARGS((char **));
void getopts_reset ARGS((int));
int c_getopts ARGS((char **));
int c_bind ARGS((char **));
int c_label ARGS((char **));
int c_shift ARGS((char **));
int c_umask ARGS((char **));
int c_dot ARGS((char **));
int c_wait ARGS((char **));
int c_read ARGS((char **));
int c_eval ARGS((char **));
int c_trap ARGS((char **));
int c_brkcont ARGS((char **));
int c_exitreturn ARGS((char **));
int c_set ARGS((char **));
int c_unset ARGS((char **));
int c_ulimit ARGS((char **));
int c_times ARGS((char **));
int timex ARGS((struct op *, int));
void timex_hook ARGS((struct op *, char ** volatile *));
int c_exec ARGS((char **));
int c_builtin ARGS((char **));
int c_test ARGS((char **));
void x_init ARGS((void));
int x_read ARGS((char *, size_t));
void set_editmode ARGS((const char *));
int x_bind ARGS((const char *, const char *, int, int));
char * substitute ARGS((const char *, int));
char ** eval ARGS((char **, int));
char * evalstr ARGS((char *, int));
char * evalonestr ARGS((char *, int));
char *debunk ARGS((char *, const char *, size_t));
void expand ARGS((char *, XPtrV *, int));
int glob_str ARGS((char *, XPtrV *, int));
int fd_clexec ARGS((int));
int execute ARGS((struct op * volatile, volatile int));
int shcomexec ARGS((char **));
struct tbl * findfunc ARGS((const char *, unsigned int, int));
int define ARGS((const char *, struct op *));
void builtin ARGS((const char *, int (*)(char **)));
struct tbl * findcom ARGS((const char *, int));
void flushcom ARGS((int all));
char * search ARGS((const char *, const char *, int, int *));
int search_access ARGS((const char *, int, int *));
int pr_menu ARGS((char *const *));
int pr_list ARGS((char *const *));
int evaluate ARGS((const char *, long *, int));
int v_evaluate ARGS((struct tbl *, const char *, volatile int));
void init_histvec ARGS((void));
void hist_init ARGS((Source *));
void hist_finish ARGS((void));
void histsave ARGS((int, const char *, int));
int c_fc ARGS((char **));
void sethistsize ARGS((int));
void sethistfile ARGS((const char *));
void histappend ARGS((const char *, int));
char ** histpos ARGS((void));
int histN ARGS((void));
int histnum ARGS((int));
static int shf_fillbuf ARGS((struct shf *shf));
static int shf_emptybuf ARGS((struct shf *shf, int flags));
struct shf *shf_open ARGS((const char *name, int oflags, int mode,
struct shf *shf_fdopen ARGS((int fd, int sflags, struct shf *shf));
struct shf *shf_reopen ARGS((int fd, int sflags, struct shf *shf));
struct shf *shf_sopen ARGS((char *buf, int bsize, int sflags,
int shf_close ARGS((struct shf *shf));
int shf_fdclose ARGS((struct shf *shf));
char *shf_sclose ARGS((struct shf *shf));
int shf_finish ARGS((struct shf *shf));
int shf_flush ARGS((struct shf *shf));
int shf_seek ARGS((struct shf *shf, off_t where, int from));
int shf_read ARGS((char *buf, int bsize, struct shf *shf));
char *shf_getse ARGS((char *buf, int bsize, struct shf *shf));
int shf_getchar ARGS((struct shf *shf));
int shf_ungetc ARGS((int c, struct shf *shf));
int shf_putchar ARGS((int c, struct shf *shf));
int shf_puts ARGS((const char *s, struct shf *shf));
int shf_write ARGS((const char *buf, int nbytes, struct shf *shf));
int shf_fprintf ARGS((struct shf *shf, const char *fmt, ...));
int shf_snprintf ARGS((char *buf, int bsize, const char *fmt, ...));
char *shf_smprintf ARGS((const char *fmt, ...));
int shf_vfprintf ARGS((struct shf *, const char *fmt, va_list args));
static void yyparse ARGS((void));
static struct op *pipeline ARGS((int cf));
static struct op *andor ARGS((void));
static struct op *c_list ARGS((int multi));
static struct ioword *synio ARGS((int cf));
static void musthave ARGS((int c, int cf));
static struct op *nested ARGS((int type, int smark, int emark));
static struct op *get_command ARGS((int cf));
static struct op *dogroup ARGS((void));
static struct op *thenpart ARGS((void));
static struct op *elsepart ARGS((void));
static struct op *caselist ARGS((void));
static struct op *casepart ARGS((int endtok));
static struct op *function_body ARGS((char *name, int ksh_func));
static char ** wordlist ARGS((void));
static struct op *block ARGS((int type, struct op *t1, struct op *t2,
static struct op *newtp ARGS((int type));
static void syntaxerr ARGS((const char *what))
static void nesting_push ARGS((struct nesting_state *save, int tok));
static void nesting_pop ARGS((struct nesting_state *saved));
static int assign_command ARGS((char *s));
static int inalias ARGS((struct source *s));
static int dbtestp_isa ARGS((Test_env *te, Test_meta meta));
static const char *dbtestp_getopnd ARGS((Test_env *te, Test_op op,
static int dbtestp_eval ARGS((Test_env *te, Test_op op, const char *opnd1,
static void dbtestp_error ARGS((Test_env *te, int offset, const char *msg));
static void texpand ARGS((struct table *tp, int nsize));
static int tnamecmp ARGS((void *p1, void *p2));
void tprintinfo ARGS((struct table *tp));
int (*func) ARGS((char **));
int (*f) ARGS((char **)); /* int function */
static RETSIGTYPE alarm_catcher ARGS((int sig));
static void ptree ARGS((struct op *t, int indent, struct shf *f));
static void pioact ARGS((struct shf *f, int indent, struct ioword *iop));
static void tputC ARGS((int c, struct shf *shf));
static void tputS ARGS((char *wp, struct shf *shf));
static void vfptreef ARGS((struct shf *shf, int indent, const char *fmt, va_list va));
static struct ioword **iocopy ARGS((struct ioword **iow, Area *ap));
static void iofree ARGS((struct ioword **iow, Area *ap));
extern int get_tty ARGS((int fd, TTY_state *ts));
extern int set_tty ARGS((int fd, TTY_state *ts, int flags));
extern void tty_init ARGS((int init_ttystate));
extern void tty_close ARGS((void));
static char *formatstr ARGS((struct tbl *vp, const char *s));
static void export ARGS((struct tbl *vp, const char *val));
static int special ARGS((const char *name));
static void unspecial ARGS((const char *name));
static void getspec ARGS((struct tbl *vp));
static void setspec ARGS((struct tbl *vp));
static void unsetspec ARGS((struct tbl *vp));
static struct tbl *arraysearch ARGS((struct tbl *, int));
static struct edstate *save_edstate ARGS((struct edstate *old));
static void restore_edstate ARGS((struct edstate *old, struct edstate *new));
static void free_edstate ARGS((struct edstate *old));
static int vi_hook ARGS((int));
static void vi_reset ARGS((char *, size_t));
static int nextstate ARGS((int));
static int vi_insert ARGS((int));
static int vi_cmd ARGS((int, const char *));
static int domove ARGS((int, const char *, int));
static int redo_insert ARGS((int));
static void yank_range ARGS((int, int));
static int bracktype ARGS((int));
static void save_cbuf ARGS((void));
static void restore_cbuf ARGS((void));
static void edit_reset ARGS((char *, size_t));
static int putbuf ARGS((const char *, int, int));
static void del_range ARGS((int, int));
static int findch ARGS((int, int, int, int));
static int forwword ARGS((int));
static int backword ARGS((int));
static int endword ARGS((int));
static int Forwword ARGS((int));
static int Backword ARGS((int));
static int Endword ARGS((int));
static int grabhist ARGS((int, int));
static int grabsearch ARGS((int, int, int, char *));
static void redraw_line ARGS((int));
static void refresh ARGS((int));
static int outofwin ARGS((void));
static void rewindow ARGS((void));
static int newcol ARGS((int, int));
static void display ARGS((char *, char *, int));
static void ed_mov_opt ARGS((int, char *));
static int expand_word ARGS((int));
static int complete_word ARGS((int, int));
static int print_expansions ARGS((struct edstate *, int));
static int char_len ARGS((int));
static void x_vi_zotc ARGS((int));
static void vi_pprompt ARGS((int));
static void vi_error ARGS((void));
static void vi_macro_reset ARGS((void));
static int x_vi_putbuf ARGS((const char *, size_t));
{ "SMNT", SMNT, ARGS, 0, "(structure mount)", 0, },
{ "PORT", PORT, ARGS, 1, "<sp> b0, b1, b2, b3, b4, b5", 0, },
{ "LPRT", LPRT, ARGS, 1, "<sp> af, hal, h1, h2, h3,..., pal, p1, p2...", 0, },
{ "LPSV", LPSV, ARGS, 1, "(set server in passive mode)", 0, },
{ "EPSV", EPSV, ARGS, 1, "[<sp> af|ALL]", 0, },
{ "TYPE", TYPE, ARGS, 1, "<sp> [ A | E | I | L ]", 0, },
{ "STRU", STRU, ARGS, 1, "(specify file structure)", 0, },
{ "MODE", MODE, ARGS, 1, "(specify transfer mode)", 0, },
{ "ALLO", ALLO, ARGS, 1, "allocate storage (vacuously)", 0, },
{ "REST", REST, ARGS, 1, "<sp> offset (restart command)", 0, },
{ "PBSZ", PBSZ, ARGS, 1, "<sp> decimal-integer", 0, },
{ "IDLE", IDLE, ARGS, 1, "[ <sp> maximum-idle-time ]", 0, },
{ "UMASK", UMASK, ARGS, 1, "[ <sp> umask ]", 0, },
state = ARGS;
case ARGS:
trace_act("route disappeared before" PAT, ARGS);
msglog("write(rt_sock)" PAT ": %s", ARGS, strerror(errno));
cc, w.w_rtm.rtm_msglen, ARGS);
trace_misc("write kernel" PAT, ARGS);
#define DPRINTF(LEVEL, SC, FMT, ARGS...) do \
device_printf(_dprintf_psc->sc_dev, FMT, ##ARGS); \
extern struct raster* raster_alloc ARGS(( int width, int height, int depth ));
extern void raster_free ARGS(( struct raster* r ));
extern int raster_get ARGS(( struct raster* r, int x, int y ));
extern void raster_put ARGS(( struct raster* r, int x, int y, int v ));
extern struct raster* raster_subregion ARGS(( struct raster* r, int x, int y, int width, int height ));
extern int raster_op ARGS(( struct raster* dst, int dx, int dy, int w, int h, int rop, struct raster* src, int sx, int sy ));
extern int raster_op_noclip ARGS(( struct raster* dst, int dx, int dy, int w, int h, int rop, struct raster* src, int sx, int sy ));
extern int raster_op_nosrc_noclip ARGS(( struct raster* dst, int dx, int dy, int w, int h, int rop ));
extern int raster_replsrc ARGS(( struct raster* dst, int dx, int dy, int w, int h, int rop, struct raster* src, int sx, int sy ));
extern struct raster_font* raster_fontopen ARGS(( char* fontname ));
extern int raster_text ARGS(( struct raster* r, int x, int y, int rop, struct raster_font* rf, unsigned char* text ));
extern int raster_textn ARGS(( struct raster* r, int x, int y, int rop, struct raster_font* rf, unsigned char* text, int len ));
extern void raster_fontclose ARGS(( struct raster_font* rf ));
extern struct raster* raster_open ARGS(( char* fbname ));
extern struct raster* raster_coloropen ARGS(( void ));
extern int raster_video_off ARGS(( struct raster* r ));
extern int raster_video_on ARGS(( struct raster* r ));
extern struct raster_colormap* raster_colormap_alloc ARGS(( int length ));
extern struct raster_colormap* raster_colormap_get ARGS(( struct raster* r ));
extern int raster_colormap_set ARGS(( struct raster* r, struct raster_colormap* cm ));
extern void raster_colormap_free ARGS(( struct raster_colormap* cm ));
#ifndef ARGS