Lines Matching defs:tran
96 LIST(struct ctl_tran) tran;
175 INIT_LIST(ctx->tran);
239 struct ctl_tran *tran;
257 tran = new_tran(ctx, donefunc, uap, 1);
258 if (tran == NULL)
260 if (ctl_bufget(&tran->outbuf, ctx->logger) < 0)
262 memcpy(tran->outbuf.text, cmd, len);
263 tran->outbuf.used = len;
264 for (pc = tran->outbuf.text, n = 0; n < tran->outbuf.used; pc++, n++)
286 APPEND(ctx->tran, new, link);
295 struct ctl_tran *tran;
310 tran = HEAD(ctx->wtran);
311 UNLINK(ctx->wtran, tran, wlink);
320 *iovp++ = evConsIovec(tran->outbuf.text, tran->outbuf.used);
324 write_done, tran, &ctx->wrID) < 0) {
349 REQUIRE(EMPTY(ctx->tran));
375 for (this = HEAD(ctx->tran); this != NULL; this = next) {
410 struct ctl_tran *tran;
426 tran = new_tran(ctx, ctx->donefunc, ctx->uap, 0);
427 if (tran == NULL) {
444 struct ctl_tran *tran = (struct ctl_tran *)uap;
445 struct ctl_cctx *ctx = tran->ctx;
453 ctl_bufput(&tran->outbuf);
489 struct ctl_tran *tran;
499 REQUIRE(!EMPTY(ctx->tran));
500 tran = HEAD(ctx->tran);
544 (*tran->donefunc)(ctx, tran->uap, ctx->inbuf.text,
552 UNLINK(ctx->tran, tran, link);
553 memput(tran, sizeof *tran);