Changeset db06c9d


Ignore:
Timestamp:
05/19/05 14:48:42 (15 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
b5236ad
Parents:
c2f39fb
Message:

change way we open files to get around gzopen being broken
adding malloc and realloc substitution functions

Location:
lib
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    ra3dc71c rdb06c9d  
    466466                        {
    467467#endif
     468
     469/* Catch undefined O_LARGEFILE on *BSD etc */
     470#ifndef O_LARGEFILE
     471#  define O_LARGEFILE 0
     472#endif
     473                               
    468474#if HAVE_ZLIB
    469475                                // using gzdopen means we can set O_LARGEFILE
     
    472478                                libtrace->input.file = gzdopen(open(libtrace->conn_info.path,O_LARGEFILE), "r");
    473479#else
    474                                 libtrace->input.file = fopen(libtrace->conn_info.path, "r");
     480                                libtrace->input.file = fdopen(open(libtrace->conn_info.path,O_LARGEFILE), "r");
    475481#endif
    476482                        }
Note: See TracChangeset for help on using the changeset viewer.