Lines Matching refs:reply
94 struct ng_mesg *reply, *binary, *ascii; in NgSendAsciiMsg() local
140 if (NgAllocRecvMsg(cs, &reply, NULL) < 0) in NgSendAsciiMsg()
144 binary = (struct ng_mesg *)reply->data; in NgSendAsciiMsg()
149 free(reply); in NgSendAsciiMsg()
153 free(reply); in NgSendAsciiMsg()
320 NgRecvAsciiMsg(int cs, struct ng_mesg *reply, size_t replen, char *path) in NgRecvAsciiMsg() argument
327 bufSize = 2 * sizeof(*reply) + replen; in NgRecvAsciiMsg()
336 memcpy(reply, msg, sizeof(*msg)); in NgRecvAsciiMsg()
354 strncpy(reply->data, ascii->data, ascii->header.arglen); in NgRecvAsciiMsg()
365 NgAllocRecvAsciiMsg(int cs, struct ng_mesg **reply, char *path) in NgAllocRecvAsciiMsg() argument
372 (*reply = malloc(len)) == NULL) in NgAllocRecvAsciiMsg()
374 if ((len = NgRecvAsciiMsg(cs, *reply, len, path)) < 0) in NgAllocRecvAsciiMsg()
375 free(*reply); in NgAllocRecvAsciiMsg()