[BACK]Return to file2.h CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx / plugin

Diff for /OpenXM/src/kan96xx/plugin/file2.h between version 1.2 and 1.6

version 1.2, 2000/01/16 07:55:47 version 1.6, 2004/12/16 08:42:14
Line 1 
Line 1 
 /* $OpenXM$ */  /* $OpenXM: OpenXM/src/kan96xx/plugin/file2.h,v 1.5 2003/11/24 08:16:13 takayama Exp $ */
 /* file2.h */  /* file2.h */
   
 #define MAGIC2 "Buffered IO by FILE2"  #define MAGIC2 "Buffered IO by FILE2"
Line 8 
Line 8 
 typedef struct FILE2 {  typedef struct FILE2 {
   int fd;    int fd;
   int initialized;    int initialized;
   unsigned char readBuf[FILE2BSIZE];    unsigned char *readBuf;
   unsigned char writeBuf[FILE2BSIZE];    unsigned char *writeBuf;
   int readpos;    int readpos;
   int readsize;    int readsize;
   int writepos;    int writepos;
Line 17  typedef struct FILE2 {
Line 17  typedef struct FILE2 {
   int watch;    int watch;
   FILE *watchFile;    FILE *watchFile;
   void *mathcapList; /* pointer to struct object */    void *mathcapList; /* pointer to struct object */
     FILE *log_incomming;
     FILE *log_outgoing;
     int popened; /* 1 => popen, 0 => fopen etc ... */
     FILE *pfp; /* used for pclose */
 } FILE2 ;  } FILE2 ;
   
 FILE2 *fp2open(int fd);  FILE2 *fp2open(int fd);
 int fp2fflush(FILE2 *fp);  int fp2fflush(FILE2 *fp);
 int fp2fclose(FILE2 *fp);  int fp2fclose(FILE2 *fp);
   char *fp2fcloseInString(FILE2 *fp2, int *sizep);
 int fp2fputc(int c,FILE2 *fp);  int fp2fputc(int c,FILE2 *fp);
   int fp2fputs(char *s,FILE2 *fp);
 int fp2fgetc(FILE2 *fp);  int fp2fgetc(FILE2 *fp);
 int fp2select(FILE2 *fp2, int t);  int fp2select(FILE2 *fp2, int t);
 int fp2dumpBuffer(FILE2 *fp);  int fp2dumpBuffer(FILE2 *fp);
Line 30  int fp2clearReadBuf(FILE2 *fp);
Line 36  int fp2clearReadBuf(FILE2 *fp);
 int fp2write(FILE2 *fp,char *data,int size);  int fp2write(FILE2 *fp,char *data,int size);
 int fp2watch(FILE2 *fp,FILE *log);  int fp2watch(FILE2 *fp,FILE *log);
 int fp2stopWatch(FILE2 *fp);  int fp2stopWatch(FILE2 *fp);
   int fp2log(FILE2 *fp,FILE *incomming,FILE *outgoing);
   int fp2stopLog(FILE2 *fp);
   void fp2setfp(FILE2 *fp2, FILE *fp,int popened);
   
   
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.6

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>