No description
Find a file
Alex Richardson ca149d75e9 libc++: silence -Wnontrivial-memaccess warning with newer clang
Apply part of LLVM commit 71315698c91d0cda054b903da0594ca6f072c350 to
silence the -Wnontrivial-memaccess warning that is triggered any time
this function is instantiated by user code. This fixes another
buildworld failure with Clang HEAD.

Original commit message:
[clang] Warn about memset/memcpy to NonTriviallyCopyable types (#111434)
This implements a warning that's similar to what GCC does in that
context: both memcpy and memset require their first and second operand
to be trivially copyable, let's warn if that's not the case.

Reviewed by:	emaste, dim
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D52534

(cherry picked from commit 34a006eaa3)
2025-12-15 10:02:09 -05:00
.cirrus-ci
.github .github: Use make.py's --cross-toolchain option on macOS 2025-08-06 16:14:37 -04:00
bin sh: Don't assume EINTR means SIGALRM 2025-11-25 03:18:24 +00:00
cddl libdtrace: Update io.d to chase changes to struct bio layout 2025-12-11 18:04:13 +00:00
contrib libc++: silence -Wnontrivial-memaccess warning with newer clang 2025-12-15 10:02:09 -05:00
crypto openssh: Don't attempt to connect to unsupported addresses 2025-11-25 03:18:24 +00:00
etc mtree: Keep mtree files indented with spaces 2025-12-02 01:59:06 +00:00
gnu diff3: Move to own package 2025-10-03 09:52:43 -07:00
include lib/libc: implement C23 memalignment() 2025-12-12 11:32:58 +01:00
kerberos5 heimdal-kadmin: Add support for the -f dump option 2025-10-07 18:47:21 -07:00
krb5 krb5: Add missing symbol 2025-12-12 18:19:40 -08:00
lib libpam: Add newline at EOF in modules.inc 2025-12-15 09:22:20 -05:00
libexec noshutdown: Fix startup order 2025-12-13 22:01:14 +00:00
release release: Include comms/usbmuxd to DVD to ensure ipheth(4) works 2025-12-08 08:49:09 +08:00
rescue nvmf: Switch several ioctls to using nvlists 2024-12-30 13:52:21 -05:00
sbin nextboot: Reimplement missing -a option 2025-12-13 22:01:14 +00:00
secure libcrypto: Install tests in the tests package 2025-11-07 05:16:08 +00:00
share sound examples: Check if setting property was successful 2025-12-15 14:29:56 +01:00
stand sys/crypto: import md5c.c C rewrite 2025-11-23 02:12:35 +01:00
sys linuxkpi: Take const root in read-only radix tree functions 2025-12-15 10:02:09 -05:00
targets blocklist: Rename blacklist to blocklist 2025-10-14 00:53:16 +00:00
tests */*: remove recallocarray() compat shims following import into libc 2025-12-12 11:37:07 +01:00
tools locale: make install Unicode 17.0.0/CLDR 48 2025-12-13 04:14:46 +00:00
usr.bin ministat: Clean up usage message, manual page, and chameleon 2025-12-15 15:42:47 +01:00
usr.sbin freebsd-update: Mention upgrading packages, not just ports 2025-12-15 14:54:23 +00:00
.arcconfig
.arclint
.cirrus.yml Cirrus-CI: Switch back to tzst packages, but use level 1 2025-10-14 20:47:10 -04:00
.clang-format clang-format: Minor tweaks 2024-04-30 17:33:43 -04:00
.clean_build_epoch build: introduce the notion of a build epoch 2025-08-14 23:43:42 -05:00
.git-blame-ignore-revs git-blame-ignore-revs: witness white space cleanup and style(9) tweeks 2025-08-29 18:01:43 +08:00
.gitattributes Remove SVN related Git attributes 2023-12-26 10:28:28 -07:00
.gitignore src.sys.mk: Support src.conf in SRCTOP 2025-09-16 13:27:43 +00:00
.mailmap mailmap: Add Joyu Liao 2025-06-26 14:13:21 +02:00
CONTRIBUTING.md CONTRIBUTING: Tweak the language 2025-08-08 11:16:13 -06:00
COPYRIGHT copyright: Happy New Year 2025 2025-01-01 00:04:28 +00:00
LOCKS Update LOCKS for Git 2023-12-26 10:28:25 -07:00
MAINTAINERS man filesystems: fix more xrefs after move to s4 2024-06-27 18:32:05 -06:00
Makefile Makefile: Force DISTDIR=/ for (update-)packages 2025-10-10 05:29:35 +01:00
Makefile.inc1 Makefile.inc1: Force NO_ROOT for distribute* and package* 2025-12-10 13:05:09 -05:00
Makefile.libcompat Makefile.libcompat: Use same PATH for _lc_build-tools as _build-tools 2025-08-22 21:46:15 +01:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ObsoleteFiles.inc pfind(9): follow-up fixes and improvements 2025-12-11 17:02:12 -04:00
README.md Update README.md to add pointer to release page. 2024-05-09 20:40:46 -06:00
RELNOTES RELNOTES: Fix another typo 2025-08-26 10:01:31 -07:00
UPDATING UPDATING: Add an entry for f27afc4765 2025-11-23 12:39:46 -08:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

For official FreeBSD bootable images, see the release page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.