Changeset 249


Ignore:
Timestamp:
May 27, 2003, 8:14:42 PM (22 years ago)
Author:
bird
Message:

#383: we don't have _emx_env anylonger.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gcc/libiberty/pexecute.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r248 r249  
    313313             passed to cpp). The resulting quoted strings gets misinterpreted
    314314             by the command interpreter -- it thinks that the ending quote
    315              is escaped by the trailing backslash and things get confused. 
     315             is escaped by the trailing backslash and things get confused.
    316316             We handle this case by escaping the trailing backslash, provided
    317317             it was not escaped in the first place.  */
    318           if (len > 1 
    319               && argvec[i][len-1] == '\\' 
     318          if (len > 1
     319              && argvec[i][len-1] == '\\'
    320320              && argvec[i][len-2] != '\\')
    321321            {
     
    409409      org_stdin = dup (STDIN_FILE_NO);
    410410      dup2 (input_desc, STDIN_FILE_NO);
    411       close (input_desc); 
     411      close (input_desc);
    412412    }
    413413
     
    446446/* MS CRTDLL doesn't return enough information in status to decide if the
    447447   child exited due to a signal or not, rather it simply returns an
    448    integer with the exit code of the child; eg., if the child exited with 
     448   integer with the exit code of the child; eg., if the child exited with
    449449   an abort() call and didn't have a handler for SIGABRT, it simply returns
    450450   with status = 3. We fix the status code to conform to the usual WIF*
     
    815815  int input_desc = last_pipe_input;
    816816  int output_desc = STDOUT_FILE_NO;
     817#ifdef __OS2__
     818#define pipes_supported 1
     819#else
    817820  int pipes_supported = _osmode != DOS_MODE || (_emx_env & 0x1000);
     821#endif
    818822
    819823  /* Since the function can reside in a DLL, we should take care
Note: See TracChangeset for help on using the changeset viewer.