NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
mFILE.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdarg.h>
#include "cram/os.h"
#include "cram/mFILE.h"
#include "cram/vlen.h"

Go to the source code of this file.

Functions

mFILEmstdin (void)
 
mFILEmstdout (void)
 
mFILEmstderr (void)
 
mFILEmfcreate (char *data, int size)
 
void mfrecreate (mFILE *mf, char *data, int size)
 
mFILEmfcreate_from (const char *path, const char *mode_str, FILE *fp)
 
mFILEmfreopen (const char *path, const char *mode_str, FILE *fp)
 
mFILEmfopen (const char *path, const char *mode)
 
int mfclose (mFILE *mf)
 
int mfdetach (mFILE *mf)
 
int mfdestroy (mFILE *mf)
 
void * mfsteal (mFILE *mf, size_t *size_out)
 
int mfseek (mFILE *mf, long offset, int whence)
 
long mftell (mFILE *mf)
 
void mrewind (mFILE *mf)
 
void mftruncate (mFILE *mf, long offset)
 
int mfeof (mFILE *mf)
 
size_t mfread (void *ptr, size_t size, size_t nmemb, mFILE *mf)
 
size_t mfwrite (void *ptr, size_t size, size_t nmemb, mFILE *mf)
 
int mfgetc (mFILE *mf)
 
int mungetc (int c, mFILE *mf)
 
char * mfgets (char *s, int size, mFILE *mf)
 
int mfflush (mFILE *mf)
 
int mfprintf (mFILE *mf, char *fmt,...)
 
void mfascii (mFILE *mf)
 

Function Documentation

void mfascii ( mFILE mf)

Definition at line 622 of file mFILE.c.

int mfclose ( mFILE mf)

Definition at line 304 of file mFILE.c.

mFILE* mfcreate ( char *  data,
int  size 
)

Definition at line 170 of file mFILE.c.

mFILE* mfcreate_from ( const char *  path,
const char *  mode_str,
FILE *  fp 
)

Definition at line 209 of file mFILE.c.

int mfdestroy ( mFILE mf)

Definition at line 339 of file mFILE.c.

int mfdetach ( mFILE mf)

Definition at line 322 of file mFILE.c.

int mfeof ( mFILE mf)

Definition at line 421 of file mFILE.c.

int mfflush ( mFILE mf)

Definition at line 534 of file mFILE.c.

int mfgetc ( mFILE mf)

Definition at line 484 of file mFILE.c.

char* mfgets ( char *  s,
int  size,
mFILE mf 
)

Definition at line 504 of file mFILE.c.

mFILE* mfopen ( const char *  path,
const char *  mode 
)

Definition at line 290 of file mFILE.c.

int mfprintf ( mFILE mf,
char *  fmt,
  ... 
)

Definition at line 578 of file mFILE.c.

size_t mfread ( void *  ptr,
size_t  size,
size_t  nmemb,
mFILE mf 
)

Definition at line 429 of file mFILE.c.

void mfrecreate ( mFILE mf,
char *  data,
int  size 
)

Definition at line 188 of file mFILE.c.

mFILE* mfreopen ( const char *  path,
const char *  mode_str,
FILE *  fp 
)

Definition at line 227 of file mFILE.c.

int mfseek ( mFILE mf,
long  offset,
int  whence 
)

Definition at line 378 of file mFILE.c.

void* mfsteal ( mFILE mf,
size_t *  size_out 
)

Definition at line 357 of file mFILE.c.

long mftell ( mFILE mf)

Definition at line 398 of file mFILE.c.

void mftruncate ( mFILE mf,
long  offset 
)

Definition at line 415 of file mFILE.c.

size_t mfwrite ( void *  ptr,
size_t  size,
size_t  nmemb,
mFILE mf 
)

Definition at line 454 of file mFILE.c.

void mrewind ( mFILE mf)

Definition at line 402 of file mFILE.c.

mFILE* mstderr ( void  )

Definition at line 155 of file mFILE.c.

mFILE* mstdin ( void  )

Definition at line 114 of file mFILE.c.

mFILE* mstdout ( void  )

Definition at line 139 of file mFILE.c.

int mungetc ( int  c,
mFILE mf 
)

Definition at line 494 of file mFILE.c.