Esempio n. 1
0
FCGI_FILE *FCGI_fdopen(int fd, const char *mode)
{
#ifndef _WIN32
    return FCGI_OpenFromFILE(fdopen(fd, mode));
#else
    return NULL;
#endif
}
Esempio n. 2
0
FCGI_FILE *FCGI_popen(const char *cmd, const char *type)
{
    FILE * file = popen(cmd, type);
    FCGI_FILE * fcgi_file = FCGI_OpenFromFILE(file);

    if (file && !fcgi_file)
        pclose(file);

    return fcgi_file;
}
Esempio n. 3
0
FCGI_FILE *FCGI_fdopen(int fd, const char *mode)
{
    FILE * file = fdopen(fd, mode);
    FCGI_FILE * fcgi_file = FCGI_OpenFromFILE(file);

    if (file && !fcgi_file)
        fclose(file);

    return fcgi_file;
}
Esempio n. 4
0
/*
 *----------------------------------------------------------------------
 *
 * FCGI_tmpfile --
 *
 *       Wrappers for function defined in H&S Section 15.16
 *
 *----------------------------------------------------------------------
 */
FCGI_FILE *FCGI_tmpfile(void)
{
    FILE * file = tmpfile();
    FCGI_FILE * fcgi_file = FCGI_OpenFromFILE(file);

    if (file && !fcgi_file)
        fclose(file);

    return fcgi_file;
}
Esempio n. 5
0
/*
 *----------------------------------------------------------------------
 *
 * FCGI_fopen, FCGI_fclose, FCGI_fflush, FCGI_freopen --
 *
 *       Wrappers for functions defined in H&S Section 15.2
 *
 *----------------------------------------------------------------------
 */
FCGI_FILE *FCGI_fopen(const char *path, const char *mode)
{
    FILE * file = fopen(path, mode);
    FCGI_FILE * fcgi_file = FCGI_OpenFromFILE(file);

    if (file && !fcgi_file)
        fclose(file);

    return fcgi_file;
}
Esempio n. 6
0
FCGI_FILE *FCGI_popen(const char *cmd, const char *type)
{
    return FCGI_OpenFromFILE(popen(cmd, type));
}
Esempio n. 7
0
FCGI_FILE *FCGI_fdopen(int fd, const char *mode)
{
    return FCGI_OpenFromFILE(fdopen(fd, mode));
}
Esempio n. 8
0
FCGI_FILE *FCGI_fopen(const char *path, const char *mode)
{
    return FCGI_OpenFromFILE(fopen(path, mode));
}
Esempio n. 9
0
/*
 *----------------------------------------------------------------------
 *
 * FCGI_tmpfile --
 *
 *       Wrappers for function defined in H&S Section 15.16
 *
 *----------------------------------------------------------------------
 */
FCGI_FILE *FCGI_tmpfile(void)
{
	return FCGI_OpenFromFILE(tmpfile());
}