Home
last modified time | relevance | path

Searched refs:SH_DICT (Results 1 – 25 of 42) sorted by relevance

12

/titanic_50/usr/src/lib/libshell/common/bltins/
H A Dmisc.c78 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 Dulimit.c36 #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 Dshiocmd_solaris.c30 #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 Dpoll_solaris.c30 #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 Dumask.c37 #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 Dcflow.c56 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 Dcd_pwd.c63 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 Dhist.c60 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 Dwhence.c61 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 Dtrap.c56 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 Dtypeset.c73 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 Dsleep.c61 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 Dgetopts.c78 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 Dprint.c183 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 Dalarm.c245 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 Dtest.c122 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 Dread.c109 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 Dregress.c272 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 Dshcomp.c91 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 Dargs.c174 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 Dbash.c213 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 Dlex.c391 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 Darith.c342 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 Dio.c451 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 Dhexpand.c324 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,

12