Lines Matching refs:err
66 atf_error_t err;
75 err = atf_libc_error(errno, "Failed to create pipe");
77 err = atf_no_error();
81 err = atf_no_error();
83 return err;
274 atf_error_t err;
278 err = atf_libc_error(errno, "Failed waiting for process %d",
282 err = atf_process_status_init(s, status);
285 return err;
316 atf_error_t err;
320 err = atf_libc_error(errno, "Could not allocate file descriptor");
323 err = atf_no_error();
326 err = atf_no_error();
328 return err;
335 atf_error_t err;
340 err = safe_dup(sp->m_pipefds[1], procfd);
343 err = atf_libc_error(errno, "Cannot connect descriptor %d to %d",
346 err = atf_no_error();
348 err = atf_no_error();
350 err = safe_dup(sp->m_sb->m_fd, procfd);
355 err = atf_libc_error(errno, "Could not create %s",
358 err = safe_dup(aux, procfd);
359 if (atf_is_error(err))
364 err = atf_no_error();
367 return err;
399 atf_error_t err;
401 err = atf_process_child_init(c);
402 if (atf_is_error(err))
411 return err;
428 atf_error_t err;
430 err = child_connect(outsp, STDOUT_FILENO);
431 if (atf_is_error(err))
434 err = child_connect(errsp, STDERR_FILENO);
435 if (atf_is_error(err))
442 if (atf_is_error(err)) {
445 atf_error_format(err, buf, sizeof(buf));
447 atf_error_free(err);
462 atf_error_t err;
467 err = stream_prepare_init(&outsp, outsb);
468 if (atf_is_error(err))
471 err = stream_prepare_init(&errsp, errsb);
472 if (atf_is_error(err))
477 err = atf_libc_error(errno, "Failed to fork");
485 err = atf_no_error();
487 err = do_parent(c, pid, &outsp, &errsp);
488 if (atf_is_error(err))
500 return err;
509 atf_error_t err;
512 err = atf_process_stream_init_inherit(inheritsb);
513 if (!atf_is_error(err))
516 err = atf_no_error();
520 return err;
530 atf_error_t err;
535 err = init_stream_w_default(outsb, &inherit_outsb, &real_outsb);
536 if (atf_is_error(err))
540 err = init_stream_w_default(errsb, &inherit_errsb, &real_errsb);
541 if (atf_is_error(err))
544 err = fork_with_streams(c, start, real_outsb, real_errsb, v);
552 return err;
568 atf_error_t err;
573 err = atf_no_memory_error();
585 err = atf_no_error();
589 return err;
623 atf_error_t err;
632 err = atf_process_fork(&c, do_exec, outsb, errsb, &ea);
633 if (atf_is_error(err))
637 err = atf_process_child_wait(&c, s);
638 if (atf_is_error(err)) {
639 INV(atf_error_is(err, "libc") && atf_libc_error_code(err) == EINTR);
640 atf_error_free(err);
645 return err;
656 atf_error_t err;
665 err = list_to_array(argv, &argv2);
666 if (atf_is_error(err))
669 err = atf_process_exec_array(s, prog, argv2, outsb, errsb, prehook);
673 return err;