1
#ifndef QPLATFORMDEFS_H
2
#define QPLATFORMDEFS_H
4
// Get Qt defines/settings
9
// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs
14
// We are hot - unistd.h should have turned on the specific APIs we requested
30
#define QT_NO_LIBRARY_UNLOAD
32
#include <sys/types.h>
33
#include <sys/ioctl.h>
37
#include <sys/socket.h>
40
#include <netinet/in.h>
43
#define QT_STATBUF struct stat
44
#define QT_STATBUF4TSTAT struct stat
45
#define QT_STAT ::stat
46
#define QT_FSTAT ::fstat
47
#define QT_LSTAT ::lstat
48
#define QT_STAT_REG S_IFREG
49
#define QT_STAT_DIR S_IFDIR
50
#define QT_STAT_MASK S_IFMT
51
#define QT_STAT_LNK S_IFLNK
52
#define QT_SOCKET_CONNECT ::connect
53
#define QT_SOCKET_BIND ::bind
54
#define QT_FILENO fileno
55
#define QT_OPEN ::open
56
#define QT_CLOSE ::close
57
#define QT_TRUNCATE ::truncate
58
#define QT_FTRUNCATE ::ftruncate
59
#define QT_LSEEK ::lseek
60
#define QT_READ ::read
61
#define QT_WRITE ::write
62
#define QT_ACCESS ::access
63
#define QT_GETCWD ::getcwd
64
#define QT_CHDIR ::chdir
65
#define QT_MKDIR ::mkdir
66
#define QT_RMDIR ::rmdir
67
#define QT_OPEN_RDONLY O_RDONLY
68
#define QT_OPEN_WRONLY O_WRONLY
69
#define QT_OPEN_RDWR O_RDWR
70
#define QT_OPEN_CREAT O_CREAT
71
#define QT_OPEN_TRUNC O_TRUNC
72
#define QT_OPEN_APPEND O_APPEND
74
#define QT_SIGNAL_RETTYPE void
75
#define QT_SIGNAL_ARGS int
76
#define QT_SIGNAL_IGNORE (void (*)(int))1
78
#define QT_SOCKLEN_T int
80
#define QT_SNPRINTF ::snprintf
81
#define QT_VSNPRINTF ::vsnprintf
84
#endif // QPLATFORMDEFS_H