BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJLIB Reference

file_io.h File Reference

Simple file I/O abstraction. More...

Go to the source code of this file.

Enumerations

enum  pj_file_access { PJ_O_RDONLY = 0x1101 , PJ_O_WRONLY = 0x1102 , PJ_O_RDWR = 0x1103 , PJ_O_APPEND = 0x1108 }
 
enum  pj_file_seek_type { PJ_SEEK_SET = 0x1201 , PJ_SEEK_CUR = 0x1202 , PJ_SEEK_END = 0x1203 }
 

Functions

pj_status_t pj_file_open (pj_pool_t *pool, const char *pathname, unsigned flags, pj_oshandle_t *fd)
 
pj_status_t pj_file_close (pj_oshandle_t fd)
 
pj_status_t pj_file_write (pj_oshandle_t fd, const void *data, pj_ssize_t *size)
 
pj_status_t pj_file_read (pj_oshandle_t fd, void *data, pj_ssize_t *size)
 
pj_status_t pj_file_setpos (pj_oshandle_t fd, pj_off_t offset, enum pj_file_seek_type whence)
 
pj_status_t pj_file_getpos (pj_oshandle_t fd, pj_off_t *pos)
 
pj_status_t pj_file_flush (pj_oshandle_t fd)
 

Detailed Description

Simple file I/O abstraction.

 


PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.