Changeset c3f597e for lib


Ignore:
Timestamp:
05/16/10 21:36:46 (12 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:
31a15db
Parents:
d48008d
Message:

Deal better with errors when reading files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/wandio.c

    rbaef9df rc3f597e  
    205205                                   */
    206206        ret=io->source->peek(io, buffer, len);
     207#if READ_TRACE
     208        fprintf(stderr,"%p: peek(%s): %d bytes = %d\n",io,io->source->name, (int)len, (int)ret);
     209#endif
    207210        return ret;
    208211}
     
    223226
    224227        iow=stdio_wopen(filename, flags);
     228        if (!iow)
     229                return NULL;
    225230
    226231        /* We prefer zlib if available, otherwise we'll use bzip. If neither
Note: See TracChangeset for help on using the changeset viewer.