2019-06-03 01:57:25 +00:00
|
|
|
#ifndef PANG_O_LIN_IO_H__
|
|
|
|
#define PANG_O_LIN_IO_H__
|
|
|
|
|
|
|
|
#ifdef unix
|
2019-06-09 12:32:53 +00:00
|
|
|
#include <errno.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <sys/types.h>
|
2019-06-03 01:57:25 +00:00
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
|
|
|
|
2019-06-12 10:22:12 +00:00
|
|
|
struct pang_io;
|
|
|
|
|
|
|
|
ssize_t pang_write(struct pang_io *io, off_t offset, const void *buf, size_t count);
|
|
|
|
ssize_t pang_read(struct pang_io *io, off_t offset, void *buf, size_t count);
|
|
|
|
struct pang_io *pang_open(const char *pathname);
|
|
|
|
int pang_close(struct pang_io **io);
|
2019-06-03 01:57:25 +00:00
|
|
|
|
|
|
|
#endif /* PANG_O_LIN_IO_H__ */
|