Code:
//============================================================================== // Copyright (c) 2013, Isaac Marino Bavaresco // All rights reserved // isaacbavaresco@yahoo.com.br //============================================================================== #ifndef __FILEIO_H__ #define __FILEIO_H__ //============================================================================== int FileIOInit ( void ); int open ( const char *path, int oflag, ... ); int close ( int fildes ); ssize_t read ( int fildes, void *buf, ssize_t nbyte ); ssize_t write ( int fildes, const void *buf, ssize_t nbyte ); off_t lseek ( int fildes, off_t offset, int whence ); int remove ( const char *path ); int rename ( const char *old, const char *new ); int eof ( int fildes ); //============================================================================== #endif /* __FILEIO_H__ */ //==============================================================================