Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/e_os.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-10-09 17:41:31 +0400
committerRichard Levitte <levitte@openssl.org>2002-10-09 17:41:31 +0400
commit6b7a46b721a92301300a2e92f1c20ee65faf54f7 (patch)
tree3e06d2dea8b6690ccf33992937cd3c3cf6fad4cf /e_os.h
parentff90d659e65c0175787f7f964f3a0b96a029a1f8 (diff)
Add a few more VxWorks targets.
Correct misspelled VXWORKS macros. Add VXWORKS identifying macros to e_os2.h. Add required inclusions and mappings for VxWorks in e_os.h. A few small modifications to make OpenSSL build and work on VxWorks. PR: 253, except for the change that was handled in an earlier commit, and a request for easy build of just parts of OpenSSL.
Diffstat (limited to 'e_os.h')
-rw-r--r--e_os.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/e_os.h b/e_os.h
index 00edebe6d4..6d326e54e3 100644
--- a/e_os.h
+++ b/e_os.h
@@ -485,6 +485,36 @@ extern char *sys_errlist[]; extern int sys_nerr;
# define strcasecmp stricmp
#endif
+/* vxworks */
+#if defined(OPENSSL_SYS_VXWORKS)
+#include <ioLib.h>
+#include <tickLib.h>
+#include <sysLib.h>
+
+#define TTY_STRUCT int
+
+#define sleep(a) taskDelay((a) * sysClkRateGet())
+#if defined(ioctlsocket)
+#undef ioctlsocket
+#endif
+#define ioctlsocket(a,b,c) ioctl((a),(b),*(c))
+
+#include <vxWorks.h>
+#include <sockLib.h>
+#include <taskLib.h>
+
+#define getpid taskIdSelf
+
+/* NOTE: these are implemented by helpers in database app!
+ * if the database is not linked, we need to implement them
+ * elswhere */
+struct hostent *gethostbyname(const char *name);
+struct hostent *gethostbyaddr(const char *addr, int length, int type);
+struct servent *getservbyname(const char *name, const char *proto);
+
+#endif
+/* end vxworks */
+
#ifdef __cplusplus
}
#endif