* ALPHA OSF1 xdr problem
@ 1993-01-20 22:26 David Warren
1993-01-25 15:50 ` Benoy Desouza AOSG
0 siblings, 1 reply; 2+ messages in thread
From: David Warren @ 1993-01-20 22:26 UTC (permalink / raw)
Has anyone successfully used xdr routines on an alpha for reading or
writing longs. The ALPHA doesn't seem to know that a long by xdr
definition is only 32 bits. I am trying to build the UNIDATA netcdf
library (scientific data format) which uses xdr format. It is trying
to use the xdr library that comes with the ALPHA and the tests fail
because the ALPHA can't get longs correct.
--
David Warren INTERNET: warren@atmos.washington.edu
(206) 543-0945 UUCP: uw-beaver!atmos.washington.edu!warren
Dept of Atmospheric Sciences, AK-40
University of Washington
DECUS E-PUBS Library Committee representative
SeaLUG DECUS Vice Chair
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ALPHA OSF1 xdr problem
1993-01-20 22:26 ALPHA OSF1 xdr problem David Warren
@ 1993-01-25 15:50 ` Benoy Desouza AOSG
0 siblings, 0 replies; 2+ messages in thread
From: Benoy Desouza AOSG @ 1993-01-25 15:50 UTC (permalink / raw)
In article <WARREN.93Jan20172646@stormy.atmos.washington.edu>,
warren@atmos.washington.edu (David Warren) writes:
|> Has anyone successfully used xdr routines on an alpha for reading or
|> writing longs. The ALPHA doesn't seem to know that a long by xdr
|> definition is only 32 bits. I am trying to build the UNIDATA netcdf
|> library (scientific data format) which uses xdr format. It is trying
|> to use the xdr library that comes with the ALPHA and the tests fail
|> because the ALPHA can't get longs correct.
|> --
xdr_long() on OSF/1 Alpha DOES adhere to the internet RFC 1014 (XDR)
and is really xdr_int() (just like ntohl() on OSF/1 Alpha is really a
network-to-host-int). Beware that if you declare a variable as a long
on OSF/1 Alpha, you will be getting a 64 bit integer. Hence if you try
to xdr_long() this 64 bit quantity, you would not get the same results
as on a 32 bit OS. You should really be applying xdr_long() ONLY to
"ints" on OSF/1 Alpha.
-------------------------------------------------------------------
Benoy DeSouza AOSG (OSF/1 Alpha)
Mailstop: GSF1-1/K13 (dtn) 264-5877
Digital Equipment Corp. (external) (603) 884-5877
5 Wentworth Drive enet: benoy@aosg.gsf.dec.com
Hudson, NH 03051 decnet: alpha::benoy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1993-01-25 15:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-01-20 22:26 ALPHA OSF1 xdr problem David Warren
1993-01-25 15:50 ` Benoy Desouza AOSG
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox