ReactOS  0.4.14-dev-50-g13bb5e2
fileopen.c File Reference
#include "schilyio.h"
Include dependency graph for fileopen.c:

Go to the source code of this file.

Functions

EXPORT FILEfileopen (char *name, const char *mode) const
 

Function Documentation

◆ fileopen()

EXPORT FILE* fileopen ( char name,
const char mode 
) const

Definition at line 20 of file fileopen.c.

23 {
24  int ret;
25  int omode = 0;
26  int flag = 0;
27 
28  if (!_cvmod(mode, &omode, &flag))
29  return ((FILE *)NULL);
30 
31  if ((ret = _openfd(name, omode)) < 0)
32  return ((FILE *)NULL);
33 
34  return (_fcons((FILE *)0, ret, flag | FI_CLOSE));
35 }
#define FI_CLOSE
Definition: schilyio.h:93
#define _openfd(name, omode)
Definition: schilyio.h:75
EXPORT FILE * _fcons(FILE *fd, int f, int flag)
Definition: fcons.c:53
smooth NULL
Definition: ftsmooth.c:416
int ret
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
Definition: glfuncs.h:52
EXPORT int _cvmod(char *mode, int *omode, int *flag) const
Definition: cvmod.c:27
GLenum mode
Definition: glext.h:6217
Definition: name.c:36

Referenced by errconfig().