Annotation of OpenXM/src/kan96xx/plugin/file2.h, Revision 1.1
1.1 ! maekawa 1: /* file2.h */
! 2:
! 3: #define MAGIC2 "Buffered IO by FILE2"
! 4: /* ob.tag == Sfile, ob.lc.str == MAGIC2, ob.lc.voidp = (FILE2 *)fp2; */
! 5: #define FILE2BSIZE 1024
! 6:
! 7: typedef struct FILE2 {
! 8: int fd;
! 9: int initialized;
! 10: unsigned char readBuf[FILE2BSIZE];
! 11: unsigned char writeBuf[FILE2BSIZE];
! 12: int readpos;
! 13: int readsize;
! 14: int writepos;
! 15: int limit;
! 16: int watch;
! 17: FILE *watchFile;
! 18: void *mathcapList; /* pointer to struct object */
! 19: } FILE2 ;
! 20:
! 21: FILE2 *fp2open(int fd);
! 22: int fp2fflush(FILE2 *fp);
! 23: int fp2fclose(FILE2 *fp);
! 24: int fp2fputc(int c,FILE2 *fp);
! 25: int fp2fgetc(FILE2 *fp);
! 26: int fp2select(FILE2 *fp2, int t);
! 27: int fp2dumpBuffer(FILE2 *fp);
! 28: int fp2clearReadBuf(FILE2 *fp);
! 29: int fp2write(FILE2 *fp,char *data,int size);
! 30: int fp2watch(FILE2 *fp,FILE *log);
! 31: int fp2stopWatch(FILE2 *fp);
! 32:
! 33:
! 34:
! 35:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>