Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 May 1996 14:58:49 GMT
From:      James Raynard <jraynard@dial.pipex.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   docs/1170: include files missing from get{peer,sock}name man pages
Message-ID:  <199605021458.OAA03541@dial.pipex.com>
Resent-Message-ID: <199605022200.PAA29417@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1170
>Category:       docs
>Synopsis:       include files missing from get{peer,sock}name man pages
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May  2 15:00:01 PDT 1996
>Last-Modified:
>Originator:     James Raynard
>Organization:
A FreeBSD box
>Release:        FreeBSD 2.1-STABLE i386
>Environment:

FreeBSD 2.1.0-RELEASE

>Description:

The synopsis sections of the man pages for getpeername(2) and
getsockname(2) do not state the include files needed when using these
functions.

>How-To-Repeat:

man getsockname
man getpeername

>Fix:
	
Apply the following patches in /usr/src/sys/lib/libc/sys:-

*** getsockname.2~	Thu May  2 14:51:11 1996
--- getsockname.2	Thu May  2 14:52:03 1996
***************
*** 38,43 ****
--- 38,45 ----
  .Nm getsockname
  .Nd get socket name
  .Sh SYNOPSIS
+ .Fd #include <sys/types.h>
+ .Fd #include <sys/socket.h>
  .Ft int
  .Fn getsockname "int s" "struct sockaddr *name" "int *namelen"
  .Sh DESCRIPTION

*** getpeername.2~	Thu May  2 14:51:06 1996
--- getpeername.2	Thu May  2 14:53:46 1996
***************
*** 38,43 ****
--- 38,45 ----
  .Nm getpeername
  .Nd get name of connected peer
  .Sh SYNOPSIS
+ .Fd #include <sys/types.h>
+ .Fd #include <sys/socket.h>
  .Ft int
  .Fn getpeername "int s" "struct sockaddr *name" "int *namelen"
  .Sh DESCRIPTION

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605021458.OAA03541>