コード例 #1
0
ファイル: process_test.c プロジェクト: 274914765/C
static void capture_stream_process (void *v, atf_process_child_t * c)
{
    struct capture_stream *s = v;

    switch (s->m_base.m_type)
    {
        case stdout_type:
            (void) read_line (atf_process_child_stdout (c), &s->m_msg);
            break;
        case stderr_type:
            (void) read_line (atf_process_child_stderr (c), &s->m_msg);
            break;
        default:
            UNREACHABLE;
    }
}
コード例 #2
0
ファイル: process.cpp プロジェクト: Backspace7/minix
int
impl::child::stderr_fd(void)
{
    return atf_process_child_stderr(&m_child);
}