repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
support clang internal assembler when building for arm as thumb2 code
[musl.git]
/
src
/
stdio
/
pclose.c
blob
080a426245b67be80d5066a539d2b6fabcf20b4f
1
#include
"stdio_impl.h"
2
#include <errno.h>
3
#include <unistd.h>
4
5
int
pclose
(
FILE
*
f
)
6
{
7
int
status
,
r
;
8
pid_t pid
=
f
->
pipe_pid
;
9
fclose
(
f
);
10
while
((
r
=
__syscall
(
SYS_wait4
,
pid
, &
status
,
0
,
0
)) == -
EINTR
);
11
if
(
r
<
0
)
return
__syscall_ret
(
r
);
12
return
status
;
13
}