/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | cat.c | 190 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 D | wclib.c | 206 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 D | cmp.c | 169 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 D | revlib.c | 49 if(sfmove(in, tmp, SF_UNBOUND, -1) < 0 || !sfeof(in) || sferror(tmp)) in rev_line()
|
H A D | head.c | 149 …delim >= 0 && moved < keep && sfmove(fp, sfstdout, SF_UNBOUND, -1) < 0 && !ERROR_PIPE(errno) && er… in b_head()
|
H A D | tail.c | 671 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 D | tee.c | 198 …if ((sfmove(sfstdin, sfstdout, SF_UNBOUND, -1) < 0 || !sfeof(sfstdin)) && !ERROR_PIPE(errno) && er… in b_tee()
|
H A D | cksum.c | 200 while (p = sfreserve(ip, SF_UNBOUND, 0)) in pr() 226 while (p = sfreserve(ip, SF_UNBOUND, 0)) in pr()
|
H A D | cut.c | 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 D | cp.c | 607 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 D | sfnew.c | 73 if(f->data && ((flags&SF_STRING) || size != (size_t)SF_UNBOUND) ) 116 if(size != (size_t)SF_UNBOUND)
|
H A D | sfsetbuf.c | 179 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.c | 95 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 D | sfpopen.c | 171 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 D | sfprintf.c | 70 f = sfnew(NIL(Sfio_t*),NIL(char*),(size_t)SF_UNBOUND, -1,SF_WRITE|SF_STRING);
|
H A D | sfprints.c | 45 f = sfnew(NIL(Sfio_t*),NIL(char*),(size_t)SF_UNBOUND, -1,SF_WRITE|SF_STRING);
|
H A D | sfungetc.c | 76 { if(!(uf = sfnew(NIL(Sfio_t*),NIL(char*),(size_t)SF_UNBOUND,
|
H A D | sftmp.c | 317 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 D | sfmode.c | 410 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 D | fcin.c | 48 if(!(buff=(char*)sfreserve(f,SF_UNBOUND,SF_LOCKR))) in fcfopen() 61 buff = (char*)sfreserve(f,SF_UNBOUND,SF_LOCKR); in fcfopen()
|
H A D | shcomp.c | 171 sfmove(in,out,SF_UNBOUND,-1); in main()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/stdio/ |
H A D | fdopen.c | 33 return sfnew(NiL, NiL, (size_t)SF_UNBOUND, fd, flags); in fdopen()
|
H A D | vsnprintf.c | 33 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 D | recfmt.c | 154 if (!(s = sfreserve(sfstdin, SF_UNBOUND, 0))) in main()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/ |
H A D | sfdcsubstr.c | 191 …if (!(sp = f) && !(sp = sfnew(NIL(Sfio_t*), NIL(Void_t*), (size_t)SF_UNBOUND, dup(sffileno(parent)…
|