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
8d525fa8
Commit
8d525fa8
authored
Dec 04, 1998
by
Christopher Faylor
Committed by
Jeff Law
Dec 03, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pexecute.c: Remove obsolete ifdefed cygwin code.
From-SVN: r24084
parent
36e77ea6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
37 deletions
+9
-37
libiberty/ChangeLog
+4
-0
libiberty/pexecute.c
+5
-37
No files found.
libiberty/ChangeLog
View file @
8d525fa8
Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
* pexecute.c: Remove obsolete ifdefed cygwin code.
Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* choose-temp.c: Always include libiberty.h. Avoid redundancies.
* choose-temp.c: Always include libiberty.h. Avoid redundancies.
...
...
libiberty/pexecute.c
View file @
8d525fa8
...
@@ -244,41 +244,6 @@ pwait (pid, status, flags)
...
@@ -244,41 +244,6 @@ pwait (pid, status, flags)
extern
int
_spawnv
();
extern
int
_spawnv
();
extern
int
_spawnvp
();
extern
int
_spawnvp
();
int
pexecute
(
program
,
argv
,
this_pname
,
temp_base
,
errmsg_fmt
,
errmsg_arg
,
flags
)
const
char
*
program
;
char
*
const
*
argv
;
const
char
*
this_pname
;
const
char
*
temp_base
;
char
**
errmsg_fmt
,
**
errmsg_arg
;
int
flags
;
{
int
pid
;
if
((
flags
&
PEXECUTE_ONE
)
!=
PEXECUTE_ONE
)
abort
();
pid
=
(
flags
&
PEXECUTE_SEARCH
?
_spawnvp
:
_spawnv
)
(
_P_NOWAIT
,
program
,
fix_argv
(
argv
));
if
(
pid
==
-
1
)
{
*
errmsg_fmt
=
install_error_msg
;
*
errmsg_arg
=
program
;
return
-
1
;
}
return
pid
;
}
int
pwait
(
pid
,
status
,
flags
)
int
pid
;
int
*
status
;
int
flags
;
{
/* ??? Here's an opportunity to canonicalize the values in STATUS.
Needed? */
return
cwait
(
status
,
pid
,
WAIT_CHILD
);
}
#else
/* ! __CYGWIN32__ */
#else
/* ! __CYGWIN32__ */
/* This is a kludge to get around the Microsoft C spawn functions' propensity
/* This is a kludge to get around the Microsoft C spawn functions' propensity
...
@@ -317,6 +282,7 @@ fix_argv (argvec)
...
@@ -317,6 +282,7 @@ fix_argv (argvec)
return
(
const
char
*
const
*
)
argvec
;
return
(
const
char
*
const
*
)
argvec
;
}
}
#endif
/* __CYGWIN32__ */
#include <io.h>
#include <io.h>
#include <fcntl.h>
#include <fcntl.h>
...
@@ -433,6 +399,9 @@ pwait (pid, status, flags)
...
@@ -433,6 +399,9 @@ pwait (pid, status, flags)
int
*
status
;
int
*
status
;
int
flags
;
int
flags
;
{
{
#ifdef __CYGWIN32__
return
wait
(
status
);
#else
int
termstat
;
int
termstat
;
pid
=
_cwait
(
&
termstat
,
pid
,
WAIT_CHILD
);
pid
=
_cwait
(
&
termstat
,
pid
,
WAIT_CHILD
);
...
@@ -450,10 +419,9 @@ pwait (pid, status, flags)
...
@@ -450,10 +419,9 @@ pwait (pid, status, flags)
*
status
=
(((
termstat
)
&
0xff
)
<<
8
);
*
status
=
(((
termstat
)
&
0xff
)
<<
8
);
return
pid
;
return
pid
;
#endif
/* __CYGWIN32__ */
}
}
#endif
/* ! defined (__CYGWIN32__) */
#endif
/* _WIN32 */
#endif
/* _WIN32 */
#ifdef OS2
#ifdef OS2
...
...
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