From owner-freebsd-doc Thu Jan 11 20:47:21 2001 Delivered-To: freebsd-doc@freebsd.org Received: from spirit.jaded.net (d226-56-204.home.cgocable.net [24.226.56.204]) by hub.freebsd.org (Postfix) with ESMTP id E758F37B400 for ; Thu, 11 Jan 2001 20:47:03 -0800 (PST) Received: (from dan@localhost) by spirit.jaded.net (8.11.1/8.11.1) id f0C4RtY09955 for freebsd-doc@freebsd.org; Thu, 11 Jan 2001 23:27:55 -0500 (EST) (envelope-from dan) Date: Thu, 11 Jan 2001 23:27:54 -0500 From: Dan Moschuk To: freebsd-doc@freebsd.org Subject: gethostbyname.3 Message-ID: <20010111232753.C9762@spirit.jaded.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org There's a small error in gethostbyname.3. The third argument is the socket family (AF_INET) which need sys/socket.h included (as well as sys/types.h for sys/socket.h). I was going to fix and commit this myself, but I'm not sure where those headers should be listed since they are only needed for gethostbyaddr(). Typically I see them overtop of the function they are needed for, but those functions are usually listed last and moving gethostbyaddr() to the bottom really didn't fit. Can someone with a little more doc clue fix this up? -Dan -- Man is a rational animal who always loses his temper when he is called upon to act in accordance with the dictates of reason. -- Oscar Wilde To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message