summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qnativesocketengine_p.h
diff options
context:
space:
mode:
authorRobert Griebl <rgriebl@trolltech.com>2009-07-14 12:56:27 (GMT)
committerRobert Griebl <rgriebl@trolltech.com>2009-07-14 13:16:16 (GMT)
commit93db2c44b7b01eb08ef6f447d4a84198b2dcd1e3 (patch)
tree2e27c4a17b82d05630ddaa10b2ab09bf97c27c58 /src/network/socket/qnativesocketengine_p.h
parent67e52d5b57e604ba82351b8edb038a5adbaf8c5a (diff)
downloadQt-93db2c44b7b01eb08ef6f447d4a84198b2dcd1e3.zip
Qt-93db2c44b7b01eb08ef6f447d4a84198b2dcd1e3.tar.gz
Qt-93db2c44b7b01eb08ef6f447d4a84198b2dcd1e3.tar.bz2
Socket function cleanup: replacing direct POSIX calls with qt_safe_().
Reviewed-By: Thiago
Diffstat (limited to 'src/network/socket/qnativesocketengine_p.h')
-rw-r--r--src/network/socket/qnativesocketengine_p.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/network/socket/qnativesocketengine_p.h b/src/network/socket/qnativesocketengine_p.h
index 7811635..a9479d3 100644
--- a/src/network/socket/qnativesocketengine_p.h
+++ b/src/network/socket/qnativesocketengine_p.h
@@ -63,35 +63,6 @@
QT_BEGIN_NAMESPACE
-#ifndef Q_OS_WIN
-// Almost always the same. If not, specify in qplatformdefs.h.
-#if !defined(QT_SOCKOPTLEN_T)
-# define QT_SOCKOPTLEN_T QT_SOCKLEN_T
-#endif
-
-// Tru64 redefines accept -> _accept with _XOPEN_SOURCE_EXTENDED
-static inline int qt_socket_accept(int s, struct sockaddr *addr, QT_SOCKLEN_T *addrlen)
-{ return ::accept(s, addr, static_cast<QT_SOCKLEN_T *>(addrlen)); }
-#if defined(accept)
-# undef accept
-#endif
-
-// UnixWare 7 redefines listen -> _listen
-static inline int qt_socket_listen(int s, int backlog)
-{ return ::listen(s, backlog); }
-#if defined(listen)
-# undef listen
-#endif
-
-// UnixWare 7 redefines socket -> _socket
-static inline int qt_socket_socket(int domain, int type, int protocol)
-{ return ::socket(domain, type, protocol); }
-#if defined(socket)
-# undef socket
-#endif
-
-#endif
-
// Use our own defines and structs which we know are correct
# define QT_SS_MAXSIZE 128
# define QT_SS_ALIGNSIZE (sizeof(qint64))