From nobody Thu Feb 19 15:10:51 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 4fGxf36YTpz6RQn7 for ; Thu, 19 Feb 2026 15:10:51 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fGxf33ddwz3tZ9 for ; Thu, 19 Feb 2026 15:10:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771513851; 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=shA2Eoa4D4CStE8GN4WdbpiAoLlbCYv2DMDFbwJMQjA=; b=UUCSVIDggbQ29yHiEgP9lJGQ5/QrfI//v4GPm+nBIul0XgMPiwJKw0Js21HebDjChyKQb9 8Ctvio8BA3Jjp+tBXjvbhhsKF9vzt73IKpP8fWJcnVvkG0cHR4k1s0UcFU922K/Sv9OB3K RGLUPFNvbufKDgDgckT60LErbA2AQCfW2WoMdzz2p9cAGu9fC4UAOyO8fMksEtXsFEwAfe oELlMZ6jE3HQRP/UviYTitpJIjSKFFGyY/ouCxJTCq7qtJt8KINVBx3bhCpy/nWS1jMj2M LOXIEcoNrpMHWMeXnJDaRSRZyWfZD8AulcKhNoBTx0yWi5TDtSwg7fLm4PeLsQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771513851; a=rsa-sha256; cv=none; b=Aos/aW79+YmYH58VOvIcZ7hn1kBA3nTFpamYAcF+XrkCd7DEdXQ6mCYZnsHOiHpiP1/sQC 17MUThWHTMCynvHTMZ34pSi8KEPHOnhwlPgUewI2fvLjpsnb9ByR3xF+dtMvE8DNHaeGZr Ory02G9wgGOo6zX+jAmt03PNTH9IbBTJzFPvN5zOKboThxsUyAQfDjXwAMDJlJJGyghXKE PayW+stLjF8ejef0j23Ps8qIJvroS5r/Ir8PX+v/YuA8ttxzlxKSMmb+wY9IsIAcab5y30 GH9o2pqPnoE+SDNrhodZ1U+jecF7GY/i0V1nZXHO9QjmDz4tMujiaQJH2GqMtQ== 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=1771513851; 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=shA2Eoa4D4CStE8GN4WdbpiAoLlbCYv2DMDFbwJMQjA=; b=UMUL8hDOHB2m/htYaJB4njFhf3YCRFWhYo5beEcp4i3jM3JHZtmD+DQ12ck7/IUFWltMMD 3p7JutzbFXOUyzXBXIpreexvK/UTqIks58nNwZIH3sKeYxN3dKsakCXGAEM6DM8OPAitzP TB2f398z1qXtVMDZougRAH+EQzICZiex8Z76LRjeYvBbRYOswpbEKpaXqogWk1OHGN85Ab iLhhkGiJ5h2N4RdPQA0c4IZ2ro8nIz04zLppqk2ts2YoWUi61lUC6GY2LkV4N/pPBygQBR WDeyyffKOKZFDomnWdI+UEqDEbgmiToKpWptCjFVzWCFF3OqHYgu8VyiJl90Pg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fGxf32sVkznjM for ; Thu, 19 Feb 2026 15:10:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 23df9 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 19 Feb 2026 15:10:51 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: 89c3ae5fc9cc - main - build: add stddef.h to define ptraddr_t as required 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 89c3ae5fc9cc24af940699b7e282fd24763f7ffa Auto-Submitted: auto-generated Date: Thu, 19 Feb 2026 15:10:51 +0000 Message-Id: <699727fb.23df9.6867dfbc@gitrepo.freebsd.org> The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=89c3ae5fc9cc24af940699b7e282fd24763f7ffa commit 89c3ae5fc9cc24af940699b7e282fd24763f7ffa Author: Brooks Davis AuthorDate: 2026-02-19 15:05:50 +0000 Commit: Brooks Davis CommitDate: 2026-02-19 15:10:32 +0000 build: add stddef.h to define ptraddr_t as required Effort: CHERI upstreaming Sponsored by: Innovate UK Reviewed by: kib Co-authored-by: Alfredo Mazzinghi Co-authored-by: Alex Richardson Differential Revision: https://reviews.freebsd.org/D55308 --- tools/build/Makefile | 3 +++ tools/build/stddef.h | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/tools/build/Makefile b/tools/build/Makefile index 1eb539f06607..161b8f635c6d 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -99,6 +99,9 @@ SYSINCS+= stat.h SRCS+= futimens.c utimensat.c .endif +# Define ptraddr_t for bootstrapping +INCS+= stddef.h + _WITH_EXPLICIT_BZERO!= cat ${HOST_INCLUDE_ROOT}/strings.h ${HOST_INCLUDE_ROOT}/string.h | grep -c explicit_bzero || true .if ${_WITH_EXPLICIT_BZERO} == 0 # .PATH: ${SRCTOP}/sys/libkern diff --git a/tools/build/stddef.h b/tools/build/stddef.h new file mode 100644 index 000000000000..77348dd57149 --- /dev/null +++ b/tools/build/stddef.h @@ -0,0 +1,49 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright 2018-2020 Alex Richardson + * + * This software was developed by SRI International and the University of + * Cambridge Computer Laboratory (Department of Computer Science and + * Technology) under DARPA contract HR0011-18-C-0016 ("ECATS"), as part of the + * DARPA SSITH research programme. + * + * This software was developed by SRI International and the University of + * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237) + * ("CTSRD"), as part of the DARPA CRASH research programme. + * + * This work was supported by Innovate UK project 105694, "Digital Security by + * Design (DSbD) Technology Platform Prototype". + * + * 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 THE 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 THE 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. + */ +#pragma once +#include_next + +#ifndef _PTRADDR_T_DECLARED +#ifdef __PTRADDR_TYPE__ +typedef __PTRADDR_TYPE__ ptraddr_t; +#else +typedef size_t ptraddr_t; +#endif +#define _PTRADDR_T_DECLARED +#endif