From owner-sc22wg14+sc22wg14-domo2=www.open-std.org@open-std.org  Tue Dec  1 21:04:38 2026
Return-Path: <owner-sc22wg14+sc22wg14-domo2=www.open-std.org@open-std.org>
X-Original-To: sc22wg14-domo2
Delivered-To: sc22wg14-domo2@www.open-std.org
Received: by www.open-std.org (Postfix, from userid 521)
	id 3B884356EE0; Tue,  1 Dec 2026 21:04:38 +0100 (CET)
Delivered-To: sc22wg14@open-std.org
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124])
	by www.open-std.org (Postfix) with ESMTP id B2DDA356A2F
	for <sc22wg14@open-std.org>; Tue,  1 Dec 2026 21:04:37 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
	s=mimecast20190719; t=1796155476;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type;
	bh=K/ICy6Y2N9n4OUc2+1yEfcNvtlLCO1tzYc8k3wB7yGc=;
	b=RRU5NsNy6O8LVdW+gcJ0AN34ZwaoNqEzq1XhT8cNuhVcrxReImJ2zE/xTERWqINNwkDxPw
	S9A4NSLV88GNlXyTQyOYjeezr9eG5nLdaXCtwqe8nm9DaJGjr1VjeiS/Dv4VJRwzq0UfF8
	lIz0OwWxLCZliTNH+sy2CIN7whMZHwo=
X-MC-Rep: binary re single
Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com
 [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS
 (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id
 us-mta-313-Qwf0Kr1iMaORWH6IifMCeg-1; Tue, 1 Dec 2026 20:04:34 +0000
X-MC-Unique: Qwf0Kr1iMaORWH6IifMCeg-1
X-Mimecast-MFC-AGG-ID: Qwf0Kr1iMaORWH6IifMCeg_1796155474
Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-4bb818d8dcfso61430315e9.3
        for <sc22wg14@open-std.org>; Tue, 01 Dec 2026 12:04:34 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1796155473; x=1796760273;
        h=content-type:mime-version:message-id:subject:to:from:date:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=K/ICy6Y2N9n4OUc2+1yEfcNvtlLCO1tzYc8k3wB7yGc=;
        b=0Kuon9Fhiu85SwS7cR9BOK7Po19AGF1EOdcY8n1ehZ1f6x03fetlZzBdY9Y+uoh7vK
         0pQF8YlQHZqYAXeooRINgmszffSu9eJo3P8BR8tfRmMzrbQfkX/ALipVkgmvIZwClEgk
         DYlwIBrj9afqHmPdZQRPaPvrQzMxL2o2fFz1wmNNY5Ugm0FKa9etfMD5bspkZvYqCRjw
         LMgB6lwNuOoqyOts1Y1ojGDMKYYsso+B76zOh4VSid81XUExGa9u6R5PB57vQjOkP+4S
         n7jxZ+Fq1oyXi85gm2twlKkYGcCdUuOsxOOM2FkIQ2dU1QBxaM+cZtaKJ5bOti6D/6mf
         XQDQ==
X-Gm-Message-State: APuU4Z9dCQhGW7E54mfyousN0q193FZJh7dt4zSLvePGb+pm7ST4vcYe
	eK/ruyIQsNYdP8pjBcLVrT5DkPOhXcbdX4XNvubNTIVnFvkt8fQPPkXZLpHIzA82S7IdKIEPb7e
	yZ4Q6hvST3Xgy0s38WbK3RyrsdIB50bc/rgNkMp99dRHHJfunqbn5VmIw0xU+txRg+q/2C5+BH1
	8mSzTAy3d1B6wmrg8xBTgOUdCTOKlY9eA/Am7NzqSX
X-Gm-Gg: AZFdTZfQheV11goOmSWMKt2IRzFwTvItohy+gkPjZUXAG2b4oPYfJ/Sk1JZ0WvYZYI+
	I5njlVpWDynT5sFM2GBOlqS5KzUtKCX5/ObPQ1JD7FUk57UHX+EtU4/WNFeTMJNRkZLOZbTFsKM
	Iq55A+wkp4R/9sq45spTVsCod6Gt57zP9h6raxpLaMFjtj6fmx8vh6yynBKE3hNbTMaUf8vSKcM
	ce/n9JPzmjw+1iMKe441n3JW6nTUnQCVwwXfA684j8QLC4VndAu8egfrs1QM5HZoHeld7YCuFSo
	G7C8JDk55tq4WQ8bZw0JHANLNV+0X+XJIVHpUpcALo/ldX9ZC1F2ch5DoTe2J8S3ywgJdIG8fiV
	imSSCI/6IjxcbOcpgLDvgjE1dTYtkAOinSFyskga92CbvoFRHrhYEnmbPr4QrTx29v/w5juqR/B
	2+mbmNWAcHZtmd1g6KtLU=
X-Received: by 2002:a05:600c:64c6:b0:4bb:6a75:d04f with SMTP id 5b1f17b1804b1-4bb88807d96mr722833125e9.8.1796155473616;
        Tue, 01 Dec 2026 12:04:33 -0800 (PST)
X-Received: by 2002:a05:600c:64c6:b0:4bb:6a75:d04f with SMTP id 5b1f17b1804b1-4bb88807d96mr722832675e9.8.1796155473153;
        Tue, 01 Dec 2026 12:04:33 -0800 (PST)
Received: from digraph.polyomino.org.uk (digraph.polyomino.org.uk. [81.187.227.50])
        by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb88442995sm1095503425e9.2.2026.12.01.12.04.32
        for <sc22wg14@open-std.org>
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Tue, 01 Dec 2026 12:04:32 -0800 (PST)
Received: from jsm28 (helo=localhost)
	by digraph.polyomino.org.uk with local-esmtp (Exim 4.98.2)
	(envelope-from <josmyers@redhat.com>)
	id 1xYU5X-00000007Ufg-24r0
	for sc22wg14@open-std.org;
	Tue, 01 Dec 2026 20:04:31 +0000
Date: Tue, 1 Dec 2026 20:04:31 +0000 (UTC)
From: Joseph Myers <josmyers@redhat.com>
To: sc22wg14@open-std.org
Subject: Wording for issue 1040 (freestanding library)
Message-ID: <86c2a904-5e6f-75ba-093e-6399d4ebbc81@redhat.com>
MIME-Version: 1.0
X-Mimecast-Spam-Score: 0
X-Mimecast-MFC-PROC-ID: 1qi51FTVxB_dnQRdEqOVGc3FEtVwLsQNQD2WVIhTxUQ_1796155474
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset=US-ASCII
Sender: owner-sc22wg14@open-std.org
Precedence: bulk

I propose the following wording for issue 1040 regarding the freestanding 
library.


### Suggested correction (`memalignment` issue)

Modify C23 clause 4:

> A *conforming freestanding implementation* shall accept any strictly
> conforming program in which the use of the features specified in the
> library clause (Clause 7) is confined to <ins>the following
> features:</ins>
> - the contents of the standard headers `<float.h>`, `<iso646.h>`,
>   `<limits.h>`, `<stdalign.h>`, `<stdarg.h>`, `<stdbit.h>`,
>   `<stdbool.h>`, `<stddef.h>`, `<stdint.h>`, and
>   `<stdnoreturn.h>`<del>.  Additionally, a *conforming freestanding
>   implementation* shall accept any strictly conforming program
>   where:</del><ins>;</ins>
> - the features specified in the header `<string.h>` <del>are
>   used</del>, except the following functions: `strcoll`, `strdup`,
>   `strerror`, `strndup`, `strtok`, `strxfrm`; <del>and/or,</del>
> - the <del>selected</del> function `memalignment` from
>   `<stdlib.h>` <del>is used</del>.

### Suggested response (other proposed changes)

The committee does not wish to add extra headers to those available in
freestanding implementations and any proposal for such an addition
would need to be made in a paper rather than an issue.


-- 
Joseph S. Myers
josmyers@redhat.com

