mkspecs/hurd-g++/qplatformdefs.h
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
    80 #include <netinet/in.h>
    80 #include <netinet/in.h>
    81 #ifndef QT_NO_IPV6IFNAME
    81 #ifndef QT_NO_IPV6IFNAME
    82 #include <net/if.h>
    82 #include <net/if.h>
    83 #endif
    83 #endif
    84 
    84 
    85 #define QT_FOPEN                ::fopen
    85 #include "../common/posix/qplatformdefs.h"
    86 #define QT_FSEEK                ::fseeko
       
    87 #define QT_FTELL                ::ftello
       
    88 #define QT_FGETPOS              ::fgetpos
       
    89 #define QT_FSETPOS              ::fsetpos
       
    90 #define QT_MMAP                 ::mmap
       
    91 #define QT_FPOS_T               fpos_t
       
    92 #define QT_OFF_T                off_t
       
    93 
       
    94 #define QT_STATBUF		struct stat
       
    95 #define QT_STATBUF4TSTAT	struct stat
       
    96 #define QT_STAT			::stat
       
    97 #define QT_FSTAT		::fstat
       
    98 #define QT_LSTAT		::lstat
       
    99 #define QT_STAT_REG		S_IFREG
       
   100 #define QT_STAT_DIR		S_IFDIR
       
   101 #define QT_STAT_MASK		S_IFMT
       
   102 #define QT_STAT_LNK		S_IFLNK
       
   103 #define QT_SOCKET_CONNECT	::connect
       
   104 #define QT_SOCKET_BIND		::bind
       
   105 #define QT_FILENO		fileno
       
   106 #define QT_OPEN			::open
       
   107 #define QT_CLOSE		::close
       
   108 #define QT_TRUNCATE		::truncate
       
   109 #define QT_FTRUNCATE		::ftruncate
       
   110 #define QT_LSEEK		::lseek
       
   111 #define QT_READ			::read
       
   112 #define QT_WRITE		::write
       
   113 #define QT_ACCESS		::access
       
   114 #define QT_GETCWD		::getcwd
       
   115 #define QT_CHDIR		::chdir
       
   116 #define QT_MKDIR		::mkdir
       
   117 #define QT_RMDIR		::rmdir
       
   118 #define QT_OPEN_LARGEFILE       O_LARGEFILE
       
   119 #define QT_OPEN_RDONLY		O_RDONLY
       
   120 #define QT_OPEN_WRONLY		O_WRONLY
       
   121 #define QT_OPEN_RDWR		O_RDWR
       
   122 #define QT_OPEN_CREAT		O_CREAT
       
   123 #define QT_OPEN_TRUNC		O_TRUNC
       
   124 #define QT_OPEN_APPEND		O_APPEND
       
   125 
       
   126 #define QT_SIGNAL_RETTYPE	void
       
   127 #define QT_SIGNAL_ARGS		int
       
   128 #define QT_SIGNAL_IGNORE	SIG_IGN
       
   129 
       
   130 #define QT_SOCKLEN_T		socklen_t
       
   131 
    86 
   132 #if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)
    87 #if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)
   133 #define QT_SNPRINTF		::snprintf
    88 #define QT_SNPRINTF		::snprintf
   134 #define QT_VSNPRINTF		::vsnprintf
    89 #define QT_VSNPRINTF		::vsnprintf
   135 #endif
    90 #endif
   136 
    91 
   137 
       
   138 #endif // QPLATFORMDEFS_H
    92 #endif // QPLATFORMDEFS_H