Last change
on this file since 413 was 398, checked in by coas-nagasima, 5 years ago |
mbedTLS版Azure IoT Hub接続サンプルのソースコードを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
300 bytes
|
Rev | Line | |
---|
[398] | 1 | #include <threads.h>
|
---|
| 2 | #include <errno.h>
|
---|
| 3 | #include "syscall.h"
|
---|
| 4 |
|
---|
| 5 | int thrd_sleep(const struct timespec *req, struct timespec *rem)
|
---|
| 6 | {
|
---|
| 7 | int ret = __syscall(SYS_nanosleep, req, rem);
|
---|
| 8 | switch (ret) {
|
---|
| 9 | case 0: return 0;
|
---|
| 10 | case -EINTR: return -1; /* value specified by C11 */
|
---|
| 11 | default: return -2;
|
---|
| 12 | }
|
---|
| 13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.