~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to arch/mips/include/asm/seccomp.h

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __ASM_SECCOMP_H
 
2
 
 
3
#include <linux/unistd.h>
 
4
 
 
5
#define __NR_seccomp_read __NR_read
 
6
#define __NR_seccomp_write __NR_write
 
7
#define __NR_seccomp_exit __NR_exit
 
8
#define __NR_seccomp_sigreturn __NR_rt_sigreturn
 
9
 
 
10
/*
 
11
 * Kludge alert:
 
12
 *
 
13
 * The generic seccomp code currently allows only a single compat ABI.  Until
 
14
 * this is fixed we priorize O32 as the compat ABI over N32.
 
15
 */
 
16
#ifdef CONFIG_MIPS32_O32
 
17
 
 
18
#define __NR_seccomp_read_32            4003
 
19
#define __NR_seccomp_write_32           4004
 
20
#define __NR_seccomp_exit_32            4001
 
21
#define __NR_seccomp_sigreturn_32       4193    /* rt_sigreturn */
 
22
 
 
23
#elif defined(CONFIG_MIPS32_N32)
 
24
 
 
25
#define __NR_seccomp_read_32            6000
 
26
#define __NR_seccomp_write_32           6001
 
27
#define __NR_seccomp_exit_32            6058
 
28
#define __NR_seccomp_sigreturn_32       6211    /* rt_sigreturn */
 
29
 
 
30
#endif /* CONFIG_MIPS32_O32 */
 
31
 
 
32
#endif /* __ASM_SECCOMP_H */