|
2004-09-11
| ||
| 03:07 | • Closed ticket [1025359fff]: No error propagation for wideSeekProc plus 7 oth... artifact: 783fca1ba0 user: dkf | |
|
2004-09-10
| ||
| 03:01 | • Ticket [1025359fff]: 4 changes artifact: a29dc944ee user: andreas_kupries | |
| 02:38 | • Ticket [1025359fff]: 4 changes artifact: f7826a8a5a user: andreas_kupries | |
| 02:38 | • Add attachment seek_patches.tar.gz to ticket [1025359fffffffff|1025359f... artifact: e68e5448a7 user: andreas_kupries | |
|
2004-09-09
| ||
| 19:38 | • New ticket [1025359fff] No error propagation for wideSeekProc. artifact: 1a4e696deb user: andreas_kupries | |
No error propagation for wideSeekProc
Closed / Fixed1025359fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-09-09 19:38:37
This applies to the head as well. Given directly to Donal Fellows for review. When the regular seekProc returns a negative location the errorCode containing a more detailed POSIX error is propagated to other parts of the core via Tcl_SetErrno(). This does not happen when a wideSeekProc is present and used. The relevant C code is Tcl_Seek in tclIO.h 8.4: Line 5553. 8.5: Line 5574. Attached two patches (in a single tarball), for 8.4 and 8.5. The relevant code was moved out of the conditional distinguishing between regular and wide seek procs, and one branch has been changed to define 'result', as that is now expected.
andreas_kupriesplain2004-09-10 02:38:38
File Added - 100933: seek_patches.tar.gz
andreas_kupriesplain2004-09-10 03:01:13
Logged In: YES user_id=75003 See TIP http://tip.tcl.tk/91, which introduced the wideSeekProc. I did not find a ref to the patch for it here on SF. The ChangeLog reports integration at 5-May-2002, by DKF. And see http://sourceforge.net/support/tracker.php?&aid=1025294 for the code which exposed this problem during the creation of its testsuite. Feel free to review that as well. It is a TIP in the making.
dkfplain2004-09-11 03:07:57
Logged In: YES user_id=79902 Fixed in HEAD and 8.4 branch tip; thanks
Log in (anonymous is fine) to add a comment.
Attachments:
- seek_patches.tar.gz [download] added by andreas_kupries on 2004-09-10 02:38:38. [details]