From nobody Fri Mar 24 09:13:24 2023 X-Original-To: freebsd-current@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 4Pjc2L4d65z41KVM; Fri, 24 Mar 2023 09:13:30 +0000 (UTC) (envelope-from otis@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Pjc2L45p0z3MKh; Fri, 24 Mar 2023 09:13:30 +0000 (UTC) (envelope-from otis@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679649210; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sbuFxWviZECGkjKvn2/EUY6bTlPeXpnXdF+P4npNjHM=; b=ibf4WJkd2ZNWY6g8CgxuKj/Fva1F1QnSVCOZ6uDc7exKAiFb+0G41WGLr0Ur/JsFeYce+k L+mWM9CJ4yhcgIHkAHlDiJp1gqdAFlki7Q5zQSqu/GJKu38SWX8b8pcwO9eCFulBAmScHl HwtP2I20/j4qA7VDgDk6Zh+/z71xG8cmnd8mS7UvZs756ieN4njZVEUysTjwEHkxjVXgyA 0ckv0qqtWKK50IfUlh3QAWmIosi3ZEmU1R+jPAkH3dVVqqFu8eEOoDTVyNqvsWn9nnt5mR 3iJhxp919xbR3CEUOyigx8cmXKgLYWsNMk2ESEpgM+EnV94Uc7bZKB2NuKo/gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679649210; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sbuFxWviZECGkjKvn2/EUY6bTlPeXpnXdF+P4npNjHM=; b=HKMl6e93QqTH6IRcJVZVQ+HBA4bglCdTi6j7cWSKXNcZ8YowN9HUdCggHBTYrX/VsHgJYE UrA6lml2CcOy2tmBrDSkUY0VcJdNfjedsxgzcL95LRGLI398McI2opoOOBGKE21EzDo0PR VWrUw1J6UlPYZl2GSLeUv3EYY5Bl2l7LUZqHC2i/+hmZaG2pRRcuhvwrRpofKfMnW3ChnK MdS3FWFST8ybvTpaCEciBorT0OMGMK1S0sQDWKtoilE6r45KchYXk1ffAzoPwvHwZAo1MS 9C1rAnyi1Opd/XuksPK8F5K50jrku1yiXNVzHP3BDR52Kdv0TLUDG789Db5kHQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679649210; a=rsa-sha256; cv=none; b=k3oNc22Bf2mvQxg7RcM/Qp7wSqrNEifXqU4/knQjwgP0E/SsE2GnD58eVscTBkyi+JE6xh iIlxN8Hi2RohbBaKBlq702F3YS7u7jAHjKfmeV8ov1b+xp4e/OJJp6bm3GbMftF6+VbGCv jJ/UWb7F9oZmgocjh3wVeZzGBSzqF8YPMHe8rmfYtXzfRVqPoca206PxAgLt76kWrTSjDT h4o53eSdRwP98UxbxAINu5PKcxMp2gYOddyFMEJtp2Ww/gP+vrdqbRZpRg18v3MRZcExg3 hIjGj7uHnSGz9Sq/QOxpP9dO53nE6g1TW4qMCH7yC3F/j+m/YWxBBZz99E1Bmg== Received: from ns2.wilbury.net (ns2.wilbury.net [IPv6:2a01:b200:0:1:f816:3eff:fecd:13e6]) (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 ECDSA (P-256) client-digest SHA256) (Client CN "svc.wilbury.net", Issuer "R3" (verified OK)) (Authenticated sender: otis) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Pjc2L2TZfzy9w; Fri, 24 Mar 2023 09:13:30 +0000 (UTC) (envelope-from otis@FreeBSD.org) Received: from smtpclient.apple (unknown [217.73.28.193]) (Authenticated sender: juraj@lutter.sk) by svc.wilbury.net (Postfix) with ESMTPSA id CBB8745CFA6; Fri, 24 Mar 2023 10:13:25 +0100 (CET) Content-Type: text/plain; charset=utf-8 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Subject: Re: byteswap.h not found on 12 and 13 From: Juraj Lutter In-Reply-To: Date: Fri, 24 Mar 2023 10:13:24 +0100 Cc: Yuri , Nuno Teixeira , FreeBSD CURRENT , FreeBSD Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: <13BBF767-6CBB-41D5-AD93-6ADD9C417811@FreeBSD.org> References: To: Warner Losh X-Mailer: Apple Mail (2.3696.120.41.1.2) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on ns2.wilbury.net X-ThisMailContainsUnwantedMimeParts: N > On 24 Mar 2023, at 10:09, Warner Losh wrote: >=20 > one last reply, if this is for a port, then byteswap.h can usually be = implemented as >=20 > #include > #define __bswap_16(x) __bswap16(x) > #define __bswap_32(x) __bswap32(x) > #define __bswap_64(x) __bswap64(x) >=20 > #define bswap_16(x) __bswap16(x) > #define bswap_32(x) __bswap32(x) > #define bswap_64(x) __bswap64(x) >=20 > in older versions of FreeBSD, but some tricky software will hate the = bswap16 (no underscore) etc defines. You could likely put that into the = port. In releng/13 there is also infiniband/byteswap.h that does: #include #include #define bswap_16 bswap16 #define bswap_32 bswap32 #define bswap_64 bswap64 otis =E2=80=94 Juraj Lutter otis@FreeBSD.org