comparison src/file.c @ 35:ad1d3b268e2d

update
author mir3636
date Fri, 22 Feb 2019 16:32:51 +0900
parents 7a63dacab7f8
children
comparison
equal deleted inserted replaced
34:a7144583914c 35:ad1d3b268e2d
116 if (f->readable == 0) { 116 if (f->readable == 0) {
117 goto next(-1); 117 goto next(-1);
118 } 118 }
119 119
120 if (f->type == FD_PIPE) { 120 if (f->type == FD_PIPE) {
121 //goto cbc_piperead(f->pipe, addr, n, next); 121 goto cbc_piperead(f->pipe, addr, n, next);
122 goto next(-1); 122 goto next(-1);
123 } 123 }
124 124
125 if (f->type == FD_INODE) { 125 if (f->type == FD_INODE) {
126 ilock(f->ip); 126 ilock(f->ip);