projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rewritten to use writev by Sam; add Berkeley specific header
[unix-history]
/
usr
/
src
/
lib
/
libc
/
sys
/
getpeername.2
diff --git
a/usr/src/lib/libc/sys/getpeername.2
b/usr/src/lib/libc/sys/getpeername.2
index
ed9e7bd
..
57d3671
100644
(file)
--- a/
usr/src/lib/libc/sys/getpeername.2
+++ b/
usr/src/lib/libc/sys/getpeername.2
@@
-2,7
+2,7
@@
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
-.\" @(#)getpeername.2 6.
1
(Berkeley) %G%
+.\" @(#)getpeername.2 6.
2
(Berkeley) %G%
.\"
.TH GETPEERNAME 2 ""
.UC 5
.\"
.TH GETPEERNAME 2 ""
.UC 5
@@
-29,6
+29,7
@@
the amount of space pointed to by
.IR name .
On return it contains the actual size of the name
returned (in bytes).
.IR name .
On return it contains the actual size of the name
returned (in bytes).
+The name is truncated if the buffer provided is too small.
.SH DIAGNOSTICS
A 0 is returned if the call succeeds, \-1 if it fails.
.SH ERRORS
.SH DIAGNOSTICS
A 0 is returned if the call succeeds, \-1 if it fails.
.SH ERRORS
@@
-53,8
+54,4
@@
The
parameter points to memory not in a valid part of the
process address space.
.SH "SEE ALSO"
parameter points to memory not in a valid part of the
process address space.
.SH "SEE ALSO"
-bind(2), socket(2), getsockname(2)
-.SH BUGS
-Names bound to sockets in the UNIX domain are inaccessible;
-.I getpeername
-returns a zero length name.
+accept(2), bind(2), socket(2), getsockname(2)