summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qnativesocketengine_unix.cpp
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_unix.cpp
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_unix.cpp')
-rw-r--r--src/network/socket/qnativesocketengine_unix.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/socket/qnativesocketengine_unix.cpp b/src/network/socket/qnativesocketengine_unix.cpp
index 0c1fa19..3991ae6 100644
--- a/src/network/socket/qnativesocketengine_unix.cpp
+++ b/src/network/socket/qnativesocketengine_unix.cpp
@@ -508,7 +508,7 @@ qint64 QNativeSocketEnginePrivate::nativeBytesAvailable() const
int nbytes = 0;
// gives shorter than true amounts on Unix domain sockets.
qint64 available = 0;
- if (::ioctl(socketDescriptor, FIONREAD, (char *) &nbytes) >= 0)
+ if (qt_safe_ioctl(socketDescriptor, FIONREAD, (char *) &nbytes) >= 0)
available = (qint64) nbytes;
#if defined (QNATIVESOCKETENGINE_DEBUG)
@@ -634,8 +634,8 @@ qint64 QNativeSocketEnginePrivate::nativeSendDatagram(const char *data, qint64 l
ssize_t sentBytes;
do {
- sentBytes = ::sendto(socketDescriptor, data, len,
- 0, sockAddrPtr, sockAddrSize);
+ sentBytes = qt_safe_sendto(socketDescriptor, data, len,
+ 0, sockAddrPtr, sockAddrSize);
} while (sentBytes == -1 && errno == EINTR);
if (sentBytes < 0) {