rpc: Fix the definition of xdr_void()xdr_void() should have type xdrproc_t, make it so.Approved by: re (kib)PR: 280514Reviewed by: brooks, dimMFC after: 2 weeksDifferential Revision: https:/
rpc: Fix the definition of xdr_void()xdr_void() should have type xdrproc_t, make it so.Approved by: re (kib)PR: 280514Reviewed by: brooks, dimMFC after: 2 weeksDifferential Revision: https://reviews.freebsd.org/D47340(cherry picked from commit a5d1cf5e362a2e3c3ebdf6d8f2b86658a6d0b9d6)(cherry picked from commit b698c825f3b6699b278122da776bdfe5f360619f)
show more ...
xdr(3): Fix a few typos in source code comments- s/reoutines/routines/- s/paraemters/parameters/Obtained from: NetBSD(cherry picked from commit 577a721d05aa20f38a615ad1cd5089a51c8571c1)
libc: Remove empty comments in Symbol.mapThese were left over from $FreeBSD$ removal.Reviewed by: emasteDifferential Revision: https://reviews.freebsd.org/D42612(cherry picked from commit 1ca6
libc: Remove empty comments in Symbol.mapThese were left over from $FreeBSD$ removal.Reviewed by: emasteDifferential Revision: https://reviews.freebsd.org/D42612(cherry picked from commit 1ca63a8219b88b752b064d19bd3428c61dbcf1f9)
libc: Purge unneeded cdefs.hThese sys/cdefs.h are not needed. Purge them. They are mostly left-overfrom the $FreeBSD$ removal. A few in libc are still required for macrosthat cdefs.h defines. Kee
libc: Purge unneeded cdefs.hThese sys/cdefs.h are not needed. Purge them. They are mostly left-overfrom the $FreeBSD$ removal. A few in libc are still required for macrosthat cdefs.h defines. Keep those.Sponsored by: NetflixDifferential Revision: https://reviews.freebsd.org/D42385(cherry picked from commit 559a218c9b257775fb249b67945fe4a05b7a6b9f)
Remove $FreeBSD$: one-line nroff patternRemove /^\.\\"\s*\$FreeBSD\$$\n/
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
Remove $FreeBSD$: one-line .h patternRemove /^\s*\*+\s*\$FreeBSD\$.*$\n/
xdr(3): Fix a typo in a source code comment- s/curren/current/MFC after: 3 days
xdr: store chars consistentlyCast char's through unsigned char before storing as an integer inxdr_char(), this ensures that the encoded form is consistently notsign-extended following Open Solari
xdr: store chars consistentlyCast char's through unsigned char before storing as an integer inxdr_char(), this ensures that the encoded form is consistently notsign-extended following Open Solaris's example.Prior to this change, platforms with signed chars would sign extendvalues with the high bit set but ones with unsigned chars would notso 0xff would be stored as 0x000000ff on unsigned char platforms and0xffffffff on signed char platforms. Decoding has the sameresult for either form so this is a largely cosmetic change, but itseems best to produce consistent output.For more discussion, see https://github.com/openzfs/zfs/issues/14173Reviewed by: mav, impDifferential Revision: https://reviews.freebsd.org/D37992
typo: s/impelmentation/implementation/.No functional change
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier f
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.Special thanks to Wind River for providing access to "The Duke ofHighlander" tool: an older (2014) run over FreeBSD tree was useful as astarting point.
* limit size of buffers to RPC_MAXDATASIZE * don't leak memory * be more picky about bad parametersFrom:https://raw.githubusercontent.com/guidovranken/rpcbomb/master/libtirpc_patch.txthttps://
* limit size of buffers to RPC_MAXDATASIZE * don't leak memory * be more picky about bad parametersFrom:https://raw.githubusercontent.com/guidovranken/rpcbomb/master/libtirpc_patch.txthttps://github.com/guidovranken/rpcbomb/blob/master/rpcbind_patch.txtvia NetBSD.Reviewed by: emaste, cem (earlier version)Differential Revision: https://reviews.freebsd.org/D10922MFC after: 3 days
xdr(3): add missing comma after xdr_sizeof(3) in SYNOPSISThis unbreaks the .Nm declarationReported by: make manlintMFC after: 2 weeksSponsored by: Dell EMC Isilon
libc/xdr: unsign some loop indexes.Although usually small, values produced by nitems() are unsigned.Unsign inxdeing variables related to nitems() macros to avoidsigned vs. unsigned comparisons.
libc: do not include <sys/types.h> where <sys/param.h> was already includedAccording to style(9):> normally, include <sys/types.h> OR <sys/param.h>, but not both.(<sys/param.h> already includes <
libc: do not include <sys/types.h> where <sys/param.h> was already includedAccording to style(9):> normally, include <sys/types.h> OR <sys/param.h>, but not both.(<sys/param.h> already includes <sys/types.h> when LOCORE is not defined).
libc: make some more use of the nitems() macro.We have an nitems() macro in the <sys/param.h> header that isconvenient to re-use as it makes things easier to read.Given that it is available alrea
libc: make some more use of the nitems() macro.We have an nitems() macro in the <sys/param.h> header that isconvenient to re-use as it makes things easier to read.Given that it is available already without adding additionalheaders and other parts of libc already use it, extend a bitmore its use.
libc: replace 0 with NULL for pointers.While here also cleanup some surrounding code; particularlydrop some malloc() casts.Found with devel/coccinelle.Reviewed by: bde (previous version - all
libc: replace 0 with NULL for pointers.While here also cleanup some surrounding code; particularlydrop some malloc() casts.Found with devel/coccinelle.Reviewed by: bde (previous version - all new bugs are mine)
Bring in initial libc and libstand support for RISC-V.Reviewed by: andrew, emaste, kibSponsored by: DARPA, AFRLSponsored by: HEIF5Differential Revision: https://reviews.freebsd.org/D4943
Use ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Use proper prototype for harmless().
Make x_putlong() and x_putbytes() prototypes match theprototypes in <rpc/xdr.h>
Use ANSI C prototypes.
Add the start of libc and libstand for arm64. Not all of the machinedependent functions have been implemented, but this is enough for world.Differential Revision: https://reviews.freebsd.org/D2132
Add the start of libc and libstand for arm64. Not all of the machinedependent functions have been implemented, but this is enough for world.Differential Revision: https://reviews.freebsd.org/D2132Reviewed by: emasteSponsored by: The FreeBSD Foundation
Remove ia64.This includes:o All directories named *ia64*o All files named *ia64*o All ia64-specific code guarded by __ia64__o All ia64-specific makefile logico Mention of ia64 in com
Remove ia64.This includes:o All directories named *ia64*o All files named *ia64*o All ia64-specific code guarded by __ia64__o All ia64-specific makefile logico Mention of ia64 in comments and documentationThis excludes:o Everything under contrib/o Everything under crypto/o sys/xen/interfaceo sys/sys/elf_common.hDiscussed at: BSDcan
1234