home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!yale.edu!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.unix.programmer
- Subject: Re: Sun's XDR routines won't work on Sun machines ...
- Date: 9 Sep 1992 16:15:48 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 17
- Message-ID: <18l7vkINNfb3@early-bird.think.com>
- References: <WRU6L3V@mailgzrz.tu-berlin.de>
- NNTP-Posting-Host: telecaster.think.com
-
- In article <WRU6L3V@mailgzrz.tu-berlin.de> mauriti@cs.tu-berlin.de (Frank Hartlep) writes:
- > BufferSize += 50000;
- > Buffer = malloc (BufferSize);
- > Offset = strlen (ARCHIVED) + strlen (Description) + 1 + 4;
- > sprintf (Buffer, ARCHIVED "%s", Description);
- > xdrmem_create (&Stream, Buffer + Offset, BufferSize - Offset, XDR_ENCODE);
-
- Someone just pointed out in comp.sys.sun.<something> that Sun's
- implementation of the xdrmem_* functions require the buffer to be
- word-aligned, as they make use of the "coincidence" that the XDR
- representation of many data types matches the 68000/SPARC representation.
- This restriction isn't documented.
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-