Home
last modified time | relevance | path

Searched refs:error_info (Results 1 – 25 of 113) sorted by relevance

12345

/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Derror.c189 error_info.mask = 0; in setopt()
374 if (!error_info.init) in errorv()
376 error_info.init = 1; in errorv()
416error_info.trace || (flags & ERROR_LIBRARY) && !(((error_info.set | error_info.flags) ^ error_info in errorv()
424 flags |= error_info.set | error_info.flags; in errorv()
429 if (error_info.write) in errorv()
454 context(stkstd, CONTEXT(error_info.flags, error_info.context)); in errorv()
474 if (error_info.file && *error_info.file) in errorv()
480 if (error_info.time) in errorv()
482 if ((d = times(&us)) < error_info.time || error_info.time == 1) in errorv()
[all …]
H A Derrorx.c36 if (!error_info.translate) in errorx()
37 error_info.translate = translate; /* 2007-03-19 OLD_Error_info_t workaround */ in errorx()
43 cmd = (const char*)error_info.id; in errorx()
45 cat = (const char*)error_info.catalog; in errorx()
46 if (s = (*error_info.translate)(loc, cmd, cat, msg)) in errorx()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/astsa/
H A Derror.c30 Error_info_t error_info; variable
47 if (level && ((s = error_info.id) || (s = (char*)id))) in errorv()
63 error_info.warnings++; in errorv()
67 error_info.errors++; in errorv()
71 if (error_info.line) in errorv()
73 if (error_info.file && *error_info.file) in errorv()
74 sfprintf(sfstderr, "\"%s\", ", error_info.file); in errorv()
75 sfprintf(sfstderr, "line %d: ", error_info.line); in errorv()
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/
H A Dpplex.c103 (*pp.linesync)(error_info.line, error_info.file); \
210 error_info.indent++; in ppcpp()
293 error_info.line++; in ppcpp()
524 (*pp.linesync)(error_info.line, error_info.file); in ppcpp()
676 (*pp.linesync)(error_info.line, error_info.file); in ppcpp()
1073 m = error_info.line ? (error_info.line - 1) : 0; in ppcpp()
1374 (*pp.linesync)(error_info.line, error_info.file); in ppcpp()
1594 (*pp.linesync)(error_info.line, error_info.file); in ppcpp()
1799 error_info.line++; in ppcpp()
1818 error_info.line++; in ppcpp()
[all …]
H A Dppcall.c118 error_info.line++; in ppcall()
200 error_info.line++; in ppcall()
224 error_info.line--; in ppcall()
250 last_line = error_info.line; in ppcall()
251 last_file = error_info.file; in ppcall()
252 mp->line = error_info.line; in ppcall()
371 error_info.line++; in ppcall()
381 SETLINE(p, error_info.line); in ppcall()
382 last_line = error_info.line; in ppcall()
386 SETFILE(p, error_info.file); in ppcall()
[all …]
H A Dpplib.h562 cur->line = error_info.line; \
563 error_info.line = n; \
574 cur->line = error_info.line; \
575 error_info.line = n; \
625 cur->file = error_info.file; \
628 sfsprintf(error_info.file, n, "%s:%s,%d", cur->file, p->name, error_info.line); \
629 cur->line = error_info.line; \
630 error_info.line = 1; \
644 cur->line = error_info.line; \
645 error_info.line = n; \
[all …]
H A Dppsearch.c153 error_info.file in search()
427 if (streq(error_info.file, pp.path)) in search()
660 n = strlen(error_info.file); in ppsearch()
668 s = error_info.file; in ppsearch()
669 error_info.file = pp.include; in ppsearch()
671 error_info.file = s; in ppsearch()
674 file = error_info.file + n - m; in ppsearch()
679 file = error_info.file; in ppsearch()
713 if (error_info.file && (s = strrchr(error_info.file, '/'))) in ppsearch()
798 if (error_info.file && *error_info.file && (s = strrchr(error_info.file + 1, '/'))) in ppsearch()
[all …]
H A Dppcontrol.c569 error_info.line++; in ppcontrol()
571 error_info.line--; in ppcontrol()
641 n2 = error_info.line; in ppcontrol()
1408 n2 = error_info.line; in ppcontrol()
1462 n = error_info.line; in ppcontrol()
1471 s = error_info.file; in ppcontrol()
1558 (*pp.linesync)(error_info.line, error_info.file); in ppcontrol()
2097 (*pp.linesync)(error_info.line, error_info.file); in ppcontrol()
2245 error_info.line++; in ppcontrol()
2264 error_info.line++; in ppcontrol()
[all …]
H A Dppmisc.c47 …if (pp.macref) (*pp.macref)(sym, error_info.file, error_info.line, ref == REF_NORMAL && (pp.state … in pprefmac()
222 if (error_info.line) in ppsync()
223 (*pp.linesync)(error_info.line, error_info.file); in ppsync()
H A Dppop.c132 if (!error_info.file) in ppmapinclude()
546 error_info.file = 0; in ppop()
685 error_info.errors = 0; in ppop()
840 c = error_info.trace; in ppop()
841 error_info.trace = 0; in ppop()
1035 if (error_info.trace) in ppop()
1139 error_info.file = 0; in ppop()
1153 s = error_info.file; in ppop()
1182 if (*error_info.file) in ppop()
1213 if (!error_info.file) in ppop()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/
H A Derror.h57 #define ERROR_translating() (error_info.translate&&(ast.locale.set&(1<<AST_LC_MESSAGES)))
101 #define ERROR_CONTEXT_BASE ((Error_context_t*)&error_info.context)
103 …)=*ERROR_CONTEXT_BASE,*ERROR_CONTEXT_BASE=error_info.empty,error_info.context=(Error_context_t*)(p…
169 #define error_info (*_error_infop_) macro
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dcmdinit.c48 error_info.flags |= flags; in _cmd_init()
54 error_info.id = cp; in _cmd_init()
55 if (!error_info.catalog) in _cmd_init()
56 error_info.catalog = catalog; in _cmd_init()
H A Drm.c133 error_info.errors++; in rm()
138 error_info.errors++; in rm()
151 error_info.errors++; in rm()
236 error_info.errors++; in rm()
243 error_info.errors++; in rm()
251 error_info.errors++; in rm()
320 error_info.errors++; in rm()
386 if (error_info.errors || !*argv && !state.force) in b_rm()
416 return error_info.errors != 0; in b_rm()
H A Dmktemp.c124 if (error_info.errors || (pfx = *argv++) && *argv) in b_mktemp()
149 error_info.errors++; in b_mktemp()
163 error_info.errors++; in b_mktemp()
168 return error_info.errors != 0; in b_mktemp()
H A Dtty.c86 if(error_info.errors) in b_tty()
91 error_info.errors++; in b_tty()
104 return(error_info.errors); in b_tty()
H A Dcmd.h84 error_info.id = cp; in cmdinit()
85 if (!error_info.catalog) in cmdinit()
86 error_info.catalog = (char*)catalog; in cmdinit()
89 error_info.flags |= flags & ~(ERROR_CALLBACK|ERROR_NOTIFY); in cmdinit()
H A Drmdir.c90 if (error_info.errors || !*argv) in b_rmdir()
110 error_info.errors++; in b_rmdir()
124 return(error_info.errors != 0); in b_rmdir()
H A Dgetconf.c239 if (error_info.errors || !name && *argv) in b_getconf()
265 if (error_info.errors) in b_getconf()
285 return error_info.errors != 0; in b_getconf()
359 sfsprintf(buf, sizeof(buf), "%-*.*s/%s", n, n, t, error_info.id); in b_getconf()
377 sfsprintf(buf, sizeof(buf), "%-*.*s/%s", p->len, p->len, p->path, error_info.id); in b_getconf()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/
H A Dpathfind.c119 if (error_info.file && (s = strrchr(error_info.file, '/'))) in pathfind()
121 sfsprintf(buf, size, "%-.*s%s", s - error_info.file + 1, error_info.file, name); in pathfind()
126 sfsprintf(buf, size, "%-.*s%s%.s", s - error_info.file + 1, error_info.file, name, type); in pathfind()
/illumos-gate/usr/src/contrib/ast/src/cmd/msgcc/
H A Dmsggen.c233 error_info.id = "msggen"; in main()
257 if (error_info.errors || !(catfile = *argv++)) in main()
267 return error_info.errors != 0; in main()
348 return error_info.errors != 0; in main()
374 error_info.file = msgfile; in main()
377 error_info.line++; in main()
430 error_info.line++; in main()
481 error_info.file = 0; in main()
482 error_info.line = 0; in main()
511 if (!(s = pathtemp(NiL, 0, "", error_info.id, NiL)) || !(sp = sfopen(NiL, s, "w"))) in main()
[all …]
H A DNOTES3 (1) error_info.dictionary should be error_info.catalog
17 optget() will set error_info.catalog if not defined on the first call
21 error_info.id = "foo";
22 error_info.catalog = ERROR_CATALOG;
H A Dmsgget.c64 error_info.id = "msgget"; in main()
79 if (error_info.errors || !(loc = *argv++) || !(cmd = *argv++) || !(s = *argv++)) in main()
108 return error_info.errors != 0; in main()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dmain.c108 oid = error_info.id; in sh_source()
109 nid = error_info.id = strdup(file); in sh_source()
113 error_info.id = oid; in sh_source()
156 command = error_info.id; in sh_main()
257 name = error_info.id; in sh_main()
258 error_info.id = shp->shname; in sh_main()
325 error_info.id = av[0]; in sh_main()
341 error_info.id = name; in sh_main()
346 sh_accbegin(error_info.id); in sh_main()
466 error_info.line = 1; in exfile()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dgetopts.c59 register char *options=error_info.context->id; in b_getopts()
91 if(error_info.errors || argc<2) in b_getopts()
93 error_info.context->flags |= ERROR_SILENT; in b_getopts()
94 error_info.id = options; in b_getopts()
176 error_info.context->flags &= ~ERROR_SILENT; in b_getopts()
H A Dmisc.c85 if(error_info.errors) in b_exec()
175 if(error_info.errors || !*argv) in b_let()
196 if(error_info.errors) in b_eval()
232 if(error_info.errors || !script) in b_dot_cmd()
357 if(error_info.errors) in b_shift()
383 if(error_info.errors) in b_wait()
414 if(error_info.errors) in b_bg()
453 if(error_info.errors) in b_jobs()
485 if(error_info.errors || argc>1) in b_universe()
536 if(error_info.errors) in b_vpath()

12345