freebsd-dev/lib
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
..
atf Explicitly set CXXSTD to c++11 for old C++ code using std::auto_ptr<>. 2022-12-04 16:25:21 -08:00
clang Revert "Avoid using TARGET_ARCH in llvm.build.mk" 2022-10-13 22:04:47 -05:00
csu csu: Add missing GNU-stack annotations to note object files. 2022-11-18 12:22:23 -08:00
flua flua: Fix a typo in a source code comment 2022-09-15 10:25:54 +02:00
geom pkgbase: Put geom utilities in their own package 2022-10-26 19:46:28 +02:00
googletest googletest: remove unused auto_ptr warning suppression 2022-11-30 19:34:52 -05:00
lib9p
lib80211
libalias
libarchive libarchive: merge from vendor branch 2022-12-13 20:21:13 +01:00
libauditd
libbe pkgbase: Put zfs utilities and lib in their own package 2022-10-26 19:46:30 +02:00
libbearssl
libbegemot libbegemot: Disable -Wuse-after-free. 2022-10-03 16:10:43 -07:00
libblacklist
libblocksruntime
libbluetooth
libbsddialog contrib/bsddialog: Import version 0.4 2022-09-25 15:09:16 +02:00
libbsdstat
libbsm
libbsnmp
libbz2
libc xdr: store chars consistently 2023-01-12 18:16:17 +00:00
libc_nonshared libc_nonshared: Move to clibs package 2022-11-01 10:17:07 +00:00
libc++ Apply libc++ fix for <ranges> not compiling at all 2022-05-14 13:46:39 +02:00
libc++experimental
libcalendar
libcam
libcapsicum
libcasper libcasper.3: document cap_init's single-threaded program requirement 2023-01-10 20:53:30 -07:00
libcbor
libclang_rt libclang_rt: Trim a few more MIPSisms. 2022-06-30 10:02:37 -07:00
libcom_err
libcompat
libcompiler_rt
libcrypt
libcuse cuse(3): Make some clarifications in the manual page. 2022-07-20 10:41:11 +02:00
libcxxrt
libdevctl
libdevdctl libdevdctl: update deprecated deprecation warning comment 2022-12-04 10:17:37 -05:00
libdevinfo pkgbase: Put devmatch in its own package 2022-10-26 19:46:38 +02:00
libdevstat
libdl
libdpv Indicate the port where the referenced man pages come from. 2022-08-16 20:57:30 +02:00
libdwarf
libedit libedit: Disable -Wuse-after-free for chartype.c. 2022-10-03 16:10:43 -07:00
libefivar libefivar: Fix a buffer overread. 2022-10-03 16:10:44 -07:00
libelf
libelftc
libevent1
libexecinfo
libexpat MFV: expat 2.5.0 2022-11-17 22:15:00 -08:00
libfetch libfetch: Pass a zeroed digest to DigestCalcResponse. 2022-11-15 19:18:58 -08:00
libfido2
libfigpar
libgcc_eh Merge llvm-project release/14.x llvmorg-14-init-18315-g190be5457c90 2022-05-14 13:45:25 +02:00
libgcc_s Export _Unwind_Complete and _Unwind_VRS_Pop from arm's libgcc_s 2022-04-27 11:04:10 +02:00
libgeom Reference correct section for free(3). 2022-09-17 13:12:44 +02:00
libgpio
libgssapi pkgbase: split kerberos binaries and libs 2022-08-03 11:02:28 +01:00
libiconv_modules libiconv VIQR: Fix a use after free. 2022-10-03 16:10:43 -07:00
libifconfig libifconfig: Correct some typos in source code comments 2022-09-04 12:53:58 +02:00
libipsec ipsec: add support for CHACHA20POLY1305 2022-11-02 14:19:04 +01:00
libipt
libiscsiutil libiscsiutil: Fix a typo in a source code comment 2023-01-11 11:52:55 +01:00
libjail
libkiconv
libkvm kvm_close(3): Check kd->sparse_map != NULL before munmap 2022-10-16 16:49:16 +00:00
libldns ldns: Disable -Warray-parameter warnings from GCC 12 on sha2.c. 2022-09-28 14:02:30 -07:00
liblua
liblutok Explicitly set CXXSTD to c++11 for old C++ code using std::auto_ptr<>. 2022-12-04 16:25:21 -08:00
liblzma MFV: xz 5.4.0 2022-12-31 20:25:17 -08:00
libmagic file: upgrade to 5.43. 2022-09-24 19:16:39 -07:00
libmd src.conf: Introduce WITHOUT_MACHDEP knob. 2022-09-09 09:54:28 +03:00
libmemstat
libmilter
libmixer mixer.4 and mixer.8: Fix mandoc -Tlint errors. 2022-03-20 20:21:03 +01:00
libmp
libmt mt(3): Fix a typo in the manual page 2022-04-06 18:41:08 +02:00
libnetbsd libnetbsd: Fix a typo in a source code comment 2022-04-02 14:53:56 +02:00
libnetgraph
libnetmap
libngatm
libnv libnv: bump library version 2022-07-22 00:23:08 +02:00
libomp Merge llvm-project release/14.x llvmorg-14-init-18315-g190be5457c90 2022-05-14 13:45:25 +02:00
libopenbsd
libopencsd
libpam pam.d: install hard link with same mode as target 2022-11-24 08:14:44 -05:00
libpathconv libpathconv: bump man page dates 2022-08-09 10:05:31 +02:00
libpcap
libpe
libpfctl pf: bridge-to 2022-11-02 15:45:23 +01:00
libpjdlog
libpmc libpmc: remove unused auto_ptr warning suppression 2022-12-02 18:52:30 -05:00
libpmcstat
libproc libproc: retire now-unused MIPS support 2022-10-17 14:17:25 -04:00
libprocstat libprocstat: forward declare struct kinfo_proc 2022-08-26 23:20:32 +01:00
libradius
libregex
librpcsec_gss Correct a typo in man page references: rpcset_gss -> rpcsec_gss. 2022-09-16 22:38:42 +02:00
librpcsvc
librss
librt
librtld_db
libsbuf
libsdp
libsecureboot lib/libsecureboot: Fix some typos 2022-11-11 10:38:39 -05:00
libsm
libsmb
libsmdb
libsmutil
libsqlite3
libssp
libssp_nonshared
libstats
libstdbuf
libstdthreads
libsysdecode libsysdecode: Match socket option names containing underscores 2022-11-02 13:46:24 -04:00
libtacplus
libtelnet
libthr libthr(3): Fix a typo in a source code comment 2023-01-11 11:48:14 +01:00
libthread_db
libucl
libufs Fix for tunefs(8) unable to add a UFS/FFS soft update journal. 2022-11-12 15:37:27 -08:00
libugidfw
libulog
libunbound unbound: Reapply Vendor import 1.17.0 2022-10-16 14:08:33 -07:00
libusb libusb(3): Implement libusb_interrupt_event_handler() by exposing existing function. 2022-10-02 17:32:59 +02:00
libusbhid usbhid(3): Fix a typo in the manual page 2022-06-04 19:54:25 +02:00
libutil libutil: Fix mandoc warnings 2022-08-07 16:30:24 +02:00
libveriexec
libvgl
libvmmapi vmm: Use struct vcpu in the instruction emulation code. 2022-11-18 10:25:37 -08:00
libwrap pkgbase: Put libwrap in FreeBSD-tcpd package 2022-10-26 19:46:32 +02:00
libxo
liby
libypclnt
libz Install working pkgconfig .pc files for compat libraries 2022-08-11 23:18:34 +01:00
libzstd
msun msun: correct comment 2022-09-19 21:40:07 +03:00
ncurses Install working pkgconfig .pc files for compat libraries 2022-08-11 23:18:34 +01:00
ofed libirdma: Drop clang-specific -ferror-limit. 2022-10-03 16:10:42 -07:00
tests
Makefile Put OPIE to rest. 2022-10-02 03:37:29 +02:00
Makefile.inc