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:
270 bytes
|
Rev | Line | |
---|
[388] | 1 | #include <mqueue.h>
|
---|
| 2 | #include <errno.h>
|
---|
| 3 | #include "syscall.h"
|
---|
| 4 |
|
---|
| 5 | int mq_unlink(const char *name)
|
---|
| 6 | {
|
---|
| 7 | int ret;
|
---|
| 8 | if (*name == '/') name++;
|
---|
| 9 | ret = __syscall(SYS_mq_unlink, name);
|
---|
| 10 | if (ret < 0) {
|
---|
| 11 | if (ret == -EPERM) ret = -EACCES;
|
---|
| 12 | errno = -ret;
|
---|
| 13 | return -1;
|
---|
| 14 | }
|
---|
| 15 | return ret;
|
---|
| 16 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.