Skip to content

Commit

Permalink
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 <jukka.rissanen@nordicsemi.no>
  • Loading branch information
jukkar authored and fabiobaltieri committed Mar 11, 2024
1 parent 569f8f0 commit b65b6a8
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 b65b6a8

Please sign in to comment.