Last change
on this file since 388 was 388, checked in by coas-nagasima, 5 years ago |
Azure IoT Hub Device C SDK を使ったサンプルの追加
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id
-
Property svn:mime-type
set to
text/x-csrc
|
File size:
348 bytes
|
Rev | Line | |
---|
[388] | 1 | #include <unistd.h>
|
---|
| 2 | #include <errno.h>
|
---|
| 3 | #include "syscall.h"
|
---|
| 4 | #include "libc.h"
|
---|
| 5 |
|
---|
| 6 | #ifndef __c2__
|
---|
| 7 | static int dummy(int fd)
|
---|
| 8 | {
|
---|
| 9 | return fd;
|
---|
| 10 | }
|
---|
| 11 |
|
---|
| 12 | weak_alias(dummy, __aio_close);
|
---|
| 13 | #else
|
---|
| 14 | extern int __aio_close(int fd);
|
---|
| 15 | #endif
|
---|
| 16 |
|
---|
| 17 | int 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.