change memory open API

This commit is contained in:
Yuichi Nishiwaki 2014-01-17 13:11:52 +09:00
parent c39f598dc8
commit dfd5f96e7e
1 changed files with 2 additions and 6 deletions

View File

@ -66,15 +66,11 @@ int pic_setvbuf(pic_file *, char *, int, size_t);
int pic_fflush(pic_file *); int pic_fflush(pic_file *);
int pic_ffill(pic_file *); int pic_ffill(pic_file *);
/* file access */ /* resource aquisition */
pic_file *pic_fopen(const char *, const char *); pic_file *pic_fopen(const char *, const char *);
pic_file *pic_mopen(const char *, size_t, const char *);
int pic_fclose(pic_file *); int pic_fclose(pic_file *);
/* memory access */
pic_file *pic_mropen(const char *, size_t, const char *);
pic_file *pic_mwopen();
const char *pic_getmbuf(pic_file *);
/* direct IO with buffering */ /* direct IO with buffering */
size_t pic_fread(void *, size_t, size_t, pic_file *); size_t pic_fread(void *, size_t, size_t, pic_file *);
size_t pic_fwrite(const void *, size_t, size_t, pic_file *); size_t pic_fwrite(const void *, size_t, size_t, pic_file *);