From owner-freebsd-hackers Sun Jan 11 07:56:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA05274 for hackers-outgoing; Sun, 11 Jan 1998 07:56:10 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA05244 for ; Sun, 11 Jan 1998 07:55:59 -0800 (PST) (envelope-from brian@awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.7/8.8.7) with ESMTP id PAA27565 for ; Sun, 11 Jan 1998 15:44:08 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199801111544.PAA27565@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0.1 12/23/97 To: freebsd-hackers@FreeBSD.ORG Subject: New typedefs in sys/types.h Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 11 Jan 1998 15:44:07 +0000 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk With the upcoming Alpha stuff, it looks like there are going to be some problems..... I'm assuming that a `long' is gonna be 64 bits rather than 32. Certainly, the ppp code expects a u_long to be 32bits, and even uses u_longs all over the place when writing network data. I'll bet it's not the only guilty party. The OpenBSD sys/types.h has the following: /* * XPG4.2 states that inclusion of must pull these * in and that inclusion of must pull in sa_family_t. * We put there here because there are other headers that require * these types and and will indirectly * include . Thus we are compliant without too many hoops. */ typedef u_int32_t in_addr_t; /* base type for internet address */ typedef u_int16_t in_port_t; /* IP port type */ typedef u_int8_t sa_family_t; /* sockaddr address family type */ I'd like to bring this into -current. Are there any objections ? Also, what's the plan with things like htonl() and ntohl() ? I am assuming they'll stay 32bit despite their name.... or will they ? We could also have hton16(), ntoh16(), hton32() and ntoh32(). If these changes are ok, I'd also like to change __FreeBSD_version (in osreldate.h) to 300002 so that the ports will have a chance of using them (if they wish). -- Brian , , Don't _EVER_ lose your sense of humour....