#include "quiche/quic/core/quic_syscall_wrapper.h"
#include <atomic>
#include <cerrno>
namespace quic {
namespace {
std::atomic<QuicSyscallWrapper*> global_syscall_wrapper(new QuicSyscallWrapper);
}
ssize_t QuicSyscallWrapper::Sendmsg(int sockfd, const msghdr* msg, int flags) { … }
int QuicSyscallWrapper::Sendmmsg(int sockfd, mmsghdr* msgvec, unsigned int vlen,
int flags) { … }
QuicSyscallWrapper* GetGlobalSyscallWrapper() { … }
void SetGlobalSyscallWrapper(QuicSyscallWrapper* wrapper) { … }
ScopedGlobalSyscallWrapperOverride::ScopedGlobalSyscallWrapperOverride(
QuicSyscallWrapper* wrapper_in_scope)
: … { … }
ScopedGlobalSyscallWrapperOverride::~ScopedGlobalSyscallWrapperOverride() { … }
}