Changeset 594 for trunk/kernel/syscalls/sys_read.c
- Timestamp:
- Nov 10, 2018, 2:33:26 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_read.c
r584 r594 194 194 195 195 } 196 else 197 { 198 nbytes = 0; 199 assert( false , "file type %d non supported yet\n", type ); 196 else // not FILE and not DEV 197 { 198 199 #if DEBUG_SYSCALLS_ERROR 200 printk("\n[ERROR] in %s : thread[%x,%x] / illegal inode type %\n", 201 __FUNCTION__, vfs_inode_type_str( type ) ); 202 #endif 203 this->errno = EBADFD; 204 return -1; 200 205 } 201 206 … … 207 212 __FUNCTION__, process->pid, this->trdid, file_id ); 208 213 #endif 209 this->errno = error;214 this->errno = EIO; 210 215 return -1; 211 216 }
Note: See TracChangeset
for help on using the changeset viewer.