int qemu_pipe(int pipefd[2])

{

    int ret;



#ifdef CONFIG_PIPE2

    ret = pipe2(pipefd, O_CLOEXEC);

#else

    ret = pipe(pipefd);

    if (ret == 0) {

        qemu_set_cloexec(pipefd[0]);

        qemu_set_cloexec(pipefd[1]);

    }

#endif



    return ret;

}

int qemu_pipe(int pipefd[2])

{

    int ret;



#ifdef CONFIG_PIPE2

    ret = pipe2(pipefd, O_CLOEXEC);

#else

    ret = pipe(pipefd);

    if (ret == 0) {

        qemu_set_cloexec(pipefd[0]);

        qemu_set_cloexec(pipefd[1]);

    }

#endif



    return ret;

}

#else #endif #else #endif #else #endif
int FUNC_0(int VAR_0[2])

{

    int VAR_1;



#ifdef CONFIG_PIPE2

    VAR_1 = pipe2(VAR_0, O_CLOEXEC);

#else

    VAR_1 = pipe(VAR_0);

    if (VAR_1 == 0) {

        qemu_set_cloexec(VAR_0[0]);

        qemu_set_cloexec(VAR_0[1]);

    }

#endif



    return VAR_1;

}

int FUNC_0(int VAR_0[2])
{ int VAR_1; #ifdef CONFIG_PIPE2
VAR_1 = pipe2(VAR_0, O_CLOEXEC); #else
VAR_1 = pipe(VAR_0); if (VAR_1 == 0) { qemu_set_cloexec(VAR_0[0]); qemu_set_cloexec(VAR_0[1]); } #endif
return VAR_1; }