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()
151 free(reply); in NgSendAsciiMsg()
155 free(reply); in NgSendAsciiMsg()
322 NgRecvAsciiMsg(int cs, struct ng_mesg *reply, size_t replen, char *path) in NgRecvAsciiMsg() argument
329 bufSize = 2 * sizeof(*reply) + replen; in NgRecvAsciiMsg()
338 memcpy(reply, msg, sizeof(*msg)); in NgRecvAsciiMsg()
356 strncpy(reply->data, ascii->data, ascii->header.arglen); in NgRecvAsciiMsg()
367 NgAllocRecvAsciiMsg(int cs, struct ng_mesg **reply, char *path) in NgAllocRecvAsciiMsg() argument
374 (*reply = malloc(len)) == NULL) in NgAllocRecvAsciiMsg()
376 if ((len = NgRecvAsciiMsg(cs, *reply, len, path)) < 0) in NgAllocRecvAsciiMsg()
377 free(*reply); in NgAllocRecvAsciiMsg()