Home
last modified time | relevance | path

Searched refs:SF_UNBOUND (Results 1 – 25 of 45) sorted by relevance

12

/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dcat.c190 if (!(nxt = (unsigned char*)(*reserve)(ip, SF_UNBOUND, 0))) in vcat()
274 if (!(nxt = (unsigned char*)(*reserve)(ip, SF_UNBOUND, 0))) in vcat()
351 if (!(nxt = (unsigned char*)(*reserve)(ip, SF_UNBOUND, 0))) in vcat()
536 else if (sfmove(fp, sfstdout, SF_UNBOUND, -1) >= 0 && sfeof(fp)) in b_cat()
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 Drevlib.c49 if(sfmove(in, tmp, SF_UNBOUND, -1) < 0 || !sfeof(in) || sferror(tmp)) in rev_line()
H A Dhead.c149 …delim >= 0 && moved < keep && sfmove(fp, sfstdout, SF_UNBOUND, -1) < 0 && !ERROR_PIPE(errno) && er… in b_head()
H A Dtail.c671 z = fp->fifo ? SF_UNBOUND : st.st_size - fp->cur; in b_tail()
770 sfmove(ip, sfstdout, SF_UNBOUND, -1); in b_tail()
782 sfmove(ip, sfstdout, SF_UNBOUND, -1); in b_tail()
H A Dtee.c198 …if ((sfmove(sfstdin, sfstdout, SF_UNBOUND, -1) < 0 || !sfeof(sfstdin)) && !ERROR_PIPE(errno) && er… in b_tee()
H A Dcksum.c200 while (p = sfreserve(ip, SF_UNBOUND, 0)) in pr()
226 while (p = sfreserve(ip, SF_UNBOUND, 0)) in pr()
H A Dcut.c381 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 Dcp.c607 if (!(ip = sfnew(NiL, NiL, SF_UNBOUND, rfd, SF_READ))) in visit()
614 if (!(op = sfnew(NiL, NiL, SF_UNBOUND, wfd, SF_WRITE))) in visit()
622 if (sfmove(ip, op, (Sfoff_t)SF_UNBOUND, -1) < 0) in visit()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfnew.c73 if(f->data && ((flags&SF_STRING) || size != (size_t)SF_UNBOUND) )
116 if(size != (size_t)SF_UNBOUND)
H A Dsfsetbuf.c179 size = (size_t)SF_UNBOUND;
210 (size == (size_t)SF_UNBOUND || !buf))
331 if(size == (size_t)SF_UNBOUND)
344 if(size == (size_t)SF_UNBOUND)
H A D_sfopen.c95 file ? (size_t)strlen((char*)file) : (size_t)SF_UNBOUND,
138 if((f = sfnew(f,NIL(char*),(size_t)SF_UNBOUND,fd,sflags)) && oldfd >= 0)
H A Dsfpopen.c171 if (!(f = sfnew(f, NIL(Void_t*), (size_t)SF_UNBOUND,
225 …if(!(f = sfnew(f,NIL(Void_t*),(size_t)SF_UNBOUND,parent[pkeep],sflags|((sflags&SF_RDWR)?0:SF_READ)…
H A Dsfprintf.c70 f = sfnew(NIL(Sfio_t*),NIL(char*),(size_t)SF_UNBOUND, -1,SF_WRITE|SF_STRING);
H A Dsfprints.c45 f = sfnew(NIL(Sfio_t*),NIL(char*),(size_t)SF_UNBOUND, -1,SF_WRITE|SF_STRING);
H A Dsfungetc.c76 { if(!(uf = sfnew(NIL(Sfio_t*),NIL(char*),(size_t)SF_UNBOUND,
H A Dsftmp.c317 sf = sfnew(&newf,NIL(Void_t*),(size_t)SF_UNBOUND,fd,SF_READ|SF_WRITE);
399 if(s != (size_t)SF_UNBOUND) /* set up a discipline for out-of-bound, etc. */
H A Dsfmode.c410 sfsetbuf(f,(Void_t*)f->tiny,(size_t)SF_UNBOUND);
570 (void)SFSETBUF(f,(Void_t*)f->tiny,(size_t)SF_UNBOUND);
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dfcin.c48 if(!(buff=(char*)sfreserve(f,SF_UNBOUND,SF_LOCKR))) in fcfopen()
61 buff = (char*)sfreserve(f,SF_UNBOUND,SF_LOCKR); in fcfopen()
H A Dshcomp.c171 sfmove(in,out,SF_UNBOUND,-1); in main()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/stdio/
H A Dfdopen.c33 return sfnew(NiL, NiL, (size_t)SF_UNBOUND, fd, flags); in fdopen()
H A Dvsnprintf.c33 if(!(f = sfnew(NIL(Sfio_t*),NIL(char*),(size_t)SF_UNBOUND, in vsnprintf()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Drecfmt.c154 if (!(s = sfreserve(sfstdin, SF_UNBOUND, 0))) in main()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/
H A Dsfdcsubstr.c191 …if (!(sp = f) && !(sp = sfnew(NIL(Sfio_t*), NIL(Void_t*), (size_t)SF_UNBOUND, dup(sffileno(parent)…

12