Lines Matching refs:disc
33 { Sfdisc_t disc; /* sfio discipline */
41 static ssize_t skwrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc)
43 static ssize_t skwrite(f, buf, n, disc)
47 Sfdisc_t* disc; /* discipline */
54 static ssize_t skread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc)
56 static ssize_t skread(f, buf, n, disc)
60 Sfdisc_t* disc; /* discipline */
68 sk = (Seek_t*)disc;
86 if((w = sfrd(f,buf,n,disc)) <= 0)
102 static Sfoff_t skseek(Sfio_t* f, Sfoff_t addr, int type, Sfdisc_t* disc)
104 static Sfoff_t skseek(f, addr, type, disc)
108 Sfdisc_t* disc;
116 sk = (Seek_t*)disc;
145 if((r = sfrd(f,buf,w,disc)) <= 0)
164 static int skexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc)
166 static int skexcept(f,type,data,disc)
170 Sfdisc_t* disc;
175 sk = (Seek_t*)disc;
182 free(disc);
211 sk->disc.readf = skread;
212 sk->disc.writef = skwrite;
213 sk->disc.seekf = skseek;
214 sk->disc.exceptf = skexcept;