freebsd-dev/sys
Brooks Davis a872c37054 xdr: store chars consistently
Cast char's through unsigned char before storing as an integer in
xdr_char(), this ensures that the encoded form is consistently not
sign-extended following Open Solaris's example.

Prior to this change, platforms with signed chars would sign extend
values with the high bit set but ones with unsigned chars would not
so 0xff would be stored as 0x000000ff on unsigned char platforms and
0xffffffff on signed char platforms.  Decoding has the same
result for either form so this is a largely cosmetic change, but it
seems best to produce consistent output.

For more discussion, see https://github.com/openzfs/zfs/issues/14173

Reviewed by:	mav, imp
Differential Revision:	https://reviews.freebsd.org/D37992
2023-01-12 18:16:17 +00:00
..
amd64 amd64 pmap.h: make it easier to use the header for other consumers 2023-01-06 01:30:29 +02:00
arm copyright: chase my name and email change 2023-01-06 15:28:42 -05:00
arm64 Add Combo PHY, RK817, Syr827, tcs4525 pmic devices to Rockchip specific config. 2023-01-08 03:07:18 +00:00
bsm
cam CTL: Allow userland supply tags via ioctl frontend. 2022-12-03 12:05:05 -05:00
cddl dtrace: correct the aframes value for fbt provider 2023-01-12 11:06:07 -04:00
compat LinuxKPI: fix possible NULL dereference in linuxkpi_page_frag_alloc() 2023-01-11 23:40:05 +00:00
conf riscv: always include frame pointer 2023-01-12 11:04:24 -04:00
contrib vfs: add the concept of vnode state transitions 2022-12-26 17:35:12 +00:00
crypto aesni: Remove misleading array bounds for aesni_decryt_ecb. 2022-12-07 12:32:19 -08:00
ddb ddb: Don't flag breakpoint/watchpoint commands as MEMSAFE 2022-11-02 13:46:24 -04:00
dev qat(4): Fix common typos in source code comments 2023-01-11 13:27:56 +01:00
dts arm64/rockchip: Remove rk3328-dwc3 overlays 2022-11-16 11:58:32 +01:00
fs nfscl: Improve NFSv4 error message for NFSERR_WRONGSEC 2023-01-11 13:28:44 -08:00
gdb
geom GEOM: Remove redundant NULL pointer check before g_free() 2022-12-28 23:34:09 +08:00
gnu
i386 i386: Fix a typo in a source code comment 2023-01-11 11:29:23 +01:00
isa
kern Add descrip_check_write_mp() helper 2022-12-29 22:55:39 +02:00
kgssapi kgssapi: Increase timeout for kernel to gssd(8) upcalls 2023-01-11 13:20:31 -08:00
libkern ashldi3: Use C89-style function definition 2022-11-27 13:23:25 -07:00
modules dtrace: include fbt module unconditionally 2023-01-12 11:04:36 -04:00
net ifnet/API: Move the IfAPI from if_var.h to if.h 2023-01-12 11:25:41 -05:00
net80211 iee80211_hwmp: Don't dereference NULL ni in debug printf. 2022-12-21 10:45:45 -08:00
netgraph ng_hci: handle NG_HCI_M_PULLUP failure in le_advertizing_report 2022-11-01 14:33:37 -04:00
netinet tcp_rack(4): Fix a typo in a source code comment 2023-01-11 12:02:25 +01:00
netinet6 inet6: Fix LINT build 2022-12-20 15:23:49 -05:00
netipsec kdebug_secasv: Update for recent locking changes. 2022-12-15 11:27:39 -08:00
netlink netlink: improve RTM_GETADDR handling. 2023-01-08 15:06:34 +00:00
netpfil ipfw: Constify name argument for hash lookup 2022-12-20 11:18:49 -05:00
netsmb
nfs Allow any user to read the NFS stats, for example with nfsstat(1). 2022-12-01 22:21:14 -07:00
nfsclient
nfsserver
nlm nlm: only access refcounts using dedicated primitives 2022-11-24 19:46:43 +00:00
ofed
opencrypto crypto: move all zeroing into crypto_getreq 2022-11-22 12:28:07 +00:00
powerpc vm: reduce lock contention when processing vm batchqueues 2022-12-14 14:34:07 -05:00
riscv Check alignment of fp in unwind_frame 2022-11-16 18:29:28 +00:00
rpc krpc: Allow mountd/nfsd to optionally run in a jail 2022-12-18 12:40:48 -08:00
security vfs: stop using NDFREE 2022-12-19 08:07:23 +00:00
sys tty(4): Fix a typo in a source code comment 2023-01-11 12:12:48 +01:00
teken
tests
tools dtb: Be much less verbose in the building of dtb 2022-10-29 10:13:54 -06:00
ufs Fix vop_readdir's ncookies handling in UFS and EXT2. 2023-01-01 19:30:14 -08:00
vm vfs: add vn_getsize 2022-12-28 22:43:49 +00:00
x86 x86: ignore stepping for APL30 errata 2023-01-12 10:08:17 +01:00
xdr xdr: store chars consistently 2023-01-12 18:16:17 +00:00
xen
Makefile Remove dead code in the cscope target 2022-11-11 15:53:57 +00:00
README.md README.md: shift description of kernel config files 2022-11-01 12:20:55 -03:00

FreeBSD Kernel Source:

This directory contains the source files and build glue that make up the FreeBSD kernel and its modules, including both original and contributed software.

Kernel configuration files are located in the conf/ subdirectory of each architecture. GENERIC is the configuration used in release builds. NOTES contains documentation of all possible entries. LINT is a compile-only configuration used to maximize build coverage and detect regressions.

Source Roadmap:

Directory Description
amd64 AMD64 (64-bit x86) architecture support
arm 32-bit ARM architecture support
arm64 64-bit ARM (AArch64) architecture support
cam Common Access Method storage subsystem - cam(4) and ctl(4)
cddl CDDL-licensed optional sources such as DTrace
conf kernel build glue
compat Linux compatibility layer, FreeBSD 32-bit compatibility
contrib 3rd-party imported software such as OpenZFS
crypto crypto drivers
ddb interactive kernel debugger - ddb(4)
fs most filesystems, excluding UFS, NFS, and ZFS
dev device drivers
gdb kernel remote GDB stub - gdb(4)
geom GEOM framework - geom(4)
i386 i386 (32-bit x86) architecture support
kern main part of the kernel
libkern libc-like and other support functions for kernel use
modules kernel module infrastructure
net core networking code
net80211 wireless networking (IEEE 802.11) - net80211(4)
netgraph graph-based networking subsystem - netgraph(4)
netinet IPv4 protocol implementation - inet(4)
netinet6 IPv6 protocol implementation - inet6(4)
netipsec IPsec protocol implementation - ipsec(4)
netpfil packet filters - ipfw(4), pf(4), and ipfilter(4)
opencrypto OpenCrypto framework - crypto(7)
powerpc PowerPC/POWER (32 and 64-bit) architecture support
riscv 64-bit RISC-V architecture support
security security facilities - audit(4) and mac(4)
sys kernel headers
tests kernel unit tests
ufs Unix File System - ffs(7)
vm virtual memory system
x86 code shared by AMD64 and i386 architectures