OpenClovis Logo

clQnx.h
1 #ifndef __CL_QNX_H__
2 #define __CL_QNX_H__
3 
4 #ifdef QNX_BUILD
5 
6 #include <unistd.h>
7 #include <sys/ipc.h>
8 #include <sys/procmgr.h>
9 #include <ucontext.h>
10 #include <bind/sys/bitypes.h>
11 #include <stdint.h>
12 #include <tipc.h>
13 #include <tipc_config.h>
14 
15 /******************************************************************/
16 /*The following work..... */
17 
18 #define madvise posix_madvise
19 #define MADV_SEQUENTIAL POSIX_MADV_SEQUENTIAL
20 #define MADV_NORMAL POSIX_MADV_NORMAL
21 
22 #define getpagesize() sysconf(_SC_PAGESIZE)
23 
24 typedef pid_t __pid_t;
25 
26 
27 
28 /******************************************************************/
29 /*Making following calls dummy..... */
30 
31 #define backtrace(x, y) (0)
32 
33 /******************************************************************/
34 /* Dont know whether these will do on QNX......*/
35 
36 #define M_CHECK_ACTION (-5)
37 #define REG_EIP (14)
38 #define SA_RESTART (0)
39 #define WAIT_ANY (-1)
40 
41 #endif
42 
43 #endif

Generated on Tue Jan 10 10:29:15 PST 2012 for OpenClovis SDK using Doxygen