From nobody Thu Mar 2 02:56:49 2023 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 4PRwjs3hZbz3vjSP; Thu, 2 Mar 2023 02:56:49 +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 4PRwjs35Fvz43VB; Thu, 2 Mar 2023 02:56:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677725809; 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=SzHXzZyEoSPO2Dzs9n5wK8G2ldFK4DlY3LlVMZNJZU8=; b=Nzfd2uAk3pTWifW20HbESZS/a4z1j20RaaleYtLHgQJEK/5QI9g3NRdPqBQfZrwRTdANxG h5zLQiFzVPPjxqeOK+0V+9BzJ/6K6HI6kI55Ud/vf5mbyVVaBEZh2rFTcZUHe5PqQv2w8S aBppB1eGo7lxXUHo6Twa6XO9ByinfEFwA4pemRGkBxsRj1vWFhfpg1OA/a6ZHVvZJn4oMf D16cVONw+o54LNulRd8mEfDBDx6X/QVosLH6X7qhAJO3WKYk8BsDIPAWiKMIuDIdQbw7Q8 hZADFmZY12+/z3wc9/wSP9kmwa6mRCIy78bofreiHOADiopsgr06ZmY1wImWJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677725809; 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=SzHXzZyEoSPO2Dzs9n5wK8G2ldFK4DlY3LlVMZNJZU8=; b=o1C4MIhemLaUTwO7503oRgD7eUgAicpFox1krhyKtrgrUeaxKRgyVujeCNDCo4Qt7qJMXl fICe2MSsx3Sag5ymxoF4KuPT2oZwrJNiSojwHu2yEDEnXKWq83gEZBR3jmHF8c+dCfY4yN sYqsZbofx/CqDiIFhVzHcGVQfd/7ADZW2uDidhMnK3PiiGTiGUNpsnHcV5ggmq2fEu6vPZ cj9jFIQbkbTeLI5Guo3NjiuczFzbKHTLDHVAHd+v0yIVCNiDL3LzETj8Cz5HXcd3HN7sfZ cA8x4YC3mfAg1AvS2khi7pGvaqmhoZL6hg+zk3fPbHd12axbZCM2xEqC/u/D/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677725809; a=rsa-sha256; cv=none; b=B1KGQJtaf1tdrzMAtogS/nHobciEYf/s8DxV9lqcOr6OCbHrpBKjjIhuRbe+kgFcTPXa9s 6edNbPb8NNF0nfdJgySLSUb+4fHXvLgP4z5tYYEUDUdVOopEeCGiTOp49XutwxOBQyWKpV vDQrjwuqFJxVhZbIpX8BBq+W3zmcwIt6MifilUB9XiFTsHk1C8J+gvHEHYcIL5DmyH2m20 7yOdIZRzy9rpGW5O3wTtg7wMyXx8lDdTyOZupKmoqbKMM+ydcuCcAymIJbhx+VLA0I58Wi 2p8UifmdnI2qOWTZrSYvo/AiydzEfwNAZ6Sh/u1GMfkzfx1NfVBbH3u0ubqTSw== 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 4PRwjs1qgCzyv2; Thu, 2 Mar 2023 02:56:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 3222unu4019766; Thu, 2 Mar 2023 02:56:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3222unrJ019765; Thu, 2 Mar 2023 02:56:49 GMT (envelope-from git) Date: Thu, 2 Mar 2023 02:56:49 GMT Message-Id: <202303020256.3222unrJ019765@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 95f418fe2a0f - stable/13 - Delete obsolete Solaris compat header file stdlib.h 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: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 95f418fe2a0fb96080afbd2afc160929a32d12fb Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=95f418fe2a0fb96080afbd2afc160929a32d12fb commit 95f418fe2a0fb96080afbd2afc160929a32d12fb Author: Zhenlei Huang AuthorDate: 2023-02-23 18:00:09 +0000 Commit: Zhenlei Huang CommitDate: 2023-03-02 02:56:05 +0000 Delete obsolete Solaris compat header file stdlib.h This drops function `getexecname()` redirection. Historically `getexecname()` is a compatibility definition. Since openzfs has its own implementation of function `getexecname()` in libspl and has been merged into base, the compat header file stdlib.h is no longer needed and should not be used. Also without this fix libspl will end up an incompatible version of `getprogname()` with libc. In particular, if zfs is enabled, programs such as pgrep in /rescue can be wrongly statically linked with libspl and will not function properly. PR: 269738 Reviewed by: markj Fixes: 9e5787d2284e Merge OpenZFS support in to HEAD MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D38733 (cherry picked from commit 7f0ebf0876c82a098bd5815ea6bf3a8efa6dd6f3) --- cddl/compat/opensolaris/include/stdlib.h | 37 -------------------------------- 1 file changed, 37 deletions(-) diff --git a/cddl/compat/opensolaris/include/stdlib.h b/cddl/compat/opensolaris/include/stdlib.h deleted file mode 100644 index 9ba32322c03b..000000000000 --- a/cddl/compat/opensolaris/include/stdlib.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2007 John Birrell - * 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 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 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. - * - * $FreeBSD$ - * - */ - -#include_next - -#ifndef _COMPAT_OPENSOLARIS_STDLIB_H_ -#define _COMPAT_OPENSOLARIS_STDLIB_H_ - -#define getexecname getprogname - -#endif