Go to file
Warner Losh 30e0d2a510 linux: For better compatibility, provide compatible endian.h
Add endian.h. This includes sys/endian.h and then adds extra defines
that glibc defines with double underscores for our
_{BIG,BYTE,LITTLE,PDP}_ENDIAN macros. We also define __FLOAT_WORD_ORDER
to be the same as _BYTE_ENDIAN since FreeBSD doesn't currently define
this, and the default with glibc is exactly this for our platforms.
Move common parts of endian.h and sys/endian.h into sys/_endian.h
to limit namespace pollution from endian.h

All this gives us good compatibility with Linux. There may be one or two
upstreams that haven't integrated the patches I tried to send up.

There are some minor differences:
	o The extra glibc macros are not defined. These are all
	  controlled with either __ at the start, or only defined
	  when glibc is being built. We also don't define macros
	  that are used internally in glibc that would pollute
	  the namespace.
	o For complete compatibility, this change must also be
	  paired with providing a glibc-compatible byteswap.h.

Sponsored by:		Netflix
Reviewed by:		mhorne, markj, jhb
Differential Revision:	https://reviews.freebsd.org/D31962
2023-01-20 16:32:45 -07:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github .github: Switch to v3 of actions/checkout. 2022-12-20 16:27:17 -08:00
bin df: Return non-zero status on write failure. 2023-01-17 16:25:28 +01:00
cddl libdtrace: Change the binding of USDT probe symbols to STB_WEAK 2022-12-11 11:27:22 -05:00
contrib netcat: Allow nc to be an if_tun tunnel broker 2023-01-17 10:05:49 +00:00
crypto openssh: remove mention of now-unused svn:keywords 2023-01-16 10:56:27 -05:00
etc Minor changes to force commit these files so new freebsd*.cf files are 2023-01-17 06:49:49 +00:00
gnu gnu diff3: apply patch to committed src, rather than at build time 2022-11-13 21:33:40 -05:00
include linux: For better compatibility, provide compatible endian.h 2023-01-20 16:32:45 -07:00
kerberos5 kerberos5: retire now-unused MIPS support 2022-11-02 13:16:18 -04:00
lib Refresh CPU types and classes from sys/sys/pmc.h. 2023-01-18 21:50:49 +01:00
libexec rc.initdiskless: Fix a typo in a comment 2023-01-19 14:17:37 +01:00
release pkgbase: share rules for packages without pkgdeps 2023-01-09 10:42:59 -05:00
rescue retire sconfig(8) ce(4)/cp(4) configuration tool 2022-12-13 15:25:13 -05:00
sbin Revert "ifconfig: abort if loading a module fails other than for ENOENT" 2023-01-20 10:17:21 -07:00
secure libcrypto padlock.so: Link with -z noexecstack for ld.bfd. 2022-11-22 08:37:04 -08:00
share umodem: add quirk to ignore CDC_CM descriptor 2023-01-18 12:17:09 +01:00
stand stand: dev can't be NULL in default_prasedev 2023-01-13 15:54:44 -07:00
sys linux: For better compatibility, provide compatible endian.h 2023-01-20 16:32:45 -07:00
targets retire sconfig(8) ce(4)/cp(4) configuration tool 2022-12-13 15:25:13 -05:00
tests if_tun: Add basic connectivity test with nc tun support 2023-01-17 10:05:50 +00:00
tools ifnet: Rename DrvAPI to "IfAPI" 2023-01-17 15:15:51 -05:00
usr.bin vmstat: fix overflow of interrupt name buffer 2023-01-20 04:51:13 +02:00
usr.sbin bhyve: Fix a buffer overread in the PCI hda device model. 2023-01-20 09:58:38 -08: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: add `gpart show` to setup script 2023-01-03 11:06:16 -05:00
.clang-format clang-format: Add bitset loop macros 2021-09-21 12:08:01 -04:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore gitignore: whack dead architectures 2022-11-23 01:18:03 +00:00
COPYRIGHT Happy New Year 2023! 2023-01-01 13:44:43 +08:00
LOCKS LOCKS: update current locks 2018-06-09 03:08:04 +00:00
MAINTAINERS Remove myself from bhyve maintenance; ENOTIME. 2021-11-19 07:09:30 +10:00
Makefile Shell-escape assignments to PATH in the top-level makefiles 2023-01-20 10:47:17 +00:00
Makefile.inc1 Shell-escape assignments to PATH in the top-level makefiles 2023-01-20 10:47:17 +00:00
Makefile.libcompat libcompat: avoid installing include files twice 2022-11-16 19:15:20 -05:00
Makefile.sys.inc AUTO_OBJ: For all top-level targets enforce using an OBJDIR. 2017-12-05 21:29:47 +00:00
ObsoleteFiles.inc Missed skey(4), a copy of opie(4). 2023-01-06 11:12:40 +01:00
README.md unbound: Vendor import 1.17.1 2023-01-13 15:52:47 -08:00
RELNOTES RELNOTES: Add mention of growfs addition of swap partition. 2022-12-13 08:54:43 -06:00
UPDATING UPDATING: Remove old entries 2023-01-20 16:17:45 -07:00

README.md

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.

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.