Date: Wed, 29 Sep 2004 20:23:28 +0400 (MSD) From: Maxim Konovalov <maxim@macomnet.ru> To: Matthew George <mdg@secureworks.net> Cc: doc@freebsd.org Subject: Re: addr2ascii(3) needs sys/socket.h? Message-ID: <20040929201812.G9999@mp2.macomnet.net> In-Reply-To: <20040929120608.D20232@localhost> References: <20040929120608.D20232@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <sys/types.h> : #include <sys/socket.h> : #include <netinet/in.h> : #include <arpa/inet.h> so you need to put sys/socket.h right after sys/types.h. -- Maxim Konovalov
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040929201812.G9999>