Lines Matching defs:filter
32 Sfio_t* filter; /* the filter stream */
38 /* read data from the filter */
63 sfset(fi->filter,SF_READ,0);
64 close(sffileno(fi->filter));
65 sfset(fi->filter,SF_READ,1);
72 sfset(fi->filter, SF_READ, 0);
73 r = sfpoll(&fi->filter, 1, 1);
74 sfset(fi->filter, SF_READ, 1);
78 if((w = sfwr(fi->filter, fi->next, w, 0)) > 0)
86 sfset(fi->filter, SF_WRITE, 0);
87 w = sfpoll(&fi->filter, 1, fi->next ? 1 : -1);
88 sfset(fi->filter, SF_WRITE, 1);
92 if((r = sfrd(fi->filter, buf, n, 0)) > 0)
142 { sfclose(((Filter_t*)disc)->filter);
153 Sfio_t* f; /* stream to filter data */
154 char* cmd; /* program to run as a filter */
158 reg Sfio_t* filter;
160 /* open filter for read&write */
161 if(!(filter = sfpopen(NIL(Sfio_t*),cmd,"r+")) )
165 sfsetbuf(filter,NIL(Void_t*),0);
168 { sfclose(filter);
176 fi->filter = filter;
180 { sfclose(filter);