Lines Matching refs:copy
419 #define NG_COPYMESSAGE(copy, msg, how) \ argument
421 (copy) = malloc(sizeof(struct ng_mesg) \
423 if ((copy) == NULL) \
425 (copy)->header.version = NG_VERSION; \
426 (copy)->header.arglen = (msg)->header.arglen; \
427 (copy)->header.token = (msg)->header.token; \
428 (copy)->header.typecookie = (msg)->header.typecookie; \
429 (copy)->header.cmd = (msg)->header.cmd; \
430 (copy)->header.flags = (msg)->header.flags; \
431 bcopy((msg)->header.cmdstr, (copy)->header.cmdstr, \
432 sizeof((copy)->header.cmdstr)); \
434 bcopy((msg)->data, (copy)->data, (msg)->header.arglen); \