MCPcopy Create free account
hub / github.com/COVESA/vsomeip / __wrap_sendmsg

Function __wrap_sendmsg

implementation/utility/src/wrappers.cpp:135–142  ·  view source on GitHub ↗

* Overrides sendmsg(2) to react on EBADF */

Source from the content-addressed store, hash-verified

133 * Overrides sendmsg(2) to react on EBADF
134 */
135ssize_t __wrap_sendmsg(int sockfd, const struct msghdr* msg, int flags) {
136 ssize_t ret = __real_sendmsg(sockfd, msg, flags);
137 if (ret == -1 && errno == EBADF) {
138 react(sockfd, "sendmsg", errno);
139 }
140
141 return ret;
142}
143
144/*
145 * The real epoll_wait(2), renamed by GCC.

Callers

nothing calls this directly

Calls 1

reactFunction · 0.85

Tested by

no test coverage detected