freebsd-dev/include/rpc
Marcel Moolenaar 12eb46c8bb Change the definition of NULL on ia64 (for LP64 compilations) from
an int constant to a long constant. This change improves consistency
in the following two ways:
1. The first 8 arguments are always passed in registers on ia64, which
   by virtue of the generated code implicitly widens ints to longs and
   allows the use of an 32-bit integral type for 64-bit arguments.
   Subsequent arguments are passed onto the memory stack, which does
   not exhibit the same behaviour and consequently do not allow this.
   In practice this means that variadic functions taking pointers
   and given NULL (without cast) work as long as the NULL is passed
   in one of the first 8 arguments. A SIGSEGV is more likely the
   result if such would be done for stack-based arguments. This is
   due to the fact that the upper 4 bytes remain undefined.
2. All 64-bit platforms that FreeBSD supports, with the obvious
   exception of ia64, allow 32-bit integral types (specifically NULL)
   when 64-bit pointers are expected in variadic functions by way of
   how the compiler generates code. As such, code that works correctly
   (whether rightfully so or not) on any platform other than ia64, may
   fail on ia64.

To more easily allow tweaking of the definition of NULL, this commit
removes the 12 definitions in the various headers and puts it in a
new header that can be included whenever NULL is to be made visible.

This commit fixes GNOME, emacs, xemacs and a whole bunch of ports
that I don't particularly care about at this time...
2003-12-07 21:10:06 +00:00
..
auth_des.h Breath deep and take __P out of the system include files. 2002-03-23 17:24:55 +00:00
auth_kerb.h remove #pragma ident 2002-09-04 23:58:23 +00:00
auth_unix.h Breath deep and take __P out of the system include files. 2002-03-23 17:24:55 +00:00
auth.h Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00
clnt_soc.h Breath deep and take __P out of the system include files. 2002-03-23 17:24:55 +00:00
clnt_stat.h comment out #pragma directive containing Sun SCM tags 2001-03-20 08:20:50 +00:00
clnt.h unifdef -D_THREAD_SAFE 2003-01-24 01:47:55 +00:00
des_crypt.h Breath deep and take __P out of the system include files. 2002-03-23 17:24:55 +00:00
des.h Breath deep and take __P out of the system include files. 2002-03-23 17:24:55 +00:00
Makefile Added new bsd.incs.mk which handles installing of header files 2002-05-12 16:01:00 +00:00
nettype.h Breath deep and take __P out of the system include files. 2002-03-23 17:24:55 +00:00
pmap_clnt.h Spell void * as void * rather than caddr_t. This is complicated by the 2002-04-28 15:18:50 +00:00
pmap_prot.h Breath deep and take __P out of the system include files. 2002-03-23 17:24:55 +00:00
pmap_rmt.h Breath deep and take __P out of the system include files. 2002-03-23 17:24:55 +00:00
raw.h Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) and 2001-03-19 12:50:13 +00:00
rpc_com.h Implement non-blocking tcp-connections. 2003-01-16 07:13:51 +00:00
rpc_msg.h Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00
rpc.h Breath deep and take __P out of the system include files. 2002-03-23 17:24:55 +00:00
rpcb_clnt.h Breath deep and take __P out of the system include files. 2002-03-23 17:24:55 +00:00
rpcb_prot.x Tokens after #endif are not strict ISO. 2002-03-13 10:29:06 +00:00
rpcent.h Breath deep and take __P out of the system include files. 2002-03-23 17:24:55 +00:00
svc_auth.h Breath deep and take __P out of the system include files. 2002-03-23 17:24:55 +00:00
svc_dg.h Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) and 2001-03-19 12:50:13 +00:00
svc_soc.h Breath deep and take __P out of the system include files. 2002-03-23 17:24:55 +00:00
svc.h Replace the old SCM_CREDS cred procedures. They can now be 2003-06-15 10:32:01 +00:00
types.h Change the definition of NULL on ia64 (for LP64 compilations) from 2003-12-07 21:10:06 +00:00
xdr.h Clean up some signed/unsigned issues in the XDR code. 2003-03-07 13:19:40 +00:00