Searched refs:sfreserve (Results 1 - 25 of 33) sorted by relevance

12

/osnet-11/usr/src/lib/libast/common/stdio/
H A Dvfwprintf.c52 if (w = (wchar_t*)sfreserve(f, n * sizeof(wchar_t) + 1, 0))
/osnet-11/usr/src/lib/libcmd/common/
H A Dasa.c69 cp = sfreserve(in,n=reclen, -1);
H A Dcmp.c169 if (!(p1 = (unsigned char*)sfreserve(f1, SF_UNBOUND, 0)) || (c1 = sfvalue(f1)) <= 0)
175 if ((e2 - p2) > 0 || sfreserve(f2, SF_UNBOUND, 0) && sfvalue(f2) > 0)
194 if (!(p2 = (unsigned char*)sfreserve(f2, SF_UNBOUND, 0)) || (c2 = sfvalue(f2)) <= 0)
H A Dcat.c112 if (!(r = sfreserve(sp, 4, f)))
113 r = sfreserve(sp, n, f);
403 Reserve_f reserve = sfreserve;
441 reserve = opt_info.num ? regress : sfreserve;
H A Dwclib.c206 if (!(buff = (unsigned char*)sfreserve(fd, SF_UNBOUND, 0)) || (n = sfvalue(fd)) <= 0)
262 while ((cp = (unsigned char*)sfreserve(fd, SF_UNBOUND, 0)) && (c = sfvalue(fd)) > 0)
281 while ((cp = buff = (unsigned char*)sfreserve(fd, SF_UNBOUND, 0)) && (c = sfvalue(fd)) > 0)
353 while ((cp = buff = (unsigned char*)sfreserve(fd, SF_UNBOUND, 0)) && (c = sfvalue(fd)) > 0)
H A Dcut.c267 bp = sfreserve(fdin, len, -1);
383 while ((bp = (unsigned char*)sfreserve(fdin, SF_UNBOUND, -1)) && (c = sfvalue(fdin)) > 0)
440 if (!(bp = (unsigned char*)sfreserve(fdin, SF_UNBOUND, -1)) || (c = sfvalue(fdin)) <= 0)
H A Dtail.c179 if (!(s = sfreserve(fp, n, SF_LOCKR)))
653 if ((s = sfreserve(fp->sp, z, SF_LOCKR)) || (z = sfvalue(fp->sp)) && (s = sfreserve(fp->sp, z, SF_LOCKR)) && (i = 1))
H A Dcksum.c200 while (p = sfreserve(ip, SF_UNBOUND, 0))
226 while (p = sfreserve(ip, SF_UNBOUND, 0))
H A Dtr.c440 if (!(inbuff = (unsigned char*)sfreserve(ip, SF_UNBOUND, SF_LOCKR)))
475 if (!(outbuff = (unsigned char*)sfreserve(op, (ncopy < 0) ? SF_UNBOUND : (ncopy - nwrite), SF_LOCKR)))
H A Duniq.c224 if (!(outbuff = sfreserve(fdout, 0, 0)) || (outsize = sfvalue(fdout)) < 0)
H A Dgrep.c276 while (s = (char*)sfreserve(f, SF_UNBOUND, SF_LOCKR))
470 if (!(s = sfreserve(input, SF_UNBOUND, 0)) || (len = sfvalue(input)) <= 0)
516 if (!(s = sfreserve(input, SF_UNBOUND, 0)))
/osnet-11/usr/src/lib/libast/common/sfio/
H A Dsfpeek.c25 ** This function is obsolete. sfreserve() should be used.
70 *bp = sfreserve(f, sz <= 0 ? 0 : sz > f->size ? f->size : sz, 0);
H A Dsfreserve.c30 Void_t* sfreserve(Sfio_t* f, ssize_t size, int type) function
32 Void_t* sfreserve(f,size,type)
144 { /* sfreserve(f,0,0) == sfread(f, sfreserve(f,-1,SF_LOCKR), 0) */
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dfcin.c48 if(!(buff=(char*)sfreserve(f,SF_UNBOUND,SF_LOCKR)))
61 buff = (char*)sfreserve(f,SF_UNBOUND,SF_LOCKR);
71 * If _Fcin.fclast!=0, performs an sfreserve() for the next buffer.
H A Dmain.c556 if(tdone || !sfreserve(iop,0,0))
603 && !sfreserve(iop,0,0))
/osnet-11/usr/src/lib/libast/common/misc/
H A Drecfmt.c154 if (!(s = sfreserve(sfstdin, SF_UNBOUND, 0)))
/osnet-11/usr/src/lib/libshell/common/bltins/
H A Dread.c165 if(r && (shp->prompt=(char*)sfreserve(sfstderr,r,SF_LOCKR)))
343 cp = sfreserve(iop,0,0);
353 cp = sfreserve(iop,c,SF_LOCKR);
360 m = (cp = sfreserve(iop,c,0)) ? sfvalue(iop) : 0;
366 m = (cp = sfreserve(iop,c,SF_LOCKR)) ? sfvalue(iop) : 0;
/osnet-11/usr/src/lib/libpp/common/
H A Dppinput.c526 if (!(t = sfreserve(sp, 22, 0)))
537 if (!(s = sfreserve(sp, n - index_offset, 0)))
630 if (!(s = sfreserve(sp, index_offset - macro_offset, 0)))
/osnet-11/usr/src/lib/libshell/common/edit/
H A Dhistory.c524 if(!(buff=(char*)sfreserve(hist_old->histfp,SF_UNBOUND,0)))
563 while(cp=buff=(unsigned char*)sfreserve(iop,SF_UNBOUND,SF_LOCKR))
638 while(cp=(char*)sfreserve(hp->histfp,SF_UNBOUND,0))
769 if(buff=(char*)sfreserve(hp->histfp,0,SF_LOCKR))
/osnet-11/usr/src/lib/libast/amd64/include/ast/
H A Dsfio.h159 /* for sfgetr/sfreserve to hold a record */
239 extern Void_t* sfreserve _ARG_((Sfio_t*, ssize_t, int));
444 (sfreserve((f),(n),SF_WRITE|SF_LOCKR), sfwrite((f),(f)->_next,0), \
/osnet-11/usr/src/lib/libast/common/include/
H A Dsfio.h159 /* for sfgetr/sfreserve to hold a record */
239 extern Void_t* sfreserve _ARG_((Sfio_t*, ssize_t, int));
444 (sfreserve((f),(n),SF_WRITE|SF_LOCKR), sfwrite((f),(f)->_next,0), \
/osnet-11/usr/src/lib/libast/i386/include/ast/
H A Dsfio.h159 /* for sfgetr/sfreserve to hold a record */
239 extern Void_t* sfreserve _ARG_((Sfio_t*, ssize_t, int));
444 (sfreserve((f),(n),SF_WRITE|SF_LOCKR), sfwrite((f),(f)->_next,0), \
/osnet-11/usr/src/lib/libast/sparc/include/ast/
H A Dsfio.h159 /* for sfgetr/sfreserve to hold a record */
239 extern Void_t* sfreserve _ARG_((Sfio_t*, ssize_t, int));
444 (sfreserve((f),(n),SF_WRITE|SF_LOCKR), sfwrite((f),(f)->_next,0), \
/osnet-11/usr/src/lib/libast/sparcv9/include/ast/
H A Dsfio.h159 /* for sfgetr/sfreserve to hold a record */
239 extern Void_t* sfreserve _ARG_((Sfio_t*, ssize_t, int));
444 (sfreserve((f),(n),SF_WRITE|SF_LOCKR), sfwrite((f),(f)->_next,0), \
/osnet-11/usr/src/lib/libast/common/comp/
H A Diconv.c1370 if (!(tb = (char*)sfreserve(op, -(tn + 1), SF_WRITE|SF_LOCKR)) || !(tn = sfvalue(op)))
1475 if ((!(fb = (char*)sfreserve(ip, n, locked = SF_LOCKR)) || !(fo = sfvalue(ip))) &&
1476 (!(fb = (char*)sfreserve(ip, n, locked = 0)) || !(fo = sfvalue(ip))))
1480 if (!(tb = (char*)sfreserve(op, SF_UNBOUND, SF_WRITE|SF_LOCKR)))

Completed in 1112 milliseconds

12