From nobody Mon Dec 30 20:38:47 2024 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 4YMScS0GX5z5hyxV; Mon, 30 Dec 2024 20:38:48 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YMScR6RWjz4HMx; Mon, 30 Dec 2024 20:38:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735591127; 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=ClNF21y9YcL5yIHrDc9RMtIj/UrYIOINx3w4ClE6sT8=; b=hGSOC4oh5Eigy68Efs8O3WKUg1wP69oHPOziJTmH/BuBdd7XdtiSOqi6bEf695HlhZPkri nJAvlZpKrPRMLTXTfcIc2kiJ62DhtpIJUTFFi96bfBsOvKpI0DydTqSrQQMbiuMqER7vBX f0GXDPSudllcFVS3ZWdvGYG+dVIJFESG+EOz7E4PaGsH5VveYZy2lgKTSd+/plcCIuUA0X H7lYOhUNq97yPFgMUazZC3yHi6A2t88vjvT3ylQ5VcWXGPZiDmL7w6nPVtKBdRF5QoFLOm pqTrIqRL/3mW1icnQLmeZyUGyHv8sJfnbHIJfFzo+96yBVh/qpGi6IbZrwY8NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735591127; 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=ClNF21y9YcL5yIHrDc9RMtIj/UrYIOINx3w4ClE6sT8=; b=Z4QmA0Bx2Z/vW8G2DJTto7NKHuIIdkNbvonqz59uX4SjaYmrNM1nxdhJD7qFn2CuJKqxtk e5X0NTm8UKBhceCXXTQN45y4DBqW78NFk2TI04RAulgbgb09dpHopthkbk/lVsVMBC+byJ ZnQbG16hJ0nhmdjjuYVVvxoC4cwnrItbv5I2antXUS4UK8AORldfTDXIAZQIYNodjDRTWF vDBxI9dWeri74G6aBTDFcX2gknnbfu8hn0g0CVCulIgqOwX3dJ1pn3ymBPRQ/Pv4JEbODW TmuNp37i4BEbXwBhandEdEJ+qmt7vohM2lGn9KZ2QwmsEjq069mtwV16KcjTtg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735591127; a=rsa-sha256; cv=none; b=qtP/8jFgpedsJmjZ/lJdYFxHkH4cdCsEmj8olwLZq52ioW96R9Vqq2GcXazsYuvs5EnNRV R/n6nN8B9n7H9mK4PG3GmCW8FOh3+WKDNzvPED85ytdq2KaOT3lZjocKL6nGh9e2JAcWC0 g1O19RHfhKeVYPzH7a0g4+bosed4jY0C6nkyp44Ce7uC2UFOOJRst58Xcy2cvIc8Ssmggv 46SHT78t3DaFh4/NZ6Zk7DfBPDl8ngWtebtVaSI4ENMVAZqwShhpxMGC3Ui/A0yrVJ8AAT it0tcbQ4QkgvffeBhLAAFQVne17DnM0Kx2n2mzBhJ/OAz1EtHLkq19V+xkCodg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YMScR5qdHz18ct; Mon, 30 Dec 2024 20:38:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4BUKcl18002284; Mon, 30 Dec 2024 20:38:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BUKclMv002281; Mon, 30 Dec 2024 20:38:47 GMT (envelope-from git) Date: Mon, 30 Dec 2024 20:38:47 GMT Message-Id: <202412302038.4BUKclMv002281@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 6553c31c969d - main - endian.h: Update comments now that POSIX Issue 8 is POSIX.1-2024 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6553c31c969d13ef58eb1de48f7525654b1fbf08 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=6553c31c969d13ef58eb1de48f7525654b1fbf08 commit 6553c31c969d13ef58eb1de48f7525654b1fbf08 Author: Warner Losh AuthorDate: 2024-12-30 20:30:18 +0000 Commit: Warner Losh CommitDate: 2024-12-30 20:38:39 +0000 endian.h: Update comments now that POSIX Issue 8 is POSIX.1-2024 Now that Issue 8 has been published, replace the informal Issue 8 language with the more typical POSIX.1-xxxx citation. Sponsored by: Netflix --- include/endian.h | 7 ++++--- sys/sys/endian.h | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/include/endian.h b/include/endian.h index 87ec7866c791..337309fd3a6f 100644 --- a/include/endian.h +++ b/include/endian.h @@ -12,11 +12,12 @@ #define _ENDIAN_H_ /* - * POSIX Issue 8 requires that endian.h define uint{16,32,64}_t. Although POSIX + * POSIX.1-2024 requires that endian.h define uint{16,32,64}_t. Although POSIX * allows stdint.h symbols here, be conservative and only define there required * ones. FreeBSD's sys/_endian.h doesn't need to expose those types since it * implements all the [bl]eXtoh hto[bl]eX interfaces as macros calling builtin - * functions. POSIX allows functions, macros or both. We opt for macros only. + * functions. POSIX.1-2024 allows functions, macros or both. We opt for macros + * only. */ #include @@ -37,7 +38,7 @@ typedef __uint64_t uint64_t; /* * FreeBSD's sys/_endian.h is very close to the interface provided on Linux by - * glibc's endian.h as well as POSIX Issue 8's endian.h. + * glibc's endian.h as well as POSIX.1-2024's endian.h. */ #include diff --git a/sys/sys/endian.h b/sys/sys/endian.h index e8af78513e4a..b51616b8d83c 100644 --- a/sys/sys/endian.h +++ b/sys/sys/endian.h @@ -56,7 +56,9 @@ typedef __uint64_t uint64_t; /* * Note: While tempting to try to avoid namespace pollution from this file, * several software packages assume these marcos are defined, even when it - * defines _POSIX_C_SOURCE to request an unpolluted namespace. + * defines _POSIX_C_SOURCE to request an unpolluted namespace. + * is not defined by any version of POSIX.1, so we don't have to be + * careful. No POSIX.1 defined header file includes on FreeBSD. */ /*