OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "sandbox/linux/services/syscall_wrappers.h" | 5 #include "sandbox/linux/services/syscall_wrappers.h" |
6 | 6 |
| 7 #include <stdint.h> |
7 #include <sys/syscall.h> | 8 #include <sys/syscall.h> |
8 #include <sys/types.h> | 9 #include <sys/types.h> |
9 #include <sys/wait.h> | 10 #include <sys/wait.h> |
10 #include <unistd.h> | 11 #include <unistd.h> |
11 #include <cstring> | 12 #include <cstring> |
12 | 13 |
13 #include "base/logging.h" | 14 #include "base/logging.h" |
14 #include "base/posix/eintr_wrapper.h" | 15 #include "base/posix/eintr_wrapper.h" |
15 #include "base/third_party/valgrind/valgrind.h" | 16 #include "base/third_party/valgrind/valgrind.h" |
16 #include "build/build_config.h" | 17 #include "build/build_config.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 uint64_t linux_sigset = 0; | 91 uint64_t linux_sigset = 0; |
91 std::memcpy(&linux_sigset, &sigset, | 92 std::memcpy(&linux_sigset, &sigset, |
92 std::min(sizeof(sigset), sizeof(linux_sigset))); | 93 std::min(sizeof(sigset), sizeof(linux_sigset))); |
93 EXPECT_EQ((1ULL << (LINUX_SIGSEGV - 1)) | (1ULL << (LINUX_SIGBUS - 1)), | 94 EXPECT_EQ((1ULL << (LINUX_SIGSEGV - 1)) | (1ULL << (LINUX_SIGBUS - 1)), |
94 linux_sigset); | 95 linux_sigset); |
95 } | 96 } |
96 | 97 |
97 } // namespace | 98 } // namespace |
98 | 99 |
99 } // namespace sandbox | 100 } // namespace sandbox |
OLD | NEW |