From owner-freebsd-questions Thu Feb 16 16:31:17 1995 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id QAA03195 for questions-outgoing; Thu, 16 Feb 1995 16:31:17 -0800 Received: from upcoming.dcrt.nih.gov (upcoming.dcrt.nih.gov [156.40.112.44]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id QAA03184 for ; Thu, 16 Feb 1995 16:31:15 -0800 Received: (from crtb@localhost) by upcoming.dcrt.nih.gov (8.6.9/8.6.9) id NAA23962 for questions@freebsd.org; Thu, 16 Feb 1995 13:57:00 -0500 Date: Thu, 16 Feb 1995 13:57:00 -0500 From: Chuck Bacon Message-Id: <199502161857.NAA23962@upcoming.dcrt.nih.gov> To: questions@FreeBSD.org Subject: getservent returns a s_portno which is a byteswapped short Sender: questions-owner@FreeBSD.org Precedence: bulk And yet proclaims it an int, and the getservent man page explains that it's in "network byte order." I assume that means a big-endian format. Or has this int been half-word-swapped? Chuck Bacon -- crtb@helix.nih.gov (or upcoming.dcrt.nih.gov)