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

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

Issue 11612014: Linux sandbox: modify GYP files to compile under Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add linux_syscalls.h Created 8 years 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 | Annotate | Revision Log
OLDNEW
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 <asm/unistd.h> 5 #include <asm/unistd.h>
6 #include <bits/wordsize.h>
7 #include <errno.h> 6 #include <errno.h>
8 7
9 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" 8 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h"
10 #include "sandbox/linux/seccomp-bpf/syscall.h" 9 #include "sandbox/linux/seccomp-bpf/syscall.h"
11 10
12 11
13 namespace playground2 { 12 namespace playground2 {
14 13
15 asm( // We need to be able to tell the kernel exactly where we made a 14 asm( // We need to be able to tell the kernel exactly where we made a
16 // system call. The C++ compiler likes to sometimes clone or 15 // system call. The C++ compiler likes to sometimes clone or
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 ret = inout; 234 ret = inout;
236 } 235 }
237 #else 236 #else
238 errno = ENOSYS; 237 errno = ENOSYS;
239 intptr_t ret = -1; 238 intptr_t ret = -1;
240 #endif 239 #endif
241 return ret; 240 return ret;
242 } 241 }
243 242
244 } // namespace 243 } // namespace
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc ('k') | sandbox/linux/seccomp-bpf/syscall_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698