Home
last modified time | relevance | path

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

12345

/titanic_41/usr/src/lib/libast/common/misc/
H A Derror.c162 error_info.core = error_state.breakpoint; in setopt()
166 error_info.set |= ERROR_CATALOG; in setopt()
168 error_info.clear |= ERROR_CATALOG; in setopt()
177 error_info.fd = n ? strtol(v, NiL, 0) : -1; in setopt()
181 error_info.set |= ERROR_LIBRARY; in setopt()
183 error_info.clear |= ERROR_LIBRARY; in setopt()
187 error_info.mask = strtol(v, NiL, 0); in setopt()
189 error_info.mask = 0; in setopt()
219 error_info.set |= ERROR_SYSTEM; in setopt()
221 error_info.clear |= ERROR_SYSTEM; in setopt()
[all …]
H A Derrorx.c36 …if (!error_info.translate) error_info.translate = translate; /* 2007-03-19 OLD_Error_info_t workar… in errorx()
42 cat = (const char*)error_info.catalog; in errorx()
44 cmd = (const char*)error_info.id; in errorx()
45 if (s = (*error_info.translate)(loc, cmd, cat, msg)) in errorx()
/titanic_41/usr/src/lib/libast/common/include/
H A Derror.h57 #define ERROR_translating() (error_info.translate&&(ast.locale.set&(1<<AST_LC_MESSAGES)))
95 #define ERROR_CONTEXT_BASE ((Error_context_t*)&error_info.context)
97 …)=*ERROR_CONTEXT_BASE,*ERROR_CONTEXT_BASE=error_info.empty,error_info.context=(Error_context_t*)(p…
163 #define error_info (*_error_infop_) macro
/titanic_41/usr/src/lib/libpp/common/
H A Dpplex.c78 error_info.line += spliced; \
98 if (error_info.line) \
103 (*pp.linesync)(error_info.line, error_info.file); \
210 error_info.indent++; in ppcpp()
292 if (!comstart) comstart = comdelim = error_info.line; in ppcpp()
293 error_info.line++; in ppcpp()
312 else if (comstart && comstart != error_info.line) in ppcpp()
314 if (qual || comdelim < error_info.line - 1) in ppcpp()
319 else comdelim = error_info.line; in ppcpp()
393 m = (op - (c != '\n') - tp > MAXTOKEN - 6) ? (error_info.line - MAXHIDDEN) : 0; in ppcpp()
[all …]
H A Dppcall.c100 …(*pp.macref)(sym, error_info.file, error_info.line, (pp.state & CONDITIONAL) ? REF_IF : REF_NORMAL… in ppcall()
118 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()
379 if (error_info.line != last_line) in ppcall()
381 SETLINE(p, error_info.line); in ppcall()
[all …]
H A Dpplib.h455 #define tracing (error_info.trace<0)
545 #define SETIFBLOCK(p) (*(p)=(*((p)-1)&SKIP)|((long)error_info.line<<BLOCKBITS))
570 cur->line = error_info.line; \
571 error_info.line = n; \
582 cur->line = error_info.line; \
583 error_info.line = n; \
633 cur->file = error_info.file; \
634 n = strlen(error_info.file) + strlen(((struct ppsymbol*)p)->name) + 24; \
635 error_info.file = cur->buffer = newof(0, char, n, 0); \
636 sfsprintf(error_info.file, n, "%s:%s,%d", cur->file, p->name, error_info.line); \
[all …]
H A Dppcontrol.c569 error_info.line++; in ppcontrol()
571 error_info.line--; in ppcontrol()
641 n2 = error_info.line; in ppcontrol()
1093 error_info.line++; in ppcontrol()
1295 …if (pp.macref) (*pp.macref)(sym, error_info.file, n2, mac ? error_info.line - n2 + 1 : REF_UNDEF, … in ppcontrol()
1408 n2 = error_info.line; in ppcontrol()
1462 n = error_info.line; in ppcontrol()
1463 error_info.line = strtol(pp.token, NiL, 0); in ppcontrol()
1464 if (error_info.line == 0 && directive == LINE && (pp.state & STRICT) && !(pp.mode & HOSTED)) in ppcontrol()
1471 s = error_info.file; 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()
/titanic_41/usr/src/lib/libcmd/common/
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.c130 error_info.errors++; in rm()
135 error_info.errors++; in rm()
148 error_info.errors++; in rm()
233 error_info.errors++; in rm()
240 error_info.errors++; in rm()
248 error_info.errors++; in rm()
329 error_info.errors++; in rm()
395 if (error_info.errors || !*argv) in b_rm()
423 return error_info.errors != 0; in b_rm()
H A Dgrep.c265 file = error_info.file; in compile()
266 error_info.file = s; in compile()
267 line = error_info.line; in compile()
268 error_info.line = 0; in compile()
290 error_info.line++; in compile()
293 error_info.file = file; in compile()
294 error_info.line = line; in compile()
334 sfprintf(sfstdout, "%s:", error_info.file); in record()
363 file = error_info.file; in execute()
364 error_info.file = name; in execute()
[all …]
H A Dmktemp.c126 if (error_info.errors || (pfx = *argv++) && *argv) in b_mktemp()
151 error_info.errors++; in b_mktemp()
165 error_info.errors++; in b_mktemp()
170 return error_info.errors != 0; in b_mktemp()
H A Dtty.c78 if(error_info.errors) in b_tty()
83 error_info.errors++; in b_tty()
96 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.c86 if (error_info.errors || !*argv) in b_rmdir()
106 error_info.errors++; in b_rmdir()
120 return(error_info.errors != 0); in b_rmdir()
/titanic_41/usr/src/lib/libast/amd64/include/ast/
H A Derror.h66 #define ERROR_translating() (error_info.translate&&(ast.locale.set&(1<<AST_LC_MESSAGES)))
104 #define ERROR_CONTEXT_BASE ((Error_context_t*)&error_info.context)
106 …= *ERROR_CONTEXT_BASE,*ERROR_CONTEXT_BASE=error_info.empty,error_info.context=(Error_context_t*)(p…
174 #define error_info (*_error_infop_) macro
/titanic_41/usr/src/lib/libast/common/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()
/titanic_41/usr/src/lib/libast/sparc/include/ast/
H A Derror.h66 #define ERROR_translating() (error_info.translate&&(ast.locale.set&(1<<AST_LC_MESSAGES)))
104 #define ERROR_CONTEXT_BASE ((Error_context_t*)&error_info.context)
106 …= *ERROR_CONTEXT_BASE,*ERROR_CONTEXT_BASE=error_info.empty,error_info.context=(Error_context_t*)(p…
174 #define error_info (*_error_infop_) macro
/titanic_41/usr/src/lib/libast/sparcv9/include/ast/
H A Derror.h66 #define ERROR_translating() (error_info.translate&&(ast.locale.set&(1<<AST_LC_MESSAGES)))
104 #define ERROR_CONTEXT_BASE ((Error_context_t*)&error_info.context)
106 …= *ERROR_CONTEXT_BASE,*ERROR_CONTEXT_BASE=error_info.empty,error_info.context=(Error_context_t*)(p…
174 #define error_info (*_error_infop_) macro
/titanic_41/usr/src/lib/libast/i386/include/ast/
H A Derror.h66 #define ERROR_translating() (error_info.translate&&(ast.locale.set&(1<<AST_LC_MESSAGES)))
104 #define ERROR_CONTEXT_BASE ((Error_context_t*)&error_info.context)
106 …= *ERROR_CONTEXT_BASE,*ERROR_CONTEXT_BASE=error_info.empty,error_info.context=(Error_context_t*)(p…
174 #define error_info (*_error_infop_) macro
/titanic_41/usr/src/cmd/ast/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;
/titanic_41/usr/src/lib/libshell/common/sh/
H A Dmain.c122 oid = error_info.id; in sh_source()
123 nid = error_info.id = strdup(file); in sh_source()
127 error_info.id = oid; in sh_source()
170 command = error_info.id; in sh_main()
261 shp->st.cmdname = error_info.id = command; in sh_main()
273 name = error_info.id; in sh_main()
274 error_info.id = shp->shname; in sh_main()
339 error_info.id = av[0]; in sh_main()
355 error_info.id = name; in sh_main()
360 sh_accbegin(error_info.id); in sh_main()
[all …]
/titanic_41/usr/src/lib/libcmd/amd64/include/ast/
H A Dcmd.h94 error_info.id = cp;
95 if (!error_info.catalog)
96 error_info.catalog = (char*)catalog;
99 error_info.flags |= flags & ~(ERROR_CALLBACK|ERROR_NOTIFY);
/titanic_41/usr/src/lib/libcmd/sparc/include/ast/
H A Dcmd.h94 error_info.id = cp;
95 if (!error_info.catalog)
96 error_info.catalog = (char*)catalog;
99 error_info.flags |= flags & ~(ERROR_CALLBACK|ERROR_NOTIFY);

12345