Changeset f3e2663 in mainline for uspace/app/bdsh/cmds/modules/cat/cat.c
- Timestamp:
- 2011-04-03T11:17:45Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 106743d
- Parents:
- 10eb754 (diff), b2a081ae (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cat/cat.c
r10eb754 rf3e2663 164 164 { 165 165 int fd, bytes = 0, count = 0, reads = 0; 166 off64_t total = 0;167 166 char *buff = NULL; 168 167 int i; … … 174 173 return 1; 175 174 } 176 177 total = lseek(fd, 0, SEEK_END);178 lseek(fd, 0, SEEK_SET);179 175 180 176 if (NULL == (buff = (char *) malloc(blen + 1))) { … … 199 195 wchar_t c = str_decode(buff, &offset, bytes); 200 196 if (c == 0) { 201 / / reached end of string197 /* Reached end of string */ 202 198 break; 203 199 } … … 232 228 int rc; 233 229 234 // reset global state 235 // TODO: move to structure? 230 /* 231 * reset global state 232 * TODO: move to structure? 233 */ 236 234 paging_enabled = false; 237 235 chars_remaining = 0;
Note:
See TracChangeset
for help on using the changeset viewer.