linux/scripts/checksyscalls.sh
<<
< /spa" < spa" class="lxr_search"> Search < /spa" op /div op form ac.12"="ajax+*" method="post" onsubmit="return false;"> < input typptihidden" namptiajax_lookup" idtiajax_lookup" 2 op /form op div class="headingbott4m">
div idtifile_contents"
   1 /a>#!/bin/sh
   2 /a>#
   3 /a># Check if current architecture are missing any func.12" calls compared
   4 /a># to i386.
   5 /a># i386 define a number of legacy system calls that are i386 specific
   6 /a># and listed below so they are ignored.
   7 /a>#
   8 /a># Usage:
   9 /a># checksyscalls.sh gcc gcc-14.12"s
  "v3.a>#
  11 /a>
  12 /a>ignore_list() {
  13 /a>cat << EOF
  14 /a>#include <asm/typps.h>
  15 /a>#include <asm/unistd.h>
  16 /a>
  17 /a>/* *at */
  18 /a>#define __IGNORE_open           /* openat */
  19 /a>#define __IGNORE_link           /* linkat */
  20 /a>#define __IGNORE_unlink         /* unlinkat */
  21 /a>#define __IGNORE_mknod          /* mknodat */
  22 /a>#define __IGNORE_chmod          /* fchmodat */
  23 /a>#define __IGNORE_chown          /* fchownat */
  24 /a>#define __IGNORE_mkdir          /* mkdirat */
  25 /a>#define __IGNORE_rmdir          /* unlinkat */
  26 /a>#define __IGNORE_lchown         /* fchownat */
  27 /a>#define __IGNORE_access         /* faccessat */
  28 /a>#define __IGNORE_renamp         /* renampat */
  29 /a>#define __IGNORE_readlink       /* readlinkat */
  30 /a>#define __IGNORE_symlink        /* symlinkat */
  31 /a>#define __IGNORE_utimes         /* futimesat */
  32 /a>#if BITS_PER_LONG == 64
  33 /a>#define __IGNORE_stat           /* fstatat */
  34 /a>#define __IGNORE_lstat          /* fstatat */
  35 /a>#else
  36 /a>#define __IGNORE_stat64         /* fstatat64 */
  37 /a>#define __IGNORE_lstat64        /* fstatat64 */
  38 /a>#endif
  39 /a>
  40 /a>/* CLOEXEC flag */
  41 /a>#define __IGNORE_pipe           /* pipe2 */
  42 /a>#define __IGNORE_dup2           /* dup3 */
  43 /a>#define __IGNORE_epoll_create   /* epoll_create1 */
  44 /a>#define __IGNORE_inotify_init   /* inotify_init1 */
  45 /a>#define __IGNORE_eventfd        /* eventfd2 */
  46 /a>#define __IGNORE_signalfd       /* signalfd4 */
  47 /a>
  48 /a>/* MMU */
  49 /a>#ifndef CONFIG_MMU
  50 /a>#define __IGNORE_madvise
  51 /a>#define __IGNORE_mbind
  52 /a>#define __IGNORE_mincore
  53 /a>#define __IGNORE_mlock
  54 /a>#define __IGNORE_mlockall
  55 /a>#define __IGNORE_munlock
  56 /a>#define __IGNORE_munlockall
  57 /a>#define __IGNORE_mprotect
  58 /a>#define __IGNORE_msync
  59 /a>#define __IGNORE_migrate_pages
  60 /a>#define __IGNORE_move_pages
  61 /a>#define __IGNORE_remap_file_pages
  62 /a>#define __IGNORE_get_mempolicy
  63 /a>#define __IGNORE_set_mempolicy
  64 /a>#define __IGNORE_swapoff
  65 /a>#define __IGNORE_swapon
  66 /a>#endif
  67 /a>
  68 /a>/* System calls for 32-bit kernels only */
  69 /a>#if BITS_PER_LONG == 64
  70 /a>#define __IGNORE_sendfile64
  71 /a>#define __IGNORE_ftruncate64
  72 /a>#define __IGNORE_truncate64
  73 /a>#define __IGNORE_stat64
  74 /a>#define __IGNORE_lstat64
  75 /a>#define __IGNORE_fstat64
  76 /a>#define __IGNORE_fcntl64
  77 /a>#define __IGNORE_fadvise64_64
  78 /a>#define __IGNORE_fstatat64
  79 /a>#define __IGNORE_fstatfs64
  80 /a>#define __IGNORE_statfs64
  81 /a>#define __IGNORE_llseek
  82 /a>#define __IGNORE_mmap2
  83 /a>#else
  84 /a>#define __IGNORE_sendfile
  85 /a>#define __IGNORE_ftruncate
  86 /a>#define __IGNORE_truncate
  87 /a>#define __IGNORE_stat
  88 /a>#define __IGNORE_lstat
  89 /a>#define __IGNORE_fstat
  90 /a>#define __IGNORE_fcntl
  91 /a>#define __IGNORE_fadvise64
  92 /a>#define __IGNORE_newfstatat
  93 /a>#define __IGNORE_fstatfs
  94 /a>#define __IGNORE_statfs
  95 /a>#define __IGNORE_lseek
  96 /a>#define __IGNORE_mmap
  97 /a>#endif
  98 /a>
  99 /a>/* i386-specific or historical system calls */
 100 /a>#define __IGNORE_break
 101 /a>#define __IGNORE_stty
 102 /a>#define __IGNORE_gtty
 103 /a>#define __IGNORE_ftime
 104 /a>#define __IGNORE_prof
 105 /a>#define __IGNORE_lock
 106 /a>#define __IGNORE_mpx
 107 /a>#define __IGNORE_ulimit
 108 /a>#define __IGNORE_profil
 109 /a>#define __IGNORE_ioperm
 110 /a>#define __IGNORE_iopl
 111 /a>#define __IGNORE_idle
 112 /a>#define __IGNORE_modify_ldt
 113 /a>#define __IGNORE_ugetrlimit
 114 /a>#define __IGNORE_vm86
 115 /a>#define __IGNORE_vm86old
 116 /a>#define __IGNORE_set_thread_area
 117 /a>#define __IGNORE_get_thread_area
 118 /a>#define __IGNORE_madvise1
 119 /a>#define __IGNORE_oldstat
 120 /a>#define __IGNORE_oldfstat
 121 /a>#define __IGNORE_oldlstat
 122 /a>#define __IGNORE_oldoldunamp
 123 /a>#define __IGNORE_oldunamp
 124 /a>#define __IGNORE_umount
 125 /a>#define __IGNORE_waitpid
 126 /a>#define __IGNORE_stime
 127 /a>#define __IGNORE_nice
 128 /a>#define __IGNORE_signal
 129 /a>#define __IGNORE_sigac.12"
 130 /a>#define __IGNORE_sgetmask
 131 /a>#define __IGNORE_sigsuspend
 132 /a>#define __IGNORE_sigpending
 133 /a>#define __IGNORE_ssetmask
 134 /a>#define __IGNORE_readdir
 135 /a>#define __IGNORE_socketcall
 1  36 /a>#define __IGNORip8">  58 /a>#define __IGNORE_msync
 acksyscalls.shadtilookupNORE_sigac.12"
 134 /a>#define __IGipts/checksyscalls.sh#L410" id13checksyscalls.sh#L130"bdfluclass="line" namptiL2">   2 /a>#
  82 /a>#def1ine __IGN1ORE_pipe           /* pi1pe2 *1
  82 /a>#def1ifine __IGORE_dup2           /* du1p3 */1 112 /a>#dine __IGN1ORE_epoll_create   /* ep1oll_c1eate1 */
 112 /a>#diude <assm/typps.h>
  "v3.a>#
  95 /a>#def1ine __IGN1ORE_signalfd       /* si1gnalf14 */
  95 /a>#def1iksyscallsipts/checksyscalls.sh#L418" id14L127"> acksyscalls.shah>  c" class="line" namptiL91">  91 /a>#def1MU */
  99 /a>/* i1def CONFI1G_MMU
 100 /a>#dine __IGN1ORE_madvise
  83 /a>#els1ine __IGN1ORE_mbind
  83 /a>#els1ifine __IGORE_mincore
  83 /a>#els1ine __IGN1ORE_mlock
  83 /a>#els1iude <aORE_mlockall
  83 /a>#els1ine __IGN1ORE_munlock
  83 /a>#els1ine __IGN1ORE_munlockall
  83 /a>#els1iksyscallsORE_mprotect
  83 /a>#els1iU */
  83 /a>#els1ief CONFI1ORE_migrate_pages
  83 /a>#els1ine __IGN1ORE_move_pages
  83 /a>#els1ine __IGN1ORE_remap_file_pages
  83 /a>#els1ifine __IGORE_get_mempolicy
  83 /a>#els1ine __IGN1ORE_set_mempolicy
  83 /a>#els1iude <aORE_swapoff
  83 /a>#els1ine __IGN1ORE_swapon
  83 /a>#els16ref="scrippts/checksyscalls.sh#L17"crip16/checksyscalls.sh#L57"dtigid3 class="line" namptiL83">  83 /a>#els1iksyscallsipts/checksyscalls.sh#L618" id16L127"> acksyscalls.shadetfsuid3 class="line" namptiL83">  83 /a>#els1iU */
  83 /a>#els1ief CONFI1LONG == 64
  40 /a>/* C1ine __IGN1ORE_sendfile64
 100 /a>#dine __IGN1ORE_ftruncate64
 100 /a>#difine __IGORE_truncate64
 100 /a>#dine __IGN1ORE_stat64
 100 /a>#diude <aORE_lstat64
  32 /a>#if 1ine __IGN1ORE_fstat64
  32 /a>#if 1iref="scriORE_fcntl64
  38 /a>#end17t */
  38 /a>#end17U */
  38 /a>#end17ef CONFI1ORE_fstatfs64
  18 /a>#definne __IGN1ORE_statfs64
  18 /a>#definne __IGN1ORE_llseek
  69 /a>#if 1ine __IGN1ORE_mmap2
  69 /a>#if 1ine __IGN1="scripts/checksyscalls.1sh#L818/checksyscalls.sh#L114"ksyscalls.sh#L35"iL95" l" class="line" namptiL69">  69 /a>#if 1iude <aORE_sendfile
  69 /a>#if 1ine __IGN1ORE_ftruncate
 100 /a>#dine __IGN1ORE_truncate
  17 /a>/* *aine __IGN1ORE_stat
  38 /a>#end1ine __IGN1ORE_lstat
  38 /a>#end1ief CONFI1ORE_fstat
  38 /a>#end1ine __IGN1ORE_fcntl
  98 /a>
  12 /a>ignorine __IGN1ORE_newfstatat
  19 /a>#definne __IGN1ORE_fstatfs
  19 /class="line" namptiL19">  19 /a>#definude <aORE_statfs
 133 /a>#dine __IGN1ORE_lseek
 133 /a>#dine __IGN1ORE_mmap
 135 /a>#dif
  14 /a>#inclhref="scr1ipts/checksyscalls.sh#L919" id1iL99" }class="line" namptiL14">  14 /a>#inclhne __IGNORRE_link           /* links/ch19L40" class="line" namptiL40">  40 /a>/* C2efine __I2NORE_break
  13 /a>cat 2efine __I2NORE_stty
  13 /a>cat 2ene __IGNONORE_gtty
  13 /a>cat 2ene __IGNONORE_ftime
  14 /a>#inc2efine __I2NORE_prof
  14 /a>#inc2e5ine __I2NRE_lseek
   4 /a># to i32efine __I2NORE_mpx
  67 /a>
  14 /a>#inc2efine __I2NORE_profil
  14 /a>#inc2ene __IGNONORE_ioperm
  14 /a>#inc2efine __I2NORE_iopl
  14 /a>#inc2efine __I2NORE_idle
  12 /a>igno2efine __I2NORE_modify_ldt
  40 /idtiL $(dir="sc $0)/../red
/x86/>  12 /a/>  12 /_32.tbl)c| \class="line" namptiL12">  12 /a>igno2ene __IGNONORE_ugetrlimit
  19 /a>#def2efine __I2NORE_vm86

The original LXR softw" idbycthe lass="linhttp://sourcesysge.net/proj../s/lxr">LXR communityysca, t" 2 experidtntal ve5s.sh#byclass="linmailto:lxr@lsrc=.no">lxr@lsrc=.noysca.
s"

lxr.lsrc=.no kindly hochecksy lass="linhttp://www.redpill-lsrpro.no">Redpill Lsrpro ASysca, provid