summaryrefslogtreecommitdiff
path: root/e_os.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-10-09 13:40:48 +0000
committerRichard Levitte <levitte@openssl.org>2002-10-09 13:40:48 +0000
commit6a89a25c27df0677e78567cd02c77f30e80814af (patch)
tree9c29d0eea93980a2a854e639852ed601f712a6e0 /e_os.h
parent001ab3abad45752c13af5396a47551f46a6ebfdb (diff)
downloadopenssl-new-6a89a25c27df0677e78567cd02c77f30e80814af.tar.gz
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