home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / dec / 7110 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.8 KB

  1. Path: sparky!uunet!olivea!decwrl!pa.dec.com!engage.pko.dec.com!e2big.mko.dec.com!nntpd.lkg.dec.com!news!benoy
  2. From: benoy@alpha.aosg.gsf.dec.com (Benoy Desouza AOSG)
  3. Newsgroups: comp.sys.dec
  4. Subject: Re: ALPHA OSF1 xdr problem
  5. Message-ID: <1993Jan25.155039.1341@aosg.gsf.dec.com>
  6. Date: 25 Jan 93 15:50:39 GMT
  7. References: <WARREN.93Jan20172646@stormy.atmos.washington.edu>
  8. Sender: usenet@aosg.gsf.dec.com (USENET News System)
  9. Organization: AOSG
  10. Lines: 24
  11. Nntp-Posting-Host: alpha.aosg.gsf.dec.com
  12.  
  13. In article <WARREN.93Jan20172646@stormy.atmos.washington.edu>,
  14. warren@atmos.washington.edu (David Warren) writes:
  15. |> Has anyone successfully used xdr routines on an alpha for reading or
  16. |> writing longs. The ALPHA doesn't seem to know that a long by xdr
  17. |> definition is only 32 bits. I am trying to build the UNIDATA netcdf
  18. |> library (scientific data format) which uses xdr format. It is trying
  19. |> to use the xdr library that comes with the ALPHA and the tests fail
  20. |> because the ALPHA can't get longs correct.
  21. |> --
  22.  
  23. xdr_long() on OSF/1 Alpha DOES adhere to the internet RFC 1014 (XDR)
  24. and is really xdr_int() (just like ntohl() on OSF/1 Alpha is really a
  25. network-to-host-int). Beware that if you declare a variable as a long
  26. on OSF/1 Alpha, you will be getting a 64 bit integer. Hence if you try
  27. to xdr_long() this 64 bit quantity, you would not get the same results
  28. as on a 32 bit OS. You should really be applying xdr_long() ONLY to
  29. "ints" on OSF/1 Alpha.
  30.  
  31. -------------------------------------------------------------------
  32. Benoy DeSouza                AOSG (OSF/1 Alpha)
  33. Mailstop: GSF1-1/K13                    (dtn) 264-5877
  34. Digital Equipment Corp.                 (external) (603) 884-5877
  35. 5 Wentworth Drive                       enet: benoy@aosg.gsf.dec.com
  36. Hudson, NH 03051                        decnet: alpha::benoy
  37.