www.pudn.com > ASM86_64.rar > iob.h
#ifndef _FILE_H_
#define _FILE_H_
#define IO_BUFSIZE 8192
#define LINE_SIZE 80
typedef struct iob {
int fd;
int cnt;
char *buf_ptr;
char *tail_ptr;
char buf[IO_BUFSIZE];
} iob_t;
void init_iob(int fd, struct iob *p);
int read_into_iob(struct iob *p, unsigned int count);
int read_from_iob(struct iob *p, void *usrbuf, unsigned int count);
int write_from_iob(struct iob *p, unsigned int count);
#endif