summaryrefslogtreecommitdiff
path: root/ACE/apps/JAWS/clients/WebSTONE/src/sysdep.c
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:30 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:30 +0000
commitc44379cc7d9c7aa113989237ab0f56db12aa5219 (patch)
tree66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/apps/JAWS/clients/WebSTONE/src/sysdep.c
parent3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (diff)
downloadATCD-c44379cc7d9c7aa113989237ab0f56db12aa5219.tar.gz
Repo restructuring
Diffstat (limited to 'ACE/apps/JAWS/clients/WebSTONE/src/sysdep.c')
-rw-r--r--ACE/apps/JAWS/clients/WebSTONE/src/sysdep.c51
1 files changed, 51 insertions, 0 deletions
diff --git a/ACE/apps/JAWS/clients/WebSTONE/src/sysdep.c b/ACE/apps/JAWS/clients/WebSTONE/src/sysdep.c
new file mode 100644
index 00000000000..f1743cab9ea
--- /dev/null
+++ b/ACE/apps/JAWS/clients/WebSTONE/src/sysdep.c
@@ -0,0 +1,51 @@
+/* $Id$ */
+/**************************************************************************
+ * *
+ * Copyright (C) 1995 Silicon Graphics, Inc. *
+ * *
+ * These coded instructions, statements, and computer programs were *
+ * developed by SGI for public use. If any changes are made to this code*
+ * please try to get the changes back to the author. Feel free to make *
+ * modifications and changes to the code and release it. *
+ * *
+ **************************************************************************/
+
+#include "sysdep.h"
+/* strerror() */
+#ifndef HAVE_STRERROR
+/* strerror is not available on SunOS 4.1.3 and others */
+extern int sys_nerr;
+extern char *sys_errlist[];
+extern int errno;
+
+char *strerror(int errnum)
+{
+
+ if (errnum<sys_nerr)
+ {
+ return(sys_errlist[errnum]);
+ }
+
+ return(NULL);
+}
+
+#endif /* strerror() */
+
+
+/* stub routines for NT */
+
+#ifdef WIN32
+#include <winsock.h>
+#include <process.h>
+
+int getpid(void) {
+
+ return GetCurrentThreadId();
+}
+
+void sleep(int sec) {
+
+ Sleep(sec*1000);
+}
+#endif /* WIN32 */
+