1
#ifndef QPLATFORMDEFS_H
2
#define QPLATFORMDEFS_H
4
// Get Qt defines/settings
8
// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs
13
// We are hot - unistd.h should have turned on the specific APIs we requested
25
#define QT_NO_LIBRARY_UNLOAD
27
#include <sys/types.h>
28
#include <sys/ioctl.h>
32
#include <sys/socket.h>
35
#include <netinet/in.h>
37
#ifdef QT_LARGEFILE_SUPPORT
38
#define QT_STATBUF struct stat64
39
#define QT_STATBUF4TSTAT struct stat64
40
#define QT_STAT ::stat64
41
#define QT_FSTAT ::fstat64
42
#define QT_LSTAT ::lstat64
43
#define QT_OPEN ::open64
44
#define QT_TRUNCATE ::truncate64
45
#define QT_FTRUNCATE ::ftruncate64
46
#define QT_LSEEK ::lseek64
48
#define QT_STATBUF struct stat
49
#define QT_STATBUF4TSTAT struct stat
50
#define QT_STAT ::stat
51
#define QT_FSTAT ::fstat
52
#define QT_LSTAT ::lstat
53
#define QT_OPEN ::open
54
#define QT_TRUNCATE ::truncate
55
#define QT_FTRUNCATE ::ftruncate
56
#define QT_LSEEK ::lseek
59
#define QT_STAT_REG S_IFREG
60
#define QT_STAT_DIR S_IFDIR
61
#define QT_STAT_MASK S_IFMT
62
#define QT_STAT_LNK S_IFLNK
63
#define QT_SOCKET_CONNECT ::connect
64
#define QT_SOCKET_BIND ::bind
65
#define QT_FILENO fileno
66
#define QT_CLOSE ::close
67
#define QT_READ ::read
68
#define QT_WRITE ::write
69
#define QT_ACCESS ::access
70
#define QT_GETCWD ::getcwd
71
#define QT_CHDIR ::chdir
72
#define QT_MKDIR ::mkdir
73
#define QT_RMDIR ::rmdir
74
#define QT_OPEN_RDONLY O_RDONLY
75
#define QT_OPEN_WRONLY O_WRONLY
76
#define QT_OPEN_RDWR O_RDWR
77
#define QT_OPEN_CREAT O_CREAT
78
#define QT_OPEN_TRUNC O_TRUNC
79
#define QT_OPEN_APPEND O_APPEND
81
#define QT_SIGNAL_RETTYPE void
82
#define QT_SIGNAL_ARGS int
83
#define QT_SIGNAL_IGNORE SIG_IGN
85
#define QT_SOCKLEN_T int
87
// presence of _XOPEN_UNIX can be used to detect HP-UX 10 or higher
88
#if !defined(_XOPEN_UNIX)
89
// HP-UX 9's select() didn't accept fd_set, yet.
90
#define select(a,b,c,d,e) select((a), (int *)(b), (int *)(c), (int *)(d), (e))
94
#endif // QPLATFORMDEFS_H