From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,34129d079e0d7134,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-10-04 05:31:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!not-for-mail Message-ID: <3BBC558C.D58DB75C@voila.fr> From: nullepart X-Mailer: Mozilla 4.75 [en] (X11; U; OSF1 V5.1 alpha) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: is gethostsex standard? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 04 Oct 2001 14:26:52 +0200 NNTP-Posting-Host: 16.188.152.101 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 1002198629 16.188.152.101 (Thu, 04 Oct 2001 05:30:29 PDT) NNTP-Posting-Date: Thu, 04 Oct 2001 05:30:29 PDT Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.unix.tru64:5127 Hi, I'm trying to write some code which handles big-endian and little-endian byte ordering. I've tried to check which one it is by checking the definition of BIG_ENDIAN and LITTLE_ENDIAN, but i've found that they are both defined. I thought about using gethostsex, but I'm getting the impression that this is tru64-unix-specific. That doesn't seem right to me because the whole reason for checking is so i can write cross-platform code. Any help would be appreciated. thanks