struct aproc * wsio_new(struct file *f) { struct aproc *p; p = aproc_new(&wsio_ops, f->name); p->u.io.file = f; p->u.io.partial = 0; f->wproc = p; return p; }
struct aproc * rwav_new(struct file *f) { struct aproc *p; p = aproc_new(&rwav_ops, f->name); p->u.io.file = f; p->u.io.partial = 0; f->rproc = p; return p; }