summaryrefslogtreecommitdiff
path: root/usr/src/man/man3socket/getsockname.3socket
diff options
context:
space:
mode:
authorYuri Pankov <yuri.pankov@nexenta.com>2011-10-03 04:36:40 -0700
committerYuri Pankov <yuri.pankov@nexenta.com>2011-10-03 04:36:40 -0700
commited22c7109fc5dd9e1b7a5d0333bdc7ad2718e2ab (patch)
tree3b2f488c4a03bda877119449bd63c01fa32aa6f2 /usr/src/man/man3socket/getsockname.3socket
parentaf8dc4373b25cce2c0bbb80f24e791f99eccbb6f (diff)
downloadillumos-gate-ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2ab.tar.gz
1502 Remove conversion cruft from manpages
Reviewed by: Alexander Eremin <alexander.eremin@nexenta.com> Reviewed by: Gordon Ross <gordon.w.ross@gmail.com> Reviewed by: Garrett D'Amore <garrett.damore@gmail.com>
Diffstat (limited to 'usr/src/man/man3socket/getsockname.3socket')
-rw-r--r--usr/src/man/man3socket/getsockname.3socket23
1 files changed, 7 insertions, 16 deletions
diff --git a/usr/src/man/man3socket/getsockname.3socket b/usr/src/man/man3socket/getsockname.3socket
index f5e5194554..a7ab0d1318 100644
--- a/usr/src/man/man3socket/getsockname.3socket
+++ b/usr/src/man/man3socket/getsockname.3socket
@@ -3,7 +3,7 @@
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH getsockname 3SOCKET "12 Dec 1997" "SunOS 5.11" "Sockets Library Functions"
+.TH GETSOCKNAME 3SOCKET "Dec 12, 1997"
.SH NAME
getsockname \- get socket name
.SH SYNOPSIS
@@ -11,7 +11,7 @@ getsockname \- get socket name
.nf
\fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsocket\fR \fB -lnsl \fR [ \fIlibrary\fR ... ]
#include <sys/types.h>
-#include <sys/socket.h>
+#include <sys/socket.h>
\fBint\fR \fBgetsockname\fR(\fBint\fR \fIs\fR, \fBstruct sockaddr *\fR\fIname\fR, \fBsocklen_t *\fR\fInamelen\fR);
.fi
@@ -34,46 +34,38 @@ If successful, \fBgetsockname()\fR returns \fB0\fR; otherwise it returns
The call succeeds unless:
.sp
.ne 2
-.mk
.na
\fB\fBEBADF\fR\fR
.ad
.RS 12n
-.rt
The argument \fIs\fR is not a valid file descriptor.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBENOMEM\fR\fR
.ad
.RS 12n
-.rt
There was insufficient memory available for the operation to complete.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBENOSR\fR\fR
.ad
.RS 12n
-.rt
There were insufficient STREAMS resources available for the operation to
complete.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBENOTSOCK\fR\fR
.ad
.RS 12n
-.rt
The argument \fIs\fR is not a socket.
.RE
@@ -85,13 +77,12 @@ See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-MT-LevelSafe
+MT-Level Safe
.TE
.SH SEE ALSO