Tcl_FSUtime inconsistent return convention
Closed / Fixed935838ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-04-15 18:53:55
Tcl_FSUtime() is documented by reference to the utime() system call. The utime() documentation I have claims a return of 0 indicates success and a return of -1 indicates error. The Filesystem extension interface documentation for a Tcl_FSUTimeProc says: "The return value is a standard Tcl result indicating whether an error occurred in the process." suggesting the use of TCL_OK = 0 and TCL_ERROR = 1 . However, the Tcl_FSUtime() implementation passes the driver return value directly to the caller of Tcl_FSUtime() without translating between these inconsistent return value conventions.
vincentdarley Closed ticket [935838ffff].
[History diff]2004-04-17 00:32:39
vincentdarleyplain2004-04-17 00:32:40
Logged In: YES user_id=32170 This is a documentation bug. Both Tcl_FSUtime and Tcl_FSUTimeProc match utime() by design. The mention of standard Tcl result is simply wrong. Fixed in cvs. Thanks!
Log in (anonymous is fine) to add a comment.