Lines Matching refs:sp
24 * announce sp open for write on path
28 int rsfilewrite(Rs_t* rs, Sfio_t* sp, const char* path)
30 int rsfilewrite(rs, sp, path)
32 Sfio_t* sp;
36 if ((rs->events & RS_FILE_WRITE) && rsnotify(rs, RS_FILE_WRITE, sp, (Void_t*)path, rs->disc) < 0)
42 * announce sp open for read on path
46 int rsfileread(Rs_t* rs, Sfio_t* sp, const char* path)
48 int rsfileread(rs, sp, path)
50 Sfio_t* sp;
54 if ((rs->events & RS_FILE_READ) && rsnotify(rs, RS_FILE_READ, sp, (Void_t*)path, rs->disc) < 0)
64 int rsfileclose(Rs_t* rs, Sfio_t* sp)
66 int rsfileclose(rs, sp)
68 Sfio_t* sp;
75 if ((n = rsnotify(rs, RS_FILE_CLOSE, sp, (Void_t*)0, rs->disc)) < 0)
80 if (sp != sfstdout)
81 return sfclose(sp);