Eneboo - Documentación para desarrolladores
src/qt/mkspecs/freebsd-icc/qplatformdefs.h
Ir a la documentación de este archivo.
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 <dlfcn.h>
00026 
00027 #include <sys/types.h>
00028 #include <sys/ioctl.h>
00029 #include <sys/ipc.h>
00030 #include <sys/time.h>
00031 #include <sys/shm.h>
00032 #include <sys/socket.h>
00033 #include <sys/stat.h>
00034 #include <sys/wait.h>
00035 
00036 // DNS header files are not fully covered by X/Open specifications.
00037 // In particular nothing is said about res_* :/
00038 // On BSDs header files <netinet/in.h> and <arpa/nameser.h> are not
00039 // included by <resolv.h>. Note that <arpa/nameser.h> must be included
00040 // before <resolv.h>.
00041 #include <netinet/in.h>
00042 #define class c_class // FreeeBSD 3.x
00043 #include <arpa/nameser.h>
00044 #undef class
00045 #include <resolv.h>
00046 
00047 
00048 #if !defined(QT_NO_COMPAT)
00049 #define QT_STATBUF              struct stat
00050 #define QT_STATBUF4TSTAT        struct stat
00051 #define QT_STAT                 ::stat
00052 #define QT_FSTAT                ::fstat
00053 #define QT_STAT_REG             S_IFREG
00054 #define QT_STAT_DIR             S_IFDIR
00055 #define QT_STAT_MASK            S_IFMT
00056 #define QT_STAT_LNK             S_IFLNK
00057 #define QT_FILENO               fileno
00058 #define QT_OPEN                 ::open
00059 #define QT_CLOSE                ::close
00060 #define QT_LSEEK                ::lseek
00061 #define QT_READ                 ::read
00062 #define QT_WRITE                ::write
00063 #define QT_ACCESS               ::access
00064 #define QT_GETCWD               ::getcwd
00065 #define QT_CHDIR                ::chdir
00066 #define QT_MKDIR                ::mkdir
00067 #define QT_RMDIR                ::rmdir
00068 #define QT_OPEN_RDONLY          O_RDONLY
00069 #define QT_OPEN_WRONLY          O_WRONLY
00070 #define QT_OPEN_RDWR            O_RDWR
00071 #define QT_OPEN_CREAT           O_CREAT
00072 #define QT_OPEN_TRUNC           O_TRUNC
00073 #define QT_OPEN_APPEND          O_APPEND
00074 #endif
00075 
00076 #define QT_SIGNAL_RETTYPE       void
00077 #define QT_SIGNAL_ARGS          int
00078 #define QT_SIGNAL_IGNORE        SIG_IGN
00079 
00080 #if !defined(__DragonFly__) && __FreeBSD_version < 400000
00081 // FreeBSD 1.0 - 3.5.1
00082 #  define QT_SOCKLEN_T          int
00083 #else
00084 // FreeBSD 4.0 - 5.0
00085 #  define QT_SOCKLEN_T          socklen_t
00086 #endif
00087 
00088 #define QT_SNPRINTF             ::snprintf
00089 #define QT_VSNPRINTF            ::vsnprintf
00090 
00091 // Older FreeBSD versions may still use the a.out format instead of ELF.
00092 // From the FreeBSD man pages:
00093 //      In previous implementations, it was necessary to prepend an
00094 //      underscore to all external symbols in order to gain symbol
00095 //      compatibility with object code compiled from the C language.
00096 //      This is still the case when using the (obsolete) -aout option to
00097 //      the C language compiler.
00098 #ifndef __ELF__
00099 #define QT_AOUT_UNDERSCORE
00100 #endif
00101 
00102 
00103 #endif // QPLATFORMDEFS_H
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'