Re: tcp(4) does not mention netinet/tcp.h

2018-05-10 Thread Alexander Bluhm
On Thu, May 10, 2018 at 03:27:24PM +0300, Vadim Zhukov wrote:
> Hi all!
> 
> The tcp(4) page talks about TCP options which are available through
> , but doesn't menthion this header. DragonFly BSD,
> FreeBSD & Linux do; Solaris mentions this header only; NetBSD is like
> us currently.
> 
> Okay? Or should we remove netinet/in.h from here as well (at least
> getsockopt(TCP_MAXSEG) call compiles still)?

OK bluhm

> 
> --
> WBR,
>   Vadim Zhukov
> 
> 
> Index: tcp.4
> ===
> RCS file: /cvs/src/share/man/man4/tcp.4,v
> retrieving revision 1.23
> diff -u -p -r1.23 tcp.4
> --- tcp.4 10 Sep 2015 17:55:21 -  1.23
> +++ tcp.4 10 May 2018 12:20:08 -
> @@ -39,6 +39,7 @@
>  .Sh SYNOPSIS
>  .In sys/socket.h
>  .In netinet/in.h
> +.In netinet/tcp.h
>  .Ft int
>  .Fn socket AF_INET SOCK_STREAM 0
>  .Ft int



tcp(4) does not mention netinet/tcp.h

2018-05-10 Thread Vadim Zhukov
Hi all!

The tcp(4) page talks about TCP options which are available through
, but doesn't menthion this header. DragonFly BSD,
FreeBSD & Linux do; Solaris mentions this header only; NetBSD is like
us currently.

Okay? Or should we remove netinet/in.h from here as well (at least
getsockopt(TCP_MAXSEG) call compiles still)?

--
WBR,
  Vadim Zhukov


Index: tcp.4
===
RCS file: /cvs/src/share/man/man4/tcp.4,v
retrieving revision 1.23
diff -u -p -r1.23 tcp.4
--- tcp.4   10 Sep 2015 17:55:21 -  1.23
+++ tcp.4   10 May 2018 12:20:08 -
@@ -39,6 +39,7 @@
 .Sh SYNOPSIS
 .In sys/socket.h
 .In netinet/in.h
+.In netinet/tcp.h
 .Ft int
 .Fn socket AF_INET SOCK_STREAM 0
 .Ft int