summaryrefslogtreecommitdiff
path: root/usr/src/man/man3c/getpeerucred.3c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man3c/getpeerucred.3c')
-rw-r--r--usr/src/man/man3c/getpeerucred.3c29
1 files changed, 7 insertions, 22 deletions
diff --git a/usr/src/man/man3c/getpeerucred.3c b/usr/src/man/man3c/getpeerucred.3c
index 61e1830860..8f8fac2c82 100644
--- a/usr/src/man/man3c/getpeerucred.3c
+++ b/usr/src/man/man3c/getpeerucred.3c
@@ -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 getpeerucred 3C "26 May 2004" "SunOS 5.11" "Standard C Library Functions"
+.TH GETPEERUCRED 3C "May 26, 2004"
.SH NAME
getpeerucred \- get connected socket or stream peer's credentials
.SH SYNOPSIS
@@ -49,81 +49,67 @@ returns \(mi1 and \fBerrno\fR is set to indicate the error.
The \fBgetpeerucred()\fR function will fail if:
.sp
.ne 2
-.mk
.na
\fB\fBEAGAIN\fR\fR
.ad
.RS 12n
-.rt
There is not enough memory available to allocate sufficient memory to hold the
user credential. The application can try again later.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEBADF\fR\fR
.ad
.RS 12n
-.rt
The \fIfd\fR argument is not a valid file descriptor.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEFAULT\fR\fR
.ad
.RS 12n
-.rt
The pointer location pointed to by the \fBucred_t **\fR argument points to an
invalid, non-null address.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEINVAL\fR\fR
.ad
.RS 12n
-.rt
The socket is connected but the peer credentials are unknown.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBENOMEM\fR\fR
.ad
.RS 12n
-.rt
The physical limits of the system are exceeded by the memory allocation needed
to hold the user credential.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBENOTCONN\fR\fR
.ad
.RS 12n
-.rt
The socket or stream is not connected or the stream's peer is unknown.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBENOTSUP\fR\fR
.ad
.RS 12n
-.rt
This operation is not supported on this file descriptor.
.RE
@@ -135,15 +121,14 @@ 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
_
-Interface StabilityEvolving
+Interface Stability Evolving
_
-MT-LevelMT-Safe
+MT-Level MT-Safe
.TE
.SH SEE ALSO