~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/powerpc/kernel/systbl_chk.c

Version: ~ [ linux-4.18-rc1 ] ~ [ linux-4.17.2 ] ~ [ linux-4.16.16 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.50 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.109 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.138 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.113 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.57 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.39.4 ] ~ [ linux-2.6.38.8 ] ~ [ linux-2.6.37.6 ] ~ [ linux-2.6.36.4 ] ~ [ linux-2.6.35.14 ] ~ [ linux-2.6.34.15 ] ~ [ linux-2.6.33.20 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.27.62 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * This file, when run through CPP produces a list of syscall numbers
  3  * in the order of systbl.h.  That way we can check for gaps and syscalls
  4  * that are out of order.
  5  *
  6  * Unfortunately, we cannot check for the correct ordering of entries
  7  * using SYSX().
  8  *
  9  * Copyright © IBM Corporation
 10  *
 11  * This program is free software; you can redistribute it and/or
 12  * modify it under the terms of the GNU General Public License
 13  * as published by the Free Software Foundation; either version
 14  * 2 of the License, or (at your option) any later version.
 15  */
 16 #include <asm/unistd.h>
 17 
 18 #define SYSCALL(func)           __NR_##func
 19 #define COMPAT_SYS(func)        __NR_##func
 20 #define PPC_SYS(func)           __NR_##func
 21 #ifdef CONFIG_PPC64
 22 #define OLDSYS(func)            -1
 23 #define SYS32ONLY(func)         -1
 24 #define PPC64ONLY(func)         __NR_##func
 25 #else
 26 #define OLDSYS(func)            __NR_old##func
 27 #define SYS32ONLY(func)         __NR_##func
 28 #define PPC64ONLY(func)         -1
 29 #endif
 30 #define SYSX(f, f3264, f32)     -1
 31 
 32 #define SYSCALL_SPU(func)       SYSCALL(func)
 33 #define COMPAT_SYS_SPU(func)    COMPAT_SYS(func)
 34 #define COMPAT_SPU_NEW(func)    COMPAT_SYS(_new##func)
 35 #define SYSX_SPU(f, f3264, f32) SYSX(f, f3264, f32)
 36 
 37 /* Just insert a marker for ni_syscalls */
 38 #define __NR_ni_syscall         -1
 39 
 40 /*
 41  * These are the known exceptions.
 42  * Hopefully, there will be no more.
 43  */
 44 #define __NR_llseek             __NR__llseek
 45 #undef  __NR_umount
 46 #define __NR_umount             __NR_umount2
 47 #define __NR_old_getrlimit      __NR_getrlimit
 48 #define __NR_newstat            __NR_stat
 49 #define __NR_newlstat           __NR_lstat
 50 #define __NR_newfstat           __NR_fstat
 51 #define __NR_newuname           __NR_uname
 52 #define __NR_sysctl             __NR__sysctl
 53 #define __NR_olddebug_setcontext        __NR_sys_debug_setcontext
 54 
 55 /* We call sys_ugetrlimit for syscall number __NR_getrlimit */
 56 #define getrlimit               ugetrlimit
 57 
 58 START_TABLE
 59 #include <asm/systbl.h>
 60 END_TABLE NR_syscalls
 61 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp