source: asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/stdio/pclose.c@ 337

Last change on this file since 337 was 337, checked in by coas-nagasima, 6 years ago

ASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 258 bytes
Line 
1#include "stdio_impl.h"
2#include <errno.h>
3#include <unistd.h>
4
5int 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}
Note: See TracBrowser for help on using the repository browser.