Commit e0bb85c
committed
Fix syscall lseek() to return correct offset
Previously, lseek() always returned 0 upon success, which is incorrect.
Fix the behavior by using ftell() to retrieve the correct offset
location and returning it upon successful completion of lseek().1 parent 25bc0b0 commit e0bb85c
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
270 | 277 | | |
271 | | - | |
| 278 | + | |
272 | 279 | | |
273 | 280 | | |
274 | 281 | | |
| |||
0 commit comments