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 // uncomment if you have problems with <sys/proc.h> because your gcc 00018 // hasn't been built on exactly the same OS version your are using now. 00019 // typedef int crid_t; 00020 // typedef unsigned int class_id_t; 00021 #include <pthread.h> 00022 #endif 00023 00024 #include <dirent.h> 00025 #include <fcntl.h> 00026 #include <grp.h> 00027 #include <pwd.h> 00028 #include <signal.h> 00029 #include <dlfcn.h> 00030 #include <strings.h> // AIX X11 headers define FD_ZERO using bzero() 00031 00032 #include <sys/types.h> 00033 #include <sys/ioctl.h> 00034 #include <sys/ipc.h> 00035 #include <sys/time.h> 00036 #include <sys/select.h> 00037 #include <sys/shm.h> 00038 #include <sys/socket.h> 00039 #include <sys/stat.h> 00040 #include <sys/wait.h> 00041 00042 // DNS header files are not fully covered by X/Open specifications. 00043 // In particular nothing is said about res_* :/ 00044 // On AIX header files <netinet/in.h> and <arpa/nameser.h> are not 00045 // included by <resolv.h>. Note that <arpa/nameser.h> must be included 00046 // before <resolv.h>. 00047 #include <netinet/in.h> 00048 #define class nsrr_class // AIX 4.3.1.0 00049 #include <arpa/nameser.h> 00050 #undef class 00051 #include <resolv.h> 00052 00053 00054 #if !defined(QT_NO_COMPAT) 00055 #define QT_STATBUF struct stat 00056 #define QT_STATBUF4TSTAT struct stat 00057 #define QT_STAT ::stat 00058 #define QT_FSTAT ::fstat 00059 #define QT_STAT_REG S_IFREG 00060 #define QT_STAT_DIR S_IFDIR 00061 #define QT_STAT_MASK S_IFMT 00062 #define QT_STAT_LNK S_IFLNK 00063 #define QT_FILENO fileno 00064 #define QT_OPEN ::open 00065 #define QT_CLOSE ::close 00066 #define QT_LSEEK ::lseek 00067 #define QT_READ ::read 00068 #define QT_WRITE ::write 00069 #define QT_ACCESS ::access 00070 #define QT_GETCWD ::getcwd 00071 #define QT_CHDIR ::chdir 00072 #define QT_MKDIR ::mkdir 00073 #define QT_RMDIR ::rmdir 00074 #define QT_OPEN_RDONLY O_RDONLY 00075 #define QT_OPEN_WRONLY O_WRONLY 00076 #define QT_OPEN_RDWR O_RDWR 00077 #define QT_OPEN_CREAT O_CREAT 00078 #define QT_OPEN_TRUNC O_TRUNC 00079 #define QT_OPEN_APPEND O_APPEND 00080 #endif 00081 00082 #define QT_SIGNAL_RETTYPE void 00083 #define QT_SIGNAL_ARGS int 00084 #define QT_SIGNAL_IGNORE SIG_IGN 00085 00086 #ifdef _AIX43 00087 // AIX 4.3 00088 // The AIX 4.3 online documentation says 'size_t' but a user asked IBM 00089 // and they told him the documentation is wrong. And anyway 'socklen_t' 00090 // reportedly works for all AIX 4.3 users. 00091 #define QT_SOCKLEN_T socklen_t 00092 #elif _AIX42 00093 // AIX 4.2 00094 #define QT_SOCKLEN_T size_t 00095 #else 00096 // AIX 4.1 00097 #define QT_SOCKLEN_T size_t 00098 // override 00099 #define QT_SOCKOPTLEN_T int 00100 #endif 00101 00102 #if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) 00103 // AIX 4.3 and better only 00104 #define QT_SNPRINTF ::snprintf 00105 #define QT_VSNPRINTF ::vsnprintf 00106 #endif 00107 00108 00109 #endif // QPLATFORMDEFS_H