Lines Matching refs:ctx
33 file_opts_t *ctx;
35 ctx = calloc(1, sizeof(*ctx));
36 if (ctx == NULL)
40 ctx->ref = 1;
42 ctx->raw = 1;
43 ctx->path = strdup(strings[0] + 6);
44 ctx->fp = fopen(ctx->path, "ab");
46 ctx->path = strdup(strings[0] + 7);
47 ctx->fp = fopen(ctx->path, "a");
49 free(ctx);
50 ctx = NULL;
53 free(ctx);
54 ctx = NULL;
57 return ctx;
76 file_dup(ctx)
77 void *ctx;
79 file_opts_t *f = ctx;
87 file_print(ctx)
88 void *ctx;
90 file_opts_t *file = ctx;
101 file_destroy(ctx)
102 void *ctx;
104 file_opts_t *file = ctx;
117 file_send(ctx, msg)
118 void *ctx;
121 file_opts_t *file = ctx;