Searched defs:rv (Results 1 - 25 of 53) sorted by relevance

123

/ast/src/lib/libast/sfio/
H A Dsfclrlock.c37 int rv; local
60 rv = (f->mode&SF_PUSH) ? 0 : (f->flags&SF_FLAGS);
62 SFMTXRETURN(f, rv);
H A Dsfset.c38 reg int oflags, tflags, rv; local
53 rv = _sfmode(f,oflags,0);
56 if(rv < 0)
H A Dsfclose.c36 reg int local, ex, rv; local
63 rv = 0;
68 rv = sfsync(f);
127 { rv = -1;
148 rv = _sfpclose(f);
161 { rv = ex;
177 return rv;
H A Dsfprintf.c37 reg int rv; local
48 rv = sfvprintf(f,form,args);
51 return rv;
65 ssize_t rv; local
75 if((rv = sfvprintf(f,form,args)) < 0 )
78 { if((rv+1) >= n)
81 n = rv;
88 _Sfi = rv;
90 return rv;
101 ssize_t rv; local
[all...]
H A Dsfscanf.c37 reg int rv; local
49 rv = (f && form) ? sfvscanf(f,form,args) : -1;
51 return rv;
88 reg int rv; local
99 rv = (s && form) ? sfvsscanf(s,form,args) : -1;
101 return rv;
H A Dsfwalk.c40 int n, rv; local
50 for(rv = 0, p = &_Sfpool; p; p = p->next)
57 if((rv = (*walkf)(f, data)) < 0)
58 return rv;
66 return rv;
H A Dsfprints.c39 reg int rv; local
52 rv = sfvprintf(f,form,args);
54 if(rv < 0 || sfputc(f,'\0') < 0)
H A Dsfraise.c39 int n, rv; local
41 rv = 0;
50 rv -= 1;
53 return rv;
66 reg int local, rv; local
90 if((rv = (*disc->exceptf)(f,type,data,disc)) != 0 )
91 SFMTXRETURN(f, rv);
H A Dsfsync.c38 reg int n, rv; local
43 { rv = nsync = count = 0;
69 rv = -1;
79 return rv;
89 int local, rv, mode, lock; local
103 rv = 0;
110 { rv = -1;
134 rv = -1;
171 SFMTXRETURN(origf, rv);
H A Dsfwr.c167 { reg int rv; local
170 if((rv = _sfexcept(f,SF_WRITE,n,dc)) > 0)
171 n = rv;
172 else if(rv < 0)
174 SFMTXRETURN(f, rv);
H A Dsfpool.c109 reg int rv; local
121 rv = -1;
160 rv = 0;
165 POOLMTXRETURN(p,rv);
256 Sfio_t* rv; local
299 rv = NIL(Sfio_t*);
310 { rv = f; /* just return self */
318 rv = pf;
319 else rv = pf->pool->sf[0]; /* return head of old pool */
357 rv
[all...]
H A Dsfrd.c124 { reg int rv; local
127 if((rv = _sfexcept(f,SF_READ,n,dc)) > 0)
128 n = rv;
129 else if(rv < 0)
131 SFMTXRETURN(f, (ssize_t)rv);
/ast/src/lib/librecsort/
H A Drsclose.c35 reg int rv; local
38 if ((rv = RSNOTIFY(rs,RS_CLOSE,0,0,rs->disc)) < 0)
39 return rv;
/ast/src/lib/libast/vmalloc/
H A Dvmwalk.c45 reg int rv = 0; local
52 if((rv = (*segf)(vm, seg->addr, seg->extent, vm->disc, handle)) < 0 )
61 if((rv = (*segf)(vm, seg->addr, seg->extent, vm->disc, handle)) < 0 )
66 return rv;
H A Dvmclose.c45 int mode, rv = 0; local
51 (rv = (*vm->disc->exceptf)(vm,VM_CLOSE,(Void_t*)1,vm->disc)) < 0 )
69 if(rv == 0) /* deallocate memory obtained from the system */
/ast/src/lib/libvcodex/
H A Dvcdisc.c36 int rv; local
48 rv = 0;
49 else rv = (*vc->meth->eventf)(vc, VC_DISC, (Void_t*)disc);
51 if(rv < 0)
53 else if(rv == 0) /* install discipline */
/ast/src/lib/libast/stdio/
H A Dvsnprintf.c30 ssize_t rv; local
37 if((rv = sfvprintf(f,form,args)) >= 0 )
39 { if((rv+1) >= n)
42 n = rv;
46 _Sfi = rv;
51 return rv;
/ast/src/lib/libast/tm/
H A Dtvsleep.c51 * with remaining time in rv
55 tvsleep(register const Tv_t* tv, register Tv_t* rv) argument
66 if ((r = nanosleep(&stv, &srv)) && rv)
68 rv->tv_sec = srv.tv_sec;
69 rv->tv_nsec = srv.tv_nsec;
83 if (rv)
84 *rv = *tv;
87 if (rv)
89 rv->tv_sec = stv.tv_sec;
90 rv
[all...]
/ast/src/cmd/tests/sfio/
H A Dterrno.c30 int rv; local
42 if((rv = sfwrite(fr, "a", 1)) == 1)
43 terror("sfwrite returns %d, expecting 1", rv);
45 twarn("Wrong errno %d after sfwrite(%d), expecting %d",errno,rv,EBADF);
H A Dtclose.c51 { int i, n, rv; local
57 if((rv = sfputr(sfstdout, s, '\n')) != sfvalue(sfstdin))
58 terror("Failed to write rv=%d stdin=%d",
59 rv, sfvalue(sfstdin));
/ast/src/lib/libast/cdt/
H A Ddtwalk.c41 int rv; local
47 if((rv = (*userf)(walk, obj, data )) < 0)
48 return rv;
/ast/src/cmd/mailx/port/
H A Ddtwalk.c88 reg int rv; local
94 if((rv = (*userf)(walk, obj, data )) < 0)
95 return rv;
/ast/src/lib/libvcodex/Vcwindow/
H A Dvcwmethod.c73 int i, rv; local
79 { rv = (*walkf)((Void_t*)_Vcwmethods[i],
81 if(rv < 0)
82 return rv;
/ast/src/lib/libast/misc/
H A Dftwalk.c58 register int rv; local
88 rv = (*userf)((Ftw_t*)e);
90 return rv;
92 rv = 0;
106 rv = (*userf)((Ftw_t*)e->parent);
114 while (!rv && (e = fts_read(f)))
147 rv = (*userf)((Ftw_t*)e);
155 return rv;
/ast/src/cmd/tests/vmalloc/
H A Dtsafemalloc.c89 int i, rv; local
101 { if((rv = pthread_create(&th[i], NULL, allocate, (void*)((long)i))) != 0 )
107 { if((rv = pthread_join(th[i], &status)) != 0 )

Completed in 357 milliseconds

123