From owner-freebsd-doc@FreeBSD.ORG Wed Sep 29 16:23:31 2004 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3C3916A4CE for ; Wed, 29 Sep 2004 16:23:31 +0000 (GMT) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0EB1043D48 for ; Wed, 29 Sep 2004 16:23:31 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received-SPF: pass (mp2.macomnet.net: domain of maxim@macomnet.ru designates 127.0.0.1 as permitted sender) receiver=mp2.macomnet.net; client_ip=127.0.0.1; envelope-from=maxim@macomnet.ru; Received: from localhost (nlyvna4m@localhost [127.0.0.1]) by mp2.macomnet.net (8.12.11/8.12.11) with ESMTP id i8TGNSCg010055; Wed, 29 Sep 2004 20:23:29 +0400 (MSD) (envelope-from maxim@macomnet.ru) Date: Wed, 29 Sep 2004 20:23:28 +0400 (MSD) From: Maxim Konovalov To: Matthew George In-Reply-To: <20040929120608.D20232@localhost> Message-ID: <20040929201812.G9999@mp2.macomnet.net> References: <20040929120608.D20232@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: doc@freebsd.org Subject: Re: addr2ascii(3) needs sys/socket.h? X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 16:23:32 -0000 On Wed, 29 Sep 2004, 12:09-0400, Matthew George wrote: > > AF_INET or AF_LINK should be passed as the first arg to addr2ascii(3) and > ascii2addr(3). These are defined in sys/socket.h, but that is omitted in > the include section of the manpage. > > should I send-pr this? > > > --- lib/libc/net/addr2ascii.3.orig Wed Sep 29 12:04:57 2004 > +++ lib/libc/net/addr2ascii.3 Wed Sep 29 12:05:39 2004 > @@ -42,6 +42,7 @@ > .In sys/types.h > .In netinet/in.h > .In arpa/inet.h > +.In sys/socket.h > .Ft "char *" > .Fn addr2ascii "int af" "const void *addrp" "int len" "char *buf" > .Ft int In the EXAMPLE section we see : #include : #include : #include : #include so you need to put sys/socket.h right after sys/types.h. -- Maxim Konovalov