Lines Matching refs:reply
118 struct ng_mesg *reply, *binary, *ascii; in NgSendAsciiMsg() local
164 if (NgAllocRecvMsg(cs, &reply, NULL) < 0) in NgSendAsciiMsg()
168 binary = (struct ng_mesg *)reply->data; in NgSendAsciiMsg()
173 free(reply); in NgSendAsciiMsg()
177 free(reply); in NgSendAsciiMsg()
351 NgRecvAsciiMsg(int cs, struct ng_mesg *reply, size_t replen, char *path) in NgRecvAsciiMsg() argument
358 bufSize = 2 * sizeof(*reply) + replen; in NgRecvAsciiMsg()
367 memcpy(reply, msg, sizeof(*msg)); in NgRecvAsciiMsg()
385 strncpy(reply->data, ascii->data, ascii->header.arglen); in NgRecvAsciiMsg()
396 NgAllocRecvAsciiMsg(int cs, struct ng_mesg **reply, char *path) in NgAllocRecvAsciiMsg() argument
408 (*reply = malloc(len)) == NULL) in NgAllocRecvAsciiMsg()
410 if ((len = NgRecvAsciiMsg(cs, *reply, len, path)) < 0) in NgAllocRecvAsciiMsg()
411 free(*reply); in NgAllocRecvAsciiMsg()