[6385] in Athena Bugs
missing header file
daemon@ATHENA.MIT.EDU (prb@ATHENA.MIT.EDU)
Mon Nov 12 16:44:10 1990
From: prb@ATHENA.MIT.EDU
To: bugs@ATHENA.MIT.EDU
Date: Mon, 12 Nov 90 16:43:57 EST
The following header file is missing (should be there for 4.3 Tahoe) :
/usr/include/machine/endian.h
Here are my mounts:
chiroptera.MIT.EDU:/expacks/srvd71 on /srvd type nfs (ro,rsize=1400,wsize=1400,timeo=8,retrans=7)
chiroptera.MIT.EDU:/expacks/urvd64 on /urvd type nfs (ro,rsize=1400,wsize=1400,timeo=8,retrans=7)
-Paul Borman
Here is the header file (as it exists on okeeffe at Berkeley:
----- cut me -----
/*
* Copyright (c) 1987 Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted provided
* that: (1) source distributions retain this entire copyright notice and
* comment, and (2) distributions including binaries display the following
* acknowledgement: ``This product includes software developed by the
* University of California, Berkeley and its contributors'' in the
* documentation or other materials provided with the distribution and in
* all advertising materials mentioning features or use of this software.
* Neither the name of the University nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* @(#)endian.h 7.5 (Berkeley) 6/28/90
*/
/*
* Definitions for byte order,
* according to byte significance from low address to high.
*/
#define LITTLE_ENDIAN 1234 /* least-significant byte first (vax) */
#define BIG_ENDIAN 4321 /* most-significant byte first (IBM, net) */
#define PDP_ENDIAN 3412 /* LSB first in word, MSW first in long (pdp) */
#define BYTE_ORDER BIG_ENDIAN /* byte order on tahoe */
/*
* Macros for network/external number representation conversion.
*/
#if BYTE_ORDER == BIG_ENDIAN && !defined(lint)
#define ntohl(x) (x)
#define ntohs(x) (x)
#define htonl(x) (x)
#define htons(x) (x)
#define NTOHL(x) (x)
#define NTOHS(x) (x)
#define HTONL(x) (x)
#define HTONS(x) (x)
#else
unsigned short ntohs(), htons();
unsigned long ntohl(), htonl();
#define NTOHL(x) (x) = ntohl(x)
#define NTOHS(x) (x) = ntohs(x)
#define HTONL(x) (x) = htonl(x)
#define HTONS(x) (x) = htons(x)
#endif