Searched defs:rc (Results 1 - 14 of 14) sorted by relevance

/ast/src/lib/libast/sfio/
H A Dsffilbuf.c43 reg int first, local, rcrv, rc, justseek; local
52 rc = f->getr;
104 f->getr = rc;
H A Dsfgetr.c31 char* sfgetr(Sfio_t *f, int rc, int type) argument
33 char* sfgetr(f,rc,type)
35 int rc; /* record separator */
47 if(rc < 0 || (f->mode != SF_READ && _sfmode(f,SF_READ,0) < 0) )
77 f->getr = rc;
88 { s = ends[-1] == rc ? ends-1 : ends;
95 if(!(s = (uchar*)memchr((char*)s,rc,n)))
98 while(*s != rc)
149 if(found && rc != 0 && (type&SF_STRING) )
152 { f->getr = rc;
[all...]
H A Dsfputr.c29 ssize_t sfputr(Sfio_t* f, const char* s, int rc) argument
31 ssize_t sfputr(f,s,rc)
34 int rc; /* record separator. */
50 for(w = 0; (*s || rc >= 0); )
55 f->val = sn + (rc >= 0 ? 1 : 0); /* space requirement */
67 if(p >= (n + (rc < 0 ? 0 : 1)) )
74 if(rc >= 0)
75 { *ps++ = rc;
84 p = n + (rc >= 0 ? 1 : 0);
90 if(rc >
[all...]
H A Dsfmove.c34 Sfoff_t sfmove(Sfio_t* fr, Sfio_t* fw, Sfoff_t n, reg int rc) argument
36 Sfoff_t sfmove(fr,fw,n,rc)
40 reg int rc; /* record separator */
59 if(rc >= 0) /* moving records, let sfgetr() deal with record reading */
60 { if(!(cp = (uchar*)sfgetr(fr,rc,0)) )
H A Dsfpkrd.c40 ssize_t sfpkrd(int fd, Void_t* argbuf, size_t n, int rc, long tm, int action) argument
42 ssize_t sfpkrd(fd, argbuf, n, rc, tm, action)
46 int rc; /* record character */
48 int action; /* >0: peeking, if rc>=0, get action records,
49 <0: no peeking, if rc>=0, get -action records,
50 =0: no peeking, if rc>=0, must get a single record
58 if(rc < 0 && tm < 0 && action <= 0)
61 t = (action > 0 || rc >= 0) ? (STREAM_PEEK|SOCKET_PEEK) : 0;
130 ((t&STREAM_PEEK) && rc >= 0) ||
213 { if(action <= 0 && rc <
[all...]
/ast/src/cmd/tests/aso/
H A Dtaso.c24 unsigned char vc, rc; local
33 if ((rc = asocaschar(&vc, 1, 2)) != 1)
34 terror("asocaschar return value failed -- expected %d, got %d", 1, rc);
37 else if ((rc = asocaschar(&vc, 1, 3)) != 2)
38 terror("asocaschar return value failed -- expected %d, got %d", 2, rc);
41 if ((rc = asoincchar(&vc)) != 2)
42 terror("asoincchar return failed -- expected %d, got %d", 2, rc);
45 if ((rc = asodecchar(&vc)) != 3)
46 terror("asodecchar return failed -- expected %d, got %d", 3, rc);
/ast/src/lib/libexpr/
H A Dexeval.c527 register int rc; local
529 while ((lc = *l++) && (rc = *r++))
530 sfputc(ex->tmp, lc == rc ? lc : ' ');
/ast/src/lib/libjcl/
H A Djcllib.h67 int rc; member in struct:Rc_s
137 int rc; \
H A Dparse.c1624 int rc; local
1632 if ((rc = eval(jcl, s + 1, e, 99)) < 0)
1633 return rc;
1646 rc = (int)strtol(s, e, 10);
1650 rc = 0;
1663 if (p->rc < 0)
1666 rc = 0;
1671 rc = p->rc;
1677 rc
2295 jclrc(register Jcl_t* jcl, register Jclstep_t* step, int rc) argument
[all...]
/ast/src/lib/libvcodex/Vchuff/
H A Dvchuffpart.c120 double le, lc, rc, cost; local
148 rc = pt->ctab + (size-p)*vclog(size-p) - re;
149 if((lc + rc) < cost)
/ast/src/lib/libvcodex/Vcmisc/
H A Dvcrle.c140 ssize_t c, rc, rz; local
148 { for(rc = rz = -1; dt < enddt; ++dt)
150 { if(c == rc)
155 if(rc == 0)
161 rc = c; rz = 0;
167 if(rc == 0)
172 rc = rz = -1;
182 if(rc == 0)
/ast/src/lib/libast/misc/
H A Dmime.c384 register int rc; local
406 rc = *rv;
419 if (rc)
427 *rv = rc;
/ast/src/cmd/re/
H A Dsed1.c286 rc(Text *script, Text *t) function
304 rc(script, t);
670 pc,qc,rc,sc,tc,xx,xx,wc,xc,yc,xx,Lc,xx,Rc,xx,xx /* p-y{} */
/ast/src/lib/libast/regex/
H A Dregcomp.c1434 int rc; local
1537 ce = col(ce, ic, rp, rw, rc, NiL, 0, 0);
1567 ce = col(ce, ic, rp, rw, rc, NiL, 0, 0);
1605 ce = col(ce, ic, rp, rw, rc, NiL, 0, 0);
1693 ce = col(ce, ic, rp, rw, rc, pp, w, c);
1706 ce = col(ce, ic, rp, rw, rc, NiL, 0, 0);
1711 rc = c;

Completed in 265 milliseconds