summaryrefslogtreecommitdiff
path: root/usr/src/man/man3socket/getsockname.3socket
diff options
context:
space:
mode:
authorRichard Lowe <richlowe@richlowe.net>2011-10-11 16:00:17 +0100
committerRichard Lowe <richlowe@richlowe.net>2011-10-11 16:00:17 +0100
commitc00ed4fa5a593e8e48ded4fb5ad22ecf0348f01d (patch)
tree909f29a065a94e61f2919a39f46a243c3f5c295b /usr/src/man/man3socket/getsockname.3socket
parentd322ce9e5e9bb437d93bf09b5354eede23491de7 (diff)
parentea3068a71489464a7cde899773f9ae3541209461 (diff)
downloadillumos-joyent-c00ed4fa5a593e8e48ded4fb5ad22ecf0348f01d.tar.gz
Merge branch 'master' of http://github.com/illumos/illumos-gate into gcc/upgrade
Conflicts: usr/src/cmd/avs/dsw/iiadm.c
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