From nobody Mon Dec 29 01:16:39 2025 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 4dfdbX2TMKz6LQf6 for ; Mon, 29 Dec 2025 01:16:40 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfdbW6pgnz3XYQ for ; Mon, 29 Dec 2025 01:16:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766971000; 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=yd2XFKa+iFMVAxe6E6E2wFj1g/5ytx18MQ51cy2sBUc=; b=Oum+f658siLFaZ6nklCI4Qv2uuSma3bnFUL8b30j6Nb7jBOd6nnBCqTjczwfybS8UGtp4i 3oFM6qopC3WdLwZIK6UB2L5thiPZy1UMbg2+jBw6OrN2ggVIfFQgPxnXktkNqr46ed3egX fbnZtJFGYv0wzllG7wseWbbdJ+EzEiSFgbW8ODlDB92SZxiZj2nFX4GtrnMsx3s1/RYq8D LSMxKuB6GjJCxVz/q++2nbayLFHzHZFEsnnCX9+gaq5HSvfw2YTs+ydIGfUAKjcqEi06Mn +FIbU9LUHTBNq2NWT5mXOHrN4uyYYqwAVSfHFGqpDVuS8/dKDGwwamaAztCwRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766971000; 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=yd2XFKa+iFMVAxe6E6E2wFj1g/5ytx18MQ51cy2sBUc=; b=oFMqmfjwGlstlvXDFVvqLlP5bAWk9LgfV0SD85/fPCQZ8kQ19WjfFFCwE9rUb83TK0c5RT Q/RhNQzyfsMUVN4K7FkXXWOJhy9XgF79ZY42VDJF+Xh+k433iDR15Bh+TRUi9Y9Fq4UTUJ pLlP2+7D1KsoD8BCtHAiu3SpWiKrcdZVyCxiE9P7WSuxkPGCW/fz0W6V+WLufgfXBhtIo4 drdRwg8PNGPeWBhbiwvf7jH6uquKq9d363qPIqk7FVQbqOZp+1uyi/Nc4Dvyt2avk0BdKr IP66ME92iUnAvdPqL4gtv/O3TupIeKLRaG+ishzqLmtD8eiPgFmB5J3r+8TA2w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766971000; a=rsa-sha256; cv=none; b=AVux0bYahLikTgfGH1O8DFdkLbXm5LLBTyzNUhl5jhBGzah453hZoTUnZjLuFJEMweUAga y/KvO/+t3xl53+43T/I4+69k3VQXDNd9svLINj74c+wMoDKXRjTPxUqeW8AxMM9Uxzw1Fu xHLML0N+ioYviTJ9YAmsubpuZH+djz+oudjAIeqaWSDw1q11rc1jfYuXumxuWofWpuxHCK /6oZO8S399klRfpaKs8dYQMdurdBri+4bD8kV2cOAP1es7eryZTiSwfusQYs5nnu/2lfXO eh+Wi+zaQpaHaJVB4rRpyWYBGFcX/skt5ccIfmLQxfbco9K/KhGo6On+wE5b6A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfdbW66t3z17Tm for ; Mon, 29 Dec 2025 01:16:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 38f20 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 01:16:39 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 3ef25acf3600 - main - Add a script to auto-generate mapping from exterr category to source file 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3ef25acf3600fb822bdf1487036184b4978d737f Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 01:16:39 +0000 Message-Id: <6951d677.38f20.78a9a953@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=3ef25acf3600fb822bdf1487036184b4978d737f commit 3ef25acf3600fb822bdf1487036184b4978d737f Author: Konstantin Belousov AuthorDate: 2025-12-28 14:04:28 +0000 Commit: Konstantin Belousov CommitDate: 2025-12-29 01:16:25 +0000 Add a script to auto-generate mapping from exterr category to source file Reviewed by: emaste, mkusick Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D54380 --- tools/build/make_libc_exterr_cat_filenames.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tools/build/make_libc_exterr_cat_filenames.sh b/tools/build/make_libc_exterr_cat_filenames.sh new file mode 100755 index 000000000000..fbde85891200 --- /dev/null +++ b/tools/build/make_libc_exterr_cat_filenames.sh @@ -0,0 +1,22 @@ +#!/bin/sh +set -e + +check="lib/libc/gen/uexterr_format.c" +target="lib/libc/gen/exterr_cat_filenames.h" + +if [ \! -f "${check}" ] ; then + echo "Script must be run from the top of the full source tree" + exit 1 +fi + +echo "/*" >"${target}" +printf " * Automatically %sgenerated, use\\n" \@ >>"${target}" +echo " * tools/build/make_libc_exterr_cat_filenames.sh" >>"${target}" +echo " */" >>"${target}" + +(find sys -type f -name '*.c' | \ + xargs grep -E '^#define[[:space:]]+EXTERR_CATEGORY[[:space:]]+EXTERR_CAT_' | \ + sed -E 's/[[:space:]]+/:/g' | \ + awk -F ':' '{filename = $1; sub(/^sys\//, "", filename); + printf("\t[%s] = \"%s\",\n", $4, filename)}') \ + >>"${target}"