Home
last modified time | relevance | path

Searched refs:sfvalue (Results 1 – 25 of 35) sorted by relevance

12

/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dcomm.c71 n1 = sfvalue(in1); in comm()
73 n2 = sfvalue(in2); in comm()
91 n1 = sfvalue(in1); in comm()
93 n2 = sfvalue(in2); in comm()
105 n2 = sfvalue(in2); in comm()
112 n1 = sfvalue(in1); in comm()
142 n1 = sfvalue(in1); in comm()
H A Dcat.c103 #ifndef sfvalue
104 #define sfvalue(f) ((f)->_val) macro
114 else if (sfvalue(sp) > 4) in regress()
115 sfvalue(sp) = 4; in regress()
192 states[0] = sfvalue(ip) ? T_ERROR : T_EOF; in vcat()
196 else if ((n = sfvalue(ip)) <= 0) in vcat()
277 states[0] = (m = sfvalue(ip)) ? T_ERROR : T_EOF; in vcat()
280 else if ((m = sfvalue(ip)) <= 0) in vcat()
353 states[0] = sfvalue(ip) ? T_ERROR : T_EOF; in vcat()
358 else if ((n = sfvalue(ip)) <= 0) in vcat()
H A Dpaste.c121 if(sfwrite(out,cp,sfvalue(fp)-((n+1)<nstream)) < 0) in paste()
152 if((cp = sfgetr(in,'\n',0)) && sfwrite(out,cp,sfvalue(in)-1) < 0) in spaste()
167 if(sfwrite(out,cp,sfvalue(in)-1) < 0) in spaste()
H A Drev.c73 ep = bp + (n=sfvalue(in)) - 1; in rev_char()
103 ep = bp + (n=sfvalue(in)) -1; in rev_char()
H A Duniq.c96 n = sfvalue(fdin); in uniq()
99 n = sfvalue(fdin); in uniq()
224 if (!(outbuff = sfreserve(fdout, 0, 0)) || (outsize = sfvalue(fdout)) < 0) in uniq()
H A Dwclib.c206 if (!(buff = (unsigned char*)sfreserve(fd, SF_UNBOUND, 0)) || (n = sfvalue(fd)) <= 0) in wc_count()
262 while ((cp = (unsigned char*)sfreserve(fd, SF_UNBOUND, 0)) && (c = sfvalue(fd)) > 0) in wc_count()
281 while ((cp = buff = (unsigned char*)sfreserve(fd, SF_UNBOUND, 0)) && (c = sfvalue(fd)) > 0) in wc_count()
353 while ((cp = buff = (unsigned char*)sfreserve(fd, SF_UNBOUND, 0)) && (c = sfvalue(fd)) > 0) in wc_count()
H A Dcmp.c169 if (!(p1 = (unsigned char*)sfreserve(f1, SF_UNBOUND, 0)) || (c1 = sfvalue(f1)) <= 0) in cmp()
175 if ((e2 - p2) > 0 || sfreserve(f2, SF_UNBOUND, 0) && sfvalue(f2) > 0) in cmp()
194 if (!(p2 = (unsigned char*)sfreserve(f2, SF_UNBOUND, 0)) || (c2 = sfvalue(f2)) <= 0) in cmp()
H A Dfold.c99 if (!(cp = sfgetr(in,'\n',-1)) || (n = sfvalue(in)) <= 0) in fold()
105 if(cols['\b']==0 && (n=sfvalue(in))<=width) in fold()
H A Dcksum.c202 e = p + sfvalue(ip); in pr()
227 sumblock(state->sum, p, sfvalue(ip)); in pr()
228 if (sfvalue(ip)) in pr()
H A Dcut.c271 len = sfvalue(fdin); in cutcols()
381 while ((bp = (unsigned char*)sfreserve(fdin, SF_UNBOUND, -1)) && (c = sfvalue(fdin)) > 0) in cutfields()
438 if (!(bp = (unsigned char*)sfreserve(fdin, SF_UNBOUND, -1)) || (c = sfvalue(fdin)) <= 0) in cutfields()
H A Dfmt.c245 …(splice = 0) && (lp = cp + sfvalue(fp->in) - 1) || (cp = sfgetr(fp->in, '\n', SF_LASTR)) && (splic… in dofmt()
H A Dtail.c673 …if ((s = sfreserve(fp->sp, z, SF_LOCKR)) || (z = sfvalue(fp->sp)) && (s = sfreserve(fp->sp, z, SF_… in b_tail()
675 z = sfvalue(fp->sp); in b_tail()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A D_sfvalue.c24 #undef sfvalue
27 ssize_t sfvalue(reg Sfio_t* f) in sfvalue() function
29 ssize_t sfvalue(f) in sfvalue()
H A Dsfpeek.c75 if((n = sfvalue(f)) > 0)
H A Dsfmove.c63 { r = sfvalue(fr);
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dread.c384 m = sfvalue(iop); in sh_readline()
388 m = (cp = sfreserve(iop,c,0)) ? sfvalue(iop) : 0; in sh_readline()
393 c = sfvalue(iop); in sh_readline()
394 m = (cp = sfreserve(iop,c,SF_LOCKR)) ? sfvalue(iop) : 0; in sh_readline()
485 c = sfvalue(iop); in sh_readline()
488 c = sfvalue(iop)+1; in sh_readline()
618 c = sfvalue(iop); in sh_readline()
620 c = sfvalue(iop)+1; in sh_readline()
708 c = sfvalue(iop); in sh_readline()
710 c = sfvalue(iop)+1; in sh_readline()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dtokline.c83 n = sfvalue(d->sp); in spliceline()
183 …else if ((p = sfreserve(f, 0, 0)) && sfvalue(f) > 11 && strmatch(p, "#!!! +([-0-9]) *([!\n]) !!!\n… in tokline()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/
H A Dmini.sym75 sfvalue
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/
H A Dhistory.c530 *(endbuff=(cp=buff)+sfvalue(hist_old->histfp)) = 0; in hist_trim()
569 n = sfvalue(iop); in hist_nearend()
644 n = sfvalue(hp->histfp); in hist_eof()
775 hp->histflush = sfvalue(hp->histfp)+1; in hist_flush()
1022 m = sfvalue(hp->histfp); in hist_match()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/
H A Dsfio.h317 extern ssize_t sfvalue _ARG_((Sfio_t*));
387 __INLINE__ ssize_t sfvalue(Sfio_t* f) { return __sf_value(f); } in sfvalue() function
410 #define sfvalue(f) ( __sf_value(f) )
/illumos-gate/usr/src/contrib/ast/src/cmd/msgcc/
H A Dmsggen.c413 t = s + sfvalue(mp); in main()
431 t = s + sfvalue(mp); in main()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Drecfmt.c159 size = sfvalue(sfstdin); in main()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Diconv.c212 n = sfvalue(sp) - 17; in _win_codeset()
1370 if (!(tb = (char*)sfreserve(op, -(tn + 1), SF_WRITE|SF_LOCKR)) || !(tn = sfvalue(op))) in _ast_iconv_write()
1475 if ((!(fb = (char*)sfreserve(ip, n, locked = SF_LOCKR)) || !(fo = sfvalue(ip))) && in _ast_iconv_move()
1476 (!(fb = (char*)sfreserve(ip, n, locked = 0)) || !(fo = sfvalue(ip)))) in _ast_iconv_move()
1487 tn = sfvalue(op); in _ast_iconv_move()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dfcin.c57 n = sfvalue(f); in fcfopen()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/
H A Dsfdcmore.c219 if ((s = sfgetr(sfstdin, '\n', 1)) && (n = sfvalue(sfstdin) - 1) > 0)

12