source: asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/unistd/close.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: 348 bytes
Line 
1#include <unistd.h>
2#include <errno.h>
3#include "syscall.h"
4#include "libc.h"
5
6#ifndef __c2__
7static int dummy(int fd)
8{
9 return fd;
10}
11
12weak_alias(dummy, __aio_close);
13#else
14extern int __aio_close(int fd);
15#endif
16
17int close(int fd)
18{
19 fd = __aio_close(fd);
20 int r = __syscall_cp(SYS_close, fd);
21 if (r == -EINTR) r = 0;
22 return __syscall_ret(r);
23}
Note: See TracBrowser for help on using the repository browser.