Searched defs:nbytes (Results 1 - 25 of 31) sorted by relevance

12

/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/
H A Dopenfile.c56 PRInt32 nbytes; local
67 nbytes = PR_Read(fd, buf, sizeof(buf));
77 PR_Write(fd, buf, nbytes);
86 PR_Write(fd, buf, nbytes);
95 PR_Write(fd, buf, nbytes);
104 PR_Write(fd, buf, nbytes);
113 PR_Write(fd, buf, nbytes);
122 PR_Write(fd, buf, nbytes);
131 PR_Write(fd, buf, nbytes);
140 PR_Write(fd, buf, nbytes);
[all...]
H A Dprimblok.c73 PRInt32 nbytes; local
89 nbytes = PR_Write(fd, buf, sizeof(buf));
91 if (nbytes != sizeof(buf)) {
92 fprintf(stderr, "PR_Write returned %d\n", nbytes);
H A Dbigfile2.c56 PRInt32 nbytes; local
79 nbytes = PR_Write(fd, buf, sizeof(buf));
80 if (nbytes != sizeof(buf)) {
105 if (ReadFile(hFile, buf, sizeof(buf), &nbytes, NULL) == 0) {
109 PR_ASSERT(nbytes == sizeof(buf));
H A Dbigfile3.c55 PRInt32 nbytes; local
80 if (WriteFile(hFile, buf, sizeof(buf), &nbytes, NULL) == 0) {
84 PR_ASSERT(nbytes == sizeof(buf));
104 nbytes = PR_Read(fd, buf, sizeof(buf));
105 if (nbytes != sizeof(buf)) {
H A Dioconthr.c53 PRInt32 nbytes; local
56 nbytes = PR_Recv(fd, buf, sizeof(buf), 0, PR_SecondsToInterval(20));
57 if (nbytes == -1) {
74 fprintf(stderr, "PR_Recv received %d bytes!?\n", nbytes);
H A Dzerolen.c82 PRInt32 nbytes; local
107 while ((nbytes = PR_Read(sock, buf, sizeof(buf))) > 0) {
110 if (-1 == nbytes) {
128 PRInt32 nbytes; local
171 while ((nbytes = write(osfd, buf, sizeof(buf))) != -1) {
182 nbytes = PR_Writev(acceptSock, &iov, 1, PR_INTERVAL_NO_TIMEOUT);
183 if (nbytes != 0) {
184 fprintf(stderr, "PR_Writev should return 0 but returns %d\n", nbytes);
212 while ((nbytes = write(osfd, buf, sizeof(buf))) != -1) {
221 nbytes
[all...]
H A Dfileio.c155 PRUintn nbytes; /* number of bytes in this buffer */ member in struct:__anon17255
161 PRInt32 nbytes; local
165 nbytes = PR_Read((PRFileDesc*)arg, buf[i].data, BSIZE);
166 if (nbytes >= 0) {
167 buf[i].nbytes = nbytes;
171 } while (nbytes > 0);
177 PRInt32 nbytes; local
181 nbytes = buf[i].nbytes;
[all...]
H A Dmultiacc.c96 PRInt32 nbytes; local
201 nbytes = PR_Read(clientSock, buf, sizeof(buf));
202 if (nbytes != 0) {
203 fprintf(stderr, "expected 0 bytes but got %d bytes\n", nbytes);
H A Dpeek.c75 PRInt32 nbytes; local
87 nbytes = PR_Recv(sock, buf, recv_amount[i],
89 if (-1 == nbytes) {
93 if (send_amount[i] != nbytes) {
94 fprintf(stderr, "PR_Recv returned %d, absurd!\n", nbytes);
97 for (j = 0; j < nbytes; j++) {
107 nbytes = PR_Recv(sock, buf, recv_amount[i],
109 if (-1 == nbytes) {
113 if (send_amount[i] != nbytes) {
114 fprintf(stderr, "PR_Recv returned %d, absurd!\n", nbytes);
175 PRInt32 nbytes; local
[all...]
H A Dsendzlf.c64 PRInt32 nbytes; local
83 while ((nbytes = PR_Read(sock, bufPtr, sizeof(buf)-ntotal)) > 0) {
84 ntotal += nbytes;
85 bufPtr += nbytes;
87 if (-1 == nbytes) {
115 PRInt32 nbytes; local
139 nbytes = PR_SendFile(acceptSock, &sfd, PR_TRANSMITFILE_KEEP_OPEN,
141 if (HEADER_LEN+TRAILER_LEN != nbytes) {
143 HEADER_LEN+TRAILER_LEN, nbytes);
148 nbytes
[all...]
H A Dacceptread.c67 PRInt32 nbytes; local
100 nbytes = PR_Send(sock, GET, sizeof(GET), 0, PR_INTERVAL_NO_TIMEOUT);
101 if (nbytes == -1) PL_FPrintError(err_out, "PR_Send (client) failed");
103 nbytes = PR_Recv(sock, buf, sizeof(buf), 0, PR_INTERVAL_NO_TIMEOUT);
104 if (nbytes == -1) PL_FPrintError(err_out, "PR_Recv (client) failed");
107 PR_fprintf(std_out, "PR_Recv (client) succeeded: %d bytes\n", nbytes);
H A Dsem.c151 PRUintn nbytes; /* number of bytes in this buffer */ member in struct:__anon17266
157 size_t nbytes; local
161 nbytes = dread(0, buf[i].data, BSIZE);
162 buf[i].nbytes = nbytes;
165 } while (nbytes > 0);
171 size_t nbytes; local
175 nbytes = buf[i].nbytes;
176 if (nbytes >
[all...]
H A Dacceptreademu.c82 PRInt32 nbytes; local
115 nbytes = PR_Send(sock, GET, sizeof(GET), 0, PR_INTERVAL_NO_TIMEOUT);
116 if (nbytes == -1) PL_FPrintError(err_out, "PR_Send (client) failed");
118 nbytes = PR_Recv(sock, buf, sizeof(buf), 0, PR_INTERVAL_NO_TIMEOUT);
119 if (nbytes == -1) PL_FPrintError(err_out, "PR_Recv (client) failed");
122 PR_fprintf(std_out, "PR_Recv (client) succeeded: %d bytes\n", nbytes);
/vbox/src/VBox/Devices/Network/slirp/libalias/
H A Dalias_util.c81 int nbytes)
87 while (nbytes > 1) {
89 nbytes -= 2;
91 if (nbytes == 1) {
117 int nhdr, ntcp, nbytes; local
127 nbytes = ntcp;
129 while (nbytes > 1) {
131 nbytes -= 2;
133 if (nbytes == 1) {
80 LibAliasInternetChecksum(struct libalias *la __unused, u_short * ptr, int nbytes) argument
/vbox/src/VBox/GuestHost/OpenGL/util/
H A Dmem.c41 static void *_crAlloc( unsigned int nbytes )
43 DECLEXPORT(void) *crAlloc( unsigned int nbytes )
46 void *ret = malloc( nbytes );
48 crError( "Out of memory trying to allocate %d bytes!", nbytes );
54 void *crAllocDebug( unsigned int nbytes, const char *file, int line ) argument
57 if (nbytes >= THRESHOLD)
58 fprintf(stderr, "crAllocDebug(%d bytes) in %s at %d\n", nbytes, file, line);
59 return _crAlloc(nbytes);
61 return crAlloc(nbytes);
66 static void *_crCalloc( unsigned int nbytes )
80 crCallocDebug( unsigned int nbytes, const char *file, int line ) argument
[all...]
/vbox/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxFsDxe/test/
H A Dfsw_posix.c151 ssize_t fsw_posix_read(struct fsw_posix_file *file, void *buf, size_t nbytes) argument
156 buffer_size = nbytes;
/vbox/src/VBox/NetworkServices/NAT/
H A Dproxy_pollmgr.c245 pollmgr_chan_send(int slot, void *buf, size_t nbytes) argument
255 nsent = send(fd, buf, (int)nbytes, 0);
260 else if ((size_t)nsent != nbytes) {
/vbox/src/libs/xpcom18a4/nsprpub/lib/ds/
H A Dplarena.h77 PRUint32 nbytes; /* total bytes allocated */ member in struct:PLArenaStats
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/io/
H A Dpripv6.c204 PRInt32 nbytes; local
220 nbytes = sd->lower->methods->acceptread(
222 if (-1 == nbytes)
225 return nbytes;
233 return nbytes;
H A Dprlayer.c328 PRInt32 nbytes; local
349 nbytes = sd->lower->methods->acceptread(
351 if (-1 == nbytes)
354 return nbytes;
360 return nbytes;
365 return nbytes;
/vbox/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libctf/common/
H A Dctf_lib.c316 ssize_t nbytes; local
332 if ((nbytes = pread64(fd, &hdr.ctf, sizeof (hdr), 0)) <= 0)
333 return (ctf_set_open_errno(errp, nbytes < 0? errno : ECTF_FMT));
339 if (nbytes >= sizeof (ctf_preamble_t) &&
369 if (nbytes >= sizeof (Elf32_Ehdr) &&
389 if (nbytes < sizeof (GElf_Ehdr))
400 nbytes = sizeof (GElf_Shdr) * n;
402 if ((sp = malloc(nbytes)) == NULL)
412 nbytes = sizeof (Elf32_Shdr) * n;
414 if ((sp32 = malloc(nbytes))
[all...]
/vbox/src/libs/xpcom18a4/xpcom/typelib/xpidl/
H A Dxpidl_util.c47 xpidl_malloc(size_t nbytes) argument
49 void *p = malloc(nbytes);
/vbox/src/VBox/Devices/Network/slirp/
H A Dsocket.c743 DWORD nbytes; /* NB: can't use nread b/c of different size */ local
748 status = WSARecvFrom(so->s, iov, 2, &nbytes, &flags,
752 nread = nbytes;
/vbox/src/VBox/Additions/x11/x11include/fixesproto-4.0/X11/extensions/
H A Dxfixesproto.h390 CARD16 nbytes B16;
411 CARD16 nbytes B16;
442 CARD16 nbytes B16;
463 CARD16 nbytes; member in struct:__anon3281
/vbox/src/libs/xpcom18a4/xpcom/ds/
H A Dpldhash.c64 PL_DHashAllocTable(PLDHashTable *table, PRUint32 nbytes) argument
67 return RTMemAlloc(nbytes);
69 return malloc(nbytes);
221 PRUint32 nbytes; local
248 nbytes = capacity * entrySize;
250 table->entryStore = ops->allocTable(table, nbytes);
253 memset(table->entryStore, 0, nbytes);
460 PRUint32 entrySize, i, nbytes; local
479 nbytes = newCapacity * entrySize;
481 newEntryStore = table->ops->allocTable(table, nbytes);
[all...]

Completed in 4621 milliseconds

12