Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(441)

Side by Side Diff: sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc

Issue 495333003: [MIPS] Fix build issue for MIPS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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-helpers/syscall_sets.h" 5 #include "sandbox/linux/seccomp-bpf-helpers/syscall_sets.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "sandbox/linux/services/linux_syscalls.h" 8 #include "sandbox/linux/services/linux_syscalls.h"
9 9
10 namespace sandbox { 10 namespace sandbox {
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 return true; 922 return true;
923 default: 923 default:
924 return false; 924 return false;
925 } 925 }
926 } 926 }
927 927
928 // Various system calls that need to be researched. 928 // Various system calls that need to be researched.
929 // TODO(jln): classify this better. 929 // TODO(jln): classify this better.
930 bool SyscallSets::IsMisc(int sysno) { 930 bool SyscallSets::IsMisc(int sysno) {
931 switch (sysno) { 931 switch (sysno) {
932 #if !defined(_mips_) 932 #if !defined(__mips__)
933 case __NR_getrandom: 933 case __NR_getrandom:
934 #endif 934 #endif
935 case __NR_name_to_handle_at: 935 case __NR_name_to_handle_at:
936 case __NR_open_by_handle_at: 936 case __NR_open_by_handle_at:
937 case __NR_perf_event_open: 937 case __NR_perf_event_open:
938 case __NR_syncfs: 938 case __NR_syncfs:
939 case __NR_vhangup: 939 case __NR_vhangup:
940 // The system calls below are not implemented. 940 // The system calls below are not implemented.
941 #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) 941 #if defined(__i386__) || defined(__x86_64__) || defined(__mips__)
942 case __NR_afs_syscall: 942 case __NR_afs_syscall:
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 switch (sysno) { 1015 switch (sysno) {
1016 case __NR_sysmips: 1016 case __NR_sysmips:
1017 case __NR_unused150: 1017 case __NR_unused150:
1018 return true; 1018 return true;
1019 default: 1019 default:
1020 return false; 1020 return false;
1021 } 1021 }
1022 } 1022 }
1023 #endif // defined(__mips__) 1023 #endif // defined(__mips__)
1024 } // namespace sandbox. 1024 } // namespace sandbox.
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698