#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.
|
mFILE * | mstdin (void) |
|
mFILE * | mstdout (void) |
|
mFILE * | mstderr (void) |
|
mFILE * | mfcreate (char *data, int size) |
|
void | mfrecreate (mFILE *mf, char *data, int size) |
|
mFILE * | mfcreate_from (const char *path, const char *mode_str, FILE *fp) |
|
mFILE * | mfreopen (const char *path, const char *mode_str, FILE *fp) |
|
mFILE * | mfopen (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) |
|
void mfascii |
( |
mFILE * |
mf) | |
|
int mfclose |
( |
mFILE * |
mf) | |
|
mFILE* mfcreate |
( |
char * |
data, |
|
|
int |
size |
|
) |
| |
mFILE* mfcreate_from |
( |
const char * |
path, |
|
|
const char * |
mode_str, |
|
|
FILE * |
fp |
|
) |
| |
int mfdestroy |
( |
mFILE * |
mf) | |
|
int mfdetach |
( |
mFILE * |
mf) | |
|
int mfflush |
( |
mFILE * |
mf) | |
|
char* mfgets |
( |
char * |
s, |
|
|
int |
size, |
|
|
mFILE * |
mf |
|
) |
| |
int mfprintf |
( |
mFILE * |
mf, |
|
|
char * |
fmt, |
|
|
|
... |
|
) |
| |
size_t mfread |
( |
void * |
ptr, |
|
|
size_t |
size, |
|
|
size_t |
nmemb, |
|
|
mFILE * |
mf |
|
) |
| |
void mfrecreate |
( |
mFILE * |
mf, |
|
|
char * |
data, |
|
|
int |
size |
|
) |
| |
int mfseek |
( |
mFILE * |
mf, |
|
|
long |
offset, |
|
|
int |
whence |
|
) |
| |
void* mfsteal |
( |
mFILE * |
mf, |
|
|
size_t * |
size_out |
|
) |
| |
long mftell |
( |
mFILE * |
mf) | |
|
void mftruncate |
( |
mFILE * |
mf, |
|
|
long |
offset |
|
) |
| |
size_t mfwrite |
( |
void * |
ptr, |
|
|
size_t |
size, |
|
|
size_t |
nmemb, |
|
|
mFILE * |
mf |
|
) |
| |
void mrewind |
( |
mFILE * |
mf) | |
|
int mungetc |
( |
int |
c, |
|
|
mFILE * |
mf |
|
) |
| |