summaryrefslogtreecommitdiff
path: root/mkspecs/qws/qnx4-cc/qplatformdefs.h
Unidiff
Diffstat (limited to 'mkspecs/qws/qnx4-cc/qplatformdefs.h') (more/less context) (ignore whitespace changes)
-rw-r--r--mkspecs/qws/qnx4-cc/qplatformdefs.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/mkspecs/qws/qnx4-cc/qplatformdefs.h b/mkspecs/qws/qnx4-cc/qplatformdefs.h
new file mode 100644
index 0000000..7c170fb
--- a/dev/null
+++ b/mkspecs/qws/qnx4-cc/qplatformdefs.h
@@ -0,0 +1,78 @@
1#ifndef QPLATFORMDEFS_H
2#define QPLATFORMDEFS_H
3
4// Get Qt defines/settings
5#include "qglobal.h"
6
7#include <unix.h>
8
9#ifdef QT_THREAD_SUPPORT
10#include <pthread.h>
11#endif
12
13#include <dirent.h>
14#include <fcntl.h>
15#include <grp.h>
16#include <pwd.h>
17#include <signal.h>
18
19#include <sys/types.h>
20#include <sys/ioctl.h>
21#include <sys/select.h>
22#include <sys/time.h>
23#include <sys/socket.h>
24#include <sys/stat.h>
25#include <sys/wait.h>
26
27// DNS header files are not fully covered by X/Open specifications.
28// In particular nothing is said about res_* :/
29// Header files <netinet/in.h> and <arpa/nameser.h> are not included
30// by <resolv.h> on older versions of the GNU C library. Note that
31// <arpa/nameser.h> must be included before <resolv.h>.
32#include <netinet/in.h>
33#include <arpa/nameser.h>
34#define class c_class
35extern "C" {
36#include <resolv.h>
37}
38#undef class
39
40
41 #define QT_STATBUF struct stat
42 #define QT_STATBUF4TSTATstruct stat
43 #define QT_STAT ::stat
44 #define QT_FSTAT ::fstat
45 #define QT_STAT_REG S_IFREG
46 #define QT_STAT_DIR S_IFDIR
47 #define QT_STAT_MASK S_IFMT
48 #define QT_STAT_LNK S_IFLNK
49 #define QT_FILENO fileno
50 #define QT_OPEN ::open
51 #define QT_CLOSE ::close
52 #define QT_LSEEK ::lseek
53 #define QT_READ ::read
54 #define QT_WRITE ::write
55 #define QT_ACCESS ::access
56 #define QT_GETCWD ::getcwd
57 #define QT_CHDIR ::chdir
58 #define QT_MKDIR ::mkdir
59 #define QT_RMDIR ::rmdir
60 #define QT_OPEN_RDONLY O_RDONLY
61 #define QT_OPEN_WRONLY O_WRONLY
62 #define QT_OPEN_RDWR O_RDWR
63 #define QT_OPEN_CREAT O_CREAT
64 #define QT_OPEN_TRUNC O_TRUNC
65 #define QT_OPEN_APPEND O_APPEND
66
67 #define QT_SIGNAL_RETTYPEvoid
68 #define QT_SIGNAL_ARGS int
69 #define QT_SIGNAL_IGNORESIG_IGN
70
71 #define QT_SOCKLEN_T int
72
73#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)
74 #define QT_SNPRINTF ::snprintf
75 #define QT_VSNPRINTF ::vsnprintf
76#endif
77
78#endif // QPLATFORMDEFS_H