OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/seccomp-bpf/syscall.h" | 5 #include "sandbox/linux/seccomp-bpf/syscall.h" |
6 | 6 |
7 #include <asm/unistd.h> | 7 #include <asm/unistd.h> |
| 8 #include <errno.h> |
8 #include <fcntl.h> | 9 #include <fcntl.h> |
9 #include <sys/mman.h> | 10 #include <sys/mman.h> |
10 #include <sys/syscall.h> | 11 #include <sys/syscall.h> |
11 #include <sys/types.h> | 12 #include <sys/types.h> |
12 #include <unistd.h> | 13 #include <unistd.h> |
13 | 14 |
14 #include <vector> | 15 #include <vector> |
15 | 16 |
16 #include "base/posix/eintr_wrapper.h" | 17 #include "base/posix/eintr_wrapper.h" |
17 #include "build/build_config.h" | 18 #include "build/build_config.h" |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 232 |
232 // Clean up | 233 // Clean up |
233 EXPECT_EQ(0, Syscall::Call(__NR_munmap, addr2, 8192L)); | 234 EXPECT_EQ(0, Syscall::Call(__NR_munmap, addr2, 8192L)); |
234 EXPECT_EQ(0, Syscall::Call(__NR_munmap, addr3, 4096L)); | 235 EXPECT_EQ(0, Syscall::Call(__NR_munmap, addr3, 4096L)); |
235 EXPECT_EQ(0, IGNORE_EINTR(Syscall::Call(__NR_close, fd))); | 236 EXPECT_EQ(0, IGNORE_EINTR(Syscall::Call(__NR_close, fd))); |
236 } | 237 } |
237 | 238 |
238 } // namespace | 239 } // namespace |
239 | 240 |
240 } // namespace sandbox | 241 } // namespace sandbox |
OLD | NEW |