From owner-freebsd-hackers Sun Jul 23 05:44:08 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id FAA00839 for hackers-outgoing; Sun, 23 Jul 1995 05:44:08 -0700 Received: from wdl1.wdl.loral.com (wdl1.wdl.loral.com [137.249.32.1]) by freefall.cdrom.com (8.6.11/8.6.6) with SMTP id FAA00833 for ; Sun, 23 Jul 1995 05:44:07 -0700 Received: from miles.sso.loral.com (miles.wdl.loral.com) by wdl1.wdl.loral.com (5.x/WDL-2.4-1.0) id AA08435; Sun, 23 Jul 1995 05:43:35 -0700 Received: by miles.sso.loral.com (4.1/SSO-SUN-2.04) id AA06704; Sun, 23 Jul 95 08:43:55 EDT Date: Sun, 23 Jul 1995 08:43:54 -0400 (EDT) From: Richard Toren X-Sender: rpt@miles To: "Jordan K. Hubbard" Cc: hackers@freebsd.org Subject: Re: missing xdr routines ?? In-Reply-To: <29898.806438293@time.cdrom.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: hackers-owner@freebsd.org Precedence: bulk I may have just opened a real can of worms in my ignorance. The reason I was trying out XDR is that I will soon have a need to exchange float and double data between FreeBSD, Solaris, VMS, AIX, and SGI. The code in src/lib/libc/xdr/xdr_float.c seems to use this approach (when IEEEFP is defined); treating float as two longs. The first test will be between FBSD and the Sun system I am hooked to. I have no experience in VMS, AIX, or SGI. Isn't XDR a Sun protocol that wasn't picked up in the standards battles of the past few years. Or is it one that is generally accepted? Is there an RFC that covers this? ==================================================== Rip Toren | The bad news is that C++ is not an object-oriented | rpt@miles.sso.loral.com | programming language. .... The good news is that | | C++ supports object-oriented programming. | | C++ Programming & Fundamental Concepts | | by Anderson & Heinze | ==================================================== On Sat, 22 Jul 1995, Jordan K. Hubbard wrote: > > I'm using this code I got from pvm2.4.1: > > > > int > > xdr_float(xdrp, fp) > > XDR *xdrp; > > float *fp; > > { > > return xdr_long(xdrp, (long*)fp); > > } > > > > int > > xdr_double(xdrp, dp) > > XDR *xdrp; > > double *dp; > > { > > return xdr_long(xdrp, (long*)dp + 1) > > && xdr_long(xdrp, (long*)dp); > > } > > So what's the concensus, folks? Should we add these? Were they > omitted for a reason? If not, I'll add them in the next 24 hours. > > Jordan >