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:
399 bytes
|
Line | |
---|
1 | #include <sys/socket.h>
|
---|
2 | #include <limits.h>
|
---|
3 | #include "syscall.h"
|
---|
4 | #include "libc.h"
|
---|
5 |
|
---|
6 | ssize_t recvmsg(int fd, struct msghdr *msg, int flags)
|
---|
7 | {
|
---|
8 | ssize_t r;
|
---|
9 | #if LONG_MAX > INT_MAX
|
---|
10 | struct msghdr h, *orig = msg;
|
---|
11 | if (msg) {
|
---|
12 | h = *msg;
|
---|
13 | h.__pad1 = h.__pad2 = 0;
|
---|
14 | msg = &h;
|
---|
15 | }
|
---|
16 | #endif
|
---|
17 | r = socketcall_cp(recvmsg, fd, msg, flags, 0, 0, 0);
|
---|
18 | #if LONG_MAX > INT_MAX
|
---|
19 | if (orig) *orig = h;
|
---|
20 | #endif
|
---|
21 | return r;
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.