From nobody Thu Feb 23 18:10:23 2023 X-Original-To: dev-commits-src-main@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 4PN1KC6JV9z3sKDL; Thu, 23 Feb 2023 18:10:23 +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 4PN1KC5Y3sz3rty; Thu, 23 Feb 2023 18:10:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677175823; 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=DNigWFib7efNBDTRGzMdZjzr/d9CVXZVtgGBiC9WRu4=; b=gDxiDsmGiA3mxgJHsIwdDUq9gD3rdBnmhCGwinq9hyWK4Aeg15fUuLv/RhM7hSDhyVdb1R udLagJd/azxz1Ef2eRaxT9ScSTTHmmZrLAmVuBffmPGnu8rtKYtIUMfN85iSkFaWsAcwPf zv5C8nso6IATlTO87R8nnkZKVow8o9l9Z0KUwabR9qogbIyFwJ4PsoQ8WvktM2p6OLMqSt SeHJeVJSoSkZ6yi6l2MDMJLg6tfGWu59IwW4g2x1PHzp+sb61EWs2NMndprk+/iI5N/gzT RKf1n8aAUI3+G89x+PmiIG7719sMGz0S9uyc/cLPbQTMKu2pGvtS/4YVYjzgsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677175823; 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=DNigWFib7efNBDTRGzMdZjzr/d9CVXZVtgGBiC9WRu4=; b=SiHlbRNH3EjxOUkrI6N4Lov+XHLlJFNd9voXp+WfYH0nissdE4vn+pzZEztuxGHg3jTMUE NoO6vxOGOh73A9Xvpyjr3eyB/+nBICwnRaNYtvk06VIkzrgLXGN4HF+rQU/8HBT4LYZN36 alkqWjweML6srXeanoQmBAp8ZlNOIEi6uwGPf0qvov0RQAFX+OYwe9D7V6kPn6fa0gbEj4 k4/iVrJXQuWXMITeYJVg6yG7GSpiyT9GaMN+Rk4fIhNszILC5OV6Qk9pvfg9v/x5TNST9E kbEEDTIz6EsCGUkm1yn5UrfO4qOo/Fn8YwL6607sFG1OWLIuaLMjAmQnZj6r/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677175823; a=rsa-sha256; cv=none; b=kAw7Kw36x1tDYD27UVPdiftDbn/k1nDRKZrjAoMdctXSp02mkpoNYy60GaZj1fK6E8mGHT uaLlqQlSJ9auGtsrPaToz1MCUVr+KpzMISI0P0zCn4zAxWyvHKpLly03knGvX9nbDnaAgH 8fun1jbGsAO8KYyecO681TGDjL8Ci0y9Wkr4CHFtK7P+UyVzsRqQHkSrEG0Rq+YJqmR3BK eZSnq5xkab7AMrsCGLKrW0ek0laSIzCPDY1yMQLx9cv9XMkT5O9SJthoZi/4RWSJcc2G/z W1kasKwau7Ad2OWr2TKVN+7kIl77xtqj9u3IXasWd8+qLZDN2OrDBr+yqxj2Iw== 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 4PN1KC4btBzs77; Thu, 23 Feb 2023 18:10:23 +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 31NIANoG099957; Thu, 23 Feb 2023 18:10:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31NIAN53099956; Thu, 23 Feb 2023 18:10:23 GMT (envelope-from git) Date: Thu, 23 Feb 2023 18:10:23 GMT Message-Id: <202302231810.31NIAN53099956@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: 7f0ebf0876c8 - main - Delete obsolete Solaris compat header file stdlib.h List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 7f0ebf0876c82a098bd5815ea6bf3a8efa6dd6f3 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=7f0ebf0876c82a098bd5815ea6bf3a8efa6dd6f3 commit 7f0ebf0876c82a098bd5815ea6bf3a8efa6dd6f3 Author: Zhenlei Huang AuthorDate: 2023-02-23 18:00:09 +0000 Commit: Zhenlei Huang CommitDate: 2023-02-23 18:00:09 +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 --- 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