Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
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
git2
Commits
2a2c5b40
Commit
2a2c5b40
authored
5 years ago
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clar: remove unused shell_out function
parent
ee9e9163
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
+0
-26
tests/clar/fs.h
+0
-26
No files found.
tests/clar/fs.h
View file @
2a2c5b40
...
...
@@ -277,32 +277,6 @@ cl_fs_cleanup(void)
# include <copyfile.h>
#endif
static
int
shell_out
(
char
*
const
argv
[])
{
int
status
,
piderr
;
pid_t
pid
;
pid
=
fork
();
if
(
pid
<
0
)
{
fprintf
(
stderr
,
"System error: `fork()` call failed (%d) - %s
\n
"
,
errno
,
strerror
(
errno
));
exit
(
-
1
);
}
if
(
pid
==
0
)
{
execv
(
argv
[
0
],
argv
);
}
do
{
piderr
=
waitpid
(
pid
,
&
status
,
WUNTRACED
);
}
while
(
piderr
<
0
&&
(
errno
==
EAGAIN
||
errno
==
EINTR
));
return
WEXITSTATUS
(
status
);
}
static
void
basename_r
(
const
char
**
out
,
int
*
out_len
,
const
char
*
in
)
{
size_t
in_len
=
strlen
(
in
),
start_pos
;
...
...
This diff is collapsed.
Click to expand it.
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