Changeset a3dc71c


Ignore:
Timestamp:
05/17/05 18:07:02 (16 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:
c2f39fb
Parents:
356fa40
Message:

use gzdopen() on a previuosly open()ed file, with O_LARGEFILE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r356fa40 ra3dc71c  
    467467#endif
    468468#if HAVE_ZLIB
    469                                 libtrace->input.file = gzopen(libtrace->conn_info.path, "r");
     469                                // using gzdopen means we can set O_LARGEFILE
     470                                // ourselves. However, this way is messy and
     471                                // we lose any error checking on "open"
     472                                libtrace->input.file = gzdopen(open(libtrace->conn_info.path,O_LARGEFILE), "r");
    470473#else
    471474                                libtrace->input.file = fopen(libtrace->conn_info.path, "r");
Note: See TracChangeset for help on using the changeset viewer.