From nobody Thu Mar 07 01:06:50 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tqrjk5LgCz5CHyx; Thu, 7 Mar 2024 01:06:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tqrjk49Rkz4nk3; Thu, 7 Mar 2024 01:06:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709773610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rL3sNH3jcM0tX8334WsRFFu6XoKS7RNwM/FBKp22g3w=; b=fun58/ojfaSi3XGTGUzDqLazQBJlKbXIZxQMrYpjp/BLVlTwAwlHDs+N7f/sFuFcT/RBmt WnVRE1/wjhyrunLHiF/Ehyx8JSDo9XU8E2R0CrtZhMKQa9IvGht+U1PQuoRYQidLGrcN5Z fW+5t9ztwM6OsE4Pbd/+5q+s2uvq7W2EKvkMf2++Rer+hwO1BK4exltbwZoxYhrcyN65Kq oRZATj25x/ZfcvWXq/O4n3VO/53W77ufd3FhAMLOKB62aodSpH3G2Ow2cB0j+kJNf4brel +eXH2mSgekGPa35APifL+VW8LLiopG7wXeyAU9x+THvossqJkndziwPNQKbWlQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709773610; a=rsa-sha256; cv=none; b=U0K0fr2eLO71eG+Nzvu087+oSrt/fKdnwE4BqS6sWY/ygrMelEy4Q4dvEVk7Qc7uaJl5mV 2DEc4nNFibyX29TVBt+8WUU6U/fnv89xj3A8UWd19tt4d96wlooNlZ1fPusyUXTWgAdW8T ULe9Y85dVNosM3ULOra9OiasOyXwXzDn7DpMfNCV67kN17KsQtyf0NFxdj8g2homB7n6w8 lZwVp/Y16kXeJX2zGuorwoeeBjTPoFfKjyhRW755e3IFlbCXGBscoB97C+js/ldDCiEF4Q cnjSMXDR+VCUx0dJqt24wS19LMZlvkXFUvlHX7tccUVmW3YGBtvE+HOfGW1EXw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709773610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rL3sNH3jcM0tX8334WsRFFu6XoKS7RNwM/FBKp22g3w=; b=DF03vg+Nwad15onZX2j8kaYvzB7T/pUYZlBFawkz9FhBe/BcbI7gGViBuv55YNfaGnLtG+ DiSUnvyMUNNitngK+rk5JHOGFxxV/VIgncI6VpQw7//ei1Z/4s0R7P0mE8uc74/jWr/CiJ S8afvvXx5LVN975duQCoqhte6sQhT96EXGcNC2TYKY1t2Cqh6f2IgcptvygweSpAT55fPy bVtzKURZALKVfOaX7qU3TkkrOrk7J9ge4+2tefsQFr5CAdI/A63W27y8Ac6ienhSCH67zH 9jlnXlivcSBzN5WtggxHXMqkJ5vRbR17MLkdsGtZhowMuMrw6aKIDZplY4Y6WA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tqrjk3nSHz1CsC; Thu, 7 Mar 2024 01:06:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42716omt006662; Thu, 7 Mar 2024 01:06:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42716oV3006659; Thu, 7 Mar 2024 01:06:50 GMT (envelope-from git) Date: Thu, 7 Mar 2024 01:06:50 GMT Message-Id: <202403070106.42716oV3006659@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: cc4ffc978668 - main - libsys: don't try to expose yield List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cc4ffc978668cbc9cd58ae7c9e01025a276aa5fd Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=cc4ffc978668cbc9cd58ae7c9e01025a276aa5fd commit cc4ffc978668cbc9cd58ae7c9e01025a276aa5fd Author: Brooks Davis AuthorDate: 2024-03-07 01:01:36 +0000 Commit: Brooks Davis CommitDate: 2024-03-07 01:01:36 +0000 libsys: don't try to expose yield The undocumented yield system call has never been implemented via libc or libsys (except accidentally for <15 minutes in 1998 between commits abd529cebab9 and 0db2fac06ab7). Avoid trying to export it now to avoid failures when linking with --no-undefined-version. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44236 --- lib/libsys/syscalls.map | 2 -- sys/tools/makesyscalls.lua | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/libsys/syscalls.map b/lib/libsys/syscalls.map index b79c512834e0..eeb75dc28a2c 100644 --- a/lib/libsys/syscalls.map +++ b/lib/libsys/syscalls.map @@ -353,8 +353,6 @@ FBSDprivate_1.0 { __sys_aio_cancel; _aio_error; __sys_aio_error; - _yield; - __sys_yield; _mlockall; __sys_mlockall; _munlockall; diff --git a/sys/tools/makesyscalls.lua b/sys/tools/makesyscalls.lua index 8784ff603e81..6f21079d0ebc 100644 --- a/sys/tools/makesyscalls.lua +++ b/sys/tools/makesyscalls.lua @@ -924,6 +924,10 @@ local function handle_noncompat(sysnum, thr_flag, flags, sysflags, rettype, config.syscallprefix, funcalias, sysnum)) write_line("sysmk", string.format(" \\\n\t%s.o", funcalias)) + -- yield has never been exposed as a syscall + if funcalias == "yield" then + return + end if funcalias ~= "exit" and funcalias ~= "vfork" then write_line("libsysmap", string.format("\t_%s;\n", funcalias))