Searched refs:rstrm (Results 1 – 2 of 2) sorted by relevance
153 RECSTREAM *rstrm = malloc(sizeof (RECSTREAM)); in xdrrec_create() local159 if (rstrm == NULL) { in xdrrec_create()171 rstrm->sendsize = fix_buf_size(sendsize); in xdrrec_create()172 rstrm->recvsize = fix_buf_size(recvsize); in xdrrec_create()173 rstrm->out_base = malloc(rstrm->sendsize); in xdrrec_create()174 if (rstrm->out_base == NULL) { in xdrrec_create()176 free(rstrm); in xdrrec_create()179 rstrm->in_base = malloc(rstrm->recvsize); in xdrrec_create()180 if (rstrm->in_base == NULL) { in xdrrec_create()182 free(rstrm->out_base); in xdrrec_create()[all …]
134 RECSTREAM *rstrm = (RECSTREAM *)mem_alloc(sizeof (RECSTREAM)); in xdrrec_create() local135 if (rstrm == NULL) { in xdrrec_create()146 rstrm->sendsize = sendsize = fix_buf_size(sendsize); in xdrrec_create()147 rstrm->recvsize = recvsize = fix_buf_size(recvsize); in xdrrec_create()148 rstrm->the_buffer = mem_alloc(sendsize + recvsize + BYTES_PER_XDR_UNIT); in xdrrec_create()149 if (rstrm->the_buffer == NULL) { in xdrrec_create()153 for (rstrm->out_base = rstrm->the_buffer; in xdrrec_create()154 (uintptr_t)rstrm->out_base % BYTES_PER_XDR_UNIT != 0; in xdrrec_create()155 rstrm->out_base++); in xdrrec_create()156 rstrm->in_base = rstrm->out_base + sendsize; in xdrrec_create()[all …]