static int pipe_open(URLContext *h, const char *filename, int flags)

{

    int fd;



    if (flags & URL_WRONLY) {

        fd = 1;

    } else {

        fd = 0;

    }

#if defined(__MINGW32__) || defined(CONFIG_OS2) || defined(__CYGWIN__)

    setmode(fd, O_BINARY);

#endif

    h->priv_data = (void *)(size_t)fd;

    h->is_streamed = 1;

    return 0;

}

static int pipe_open(URLContext *h, const char *filename, int flags)

{

    int fd;



    if (flags & URL_WRONLY) {

        fd = 1;

    } else {

        fd = 0;

    }

#if defined(__MINGW32__) || defined(CONFIG_OS2) || defined(__CYGWIN__)

    setmode(fd, O_BINARY);

#endif

    h->priv_data = (void *)(size_t)fd;

    h->is_streamed = 1;

    return 0;

}

static int FUNC_0(URLContext *VAR_0, const char *VAR_1, int VAR_2)

{

    int VAR_3;



    if (VAR_2 & URL_WRONLY) {

        VAR_3 = 1;

    } else {

        VAR_3 = 0;

    }

#if defined(__MINGW32__) || defined(CONFIG_OS2) || defined(__CYGWIN__)

    setmode(VAR_3, O_BINARY);

#endif

    VAR_0->priv_data = (void *)(size_t)VAR_3;

    VAR_0->is_streamed = 1;

    return 0;

}

static int FUNC_0(URLContext *VAR_0, const char *VAR_1, int VAR_2)
{ int VAR_3; if (VAR_2 & URL_WRONLY) { VAR_3 = 1; } else { VAR_3 = 0; } #if defined(__MINGW32__) || defined(CONFIG_OS2) || defined(__CYGWIN__)
setmode(VAR_3, O_BINARY); #endif
VAR_0->priv_data = (void *)(size_t)VAR_3; VAR_0->is_streamed = 1; return 0; }