OPNsense - FreeBSD source
Find a file
John Baldwin d100ff6c09 libkern: Add libcalls for ffs and __ffsdi2
These are needed when compiling a RISC-V kernel with GCC which does
not inline __builtin_ffs*.

The __ffsdi2 is adapated from the previous ffsl.c.

This partially reverts commit f4db342d44.

Reviewed by:	mhorne
Differential Revision:	https://reviews.freebsd.org/D54967

(cherry picked from commit 4c822dd4a15c533c08271b2286da949fffafc89e)
2026-04-24 11:26:39 -04:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github .github: support all stable branches 2026-04-02 11:11:44 +01:00
bin sh: Increase default history size to POSIX mandated minimum of 128 2026-04-15 21:33:35 -04:00
cddl ctfmerge: fix segfault when building on macOS 2025-12-15 14:22:54 -08:00
contrib netbsd-tests t_regex_att: Use __nonstring for a non-string constant 2026-04-24 11:26:39 -04:00
crypto crypto/openssl: update artifacts to match 3.5.6 release artifacts 2026-04-11 19:14:40 -07:00
etc pkgbase: Move all of Kyua into the kyua package 2026-04-07 15:52:09 +00:00
gnu diff3: Move to own package 2025-10-03 09:52:43 -07:00
include unistd.h: _Fork(2) is required by POSIX 2024 2026-04-17 03:42:38 +03:00
kerberos5 heimdal-kadmin: Add support for the -f dump option 2025-10-07 18:47:21 -07:00
krb5 krb5: Make the build a bit quieter 2026-03-31 15:57:28 +00:00
lib swab: Correctly treat the data as misaligned 2026-04-24 11:26:38 -04:00
libexec rtld: Use a helper variable to simplify a few lines 2026-04-24 11:26:38 -04:00
release Revert "EC2: Add clibs-lib32 pkg to small/builder images" 2026-04-22 15:42:21 -07:00
rescue nvmf: Switch several ioctls to using nvlists 2024-12-30 13:52:21 -05:00
sbin ippool(5): Correct example in man page 2026-04-23 21:46:08 -07:00
secure crypto/openssl: add new manpage from release 3.5.6 2026-04-11 19:15:00 -07:00
share bsd.sys.mk: Silence a few GCC warnings for C++ 2026-04-24 11:26:39 -04:00
stand stand: Add compiler builtins needed by GCC for RISC-V 2026-04-24 11:26:39 -04:00
sys libkern: Add libcalls for ffs and __ffsdi2 2026-04-24 11:26:39 -04:00
targets blocklist: Rename blacklist to blocklist 2025-10-14 00:53:16 +00:00
tests tests: kqueue: improve diagnostics for our CPONFORK test 2026-04-23 08:48:45 -05:00
tools INIT_ALL: Fix typo in option description 2026-04-22 10:23:13 -04:00
usr.bin kyua: Workaround unclear warning from GCC 2026-04-24 11:26:39 -04:00
usr.sbin wlanstat: Drop unneeded bsd.compiler.mk from Makefile 2026-04-24 11:26:39 -04:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.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: adjust to sort C++ headers per style(9) 2026-02-21 19:44:24 -08: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 capsicum-test: Move out of contrib 2026-02-06 11:15:09 -05:00
Makefile Makefile: Update doxygen requirements 2026-02-05 16:49:54 -05:00
Makefile.inc1 packages: Always use the bootstrap flua 2026-04-12 20:12:16 +01: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 ObsoleteFiles.inc: remove stale allwinner pages 2026-04-16 12:17:35 -03:00
README.md Update README.md to add pointer to release page. 2024-05-09 20:40:46 -06:00
RELNOTES RELNOTES: Add entry for 0c370a416b 2026-02-12 12:47:53 -07:00
UPDATING UPDATING: Bump __FreeBSD_version to 1500508 2026-04-22 21:04:02 +00: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.