summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixCompat.c
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-03-20 09:58:52 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-03-20 09:58:52 (GMT)
commitc3d778a7fc43bb11f418d6cb2a482bd4bfc01dd5 (patch)
tree0787c7eb92e0ef00e18ed6b89cdf04287058cec8 /unix/tclUnixCompat.c
parentf2aa0545c55a0600b1e6ed7618152e09f3750d55 (diff)
parent66438dbb585fe6e56c37e436d153f1767163ae61 (diff)
downloadtcl-c3d778a7fc43bb11f418d6cb2a482bd4bfc01dd5.zip
tcl-c3d778a7fc43bb11f418d6cb2a482bd4bfc01dd5.tar.gz
tcl-c3d778a7fc43bb11f418d6cb2a482bd4bfc01dd5.tar.bz2
[Bug 3508771] load tclreg.dll in cygwin tclsh
Diffstat (limited to 'unix/tclUnixCompat.c')
-rw-r--r--unix/tclUnixCompat.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/unix/tclUnixCompat.c b/unix/tclUnixCompat.c
index 4d959d6..782d70c 100644
--- a/unix/tclUnixCompat.c
+++ b/unix/tclUnixCompat.c
@@ -794,3 +794,40 @@ CopyString(
* fill-column: 78
* End:
*/
+
+/*
+ *------------------------------------------------------------------------
+ *
+ * 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:
+ */