summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/bindresvport.3
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1996-12-21 22:56:48 +0000
committermpp <mpp@FreeBSD.org>1996-12-21 22:56:48 +0000
commitbef6a10c829afa66b19ea2482f320fa622453873 (patch)
treece051cd2b9397412228bb74aa965002942012a8f /lib/libc/rpc/bindresvport.3
parentad3a46d18ba9b4fae98b615a912d155f1008d49e (diff)
downloadFreeBSD-src-bef6a10c829afa66b19ea2482f320fa622453873.zip
FreeBSD-src-bef6a10c829afa66b19ea2482f320fa622453873.tar.gz
Convert to mdoc format.
Diffstat (limited to 'lib/libc/rpc/bindresvport.3')
-rw-r--r--lib/libc/rpc/bindresvport.336
1 files changed, 17 insertions, 19 deletions
diff --git a/lib/libc/rpc/bindresvport.3 b/lib/libc/rpc/bindresvport.3
index 5d16487..8b9f3bf 100644
--- a/lib/libc/rpc/bindresvport.3
+++ b/lib/libc/rpc/bindresvport.3
@@ -1,27 +1,25 @@
.\" @(#)bindresvport.3n 2.2 88/08/02 4.0 RPCSRC; from 1.7 88/03/14 SMI
-.TH BINDRESVPORT 3 "22 november 1987"
-.SH NAME
-bindresvport \- bind a socket to a privileged IP port
-.SH SYNOPSIS
-.nf
-.B #include <sys/types.h>
-.B #include <netinet/in.h>
-.LP
-.B int bindresvport(sd, sin)
-.B int sd;
-.B struct sockaddr_in \(**sin;
-.fi
-.SH DESCRIPTION
-.LP
-.B bindresvport(\|)
+.Dd "22 november 1987"
+.Dt BINDRESVPORT 3
+.Os
+.Sh NAME
+.Nm bindresvport
+.Ndbind a socket to a privileged IP port
+.Sh SYNOPSIS
+.Fd #include <sys/types.h>
+.Fd #include <netinet/in.h>
+.Ft int
+.Fn bindresvport "int sd "struct sockaddr_in **sin"
+.Sh DESCRIPTION
+.Nm Bindresvport
is used to bind a socket descriptor to a privileged
-.SM IP
+.Em IP
port, that is, a
port number in the range 0-1023.
The routine returns 0 if it is successful,
-otherwise \-1 is returned and
-.B errno
+otherwise -1 is returned and
+.Va errno
set to reflect the cause of the error.
-.LP
+.Pp
Only root can bind to a privileged port; this call will fail for any
other users.
OpenPOWER on IntegriCloud