Searched defs:bytesRead (Results 1 - 19 of 19) sorted by relevance

/vbox/src/libs/xpcom18a4/ipc/ipcd/shared/src/
H A DipcMessage.cpp194 PRUint32 *bytesRead,
197 *bytesRead = 0;
212 *bytesRead = bufLen;
223 *bytesRead = count;
250 *bytesRead = bufLen;
276 *bytesRead += count;
192 ReadFrom(const char *buf, PRUint32 bufLen, PRUint32 *bytesRead, PRBool *complete) argument
/vbox/src/libs/xpcom18a4/ipc/ipcd/client/src/
H A DipcConnectionWin.cpp93 PRUint32 bytesRead; local
96 &bytesRead, &complete);
H A DipcConnectionUnix.cpp227 PRUint32 bytesRead; local
240 if (s->in_msg->ReadFrom(pdata, n, &bytesRead, &complete) != PR_SUCCESS)
247 PR_ASSERT(PRUint32(n) >= bytesRead);
248 n -= bytesRead;
249 pdata += bytesRead;
/vbox/src/libs/xpcom18a4/ipc/ipcd/daemon/src/
H A DipcdWin.cpp240 PRUint32 bytesRead; local
244 &bytesRead, &complete);
/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/
H A Dselect2.c159 PRInt32 bytesRead; local
194 bytesRead = PR_Recv(newSock, buf, 10, 0, PR_INTERVAL_NO_TIMEOUT);
197 if (debug_mode) printf("Recv completed with %d bytes, %s\n", bytesRead, buf);
241 PRInt32 bytesRead, rv, loops = 0; local
277 bytesRead = PR_Recv(newSock, buf, 10, 0, PR_INTERVAL_NO_TIMEOUT);
280 if (debug_mode) printf("Recv completed with %d bytes, %s\n", bytesRead, buf);
H A Dntioto.c127 PRIntn bytesRead; local
132 bytesRead = PR_AcceptRead( listenSock,
139 if ( bytesRead == -1 && PR_GetError() == PR_IO_TIMEOUT_ERROR )
142 if ( debug ) printf("Oops! read: %d, error: %d\n", bytesRead, PR_GetError());
H A Daccept.c108 static PRInt32 bytesRead; variable
273 bytesRead = PR_Recv(clientSock,
275 TEST_ASSERT(bytesRead == CLIENT_DATA);
279 bytesRead = PR_Recv(clientSock,
281 TEST_ASSERT(bytesRead == -1);
317 bytesRead = PR_Recv(clientSock,
319 TEST_ASSERT(bytesRead == CLIENT_DATA);
323 bytesRead = PR_Recv(clientSock,
325 TEST_ASSERT(bytesRead == -1);
H A Dserver_test.c176 PRInt32 bytesRead; local
203 bytesRead = PR_AcceptRead(listenSock,
210 if (bytesRead < 0) {
211 if (debug_mode) printf("\tServer error in accept (%d)\n", bytesRead);
215 if (debug_mode) DPRINTF("\tServer accepted connection (%d bytes)\n", bytesRead);
243 bytesToRead -= bytesRead;
245 bytesRead = PR_Recv(newSock,
250 if (bytesRead < 0) {
251 if (debug_mode) printf("\tServer error receiving data (%d)\n", bytesRead);
254 if (debug_mode) DPRINTF("\tServer received %d bytes\n", bytesRead);
[all...]
H A Dservr_kk.c142 PRInt32 bytesRead; local
169 bytesRead = PR_AcceptRead(listenSock,
176 if (bytesRead < 0) {
177 if (debug_mode) printf("\tServer error in accept (%d)\n", bytesRead);
181 if (debug_mode) DPRINTF("\tServer accepted connection (%d bytes)\n", bytesRead);
209 bytesToRead -= bytesRead;
211 bytesRead = PR_Recv(newSock,
216 if (bytesRead < 0) {
217 if (debug_mode) printf("\tServer error receiving data (%d)\n", bytesRead);
220 if (debug_mode) DPRINTF("\tServer received %d bytes\n", bytesRead);
[all...]
H A Dservr_ku.c143 PRInt32 bytesRead; local
170 bytesRead = PR_AcceptRead(listenSock,
177 if (bytesRead < 0) {
178 if (debug_mode) printf("\tServer error in accept (%d)\n", bytesRead);
182 if (debug_mode) DPRINTF("\tServer accepted connection (%d bytes)\n", bytesRead);
210 bytesToRead -= bytesRead;
212 bytesRead = PR_Recv(newSock,
217 if (bytesRead < 0) {
218 if (debug_mode) printf("\tServer error receiving data (%d)\n", bytesRead);
221 if (debug_mode) DPRINTF("\tServer received %d bytes\n", bytesRead);
[all...]
H A Dservr_uk.c145 PRInt32 bytesRead; local
172 bytesRead = PR_AcceptRead(listenSock,
179 if (bytesRead < 0) {
180 if (debug_mode) printf("\tServer error in accept (%d)\n", bytesRead);
184 if (debug_mode) DPRINTF("\tServer accepted connection (%d bytes)\n", bytesRead);
212 bytesToRead -= bytesRead;
214 bytesRead = PR_Recv(newSock,
219 if (bytesRead < 0) {
220 if (debug_mode) printf("\tServer error receiving data (%d)\n", bytesRead);
223 if (debug_mode) DPRINTF("\tServer received %d bytes\n", bytesRead);
[all...]
H A Dservr_uu.c143 PRInt32 bytesRead; local
170 bytesRead = PR_AcceptRead(listenSock,
177 if (bytesRead < 0) {
178 if (debug_mode) printf("\tServer error in accept (%d)\n", bytesRead);
182 if (debug_mode) DPRINTF("\tServer accepted connection (%d bytes)\n", bytesRead);
210 bytesToRead -= bytesRead;
212 bytesRead = PR_Recv(newSock,
217 if (bytesRead < 0) {
218 if (debug_mode) printf("\tServer error receiving data (%d)\n", bytesRead);
221 if (debug_mode) DPRINTF("\tServer received %d bytes\n", bytesRead);
[all...]
/vbox/src/libs/xpcom18a4/xpcom/io/
H A DnsInputStreamTee.cpp134 nsInputStreamTee::Read(char *buf, PRUint32 count, PRUint32 *bytesRead) argument
138 nsresult rv = mSource->Read(buf, count, bytesRead);
139 if (NS_FAILED(rv) || (*bytesRead == 0))
142 return TeeSegment(buf, *bytesRead);
149 PRUint32 *bytesRead)
156 return mSource->ReadSegments(WriteSegmentFun, this, count, bytesRead);
146 ReadSegments(nsWriteSegmentFun writer, void *closure, PRUint32 count, PRUint32 *bytesRead) argument
H A DnsBinaryStream.cpp377 PRUint32 bytesRead; local
379 rv = Read(NS_REINTERPRET_CAST(char*, aByte), sizeof(*aByte), &bytesRead);
381 if (bytesRead != 1)
390 PRUint32 bytesRead; local
392 rv = Read(NS_REINTERPRET_CAST(char*, a16), sizeof *a16, &bytesRead);
394 if (bytesRead != sizeof *a16)
404 PRUint32 bytesRead; local
406 rv = Read(NS_REINTERPRET_CAST(char*, a32), sizeof *a32, &bytesRead);
408 if (bytesRead != sizeof *a32)
418 PRUint32 bytesRead; local
465 PRUint32 length, bytesRead; local
578 PRUint32 length, bytesRead; local
608 PRUint32 bytesRead; local
[all...]
H A DnsNativeCharsetUtils.cpp1112 UInt32 bytesRead = 0, bytesWritten = 0; local
1119 &bytesRead,
1125 bytesLeft -= bytesRead;
1126 iter.advance(bytesRead / sizeof(UniChar));
1153 UInt32 bytesRead = 0, bytesWritten = 0; local
1160 &bytesRead,
1166 bytesLeft -= bytesRead;
1167 iter.advance(bytesRead);
H A DnsPipe3.cpp414 nsPipe::AdvanceReadCursor(PRUint32 bytesRead) argument
416 NS_ASSERTION(bytesRead, "dont call if no bytes read");
422 LOG(("III advancing read cursor by %u\n", bytesRead));
423 NS_ASSERTION(bytesRead <= mBuffer.GetSegmentSize(), "read too much");
425 mReadCursor += bytesRead;
428 mInput.ReduceAvailable(bytesRead);
H A DnsFastLoadFile.cpp275 PRUint32 bytesRead; local
277 rv = Read(NS_REINTERPRET_CAST(char*, aHeader), sizeof *aHeader, &bytesRead);
281 if (bytesRead != sizeof *aHeader ||
872 PRUint32 bytesRead;
873 rv = Read(NS_REINTERPRET_CAST(char*, aID->m3), sizeof aID->m3, &bytesRead);
877 if (bytesRead != sizeof aID->m3)
H A DnsLocalFileUnix.cpp819 PRInt32 bytesRead; local
821 while ((bytesRead = PR_Read(oldFD, buf, BUFSIZ)) > 0) {
823 totalRead += bytesRead;
827 PRInt32 bytesWritten = PR_Write(newFD, buf, bytesRead);
829 bytesRead = -1;
832 NS_ASSERTION(bytesWritten == bytesRead, "short PR_Write?");
849 if (bytesRead < 0)
/vbox/src/libs/xpcom18a4/java/src/
H A DnsFileStreams.cpp317 PRInt32 bytesRead = PR_Read(mFD, aBuf, aCount); local
318 if (bytesRead == -1) {
323 if (bytesRead == 0) {
328 *aResult = bytesRead;

Completed in 62 milliseconds