From nobody Sat Jun 20 11:53:53 2026 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 4gjCXx3RmSz6jQ3Y for ; Sat, 20 Jun 2026 11:53:53 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gjCXx1p0Sz3bKL for ; Sat, 20 Jun 2026 11:53:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781956433; 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=O+Qqvbg34XUKmnEA1g54q7xrrzMjFAIvcpDr5l518fs=; b=JClHypPHW2eL34HJ9YIaAgvJ5R+IVcFJ7iGEpR3/Xn6nHazQaPG4x6yS/IENyAj/We0q+4 kbGZ818WOG2SjhyM3xJimhGp7J4bmuHDRY/0CM1DcUDbvqlowK+hL2IeJ0SDAiJyt6kmho T5gZ1HWodoC+OGgXVhbVtXkbxHY856ot1SIRmD8vWJLhc+MfR7WQ3f5UfP5y+uFy41PHjV CdP75nHHYcyAX3AWmjNC2xATyYgdCKU5PwtQENwSnNJcrbP+0RKF6pxsaXyev3FIOpHD0x NHUt2XfhXZtmXVcMDfYs9feyKlzH6dp/vgYKgjq9el99EiSSJKO+Phi5C6whjg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781956433; a=rsa-sha256; cv=none; b=DVc0yhBmXl5r/whSEmRxXAo9/46x/YXGF2YC0OZIxaaNReVe6v3MYSg/B9o46slrQxlMRc fZDPMEqU1ZHQjJ1q05ANlBbF+Bx9+BtqCtveGD6lJX3pjBBc+mU245wOtQ8Y4PecIuUvgp CYU+R64CngFDrm2l4GBPs+Tz6nvVfQg+efjvREEgDantskXSPiMJKgHYLiiu8Z3XOK5f62 P2bdkReIFwUvgNg8JBXzFIlOppbWY9v1trsPcJvK35HBW4jJinzEbwfaiGJfyJlcUqF6yK Vr5LxmqbHmtu/ndqNB8SEJDf6orvUFId/u7E0vcAxNm0MxGGm/2FX5AxRa+RHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781956433; 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=O+Qqvbg34XUKmnEA1g54q7xrrzMjFAIvcpDr5l518fs=; b=DJZ206Mkf/1iOMpWvfP6nHFVdEhl4tDI4lgiuIuPakt7qb2GBJqa4QcFxWwW3bliXTTJWj W7fJd3UwNbFogctODSHDr5CKXvD3FHC7hq+hbI6jZe4hhl9o/r4eMP7bK5Kax9+e3/wKOy 359tS4z9cZ0mpV9fUce4DbxvtiI9V9yc8yJI4LMJQJkJF+aW7elmRJqYmJQcs8a41ws2WD 4Fx8sPFiDtyjD7+vC1dc42g1Oktg0NB5v0cDmfUQLYrMIbug6WF3rMKSVLPZhKelZLokrY WtDIEOzDKn5FvVWs2OlS4r+jVutjR1IPwdFy0OZv/4U2rF2R5OqGq7UEVp1tnQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gjCXx0TDwzDZT for ; Sat, 20 Jun 2026 11:53:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 255b0 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 20 Jun 2026 11:53:53 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron Subject: git: 4831a8d792d4 - main - sys: Add `isgraph()` to 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4831a8d792d4ac2cbf4d49d9d220947fb53e2e86 Auto-Submitted: auto-generated Date: Sat, 20 Jun 2026 11:53:53 +0000 Message-Id: <6a367f51.255b0.19486359@gitrepo.freebsd.org> The branch main has been updated by dumbbell: URL: https://cgit.FreeBSD.org/src/commit/?id=4831a8d792d4ac2cbf4d49d9d220947fb53e2e86 commit 4831a8d792d4ac2cbf4d49d9d220947fb53e2e86 Author: Jean-Sébastien Pédron AuthorDate: 2026-06-12 14:39:21 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2026-06-20 10:34:20 +0000 sys: Add `isgraph()` to Quote from https://pubs.opengroup.org/onlinepubs/7908799/xbd/locale.html: "graph": Define characters to be classified as printable characters, not including the space character. Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57578 --- sys/sys/ctype.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/sys/ctype.h b/sys/sys/ctype.h index effb549b40f8..2e5827cc02f9 100644 --- a/sys/sys/ctype.h +++ b/sys/sys/ctype.h @@ -87,6 +87,12 @@ isprint(int c) return (c >= ' ' && c <= '~'); } +static __inline int +isgraph(int c) +{ + return (c != ' ' && isprint(c)); +} + static __inline int toupper(int c) {