Changeset 9dae51d7 in mainline
- Timestamp:
- 2006-09-06T21:54:12Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9141377
- Parents:
- d7e3f1ad
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/libc/generic/io/stream.c
rd7e3f1ad r9dae51d7 165 165 ssize_t write(int fd, const void *buf, size_t count) 166 166 { 167 // __SYSCALL3(SYS_IO, 1, (sysarg_t)buf, (sysarg_t) count); 168 // return count; 169 if (fd < FDS) 167 if (fd < FDS && streams[fd].w) 170 168 return streams[fd].w(streams[fd].param, buf, count); 171 169 … … 175 173 ssize_t read(int fd, void *buf, size_t count) 176 174 { 177 if (fd < FDS )175 if (fd < FDS && streams[fd].r) 178 176 return streams[fd].r(streams[fd].param, buf, count); 179 177
Note:
See TracChangeset
for help on using the changeset viewer.