Lines Matching defs:pager

307 	 * If there is a pager process running, we are returning to the
309 * pager handle it instead of writing it directly from this process.
312 * If there is a pager process running, and we are not returning
313 * to the caller, then end the pager process now, before we generate
314 * any new output. This allows for any text buffered in the pager
317 if (state.pager.fptr != NULL) {
320 stream = state.pager.fptr;
391 * Start an output pager process for elfedit_printf()/elfedit_write() to use.
394 * If this elfedit session is not interactive, then no pager is
407 * If there is no pager process running, start one.
409 * won't use a pager in batch mode.
412 (state.pager.fptr == NULL)) {
428 state.pager.fptr = popen(cmd, MSG_ORIG(MSG_STR_W));
429 if (state.pager.fptr == NULL) {
441 * If there is a pager process present, close it out.
453 if (state.pager.fptr != NULL) {
454 if (pclose(state.pager.fptr) == -1)
457 state.pager.fptr = NULL;
464 * formatting. Uses the pager process if one has been started, or
473 int pager;
477 * If there is a pager process, then use it. Otherwise write
480 pager = (state.pager.fptr != NULL);
481 fptr = pager ? state.pager.fptr : stdout;
487 /* Did we fail because a child pager process has exited? */
488 broken_pipe = pager && (err < 0) && (errno == EPIPE);
494 * the pager process. The message code handles that as a standard
497 * We handle failure due to an exited pager process differently
512 * In order to ensure that such output is sent to the pager pipe
525 int pager;
537 * If there is a pager process, then use it. Otherwise write
540 pager = (state.pager.fptr != NULL);
541 fptr = pager ? state.pager.fptr : stdout;
549 /* Did we fail because a child pager process has exited? */
550 broken_pipe = (err < 0) && pager && (errno == EPIPE);
556 * the pager process. The message code handles that as a standard
559 * We handle failure due to an exited pager process differently
574 * Uses the pager process if one has been started, or
584 * If there is a pager process, then use it. Otherwise write
587 fptr = (state.pager.fptr == NULL) ? stdout : state.pager.fptr;
2194 /* If a pager was started, wrap it up */
3639 * If pager process exits before we are done