Changeset 0d57541 for lib/common.h


Ignore:
Timestamp:
02/28/06 13:44:36 (16 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
5b66921
Parents:
c26ca86
Message:

Add preliminary seek support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/common.h

    r3d4d52d r0d57541  
    2020#  define LIBTRACE_WRITE(file,buf,len) gzwrite(file,buf,len)
    2121#  define LIBTRACE_FILE gzFile*
     22#  define LIBTRACE_SEEK(file,offset,whence) gzseek(file,offset,whence)
     23#  define LIBTRACE_TELL(file) gztell(file)
    2224#else
    2325#  define LIBTRACE_READ(file,buf,len) read(file,buf,len)
     
    2729#  define LIBTRACE_WRITE(file,buf,len) write(file,buf,len)
    2830#  define LIBTRACE_FILE int
     31#  define LIBTRACE_SEEK(file,offset,whence) lseek(file,offset,whence)
     32#  define LIBTRACE_TELL(file) tell(file,0,SEEK_CUR)
    2933#endif
    3034
Note: See TracChangeset for help on using the changeset viewer.