Lines Matching defs:cmdbuf
59 static Boolean ConstructCommand(char *cmdbuf, const char *path,
348 char tmp[BUFSIZ], cmdbuf[BUFSIZ], error_buf[BUFSIZ];
387 snprintf(cmdbuf, sizeof(cmdbuf), GUNZIP_FORMAT, filename, output);
393 snprintf(cmdbuf, sizeof(cmdbuf), BUNZIP2_FORMAT, filename, output);
399 snprintf(cmdbuf, sizeof(cmdbuf), UNLZMA_FORMAT, filename, output);
402 snprintf(cmdbuf, sizeof(cmdbuf), UNCOMPRESS_FORMAT, filename, output);
403 if (system(cmdbuf) == 0) /* execute search. */
407 "Error while uncompressing, command was: %s", cmdbuf);
426 char tmp[BUFSIZ], cmdbuf[BUFSIZ], error_buf[BUFSIZ];
457 snprintf(cmdbuf, sizeof(cmdbuf), "%s %s >> %s", SFORMAT, filename, output);
458 if (system(cmdbuf) == 0) /* execute search. */
462 "Error while converting from sgml, command was: %s", cmdbuf);
486 char cmdbuf[BUFSIZ], tmp[BUFSIZ], filename[BUFSIZ], error_buf[BUFSIZ];
561 snprintf(cmdbuf, sizeof(cmdbuf), "cd %s ; %s %s %s >> %s %s", path, TBL,
565 if (!ConstructCommand(cmdbuf, path, filename, man_globals->tempfile)) {
573 if (system(cmdbuf) != 0) { /* execute search. */
575 "Something went wrong trying to run the command: %s", cmdbuf);
631 * Arguments: cmdbuf - the buffer into which to write the command
640 ConstructCommand(char *cmdbuf, const char *path,
644 int used = snprintf(cmdbuf, BUFSIZ, "MAN_KEEP_FORMATTING=x GROFF_NO_SGR= "
652 * sprintf(cmdbuf,"cd %s ; %s %s %s > %s %s", path, TBL,
675 char *c = cmdbuf; /* current posn in buffer */