Searched refs:out (Results 1 - 25 of 133) sorted by relevance

123456

/ast/src/lib/libast/comp/
H A Dmemmove.c35 register char* out = (char*)to;
40 else if (in + n <= out || out + n <= in)
42 else if (out < in)
43 do *out++ = *in++; while (--n > 0);
46 out += n;
48 do *--out = *--in; while(--n > 0);
/ast/src/lib/libpp/
H A Dppsym.c24 * with no args stdin is treated as an a.out for
40 Sfio_t* out; local
43 if (dup(3) < 0 || !(out = sfnew(NiL, NiL, -1, 3, SF_WRITE)))
44 out = sfstdout;
50 while (*s && *s != '=') sfputc(out, *s++);
51 sfputc(out, '\n');
73 sfputc(out, c);
79 sfputc(out, c);
86 sfputc(out, '\n');
/ast/src/lib/libast/misc/
H A Dsystrace.c37 register char* out; local
49 out = buf;
50 out += sfsprintf(out, sizeof(buf), "%s/.%s/%s", s, trace[0], id);
57 av[5] = out + 1;
61 sfsprintf(out, &buf[sizeof(buf)] - out, ".%d", getpid());
/ast/src/lib/libast/hash/
H A Dhashalloc.c66 goto out;
70 goto out;
83 goto out;
87 goto out;
89 goto out;
101 if (ref) goto out;
106 if (n > UCHAR_MAX) goto out;
113 if (ref) goto out;
117 if (ref) goto out;
121 if (ref) goto out;
[all...]
/ast/src/lib/libz/
H A Dinffast.c34 Decode literal, length, and distance codes and write out the resulting
51 LEN -- ran out of enough output space or enough available input
75 unsigned char FAR *out; /* local strm->next_out */ local
77 unsigned char FAR *end; /* while out < end, enough space available */
102 out = strm->next_out - OFF;
103 beg = out - (start - strm->avail_out);
104 end = out + (strm->avail_out - 257);
138 PUP(out) = (unsigned char)(this.val);
187 op = (unsigned)(out - beg); /* max distance in output */
201 PUP(out)
[all...]
H A Dminigzip.c75 void gz_compress OF((FILE *in, gzFile out));
77 int gz_compress_mmap OF((FILE *in, gzFile out));
79 void gz_uncompress OF((gzFile in, FILE *out));
98 void gz_compress(in, out)
100 gzFile out;
110 if (gz_compress_mmap(in, out) == Z_OK) return;
120 if (gzwrite(out, buf, (unsigned)len) != len) error(gzerror(out, &err));
123 if (gzclose(out) != Z_OK) error("failed gzclose");
131 int gz_compress_mmap(in, out)
199 gzFile out; local
228 FILE *out; local
[all...]
H A Dcrc32.c97 out is a one). We start with the highest power (least significant bit) of
157 /* write out CRC tables to crc32.h */
159 FILE *out; local
161 out = fopen("crc32.h", "w");
162 if (out == NULL) return;
163 fprintf(out, "/* crc32.h -- tables for rapid CRC calculation\n");
164 fprintf(out, " * Generated automatically by crc32.c\n */\n\n");
165 fprintf(out, "local const unsigned long FAR ");
166 fprintf(out, "crc_table[TBLS][256] =\n{\n {\n");
167 write_table(out, crc_tabl
[all...]
/ast/src/cmd/ksh93/edit/
H A Dcompletion.c211 register char *out; local
247 out = outbuff + *cur + (sh_isoption(SH_VI)!=0);
248 if(out[-1]=='"' || out[-1]=='\'')
260 char *last = out;
261 c = *(unsigned char*)out;
263 begin = out = find_begin(outbuff,last,0,&var);
268 stakwrite(out,last-out);
270 out
514 register char *out; local
[all...]
H A Demacs.c57 * - ^X^H command to find out about history position (debugging)
92 # define isword(c) _isword(out[c])
99 # define isword(c) (isalnum(out[c]) || (out[c]=='_'))
183 register genchar *out; local
210 out = (genchar*)buff;
212 out = (genchar*)roundof(buff-(char*)0,sizeof(genchar));
214 ed_internal(buff,out);
221 drawbuff = out;
252 out[reedi
741 register genchar *out = drawbuff; local
772 escape(register Emacs_t* ep,register genchar *out,int count) argument
1232 search(Emacs_t* ep,genchar *out,int direction) argument
[all...]
/ast/src/cmd/builtin/
H A Dasa.c62 static int asa(register Sfio_t *in, Sfio_t *out, int reclen) argument
83 sfputc(out,'\n');
88 sfputc(out,c);
97 sfputc(out,c);
99 sfwrite(out,cp+1,n);
103 sfputc(out,c);
H A Dstrings.c102 outstring(Sfio_t* out, char* cp, int nbytes, register int flags) argument
117 sfputc(out, '\\');
121 sfputc(out, c);
123 sfputc(out, '\n');
128 strings(Sfio_t* in, Sfio_t* out, register int width, char* format, register int flags) argument
167 if (sfprintf(out, fmt, sizeof(offset), offset - (inend - inp) - n) < 0)
169 n = outstring(out, (char*)inp - ((flags & MULTIBYTE) + 1) * n - 1, n, flags);
172 n = sfprintf(out, fmt, sizeof(offset), offset - (inend - inp) - n, n, inp - n - 1);
175 n = outstring(out, (char*)inp - ((flags & MULTIBYTE) + 1) * n - 1, n, flags);
177 n = sfprintf(out, "
[all...]
H A Dwho.c167 static void outline(Sfio_t *out,register struct utmpx *up,register State_t* sp) argument
184 sfprintf(out,"%-*.*s %c %-*.*s %.12s ",sp->siz_user,sp->siz_user,up->ut_user,state,sp->siz_line,sp->siz_line,up->ut_line,date+4);
187 sfprintf(out,"%-*.*s %-*.*s %.12s ",sp->siz_user,sp->siz_user,up->ut_user,sp->siz_line,sp->siz_line,up->ut_line,date+4);
196 sfprintf(out," old ");
198 sfprintf(out, "%.2d:%.2d ",t/60,t%60);
201 sfprintf(out," . ");
205 sfprintf(out," %-*.*s\n",sp->siz_host,sp->siz_host,up->ut_host);
208 sfputc(out,'\n');
211 static int who(Sfio_t *in, Sfio_t *out, int flags) argument
239 sfprintf(out,"
[all...]
/ast/src/lib/libvcodex/Vcdelta/
H A Dvchamming.c28 static ssize_t hamming(Vcodex_t* vc, const Void_t* data, size_t size, Void_t** out) argument
30 static ssize_t hamming(vc, data, size, out)
34 Void_t** out;
78 if(out)
79 *out = (Void_t*)output;
85 static ssize_t unhamming(Vcodex_t* vc, const Void_t* data, size_t size, Void_t** out) argument
87 static ssize_t unhamming(vc, data, size, out)
91 Void_t** out;
131 if(out)
132 *out
[all...]
/ast/src/cmd/proto/
H A Dsear.sh30 out=install.exe
64 [o:output?The self extracting file name is \afile\a.]:[file:='$out$']
105 o) out=$OPTARG
106 [[ ${out##*/} != *.?* ]] && out=${out%.}.exe
160 ! ${cc/-Bstatic/} --mt-output="$out.manifest" --mt-name="${out%.*}" --mt-administrator -o "$out" "$obj" "$res" $libs
163 if [[ -f "$out
[all...]
/ast/src/cmd/ksh93/sh/
H A Dshcomp.c72 Sfio_t *in, *out; local
113 if(!(out = sfopen((Sfio_t*)0,cp,"w")))
115 if(fstat(sffileno(out),&statb) >=0)
119 out = sfstdout;
130 sfwrite(out,header,sizeof(header));
142 if(!dflag && sh_tdump(out,t) < 0)
171 sfmove(in,out,SF_UNBOUND,-1);
174 if(out!=sfstdout)
175 sfclose(out);
/ast/src/cmd/dsslib/bgp/
H A DMakefile26 data/a01.mrt data/a01.out \
27 data/a02.mrt data/a02.out \
28 data/a03.mrt data/a03.out \
29 data/a04.mrt data/a04.out \
30 data/a05.mrt data/a05.out \
31 data/a06.mrt data/a06.out \
32 data/a07.mrt data/a07.out \
33 data/a08.mrt data/a08.out \
34 data/f01.mrt data/f01.out
/ast/src/cmd/ksh93/tests/
H A Dmath.sh43 compound out=( typeset stdout stderr ; integer res )
159 out.stderr="${ { out.stdout="${ ${SHELL} -o nounset -o errexit -c "${cmd}" ; (( out.res=$? )) ; }" ; } 2>&1 ; }"
162 [[ "${out.stdout}" == ${tst.stdoutpattern} ]] || err_exit "${testname}: Expected stdout to match $(printf '%q\n' "${tst.stdoutpattern}"), got $(printf '%q\n' "${out.stdout}")"
163 [[ "${out.stderr}" == '' ]] || err_exit "${testname}: Expected empty stderr, got $(printf '%q\n' "${out.stderr}")"
164 (( out.res == 0 )) || err_exit "${testname}: Unexpected exit code ${out
[all...]
H A Dstatics.sh87 compound out=( typeset stdout stderr ; integer res )
642 out.stderr="${ { out.stdout="${ ${SHELL} -o nounset -c "${currtest.cmd}" ; (( out.res=$? )) ; }" ; } 2>&1 ; }"
644 (( out.res == 0 )) || err_exit "${currtest.name}: Test shell returned with exit code ${out.res}"
645 [[ "${out.stdout}" == "${currtest.expected_output}" ]] || err_exit "${currtest.name}: Expected stdout == $(printf "%q\n" "${currtest.expected_output}"), got $(printf "%q\n" "${out.stdout}")"
646 [[ "${out.stderr}" == '' ]] || err_exit "${currtest.name}: Expected empty stderr, got $(printf "%q\n" "${out
[all...]
H A Dcomvario.sh371 compound out=( typeset stdout stderr ; integer res )
421 out.stderr="${ { out.stdout="${ ${SHELL} -c "${test.cmd}" ; (( out.res=$? )) ; }" ; } 2>&1 ; }"
423 (( out.res == 0 )) || err_exit "${testname}: Test shell returned with exit code ${out.res}"
424 [[ "${out.stdout}" == ${test.stdoutpattern} ]] || err_exit "${testname}: Expected match for ${test.stdoutpattern}, got $(printf "%q\n" "${out.stdout}")"
425 [[ "${out.stderr}" == "" ]] || err_exit "${testname}: Expected empty stderr, got $(printf "%q\n" "${out
[all...]
/ast/src/cmd/ie/
H A Demacs.c65 * - ^X^H command to find out about history position (debugging)
110 # define isword(c) isalnum(out[c])
185 register genchar *out; local
204 drawbuff = out = (genchar*)buff;
240 *out = 0;
276 out[cur++] = c;
277 out[eol] = '\0';
333 out[i] = out[i-1];
336 out[cu
685 register char *out = (char *)drawbuff; local
[all...]
/ast/src/lib/libvcodex/Vcmisc/
H A Dvcbwt.c28 static ssize_t vcbwt(Vcodex_t* vc, const Void_t* data, size_t size, Void_t** out) argument
30 static ssize_t vcbwt(vc, data, size, out)
34 Void_t** out;
77 /* write out the sorted location of position-0 in data */
86 if(out)
87 *out = output;
93 static ssize_t vcunbwt(Vcodex_t* vc, const Void_t* data, size_t size, Void_t** out) argument
95 static ssize_t vcunbwt(vc, data, size, out)
99 Void_t** out;
160 if(out)
[all...]
/ast/src/lib/libcmd/
H A Drevlib.c33 * copy the lines starting at offset <start> from in <in> to <out>
36 int rev_line(Sfio_t *in, Sfio_t *out, off_t start) argument
90 if(sfwrite(out,cp,cpold-cp) < 0)
95 sfputc(out,'\n');
96 else if(sfmove(in,out,nleft,-1) != nleft)
108 if(sfmove(in,out,nleft,-1) != nleft)
H A Dcomm.c66 static int comm(Sfio_t *in1, Sfio_t *in2, register Sfio_t *out,register int mode) argument
83 sfputc(out,'\t');
85 sfputc(out,'\t');
87 if(sfwrite(out,cp1,n) < 0)
100 sfputc(out,'\t');
101 if(sfwrite(out,cp2,n2) < 0)
109 if((mode&C_FILE1) && sfwrite(out,cp1,n1) < 0)
137 sfputc(out,'\t');
138 if(sfwrite(out,cp1,n1) < 0)
H A Dpaste.c82 * to <out>
85 static int paste(int nstream,Sfio_t* streams[],Sfio_t *out, register const char *delim, int dsiz, int dlen, Delim_t* mp) argument
104 sfnputc(out, *delim, n);
108 sfwrite(out,delim,dsiz);
116 sfwrite(out,delim,z);
121 if(sfwrite(out,cp,sfvalue(fp)-((n+1)<nstream)) < 0)
133 sfwrite(out,mp[d].chr,mp[d].len);
135 sfputc(out,c);
139 sfputc(out,'\n');
146 * Handles paste -s, for file <in> to file <out> usin
148 spaste(Sfio_t *in,register Sfio_t* out,register const char *delim,int dsiz,int dlen,Delim_t* mp) argument
[all...]
/ast/src/cmd/html/
H A Dhtml2rtf.c101 sfputr(state.out, "\\line", -1);
102 sfputr(state.out, "\\par\\pard", -1);
104 sfputr(state.out, "\\qc", -1);
106 sfprintf(state.out, "\\fi%d", twips(state.hanging - state.indent));
107 sfprintf(state.out, "\\li%d\\tx%d\\tx20000%s", twips(state.indent), twips(state.indent), tail ? tail : "");
126 sfprintf(state.out, "{\\uldb %s}{\\v", s);
129 sfputr(state.out, "#{\\footnote", -1);
130 sfprintf(state.out, " %s.", state.prefix);
132 sfputc(state.out, isalnum(c) ? c : '.');
133 sfputc(state.out, '}');
[all...]

Completed in 39 milliseconds

123456