Home
last modified time | relevance | path

Searched refs:sfwrite (Results 1 – 25 of 129) sorted by relevance

123456

/titanic_51/usr/src/lib/libast/common/misc/
H A Doptesc.c59 sfwrite(sp, m, s - m); in optesc()
61 sfwrite(sp, s, 3); in optesc()
65 sfwrite(sp, m, s - m); in optesc()
79 sfwrite(sp, m, s - m); in optesc()
83 sfwrite(sp, m, s - m); in optesc()
/titanic_51/usr/src/contrib/ast/src/lib/libast/misc/
H A Doptesc.c59 sfwrite(sp, m, s - m); in optesc()
61 sfwrite(sp, s, 3); in optesc()
65 sfwrite(sp, m, s - m); in optesc()
79 sfwrite(sp, m, s - m); in optesc()
83 sfwrite(sp, m, s - m); in optesc()
/titanic_51/usr/src/contrib/ast/src/lib/libcmd/
H A Dfold.c107 sfwrite(out,cp,n); in fold()
122 sfwrite(out,first,col); in fold()
127 sfwrite(out, cont, contsize); in fold()
147 sfwrite(out,first,(--cp)-first); in fold()
148 sfwrite(out, cont, contsize); in fold()
165 sfwrite(out,first,cp-first); in fold()
H A Dpaste.c108 sfwrite(out,delim,dsiz); in paste()
116 sfwrite(out,delim,z); in paste()
121 if(sfwrite(out,cp,sfvalue(fp)-((n+1)<nstream)) < 0) in paste()
133 sfwrite(out,mp[d].chr,mp[d].len); in paste()
152 if((cp = sfgetr(in,'\n',0)) && sfwrite(out,cp,sfvalue(in)-1) < 0) in spaste()
162 sfwrite(out,mp[d].chr,mp[d].len); in spaste()
167 if(sfwrite(out,cp,sfvalue(in)-1) < 0) in spaste()
H A Dcomm.c87 if(sfwrite(out,cp1,n) < 0) in comm()
101 if(sfwrite(out,cp2,n2) < 0) in comm()
109 if((mode&C_FILE1) && sfwrite(out,cp1,n1) < 0) in comm()
138 if(sfwrite(out,cp1,n1) < 0) in comm()
H A Duniq.c164 sfwrite(fdout,outp,0); in uniq()
198 sfwrite(fdout,outp,0); in uniq()
206 if(sfwrite(fdout,outp,outsize) != outsize) in uniq()
215 if(sfwrite(fdout,outp,outsize) != outsize) in uniq()
230 sfwrite(fdout,outp,0); in uniq()
H A Dcut.c339 if (sfwrite(fdout, (char*)bp, c) < 0) in cutcols()
353 sfwrite(fdout, cut->ldelim.str, cut->ldelim.len); in cutcols()
435 if ((c = cp - copy) > 0 && sfwrite(fdout, (char*)copy, c) < 0) in cutfields()
464 if (sfwrite(fdout, (char*)mb, c) < 0) in cutfields()
522 if ((c = wp - copy) > 0 && sfwrite(fdout, (char*)copy, c) < 0) in cutfields()
552 if (copy && (c=cp-copy)>0 && (!nodelim || !cut->sflag) && sfwrite(fdout,(char*)copy,c)< 0) in cutfields()
561 sfwrite(fdtmp,(char*)first,c); in cutfields()
H A Dcat.c184 sfwrite(op, cur, m); in vcat()
221 sfwrite(op, tmp, m); in vcat()
248 sfwrite(op, cur, m); in vcat()
325 sfwrite(op, (char*)meta, 3); in vcat()
333 sfwrite(op, (char*)meta, 3); in vcat()
H A Drev.c90 if (sfwrite(out, bp, cp - bp) < 0) in rev_char()
110 if(sfwrite(out,cp,n)<0) in rev_char()
/titanic_51/usr/src/lib/libcmd/common/
H A Dfold.c107 sfwrite(out,cp,n); in fold()
122 sfwrite(out,first,col); in fold()
127 sfwrite(out, cont, contsize); in fold()
147 sfwrite(out,first,(--cp)-first); in fold()
148 sfwrite(out, cont, contsize); in fold()
165 sfwrite(out,first,cp-first); in fold()
H A Dpaste.c108 sfwrite(out,delim,dsiz); in paste()
116 sfwrite(out,delim,z); in paste()
121 if(sfwrite(out,cp,sfvalue(fp)-((n+1)<nstream)) < 0) in paste()
133 sfwrite(out,mp[d].chr,mp[d].len); in paste()
152 if((cp = sfgetr(in,'\n',0)) && sfwrite(out,cp,sfvalue(in)-1) < 0) in spaste()
162 sfwrite(out,mp[d].chr,mp[d].len); in spaste()
167 if(sfwrite(out,cp,sfvalue(in)-1) < 0) in spaste()
H A Dcomm.c87 if(sfwrite(out,cp1,n) < 0) in comm()
101 if(sfwrite(out,cp2,n2) < 0) in comm()
109 if((mode&C_FILE1) && sfwrite(out,cp1,n1) < 0) in comm()
138 if(sfwrite(out,cp1,n1) < 0) in comm()
H A Duniq.c164 sfwrite(fdout,outp,0); in uniq()
198 sfwrite(fdout,outp,0); in uniq()
206 if(sfwrite(fdout,outp,outsize) != outsize) in uniq()
215 if(sfwrite(fdout,outp,outsize) != outsize) in uniq()
230 sfwrite(fdout,outp,0); in uniq()
H A Dcut.c341 if (sfwrite(fdout, (char*)bp, c) < 0) in cutcols()
355 sfwrite(fdout, cut->ldelim.str, cut->ldelim.len); in cutcols()
437 if ((c = cp - copy) > 0 && sfwrite(fdout, (char*)copy, c) < 0) in cutfields()
466 if (sfwrite(fdout, (char*)mb, c) < 0) in cutfields()
524 if ((c = wp - copy) > 0 && sfwrite(fdout, (char*)copy, c) < 0) in cutfields()
554 if (copy && (c=cp-copy)>0 && (!nodelim || !cut->sflag) && sfwrite(fdout,(char*)copy,c)< 0) in cutfields()
563 sfwrite(fdtmp,(char*)first,c); in cutfields()
H A Dcat.c185 sfwrite(op, cur, m); in vcat()
222 sfwrite(op, tmp, m); in vcat()
249 sfwrite(op, cur, m); in vcat()
326 sfwrite(op, (char*)meta, 4); in vcat()
333 sfwrite(op, (char*)meta, 3); in vcat()
H A Drev.c90 if (sfwrite(out, bp, cp - bp) < 0) in rev_char()
106 if(sfwrite(out,cp,n)<0) in rev_char()
H A Dgrep.c308 sfwrite(sp, s, so); in highlight()
309 sfwrite(sp, bold, sizeof(bold)); in highlight()
310 sfwrite(sp, s + so, eo - so); in highlight()
311 sfwrite(sp, normal, sizeof(normal)); in highlight()
312 sfwrite(sp, s + eo, n - eo); in highlight()
340 sfwrite(sfstdout, s, len + 1); in record()
408 sfwrite(sfstdout, s, len + 1); in execute()
428 sfwrite(sfstdout, s, len + 1); in execute()
/titanic_51/usr/src/contrib/ast/src/lib/libast/astsa/
H A Dsfstr.h45 #undef sfwrite
58 extern int sfwrite(Sfio_t*, void*, int);
/titanic_51/usr/src/contrib/ast/src/lib/libast/regex/
H A Dregdecomp.c56 sfwrite(sp, b, p - b); in detrie()
64 sfwrite(sp, b, p - b); in detrie()
238 sfwrite(sp, ic, t - ic); in decomp()
254 sfwrite(sp, nc + 1, s - nc - 1); in decomp()
258 sfwrite(sp, nc, s - nc); in decomp()
/titanic_51/usr/src/lib/libast/common/regex/
H A Dregdecomp.c56 sfwrite(sp, b, p - b); in detrie()
64 sfwrite(sp, b, p - b); in detrie()
238 sfwrite(sp, ic, t - ic); in decomp()
254 sfwrite(sp, nc + 1, s - nc - 1); in decomp()
258 sfwrite(sp, nc, s - nc); in decomp()
/titanic_51/usr/src/lib/libshell/common/sh/
H A Dmacro.c312 sfwrite(outfile,fcseek(0),c); in sh_machere()
376 sfwrite(outfile,(char*)stkptr(stkp,offset2),c); in sh_machere()
487 sfwrite(stkp,first,c); in copyto()
548 sfwrite(stkp,first,c+1); in copyto()
556 sfwrite(stkp,first,c+1); in copyto()
567 sfwrite(stkp,first,c); in copyto()
581 sfwrite(stkp,first,c); in copyto()
609 sfwrite(stkp,first,c); in copyto()
633 sfwrite(stkp,first,c); in copyto()
655 sfwrite(stkp,first,++c); in copyto()
[all …]
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dmacro.c323 sfwrite(outfile,fcseek(0),c); in sh_machere()
388 sfwrite(outfile,(char*)stkptr(stkp,offset2),c); in sh_machere()
501 sfwrite(stkp,first,c); in copyto()
563 sfwrite(stkp,first,c+1); in copyto()
571 sfwrite(stkp,first,c+1); in copyto()
582 sfwrite(stkp,first,c); in copyto()
596 sfwrite(stkp,first,c); in copyto()
618 sfwrite(stkp,first,n); in copyto()
662 sfwrite(stkp,first,c); in copyto()
695 sfwrite(stk in copyto()
[all...]
/titanic_51/usr/src/contrib/ast/src/lib/libast/stdio/
H A Dputw.c31 return sfwrite(f, &v, sizeof(v)) == sizeof(v) ? 0 : -1; in putw()
/titanic_51/usr/src/lib/libast/common/stdio/
H A Dputw.c31 return sfwrite(f, &v, sizeof(v)) == sizeof(v) ? 0 : -1; in putw()
H A Dfputwc.c32 return (sfwrite(f, &c, sizeof(c)) == sizeof(c)) ? c : WEOF; in fputwc()

123456