Lines Matching defs:descriptor
252 CSDescriptor_t *descriptor = PR_NEW(CSDescriptor_t);
287 memset(descriptor, 0, sizeof(*descriptor));
288 descriptor->size = PR_htonl(descbytes = rand() % clipping);
290 descriptor->filename, sizeof(descriptor->filename),
294 ("\tClient(0x%p): sending descriptor for %u bytes\n", me, descbytes));
296 fd, descriptor, sizeof(*descriptor), SEND_FLAGS, timeout);
304 ("\tClient(0x%p): send descriptor timeout\n", me));
308 TEST_ASSERT(sizeof(*descriptor) == bytes);
402 PR_DELETE(descriptor);
417 CSDescriptor_t *descriptor = PR_NEW(CSDescriptor_t);
424 fd, descriptor, sizeof(*descriptor), RECV_FLAGS, timeout);
445 descbytes = PR_ntohl(descriptor->size);
446 TEST_ASSERT(sizeof(*descriptor) == bytes);
450 ("\t\tProcessRequest(0x%p): read descriptor {%d, %s}\n",
451 me, descbytes, descriptor->filename));
454 descriptor->filename, (PR_CREATE_FILE | PR_WRONLY), 0666);
543 ("\t\tProcessRequest(0x%p): opening %s\n", me, descriptor->filename));
544 file = PR_Open(descriptor->filename, PR_RDONLY, 0);
627 drv = PR_Delete(descriptor->filename);
634 PR_DELETE(descriptor);