summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFCmd.c
diff options
context:
space:
mode:
authorvbwagner <vbwagner>2004-03-05 14:06:55 (GMT)
committervbwagner <vbwagner>2004-03-05 14:06:55 (GMT)
commitcf1e468be705db2cb0be93a9aa28aacdb838550c (patch)
tree071856109fec29152f3bcfd3d92535ae562585e5 /unix/tclUnixFCmd.c
parent9472fc9496ffa1b561e42b87aba86e26c96e993f (diff)
downloadtcl-cf1e468be705db2cb0be93a9aa28aacdb838550c.zip
tcl-cf1e468be705db2cb0be93a9aa28aacdb838550c.tar.gz
tcl-cf1e468be705db2cb0be93a9aa28aacdb838550c.tar.bz2
hidden unix-specific implementations of file volumes and file attributes
under #ifndef DJGPP. Added couple of undefs into tclUnixPort.h to avoid confilct between Waterloo TCP and DJGPP system error constants
Diffstat (limited to 'unix/tclUnixFCmd.c')
-rw-r--r--unix/tclUnixFCmd.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/unix/tclUnixFCmd.c b/unix/tclUnixFCmd.c
index fede131..4e2f429 100644
--- a/unix/tclUnixFCmd.c
+++ b/unix/tclUnixFCmd.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixFCmd.c,v 1.34 2004/01/29 10:28:23 vincentdarley Exp $
+ * RCS: @(#) $Id: tclUnixFCmd.c,v 1.35 2004/03/05 14:06:55 vbwagner Exp $
*
* Portions of this code were derived from NetBSD source code which has
* the following copyright notice:
@@ -116,6 +116,13 @@ typedef int (TraversalProc) _ANSI_ARGS_((Tcl_DString *srcPtr,
* and possibly elsewhere in Tcl's core.
*/
+#ifdef DJGPP
+
+/*See contrib/djgpp/tclDjgppFCmd.c for definitio*/
+extern TclFileAttrProcs tclpFileAttrProcs[];
+extern char *tclpFileAttrStrings[];
+
+#else
enum {
UNIX_GROUP_ATTRIBUTE,
UNIX_OWNER_ATTRIBUTE,
@@ -161,7 +168,7 @@ CONST TclFileAttrProcs tclpFileAttrProcs[] = {
{TclMacOSXGetFileAttribute, TclMacOSXSetFileAttribute},
#endif
};
-
+#endif
/*
* Declarations for local procedures defined in this file:
*/
@@ -1480,6 +1487,7 @@ SetPermissionsAttribute(interp, objIndex, fileName, attributePtr)
return TCL_OK;
}
+#ifndef DJGPP
/*
*---------------------------------------------------------------------------
*
@@ -1504,6 +1512,7 @@ TclpObjListVolumes(void)
Tcl_IncrRefCount(resultPtr);
return resultPtr;
}
+#endif
/*
*----------------------------------------------------------------------