Lines Matching refs:reply
92 struct ng_mesg *reply, *binary, *ascii; in NgSendAsciiMsg() local
138 if (NgAllocRecvMsg(cs, &reply, NULL) < 0) in NgSendAsciiMsg()
142 binary = (struct ng_mesg *)reply->data; in NgSendAsciiMsg()
147 free(reply); in NgSendAsciiMsg()
151 free(reply); in NgSendAsciiMsg()
318 NgRecvAsciiMsg(int cs, struct ng_mesg *reply, size_t replen, char *path) in NgRecvAsciiMsg() argument
325 bufSize = 2 * sizeof(*reply) + replen; in NgRecvAsciiMsg()
334 memcpy(reply, msg, sizeof(*msg)); in NgRecvAsciiMsg()
352 strncpy(reply->data, ascii->data, ascii->header.arglen); in NgRecvAsciiMsg()
363 NgAllocRecvAsciiMsg(int cs, struct ng_mesg **reply, char *path) in NgAllocRecvAsciiMsg() argument
370 (*reply = malloc(len)) == NULL) in NgAllocRecvAsciiMsg()
372 if ((len = NgRecvAsciiMsg(cs, *reply, len, path)) < 0) in NgAllocRecvAsciiMsg()
373 free(*reply); in NgAllocRecvAsciiMsg()