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

Function __wrap_close

implementation/utility/src/wrappers.cpp:67–74  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

65 * Overrides close(2) to react on EBADF
66 */
67int __wrap_close(int fd) {
68 int ret = __real_close(fd);
69 if (ret == -1 && errno == EBADF) {
70 react(fd, "close", errno);
71 }
72
73 return ret;
74}
75
76/*
77 * The real recvfrom(2), renamed by GCC.

Callers

nothing calls this directly

Calls 1

reactFunction · 0.85

Tested by

no test coverage detected