From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk1-xa30.google.com (mail-vk1-xa30.google.com [IPv6:2607:f8b0:4864:20::a30]) by sourceware.org (Postfix) with ESMTPS id CB194388461C for ; Fri, 28 Jun 2024 14:37:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CB194388461C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CB194388461C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::a30 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719585442; cv=none; b=UNxC9aEUZG/evLIoLxt/yH6vwFiMX9wlhHe8Vxp0Bp7142Ev+bnO9u2bAVStKbq0nB6nH1/l4nmfSHdczodzbslAVUMP8vS+jd8K3F9KETIFoazxp23IVtEuI5uXIYK1O18P6ahYzTgJcb4e6eWWdLHkKggbgFCbZznSx6tkTo0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719585442; c=relaxed/simple; bh=CCd8OrHACwNB3Qvi2tA29Lf2uQd4QeuYy/5pVgOpjvM=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=SgXnGZLrn6SjZbteUo3geqtP8NcRiht7rmiQqyrtq2O2R8DJ4H9oH1FYu3FC6TgMVltQAZJ6kbjQoqHRysjDxU6HyS9ZDejpwaz4EqOdK4kO1cR6Y8n3VhPhVBzJ9238vGPKha8bJZcbNldagIm+gPiBBQDw+O/DuwhwXwFXodI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-vk1-xa30.google.com with SMTP id 71dfb90a1353d-4ef6b3207a7so253479e0c.0 for ; Fri, 28 Jun 2024 07:37:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719585439; x=1720190239; darn=sourceware.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=CCd8OrHACwNB3Qvi2tA29Lf2uQd4QeuYy/5pVgOpjvM=; b=MfPJRLnOnxXCUBYZzkHwOUDHGIztF+yyIsxZ/SIGwjRw56DjSZXJpA0vzy9Qd5OXcQ DsMhUsaexBf7CCRjRgG0WJ20sE6ElwXU3e1BvcM5hptDi89mUMrfDR/dMHByMEQdbsbF ZGeH+5qZXy+VNPYj1Xnh9W4gr+CSPcLB3HxK9eRgbXOFBeM/7L+4cc561zCAgNi2ePiq EU/J3oVJ/wQ5wfSehXLGBuZxILLUvfcbeG/vnoK2IcAooZmzUDlayxrJvPnUOrNcE9wM 1HbEh6B5FDPNXO/X6LOuXgQF+2hWTMUsk2MjY4k24Y+BHYH5vsa6ckXcmPqL+/U8SjPs huCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719585439; x=1720190239; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=CCd8OrHACwNB3Qvi2tA29Lf2uQd4QeuYy/5pVgOpjvM=; b=Nlhl/VxhseCVMn0+k4g0mpR8CSFchC+i9X5umJmQH8x25v8kyRaacFMWmt09uQni/d 2ragxFexIJ/gFsmPwV6D9uF3tzGxoPiQR+Z3g+vdL29oloLJqcCOERLca5UcBF+b9YuZ EOus0yrR7rR5Xycn5s819BZWAwQ1YuP3AB1ykvFVHkyfPu9BYMKZvFoAeGmfis7/toVW DL1oCkAbei6238o+U4sUeMhJIwoeteIWYHsqx8HPbJH5YxEFthcmfrDxdE1gQ3MG/LE6 Cr1MBGOUmXt0JGERbDSclORDqcfb8Y0+yiCsQf6D7ub+63x9GE0KmOUROLUTC4vZ+hW/ feGQ== X-Gm-Message-State: AOJu0YzrmA1GsIfvcZaw74RatsJjfKzzlNo5Hr1R8Yubiwj0A9b3e46W QdPTjhxmzuiFu2beLJlCKOHdsmOprBLTkpn02SpdZ2lZASeKOPDDrfOnHchDFJzgUtfazSr+TzK TVCyHxnJyZyOSZcm7t2P/gi0S1O67EniQNIE= X-Google-Smtp-Source: AGHT+IG7Vl9IAbK+374oUuvKb3xsPbjlzLtvENo88MmzNHocX98Awev2gN6dsdoFJpef6gjQjwsuM5QYw+ANQAcLDE0= X-Received: by 2002:a05:6122:7ce:b0:4ef:6c71:9a2b with SMTP id 71dfb90a1353d-4ef6d8080b4mr16866677e0c.5.1719585439508; Fri, 28 Jun 2024 07:37:19 -0700 (PDT) MIME-Version: 1.0 From: Joel Sherrill Date: Fri, 28 Jun 2024 09:37:07 -0500 Message-ID: Subject: C11/POSIX-2024 Questions To: Newlib Content-Type: multipart/alternative; boundary="0000000000004871d2061bf42f3a" X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --0000000000004871d2061bf42f3a Content-Type: text/plain; charset="UTF-8" Hi I am finishing up reviewing the additions from POSIX Issue 8 which was released recently. I noticed a few things and have questions on the right approach. + I only have the final draft for POSIX-2024. It says "_POSIX_VERSION to the value 20yymmL." It isn't on the web yet for the HTML version. Anyone know the value this has in the final version? + sys/features.h appears to need this new POSIX version added at least to the comment block. I don't think it necessarily changes any logic below that. + memmem is in string.h under the __GNU_VISIBLE guard. Does it now need to be under a __POSIX_VISIBLE > 2024mmdd and __GNU_VISIBLE? + aligned_alloc in stdlib.h is only guarded by C > 2011. Does that need to be an || POSIX >= 2024 also? + C11 and POSIX-2024 add these complex methods. double complex CMPLX(double x, double y); float complex CMPLXF(float x, float y); long double complex CMPLXL(long double x, long double y); FreeBSD has a macro implementation ( https://github.com/lattera/freebsd/blob/master/include/complex.h#L49). If I add that to complex.h, does it also need a __ISO_C_VISIBLE >= 2011 || __POSIX_VISIBLE > 2024mmdd guard? + Should I continue to look for guards on things that are newly added in POSIX 2024 and already in newlib? That's it so far. Just picky stuff that I plan to address given some advice. --joel --0000000000004871d2061bf42f3a--