Lines Matching defs:s2
206 static FILE *save_output(const char *s0, const char *s1, const char *s2)
217 if (s2 && *s2 == 0)
218 s2 = 0;
221 if (!s0 && !s1 && !s2)
254 if (fd < 0 && s2)
255 fd = open(s2, O_WRONLY|O_CREAT|O_TRUNC, 0644);
285 struct string s, s1, s2;
289 s.s = s1.s = s2.s = 0;
318 alloc_string(&s2, strlen(log_dir) + strlen(s.s) + 2);
319 append_string(&s2, log_dir, 0);
320 append_string(&s2, "/", 1);
321 append_string(&s2, s.s, 0);
322 printf("%s\n", s2.s);
329 if (!ctx->logf && s2.s)
330 ctx->logf = fopen(s2.s, "w");
332 ctx->logf = save_output(s0, s1.s, s2.s);
337 free(s2.s);