summaryrefslogtreecommitdiffstats
path: root/mac/tclMacTest.c
diff options
context:
space:
mode:
authorjingham <jingham@noemail.net>1999-05-11 07:11:46 (GMT)
committerjingham <jingham@noemail.net>1999-05-11 07:11:46 (GMT)
commit8b7e8758d45022a8df75b5d98c1d47931ffc649d (patch)
tree75a17d12246664b170ac64121f77deff56d7ef90 /mac/tclMacTest.c
parentc32566b9fcddb3ade3f0989963fa414e59167202 (diff)
downloadtcl-8b7e8758d45022a8df75b5d98c1d47931ffc649d.zip
tcl-8b7e8758d45022a8df75b5d98c1d47931ffc649d.tar.gz
tcl-8b7e8758d45022a8df75b5d98c1d47931ffc649d.tar.bz2
Various small fixes that were required to get Tcl to build cleanly on the Mac.
FossilOrigin-Name: 7ef207299516344d508a5d98f1cc86270353b05a
Diffstat (limited to 'mac/tclMacTest.c')
-rw-r--r--mac/tclMacTest.c31
1 files changed, 1 insertions, 30 deletions
diff --git a/mac/tclMacTest.c b/mac/tclMacTest.c
index 3c982c5..9598848 100644
--- a/mac/tclMacTest.c
+++ b/mac/tclMacTest.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclMacTest.c,v 1.3 1998/11/10 06:49:51 jingham Exp $
+ * RCS: @(#) $Id: tclMacTest.c,v 1.4 1999/05/11 07:13:36 jingham Exp $
*/
#define TCL_TEST
@@ -211,32 +211,3 @@ WriteTextResource(
(char *) NULL);
return TCL_ERROR;
}
-
-int
-TclMacChmod(
- char *path,
- int mode)
-{
- HParamBlockRec hpb;
- OSErr err;
-
- c2pstr(path);
- hpb.fileParam.ioNamePtr = (unsigned char *) path;
- hpb.fileParam.ioVRefNum = 0;
- hpb.fileParam.ioDirID = 0;
-
- if (mode & 0200) {
- err = PBHRstFLockSync(&hpb);
- } else {
- err = PBHSetFLockSync(&hpb);
- }
- p2cstr((unsigned char *) path);
-
- if (err != noErr) {
- errno = TclMacOSErrorToPosixError(err);
- return -1;
- }
-
- return 0;
-}
-