Changeset 29d4438 for lib/iow-stdio.c


Ignore:
Timestamp:
03/12/10 13:38:28 (11 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:
aa0c5c5
Parents:
f6e8d46
Message:

Support an "undocumented" libtraceio debug interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/iow-stdio.c

    r22a9ccc r29d4438  
    3333
    3434
     35#define _GNU_SOURCE 1
    3536#include "wandio.h"
    3637#include <sys/types.h>
     
    6162                DATA(iow)->fd = 1; /* STDOUT */
    6263        else
    63                 DATA(iow)->fd = open(filename,O_WRONLY|O_CREAT|O_TRUNC,0666);
     64                DATA(iow)->fd = open(filename,
     65                                O_WRONLY
     66                                |O_CREAT
     67                                |O_TRUNC
     68                                |(force_directio_write?O_DIRECT:0),
     69                                0666);
    6470
    6571        if (DATA(iow)->fd == -1) {
Note: See TracChangeset for help on using the changeset viewer.