From nobody Mon Jun 05 02:24:16 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 4QZHVS3C9cz4b86g; Mon, 5 Jun 2023 02:24:16 +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 4QZHVS2lSyz4FDH; Mon, 5 Jun 2023 02:24:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685931856; 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=61nqXhyoFPr0xYLccQThg4eu8QEV6natZrnELcoMYEw=; b=VsrnBxtLIz8MxXPbCqu3lrsixFcmCJrXxX4o4h28xe7MKNvZ/DK2WNbCbEM7rLbRn5lHhr jTZN5jbYb0O5GcdXa6UHi+YUIUwnWSfXHE/lJz+gmorJjUCLSXeORCj3xPnHe5NyGGWjvg AfIFnfFG52AHAnX0Ljl5GBFVxLcefY6oqCHRXxbWSrAkzTaZFnzJNWWaIBDQz5ghXaaiB0 99l6EtlNmWodbXnoXgWKjhCndSmafWkVTUrWO32uzxapJIBH/7Ir7q+pZERaMY4uMqKNiJ zZr+Bllvai4uo3WIRfsQ1Fq/7W0asAbe60dLsSZwP3uJpj36uLoxfIcEFC8Qsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685931856; 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=61nqXhyoFPr0xYLccQThg4eu8QEV6natZrnELcoMYEw=; b=EfK358qvxD8UaIqH5STrIt94UJDt9QqLoyvRQDLC1/0EbiZelCIb7M6jZHluTqIkleaWIC 6wrpcQ1NDZ95wbzksgI2yoeon4e2AdDA06TrBUDFyXUiSFy5aUWQyg9VaFe9GAJmlQehJ7 OQntkFb93uudLz3Xdmx9OsLBFHJCc795RuBpaoiWqV9tiwmH/e2XGkPLAqvG1eXLdBG3dZ WXMCL+H9hlSLvivCnbs5Wdtn79C69vKbt2cPqNYBid39BqUzI00BgzfJUYys2E0zs4dWom DfJA+SmAQlH3J/wey3+HwahHgFFjkcvwHMGZrczvlWczspjA/Nh0kXXSL4nTGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685931856; a=rsa-sha256; cv=none; b=ls8JO8anLMo60QcNq/6/quX2FX/tQq+ZlkYXZe+Eue3behTRg05Sr84UxYGbI31/YhCYnn KjqePqg7OqktuRBfEFnfEzNq8ojYORxIg8jmYQ1jXRDC9nRN9acm/Gc/IEmMkNriiBxbjW 649p49rhRQanZzraLM/dqrA26cNb4hcGr3s3ckUyUK1ThudbSBZinL2ZcvIL5l26fNzUKn PVnUVK8rxXUEGUrHz585GTAp/6Hs17/ugVtNoexObUMzlUy0/SEnH07O4MjpH1nHUCZCul Vt9kwL/8YHAsx1xkLeuvzV/Jjk9WqNlskm/mbWFQzH2zZDIbgXbszLRr5LRpRg== 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 4QZHVS1kctzW2r; Mon, 5 Jun 2023 02:24:16 +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 3552OGMp014311; Mon, 5 Jun 2023 02:24:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3552OGor014310; Mon, 5 Jun 2023 02:24:16 GMT (envelope-from git) Date: Mon, 5 Jun 2023 02:24:16 GMT Message-Id: <202306050224.3552OGor014310@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Xin LI Subject: git: 37e3f5b23b07 - main - Enable support for printing 8-byte integers. For some reason, most of the code for this was present, but disabled. This is required for POSIX compliance on platforms with 8-byte longs. 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: delphij X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 37e3f5b23b0720223186f5a00108fdb8d3e88150 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by delphij: URL: https://cgit.FreeBSD.org/src/commit/?id=37e3f5b23b0720223186f5a00108fdb8d3e88150 commit 37e3f5b23b0720223186f5a00108fdb8d3e88150 Author: Ben Harris AuthorDate: 2001-12-07 13:37:39 +0000 Commit: Xin LI CommitDate: 2023-06-05 02:23:35 +0000 Enable support for printing 8-byte integers. For some reason, most of the code for this was present, but disabled. This is required for POSIX compliance on platforms with 8-byte longs. Obtained-From: NetBSD PR: 238586 Reported-By: Mohamed Akram MFC after: 2 weeks --- usr.bin/hexdump/display.c | 2 +- usr.bin/hexdump/parse.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/usr.bin/hexdump/display.c b/usr.bin/hexdump/display.c index 5e5b30b73fd0..cad548e1ec41 100644 --- a/usr.bin/hexdump/display.c +++ b/usr.bin/hexdump/display.c @@ -123,8 +123,8 @@ print(PR *pr, u_char *bp) double f8; float f4; int16_t s2; - int8_t s8; int32_t s4; + int64_t s8; u_int16_t u2; u_int32_t u4; u_int64_t u8; diff --git a/usr.bin/hexdump/parse.c b/usr.bin/hexdump/parse.c index f59f0d9b6356..c6616fdd24d7 100644 --- a/usr.bin/hexdump/parse.c +++ b/usr.bin/hexdump/parse.c @@ -303,6 +303,9 @@ isint: cs[2] = '\0'; case 2: pr->bcnt = 2; break; + case 8: + pr->bcnt = 8; + break; default: p1[1] = '\0'; badcnt(p1);