diff options
author | maxim <maxim@FreeBSD.org> | 2004-10-09 17:13:58 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2004-10-09 17:13:58 +0000 |
commit | ac8a3b40c227c80e3d3ed4d0f2330bfd03b81844 (patch) | |
tree | 886bc5d1b57ceafb45d58551be1b1dc237283f28 /lib/libc/net/addr2ascii.3 | |
parent | a475461b84c4cf5518b13549612a82ffa089598a (diff) | |
download | FreeBSD-src-ac8a3b40c227c80e3d3ed4d0f2330bfd03b81844.zip FreeBSD-src-ac8a3b40c227c80e3d3ed4d0f2330bfd03b81844.tar.gz |
o Backout rev. 1.16, see 1.3 commit log for more info.
Requested by: bde
o Remove unneeded sys/types.h and netinet/in.h from the synopsis and
the example.
o We do have struct in_addr in arpa/inet.h, so no need for netinet/in.h.
o Mention where AF_* constants defined are.
Educated by: bde
Diffstat (limited to 'lib/libc/net/addr2ascii.3')
-rw-r--r-- | lib/libc/net/addr2ascii.3 | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/libc/net/addr2ascii.3 b/lib/libc/net/addr2ascii.3 index 7f4a3b8..2ca71da 100644 --- a/lib/libc/net/addr2ascii.3 +++ b/lib/libc/net/addr2ascii.3 @@ -39,9 +39,6 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In sys/types.h -.In sys/socket.h -.In netinet/in.h .In arpa/inet.h .Ft "char *" .Fn addr2ascii "int af" "const void *addrp" "int len" "char *buf" @@ -112,7 +109,7 @@ addresses in the specified family: .It Dv AF_INET .Li struct in_addr (in -.In netinet/in.h ) +.In arpa/inet.h ) .It Dv AF_LINK .Li struct sockaddr_dl (in @@ -122,6 +119,9 @@ addresses in the specified family: .\" (in .\" .In netinet6/in6.h ) .El +.Pp +.Dv AF_INET and AF_LINK constants are defined in +.In sys/socket.h .Sh RETURN VALUES The .Fn addr2ascii @@ -141,9 +141,7 @@ and .Fn inet_aton could be implemented thusly: .Bd -literal -offset indent -#include <sys/types.h> #include <sys/socket.h> -#include <netinet/in.h> #include <arpa/inet.h> char * |