ReactOS 0.4.15-dev-5672-gf73ac17
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}
EXPORT int _cvmod(char *mode, int *omode, int *flag) const
Definition: cvmod.c:27
#define NULL
Definition: types.h:112
EXPORT FILE * _fcons(FILE *fd, int f, int flag)
Definition: fcons.c:53
GLenum mode
Definition: glext.h:6217
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
#define FI_CLOSE
Definition: schilyio.h:93
#define _openfd(name, omode)
Definition: schilyio.h:75
Definition: name.c:39
int ret

Referenced by errconfig().