Searched refs:Sfdisc_t (Results 1 - 25 of 90) sorted by relevance

1234

/ast/src/lib/libcodex/
H A Dcodexnull.c32 nullread(Sfio_t* f, void* buf, size_t n, Sfdisc_t* disc)
38 nullwrite(Sfio_t* f, const void* buf, size_t n, Sfdisc_t* disc)
43 static Sfdisc_t nulldisc = { nullread, nullwrite };
/ast/src/lib/libast/disc/
H A Dsfdcslow.c31 static int slowexcept(Sfio_t* f, int type, Void_t* v, Sfdisc_t* disc)
37 Sfdisc_t* disc;
67 Sfdisc_t* disc;
69 if(!(disc = (Sfdisc_t*)malloc(sizeof(Sfdisc_t))) )
H A Dsfdctee.c33 { Sfdisc_t disc; /* the sfio discipline structure */
40 static ssize_t teewrite(Sfio_t* f, const Void_t* buf, size_t size, Sfdisc_t* disc)
46 Sfdisc_t* disc; /* the tee discipline */
61 static int teeexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc)
67 Sfdisc_t* disc;
96 if(sfdisc(f,(Sfdisc_t*)te) != (Sfdisc_t*)te)
H A Dsfdcfilter.c31 { Sfdisc_t disc; /* discipline structure */
40 static ssize_t filterread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc)
46 Sfdisc_t* disc; /* discipline */
101 static ssize_t filterwrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc)
107 Sfdisc_t* disc; /* discipline */
115 static Sfoff_t filterseek(Sfio_t* f, Sfoff_t addr, int offset, Sfdisc_t* disc)
121 Sfdisc_t* disc;
126 disc = NIL(Sfdisc_t*);
132 static int filterexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc)
138 Sfdisc_t* dis
[all...]
H A Dsfdcsubstr.c34 Sfdisc_t disc; /* sfio discipline */
42 static ssize_t streamio(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc, int type)
48 Sfdisc_t* disc;
86 static ssize_t streamwrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc)
92 Sfdisc_t* disc;
99 static ssize_t streamread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc)
105 Sfdisc_t* disc;
112 static Sfoff_t streamseek(Sfio_t* f, Sfoff_t pos, int type, Sfdisc_t* disc)
118 Sfdisc_t* disc;
157 static int streamexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* dis
[all...]
H A Dsfdcprefix.c35 Sfdisc_t disc; /* sfio discipline */
47 static ssize_t pfxwrite(Sfio_t* f, const Void_t* buf, register size_t n, Sfdisc_t* dp)
53 Sfdisc_t* dp;
95 static int pfxexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* dp)
101 Sfdisc_t* dp;
H A Dsfdcseekable.c33 { Sfdisc_t disc; /* sfio discipline */
41 static ssize_t skwrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc)
47 Sfdisc_t* disc; /* discipline */
54 static ssize_t skread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc)
60 Sfdisc_t* disc; /* discipline */
102 static Sfoff_t skseek(Sfio_t* f, Sfoff_t addr, int type, Sfdisc_t* disc)
108 Sfdisc_t* disc;
164 static int skexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc)
170 Sfdisc_t* disc;
220 if(sfdisc(f, (Sfdisc_t*)s
[all...]
H A Dsfdcunion.c40 Sfdisc_t disc; /* discipline structure */
49 static ssize_t unwrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc)
55 Sfdisc_t* disc; /* discipline */
62 static ssize_t unread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc)
68 Sfdisc_t* disc; /* discipline */
95 static Sfoff_t unseek(Sfio_t* f, Sfoff_t addr, int type, Sfdisc_t* disc)
101 Sfdisc_t* disc;
148 static int unexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc)
154 Sfdisc_t* disc;
197 if(sfdisc(f,(Sfdisc_t*)u
[all...]
H A Dsfdcdio.c35 { Sfdisc_t disc; /* Sfio discipline */
105 static ssize_t dioread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc)
111 Sfdisc_t* disc;
118 static ssize_t diowrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc)
124 Sfdisc_t* disc;
131 static int dioexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc)
137 Sfdisc_t* disc;
218 if(sfdisc(f,(Sfdisc_t*)di) != (Sfdisc_t*)di)
/ast/src/cmd/tests/sfio/
H A Dtnoseek.c27 Sfoff_t discseek(Sfio_t* f, Sfoff_t offset, int type, Sfdisc_t* disc)
33 Sfdisc_t* disc;
40 ssize_t discwrite(Sfio_t* f, const Void_t* s, size_t n, Sfdisc_t* disc)
46 Sfdisc_t* disc;
55 Sfdisc_t seekable = { (Sfread_f)0, discwrite, discseek, (Sfexcept_f)0 };
72 if(sfdisc(sfstdout,NIL(Sfdisc_t*)) != &seekable)
H A Dtdisc.c23 ssize_t upper(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc)
29 Sfdisc_t* disc;
47 ssize_t wupper(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc)
53 Sfdisc_t* disc;
69 ssize_t lower(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc)
75 Sfdisc_t* disc;
93 ssize_t once(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc)
99 Sfdisc_t* disc;
117 ssize_t external(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc)
123 Sfdisc_t* dis
[all...]
H A Dtalign.c26 ssize_t readf(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc)
32 Sfdisc_t* disc;
40 Sfdisc_t Disc = {readf, (Sfwrite_f)0, (Sfseek_f)0, (Sfexcept_f)0, (Sfdisc_t*)0};
H A Dtwhole.c26 ssize_t writef(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc)
32 Sfdisc_t* disc;
41 Sfdisc_t Disc = {(Sfread_f)0, writef, (Sfseek_f)0, (Sfexcept_f)0, (Sfdisc_t*)0};
H A Dtexcept.c26 static int except(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc)
32 Sfdisc_t* disc;
53 static int except2(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc)
59 Sfdisc_t* disc;
65 static int except3(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc)
71 Sfdisc_t* disc;
80 static ssize_t readfunc(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc)
86 Sfdisc_t* disc;
94 static Sfdisc_t Disc, Disc2;
127 sfdisc(f,NIL(Sfdisc_t*));
[all...]
H A Dttell.c23 static ssize_t discread(Sfio_t* f, void* buf, size_t n, Sfdisc_t* disc)
29 Sfdisc_t* disc;
36 static ssize_t discwrite(Sfio_t* f, const void* buf, size_t n, Sfdisc_t* disc)
42 Sfdisc_t* disc;
49 static Sfoff_t discseek(Sfio_t* f, Sfoff_t offset, int type, Sfdisc_t* disc)
55 Sfdisc_t* disc;
61 Sfdisc_t Disc1 = { discread, discwrite };
62 Sfdisc_t Disc2 = { discread, discwrite };
63 Sfdisc_t Disc3 = { discread, discwrite };
H A Dtalarm.c50 int exceptf(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc)
56 Sfdisc_t* disc;
71 Sfdisc_t Disc = {NIL(Sfread_f), NIL(Sfwrite_f), NIL(Sfseek_f), exceptf};
109 sfdisc(sfstdin, NIL(Sfdisc_t*)); /* pop discipline */
H A Dtrcrv.c23 ssize_t myread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc)
29 Sfdisc_t* disc;
35 Sfdisc_t Disc = {myread, NIL(Sfwrite_f), NIL(Sfseek_f), NIL(Sfexcept_f)};
H A Dtscanf1.c28 Sfdisc_t disc;
33 static ssize_t oneread(Sfio_t* f, Void_t* buf, size_t size, Sfdisc_t* disc)
39 Sfdisc_t* disc;
H A Dtsync.c25 static int except(Sfio_t* f, int type, Void_t* arg, Sfdisc_t* disc)
31 Sfdisc_t* disc;
38 Sfdisc_t Disc = { NIL(Sfread_f), NIL(Sfwrite_f), NIL(Sfseek_f), except };
43 Sfdisc_t disc;
47 int event(Sfio_t* f, int type, Void_t* arg, Sfdisc_t* disc)
53 Sfdisc_t* disc;
62 ssize_t newline(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc)
68 Sfdisc_t* disc;
87 Mydisc_t Mydisc = {{(Sfread_f)0, newline, (Sfseek_f)0, event, (Sfdisc_t*)0}, 0};
164 sfdisc(f1,NIL(Sfdisc_t*));
[all...]
/ast/src/cmd/codexlib/zip/
H A Dreduce.c22 reduce_read(Sfio_t* sp, void* buf, size_t n, Sfdisc_t* disc)
H A Dshrink.c22 shrink_read(Sfio_t* sp, void* buf, size_t n, Sfdisc_t* disc)
/ast/src/lib/libast/sfio/
H A Dsfextern.c52 NIL(Sfdisc_t*)
79 (SF_READ |SF_STATIC|SF_STDSAFE),NIL(Sfdisc_t*),SFMTXIN);
81 (SF_WRITE|SF_STATIC|SF_STDSAFE),NIL(Sfdisc_t*),SFMTXOUT);
83 (SF_WRITE|SF_STATIC|SF_STDSAFE),NIL(Sfdisc_t*),SFMTXERR);
H A Dsfdisc.c45 { Sfdisc_t disc;
51 static int _dccaexcept(Sfio_t* f, int type, Void_t* val, Sfdisc_t* disc)
57 Sfdisc_t* disc;
66 static ssize_t _dccaread(Sfio_t* f, Void_t* buf, size_t size, Sfdisc_t* disc)
72 Sfdisc_t* disc;
76 Sfdisc_t *prev;
107 Sfdisc_t* sfdisc(Sfio_t* f, Sfdisc_t* disc)
109 Sfdisc_t* sfdisc(f,disc)
111 Sfdisc_t* dis
[all...]
/ast/src/lib/libast/stdio/
H A Dvfwscanf.c28 Sfdisc_t sfdisc; /* sfio discipline */
39 wideexcept(Sfio_t* f, int op, void* val, Sfdisc_t* dp)
65 wideread(Sfio_t* f, Void_t* buf, size_t size, Sfdisc_t* dp)
/ast/src/lib/libast/string/
H A Dtokline.c47 Sfdisc_t disc;
58 spliceline(Sfio_t* s, int op, void* val, Sfdisc_t* ad)
191 sfdisc(s, (Sfdisc_t*)d);

Completed in 85 milliseconds

1234