/titanic_50/usr/src/lib/libshell/common/bltins/ |
H A D | misc.c | 78 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_exec() 81 errormsg(SH_DICT,ERROR_usage(0), "%s", opt_info.arg); in b_exec() 86 errormsg(SH_DICT,ERROR_usage(2),"%s",optusage((char*)0)); in b_exec() 113 errormsg(SH_DICT,ERROR_exit(1),e_restricted,argv[0]); in B_login() 168 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_let() 171 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg); in b_let() 176 errormsg(SH_DICT,ERROR_usage(2),"%s",optusage((char*)0)); in b_let() 190 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_eval() 193 errormsg(SH_DICT,ERROR_usage(0), "%s",opt_info.arg); in b_eval() 197 errormsg(SH_DICT,ERROR_usage(2),"%s",optusage((char*)0)); in b_eval() [all …]
|
H A D | ulimit.c | 36 #ifndef SH_DICT 37 # define SH_DICT "libshell" macro 46 errormsg(SH_DICT,ERROR_exit(2),e_nosupport); in b_ulimit() 102 errormsg(SH_DICT,2, e_notimp, opt_info.name); in b_ulimit() 105 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_ulimit() 108 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg); in b_ulimit() 124 errormsg(SH_DICT,ERROR_usage(2),optusage((char*)0)); in b_ulimit() 143 errormsg(SH_DICT,ERROR_system(1),e_number,limit); in b_ulimit() 147 errormsg(SH_DICT,ERROR_system(1),e_readonly,tp->name); in b_ulimit() 152 errormsg(SH_DICT,ERROR_system(1),e_number,limit); in b_ulimit() [all …]
|
H A D | shiocmd_solaris.c | 30 #ifndef SH_DICT 31 # define SH_DICT "libshell" macro 75 errormsg(SH_DICT, ERROR_exit(1),"%s: invalid date/time string", val); in put_time() 147 errormsg(SH_DICT, ERROR_exit(1),"%s: invalid mode string", val); in put_mode() 548 errormsg(SH_DICT, ERROR_system(1), "%s: invalid mode", arg); in b_open() 551 errormsg(SH_DICT, 2, "%s", opt_info.arg); in b_open() 554 errormsg(SH_DICT, ERROR_usage(2), "%s", opt_info.arg); in b_open() 560 errormsg(SH_DICT, ERROR_usage(2), optusage((char*)0)); in b_open() 574 errormsg(SH_DICT, ERROR_system(1), "%s: open failed", argv[1]); in b_open() 614 errormsg(SH_DICT, 2, "%s", opt_info.arg); in b_close() [all …]
|
H A D | poll_solaris.c | 30 #ifndef SH_DICT 31 # define SH_DICT "libshell" macro 261 errormsg(SH_DICT, ERROR_system(1), "%s: invalid timeout", opt_info.arg); in b_poll() 271 errormsg(SH_DICT, 2, "%s", opt_info.arg); in b_poll() 274 errormsg(SH_DICT, ERROR_usage(2), "%s", opt_info.arg); in b_poll() 280 errormsg(SH_DICT, ERROR_usage(2), optusage((char*)0)); in b_poll() 289 errormsg(SH_DICT, ERROR_system(1), "cannot find array variable %s", varname); in b_poll() 291 errormsg(SH_DICT, ERROR_system(1), "variable %s is not an array", varname); in b_poll() 326 errormsg(SH_DICT, ERROR_system(1), "missing pollfd %s[%s].fd", varname, subname); in b_poll() 329 errormsg(SH_DICT, ERROR_system(1), "invalid pollfd fd %d", fd); in b_poll() [all …]
|
H A D | umask.c | 37 #ifndef SH_DICT 38 # define SH_DICT "libshell" macro 52 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_umask() 55 errormsg(SH_DICT,ERROR_usage(2), "%s",opt_info.arg); in b_umask() 59 errormsg(SH_DICT,ERROR_usage(2),"%s",optusage((char*)0)); in b_umask() 71 errormsg(SH_DICT,ERROR_exit(1),e_number,*argv); in b_umask() 82 errormsg(SH_DICT,ERROR_exit(1),e_format,mask); in b_umask()
|
H A D | cflow.c | 56 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_return() 59 errormsg(SH_DICT,ERROR_usage(0), "%s", opt_info.arg); in b_return() 64 errormsg(SH_DICT,ERROR_usage(2),"%s",optusage((char*)0)); in b_return() 91 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_break() 94 errormsg(SH_DICT,ERROR_usage(0), "%s", opt_info.arg); in b_break() 98 errormsg(SH_DICT,ERROR_usage(2),"%s",optusage((char*)0)); in b_break() 105 errormsg(SH_DICT,ERROR_exit(1),e_nolabels,*argv); in b_break()
|
H A D | cd_pwd.c | 63 errormsg(SH_DICT,ERROR_exit(1),e_restricted+4); in b_cd() 73 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_cd() 76 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg); in b_cd() 83 errormsg(SH_DICT,ERROR_usage(2),"%s",optusage((char*)0)); in b_cd() 94 errormsg(SH_DICT,ERROR_exit(1),argc==2?e_subst+4:e_direct); in b_cd() 173 errormsg(SH_DICT,ERROR_system(1),"%s:",dir); in b_cd() 184 errormsg(SH_DICT,ERROR_system(1),"%s:",dir); in b_cd() 228 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_pwd() 231 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg); in b_pwd() 235 errormsg(SH_DICT,ERROR_usage(2),"%s",optusage((char*)0)); in b_pwd() [all …]
|
H A D | hist.c | 60 errormsg(SH_DICT,ERROR_system(1),e_histopen); in b_hist() 93 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_hist() 96 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg); in b_hist() 100 errormsg(SH_DICT,ERROR_usage(2),"%s",optusage((char*)0)); in b_hist() 149 errormsg(SH_DICT,ERROR_exit(1),e_found,argv[1]); in b_hist() 176 errormsg(SH_DICT,ERROR_exit(1),e_badrange,range[0],range[1]); in b_hist() 178 errormsg(SH_DICT,ERROR_exit(1),e_eneedsarg); in b_hist() 192 errormsg(SH_DICT,ERROR_exit(1),e_create,""); in b_hist() 194 errormsg(SH_DICT,ERROR_system(1),e_create,fname); in b_hist() 266 errormsg(SH_DICT,ERROR_exit(1),e_toodeep,"history"); in b_hist() [all …]
|
H A D | whence.c | 61 errormsg(SH_DICT,ERROR_exit(1),e_restricted,"-p"); in b_command() 76 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_command() 81 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg); in b_command() 88 errormsg(SH_DICT,ERROR_usage(2),"%s", optusage((char*)0)); in b_command() 121 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_whence() 124 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg); in b_whence() 129 errormsg(SH_DICT,ERROR_usage(2),optusage((char*)0)); in b_whence() 278 errormsg(SH_DICT,ERROR_exit(0),e_found,sh_fmtq(name)); in whence()
|
H A D | trap.c | 56 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_trap() 59 errormsg(SH_DICT,ERROR_usage(0), "%s", opt_info.arg); in b_trap() 65 errormsg(SH_DICT,ERROR_usage(2),"%s", optusage((char*)0)); in b_trap() 92 errormsg(SH_DICT,ERROR_exit(1),e_condition); in b_trap() 99 errormsg(SH_DICT,2,e_trap,arg); in b_trap() 108 errormsg(SH_DICT,2,e_trap,arg); in b_trap() 133 errormsg(SH_DICT,2,e_trap,arg); in b_trap() 177 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_kill() 190 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg); in b_kill() 198 errormsg(SH_DICT,ERROR_usage(2),"%s", optusage((char*)0)); in b_kill() [all …]
|
H A D | typeset.c | 73 errormsg(SH_DICT,ERROR_exit(1),"%s: type not loadable",name); in load_class() 99 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_readonly() 102 errormsg(SH_DICT,ERROR_usage(0), "%s", opt_info.arg); in b_readonly() 106 errormsg(SH_DICT,ERROR_usage(2),optusage(NIL(char*))); in b_readonly() 164 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_alias() 167 errormsg(SH_DICT,ERROR_usage(0), "%s", opt_info.arg); in b_alias() 171 errormsg(SH_DICT,ERROR_usage(2),"%s",optusage(NIL(char*))); in b_alias() 190 errormsg(SH_DICT, ERROR_exit(1), e_option, argv[1]); in b_alias() 285 errormsg(SH_DICT,ERROR_exit(1), e_badfield, tdata.argnum); in b_typeset() 335 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_typeset() [all …]
|
H A D | sleep.c | 61 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_sleep() 64 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg); in b_sleep() 86 errormsg(SH_DICT,ERROR_exit(1),e_number,*argv); in b_sleep() 91 errormsg(SH_DICT,ERROR_exit(1),e_oneoperand); in b_sleep() 94 errormsg(SH_DICT,ERROR_exit(1),e_oneoperand); in b_sleep()
|
H A D | getopts.c | 78 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_getopts() 81 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg); in b_getopts() 87 errormsg(SH_DICT,ERROR_usage(2), "%s", optusage((char*)0)); in b_getopts() 121 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg); in b_getopts() 132 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_getopts() 155 errormsg(SH_DICT,ERROR_usage(2), "%s", optusage((char*)0)); in b_getopts()
|
H A D | print.c | 183 errormsg(SH_DICT,ERROR_system(1),e_history); in b_print() 235 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_print() 238 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg); in b_print() 243 errormsg(SH_DICT,ERROR_usage(2),"%s",optusage((char*)0)); in b_print() 245 errormsg(SH_DICT,ERROR_usage(2),"-%c and -f are mutually exclusive",vflag); in b_print() 265 errormsg(SH_DICT,ERROR_system(1),msg); in b_print() 466 errormsg(SH_DICT,ERROR_exit(1),e_notset,string); in fmtbase64() 677 errormsg(SH_DICT,ERROR_exit(1),e_formspec,format); in extend() 769 errormsg(SH_DICT,ERROR_warn(0),e_charconst,argp); in extend() 777 errormsg(SH_DICT,ERROR_warn(0),e_overflow,argp); in extend() [all …]
|
H A D | alarm.c | 245 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_alarm() 248 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg); in b_alarm() 254 errormsg(SH_DICT,ERROR_usage(2),optusage((char*)0)); in b_alarm() 261 errormsg(SH_DICT,ERROR_usage(2),optusage((char*)0)); in b_alarm() 267 errormsg(SH_DICT,ERROR_exit(1),e_nospace); in b_alarm()
|
H A D | test.c | 122 errormsg(SH_DICT,ERROR_exit(2),e_missing,"']'"); in b_test() 158 errormsg(SH_DICT,ERROR_exit(2),e_badop,cp); in b_test() 175 errormsg(SH_DICT,ERROR_usage(2), "%s",opt_info.arg); in b_test() 228 errormsg(SH_DICT,ERROR_exit(2),e_badsyntax); in expr() 242 errormsg(SH_DICT,ERROR_exit(2),e_argument); in nxtarg() 261 errormsg(SH_DICT,ERROR_exit(2),e_missing,"')'"); in e3() 289 errormsg(SH_DICT,ERROR_exit(2),e_argument); in e3() 304 errormsg(SH_DICT,ERROR_exit(2),e_badop,binop); in e3() 452 errormsg(SH_DICT,ERROR_exit(2),e_badop,a); in test_unop()
|
H A D | read.c | 109 errormsg(SH_DICT,ERROR_exit(1),e_query); in b_read() 116 errormsg(SH_DICT,ERROR_exit(1),e_overlimit,opt_info.name); in b_read() 135 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_read() 138 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg); in b_read() 143 errormsg(SH_DICT,ERROR_usage(2), "%s", optusage((char*)0)); in b_read() 147 errormsg(SH_DICT,ERROR_system(1),e_file+4); in b_read() 489 errormsg(SH_DICT,ERROR_warn(0),e_readonly, nv_name(np)); in sh_readline() 666 errormsg(SH_DICT,ERROR_warn(0),e_readonly, nv_name(np)); in sh_readline() 706 errormsg(SH_DICT,ERROR_warn(0),e_readonly, nv_name(np)); in sh_readline()
|
H A D | regress.c | 272 errormsg(SH_DICT, ERROR_usage(2), "%s", opt_info.arg); in b___regress__() 275 errormsg(SH_DICT, 2, "%s", opt_info.arg); in b___regress__() 335 errormsg(SH_DICT, ERROR_usage(2), "%s", optusage(NiL)); in b___regress__()
|
/titanic_50/usr/src/lib/libshell/common/sh/ |
H A D | shcomp.c | 91 errormsg(SH_DICT,2,"%s",opt_info.arg); in main() 94 errormsg(SH_DICT,ERROR_usage(2),"%s",opt_info.arg); in main() 102 errormsg(SH_DICT,ERROR_usage(2),"%s",optusage((char*)0)); in main() 114 errormsg(SH_DICT,ERROR_system(1),"%s: cannot create",cp); in main() 143 errormsg(SH_DICT,ERROR_exit(1),"dump failed"); in main() 148 errormsg(SH_DICT,ERROR_system(1),"I/O error"); in main()
|
H A D | args.c | 174 errormsg(SH_DICT,ERROR_exit(1), e_option, opt_info.name); in sh_argopts() 197 errormsg(SH_DICT,2, e_option, opt_info.arg); in sh_argopts() 202 errormsg(SH_DICT,ERROR_exit(1), e_restricted, opt_info.arg); in sh_argopts() 286 errormsg(SH_DICT,2, "%s", opt_info.arg); in sh_argopts() 289 errormsg(SH_DICT,ERROR_usage(0), "%s", opt_info.arg); in sh_argopts() 313 errormsg(SH_DICT,ERROR_usage(2),"%s",optusage(NIL(char*))); in sh_argopts() 350 errormsg(SH_DICT,2,e_cneedsarg); in sh_argopts() 351 errormsg(SH_DICT,ERROR_usage(2),optusage(NIL(char*))); in sh_argopts() 363 errormsg(SH_DICT,ERROR_usage(2),"-R requires scriptname"); in sh_argopts() 365 errormsg(SH_DICT,ERROR_system(3),e_create,ap->kiafile); in sh_argopts() [all …]
|
H A D | bash.c | 213 errormsg(SH_DICT,ERROR_ERROR,"cannot set and unset options simultaneously"); in b_shopt() 225 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_shopt() 228 errormsg(SH_DICT,ERROR_usage(0), "%s", opt_info.arg); in b_shopt() 233 errormsg(SH_DICT,ERROR_usage(2),"%s",optusage(NIL(char*))); in b_shopt() 260 errormsg(SH_DICT,ERROR_ERROR, e_option, argv[opt_info.index]); in b_shopt()
|
H A D | lex.c | 391 errormsg(SH_DICT,ERROR_system(ERROR_NOEXEC),e_exec,cp); in sh_lex() 555 errormsg(SH_DICT,ERROR_warn(0),e_lexnonstandard,shp->inlineno); in sh_lex() 611 errormsg(SH_DICT,ERROR_warn(0),e_lexspace,shp->inlineno,c,n); in sh_lex() 668 errormsg(SH_DICT,ERROR_warn(0),e_lexfuture,shp->inlineno,n); in sh_lex() 740 errormsg(SH_DICT,ERROR_warn(0),e_lexslash,shp->inlineno); in sh_lex() 747 errormsg(SH_DICT,ERROR_warn(0),e_lexlongquote,lp->lastline,lp->lex.last_quote); in sh_lex() 772 errormsg(SH_DICT,ERROR_warn(0),e_lexobsolete1,shp->inlineno); in sh_lex() 790 errormsg(SH_DICT,ERROR_warn(0),e_lexlongquote,lp->lastline,lp->lex.last_quote); in sh_lex() 846 errormsg(SH_DICT,ERROR_warn(0),e_lexusebrace,shp->inlineno); in sh_lex() 985 errormsg(SH_DICT,ERROR_warn(0),e_lexquote,shp->inlineno,'%'); in sh_lex() [all …]
|
H A D | arith.c | 342 errormsg(SH_DICT,ERROR_warn(0),lvalue->value,*ptr); in arith() 345 errormsg(SH_DICT,ERROR_exit((lvalue->emode&3)!=0),lvalue->value,*ptr); in arith() 374 errormsg(SH_DICT,ERROR_exit(1),e_lexbadchar,*last,str); in sh_strnum() 394 errormsg(SH_DICT,ERROR_exit(1),e_lexbadchar,*ptr,str); in sh_arithcomp()
|
H A D | io.c | 451 errormsg(SH_DICT,ERROR_system(1),e_badwrite,sffileno(iop)); in outexcept() 553 errormsg(SH_DICT,ERROR_system(1),e_toomany); in io_preserve() 605 errormsg(SH_DICT,ERROR_system(1),e_file+4); in sh_iorenumber() 781 errormsg(SH_DICT,ERROR_system(1),e_open,name); in sh_chkopen() 807 errormsg(SH_DICT,ERROR_system(1),e_pipe); in sh_pipe() 1027 errormsg(SH_DICT,ERROR_exit(1),e_readonly, nv_name(np)); in sh_redirect() 1120 errormsg(SH_DICT,ERROR_exit(1),e_restricted,fname); in sh_redirect() 1134 errormsg(SH_DICT,ERROR_exit(1),e_restricted,fname); in sh_redirect() 1166 errormsg(SH_DICT,ERROR_system(1),e_exists,fname); in sh_redirect() 1177 errormsg(SH_DICT,ERROR_system(1),((o_mode&O_CREAT)?e_create:e_open),fname); in sh_redirect() [all …]
|
/titanic_50/usr/src/lib/libshell/common/edit/ |
H A D | hexpand.c | 324 errormsg(SH_DICT, ERROR_ERROR, "%s: event not found", evp); 428 errormsg(SH_DICT, ERROR_ERROR, "%s: bad word specifier", evp); 488 errormsg(SH_DICT, ERROR_ERROR, "%s: bad word specifier", evp); 548 errormsg(SH_DICT, ERROR_ERROR, "%c: unrecognized history modifier", c); 598 errormsg(SH_DICT, ERROR_ERROR, 626 errormsg(SH_DICT, ERROR_ERROR,
|