world/kernel: Use the rounddown() macro in various places.Tested-by: zrj
rpc: Add support for NO_WCAST_FUNCTION_TYPE make variables.It is unfortunate that <rpc/xdr.h> has the "bool_t xdr_void(void);"without the XDR* parameter even if it is unused. Since we do not want
rpc: Add support for NO_WCAST_FUNCTION_TYPE make variables.It is unfortunate that <rpc/xdr.h> has the "bool_t xdr_void(void);"without the XDR* parameter even if it is unused. Since we do not want tochange public symbol interface, suppressing the warning is a better way.While there, add suppression to acpiexec/inetd for function cast too.
show more ...
rpc: Fix xdr_* macros and limit buffer sizes.While there, constify few things.Taken-from: FreeBSD
Add __attribute__((__noreturn__)) to various function prototypes in usr.sbin/.This general cleanup is useful in various ways. It helps the compileroptimize better and it also helps later GCCs dete
Add __attribute__((__noreturn__)) to various function prototypes in usr.sbin/.This general cleanup is useful in various ways. It helps the compileroptimize better and it also helps later GCCs detect better when to give-Wimplicit-fallthrough warnings and when not.Found-with: -Wsuggest-attribute=noreturn
Clean up a bit for symlinked headers.<errno.h> as well as <poll.h> are symlinked to their <sys/...>counterparts, so there is no need to include both.Also fix a comment that suggests that there i
Clean up a bit for symlinked headers.<errno.h> as well as <poll.h> are symlinked to their <sys/...>counterparts, so there is no need to include both.Also fix a comment that suggests that there is a difference.
build - prepare for higher optimization levels* Add NO_STRICT_ALIASING, NO_STRICT_OVERFLOW, and NO_WARRAY_BOUNDS make variables as-needed.
rpcbind - Fix crashBring in 88cb9496ec48 from the FreeBSD repo.The Sun RPC framework uses a netbuf structure to represent thetransport specific form of a universal transport address. Thestruct
rpcbind - Fix crashBring in 88cb9496ec48 from the FreeBSD repo.The Sun RPC framework uses a netbuf structure to represent thetransport specific form of a universal transport address. Thestructure is expected to be opaque to consumers. In the currentimplementation, the structure contains a pointer to a bufferthat holds the actual address.In rpcbind(8), netbuf structures are copied directly, which wouldresult in two netbuf structures that reference to one sharedaddress buffer. When one of the two netbuf structures is freed,access to the other netbuf structure would result in an undefinedresult that may crash the rpcbind(8) daemon.Fix this by making a copy of the buffer that is going to be freedinstead of doing a shallow copy.Author: delphij <delphij@FreeBSD.org>Security: FreeBSD-SA-15:24.rpcbindSecurity: CVE-2015-7236
Sun switched these files to a 3-clause BSD license in 2009.Change-noted-in: http://svnweb.freebsd.org/base?view=revision&revision=258564
rpcbind(8): Raise WARNS to 3 and fix warnings.
Remove a few more casts of NULL to some pointer type.
Put WARNS?=6 in usr.sbin/Makefile.inc (like in usr.bin/ etc.).Raise WARNS as high as possible for the utilities that still warnwith 6.
Replace all casts of NULL to something with NULL.
Generally use NULL instead of explicitly casting 0 to some pointer type (part2).
Remove some unexpanded $DragonFly$ IDs in our tree.
Bring in a transport-independent RPC (TI-RPC).-rpcbind replaces portmap which is more secure.-Essentially this is the same thing FreeBSD did over 7 years ago (svnrevision #74462).-This also upda
Bring in a transport-independent RPC (TI-RPC).-rpcbind replaces portmap which is more secure.-Essentially this is the same thing FreeBSD did over 7 years ago (svnrevision #74462).-This also updates utilities and the kernel build associated with thischange.