From patchwork Fri Jun 1 07:30:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 137478 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp614945lji; Fri, 1 Jun 2018 00:46:43 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKdj+/EJjkCJx1iq9twMen24kWZVpWRrNX4oZHFim0nP3KhlIcFPx8u1g/q/1Qsz5HPX3am X-Received: by 2002:ac8:27ce:: with SMTP id x14-v6mr9250593qtx.171.1527839203707; Fri, 01 Jun 2018 00:46:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527839203; cv=none; d=google.com; s=arc-20160816; b=ro28xGLUUn14loTEJafsH0Gz8390dTNcNzcyDAUbHL22VI1rzLvUv7rU4vkJg0HLaW 8P4YJDCqxlEKwLVtfJ3ikt7JyBG+7BBGNB7BkUZyYU/rJ6iK0mEzUGHJZuCmb8OGh0bL zdrPEPKs183Py2MWOX4fgYJVTULszYOvTDkWN5IpaifQ6nec0kgRIv3jLgHlalwBIbyv LS4VV1eVVavBE4K28JMoHi+KkkvgvQfZ/WAUl3jN4p/Mkw0LPikCnYupgAUT1Meg+uzI y1bOdZidmuuYvft1zs8vNWk99Sj4cu+90rkoDd5UKygQEfmrpYCbNZPOJ3hFS86KQyJK VOZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=eDDYKmMROVWD/d0Q2XV5jyBE9VfX9oJROc52warn9p4=; b=hG7TuArcvgNeali7EOW815shbGK3MhVbD8N7O3uSLPhze7KxcHI3LnS544B+eE4vFy cMOU0qwC3lvY3pW4l4aQmapWGOYXWXAO8D7Et83iJyNfjmfR1NLDXe7IHssOBq4OOnrB OBwdDVM4wqUmw4niBo3jgne8+ZTpoWqfM44Dx5mwQ3UciZB2Po5khIiv45+vhpe4Zcrs MVCQRvJRRn/VZCWNqd01i5L884DUroYWLN7KnuM5Bt/7O5lrNch8fvEVDWHzMgyyFhA9 3E6uQ9FJDu/gn2hrXQCBYk8MGoSKcLp0M5sSPDNX/QKptOSg+DglLCP6hAgE59dDF/pg p5tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=TiiD0C3g; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id k186-v6si728945qkf.286.2018.06.01.00.46.43 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 01 Jun 2018 00:46:43 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=TiiD0C3g; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOeln-0000a4-4b for patch@linaro.org; Fri, 01 Jun 2018 03:46:43 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOeWx-0005fN-Kp for qemu-devel@nongnu.org; Fri, 01 Jun 2018 03:31:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fOeWw-0000ak-8C for qemu-devel@nongnu.org; Fri, 01 Jun 2018 03:31:23 -0400 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]:35484) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fOeWv-0000Zu-W2 for qemu-devel@nongnu.org; Fri, 01 Jun 2018 03:31:22 -0400 Received: by mail-pl0-x242.google.com with SMTP id i5-v6so14820540plt.2 for ; Fri, 01 Jun 2018 00:31:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eDDYKmMROVWD/d0Q2XV5jyBE9VfX9oJROc52warn9p4=; b=TiiD0C3ghlOJfarD3egpJBZ0xO4WJCnuL+hYj1Zr+jOCv38Unv03hVvCcBOvLFQiVf 1Ev9CPNpYlyJyq4N72Q/zgPRdtJzPE+1XR7GrlFmf7zHsr4CPQkUet6pTKuPViv26E1V ULqJ8eYZ5P0puKLtXshX1gNGegb9IkaE2sFFU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=eDDYKmMROVWD/d0Q2XV5jyBE9VfX9oJROc52warn9p4=; b=gh2VAxy/Fs4KeIxhoOjYDOt7Za2CvHxl3TLfwpd+r5dW1KSvB5nUdnD036p7npXvhR 7tJwepwvoOD6eF+n78LY5cWrEMDUB+xNUc9wmSGrl95PmPfm4tNifw59yXbGrhsLpct7 fECY8qr3t/Js7hBuVkBlqTrnrbXRt/F4cE6gxowEs7w5foL3SgHDNqm+2fjoP+1GHuG4 2+czi5cMlYi3sqMGv75ycD2WmIsxYEcxzXWBHECa8JTzStbTusEMdW0sTRDsEooDXa5n 1zi/tKn3S2NgmBRHzpYRxOZ3LmBYbrRuAnaQyvYYRx9a+jM9lhFLDoOuvRB6Ut8HaROV Ce7Q== X-Gm-Message-State: ALKqPweyZAhASKaIOJXkaFvQXER8/etTtNaUBmr5aUHlXLZ4qiFqU6NQ sPjB77bFPVxQ+8H9nJIup2F6yDvnUls= X-Received: by 2002:a17:902:b488:: with SMTP id y8-v6mr9900587plr.157.1527838280673; Fri, 01 Jun 2018 00:31:20 -0700 (PDT) Received: from cloudburst.twiddle.net (97-126-112-211.tukw.qwest.net. [97.126.112.211]) by smtp.gmail.com with ESMTPSA id c4-v6sm4431782pgv.86.2018.06.01.00.31.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Jun 2018 00:31:19 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 1 Jun 2018 00:30:36 -0700 Message-Id: <20180601073050.8054-20-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180601073050.8054-1-richard.henderson@linaro.org> References: <20180601073050.8054-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::242 Subject: [Qemu-devel] [PATCH 19/33] linux-user: Remove all unimplemented entries X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" There is no reason to list these, since -ENOSYS is the default. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 140 ------------------------------------------- 1 file changed, 140 deletions(-) -- 2.17.0 diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 88e0da31ba..6a701ea8f6 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8460,14 +8460,6 @@ IMPL(everything_else) char *fn; switch(num) { -#ifdef TARGET_NR_break - case TARGET_NR_break: - return do_unimplemented(num); -#endif -#ifdef TARGET_NR_oldstat - case TARGET_NR_oldstat: - return do_unimplemented(num); -#endif case TARGET_NR_lseek: if (is_hostfd(arg1)) { return -TARGET_EBADF; @@ -8555,16 +8547,10 @@ IMPL(everything_else) return get_errno(stime(&host_time)); } #endif - case TARGET_NR_ptrace: - return do_unimplemented(num); #ifdef TARGET_NR_alarm /* not on alpha */ case TARGET_NR_alarm: return alarm(arg1); #endif -#ifdef TARGET_NR_oldfstat - case TARGET_NR_oldfstat: - return do_unimplemented(num); -#endif #ifdef TARGET_NR_pause /* not on alpha */ case TARGET_NR_pause: if (!block_signals()) { @@ -8640,14 +8626,6 @@ IMPL(everything_else) } return ret; #endif -#ifdef TARGET_NR_stty - case TARGET_NR_stty: - return do_unimplemented(num); -#endif -#ifdef TARGET_NR_gtty - case TARGET_NR_gtty: - return do_unimplemented(num); -#endif #ifdef TARGET_NR_access case TARGET_NR_access: if (!(fn = lock_user_string(arg1))) { @@ -8678,10 +8656,6 @@ IMPL(everything_else) #ifdef TARGET_NR_nice /* not on alpha */ case TARGET_NR_nice: return get_errno(nice(arg1)); -#endif -#ifdef TARGET_NR_ftime - case TARGET_NR_ftime: - return do_unimplemented(num); #endif case TARGET_NR_sync: sync(); @@ -8805,14 +8779,6 @@ IMPL(everything_else) ret = host_to_target_clock_t(ret); } return ret; -#ifdef TARGET_NR_prof - case TARGET_NR_prof: - return do_unimplemented(num); -#endif -#ifdef TARGET_NR_signal - case TARGET_NR_signal: - return do_unimplemented(num); -#endif case TARGET_NR_acct: if (arg1 == 0) { ret = get_errno(acct(NULL)); @@ -8832,31 +8798,15 @@ IMPL(everything_else) ret = get_errno(umount2(p, arg2)); unlock_user(p, arg1, 0); return ret; -#endif -#ifdef TARGET_NR_lock - case TARGET_NR_lock: - return do_unimplemented(num); #endif case TARGET_NR_ioctl: return do_ioctl(arg1, arg2, arg3); #ifdef TARGET_NR_fcntl case TARGET_NR_fcntl: return do_fcntl(arg1, arg2, arg3); -#endif -#ifdef TARGET_NR_mpx - case TARGET_NR_mpx: - return do_unimplemented(num); #endif case TARGET_NR_setpgid: return get_errno(setpgid(arg1, arg2)); -#ifdef TARGET_NR_ulimit - case TARGET_NR_ulimit: - return do_unimplemented(num); -#endif -#ifdef TARGET_NR_oldolduname - case TARGET_NR_oldolduname: - return do_unimplemented(num); -#endif case TARGET_NR_umask: return get_errno(umask(arg1)); case TARGET_NR_chroot: @@ -8865,10 +8815,6 @@ IMPL(everything_else) ret = get_errno(chroot(p)); unlock_user(p, arg1, 0); return ret; -#ifdef TARGET_NR_ustat - case TARGET_NR_ustat: - return do_unimplemented(num); -#endif #ifdef TARGET_NR_dup2 case TARGET_NR_dup2: if (is_hostfd(arg1) || is_hostfd(arg2)) { @@ -9585,10 +9531,6 @@ IMPL(everything_else) } return ret; #endif -#ifdef TARGET_NR_oldlstat - case TARGET_NR_oldlstat: - return do_unimplemented(num); -#endif #ifdef TARGET_NR_readlink case TARGET_NR_readlink: { @@ -9650,10 +9592,6 @@ IMPL(everything_else) } return ret; #endif -#ifdef TARGET_NR_uselib - case TARGET_NR_uselib: - return do_unimplemented(num); -#endif #ifdef TARGET_NR_swapon case TARGET_NR_swapon: if (!(p = lock_user_string(arg1))) @@ -9675,10 +9613,6 @@ IMPL(everything_else) ret = get_errno(reboot(arg1, arg2, arg3, NULL)); } return ret; -#ifdef TARGET_NR_readdir - case TARGET_NR_readdir: - return do_unimplemented(num); -#endif #ifdef TARGET_NR_mmap case TARGET_NR_mmap: #if (defined(TARGET_I386) && defined(TARGET_ABI32)) || \ @@ -9813,10 +9747,6 @@ IMPL(everything_else) return ret; case TARGET_NR_setpriority: return get_errno(setpriority(arg1, arg2, arg3)); -#ifdef TARGET_NR_profil - case TARGET_NR_profil: - return do_unimplemented(num); -#endif case TARGET_NR_statfs: if (!(fn = lock_user_string(arg1))) { return -TARGET_EFAULT; @@ -9892,10 +9822,6 @@ IMPL(everything_else) ret = get_errno(fstatfs(arg1, &stfs)); goto convert_statfs64; #endif -#ifdef TARGET_NR_ioperm - case TARGET_NR_ioperm: - return do_unimplemented(num); -#endif #ifdef TARGET_NR_socketcall case TARGET_NR_socketcall: return do_socketcall(arg1, arg2); @@ -10173,20 +10099,8 @@ IMPL(everything_else) } } return ret; -#ifdef TARGET_NR_olduname - case TARGET_NR_olduname: - return do_unimplemented(num); -#endif -#ifdef TARGET_NR_iopl - case TARGET_NR_iopl: - return do_unimplemented(num); -#endif case TARGET_NR_vhangup: return get_errno(vhangup()); -#ifdef TARGET_NR_idle - case TARGET_NR_idle: - return do_unimplemented(num); -#endif #ifdef TARGET_NR_syscall case TARGET_NR_syscall: return do_syscall(cpu_env, arg1 & 0xffff, arg2, arg3, arg4, arg5, @@ -10364,8 +10278,6 @@ IMPL(everything_else) case TARGET_NR_modify_ldt: return do_modify_ldt(cpu_env, arg1, arg2, arg3); #if !defined(TARGET_X86_64) - case TARGET_NR_vm86old: - return do_unimplemented(num); case TARGET_NR_vm86: return do_vm86(cpu_env, arg1, arg2); #endif @@ -10402,17 +10314,6 @@ IMPL(everything_else) } return ret; #endif -#ifdef TARGET_NR_create_module - case TARGET_NR_create_module: -#endif - case TARGET_NR_init_module: - case TARGET_NR_delete_module: -#ifdef TARGET_NR_get_kernel_syms - case TARGET_NR_get_kernel_syms: -#endif - return do_unimplemented(num); - case TARGET_NR_quotactl: - return do_unimplemented(num); case TARGET_NR_getpgid: return get_errno(getpgid(arg1)); case TARGET_NR_fchdir: @@ -10420,20 +10321,8 @@ IMPL(everything_else) return -TARGET_EBADF; } return get_errno(fchdir(arg1)); -#ifdef TARGET_NR_bdflush /* not on x86_64 */ - case TARGET_NR_bdflush: - return do_unimplemented(num); -#endif -#ifdef TARGET_NR_sysfs - case TARGET_NR_sysfs: - return do_unimplemented(num); -#endif case TARGET_NR_personality: return get_errno(personality(arg1)); -#ifdef TARGET_NR_afs_syscall - case TARGET_NR_afs_syscall: - return do_unimplemented(num); -#endif #ifdef TARGET_NR__llseek /* Not on alpha */ case TARGET_NR__llseek: if (is_hostfd(arg1)) { @@ -10975,14 +10864,6 @@ IMPL(everything_else) } } return ret; -#ifdef TARGET_NR_query_module - case TARGET_NR_query_module: - return do_unimplemented(num); -#endif -#ifdef TARGET_NR_nfsservctl - case TARGET_NR_nfsservctl: - return do_unimplemented(num); -#endif case TARGET_NR_prctl: switch (arg1) { case PR_GET_PDEATHSIG: @@ -11223,21 +11104,6 @@ IMPL(everything_else) return ret; } #endif -#else - case TARGET_NR_sendfile: -#ifdef TARGET_NR_sendfile64 - case TARGET_NR_sendfile64: -#endif - return do_unimplemented(num); -#endif - -#ifdef TARGET_NR_getpmsg - case TARGET_NR_getpmsg: - return do_unimplemented(num); -#endif -#ifdef TARGET_NR_putpmsg - case TARGET_NR_putpmsg: - return do_unimplemented(num); #endif #ifdef TARGET_NR_vfork case TARGET_NR_vfork: @@ -11801,8 +11667,6 @@ IMPL(everything_else) return get_errno(setfsgid(arg1)); #endif - case TARGET_NR_pivot_root: - return do_unimplemented(num); #ifdef TARGET_NR_mincore case TARGET_NR_mincore: { @@ -11972,10 +11836,6 @@ IMPL(everything_else) /* self-modifying code is handled automatically, so nothing needed */ return 0; #endif -#ifdef TARGET_NR_security - case TARGET_NR_security: - return do_unimplemented(num); -#endif #ifdef TARGET_NR_getpagesize case TARGET_NR_getpagesize: return TARGET_PAGE_SIZE;