blob: 1d365abb0a0a3e529c5bbdc5c6d6667979ea55b9 [file] [log] [blame]
#ifndef __NAND_API_H__
#define __NAND_API_H__
#define PROGRAM_NAME "libnandapi"
int nand_open(const char *pathname, int flags);
off_t nand_seek(int fd, off_t offset, int whence);
off64_t nand_seek64(int fd, off64_t offset, int whence);
ssize_t nand_read(int fd, void *buf, size_t count);
ssize_t nand_write(int fd, void *buf, size_t count);
ssize_t nand_write_force(int fd, void *buf, size_t count);
int nand_close(int fd);
off_t nand_query_offset(int fd);
size_t nand_query_blk_size(int fd);
#endif