Searched defs:out (Results 1 - 25 of 77) sorted by relevance

1234

/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/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 Drev.c60 static int rev_char(Sfio_t *in, Sfio_t *out) argument
79 error(ERROR_SYSTEM|2, "out of space");
90 if (sfwrite(out, bp, cp - bp) < 0)
110 if(sfwrite(out,cp,n)<0)
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 Dfold.c89 static void fold(Sfio_t *in, Sfio_t *out, register int width, const char *cont, size_t contsize, char *cols) argument
107 sfwrite(out,cp,n);
122 sfwrite(out,first,col);
127 sfwrite(out, cont, contsize);
147 sfwrite(out,first,(--cp)-first);
148 sfwrite(out, cont, contsize);
165 sfwrite(out,first,cp-first);
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/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...]
/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);
H A Dtdump.c45 int sh_tdump(Sfio_t *out, const Shnode_t *t) argument
47 outfile = out;
54 static int outstring(Sfio_t *out, const char *string, int n) argument
59 r = sfwrite(out,cp,n);
/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/lib/libast/port/
H A Dastdynamic.c64 _ast_libinit(void* in, void* out, void* err) argument
71 sp = (Sfio_t*)out;
/ast/src/lib/librecsort/
H A Drswrite.c28 #define NOTIFY(rs,r,rsrv,endrsrv,cur,out,n) \
34 { out.data = cur; \
35 out.datalen = n = endrsrv - cur; \
36 if ((c = rsnotify(rs, RS_WRITE, r, &out, rs->disc)) < 0) \
39 { out.datalen = 0; \
42 if (n >= out.datalen) \
44 RESERVE(rs,f,rsrv,endrsrv,cur,out.datalen); \
46 cur += out.datalen; \
85 Rsobj_t out; local
142 NOTIFY(rs,r,rsrv,endrsrv,cur,out,
[all...]
/ast/src/cmd/pack/
H A Dpack.c97 int out, deleted, dsize, n; local
154 else if(((out=open(outfile,O_WRONLY|O_CREAT|O_TRUNC|O_BINARY,PERM(statb.st_mode))) < 0) ||
155 !(fpout = sfnew((Sfio_t*)0,(char*)0,SF_UNBOUND,out,SF_WRITE)))
H A Dunpack.c92 int out; local
107 error(ERROR_system(1), "out of space [tmp string]");
126 error(ERROR_SYSTEM|3, "out of space");
165 else if(((out=open(outfile,O_WRONLY|O_CREAT|O_TRUNC|O_BINARY,PERM(statb.st_mode))) < 0) ||
166 !((fpout = sfnew((Sfio_t*)0,(char*)0,SF_UNBOUND,out,SF_WRITE))))
/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...]
H A Dvcmap.c249 static ssize_t vcmap(Vcodex_t* vc, const Void_t* data, size_t size, Void_t** out) argument
251 static ssize_t vcmap(vc, data, size, out)
255 Void_t** out;
296 if(out)
297 *out = output;
/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...]
/ast/src/lib/libcoshell/
H A Dcoexec.c114 errormsg(state.lib, ERROR_LIBRARY|2, "out of space");
149 coexec(register Coshell_t* co, const char* action, int flags, const char* out, const char* err, const char* att) argument
227 out,
270 if (out)
272 if (*out == '/')
273 sfprintf(sp, " %s%s", red, out);
275 sfprintf(sp, " %s%s/%s", red, state.pwd, out);
277 else if ((flags & CO_SERIALIZE) && (cj->out = pathtemp(NiL, 64, NiL, "coo", NiL)))
278 sfprintf(sp, " >%s", cj->out);
281 if (out
[all...]
/ast/src/cmd/nmake/
H A Dmetarule.c32 * a file that matches the metarule pattern out from
38 metarule(char* in, char* out, int force) argument
43 sfprintf(internal.met, "%s>%s", in, out ? out : "%");
56 * if in -> out is a secondary metrule then return primary
59 if (!r && (r = metainfo('P', in, out, 0)))
245 metaclose(Rule_t* in, Rule_t* out, int c) argument
263 error(1, "metaclose: %s -> %s recursion!", in->name, out->name);
267 addprereq(internal.metarule, out, c == PREREQ_DELETE ? c : PREREQ_LENGTH);
268 addprereq(metainfo('I', out
[all...]
/ast/src/cmd/paxlib/calib/
H A Dcamap.c55 tr(int in, int out, const char *header, const unsigned char *table) argument
67 if (write(out,header,z) != z)
77 if (write(out,buff[odd],z) != z)
85 camap_done(void* ptr, const char* file, int out) argument
127 if(lseek(out, (off_t)0, SEEK_SET)==0)
128 r = tr(in,out,header,table);
/ast/src/cmd/std/
H A Dunexpand.c131 static int expand(Sfio_t *in, Sfio_t *out, int tablist[], int tabmax, int type,int initial) argument
175 sfwrite(out,buff, i);
189 sfwrite(out,buff, i);
195 sfputc(out,'\t');
206 sfnputc(out,' ',n);
213 sfwrite(out,buff, (cp-1)-buff);
232 sfputc(out,' ');
235 sfnputc(out,' ',n);
264 sfwrite(out, buff, n);
/ast/src/cmd/coshell/
H A Dshell.c133 error(ERROR_OUTPUT|2, fd, "out of space");
214 char* out; 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)
320 if (!out)
331 if (!out && con[fd].info.user.fds[1] == con[fd].info.user.fds[2]) err = "&1";
347 if (!out && !(out = con[fd].info.user.pump)) out = state.pump;
348 else if (*out != '/' && *out !
[all...]
/ast/src/lib/libvcodex/Vchuff/
H A Dvchuffman.c70 static ssize_t vchuff(Vcodex_t* vc, const Void_t* data, size_t dtsz, Void_t** out) argument
72 static ssize_t vchuff(vc, data, dtsz, out)
76 Void_t** out; /* return encoded data */
145 if(out)
146 *out = output;
151 static ssize_t vcunhuff(Vcodex_t* vc, const Void_t* orig, size_t dtsz, Void_t** out) argument
153 static ssize_t vcunhuff(vc, orig, dtsz, out)
157 Void_t** out; /* return decoded data */
227 if(out)
228 *out
[all...]

Completed in 79 milliseconds

1234