From nobody Thu Apr 18 13:58:37 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 4VKzrt1jVxz5GvjK; Thu, 18 Apr 2024 13:58:38 +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 4VKzrs73Xmz4PTK; Thu, 18 Apr 2024 13:58:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713448718; 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=ltp0oLy1Wj9v26ak64ptQVDOf9j5MvEfdz24cg8evao=; b=m5ValghbwhNbN6A+6tLpfltML6OjaA16d7kedQbia/AAFw9ZWTG9ouPysrQOr3fM8l81Cw HJGoeTZOCCJnUicVsPgP+EUnkEhz3J6XM8E3wLxAdZ0EawQef0tn6618A7uVSOKDGgH2D9 x0abtkccGtUuDlcOSmrF+YNn8LxCij52+myGXnYhQ9Zj2/D3j5SR25DZlJ8aHaJLJEVNMu Ybv/Bgl8TNjhLSxd839J8ArZ7rwXrE1KO6tcwjMvn0B9mG/Sss/382wevY5sFgbewbnXDm zQwTAZ/QEU+LBFAdrarrZ5ZAkiYGWrih44pZtyPzjcCEaWYMA91T+4Ipgmhcig== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713448718; a=rsa-sha256; cv=none; b=PI/ft1i1yBIJatG+5ttEgFqkaceASZibS6uDGgo0ZoYjLkMAUUgwRK1Ols0Hkz7ErCQAZx Pgg7Yylk4l3YKMbQePwAWUftZgVPsnO2OlcKIrkABK1JcpOy+QkQ5SpHDkqImpaxmI7WnX IHyHmgIQKpvKrcwZubCAeRp5fLaOcwfnLhPLQKFc84zf770tfSfNMt8NAzPRjfqXhC2EPX KiNaqJoLDX+dt0ZMcNATAQzBu2USjALSAeig0ChtTWw71gLPWwtcIelb0Aq13HqtcnjEzN KMMgMAtWoGSG+ftQ5p9/WwVDAjgYLkJ4gUt/1TQ+FwpVbiXZIcHSsMCe98om+A== 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=1713448718; 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=ltp0oLy1Wj9v26ak64ptQVDOf9j5MvEfdz24cg8evao=; b=x0rCJR6AKkLc7Shu7bdM3IEg4YQVY17LeVm8eO00EBAzST/s3zhh2eV0wBvIRJv2bEzlAM 8CZUczA0wRZje0F0eCjILUUGkn61tkT8LWp1qw7cv7U/0rF8uNn+2EYo5WW9zM6+N0XBsi QyE2R3sDX/lp3omjXtSMEoMO4UNkIPQoWNchJYktTGalGrce1InXvDJPF18IN1S5tnAKI4 9YihP60qXRSroB0PmWq9yGcp9gIp6lgKJpIY3wJKPPsDycQ4xDmPYy/7NuA4hQX7ZGyHGs zkgqCZXthkpshJi09a1tWDAe+hZWm+1+MqogRS9dYwQA7+l//M5YjnvHsJZlfg== 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 4VKzrs6gXgz1Bg8; Thu, 18 Apr 2024 13:58:37 +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 43IDwbT0076132; Thu, 18 Apr 2024 13:58:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43IDwbgd076129; Thu, 18 Apr 2024 13:58:37 GMT (envelope-from git) Date: Thu, 18 Apr 2024 13:58:37 GMT Message-Id: <202404181358.43IDwbgd076129@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: ee632fb9eb4a - main - lib{c,sys}: normalize export of openat, setcontext, and swapcontext 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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: ee632fb9eb4a060a4087a7f5425bfe36e65cda61 Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=ee632fb9eb4a060a4087a7f5425bfe36e65cda61 commit ee632fb9eb4a060a4087a7f5425bfe36e65cda61 Author: Brooks Davis AuthorDate: 2024-04-16 22:26:29 +0000 Commit: Brooks Davis CommitDate: 2024-04-17 22:39:46 +0000 lib{c,sys}: normalize export of openat, setcontext, and swapcontext List them in the symbol map rather than using the __sym_default to expose them. This will allow later improvements in the stub implementations in libc.so. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44113 --- lib/libc/sys/openat.c | 1 - lib/libc/sys/setcontext.c | 1 - lib/libc/sys/swapcontext.c | 1 - lib/libsys/Symbol.sys.map | 4 ++++ 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/libc/sys/openat.c b/lib/libc/sys/openat.c index 1cd8e7d90745..389360a5a9f5 100644 --- a/lib/libc/sys/openat.c +++ b/lib/libc/sys/openat.c @@ -37,7 +37,6 @@ __weak_reference(__sys_openat, __openat); __sym_compat(openat, __impl_openat, FBSD_1.1); __weak_reference(openat, __impl_openat); -__sym_default(openat, openat, FBSD_1.2); #pragma weak openat int diff --git a/lib/libc/sys/setcontext.c b/lib/libc/sys/setcontext.c index 96b5dc115067..301cca84c4f9 100644 --- a/lib/libc/sys/setcontext.c +++ b/lib/libc/sys/setcontext.c @@ -36,7 +36,6 @@ __weak_reference(__sys_setcontext, __setcontext); __sym_compat(setcontext, __impl_setcontext, FBSD_1.0); __weak_reference(setcontext, __impl_setcontext); -__sym_default(setcontext, setcontext, FBSD_1.2); #pragma weak setcontext int diff --git a/lib/libc/sys/swapcontext.c b/lib/libc/sys/swapcontext.c index b69a5b19e698..42793a516c70 100644 --- a/lib/libc/sys/swapcontext.c +++ b/lib/libc/sys/swapcontext.c @@ -38,7 +38,6 @@ __weak_reference(__sys_swapcontext, __swapcontext); __sym_compat(swapcontext, __impl_swapcontext, FBSD_1.0); __weak_reference(swapcontext, __impl_swapcontext); -__sym_default(swapcontext, swapcontext, FBSD_1.2); #pragma weak swapcontext int diff --git a/lib/libsys/Symbol.sys.map b/lib/libsys/Symbol.sys.map index 822c007d32f1..359570c413a4 100644 --- a/lib/libsys/Symbol.sys.map +++ b/lib/libsys/Symbol.sys.map @@ -301,6 +301,8 @@ FBSD_1.2 { cap_getmode; getloginclass; getpagesizes; + openat; + pdfork; pdgetpid; pdkill; posix_fallocate; @@ -309,7 +311,9 @@ FBSD_1.2 { rctl_get_limits; rctl_add_rule; rctl_remove_rule; + setcontext; setloginclass; + swapcontext; }; FBSD_1.3 {