From nobody Wed Feb 21 00:29:25 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 4TfcbV25tFz59yqZ; Wed, 21 Feb 2024 00:29:26 +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 4TfcbV0Jbkz4Cbw; Wed, 21 Feb 2024 00:29:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708475366; 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=OCwKNYzBRW0R+/6Zoa04YKaBkDmQPjM/SU4qbqFbZw4=; b=gh1ISooRYT6YyOVp6HlkrAZ8dt5TSVpZbtl1Lx1cpsspwly3cglRYpVpQT9+FHrdYt3unP lMYcpMUnSNz7yApVZm/qn4oU8DHa9Z6pPDc6mZhRxoEq0r96XikgB5wiZuh3St6jCNx6OW gvkTXIiWuOdly1Do4YcEDH7Q3pgxajfPie0f2NGbe5+h4fsVbB4KxhsPVFLjx6mRE6j8VK pNdDBQg5ISX4EaQH+HKdoKnTx4aAI7jy+qcMRX8EwZEJluzO6EjeR/gVn+YbP5MTh3V1lH tPscp8X4LGTbASFJWsqaz7/8KayU9l3/qj9jZS3d6JYtKn3kkw9KjzdvzJCNfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708475366; 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=OCwKNYzBRW0R+/6Zoa04YKaBkDmQPjM/SU4qbqFbZw4=; b=KuYigkb6IKHkrzTBvahTOqUmJyLaRevdbMAn4ukdwaYfsoomCACAZ4j77dRr9ehzmogGRY L6l8vJTJczLCyBr8ocZ0xlJncc4BFJ8R4Nd/0Z8wuFkFwQILfgHTONid1FrTL6V1srpwTh t89UxXdXvHSN6Kf7e/EbWE6C3RWrlldFZGWYvJ8F4OegGOwtE/d13KFnEzm6AU+nZagnRJ NYP7IqXyJBNfBM4GvAuIKIH89JWbXscOFPZpnFxATn+smyK7h/35S5GDNjnEVUyV7zBvaY 74301+EpUThNf1Rjw4ZHjk5k4cOUlVsXDK6+ASS8t36Tpdrxq0VuEiKyrHZ6xg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708475366; a=rsa-sha256; cv=none; b=gbmC9cbJf8DIGtXpl0NMR8d0oPmCqT2ywajl9Z04KPtuKBo3umO1CtLP45oe07Gti1Dlf1 CMICT3Z2jrZe5WBRR1Dm+JmhUCD44TC2Y1uiq8SWdMCUBNX3QJKiAI/urWC17ficrOM6ve QMHroe3huYB+qlslNafqEl2wbFXnCWjALRCcE+xhp0E7/UQ/rME+krydyIJMqMSyPa/sz2 hZ8FBVRMDhcoJ+I/iM3PuJ2VXa9scxJQDihu8FA1z1B6Md1EgyVU+f0TWz5tDRG9SA6T6D gfumd0Cywe+GdKnS46NheYWO6ikoHf1/IGYHx+arKGB3ofjIqEAlJa02Q7v8Xw== 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 4TfcbT6Vl0zgvX; Wed, 21 Feb 2024 00:29:25 +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 41L0TPwv000276; Wed, 21 Feb 2024 00:29:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41L0TPFO000273; Wed, 21 Feb 2024 00:29:25 GMT (envelope-from git) Date: Wed, 21 Feb 2024 00:29:25 GMT Message-Id: <202402210029.41L0TPFO000273@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: fe920a4f2f80 - main - libsys: move errno to libsys 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fe920a4f2f80fda4a24c3991de0d593e06ae7f6f Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=fe920a4f2f80fda4a24c3991de0d593e06ae7f6f commit fe920a4f2f80fda4a24c3991de0d593e06ae7f6f Author: Konstantin Belousov AuthorDate: 2024-02-20 15:13:09 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-21 00:26:11 +0000 libsys: move errno to libsys Before, the 'errno' itself was defined in libc and was referenced by libsys, causing undesired dependency. Reviewed by: brooks, imp Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D43985 --- lib/libc/gen/Makefile.inc | 1 - lib/libc/gen/Symbol.map | 1 - lib/libc/gen/errno.c | 29 ----------------------------- lib/libsys/Symbol.sys.map | 1 + lib/libsys/__error.c | 2 +- 5 files changed, 2 insertions(+), 32 deletions(-) diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc index ce7a34d0e58e..648ddc76e056 100644 --- a/lib/libc/gen/Makefile.inc +++ b/lib/libc/gen/Makefile.inc @@ -47,7 +47,6 @@ SRCS+= \ erand48.c \ err.c \ errlst.c \ - errno.c \ eventfd.c \ exec.c \ exect.c \ diff --git a/lib/libc/gen/Symbol.map b/lib/libc/gen/Symbol.map index 0821563e0c9f..7b002941ea4e 100644 --- a/lib/libc/gen/Symbol.map +++ b/lib/libc/gen/Symbol.map @@ -99,7 +99,6 @@ FBSD_1.0 { vwarnx; sys_errlist; sys_nerr; - errno; exect; execl; execle; diff --git a/lib/libc/gen/errno.c b/lib/libc/gen/errno.c deleted file mode 100644 index d35a481dff3f..000000000000 --- a/lib/libc/gen/errno.c +++ /dev/null @@ -1,29 +0,0 @@ -/*- - * SPDX-License-Identifier: BSD-2-Clause - * - * Copyright (c) 2002 Peter Wemm - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - */ - -int errno; diff --git a/lib/libsys/Symbol.sys.map b/lib/libsys/Symbol.sys.map index d59ac8674669..4b9373ffa773 100644 --- a/lib/libsys/Symbol.sys.map +++ b/lib/libsys/Symbol.sys.map @@ -76,6 +76,7 @@ FBSD_1.0 { extattr_set_file; extattr_set_link; extattrctl; + errno; fchdir; fchflags; fchmod; diff --git a/lib/libsys/__error.c b/lib/libsys/__error.c index 7f2bf5713b1d..1132bdba9c65 100644 --- a/lib/libsys/__error.c +++ b/lib/libsys/__error.c @@ -31,7 +31,7 @@ #include "libc_private.h" -extern int errno; +int errno; static int * __error_unthreaded(void)