Lines Matching refs:descriptor
250 CSDescriptor_t *descriptor = PR_NEW(CSDescriptor_t);
286 memset(descriptor, 0, sizeof(*descriptor));
287 descriptor->size = PR_htonl(descbytes = rand() % clipping);
289 descriptor->filename, sizeof(descriptor->filename),
293 ("\tClient(0x%p): sending descriptor for %u bytes\n", me, descbytes));
295 fd, descriptor, sizeof(*descriptor), SEND_FLAGS, timeout);
303 ("\tClient(0x%p): send descriptor timeout\n", me));
307 TEST_ASSERT(sizeof(*descriptor) == bytes);
401 PR_DELETE(descriptor);
416 CSDescriptor_t *descriptor = PR_NEW(CSDescriptor_t);
423 fd, descriptor, sizeof(*descriptor), RECV_FLAGS, timeout);
444 descbytes = PR_ntohl(descriptor->size);
445 TEST_ASSERT(sizeof(*descriptor) == bytes);
449 ("\t\tProcessRequest(0x%p): read descriptor {%d, %s}\n",
450 me, descbytes, descriptor->filename));
453 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);
628 drv = PR_Delete(descriptor->filename);
635 PR_DELETE(descriptor);