Commit Graph

1376 Commits

Author SHA1 Message Date
Dag-Erling Smørgrav 1cef7e9eb0 ObsoleteFiles: Add some ancient locale symlinks
These were dropped in 2021 but were never listed in ObsoleteFiles.inc,
so systems that have been upgraded from source since before that date
(or from 13.x) may still have them.

PR:		295668
MFC after:	1 week
Fixes:          0a36787e4c ("locales: separate unicode from other locales")
Reviewed by:	bapt
Differential Revision:	https://reviews.freebsd.org/D57331
2026-06-02 10:38:16 +02:00
Dag-Erling Smørgrav 1dc1b95163 mtree: Remove unused MANSUBDIRs
MFC after:	3 days
Fixes:		809504f331 ("man: Kill off MANSUBDIRs")
Reviewed by:	ziaee
Differential Revision:	https://reviews.freebsd.org/D57029
2026-05-16 18:16:57 +02:00
Alexander Ziaee 809504f331 man: Kill off MANSUBDIRs
Three architecture dependent manuals are installed to MANSUBDIRs,
creating at least two empty manual page directories on everyone's
boxxen. Move those manuals to their canonical area, enhancing clarity,
grepability, removing useless inodes, and increasing consistency with
the rest of the architecture dependent manuals which are unconditionally
installed, and noted at the top of the rendered manual.

MFC after: 3 days
2026-05-03 13:53:25 -04:00
Dimitry Andric 19ff93c921 Revert 00bee6fcd7, which partially reverted libc++ commit aa7f377c965c
After base 966fb94cb3, this revert is no longer necessary: stdint.h
will unconditionally define macros such as `SIZE_MAX`, `UINT64_C`, and
others.

Submitted by:   Nikolas Klauser <nikolasklauser@berlin.de>
MFC after:      1 month
Reviewed by:    imp
Differential Revision: https://reviews.freebsd.org/D56746
2026-05-01 20:16:18 +02:00
Dag-Erling Smørgrav 07b52233e8 caroot: Regenerate
Regenerate using certificate data from NSS 3.123.1.

MFC after:	1 week
Reviewed by:	kevans
2026-04-27 11:33:09 +02:00
Dimitry Andric b99d02027a Remove usr/include/c++/v1/__fwd/get.h from ObsoleteFiles.inc.
PR:		292067
MFC after:	1 month
2026-04-25 16:14:21 +02:00
Dimitry Andric 00bee6fcd7 Partially revert libc++ commit aa7f377c965c, restoring stdint.h
This partially reverts upstream libc++ commit aa7f377c965c:

  [libc++] Remove libc++'s own stdint.h and locale.h (#107436)

  These headers are not doing anything beyond the system or compiler
  provided equivalent headers, so there's no real reason to keep them
  around. Reducing the number of C headers we provide in libc++ simplifies
  our header layering and reduces the potential for confusion when headers
  are layered incorrectly.

The problem is that libc++'s own `stdint.h` _does_ do something: it
defines `__STDC_LIMIT_MACROS` and `__STDC_CONSTANT_MACROS` before
including the system `stdint.h`, causing the latter to expose macros
like `SIZE_MAX`, `UINT64_C`, and others.

If the `__STDC_LIMIT_MACROS` and `__STDC_CONSTANT_MACROS` macros are not
exposed, C++ programs compiled for standards before C++11 can fail with
errors due to those macros not being available.

PR:		292067
MFC after:	1 month
2026-04-25 16:14:11 +02:00
Dimitry Andric e64bea71c2 Merge llvm-project release/21.x llvmorg-21.1.7-0-gcd708029e0b2
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/21.x llvmorg-21.1.7-0-gcd708029e0b2,
a.k.a. 21.1.7 release.

PR:		292067
MFC after:	1 month
2026-04-25 16:14:02 +02:00
Dimitry Andric 770cf0a5f0 Fixups after llvm-project main llvmorg-21-init-19288-gface93e724f4 merge
Fix various configuration fails, update generated headers, Makefiles, etc.

PR:		292067
MFC after:	1 month
2026-04-25 16:11:52 +02:00
Dimitry Andric 3f6219840d Revert "libcxx-compat: don't remove headers that were reintroduced by reverts"
This reverts commit 2b3703a4f4519e202c3bdf12e7e13d9b5fdbc3f3, in
preparation for merging llvm 21.

PR:		292067
MFC after:	1 month
2026-04-25 16:07:41 +02:00
Ali Mashtizadeh 70ae0c4524 i386: Remove perfmon performance monitoring facility
Remove the perfmon performance monitoring facility that was for Intel
Pentium and Pentium Pro processors.

Reviewed by: imp,mhorne,emaste
Pull Request: https://github.com/freebsd/freebsd-src/pull/2155
2026-04-24 10:23:05 -06:00
Konstantin Belousov 7caa71145c posix_spawn: actions chdir and fchdir are now required by POSIX
Drop the _np suffix.

Reviewed by:	dim
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D56222
2026-04-03 11:22:53 +03:00
Gleb Smirnoff cd05c88058 tests/netinet: add test for getsockname() on a disconnected TCP socket
Stack it into existing file that exercises an other corner case of our
TCP and rename the file to a more generic name.
2026-03-24 14:24:58 -07:00
Ed Maste 7a323f8736 sys: Retire le(4)
We retired most obsolete 10 and 10/100 Ethernet NIC drivers in 2019 --
see commits following ebcf740a32 ("FCP-101: remove obsolete 10 and
10/100 Ethernet drivers.).

le(4) was retained with with the note "Emulated by QEMU, alternatives
don't yet work for mips64."  MIPS has since been removed from the tree
and emulators and virtual machines offer many other, more suitable
devices.

Reviewed by:	brooks
Relnotes:	Yes
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55516
2026-03-02 14:10:15 -05:00
John Baldwin a346348e45 Use OLD_FILES for libtpool symlink and static libraries
Fixes:		b78806b156 ("Remove additional libtpool and libuutil-related files")
2026-02-18 10:47:18 -05:00
Dag-Erling Smørgrav f9f4a022a8 ObsoleteFiles: Deduplicate
Since we dropped support for profile libraries, all optional entries for
them are now non-optional.  Most of them were already duplicated there,
a few were not.

MFC after:	3 days
Reviewed by:	jhb, emaste
Differential Revision:	https://reviews.freebsd.org/D55329
2026-02-17 23:58:43 +01:00
Bjoern A. Zeeb 3f4213f00a rtw88: remove more references to rtw88fw
When I removed the Realtek rtww8x firmware from base I missed to
add rtw88fw.4 to ObsoleteFiles.inc [1].
While adding this, also remove a leftover reference in rtw88.4.

Reported by:	Herbert J. Skuhra (herbert gojira.at) [1]
Fixes:		cf94672363
MFC after:	3 days
2026-02-10 13:36:06 +00:00
Herbert J. Skuhra 1c9ca4cf71 ObsoleteFiles.inc: remove stale allwinner pages
These were moved out of man/man4/arm into man/man4. Add entries to catch
the stale copies.

Fixes:	15c79c6fa6 ("man4: move allwinner pages and logic to a standard place")
2026-02-09 15:58:38 -04:00
Herbert J. Skuhra 9c800a103c ObsoleteFiles.inc: correct entry for zpfind.9.gz
It needs the .gz suffix.

Fixes:	2ace05b65a ("pfind(9): follow-up fixes and improvements")
2026-02-09 15:58:31 -04:00
Herbert J. Skuhra bb0734cf24 ObsoleteFiles: remove the shar(1) manpage as well
Fixes:	3fde39073c ("shar: remove from the tree [...]")
2026-02-09 08:48:05 -06:00
Enji Cooper d411a5d3a9 Remove the tpool Kyuafile as well as the test
This was accidentally missed in b78806b156.

Reported by:	des
Fixes:		b78806b15 ("Remove additional libtpool and libuutil-related files")
2026-02-07 23:37:52 -08:00
Dag-Erling Smørgrav 16e073df4a m4: Convert tests to ATF
MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D55115
2026-02-07 19:16:17 +01:00
Enji Cooper b78806b156 Remove additional libtpool and libuutil-related files
This change removes additional library files and tests orphaned in the
commit referenced below.

MFC with:	8b78d412a
Fixes: 8b78d412a ("zfs: world changes after 89f729dcc merge")
2026-02-03 23:33:04 -08:00
Cy Schubert d0309745e6 ObsoleteFiles.mk: Remove obsolete MIT KRB5 plugins
Fixes:			1f9da4793c, dd0ec030f8
MFC after:		1 week
Differential revision:	https://reviews.freebsd.org/D54780
2026-02-02 08:47:21 -08:00
Cy Schubert 1876de606e krb5: Expose missing symbols
Add symbols found in the port but not in base. This requires replacing
a shared libkrb5profile.so with libkrb5profile.a (with -fPIC so it can
be used by shared libraries). We do this by making libkrb5profile
INTERNALLIB.

Base currently has libkrb5profile in a shared library. The patch moves
those functions to the various "consumer" libraries as the port does.

Symbols that should be in the other libraries are in libkrb5profile.so.
This is causing some ports issues.

PR:		291695
Reported by:	michaelo, markj,  Chris Inacio <inacio@andrew.cmu.edu>
Tested by:	michaelo
Fixes:		ae07a5805b
Reviewed by:	michaelo (previous version)
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D54323
2026-01-20 05:41:02 -08:00
Baptiste Daroussin 68ad2b0d7a ncurses: merge update to ncurses 6.6
6.6 is ABI compatible with 6.5 (tested with abidiff)
Remove html documentation to ease updates

MFC After:	1 month
2026-01-14 14:48:32 +01:00
Dag-Erling Smørgrav 745c6c0431 Resurrect standalone command
While command(1) is now classified by POSIX as an intrinsic utility and
no longer required to exist as a standalone program, it turns out that
we still have a use for it (cf. env(1)), so resurrect it.

PR:		291879
Fixes:		4100bd6caa ("usr.bin: Remove intrinsic utilities")
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D54341
2025-12-23 11:36:39 +01:00
Dag-Erling Smørgrav 4100bd6caa usr.bin: Remove intrinsic utilities
These utilities can only function correctly if implemented as shell
builtins and exist only because POSIX previously required them.  As of
POSIX 2024, they have all been reclassified as intrinsic utilities and
are no longer required to exist in PATH.  We can therefore retire them.
Cf. XBD 1.7, XRAT C.1.8, Austin Group bug 854.

Note that kill(1) is also considered an intrinsic utility (because
only the shell can interpret job IDs correctly), but we have a working
standalone implementation, which we will keep.

PR:		291686
Relnotes:	yes
Reviewed by:	imp, emaste
Differential Revision:	https://reviews.freebsd.org/D54239
2025-12-19 18:15:40 +01:00
Bjoern A. Zeeb f0ea859229 iwmfw(4): fix spelling of the iwm8000C firmware.
When migrating the firmware to be installed as plain firmware files
to /boot/firmware the iwm8000C firmware lost its "fw" suffix that
iwm(4) expects.
The follow-up change to defaults/loader.conf is also consistently
missing the "fw".

Fix both places, and add the wrongly spelt version to ObsoleteFiles.inc
(entirely untested).

PR:		291403
Reported by:	Augustin Hoffmann (avgwst tutanota.de)
Fixes:		af0a81b647
Fixes:		a0f06dfb0d
MFC after:	3 days
2025-12-08 03:16:00 +00:00
Martin Matuska 8b78d412ae zfs: world changes after 89f729dcc merge
Remove, unbind and obsolete libuutil and libtpool
Update zfs_configh and zfs_gitrev.h
2025-12-07 23:09:12 +01:00
Mitchell Horne 2ace05b65a pfind(9): follow-up fixes and improvements
(Found on a branch from a year ago.)

- Adjust NAMEs
- MLINKS: add pfind_any.9, pfind_any_locked.9; remove old zpfind.9
- Reword the description of pfind_any() so that it doesn't imply only
  zombie processes are returned
- Fix a comma
- Use .Dv for the macro PRS_ZOMBIE
- Move the (logically separate) final statement to a new paragraph
- .Xr to pget(9)

Reviewed by:	0mp
Fixes:	07d78399eb ("pfind(9): Update to recent behavior")
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D53548
2025-12-04 14:37:18 -04:00
Dag-Erling Smørgrav 5995c036df ObsoleteFiles: Fix repeated typo in recent entries
Fixes:		685a78570b ("random: remove hifn(4)")
Fixes:		5b9fba1cb0 ("Retire pccard(4)")
Fixes:		3cf85a69ae ("hifn.4: Really remove")
Fixes:		8a8c58f71e ("pccard.4: Really remove")
Fixes:		6aaf184dc4 ("pcic.4: Really remove")
Fixes:		daa1f9b415 ("apm(8): Drop MLINK to apmconf(8)")
Fixes:		961b934407 ("pam_krb5: Fix manual page in MIT case")
2025-11-24 04:11:54 +01:00
Dag-Erling Smørgrav 961b934407 pam_krb5: Fix manual page in MIT case
* Always install the manual page as pam_krb5(8) regardless of which
  version we're using.
* Regenerate it using pod2mdoc instead of pod2man so it doesn't claim
  to be part of “User Contributed Perl Documentation”.
* Put the correct section number in the header and footer.
* Don't cross-reference non-existent pam(7) manual page.

Reviewed by:	cperciva
Differential Revision:	https://reviews.freebsd.org/D53885
2025-11-24 03:40:49 +01:00
John Baldwin daa1f9b415 apm(8): Drop MLINK to apmconf(8)
apmconf(8) was merged into apm(8) back in 2000 and this note and MLINK
were added as a transition aid, but that aid is no longer needed.
2025-11-12 21:38:35 -05:00
Alexander Ziaee 6aaf184dc4 pcic.4: Really remove
MFC after:	2 days
Fixes:		1d9f2db7c (pcic.4: Remove stale manual)
Fixes:		31b35400c (pccard: Remove more of the PC Card)
Reported by:	emaste
2025-11-12 13:39:39 -05:00
Alexander Ziaee 8a8c58f71e pccard.4: Really remove
Fixes:		5b9fba1cb (Retire pccard(4))
Fixes:		31b35400c (Remove more of the PC Card infrastructure)
Discussed with:	emaste, jhb
2025-11-12 13:22:14 -05:00
Alexander Ziaee 3cf85a69ae hifn.4: Really remove
Fixes:	a38a42ed9a (random: remove hifn(4))
Fixes:	685a78570b (random: remove hifn(4))
2025-11-12 13:16:26 -05:00
Muhammad Moinur Rahman 5b9fba1cb0 Retire pccard(4)
pccard has been declared obsolete for a long time and also the
support has been removed but the man page still exists. It mentions
being scheduled to be removed before 13.0 but it still exists in the
tree.

[Extracted from review D53434]

Reviewed by: emaste
Fixes: 31b35400c ("pccard: Remove more of the PC Card infrastructure")
2025-11-12 12:09:09 -05:00
David E. O'Brien 685a78570b random: remove hifn(4)
The Hifn 7955 & 7956 only supports deprecated & NIST disallowed
algorithms (NIST SP800-224idp): SHA1 and SHA1-HMAC.

Furthermore the entropy RNG of the Hifn 7751, 7951, 7811, 7955,
and 7956 has no NIST Entropy Source Validation (ESV) certificate
and cannot be used in a FIPS-140-3 nor Common Criteara environment.

Furthermore the most prolific instance for FreeBSD was the
Soekris Engineering vpn1201, vpn1211, vpn1401, and vpn1411
offerings.  These are all 32-bit only processors.  The i386
kernel was de-supported in 15.0.

Reviewed by:	jhb
Differential Revision:	https://reviews.freebsd.org/D53182
2025-10-28 16:46:15 -07:00
Jose Luis Duran 75f7e003b7 nss_tacplus: Fix typo MK_INSTALLIB -> MK_INSTALLLIB
Reviewed by:	des
Approved by:	emaste (mentor)
Fixes:	6c5cdba1ba ("Add nss_tacplus, a TACACS+ NSS module.")
MFC after:	1 day
Differential Revision:	https://reviews.freebsd.org/D52882
2025-10-06 12:54:05 +00:00
Mark Johnston ea675a43f0 libexec/kgdb: Add new modules and install them together with debug info
This change simplifies integration of gdb python scripts with our kernel
debugging infrastructure.  Rather than putting debugging scripts in
/usr/libexec/kgdb, move them to <path-to-kernel-debug-symbols>/gdb, and
add a kernel-gdb.py which automatically loads modules from that
directory.  kernel-gdb.py will be automatically executed by kgdb when
loading kernel debug symbols (assuming a default configuration), so one
no longer needs to do anything to use these modules.

The change also adds a couple of new modules, vnet.py and pcpu.py, for
conveniently accessing VNET symbols and PCPU/DPCPU fields, respectively.
Note that these require a change to the kernel linker when accessing
symbols from a loadable kernel module.

sys/tools/gdb/README.txt describes the scheme in more detail and
provides some rudiementary documentation for the commands and functions
added by these modules.  It should be updated when adding new features.

sys/tools/gdb/selftest.py can be used to do some primitive testing of
the modules.  All it does is execute a number of gdb commands making use
of commands and functions added by these modules.  The developer is
expected to verify that the commands complete without errors and that
the output looks sane.

Discussed with:	kp, avg, jhb, glebius
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D50825
2025-10-03 14:32:09 +00:00
Gleb Smirnoff 36f2eda251 tests/netinet: rename and extend sendto-IP_MULTICAST_IF.c
Rename this test helper app to multicast-send.c.  Extend it to send
from/to arbitrary addresses and arbitrary payload so that it can be used
in more test scenarios.
2025-10-01 12:41:52 -07:00
Li-Wen Hsu 89eee8ee2c wlanstat(8): Rename from wlanstats(8) to keep consistency
All the status and statistics utilties in base are ending with "stat",
the only exception is mailstats(8) but that's from sendmail.

Reviewed by:	imp, adrian
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52724
2025-09-30 11:30:08 +08:00
Lexi Winter 614c8750ce Remove ftpd(8)
This was previously deprecated and is slated for removal in 15.0.
Users who still need ftpd(8) can install the ftp/freebsd-ftpd port.

Retain the ftp(d) PAM services since other FTP daemons use them.

Update /etc/inetd.conf to point to /usr/local.

Add ftpd to ObsoleteFiles, but do not list configuration files since
users may want to preserve these to use with the freebsd-ftpd port.

There is still some language in the manual referring to ftpd(8)
which is relevant to the port, which has been retained but updated
to reference the port.

MFC after:	3 days
Relnotes:	yes
Reviewed by:	cperciva
Differential Revision:	https://reviews.freebsd.org/D52739
2025-09-29 22:53:34 +01:00
Mateusz Guzik 7e4c451c12 vfs: retire the VREF macro
It is defined as a plain use of vref.

Churn generated with coccinelle:
@@
expression vp;
@@

- VREF(vp)
+ vref(vp)
2025-09-27 04:00:59 +00:00
Alexander Ziaee 8f7a4d7949 ObsoleteFiles: Remove the miscapitalized vimage.9
MFC after:      3 days
Fixes: 08d41d8803 (ObsoleteFiles: Remove the miscapitalized vnet.9)
Fixes: 3049b2f511 (vnet.9: Rename vnet.9/vimage.9 to VNET.9/VIMAGE.9)
2025-09-18 12:29:03 -04:00
Alexander Ziaee 08d41d8803 ObsoleteFiles: Remove the miscapitalized vnet.9
MFC after:	3 days
Fixes:		3049b2f511 (vnet.9: Rename vnet.9/vimage.9)
2025-09-17 11:54:13 -04:00
Dag-Erling Smørgrav 9b8224b950 cp: Drop test helper
Now that stat(1) can report whether a file is sparse, we no longer need
a helper program for our tests.

Sponsored by:	Klara, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D52482
2025-09-16 15:38:26 +02:00
Dag-Erling Smørgrav d20c825072 Revert "libc: Remove readdir_r(3)"
This reverts commit d549de7690.
2025-09-11 17:12:22 +02:00
Dag-Erling Smørgrav d549de7690 libc: Remove readdir_r(3)
This function was never safe to use.  We marked it deprecated in the
manual page in 2016, and it is marked obsolete in POSIX 2024.  We
previously added a linker warning and annotated the prototype; now that
stable/15 has been branched, we can remove it from main.

Relnotes:	yes
Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D52474
2025-09-10 18:58:06 +02:00