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

Function __wrap_socket

implementation/utility/src/wrappers_qnx.cpp:130–132  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

128 * Overrides socket(2) to set SOCK_CLOEXEC by default.
129 */
130int __wrap_socket(int domain, int type, int protocol) noexcept {
131 return __real_socket(domain, type | SOCK_CLOEXEC, protocol);
132}
133
134/*
135 * Overrides accept(2) to set SOCK_CLOEXEC by default.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected