glibc/sunrpc/rpc
Martin Sebor c5db00dc30 sunrpc: Adjust RPC function declarations to match Sun's (bug 26686]
Building Glibc with the latest GCC 11 shows a number of instances
of the new -Warray-parameter warning designed to encourage
consistency in the forms of array arguments in redeclarations of
the same function (and, ultimately, to enable the detection of out
of bounds accesses via such arguments).

To avoid the subset of these warnings for the RPC APIs, this patch
changes the declarations of these functions to match both their
definitions and the Oracle RPC documentation.

Besides avoiding the -Warray-parameter warnings the effect of this
change is for GCC to issue warnings when either the functions are
passed an array with fewer than MAXNETNAMELEN + 1 elements, or when
the functions themselves access elements outside the array bounds.
2020-10-08 12:53:09 -06:00
..
auth_des.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
auth_unix.h Once again change RPC copyright notices. 2010-08-19 10:38:55 -07:00
auth.h sunrpc: Adjust RPC function declarations to match Sun's (bug 26686] 2020-10-08 12:53:09 -06:00
clnt.h Fix leading whitespaces. 2013-06-06 20:36:07 +02:00
des_crypt.h Once again change RPC copyright notices. 2010-08-19 10:38:55 -07:00
key_prot.h Once again change RPC copyright notices. 2010-08-19 10:38:55 -07:00
pmap_clnt.h Remove pre-ISO C support 2012-01-07 23:57:22 -05:00
pmap_prot.h Once again change RPC copyright notices. 2010-08-19 10:38:55 -07:00
pmap_rmt.h Once again change RPC copyright notices. 2010-08-19 10:38:55 -07:00
rpc_des.h Installed-header hygiene (BZ#20366): obsolete BSD u_* types. 2016-09-23 08:43:56 -04:00
rpc_msg.h Once again change RPC copyright notices. 2010-08-19 10:38:55 -07:00
rpc.h Once again change RPC copyright notices. 2010-08-19 10:38:55 -07:00
svc_auth.h Once again change RPC copyright notices. 2010-08-19 10:38:55 -07:00
svc.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
types.h sunrpc/rpc/types.h: fix OS X and FreeBSD build problems 2013-09-11 18:37:21 -04:00
xdr.h Fix typos. 2013-08-21 19:48:48 +02:00