Skip to content

Commit

Permalink
[nrf fromtree] posix: socket: Add missing recvmsg()
Browse files Browse the repository at this point in the history
The sys/socket.h was missing recently added recvmsg() call
to net/socket.h

Signed-off-by: Jukka Rissanen <[email protected]>
(cherry picked from commit b65b6a8)
Signed-off-by: Robert Lubos <[email protected]>
  • Loading branch information
jukkar authored and rlubos committed Mar 21, 2024
1 parent a74f47a commit c20c5af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/zephyr/posix/sys/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ static inline ssize_t sendmsg(int sock, const struct msghdr *message,
return zsock_sendmsg(sock, message, flags);
}

static inline ssize_t recvmsg(int sock, struct msghdr *msg, int flags)
{
return zsock_recvmsg(sock, msg, flags);
}

static inline ssize_t recvfrom(int sock, void *buf, size_t max_len, int flags,
struct sockaddr *src_addr, socklen_t *addrlen)
{
Expand Down

0 comments on commit c20c5af

Please sign in to comment.