Ignore:
Timestamp:
Jul 9, 2009, 1:43:12 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

corelib: OS/2: Reimplemented QProcess using libc pipes (#7).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/corelib/io/qprocess_p.h

    r71 r72  
    5959#include "private/qiodevice_p.h"
    6060
    61 #if defined(Q_OS_WIN)
     61#ifdef Q_OS_WIN
    6262#include "QtCore/qt_windows.h"
    6363typedef HANDLE Q_PIPE;
    6464#define INVALID_Q_PIPE INVALID_HANDLE_VALUE
    65 #elif defined(Q_OS_OS2)
    66 #include "QtCore/qt_os2.h"
    67 #define HP_NULL HPIPE(~0)
    68 #define HF_NULL HFILE(~0)
    6965#else
    7066typedef int Q_PIPE;
     
    9793        Channel() : process(0), notifier(0), type(Normal), closed(false), append(false)
    9894        {
    99 #if !defined(Q_OS_OS2)
    10095            pipe[0] = INVALID_Q_PIPE;
    10196            pipe[1] = INVALID_Q_PIPE;
    102 #else
    103             pipe = HP_NULL;
    104             file = HF_NULL;
    105 #endif
    10697        }
    10798
     
    132123        QString file;
    133124        QProcessPrivate *process;
    134 #if !defined(Q_OS_OS2)
    135125        QSocketNotifier *notifier;
    136126        Q_PIPE pipe[2];
    137 #else
    138         HPIPE pipe;
    139         HFILE file;
    140 #endif
    141127
    142128        unsigned type : 2;
     
    182168    QRingBuffer writeBuffer;
    183169
    184 #if !defined(Q_OS_OS2)
    185170    Q_PIPE childStartedPipe[2];
    186171    Q_PIPE deathPipe[2];
     
    194179    QWindowsPipeWriter *pipeWriter;
    195180    QWinEventNotifier *processFinishedNotifier;
    196 #else
    197     void destroyPipe(Channel &channel);
    198 #endif
    199181
    200182    void startProcess();
     
    206188    void killProcess();
    207189    void findExitCode();
    208 #ifdef Q_OS_UNIX
     190#if defined(Q_OS_UNIX) || defined(Q_OS_OS2)
    209191    bool waitForDeadChild();
    210192#endif
Note: See TracChangeset for help on using the changeset viewer.