syscalls.cc revision 6701
12SN/A/* 21762SN/A * Copyright (c) 2003-2005 The Regents of The University of Michigan 32SN/A * All rights reserved. 42SN/A * 52SN/A * Redistribution and use in source and binary forms, with or without 62SN/A * modification, are permitted provided that the following conditions are 72SN/A * met: redistributions of source code must retain the above copyright 82SN/A * notice, this list of conditions and the following disclaimer; 92SN/A * redistributions in binary form must reproduce the above copyright 102SN/A * notice, this list of conditions and the following disclaimer in the 112SN/A * documentation and/or other materials provided with the distribution; 122SN/A * neither the name of the copyright holders nor the names of its 132SN/A * contributors may be used to endorse or promote products derived from 142SN/A * this software without specific prior written permission. 152SN/A * 162SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 172SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 182SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 192SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 202SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 212SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 222SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 232SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 242SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 252SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 262SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 272665Ssaidi@eecs.umich.edu * 282665Ssaidi@eecs.umich.edu * Authors: Gabe Black 292665Ssaidi@eecs.umich.edu */ 302665Ssaidi@eecs.umich.edu 312SN/A#include "arch/sparc/linux/process.hh" 322SN/A#include "sim/syscall_emul.hh" 332623SN/A 342623SN/Aclass LiveProcess; 352SN/Aclass ThreadContext; 364182Sgblack@eecs.umich.edu 371354SN/Anamespace SparcISA { 381858SN/A 391717SN/A/// Target uname() handler. 402683Sktlim@umich.edustatic SyscallReturn 411354SN/AunameFunc(SyscallDesc *desc, int callnum, LiveProcess *process, 421354SN/A ThreadContext *tc) 432387SN/A{ 442387SN/A int index = 0; 452387SN/A TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, index)); 4656SN/A 475348Ssaidi@eecs.umich.edu strcpy(name->sysname, "Linux"); 482SN/A strcpy(name->nodename, "m5.eecs.umich.edu"); 492SN/A strcpy(name->release, "2.6.12-9-sparc64"); 501858SN/A strcpy(name->version, "#1 Mon Aug 18 11:32:15 EDT 2003"); 512SN/A strcpy(name->machine, "sparc"); 523453Sgblack@eecs.umich.edu 533453Sgblack@eecs.umich.edu name.copyOut(tc->getMemPort()); 543453Sgblack@eecs.umich.edu 553453Sgblack@eecs.umich.edu return 0; 563453Sgblack@eecs.umich.edu} 572462SN/A 582SN/A 59715SN/ASyscallReturn getresuidFunc(SyscallDesc *desc, int num, 60715SN/A LiveProcess *p, ThreadContext *tc) 61715SN/A{ 62715SN/A const IntReg id = htog(100); 632SN/A int index = 0; 642SN/A Addr ruid = p->getSyscallArg(tc, index); 653960Sgblack@eecs.umich.edu Addr euid = p->getSyscallArg(tc, index); 663960Sgblack@eecs.umich.edu Addr suid = p->getSyscallArg(tc, index); 673960Sgblack@eecs.umich.edu //Handle the EFAULT case 684182Sgblack@eecs.umich.edu //Set the ruid 694182Sgblack@eecs.umich.edu if(ruid) 704182Sgblack@eecs.umich.edu { 714182Sgblack@eecs.umich.edu BufferArg ruidBuff(ruid, sizeof(IntReg)); 722680Sktlim@umich.edu memcpy(ruidBuff.bufferPtr(), &id, sizeof(IntReg)); 73237SN/A ruidBuff.copyOut(tc->getMemPort()); 742SN/A } 752SN/A //Set the euid 762SN/A if(euid) 772SN/A { 782SN/A BufferArg euidBuff(euid, sizeof(IntReg)); 795529Snate@binkert.org memcpy(euidBuff.bufferPtr(), &id, sizeof(IntReg)); 805529Snate@binkert.org euidBuff.copyOut(tc->getMemPort()); 812420SN/A } 822623SN/A //Set the suid 832SN/A if(suid) 842107SN/A { 852159SN/A BufferArg suidBuff(suid, sizeof(IntReg)); 862455SN/A memcpy(suidBuff.bufferPtr(), &id, sizeof(IntReg)); 872455SN/A suidBuff.copyOut(tc->getMemPort()); 882386SN/A } 892623SN/A return 0; 902SN/A} 911371SN/A 925348Ssaidi@eecs.umich.eduSyscallDesc SparcLinuxProcess::syscall32Descs[] = { 935348Ssaidi@eecs.umich.edu /* 0 */ SyscallDesc("restart_syscall", unimplementedFunc), 945348Ssaidi@eecs.umich.edu /* 1 */ SyscallDesc("exit", exitFunc), //32 bit 955348Ssaidi@eecs.umich.edu /* 2 */ SyscallDesc("fork", unimplementedFunc), 965348Ssaidi@eecs.umich.edu /* 3 */ SyscallDesc("read", readFunc), 975348Ssaidi@eecs.umich.edu /* 4 */ SyscallDesc("write", writeFunc), 985348Ssaidi@eecs.umich.edu /* 5 */ SyscallDesc("open", openFunc<Sparc32Linux>), //32 bit 995348Ssaidi@eecs.umich.edu /* 6 */ SyscallDesc("close", closeFunc), 1002SN/A /* 7 */ SyscallDesc("wait4", unimplementedFunc), //32 bit 1012SN/A /* 8 */ SyscallDesc("creat", unimplementedFunc), //32 bit 1022SN/A /* 9 */ SyscallDesc("link", unimplementedFunc), 1032SN/A /* 10 */ SyscallDesc("unlink", unlinkFunc), 1042SN/A /* 11 */ SyscallDesc("execv", unimplementedFunc), 1052SN/A /* 12 */ SyscallDesc("chdir", unimplementedFunc), 1062SN/A /* 13 */ SyscallDesc("chown", chownFunc), //32 bit 1072SN/A /* 14 */ SyscallDesc("mknod", unimplementedFunc), 1082SN/A /* 15 */ SyscallDesc("chmod", unimplementedFunc), 1092SN/A /* 16 */ SyscallDesc("lchown", unimplementedFunc), //32 bit 1102SN/A /* 17 */ SyscallDesc("brk", brkFunc), 1111400SN/A /* 18 */ SyscallDesc("perfctr", unimplementedFunc), //32 bit 1125529Snate@binkert.org /* 19 */ SyscallDesc("lseek", lseekFunc), //32 bit 1132623SN/A /* 20 */ SyscallDesc("getpid", getpidFunc), 1142SN/A /* 21 */ SyscallDesc("capget", unimplementedFunc), 1151400SN/A /* 22 */ SyscallDesc("capset", unimplementedFunc), 1162683Sktlim@umich.edu /* 23 */ SyscallDesc("setuid", setuidFunc), //32 bit 1172683Sktlim@umich.edu /* 24 */ SyscallDesc("getuid", getuidFunc), //32 bit 1182190SN/A /* 25 */ SyscallDesc("time", unimplementedFunc), 1192683Sktlim@umich.edu /* 26 */ SyscallDesc("ptrace", unimplementedFunc), 1202683Sktlim@umich.edu /* 27 */ SyscallDesc("alarm", unimplementedFunc), 1212683Sktlim@umich.edu /* 28 */ SyscallDesc("sigaltstack", unimplementedFunc), //32 bit 1222680Sktlim@umich.edu /* 29 */ SyscallDesc("pause", unimplementedFunc), //32 bit 1235169Ssaidi@eecs.umich.edu /* 30 */ SyscallDesc("utime", unimplementedFunc), 1245169Ssaidi@eecs.umich.edu /* 31 */ SyscallDesc("lchown32", unimplementedFunc), 1255169Ssaidi@eecs.umich.edu /* 32 */ SyscallDesc("fchown32", unimplementedFunc), 1265496Ssaidi@eecs.umich.edu /* 33 */ SyscallDesc("access", unimplementedFunc), //32 bit 1275496Ssaidi@eecs.umich.edu /* 34 */ SyscallDesc("nice", unimplementedFunc), //32 bit 1285496Ssaidi@eecs.umich.edu /* 35 */ SyscallDesc("chown32", unimplementedFunc), 1295496Ssaidi@eecs.umich.edu /* 36 */ SyscallDesc("sync", unimplementedFunc), 1305496Ssaidi@eecs.umich.edu /* 37 */ SyscallDesc("kill", unimplementedFunc), //32 bit 1315496Ssaidi@eecs.umich.edu /* 38 */ SyscallDesc("stat", unimplementedFunc), 1325496Ssaidi@eecs.umich.edu /* 39 */ SyscallDesc("sendfile", unimplementedFunc), //32 bit 1335496Ssaidi@eecs.umich.edu /* 40 */ SyscallDesc("lstat", unimplementedFunc), 1345496Ssaidi@eecs.umich.edu /* 41 */ SyscallDesc("dup", unimplementedFunc), 1355496Ssaidi@eecs.umich.edu /* 42 */ SyscallDesc("pipe", pipePseudoFunc), 1365496Ssaidi@eecs.umich.edu /* 43 */ SyscallDesc("times", ignoreFunc), 1375496Ssaidi@eecs.umich.edu /* 44 */ SyscallDesc("getuid32", unimplementedFunc), 1385496Ssaidi@eecs.umich.edu /* 45 */ SyscallDesc("umount2", unimplementedFunc), //32 bit 1395496Ssaidi@eecs.umich.edu /* 46 */ SyscallDesc("setgid", unimplementedFunc), //32 bit 1405169Ssaidi@eecs.umich.edu /* 47 */ SyscallDesc("getgid", getgidFunc), //32 bit 1412SN/A /* 48 */ SyscallDesc("signal", unimplementedFunc), //32 bit 1421858SN/A /* 49 */ SyscallDesc("geteuid", geteuidFunc), //32 bit 1432SN/A /* 50 */ SyscallDesc("getegid", getegidFunc), //32 bit 1442SN/A /* 51 */ SyscallDesc("acct", unimplementedFunc), 1452SN/A /* 52 */ SyscallDesc("memory_ordering", unimplementedFunc), 1462SN/A /* 53 */ SyscallDesc("getgid32", unimplementedFunc), 1472SN/A /* 54 */ SyscallDesc("ioctl", unimplementedFunc), 1482SN/A /* 55 */ SyscallDesc("reboot", unimplementedFunc), //32 bit 1494181Sgblack@eecs.umich.edu /* 56 */ SyscallDesc("mmap2", unimplementedFunc), //32 bit 1504181Sgblack@eecs.umich.edu /* 57 */ SyscallDesc("symlink", unimplementedFunc), 1514182Sgblack@eecs.umich.edu /* 58 */ SyscallDesc("readlink", readlinkFunc), //32 bit 1524182Sgblack@eecs.umich.edu /* 59 */ SyscallDesc("execve", unimplementedFunc), //32 bit 1532SN/A /* 60 */ SyscallDesc("umask", unimplementedFunc), //32 bit 1542107SN/A /* 61 */ SyscallDesc("chroot", unimplementedFunc), 1553276Sgblack@eecs.umich.edu /* 62 */ SyscallDesc("fstat", unimplementedFunc), 1561469SN/A /* 63 */ SyscallDesc("fstat64", fstat64Func<Sparc32Linux>), 1574377Sgblack@eecs.umich.edu /* 64 */ SyscallDesc("getpagesize", unimplementedFunc), 1584377Sgblack@eecs.umich.edu /* 65 */ SyscallDesc("msync", unimplementedFunc), //32 bit 1594377Sgblack@eecs.umich.edu /* 66 */ SyscallDesc("vfork", unimplementedFunc), 1604377Sgblack@eecs.umich.edu /* 67 */ SyscallDesc("pread64", unimplementedFunc), //32 bit 1614377Sgblack@eecs.umich.edu /* 68 */ SyscallDesc("pwrite64", unimplementedFunc), //32 bit 1624377Sgblack@eecs.umich.edu /* 69 */ SyscallDesc("geteuid32", unimplementedFunc), 1632623SN/A /* 70 */ SyscallDesc("getegid32", unimplementedFunc), 1642662Sstever@eecs.umich.edu /* 71 */ SyscallDesc("mmap", mmapFunc<Sparc32Linux>), 1652623SN/A /* 72 */ SyscallDesc("setreuid32", unimplementedFunc), 1662623SN/A /* 73 */ SyscallDesc("munmap", munmapFunc), 1672623SN/A /* 74 */ SyscallDesc("mprotect", ignoreFunc), 168180SN/A /* 75 */ SyscallDesc("madvise", unimplementedFunc), 169393SN/A /* 76 */ SyscallDesc("vhangup", unimplementedFunc), 170393SN/A /* 77 */ SyscallDesc("truncate64", unimplementedFunc), //32 bit 1712SN/A /* 78 */ SyscallDesc("mincore", unimplementedFunc), 1722SN/A /* 79 */ SyscallDesc("getgroups", unimplementedFunc), //32 bit 173334SN/A /* 80 */ SyscallDesc("setgroups", unimplementedFunc), //32 bit 174334SN/A /* 81 */ SyscallDesc("getpgrp", unimplementedFunc), 1752SN/A /* 82 */ SyscallDesc("setgroups32", unimplementedFunc), //32 bit 1762SN/A /* 83 */ SyscallDesc("setitimer", unimplementedFunc), //32 bit 1772SN/A /* 84 */ SyscallDesc("ftruncate64", unimplementedFunc), //32 bit 178334SN/A /* 85 */ SyscallDesc("swapon", unimplementedFunc), //32 bit 179729SN/A /* 86 */ SyscallDesc("getitimer", unimplementedFunc), //32 bit 180707SN/A /* 87 */ SyscallDesc("setuid32", unimplementedFunc), 1814998Sgblack@eecs.umich.edu /* 88 */ SyscallDesc("sethostname", unimplementedFunc), //32 bit 1824998Sgblack@eecs.umich.edu /* 89 */ SyscallDesc("setgid32", unimplementedFunc), 1834998Sgblack@eecs.umich.edu /* 90 */ SyscallDesc("dup2", unimplementedFunc), 1844998Sgblack@eecs.umich.edu /* 91 */ SyscallDesc("setfsuid32", unimplementedFunc), 1854998Sgblack@eecs.umich.edu /* 92 */ SyscallDesc("fcntl", unimplementedFunc), 1864998Sgblack@eecs.umich.edu /* 93 */ SyscallDesc("select", unimplementedFunc), //32 bit 1874998Sgblack@eecs.umich.edu /* 94 */ SyscallDesc("setfsgid32", unimplementedFunc), 1884998Sgblack@eecs.umich.edu /* 95 */ SyscallDesc("fsync", unimplementedFunc), 189707SN/A /* 96 */ SyscallDesc("setpriority", unimplementedFunc), //32 bit 190707SN/A /* 97 */ SyscallDesc("socket", unimplementedFunc), 191707SN/A /* 98 */ SyscallDesc("connect", unimplementedFunc), 192707SN/A /* 99 */ SyscallDesc("accept", unimplementedFunc), 1932SN/A /* 100 */ SyscallDesc("getpriority", unimplementedFunc), //32 bit 1944564Sgblack@eecs.umich.edu /* 101 */ SyscallDesc("rt_sigreturn", unimplementedFunc), //32 bit 1954564Sgblack@eecs.umich.edu /* 102 */ SyscallDesc("rt_sigaction", ignoreFunc), //32 bit 1964564Sgblack@eecs.umich.edu /* 103 */ SyscallDesc("rt_sigprocmask", ignoreFunc), //32 bit 1972SN/A /* 104 */ SyscallDesc("rt_sigpending", unimplementedFunc), //32 bit 198729SN/A /* 105 */ SyscallDesc("rt_sigtimedwait", unimplementedFunc), 1992SN/A /* 106 */ SyscallDesc("rt_sigqueueinfo", unimplementedFunc), //32 bit 200124SN/A /* 107 */ SyscallDesc("rt_sigsuspend", unimplementedFunc), 201124SN/A /* 108 */ SyscallDesc("setresuid32", unimplementedFunc), 202334SN/A /* 109 */ SyscallDesc("getresuid32", getresuidFunc), 203124SN/A /* 110 */ SyscallDesc("setresgid32", ignoreFunc), 2042SN/A /* 111 */ SyscallDesc("getresgid32", unimplementedFunc), 205729SN/A /* 112 */ SyscallDesc("setregid32", unimplementedFunc), 206729SN/A /* 113 */ SyscallDesc("revcmsg", unimplementedFunc), 2072SN/A /* 114 */ SyscallDesc("sendmsg", unimplementedFunc), 2082390SN/A /* 115 */ SyscallDesc("getgroups32", unimplementedFunc), //32 bit 209729SN/A /* 116 */ SyscallDesc("gettimeofday", gettimeofdayFunc<Sparc32Linux>), //32 bit 2102SN/A /* 117 */ SyscallDesc("getrusage", unimplementedFunc), //32 bit 2112SN/A /* 118 */ SyscallDesc("getsockopt", unimplementedFunc), 2122390SN/A /* 119 */ SyscallDesc("getcwd", getcwdFunc), 2132390SN/A /* 120 */ SyscallDesc("readv", unimplementedFunc), 2142390SN/A /* 121 */ SyscallDesc("writev", unimplementedFunc), 2152390SN/A /* 122 */ SyscallDesc("settimeofday", unimplementedFunc), //32 bit 2162390SN/A /* 123 */ SyscallDesc("fchown", unimplementedFunc), //32 bit 217729SN/A /* 124 */ SyscallDesc("fchmod", unimplementedFunc), 2182SN/A /* 125 */ SyscallDesc("recvfrom", unimplementedFunc), 2192SN/A /* 126 */ SyscallDesc("setreuid", unimplementedFunc), //32 bit 2202390SN/A /* 127 */ SyscallDesc("setregid", unimplementedFunc), //32 bit 2212390SN/A /* 128 */ SyscallDesc("rename", renameFunc), 2222390SN/A /* 129 */ SyscallDesc("truncate", unimplementedFunc), 2232390SN/A /* 130 */ SyscallDesc("ftruncate", unimplementedFunc), 224217SN/A /* 131 */ SyscallDesc("flock", unimplementedFunc), 225237SN/A /* 132 */ SyscallDesc("lstat64", unimplementedFunc), 2262SN/A /* 133 */ SyscallDesc("sendto", unimplementedFunc), 2271371SN/A /* 134 */ SyscallDesc("shutdown", unimplementedFunc), 2281371SN/A /* 135 */ SyscallDesc("socketpair", unimplementedFunc), 2292623SN/A /* 136 */ SyscallDesc("mkdir", mkdirFunc), //32 bit 2303918Ssaidi@eecs.umich.edu /* 137 */ SyscallDesc("rmdir", unimplementedFunc), 2313918Ssaidi@eecs.umich.edu /* 138 */ SyscallDesc("utimes", unimplementedFunc), //32 bit 2321371SN/A /* 139 */ SyscallDesc("stat64", unimplementedFunc), 233581SN/A /* 140 */ SyscallDesc("sendfile64", unimplementedFunc), //32 bit 2342SN/A /* 141 */ SyscallDesc("getpeername", unimplementedFunc), 2352SN/A /* 142 */ SyscallDesc("futex", unimplementedFunc), //32 bit 2362SN/A /* 143 */ SyscallDesc("gettid", unimplementedFunc), 2372SN/A /* 144 */ SyscallDesc("getrlimit", unimplementedFunc), 238753SN/A /* 145 */ SyscallDesc("setrlimit", unimplementedFunc), 2392SN/A /* 146 */ SyscallDesc("pivot_root", unimplementedFunc), 2402SN/A /* 147 */ SyscallDesc("prctl", unimplementedFunc), //32 bit 2412SN/A /* 148 */ SyscallDesc("pciconfig_read", unimplementedFunc), 242594SN/A /* 149 */ SyscallDesc("pciconfig_write", unimplementedFunc), 2434661Sksewell@umich.edu /* 150 */ SyscallDesc("getsockname", unimplementedFunc), 244595SN/A /* 151 */ SyscallDesc("inotify_init", unimplementedFunc), 245594SN/A /* 152 */ SyscallDesc("inotify_add_watch", unimplementedFunc), 246595SN/A /* 153 */ SyscallDesc("poll", unimplementedFunc), 247705SN/A /* 154 */ SyscallDesc("getdents64", unimplementedFunc), 248726SN/A /* 155 */ SyscallDesc("fcntl64", unimplementedFunc), 249726SN/A /* 156 */ SyscallDesc("inotify_rm_watch", unimplementedFunc), 250726SN/A /* 157 */ SyscallDesc("statfs", unimplementedFunc), 251726SN/A /* 158 */ SyscallDesc("fstatfs", unimplementedFunc), 252726SN/A /* 159 */ SyscallDesc("umount", unimplementedFunc), 253726SN/A /* 160 */ SyscallDesc("sched_setaffinity", unimplementedFunc), 254726SN/A /* 161 */ SyscallDesc("sched_getaffinity", unimplementedFunc), 255726SN/A /* 162 */ SyscallDesc("getdomainname", unimplementedFunc), //32 bit 256726SN/A /* 163 */ SyscallDesc("setdomainname", unimplementedFunc), //32 bit 257726SN/A /* 164 */ SyscallDesc("ni_syscall", unimplementedFunc), 258705SN/A /* 165 */ SyscallDesc("quotactl", unimplementedFunc), 2593735Sstever@eecs.umich.edu /* 166 */ SyscallDesc("set_tid_address", unimplementedFunc), 260726SN/A /* 167 */ SyscallDesc("mount", unimplementedFunc), 2612683Sktlim@umich.edu /* 168 */ SyscallDesc("ustat", unimplementedFunc), 262726SN/A /* 169 */ SyscallDesc("setxattr", unimplementedFunc), //32 bit 263705SN/A /* 170 */ SyscallDesc("lsetxattr", unimplementedFunc), //32 bit 2643735Sstever@eecs.umich.edu /* 171 */ SyscallDesc("fsetxattr", unimplementedFunc), //32 bit 265726SN/A /* 172 */ SyscallDesc("getxattr", unimplementedFunc), 266726SN/A /* 173 */ SyscallDesc("lgetxattr", unimplementedFunc), 2672683Sktlim@umich.edu /* 174 */ SyscallDesc("getdents", unimplementedFunc), 268726SN/A /* 175 */ SyscallDesc("setsid", unimplementedFunc), 269705SN/A /* 176 */ SyscallDesc("fchdir", unimplementedFunc), 2703735Sstever@eecs.umich.edu /* 177 */ SyscallDesc("fgetxattr", unimplementedFunc), //32 bit 271726SN/A /* 178 */ SyscallDesc("listxattr", unimplementedFunc), 272726SN/A /* 179 */ SyscallDesc("llistxattr", unimplementedFunc), 2732683Sktlim@umich.edu /* 180 */ SyscallDesc("flistxattr", unimplementedFunc), //32 bit 274726SN/A /* 181 */ SyscallDesc("removexattr", unimplementedFunc), 275705SN/A /* 182 */ SyscallDesc("lremovexattr", unimplementedFunc), 2763735Sstever@eecs.umich.edu /* 183 */ SyscallDesc("sigpending", unimplementedFunc), 2773735Sstever@eecs.umich.edu /* 184 */ SyscallDesc("query_module", unimplementedFunc), 278726SN/A /* 185 */ SyscallDesc("setpgid", unimplementedFunc), //32 bit 279726SN/A /* 186 */ SyscallDesc("fremovexattr", unimplementedFunc), //32 bit 2802683Sktlim@umich.edu /* 187 */ SyscallDesc("tkill", unimplementedFunc), //32 bit 2812455SN/A /* 188 */ SyscallDesc("exit_group", exitGroupFunc), //32 bit 2822455SN/A /* 189 */ SyscallDesc("uname", unameFunc), 2833735Sstever@eecs.umich.edu /* 190 */ SyscallDesc("init_module", unimplementedFunc), //32 bit 2842455SN/A /* 191 */ SyscallDesc("personality", unimplementedFunc), 2852455SN/A /* 192 */ SyscallDesc("remap_file_pages", unimplementedFunc), 2862683Sktlim@umich.edu /* 193 */ SyscallDesc("epoll_create", unimplementedFunc), //32 bit 287726SN/A /* 194 */ SyscallDesc("epoll_ctl", unimplementedFunc), //32 bit 288705SN/A /* 195 */ SyscallDesc("epoll_wait", unimplementedFunc), //32 bit 2893735Sstever@eecs.umich.edu /* 196 */ SyscallDesc("ioprio_set", unimplementedFunc), //32 bit 290726SN/A /* 197 */ SyscallDesc("getppid", getppidFunc), 2912683Sktlim@umich.edu /* 198 */ SyscallDesc("sigaction", unimplementedFunc), //32 bit 292726SN/A /* 199 */ SyscallDesc("sgetmask", unimplementedFunc), 293705SN/A /* 200 */ SyscallDesc("ssetmask", unimplementedFunc), 2943735Sstever@eecs.umich.edu /* 201 */ SyscallDesc("sigsuspend", unimplementedFunc), 2953735Sstever@eecs.umich.edu /* 202 */ SyscallDesc("oldlstat", unimplementedFunc), 296726SN/A /* 203 */ SyscallDesc("uselib", unimplementedFunc), 297726SN/A /* 204 */ SyscallDesc("readdir", unimplementedFunc), 2982683Sktlim@umich.edu /* 205 */ SyscallDesc("readahead", unimplementedFunc), //32 bit 299726SN/A /* 206 */ SyscallDesc("socketcall", unimplementedFunc), //32 bit 300705SN/A /* 207 */ SyscallDesc("syslog", unimplementedFunc), //32 bit 3013735Sstever@eecs.umich.edu /* 208 */ SyscallDesc("lookup_dcookie", unimplementedFunc), //32 bit 302726SN/A /* 209 */ SyscallDesc("fadvise64", unimplementedFunc), //32 bit 303726SN/A /* 210 */ SyscallDesc("fadvise64_64", unimplementedFunc), //32 bit 3042683Sktlim@umich.edu /* 211 */ SyscallDesc("tgkill", unimplementedFunc), //32 bit 305726SN/A /* 212 */ SyscallDesc("waitpid", unimplementedFunc), //32 bit 306726SN/A /* 213 */ SyscallDesc("swapoff", unimplementedFunc), 3073735Sstever@eecs.umich.edu /* 214 */ SyscallDesc("sysinfo", sysinfoFunc<Sparc32Linux>), //32 bit 3083735Sstever@eecs.umich.edu /* 215 */ SyscallDesc("ipc", unimplementedFunc), //32 bit 309726SN/A /* 216 */ SyscallDesc("sigreturn", unimplementedFunc), //32 bit 310726SN/A /* 217 */ SyscallDesc("clone", cloneFunc), 3112683Sktlim@umich.edu /* 218 */ SyscallDesc("ioprio_get", unimplementedFunc), //32 bit 3122455SN/A /* 219 */ SyscallDesc("adjtimex", unimplementedFunc), //32 bit 3132455SN/A /* 220 */ SyscallDesc("sigprocmask", unimplementedFunc), //32 bit 3143735Sstever@eecs.umich.edu /* 221 */ SyscallDesc("create_module", unimplementedFunc), 3153735Sstever@eecs.umich.edu /* 222 */ SyscallDesc("delete_module", unimplementedFunc), //32 bit 3162455SN/A /* 223 */ SyscallDesc("get_kernel_syms", unimplementedFunc), 3172455SN/A /* 224 */ SyscallDesc("getpgid", unimplementedFunc), //32 bit 3182683Sktlim@umich.edu /* 225 */ SyscallDesc("bdflush", unimplementedFunc), //32 bit 319726SN/A /* 226 */ SyscallDesc("sysfs", unimplementedFunc), //32 bit 320705SN/A /* 227 */ SyscallDesc("afs_syscall", unimplementedFunc), 3212683Sktlim@umich.edu /* 228 */ SyscallDesc("setfsuid", unimplementedFunc), //32 bit 3224950Sgblack@eecs.umich.edu /* 229 */ SyscallDesc("setfsgid", unimplementedFunc), //32 bit 3232683Sktlim@umich.edu /* 230 */ SyscallDesc("_newselect", unimplementedFunc), //32 bit 3244950Sgblack@eecs.umich.edu /* 231 */ SyscallDesc("time", ignoreFunc), 3252683Sktlim@umich.edu /* 232 */ SyscallDesc("oldstat", unimplementedFunc), 3262447SN/A /* 233 */ SyscallDesc("stime", unimplementedFunc), 3272683Sktlim@umich.edu /* 234 */ SyscallDesc("statfs64", unimplementedFunc), 3284950Sgblack@eecs.umich.edu /* 235 */ SyscallDesc("fstatfs64", unimplementedFunc), 3292683Sktlim@umich.edu /* 236 */ SyscallDesc("_llseek", _llseekFunc), 3304950Sgblack@eecs.umich.edu /* 237 */ SyscallDesc("mlock", unimplementedFunc), 3312683Sktlim@umich.edu /* 238 */ SyscallDesc("munlock", unimplementedFunc), 332705SN/A /* 239 */ SyscallDesc("mlockall", unimplementedFunc), //32 bit 3334172Ssaidi@eecs.umich.edu /* 240 */ SyscallDesc("munlockall", unimplementedFunc), 3344172Ssaidi@eecs.umich.edu /* 241 */ SyscallDesc("sched_setparam", unimplementedFunc), //32 bit 3354172Ssaidi@eecs.umich.edu /* 242 */ SyscallDesc("sched_getparam", unimplementedFunc), //32 bit 3364172Ssaidi@eecs.umich.edu /* 243 */ SyscallDesc("sched_setscheduler", unimplementedFunc), //32 bit 3374172Ssaidi@eecs.umich.edu /* 244 */ SyscallDesc("sched_getscheduler", unimplementedFunc), //32 bit 3382159SN/A /* 245 */ SyscallDesc("sched_yield", unimplementedFunc), 3392159SN/A /* 246 */ SyscallDesc("sched_get_priority_max", unimplementedFunc), //32 bit 3402683Sktlim@umich.edu /* 247 */ SyscallDesc("sched_get_priority_min", unimplementedFunc), //32 bit 3412159SN/A /* 248 */ SyscallDesc("sched_rr_get_interval", unimplementedFunc), //32 bit 342705SN/A /* 249 */ SyscallDesc("nanosleep", unimplementedFunc), 3434172Ssaidi@eecs.umich.edu /* 250 */ SyscallDesc("mremap", mremapFunc<Sparc32Linux>), //32 bit 3442159SN/A /* 251 */ SyscallDesc("_sysctl", unimplementedFunc), //32 bit 3454172Ssaidi@eecs.umich.edu /* 252 */ SyscallDesc("getsid", unimplementedFunc), //32 bit 3462159SN/A /* 253 */ SyscallDesc("fdatasync", unimplementedFunc), 3472159SN/A /* 254 */ SyscallDesc("nfsservctl", unimplementedFunc), //32 bit 3483468Sgblack@eecs.umich.edu /* 255 */ SyscallDesc("aplib", unimplementedFunc), 3492159SN/A /* 256 */ SyscallDesc("clock_settime", unimplementedFunc), 3502683Sktlim@umich.edu /* 257 */ SyscallDesc("clock_gettime", unimplementedFunc), 3512159SN/A /* 258 */ SyscallDesc("clock_getres", unimplementedFunc), 3522159SN/A /* 259 */ SyscallDesc("clock_nanosleep", unimplementedFunc), //32 bit 3534185Ssaidi@eecs.umich.edu /* 260 */ SyscallDesc("sched_getaffinity", unimplementedFunc), 3542159SN/A /* 261 */ SyscallDesc("sched_setaffinity", unimplementedFunc), 3554172Ssaidi@eecs.umich.edu /* 262 */ SyscallDesc("timer_settime", unimplementedFunc), //32 bit 3564172Ssaidi@eecs.umich.edu /* 263 */ SyscallDesc("timer_gettime", unimplementedFunc), 3572159SN/A /* 264 */ SyscallDesc("timer_getoverrun", unimplementedFunc), 358705SN/A /* 265 */ SyscallDesc("timer_delete", unimplementedFunc), 3594185Ssaidi@eecs.umich.edu /* 266 */ SyscallDesc("timer_create", unimplementedFunc), 3603792Sgblack@eecs.umich.edu /* 267 */ SyscallDesc("vserver", unimplementedFunc), 3613792Sgblack@eecs.umich.edu /* 268 */ SyscallDesc("io_setup", unimplementedFunc), 3623792Sgblack@eecs.umich.edu /* 269 */ SyscallDesc("io_destroy", unimplementedFunc), 3633792Sgblack@eecs.umich.edu /* 270 */ SyscallDesc("io_submit", unimplementedFunc), //32 bit 3643792Sgblack@eecs.umich.edu /* 271 */ SyscallDesc("io_cancel", unimplementedFunc), 3654185Ssaidi@eecs.umich.edu /* 272 */ SyscallDesc("io_getevents", unimplementedFunc), 3663792Sgblack@eecs.umich.edu /* 273 */ SyscallDesc("mq_open", unimplementedFunc), //32 bit 3673792Sgblack@eecs.umich.edu /* 274 */ SyscallDesc("mq_unlink", unimplementedFunc), 3684172Ssaidi@eecs.umich.edu /* 275 */ SyscallDesc("mq_timedsend", unimplementedFunc), 3693792Sgblack@eecs.umich.edu /* 276 */ SyscallDesc("mq_timedreceive", unimplementedFunc), 3703792Sgblack@eecs.umich.edu /* 277 */ SyscallDesc("mq_notify", unimplementedFunc), 3714185Ssaidi@eecs.umich.edu /* 278 */ SyscallDesc("mq_getsetattr", unimplementedFunc), 3723792Sgblack@eecs.umich.edu /* 279 */ SyscallDesc("waitid", unimplementedFunc), 3733792Sgblack@eecs.umich.edu /* 280 */ SyscallDesc("sys_setaltroot", unimplementedFunc), 3743792Sgblack@eecs.umich.edu /* 281 */ SyscallDesc("add_key", unimplementedFunc), 3754172Ssaidi@eecs.umich.edu /* 282 */ SyscallDesc("request_key", unimplementedFunc), 3763792Sgblack@eecs.umich.edu /* 283 */ SyscallDesc("keyctl", unimplementedFunc), 3773792Sgblack@eecs.umich.edu /* 284 */ SyscallDesc("openat", unimplementedFunc), 3785358Sgblack@eecs.umich.edu /* 285 */ SyscallDesc("mkdirat", unimplementedFunc), 3795358Sgblack@eecs.umich.edu /* 286 */ SyscallDesc("mknodat", unimplementedFunc), 3805358Sgblack@eecs.umich.edu /* 287 */ SyscallDesc("fchownat", unimplementedFunc), 3815358Sgblack@eecs.umich.edu /* 288 */ SyscallDesc("futimesat", unimplementedFunc), 3825358Sgblack@eecs.umich.edu /* 289 */ SyscallDesc("fstatat64", unimplementedFunc), 3835358Sgblack@eecs.umich.edu /* 290 */ SyscallDesc("unlinkat", unimplementedFunc), 3845358Sgblack@eecs.umich.edu /* 291 */ SyscallDesc("renameat", unimplementedFunc), 3855358Sgblack@eecs.umich.edu /* 292 */ SyscallDesc("linkat", unimplementedFunc), 3865358Sgblack@eecs.umich.edu /* 293 */ SyscallDesc("symlinkat", unimplementedFunc), 3875358Sgblack@eecs.umich.edu /* 294 */ SyscallDesc("readlinkat", unimplementedFunc), 3885358Sgblack@eecs.umich.edu /* 295 */ SyscallDesc("fchmodat", unimplementedFunc), 3895358Sgblack@eecs.umich.edu /* 296 */ SyscallDesc("faccessat", unimplementedFunc), 3905358Sgblack@eecs.umich.edu /* 297 */ SyscallDesc("pselect6", unimplementedFunc), 3915358Sgblack@eecs.umich.edu /* 298 */ SyscallDesc("ppoll", unimplementedFunc), 3925358Sgblack@eecs.umich.edu /* 299 */ SyscallDesc("unshare", unimplementedFunc) 3934027Sstever@eecs.umich.edu}; 3944027Sstever@eecs.umich.edu 3954027Sstever@eecs.umich.educonst int SparcLinuxProcess::Num_Syscall32_Descs = 3964027Sstever@eecs.umich.edu sizeof(SparcLinuxProcess::syscall32Descs) / sizeof(SyscallDesc); 3974027Sstever@eecs.umich.edu 3984027Sstever@eecs.umich.eduSyscallDesc SparcLinuxProcess::syscallDescs[] = { 3994027Sstever@eecs.umich.edu /* 0 */ SyscallDesc("restart_syscall", unimplementedFunc), 4004027Sstever@eecs.umich.edu /* 1 */ SyscallDesc("exit", exitFunc), 4014661Sksewell@umich.edu /* 2 */ SyscallDesc("fork", unimplementedFunc), 4024661Sksewell@umich.edu /* 3 */ SyscallDesc("read", readFunc), 4034661Sksewell@umich.edu /* 4 */ SyscallDesc("write", writeFunc), 4044661Sksewell@umich.edu /* 5 */ SyscallDesc("open", openFunc<SparcLinux>), 4054661Sksewell@umich.edu /* 6 */ SyscallDesc("close", closeFunc), 4064661Sksewell@umich.edu /* 7 */ SyscallDesc("wait4", unimplementedFunc), 4074661Sksewell@umich.edu /* 8 */ SyscallDesc("creat", unimplementedFunc), 4084661Sksewell@umich.edu /* 9 */ SyscallDesc("link", unimplementedFunc), 4094661Sksewell@umich.edu /* 10 */ SyscallDesc("unlink", unlinkFunc), 4104661Sksewell@umich.edu /* 11 */ SyscallDesc("execv", unimplementedFunc), 4114661Sksewell@umich.edu /* 12 */ SyscallDesc("chdir", unimplementedFunc), 4124661Sksewell@umich.edu /* 13 */ SyscallDesc("chown", chownFunc), 4135250Sksewell@umich.edu /* 14 */ SyscallDesc("mknod", unimplementedFunc), 4145222Sksewell@umich.edu /* 15 */ SyscallDesc("chmod", chmodFunc<Linux>), 4151858SN/A /* 16 */ SyscallDesc("lchown", unimplementedFunc), 4162683Sktlim@umich.edu /* 17 */ SyscallDesc("brk", brkFunc), 4172680Sktlim@umich.edu /* 18 */ SyscallDesc("perfctr", unimplementedFunc), 4182683Sktlim@umich.edu /* 19 */ SyscallDesc("lseek", lseekFunc), 419705SN/A /* 20 */ SyscallDesc("getpid", getpidFunc), 4202683Sktlim@umich.edu /* 21 */ SyscallDesc("capget", unimplementedFunc), 421705SN/A /* 22 */ SyscallDesc("capset", unimplementedFunc), 422705SN/A /* 23 */ SyscallDesc("setuid", setuidFunc), 4232683Sktlim@umich.edu /* 24 */ SyscallDesc("getuid", getuidFunc), 4242680Sktlim@umich.edu /* 25 */ SyscallDesc("time", unimplementedFunc), 4252SN/A /* 26 */ SyscallDesc("ptrace", unimplementedFunc), 4262SN/A /* 27 */ SyscallDesc("alarm", unimplementedFunc), 4272623SN/A /* 28 */ SyscallDesc("sigaltstack", unimplementedFunc), 428 /* 29 */ SyscallDesc("pause", unimplementedFunc), 429 /* 30 */ SyscallDesc("utime", unimplementedFunc), 430 /* 31 */ SyscallDesc("lchown32", unimplementedFunc), 431 /* 32 */ SyscallDesc("fchown32", unimplementedFunc), 432 /* 33 */ SyscallDesc("access", unimplementedFunc), 433 /* 34 */ SyscallDesc("nice", unimplementedFunc), 434 /* 35 */ SyscallDesc("chown32", unimplementedFunc), 435 /* 36 */ SyscallDesc("sync", unimplementedFunc), 436 /* 37 */ SyscallDesc("kill", unimplementedFunc), 437 /* 38 */ SyscallDesc("stat", unimplementedFunc), 438 /* 39 */ SyscallDesc("sendfile", unimplementedFunc), 439 /* 40 */ SyscallDesc("lstat", unimplementedFunc), 440 /* 41 */ SyscallDesc("dup", unimplementedFunc), 441 /* 42 */ SyscallDesc("pipe", pipePseudoFunc), 442 /* 43 */ SyscallDesc("times", ignoreFunc), 443 /* 44 */ SyscallDesc("getuid32", unimplementedFunc), 444 /* 45 */ SyscallDesc("umount2", unimplementedFunc), 445 /* 46 */ SyscallDesc("setgid", unimplementedFunc), 446 /* 47 */ SyscallDesc("getgid", getgidFunc), 447 /* 48 */ SyscallDesc("signal", unimplementedFunc), 448 /* 49 */ SyscallDesc("geteuid", geteuidFunc), 449 /* 50 */ SyscallDesc("getegid", getegidFunc), 450 /* 51 */ SyscallDesc("acct", unimplementedFunc), 451 /* 52 */ SyscallDesc("memory_ordering", unimplementedFunc), 452 /* 53 */ SyscallDesc("getgid32", unimplementedFunc), 453 /* 54 */ SyscallDesc("ioctl", unimplementedFunc), 454 /* 55 */ SyscallDesc("reboot", unimplementedFunc), 455 /* 56 */ SyscallDesc("mmap2", unimplementedFunc), 456 /* 57 */ SyscallDesc("symlink", unimplementedFunc), 457 /* 58 */ SyscallDesc("readlink", readlinkFunc), 458 /* 59 */ SyscallDesc("execve", unimplementedFunc), 459 /* 60 */ SyscallDesc("umask", unimplementedFunc), 460 /* 61 */ SyscallDesc("chroot", unimplementedFunc), 461 /* 62 */ SyscallDesc("fstat", fstatFunc<SparcLinux>), 462 /* 63 */ SyscallDesc("fstat64", unimplementedFunc), 463 /* 64 */ SyscallDesc("getpagesize", unimplementedFunc), 464 /* 65 */ SyscallDesc("msync", unimplementedFunc), 465 /* 66 */ SyscallDesc("vfork", unimplementedFunc), 466 /* 67 */ SyscallDesc("pread64", unimplementedFunc), 467 /* 68 */ SyscallDesc("pwrite64", unimplementedFunc), 468 /* 69 */ SyscallDesc("geteuid32", unimplementedFunc), 469 /* 70 */ SyscallDesc("getegid32", unimplementedFunc), 470 /* 71 */ SyscallDesc("mmap", mmapFunc<SparcLinux>), 471 /* 72 */ SyscallDesc("setreuid32", unimplementedFunc), 472 /* 73 */ SyscallDesc("munmap", munmapFunc), 473 /* 74 */ SyscallDesc("mprotect", ignoreFunc), 474 /* 75 */ SyscallDesc("madvise", unimplementedFunc), 475 /* 76 */ SyscallDesc("vhangup", unimplementedFunc), 476 /* 77 */ SyscallDesc("truncate64", unimplementedFunc), 477 /* 78 */ SyscallDesc("mincore", unimplementedFunc), 478 /* 79 */ SyscallDesc("getgroups", unimplementedFunc), 479 /* 80 */ SyscallDesc("setgroups", unimplementedFunc), 480 /* 81 */ SyscallDesc("getpgrp", unimplementedFunc), 481 /* 82 */ SyscallDesc("setgroups32", unimplementedFunc), 482 /* 83 */ SyscallDesc("setitimer", unimplementedFunc), 483 /* 84 */ SyscallDesc("ftruncate64", unimplementedFunc), 484 /* 85 */ SyscallDesc("swapon", unimplementedFunc), 485 /* 86 */ SyscallDesc("getitimer", unimplementedFunc), 486 /* 87 */ SyscallDesc("setuid32", unimplementedFunc), 487 /* 88 */ SyscallDesc("sethostname", unimplementedFunc), 488 /* 89 */ SyscallDesc("setgid32", unimplementedFunc), 489 /* 90 */ SyscallDesc("dup2", unimplementedFunc), 490 /* 91 */ SyscallDesc("setfsuid32", unimplementedFunc), 491 /* 92 */ SyscallDesc("fcntl", unimplementedFunc), 492 /* 93 */ SyscallDesc("select", unimplementedFunc), 493 /* 94 */ SyscallDesc("setfsgid32", unimplementedFunc), 494 /* 95 */ SyscallDesc("fsync", unimplementedFunc), 495 /* 96 */ SyscallDesc("setpriority", unimplementedFunc), 496 /* 97 */ SyscallDesc("socket", unimplementedFunc), 497 /* 98 */ SyscallDesc("connect", unimplementedFunc), 498 /* 99 */ SyscallDesc("accept", unimplementedFunc), 499 /* 100 */ SyscallDesc("getpriority", unimplementedFunc), 500 /* 101 */ SyscallDesc("rt_sigreturn", unimplementedFunc), 501 /* 102 */ SyscallDesc("rt_sigaction", ignoreFunc), 502 /* 103 */ SyscallDesc("rt_sigprocmask", ignoreFunc), 503 /* 104 */ SyscallDesc("rt_sigpending", unimplementedFunc), 504 /* 105 */ SyscallDesc("rt_sigtimedwait", unimplementedFunc), 505 /* 106 */ SyscallDesc("rt_sigqueueinfo", unimplementedFunc), 506 /* 107 */ SyscallDesc("rt_sigsuspend", unimplementedFunc), 507 /* 108 */ SyscallDesc("setresuid", unimplementedFunc), 508 /* 109 */ SyscallDesc("getresuid", getresuidFunc), 509 /* 110 */ SyscallDesc("setresgid", ignoreFunc), 510 /* 111 */ SyscallDesc("getresgid", unimplementedFunc), 511 /* 112 */ SyscallDesc("setregid32", unimplementedFunc), 512 /* 113 */ SyscallDesc("recvmsg", unimplementedFunc), 513 /* 114 */ SyscallDesc("sendmsg", unimplementedFunc), 514 /* 115 */ SyscallDesc("getgroups32", unimplementedFunc), 515 /* 116 */ SyscallDesc("gettimeofday", gettimeofdayFunc<SparcLinux>), 516 /* 117 */ SyscallDesc("getrusage", unimplementedFunc), 517 /* 118 */ SyscallDesc("getsockopt", unimplementedFunc), 518 /* 119 */ SyscallDesc("getcwd", unimplementedFunc), 519 /* 120 */ SyscallDesc("readv", unimplementedFunc), 520 /* 121 */ SyscallDesc("writev", unimplementedFunc), 521 /* 122 */ SyscallDesc("settimeofday", unimplementedFunc), 522 /* 123 */ SyscallDesc("fchown", unimplementedFunc), 523 /* 124 */ SyscallDesc("fchmod", unimplementedFunc), 524 /* 125 */ SyscallDesc("recvfrom", unimplementedFunc), 525 /* 126 */ SyscallDesc("setreuid", unimplementedFunc), 526 /* 127 */ SyscallDesc("setregid", unimplementedFunc), 527 /* 128 */ SyscallDesc("rename", renameFunc), 528 /* 129 */ SyscallDesc("truncate", unimplementedFunc), 529 /* 130 */ SyscallDesc("ftruncate", unimplementedFunc), 530 /* 131 */ SyscallDesc("flock", unimplementedFunc), 531 /* 132 */ SyscallDesc("lstat64", unimplementedFunc), 532 /* 133 */ SyscallDesc("sendto", unimplementedFunc), 533 /* 134 */ SyscallDesc("shutdown", unimplementedFunc), 534 /* 135 */ SyscallDesc("socketpair", unimplementedFunc), 535 /* 136 */ SyscallDesc("mkdir", mkdirFunc), 536 /* 137 */ SyscallDesc("rmdir", unimplementedFunc), 537 /* 138 */ SyscallDesc("utimes", unimplementedFunc), 538 /* 139 */ SyscallDesc("stat64", unimplementedFunc), 539 /* 140 */ SyscallDesc("sendfile64", unimplementedFunc), 540 /* 141 */ SyscallDesc("getpeername", unimplementedFunc), 541 /* 142 */ SyscallDesc("futex", unimplementedFunc), 542 /* 143 */ SyscallDesc("gettid", unimplementedFunc), 543 /* 144 */ SyscallDesc("getrlimit", unimplementedFunc), 544 /* 145 */ SyscallDesc("setrlimit", unimplementedFunc), 545 /* 146 */ SyscallDesc("pivot_root", unimplementedFunc), 546 /* 147 */ SyscallDesc("prctl", unimplementedFunc), 547 /* 148 */ SyscallDesc("pciconfig_read", unimplementedFunc), 548 /* 149 */ SyscallDesc("pciconfig_write", unimplementedFunc), 549 /* 150 */ SyscallDesc("getsockname", unimplementedFunc), 550 /* 151 */ SyscallDesc("inotify_init", unimplementedFunc), 551 /* 152 */ SyscallDesc("inotify_add_watch", unimplementedFunc), 552 /* 153 */ SyscallDesc("poll", unimplementedFunc), 553 /* 154 */ SyscallDesc("getdents64", unimplementedFunc), 554 /* 155 */ SyscallDesc("fcntl64", unimplementedFunc), 555 /* 156 */ SyscallDesc("inotify_rm_watch", unimplementedFunc), 556 /* 157 */ SyscallDesc("statfs", unimplementedFunc), 557 /* 158 */ SyscallDesc("fstatfs", unimplementedFunc), 558 /* 159 */ SyscallDesc("umount", unimplementedFunc), 559 /* 160 */ SyscallDesc("sched_set_affinity", unimplementedFunc), 560 /* 161 */ SyscallDesc("sched_get_affinity", unimplementedFunc), 561 /* 162 */ SyscallDesc("getdomainname", unimplementedFunc), 562 /* 163 */ SyscallDesc("setdomainname", unimplementedFunc), 563 /* 164 */ SyscallDesc("utrap_install", unimplementedFunc), 564 /* 165 */ SyscallDesc("quotactl", unimplementedFunc), 565 /* 166 */ SyscallDesc("set_tid_address", unimplementedFunc), 566 /* 167 */ SyscallDesc("mount", unimplementedFunc), 567 /* 168 */ SyscallDesc("ustat", unimplementedFunc), 568 /* 169 */ SyscallDesc("setxattr", unimplementedFunc), 569 /* 170 */ SyscallDesc("lsetxattr", unimplementedFunc), 570 /* 171 */ SyscallDesc("fsetxattr", unimplementedFunc), 571 /* 172 */ SyscallDesc("getxattr", unimplementedFunc), 572 /* 173 */ SyscallDesc("lgetxattr", unimplementedFunc), 573 /* 174 */ SyscallDesc("getdents", unimplementedFunc), 574 /* 175 */ SyscallDesc("setsid", unimplementedFunc), 575 /* 176 */ SyscallDesc("fchdir", unimplementedFunc), 576 /* 177 */ SyscallDesc("fgetxattr", unimplementedFunc), 577 /* 178 */ SyscallDesc("listxattr", unimplementedFunc), 578 /* 179 */ SyscallDesc("llistxattr", unimplementedFunc), 579 /* 180 */ SyscallDesc("flistxattr", unimplementedFunc), 580 /* 181 */ SyscallDesc("removexattr", unimplementedFunc), 581 /* 182 */ SyscallDesc("lremovexattr", unimplementedFunc), 582 /* 183 */ SyscallDesc("sigpending", unimplementedFunc), 583 /* 184 */ SyscallDesc("query_module", unimplementedFunc), 584 /* 185 */ SyscallDesc("setpgid", unimplementedFunc), 585 /* 186 */ SyscallDesc("fremovexattr", unimplementedFunc), 586 /* 187 */ SyscallDesc("tkill", unimplementedFunc), 587 /* 188 */ SyscallDesc("exit_group", exitGroupFunc), 588 /* 189 */ SyscallDesc("uname", unameFunc), 589 /* 190 */ SyscallDesc("init_module", unimplementedFunc), 590 /* 191 */ SyscallDesc("personality", unimplementedFunc), 591 /* 192 */ SyscallDesc("remap_file_pages", unimplementedFunc), 592 /* 193 */ SyscallDesc("epoll_create", unimplementedFunc), 593 /* 194 */ SyscallDesc("epoll_ctl", unimplementedFunc), 594 /* 195 */ SyscallDesc("epoll_wait", unimplementedFunc), 595 /* 196 */ SyscallDesc("ioprio_set", unimplementedFunc), 596 /* 197 */ SyscallDesc("getppid", getppidFunc), 597 /* 198 */ SyscallDesc("sigaction", ignoreFunc), 598 /* 199 */ SyscallDesc("sgetmask", unimplementedFunc), 599 /* 200 */ SyscallDesc("ssetmask", unimplementedFunc), 600 /* 201 */ SyscallDesc("sigsuspend", unimplementedFunc), 601 /* 202 */ SyscallDesc("oldlstat", unimplementedFunc), 602 /* 203 */ SyscallDesc("uselib", unimplementedFunc), 603 /* 204 */ SyscallDesc("readdir", unimplementedFunc), 604 /* 205 */ SyscallDesc("readahead", unimplementedFunc), 605 /* 206 */ SyscallDesc("socketcall", unimplementedFunc), 606 /* 207 */ SyscallDesc("syslog", unimplementedFunc), 607 /* 208 */ SyscallDesc("lookup_dcookie", unimplementedFunc), 608 /* 209 */ SyscallDesc("fadvise64", unimplementedFunc), 609 /* 210 */ SyscallDesc("fadvise64_64", unimplementedFunc), 610 /* 211 */ SyscallDesc("tgkill", unimplementedFunc), 611 /* 212 */ SyscallDesc("waitpid", unimplementedFunc), 612 /* 213 */ SyscallDesc("swapoff", unimplementedFunc), 613 /* 214 */ SyscallDesc("sysinfo", sysinfoFunc<SparcLinux>), 614 /* 215 */ SyscallDesc("ipc", unimplementedFunc), 615 /* 216 */ SyscallDesc("sigreturn", unimplementedFunc), 616 /* 217 */ SyscallDesc("clone", cloneFunc), 617 /* 218 */ SyscallDesc("ioprio_get", unimplementedFunc), 618 /* 219 */ SyscallDesc("adjtimex", unimplementedFunc), 619 /* 220 */ SyscallDesc("sigprocmask", unimplementedFunc), 620 /* 221 */ SyscallDesc("create_module", unimplementedFunc), 621 /* 222 */ SyscallDesc("delete_module", unimplementedFunc), 622 /* 223 */ SyscallDesc("get_kernel_syms", unimplementedFunc), 623 /* 224 */ SyscallDesc("getpgid", unimplementedFunc), 624 /* 225 */ SyscallDesc("bdflush", unimplementedFunc), 625 /* 226 */ SyscallDesc("sysfs", unimplementedFunc), 626 /* 227 */ SyscallDesc("afs_syscall", unimplementedFunc), 627 /* 228 */ SyscallDesc("setfsuid", unimplementedFunc), 628 /* 229 */ SyscallDesc("setfsgid", unimplementedFunc), 629 /* 230 */ SyscallDesc("_newselect", unimplementedFunc), 630 /* 231 */ SyscallDesc("time", ignoreFunc), 631 /* 232 */ SyscallDesc("oldstat", unimplementedFunc), 632 /* 233 */ SyscallDesc("stime", unimplementedFunc), 633 /* 234 */ SyscallDesc("statfs64", unimplementedFunc), 634 /* 235 */ SyscallDesc("fstatfs64", unimplementedFunc), 635 /* 236 */ SyscallDesc("_llseek", _llseekFunc), 636 /* 237 */ SyscallDesc("mlock", unimplementedFunc), 637 /* 238 */ SyscallDesc("munlock", unimplementedFunc), 638 /* 239 */ SyscallDesc("mlockall", unimplementedFunc), 639 /* 240 */ SyscallDesc("munlockall", unimplementedFunc), 640 /* 241 */ SyscallDesc("sched_setparam", unimplementedFunc), 641 /* 242 */ SyscallDesc("sched_getparam", unimplementedFunc), 642 /* 243 */ SyscallDesc("sched_setscheduler", unimplementedFunc), 643 /* 244 */ SyscallDesc("sched_getscheduler", unimplementedFunc), 644 /* 245 */ SyscallDesc("sched_yield", unimplementedFunc), 645 /* 246 */ SyscallDesc("sched_get_priority_max", unimplementedFunc), 646 /* 247 */ SyscallDesc("sched_get_priority_min", unimplementedFunc), 647 /* 248 */ SyscallDesc("sched_rr_get_interval", unimplementedFunc), 648 /* 249 */ SyscallDesc("nanosleep", unimplementedFunc), 649 /* 250 */ SyscallDesc("mremap", mremapFunc<SparcLinux>), 650 /* 251 */ SyscallDesc("_sysctl", unimplementedFunc), 651 /* 252 */ SyscallDesc("getsid", unimplementedFunc), 652 /* 253 */ SyscallDesc("fdatasync", unimplementedFunc), 653 /* 254 */ SyscallDesc("nfsservctl", unimplementedFunc), 654 /* 255 */ SyscallDesc("aplib", unimplementedFunc), 655 /* 256 */ SyscallDesc("clock_settime", unimplementedFunc), 656 /* 257 */ SyscallDesc("clock_gettime", unimplementedFunc), 657 /* 258 */ SyscallDesc("clock_getres", unimplementedFunc), 658 /* 259 */ SyscallDesc("clock_nanosleep", unimplementedFunc), 659 /* 260 */ SyscallDesc("sched_getaffinity", unimplementedFunc), 660 /* 261 */ SyscallDesc("sched_setaffinity", unimplementedFunc), 661 /* 262 */ SyscallDesc("timer_settime", unimplementedFunc), 662 /* 263 */ SyscallDesc("timer_gettime", unimplementedFunc), 663 /* 264 */ SyscallDesc("timer_getoverrun", unimplementedFunc), 664 /* 265 */ SyscallDesc("timer_delete", unimplementedFunc), 665 /* 266 */ SyscallDesc("timer_create", unimplementedFunc), 666 /* 267 */ SyscallDesc("vserver", unimplementedFunc), 667 /* 268 */ SyscallDesc("io_setup", unimplementedFunc), 668 /* 269 */ SyscallDesc("io_destroy", unimplementedFunc), 669 /* 270 */ SyscallDesc("io_submit", unimplementedFunc), 670 /* 271 */ SyscallDesc("io_cancel", unimplementedFunc), 671 /* 272 */ SyscallDesc("io_getevents", unimplementedFunc), 672 /* 273 */ SyscallDesc("mq_open", unimplementedFunc), 673 /* 274 */ SyscallDesc("mq_unlink", unimplementedFunc), 674 /* 275 */ SyscallDesc("mq_timedsend", unimplementedFunc), 675 /* 276 */ SyscallDesc("mq_timedreceive", unimplementedFunc), 676 /* 277 */ SyscallDesc("mq_notify", unimplementedFunc), 677 /* 278 */ SyscallDesc("mq_getsetattr", unimplementedFunc), 678 /* 279 */ SyscallDesc("waitid", unimplementedFunc), 679 /* 280 */ SyscallDesc("sys_setaltroot", unimplementedFunc), 680 /* 281 */ SyscallDesc("add_key", unimplementedFunc), 681 /* 282 */ SyscallDesc("request_key", unimplementedFunc), 682 /* 283 */ SyscallDesc("keyctl", unimplementedFunc) 683}; 684 685const int SparcLinuxProcess::Num_Syscall_Descs = 686 sizeof(SparcLinuxProcess::syscallDescs) / sizeof(SyscallDesc); 687 688} // namespace SparcISA 689