summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1996-08-22 20:49:57 +0000
committermpp <mpp@FreeBSD.org>1996-08-22 20:49:57 +0000
commit1fe796a5c3283fd9badf6d524b5108aa39a3a1f9 (patch)
tree2a0468b02343e9260ecd6a1956b47a33213d5eca /lib
parent1647af0a74903fc3f24ba1c8dff768245ba03cae (diff)
downloadFreeBSD-src-1fe796a5c3283fd9badf6d524b5108aa39a3a1f9.zip
FreeBSD-src-1fe796a5c3283fd9badf6d524b5108aa39a3a1f9.tar.gz
List all of the include files required for getpeername and getsockname.
Closes PR# 1170. Submitted by: James Raynard <jraynard@dial.pipex.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/getpeername.22
-rw-r--r--lib/libc/sys/getsockname.22
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/sys/getpeername.2 b/lib/libc/sys/getpeername.2
index 5ca0a44..9967294 100644
--- a/lib/libc/sys/getpeername.2
+++ b/lib/libc/sys/getpeername.2
@@ -38,6 +38,8 @@
.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
diff --git a/lib/libc/sys/getsockname.2 b/lib/libc/sys/getsockname.2
index e053b47..a5c7588 100644
--- a/lib/libc/sys/getsockname.2
+++ b/lib/libc/sys/getsockname.2
@@ -38,6 +38,8 @@
.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
OpenPOWER on IntegriCloud