Searched refs:err (Results 1 - 25 of 64) sorted by relevance

123

/ast/src/lib/libast/string/
H A Dfmterror.c34 fmterror(int err) argument
36 return strerror(err);
H A Dstrerror.c68 _ast_strerror(int err) argument
75 msg = strerror(err);
78 if (err > 0 && err <= sys_nerr)
79 msg = (char*)sys_errlist[err];
132 sfsprintf(msg, z, ERROR_translate(NiL, NiL, "errlist", "Error %d"), err);
143 strerror(int err) argument
145 return _ast_strerror(err);
/ast/src/lib/libz/
H A Duncompr.c33 int err; local
47 err = inflateInit(&stream);
48 if (err != Z_OK) return err;
50 err = inflate(&stream, Z_FINISH);
51 if (err != Z_STREAM_END) {
53 if (err == Z_NEED_DICT || (err == Z_BUF_ERROR && stream.avail_in == 0))
55 return err;
59 err
[all...]
H A Dcompress.c30 int err; local
46 err = deflateInit(&stream, level);
47 if (err != Z_OK) return err;
49 err = deflate(&stream, Z_FINISH);
50 if (err != Z_STREAM_END) {
52 return err == Z_OK ? Z_BUF_ERROR : err;
56 err = deflateEnd(&stream);
57 return err;
[all...]
H A Dexample.c22 #define CHECK_ERR(err, msg) { \
23 if (err != Z_OK) { \
24 fprintf(stderr, "%s error: %d\n", msg, err); \
63 int err; local
66 err = compress(compr, &comprLen, (const Bytef*)hello, len);
67 CHECK_ERR(err, "compress");
71 err = uncompress(uncompr, &uncomprLen, compr, comprLen);
72 CHECK_ERR(err, "uncompress");
93 int err;
105 fprintf(stderr, "gzputs err
174 int err; local
211 int err; local
253 int err; local
307 int err; local
349 int err; local
386 int err; local
431 int err; local
467 int err; local
[all...]
H A Dminigzip.c104 int err; local
120 if (gzwrite(out, buf, (unsigned)len) != len) error(gzerror(out, &err));
136 int err; local
154 if (len != (int)buf_len) error(gzerror(out, &err));
172 int err; local
176 if (len < 0) error (gzerror(in, &err));
H A Dzutil.h56 #define ERR_MSG(err) z_errmsg[Z_NEED_DICT-(err)]
58 #define ERR_RETURN(strm,err) \
59 return (strm->msg = (char*)ERR_MSG(err), (err))
H A Dzutil.c133 const char * ZEXPORT zError(err)
134 int err;
136 return ERR_MSG(err);
/ast/src/lib/libast/comp/
H A Dspawnveg.c50 int err;
54 if (err = posix_spawnattr_init(&attr))
60 if (err = posix_spawnattr_setpgroup(&attr, pgid))
62 if (err = posix_spawnattr_setflags(&attr, POSIX_SPAWN_SETPGROUP))
65 if (err = posix_spawn(&pid, path, NiL, &attr, argv, envv ? envv : environ))
69 if (waitpid(pid, &err, WNOHANG|WNOWAIT) == pid && EXIT_STATUS(err) == 127)
81 errno = err;
167 int err[2];
189 if (pipe(err) <
[all...]
H A Dwordexp.c109 goto err;
118 goto err;
129 goto err;
150 goto err;
170 goto err;
190 err:
/ast/src/lib/libast/misc/
H A Doptjoin.c55 Optpass_f err; local
66 err = rep = 0;
98 err = 0;
102 if (opt_info.again > 0 && (!err || err_index < opt_info.index || err_index == opt_info.index && err_offset < opt_info.offset))
104 err = fun;
116 if (!err)
122 (*err)(argv, 1);
/ast/src/lib/libdll/
H A Ddlfcn.c65 static int err; variable
76 err = errno;
93 err = errno;
103 if (!err)
105 msg = fmterror(err);
106 err = 0;
131 static int err; variable
138 err = errno;
249 err = errno;
259 if (!err)
275 static int err; variable
504 static int err; variable
[all...]
H A Ddllplug.c39 int err; local
44 err = hit = 0;
59 err = state.error;
94 err = state.error;
102 state.error = err;
/ast/src/cmd/ksh93/include/
H A Dfault.h102 Error_context_t err; member in struct:checkpt
104 struct errorcontext err; member in struct:checkpt
110 (bp)->err = *ERROR_CONTEXT_BASE, \
113 #define sh_popcontext(shp,bp) (shp->jmplist=(bp)->prev, errorpop(&((bp)->err)))
/ast/src/lib/libcoshell/
H A Dcoexec.c149 coexec(register Coshell_t* co, const char* action, int flags, const char* out, const char* err, const char* att) argument
228 err);
279 if (err)
281 if (out && streq(out, err))
283 else if (*err == '/')
284 sfprintf(sp, " 2%s%s", red, err);
286 sfprintf(sp, " 2%s%s/%s", red, state.pwd, err);
292 else if (cj->err = pathtemp(NiL, 64, NiL, "coe", NiL))
293 sfprintf(sp, " 2>%s", cj->err);
354 if (err)
[all...]
H A Dcolib.h40 char* err; /* serialized stderr file */ \
/ast/src/cmd/cs/
H A Dfs_env.c119 int err; local
179 err = 0;
184 err = ENOSYS;
188 err = EINVAL;
220 err = EINVAL;
232 err = ENOSYS;
235 err = ENOSYS;
238 if (msgsend(fd, &msg, msg.call, err ? -1 : ret, err, op) <= 0)
/ast/src/lib/libast/port/
H A Dastdynamic.c64 _ast_libinit(void* in, void* out, void* err) argument
74 sp = (Sfio_t*)err;
/ast/src/cmd/ksh93/tests/
H A Dsubshell.sh235 err=$(
253 err=${err%%$'\n'*}
254 err=${err#*:}
255 err=${err##[[:space:]]}
256 err_exit "nested command substitution with redirections failed -- $err"
512 err() { return $1; } function
513 ( err 1
[all...]
/ast/src/cmd/coshell/
H A Dshell.c215 char* err; local
225 if (tokscan(msg, &end, "%s %d %d %s %s %s %s %s %s", NiL, &id, &flags, &pwd, &out, &err, &att, &env, &act) != 9)
329 if (!err)
331 if (!out && con[fd].info.user.fds[1] == con[fd].info.user.fds[2]) err = "&1";
350 if (!err && !(err = con[fd].info.user.pump)) err = state.pump;
351 else if (*err != '/' && *err != '&') sfprintf(state.string, "%s/", pwd);
352 sfprintf(state.string, "%s &\nprint -u3 j %d $!\n", err, j
[all...]
/ast/src/cmd/cs/vcs_src/
H A Difs_network.c47 nFile->err = 0;
63 nFile->err = errno;
137 nFile->err = 0;
202 nFile->err = errno;
274 nFile->err = 0;
/ast/src/lib/libcmd/
H A Dpathchk.c174 goto err;
213 goto err;
225 err:
/ast/src/lib/libcs/
H A Dmsgsend.c36 msgsend(int fd, register Msg_call_t* msg, unsigned long call, long ret, int err, void* data) argument
51 err = 0;
58 if (ret == -1) msgputu(&b, e, err);
/ast/src/cmd/mailx/
H A Dedit.c156 int err; local
183 err = run_command(edit, 0, -1, -1, state.tmp.edit, NiL, NiL) < 0;
193 if (err)
/ast/src/lib/libtk/library/
H A Dbgerror.tcl27 # err - The error message.
29 proc bgerror err {
33 "Error: $err" error 0 OK "Skip Messages" "Stack Trace"]

Completed in 28 milliseconds

123