ReactOS  0.4.12-dev-90-g2e2e63e
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.

Referenced by errconfig().

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
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint 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 GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean flag
Definition: glfuncs.h:72
int ret
EXPORT int _cvmod(char *mode, int *omode, int *flag) const
Definition: cvmod.c:27
Definition: name.c:36