From nobody Wed Nov 20 03:35:51 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 4XtRpc1mhmz5d7NN; Wed, 20 Nov 2024 03:35:52 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XtRpb6zS3z44by; Wed, 20 Nov 2024 03:35:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732073752; 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=xtb9mJ8/86el/arG2a+SiytkadQ9LgPRrDX/CWXiQ2k=; b=plzCkqFled3Ri7EYDZTNF0TujtoIum5XpI1DSBVkoJxJRlXfut4iw8RkMjGwqouHGU39RT CyZPQHjACGd37hsIQOeawj3nyOAiQ472gqwI5aqbS5y2skspZMM2ovhd2mmMUbhfkWsGiH 6Q8RyQ9kmH1LQa4Q8N3M7mMbMuJVRaZYJprpsSIdgwPDqMdL6gfBq7AcphxKF/GUW8/qXP E6DItYrVJQOW/tF28lRMZH7qBJhLggQMvV6GeJriDWG81RVdYjEh2ZgOprFGTszk1m0eBF hu9wVQcJkZ+s/9HfqALfz5n7lEMf5VqSaOHSvbPNtrYvOYLHth27StzmIyWGZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732073752; 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=xtb9mJ8/86el/arG2a+SiytkadQ9LgPRrDX/CWXiQ2k=; b=hGhpkIAmotpcZBjdDalZ9TKkecxYBe9jUtptEvbpmj2yrWEBLr9JjN/9PnPWsPJGC7VhJz 0BKmpyR22KBds9ku+cm/dFJrUiWPSE+xTdczKzmmWgFRA8+CQJhlmVUA6IdnYj4dm0s45t CsRoxCGKq5SDbDivnNNa10AnJ7zjTvkGbW8yUNoUSCWlyrIVXFTjCrrc47lUPe0G60qZhz NZNoQOokI3lO2OJYPifTLMr4zeT1aYFVJ4hoQcexKuqGRhewHhJyj3Bo5ctm710ZPaILjO CHYXtSIFTWsMqebg5lubkDSIC+96QVY5EezBZskGdHmUvqG27VHhIQl/EjWg8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732073752; a=rsa-sha256; cv=none; b=p6eZTVwt7C01si2Md9450aU7Q7wQ0TJ4/cwtbuVmE1tijZw5FUUb7nSWUZMr2lnoF3jrPO cRLUkKUiPD7QbkkhKh/V5laGfsVMnKtHCwtgiUHdW269IMeNtLllDTxne1+W0Ul11pWJuH 738x3ygMy+MAAesanR/grObeMrDHHKVvp6Yltyj0GlNybkcJfxiPXkjyxouD123+o2s5Jw KI44RS+xIai/OCr6YS0LHc6K7XXFMzf0/CatcphvfhS+WzBimm0xQOW8fzQ2tv3C9WgA3v Kt83WyQhT1clO0mzYc52K/Crd6nlA7PZIXCxwCNNCkZMeN9SSxAJiwKhp7xEKw== 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 4XtRpb5pfszdBV; Wed, 20 Nov 2024 03:35:51 +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 4AK3Zpv1099598; Wed, 20 Nov 2024 03:35:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AK3ZpYW099595; Wed, 20 Nov 2024 03:35:51 GMT (envelope-from git) Date: Wed, 20 Nov 2024 03:35:51 GMT Message-Id: <202411200335.4AK3ZpYW099595@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: 17be774ee710 - main - stand: unistd.h is no longer safe 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: 17be774ee710d0727a7a45f823356fa33c207058 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=17be774ee710d0727a7a45f823356fa33c207058 commit 17be774ee710d0727a7a45f823356fa33c207058 Author: Warner Losh AuthorDate: 2024-11-20 03:19:13 +0000 Commit: Warner Losh CommitDate: 2024-11-20 03:35:04 +0000 stand: unistd.h is no longer safe unistd.h includes too much extra stuff for the boot loader. This creates a fair amount of namespace pollution and it's best to just make it an alias for stand.h like the other include files already are. Sponsored by: Netflix --- stand/libsa/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stand/libsa/Makefile b/stand/libsa/Makefile index 3d46b9c7ffa1..603fee71e84a 100644 --- a/stand/libsa/Makefile +++ b/stand/libsa/Makefile @@ -200,8 +200,8 @@ MAN=libsa.3 # Create a subset of includes that are safe, as well as adjusting those that aren't # The lists may drive people nuts, but they are explicitly opt-in FAKE_DIRS=xlocale arpa ssp -SAFE_INCS=a.out.h assert.h elf.h inttypes.h limits.h nlist.h setjmp.h stddef.h stdbool.h string.h strings.h time.h unistd.h uuid.h -STAND_H_INC=ctype.h fcntl.h signal.h stdio.h stdlib.h +SAFE_INCS=a.out.h assert.h elf.h inttypes.h limits.h nlist.h setjmp.h stddef.h stdbool.h string.h strings.h time.h uuid.h +STAND_H_INC=ctype.h fcntl.h signal.h stdio.h stdlib.h unistd.h OTHER_INC=stdarg.h errno.h stdint.h beforedepend: