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

Function __wrap_socket

implementation/utility/src/wrappers.cpp:36–38  ·  view source on GitHub ↗

* Overrides socket(2) to set SOCK_CLOEXEC by default. */

Source from the content-addressed store, hash-verified

34 * Overrides socket(2) to set SOCK_CLOEXEC by default.
35 */
36int __wrap_socket(int domain, int type, int protocol) noexcept {
37 return __real_socket(domain, type | SOCK_CLOEXEC, protocol);
38}
39
40/*
41 * Overrides accept(2) to set SOCK_CLOEXEC by default.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected