diff options
author | redman <redman> | 1999-07-01 23:21:06 (GMT) |
---|---|---|
committer | redman <redman> | 1999-07-01 23:21:06 (GMT) |
commit | 733df6bdb27c26175f854cf69d08f0cfef9e855e (patch) | |
tree | a91f8b07763f9757ab1d5d9718aaefa36e855881 /generic/tclCmdAH.c | |
parent | cbc160d0d87b1efa3096c590343d0553633cb9cc (diff) | |
download | tcl-733df6bdb27c26175f854cf69d08f0cfef9e855e.zip tcl-733df6bdb27c26175f854cf69d08f0cfef9e855e.tar.gz tcl-733df6bdb27c26175f854cf69d08f0cfef9e855e.tar.bz2 |
Call TclStat instead of TclpStat in order to allow the
stat hooks to work properly.
Diffstat (limited to 'generic/tclCmdAH.c')
-rw-r--r-- | generic/tclCmdAH.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c index d59dfeb..8dc8c54 100644 --- a/generic/tclCmdAH.c +++ b/generic/tclCmdAH.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCmdAH.c,v 1.6 1999/05/22 01:20:12 stanton Exp $ + * RCS: @(#) $Id: tclCmdAH.c,v 1.7 1999/07/01 23:21:06 redman Exp $ */ #include "tclInt.h" @@ -829,7 +829,7 @@ Tcl_FileObjCmd(dummy, interp, objc, objv) if (objc != 3) { goto only3Args; } - if (GetStatBuf(interp, objv[2], TclpStat, &buf) != TCL_OK) { + if (GetStatBuf(interp, objv[2], TclStat, &buf) != TCL_OK) { return TCL_ERROR; } Tcl_SetLongObj(resultPtr, (long) buf.st_atime); @@ -923,7 +923,7 @@ Tcl_FileObjCmd(dummy, interp, objc, objv) goto only3Args; } value = 0; - if (GetStatBuf(NULL, objv[2], TclpStat, &buf) == TCL_OK) { + if (GetStatBuf(NULL, objv[2], TclStat, &buf) == TCL_OK) { value = S_ISDIR(buf.st_mode); } Tcl_SetBooleanObj(resultPtr, value); @@ -937,7 +937,7 @@ Tcl_FileObjCmd(dummy, interp, objc, objv) goto only3Args; } value = 0; - if (GetStatBuf(NULL, objv[2], TclpStat, &buf) == TCL_OK) { + if (GetStatBuf(NULL, objv[2], TclStat, &buf) == TCL_OK) { value = S_ISREG(buf.st_mode); } Tcl_SetBooleanObj(resultPtr, value); @@ -980,7 +980,7 @@ Tcl_FileObjCmd(dummy, interp, objc, objv) if (objc != 3) { goto only3Args; } - if (GetStatBuf(interp, objv[2], TclpStat, &buf) != TCL_OK) { + if (GetStatBuf(interp, objv[2], TclStat, &buf) != TCL_OK) { return TCL_ERROR; } Tcl_SetLongObj(resultPtr, (long) buf.st_mtime); @@ -1023,7 +1023,7 @@ Tcl_FileObjCmd(dummy, interp, objc, objv) goto only3Args; } value = 0; - if (GetStatBuf(NULL, objv[2], TclpStat, &buf) == TCL_OK) { + if (GetStatBuf(NULL, objv[2], TclStat, &buf) == TCL_OK) { /* * For Windows and Macintosh, there are no user ids * associated with a file, so we always return 1. @@ -1135,7 +1135,7 @@ Tcl_FileObjCmd(dummy, interp, objc, objv) if (objc != 3) { goto only3Args; } - if (GetStatBuf(interp, objv[2], TclpStat, &buf) != TCL_OK) { + if (GetStatBuf(interp, objv[2], TclStat, &buf) != TCL_OK) { return TCL_ERROR; } Tcl_SetLongObj(resultPtr, (long) buf.st_size); @@ -1167,7 +1167,7 @@ Tcl_FileObjCmd(dummy, interp, objc, objv) Tcl_WrongNumArgs(interp, 1, objv, "stat name varName"); return TCL_ERROR; } - if (GetStatBuf(interp, objv[2], TclpStat, &buf) != TCL_OK) { + if (GetStatBuf(interp, objv[2], TclStat, &buf) != TCL_OK) { return TCL_ERROR; } varName = Tcl_GetString(objv[3]); |