Eneboo - Documentación para desarrolladores
|
00001 #ifndef QPLATFORMDEFS_H 00002 #define QPLATFORMDEFS_H 00003 00004 // Get Qt defines/settings 00005 00006 #include "qglobal.h" 00007 00008 // Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs 00009 00010 #include <unistd.h> 00011 00012 00013 // We are hot - unistd.h should have turned on the specific APIs we requested 00014 00015 00016 #ifdef QT_THREAD_SUPPORT 00017 #include <pthread.h> 00018 #endif 00019 00020 #include <dirent.h> 00021 #include <fcntl.h> 00022 #include <grp.h> 00023 #include <pwd.h> 00024 #include <signal.h> 00025 #include <dl.h> 00026 #define QT_HPUX_LD 00027 #define QT_NO_LIBRARY_UNLOAD 00028 00029 #include <sys/types.h> 00030 #include <sys/ioctl.h> 00031 #include <sys/ipc.h> 00032 #include <sys/time.h> 00033 #include <sys/shm.h> 00034 #include <sys/socket.h> 00035 #include <sys/stat.h> 00036 #include <sys/wait.h> 00037 00038 // DNS header files are not fully covered by X/Open specifications. 00039 // In particular nothing is said about res_* :/ 00040 // #ifdef __cplusplus 00041 // extern "C" { 00042 // #endif 00043 // getres() is mangled because of missing extern "C" on 00044 // HP-UX 11.x systems missing PHCO_23963 00045 #include <resolv.h> 00046 // #ifdef __cplusplus 00047 // } 00048 // #endif 00049 // Undeclared - at least on HP-UX 10.20. 00050 extern "C" int res_init(); 00051 00052 00053 #if !defined(QT_NO_COMPAT) 00054 #define QT_STATBUF struct stat 00055 #define QT_STATBUF4TSTAT struct stat 00056 #define QT_STAT ::stat 00057 #define QT_FSTAT ::fstat 00058 #define QT_STAT_REG S_IFREG 00059 #define QT_STAT_DIR S_IFDIR 00060 #define QT_STAT_MASK S_IFMT 00061 #define QT_STAT_LNK S_IFLNK 00062 #define QT_FILENO fileno 00063 #define QT_OPEN ::open 00064 #define QT_CLOSE ::close 00065 #define QT_LSEEK ::lseek 00066 #define QT_READ ::read 00067 #define QT_WRITE ::write 00068 #define QT_ACCESS ::access 00069 #define QT_GETCWD ::getcwd 00070 #define QT_CHDIR ::chdir 00071 #define QT_MKDIR ::mkdir 00072 #define QT_RMDIR ::rmdir 00073 #define QT_OPEN_RDONLY O_RDONLY 00074 #define QT_OPEN_WRONLY O_WRONLY 00075 #define QT_OPEN_RDWR O_RDWR 00076 #define QT_OPEN_CREAT O_CREAT 00077 #define QT_OPEN_TRUNC O_TRUNC 00078 #define QT_OPEN_APPEND O_APPEND 00079 #endif 00080 00081 #define QT_SIGNAL_RETTYPE void 00082 #define QT_SIGNAL_ARGS int 00083 #define QT_SIGNAL_IGNORE SIG_IGN 00084 00085 #define QT_SOCKLEN_T int 00086 00087 // presence of _XOPEN_UNIX can be used to detect HP-UX 10 or higher 00088 #if !defined(_XOPEN_UNIX) 00089 // HP-UX 9's select() didn't accept fd_set, yet. 00090 #define select(a,b,c,d,e) select((a), (int *)(b), (int *)(c), (int *)(d), (e)) 00091 #endif 00092 00093 00094 #endif // QPLATFORMDEFS_H