OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / original / man2 / getsockname.2
index cab1bbe..e88a0d4 100644 (file)
@@ -1,6 +1,7 @@
 .\" Copyright (c) 1983, 1991 The Regents of the University of California.
 .\" All rights reserved.
 .\"
+.\" %%%LICENSE_START(BSD_4_CLAUSE_UCB)
 .\" Redistribution and use in source and binary forms, with or without
 .\" modification, are permitted provided that the following conditions
 .\" are met:
@@ -28,6 +29,7 @@
 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
+.\" %%%LICENSE_END
 .\"
 .\"     @(#)getsockname.2      6.4 (Berkeley) 3/10/91
 .\"
@@ -62,7 +64,7 @@ The returned address is truncated if the buffer provided is too small;
 in this case,
 .I addrlen
 will return a value greater than was supplied to the call.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
 On success, zero is returned.
 On error, \-1 is returned, and
 .I errno
@@ -92,7 +94,7 @@ to perform the operation.
 The argument
 .I sockfd
 is a file, not a socket.
-.SH "CONFORMING TO"
+.SH CONFORMING TO
 SVr4, 4.4BSD (the
 .BR getsockname ()
 function call appeared in 4.2BSD), POSIX.1-2001.
@@ -101,16 +103,27 @@ function call appeared in 4.2BSD), POSIX.1-2001.
 .SH NOTES
 The third argument of
 .BR getsockname ()
-is in reality an \fIint *\fP
+is in reality an
+.I "int\ *"
 (and this is what 4.x BSD and libc4 and libc5 have).
-Some POSIX confusion resulted in the present \fIsocklen_t\fP,
+Some POSIX confusion resulted in the present
+.IR socklen_t ,
 also used by glibc.
 See also
 .BR accept (2).
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR bind (2),
 .BR socket (2),
 .BR getifaddrs (3),
 .BR ip (7),
 .BR socket (7),
 .BR unix (7)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.