Rev 42249 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
XDR routines for R, gnuwin32 version====================================R can make use of XDR to read/write binary dumps in amachine-independent format. This directory was put together by BrianRipley <ripley@stats.ox.ac.uk> from the version of the sunrpcdistribution put together for ONC RPC 1.10 for Windows NT by MartinF. Gergeleit. This is no longer available directly, but is part of theNISGINA distribution <www.dcs.qmw.ac.uk/~williams>. Only that part ofXDR used by R is included.[A later version of ONC/RPC is available athttp://www.plt.rwth-aachen.de/ks/english/oncrpc.html]For copyright see the Sun copyright in COPYRGHT.TXT and the headerof xdr.c.The only changes I made were(a) to comment out definitions in rpc/types.h that are duplicates ofthose in Windows/Sockets.h(b) to define ntohl and htonl via assembler code at the head ofxdr_stdio.c. This will need to be altered for any other little-endiansystem; generic code for 32-bit systems is provided.(c) to report errors directly rather than to NT services.Note that this code assume long is 4 bytes, and also implicitlyassumes that a pointer can be stored in a long. Recent R code onlymakes use of in-memory conversions, and we have only even usedxdr_double, xdr_int and xdr_string.