Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
6e47932d
Commit
6e47932d
authored
Feb 15, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove special cases for cygwin32.
(pwait): Remove local definition of `pid'. From-SVN: r13651
parent
e80c9ccb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
gcc/pexecute.c
+9
-11
No files found.
gcc/pexecute.c
View file @
6e47932d
/* Utilities to execute a program in a subprocess (possibly linked by pipes
with other subprocesses), and wait for it.
Copyright (C) 1996 Free Software Foundation, Inc.
Copyright (C) 1996
, 1997
Free Software Foundation, Inc.
This file is part of the libiberty library.
Libiberty is free software; you can redistribute it and/or
...
...
@@ -217,12 +217,11 @@ pwait (pid, status, flags)
#endif
/* MSDOS */
#if defined (_WIN32)
&& !defined (__CYGWIN32__)
#if defined (_WIN32)
#include <process.h>
/* ??? Why are these __spawnv{,p} and not _spawnv{,p}? */
extern
int
__spawnv
();
extern
int
__spawnvp
();
extern
int
_spawnv
();
extern
int
_spawnvp
();
int
pexecute
(
program
,
argv
,
this_pname
,
temp_base
,
errmsg_fmt
,
errmsg_arg
,
flags
)
...
...
@@ -237,7 +236,7 @@ pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, flags)
if
((
flags
&
PEXECUTE_ONE
)
!=
PEXECUTE_ONE
)
abort
();
pid
=
(
flags
&
PEXECUTE_SEARCH
?
_
_spawnvp
:
_
_spawnv
)
(
_P_NOWAIT
,
program
,
argv
);
pid
=
(
flags
&
PEXECUTE_SEARCH
?
_
spawnvp
:
_spawnv
)
(
_P_NOWAIT
,
program
,
argv
);
if
(
pid
==
-
1
)
{
*
errmsg_fmt
=
install_error_msg
;
...
...
@@ -255,11 +254,10 @@ pwait (pid, status, flags)
{
/* ??? Here's an opportunity to canonicalize the values in STATUS.
Needed? */
int
pid
=
cwait
(
status
,
pid
,
WAIT_CHILD
);
return
pid
;
return
cwait
(
status
,
pid
,
WAIT_CHILD
);
}
#endif
/* WIN32 */
#endif
/*
_
WIN32 */
#ifdef OS2
...
...
@@ -442,7 +440,7 @@ pfinish ()
/* include for Unix-like environments but not for Dos-like environments */
#if ! defined (__MSDOS__) && ! defined (OS2) && ! defined (MPW) \
&&
(defined (__CYGWIN32__) || ! defined (_WIN32)
)
&&
! defined (_WIN32
)
#ifdef VMS
#define vfork() (decc$$alloc_vfork_blocks() >= 0 ? \
...
...
@@ -588,4 +586,4 @@ pwait (pid, status, flags)
return
pid
;
}
#endif
/* ! __MSDOS__ && ! OS2 && ! MPW &&
(__CYGWIN32___ || ! _WIN32)
*/
#endif
/* ! __MSDOS__ && ! OS2 && ! MPW &&
! _WIN32
*/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment