// Copyright 2019 The Crashpad Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #include "util/linux/socket.h" #include <unistd.h> #include "base/check_op.h" #include "base/logging.h" #include "base/posix/eintr_wrapper.h" #include "third_party/lss/lss.h" namespace crashpad { constexpr size_t UnixCredentialSocket::kMaxSendRecvMsgFDs; // static bool UnixCredentialSocket::CreateCredentialSocketpair(ScopedFileHandle* sock1, ScopedFileHandle* sock2) { … } // static int UnixCredentialSocket::SendMsg(int fd, const void* buf, size_t buf_size, const int* fds, size_t fd_count) { … } // static bool UnixCredentialSocket::RecvMsg(int fd, void* buf, size_t buf_size, ucred* creds, std::vector<ScopedFileHandle>* fds) { … } } // namespace crashpad