/* initialize _native_null_in_pipe to allow for reading from stdin  */
void _native_null_in(char *stdiotype)
/* initialize _native_null_in_pipe to allow for reading from stdin  */
void _native_null_in(char *stdiotype)
{
    if (real_pipe(_native_null_in_pipe) == -1) {
        err(EXIT_FAILURE, "_native_null_in(): pipe()");
    }
    if (strcmp(stdiotype, "stdio") == 0) {
        return;
    }
    if (real_dup2(_native_null_in_pipe[0], STDIN_FILENO) == -1) {
        err(EXIT_FAILURE, "_native_null_in: dup2(STDIN_FILENO)");
    }
}