summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixCompat.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-20 08:33:13 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-20 08:33:13 (GMT)
commit23f5b19d027c7c6f2eec97dd900569b56a9087f7 (patch)
tree26e4c9ca77a9172d456507c85d328b5ae1368326 /unix/tclUnixCompat.c
parentd61767f9a7d9b5fee5a3e2f460ba5239180f6e8e (diff)
parentfefa2c52da187dad8fac68f63f757cde175bdf8e (diff)
downloadtcl-23f5b19d027c7c6f2eec97dd900569b56a9087f7.zip
tcl-23f5b19d027c7c6f2eec97dd900569b56a9087f7.tar.gz
tcl-23f5b19d027c7c6f2eec97dd900569b56a9087f7.tar.bz2
[Bug 3508771] load tclreg.dll in cygwin tclsh
Diffstat (limited to 'unix/tclUnixCompat.c')
-rw-r--r--unix/tclUnixCompat.c39
1 files changed, 38 insertions, 1 deletions
diff --git a/unix/tclUnixCompat.c b/unix/tclUnixCompat.c
index 42fb916..16e7a61 100644
--- a/unix/tclUnixCompat.c
+++ b/unix/tclUnixCompat.c
@@ -144,7 +144,7 @@ CopyArray(char **src, int elsize, char *buf, int buflen)
static int
-CopyString(char *src, char *buf, int buflen)
+CopyString(CONST char *src, char *buf, int buflen)
{
int len = 0;
@@ -666,3 +666,40 @@ TclpGetHostByAddr(const char *addr, int length, int type)
return NULL; /* Not reached */
#endif /* TCL_THREADS */
}
+
+/*
+ *------------------------------------------------------------------------
+ *
+ * TclWinCPUID --
+ *
+ * Get CPU ID information on an Intel box under UNIX (either Linux or Cygwin)
+ *
+ * Results:
+ * Returns TCL_OK if successful, TCL_ERROR if CPUID is not supported or
+ * fails.
+ *
+ * Side effects:
+ * If successful, stores EAX, EBX, ECX and EDX registers after the CPUID
+ * instruction in the four integers designated by 'regsPtr'
+ *
+ *----------------------------------------------------------------------
+ */
+
+int
+TclWinCPUID(
+ unsigned int index, /* Which CPUID value to retrieve. */
+ unsigned int *regsPtr) /* Registers after the CPUID. */
+{
+ int status = TCL_ERROR;
+
+ /* There is no reason this couldn't be implemented on UNIX as well */
+ return status;
+}
+
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 4
+ * fill-column: 78
+ * End:
+ */