Lines Matching refs:reply
91 struct ng_mesg *reply, *binary, *ascii; in NgSendAsciiMsg() local
137 if (NgAllocRecvMsg(cs, &reply, NULL) < 0) in NgSendAsciiMsg()
141 binary = (struct ng_mesg *)reply->data; in NgSendAsciiMsg()
146 free(reply); in NgSendAsciiMsg()
150 free(reply); in NgSendAsciiMsg()
317 NgRecvAsciiMsg(int cs, struct ng_mesg *reply, size_t replen, char *path) in NgRecvAsciiMsg() argument
324 bufSize = 2 * sizeof(*reply) + replen; in NgRecvAsciiMsg()
333 memcpy(reply, msg, sizeof(*msg)); in NgRecvAsciiMsg()
351 strncpy(reply->data, ascii->data, ascii->header.arglen); in NgRecvAsciiMsg()
362 NgAllocRecvAsciiMsg(int cs, struct ng_mesg **reply, char *path) in NgAllocRecvAsciiMsg() argument
369 (*reply = malloc(len)) == NULL) in NgAllocRecvAsciiMsg()
371 if ((len = NgRecvAsciiMsg(cs, *reply, len, path)) < 0) in NgAllocRecvAsciiMsg()
372 free(*reply); in NgAllocRecvAsciiMsg()