freebsd-dev/lib/libc
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
..
aarch64 libc: Fix longjmp/_longjmp(buf, 0) for AArch64 and RISC-V 2023-01-09 18:34:43 +00:00
amd64 amd64 libc: add missed GNU-stack annotation to memmove/memcpy 2022-11-18 15:31:38 +02:00
arm libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
capability Remove "All Rights Reserved" from FreeBSD Foundation libc copyrights 2022-07-21 09:53:31 -04:00
compat-43 libc: Add HISTORY sections to the manual pages 2022-05-05 18:46:32 +02:00
db libc: Add HISTORY sections to the manual pages 2022-05-05 18:46:32 +02:00
gdtoa libc: drop "All rights reserved" from Foundation copyrights 2022-08-04 16:57:50 -04:00
gen tzcode: Move configuration into separate header. 2023-01-11 11:39:12 +01:00
gmon
i386 libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
iconv libc: iconv: add mb_cur_min for encoder traits 2022-08-11 11:42:17 -05:00
include libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
inet
isc
locale xlocale(3): Link man pages 2022-12-19 05:54:52 +01:00
md
nameser
net getservent.3: Mention the service.db 2022-12-07 10:26:13 +01:00
nls
posix1e acl_delete_entry(): remove write-only variable 2021-11-29 17:39:51 +02:00
powerpc libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
powerpc64 libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
powerpcspe
quad qdivrem: Predict division by zero as false. 2022-10-04 13:51:06 +02:00
regex libc: drop "All rights reserved" from Foundation copyrights 2022-08-04 16:57:50 -04:00
resolv resolver(3): Fix a typo in a source code comment 2022-04-09 09:14:29 +02:00
riscv libc: Fix longjmp/_longjmp(buf, 0) for AArch64 and RISC-V 2023-01-09 18:34:43 +00:00
rpc rpcb_clnt.c: Do not force use of UDP 2022-11-13 12:16:06 -08:00
secure libc: ssp: sprinkle around some __dead2 2021-09-30 23:55:17 -05:00
softfloat
stdio libc: Fix size range check in setvbuf 2022-10-04 12:03:56 -04:00
stdlib strfmon: Remove XXX marks 2022-10-30 00:09:32 +03:00
stdtime tzcode: Move configuration into separate header. 2023-01-11 11:39:12 +01:00
string libc: Fix build with WITHOUT_MACHDEP_OPTIMIZATIONS=YES set. 2023-01-10 17:00:41 +03:00
sys copyright: chase my name and email change 2023-01-06 15:28:42 -05:00
tests strfmon_l: Use specified locale for number formatting 2022-10-30 00:09:11 +03:00
uuid uuid(3): Document return values 2021-11-19 03:58:34 -05:00
x86 Remove "All Rights Reserved" from FreeBSD Foundation libc copyrights 2022-07-21 09:53:31 -04:00
xdr xdr: store chars consistently 2023-01-12 18:16:17 +00:00
yp
libc_nossp.ldscript
libc.ldscript
Makefile libc: Include quad support on long32 ABIs 2022-10-05 17:27:44 +01:00
Makefile.depend
Makefile.depend.options
Versions.def Create namespace for the symbols added during 14-CURRENT cycle. 2021-07-15 19:40:28 +03:00